A kind of HMI configuration synchronization system and methodTechnical field
The present invention relates to field of automation technology, especially a kind of HMI configuration synchronization system and method.
Background technique
HMI is the abbreviation of Human Machine Interface, is also " man-machine interface ", be between system and user intoThe medium of row interaction and information exchange, it realizes that the internal form of information and the mankind can receive the conversion between form, all ginsengsAll there is man-machine interfaces with the field of man-machine information interchange.It is the important component of industrial automation and industrial information.Operation has configuration to realize various functions in HMI, and configuration software can be realized monitoring and control to automation process and equipment.
Current system, most people interface is installed together with machinery equipment, so that user very easily existsControl of the scene to machine.With Internet of Things, the development of Intelligent mobile equipment, people are to the long-range information realized between machineInteraction has an increasingly stronger demand, but current scheme mostly in a manner of VNC based on, with realize remotely and local it is synchronousDisplay.VNC is a kind of technology of similar remote desktop, realizes screen is shown on local HMI content and long-range PC or intelligenceThe content shown in energy terminal is consistent, but VNC needs enough network bandwidths and stable data connection, in mobile network etc.Under environment, often there is the case where connection is slow, interrupts or does not connect, experience of the strong influence in remote operation.It is anotherA solution is exactly configuration of the operation one as the HMI of local on long-range PC or mobile terminal, but two configurationsData between (local: to operate in HMI on and long-range: operating on PC or mobile phone) are synchronous with regard to important asking as oneTopic, as soon as in addition, multiple remotely while in access local device having, the data in this 1 pair of N relationship are unanimously more aobviousIt obtains important.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.For this purpose, of the inventionOne purpose is to provide a kind of HMI configuration synchronization system and method.
The technical scheme adopted by the invention is that:
In a first aspect, the present invention provides a kind of HMI configuration synchronization system, including HMI, including several operations have remote configurationTerminal device and Relay Server, wherein when the parameter of remote configuration of any terminal equipment changing belonging to it, then the terminalThe parameter is transmitted to the HMI directly or by Relay Server by equipment;The HMI obtains the parameter and for localConfiguration carries out corresponding parameter change, then uploads update event to the Relay Server when completing parameter change;The terminalEquipment from the Relay Server obtain update event, according to the update event change it belonging to remote configuration parameter.
Preferably, the HMI is also used to obtain local operation to change the parameter of local configuration, when the local configuration of completionVariation of parameter then uploads update event to the Relay Server.
Preferably, the local configuration is identical as the remote configuration part or all identical.
It preferably, further include local device, the HMI is for controlling local device.
Preferably, the terminal device includes mobile phone and computer.
Second aspect, the present invention provide a kind of HMI configuration synchronous method, be suitable for above system, comprising steps of S1, appointOne terminal device changes the parameter of the remote configuration belonging to it, is transmitted to the parameter directly or by Relay Server describedHMI;S2, the HMI are directed to local configuration and carry out corresponding parameter change, then upload update event to institute when completing parameter changeState Relay Server;S3, the terminal device obtain update event from the Relay Server, are changed according to the update eventThe parameter of remote configuration belonging to it.
It preferably, further include that step S0:HMI is obtained and executed step S2 according to local operation.
Preferably, when the multiple parameters of HMI acquisition, local configuration is successively directed to according to the parameter and is corresponded toParameter change, when complete parameter change then upload update event to the Relay Server.
Preferably, step S2 is specifically included: S21, the HMI are directed to local configuration and carry out corresponding parameter change, when completeUpdate event is then uploaded at parameter change to the Relay Server;The corresponding terminal device of S22, step S1 obtains update eventTo determine that HMI has carried out the parameter modification of local configuration, prompt information is exported.
Preferably, in described in the Relay Server real-time release update event and/or the terminal device real time accessAfter server to obtain update event, the terminal device according to the update event change it belonging to remote configuration ginsengNumber.
The beneficial effects of the present invention are:
The present invention changes the parameter of remote configuration by terminal device, and HMI carries out correspondence to local configuration according to parameter and repairsChange, generates and upload update event then when HMI completes to modify to illustrate the detail of variation of parameter, terminal device is according to update thingPart changes remote configuration, can be realized the synchronization of configuration data to improve the requirement of system conformance, reduces system operation risk.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram of HMI configuration synchronization system of the invention;
Fig. 2 is a kind of schematic diagram of HMI configuration synchronous method 1 of the invention;
Fig. 3 is a kind of schematic diagram of HMI configuration synchronous method 2 of the invention;
Fig. 4 is a kind of schematic diagram of HMI configuration synchronization mechanism of the invention.
Specific embodiment
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phaseMutually combination.
Embodiment 1
The present embodiment is used for the shortcomings that describing the prior art and the resolving ideas of this statement.
Existing VNC mode (abbreviation that VNC (Virtual Network Console) is virtual network controls platform) andOn long-range PC or mobile terminal, the mode of a configuration as the HMI of local is run, there is as background technique is mentionedProblem, and in order to improve the operation stability of system, need to realize that the data of HMI and long-range controller (i.e. terminal device) are sameStep, for this purpose, the present embodiment provides a kind of HMI configuration synchronization system as shown in Figure 1, including HMI (human-computer interaction interface) 1 and sheetGround equipment 2 runs the terminal device 3 and Relay Server 4 that have remote configuration including several, and corresponding, the present embodiment also providesHMI configuration synchronous method 1 as shown in Figure 2:
The parameter of the remote configuration of S1, any terminal equipment changing belonging to it, will be described directly or by Relay ServerParameter is transmitted to the HMI;
S2, the HMI are directed to local configuration and carry out corresponding parameter change, then upload update event when completing parameter changeTo the Relay Server;
S3, the terminal device obtain update event from the Relay Server, change its institute according to the update eventThe parameter of the remote configuration of category.
Embodiment 2
The purpose of the present embodiment is that explaining preferred embodiment:
In step S1, " any terminal equipment changing " is specifically included in the same time, only one terminal device and HMI intoThe transmitting (the case where being directly connected to) of row parameter in another example, when there are two terminal devices to be contacted and prepared with HMI simultaneouslyThe transmitting of data is carried out, at this point, HMI can only select one of terminal device to carry out the reception of parameter and carry out local configuration changeMore, or there are two the above terminal devices the same time by Relay Server connection HMI, and Relay Server only can oneFor one parameter of secondary transmission to HMI, basic principle can be the transmitting for carrying out parameter sequentially in time, be also possible to HMIThe parameter both having received simultaneously, but one of parameter can only be taken to carry out local configuration change, and ought primary local groupState change is completed, and HMI can just carry out the change of configuration according to another parameter, with this treatment process is indigo plant the case where more parametersSheet, i.e. content described in the preferred embodiment of S2;Update event is data flow, and its object is to explain that local configuration updates detailedThe carefully information such as (such as what parameter changed), process (parameter modification sequence etc.), time;It may include three kinds in step S3Mode, i.e., Relay Server described in the described Relay Server real-time release update event and/or the terminal device real time accessTo obtain update event, wherein mode 1, Relay Server real-time release are advantageous in that the real-time of its update event, simultaneouslyThe consumption of terminal device real time access mode can be reduced;And mode 2, terminal device real time access mode are advantageous in that, energyThe state for enough proving terminal device, because then illustrating that terminal device is different when terminal device no longer real time access Relay ServerNormal or Network Abnormal is conducive to the state for detecting the various pieces of whole system immediately, this is that Relay Server is sent out in real timeWhat cloth mode can not accomplish;It is of course also possible to be performed simultaneously above two mode (i.e. in the case where passing over system consumptionThe third mode).
It can also include that step S0:HMI is obtained and executed step S2 according to local operation, at this point, HMI group as shown in Figure 3State synchronous method 2, HMI can carry out the change of local configuration by local operation, then proceed to execution step S2, S3 and come in factNow synchronize.Simultaneously as the reason of local operation (local operation cannot generate two local configuration changes), will not generateThe problem of terminal device confusion is repeatedly changed and caused to the same time.
Local configuration can all with remote configuration or part is identical, because, some terminal devices (such as mobile phone)The complete function of execution local device is not needed, therefore a part of remote configuration is only needed both to be able to achieve control local device,Certainly, if terminal device (PC) function itself is outstanding, it can satisfy and fully control, be also possible to remote configuration and local configurationUnanimously;Corresponding technological merit is to can satisfy the demand for control of the terminal device of different performances.
Embodiment 3
The present embodiment for providing such as a kind of HMI configuration synchronization mechanism of Fig. 3, be related to HMI (being provided with local configuration program),Data transmitting server (i.e. Relay Server), terminal device (such as mobile phone, PC, be provided with remote configuration program) are correspondingProcess comprising steps of
S01, (any) terminal device (mark it to change for the remote configuration data of A), will correspond in the present embodimentValue local configuration is written;
After the local configuration of S02, HMI have executed change, (by update event) notification data forwarding server is to indicateData are changed, and the value (content for being under the jurisdiction of update event) after variation is stored in server (i.e. Relay Server);
Data variation (whether there is update event) in S03, terminal device (A) query service device;
S04, server response have data variation, and (A knows that HMI has carried out local configuration as requested really at this timeChange);
Data variation (whether there is update event) in S05, other terminal device query service devices;
S06, server response have data variation, other terminal devices are synchronized according to the information of response at this time.
The purpose of the present embodiment essentially consists in the feedback for being directed to terminal device (A), because of the use of operating terminal equipment (A)Family, which needs to know whether the change of oneself is correctly completed, (can be and generate the prompt information that a change is completed, user seesThen know that change is completed to prompt information);Theoretically, in step S3, terminal device (A) does not need to synchronize, stillFor preventing unexpected situation, or the synchronization of a data is carried out, user also can having occurred to synchronize and know according to data at this timeThe change in road oneself is completed, still, according further to feedback determine it is more convenient (because of the change of synchronous only parameter itself,It is convenient not as good as a prompt information if to be compared according to parameter one by one to confirm that change completion all too is time-consuming,Prompt information can be simple text, voice etc.).
It is to be illustrated to preferable implementation of the invention, but the invention is not limited to the implementation aboveExample, those skilled in the art can also make various equivalent variations on the premise of without prejudice to spirit of the invention or replaceIt changes, these equivalent deformations or replacement are all included in the scope defined by the claims of the present application.