CN113534708A - Industrial personal computer hot backup method, device and system - Google Patents
Industrial personal computer hot backup method, device and system Download PDFInfo
- Publication number
- CN113534708A CN113534708A CN202110786888.6A CN202110786888A CN113534708A CN 113534708 A CN113534708 A CN 113534708A CN 202110786888 A CN202110786888 A CN 202110786888A CN 113534708 A CN113534708 A CN 113534708A
- Authority
- CN
- China
- Prior art keywords
- personal computer
- industrial personal
- industrial
- computer
- incremental 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
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25257—Microcontroller
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Hardware Redundancy (AREA)
Abstract
The application discloses industrial computer hot backup method, device and system is applied to a first industrial computer, the first industrial computer is any one industrial computer in a plurality of communication connection industrial computers, and the device is characterized by comprising the following steps: judging whether the first industrial personal computer has first incremental data or not; under the condition that the first industrial personal computer has the first incremental data, the first incremental data are sent to a second industrial personal computer, so that the second industrial personal computer backs up the first incremental data; the second industrial personal computer is any one of the industrial personal computers connected in communication except the first industrial personal computer. The problem of being equipped with spare machine and storing data and cause the wasting of resources is solved in this application.
Description
Technical Field
The application relates to the technical field of mixing stations, in particular to a method, a device and a system for hot backup of an industrial personal computer.
Background
Present stirring station, generally be equipped with many production lines, every production line correspondence is equipped with an industrial computer, when the industrial computer of one of them production line breaks down, this production line just can't continue production, restart or change trouble industrial computer will spend a large amount of time, if the industrial computer damages will directly lose the production data, the expansion to follow-up stirring work causes the influence, for the security that improves the production data among the prior art, be equipped with the reserve machine alone and be used for storing data, but when the industrial computer normal work, the reserve machine is in idle state, can cause the waste of resource.
Disclosure of Invention
The present application is proposed to solve the above-mentioned technical problems. The embodiment of the application provides a hot backup method, a hot backup device and a hot backup system for an industrial personal computer, and solves the problem of resource waste caused by the fact that a standby machine is equipped to store data.
According to an aspect of the application, an industrial computer hot backup method is provided, is applied to first industrial computer, first industrial computer is any industrial computer in a plurality of communication connection's industrial computer, its characterized in that includes: judging whether the first industrial personal computer has first incremental data or not; under the condition that the first industrial personal computer has the first incremental data, the first incremental data are sent to a second industrial personal computer, so that the second industrial personal computer backs up the first incremental data; the second industrial personal computer is any one of the industrial personal computers connected in communication except the first industrial personal computer.
In an embodiment, after the sending the first incremental data to the second industrial computer, the method for hot backup of the industrial computer further includes: receiving the marking information sent by the second industrial personal computer; wherein the flag information is used to indicate that the first incremental data has been backed up.
In an embodiment, after receiving the mark information sent by the second industrial computer, the industrial computer hot backup method further includes: judging whether second incremental data exists in the first industrial personal computer or not according to the marking information, wherein the second incremental data is data which are not backed up by the second industrial personal computer; and under the condition that the first industrial personal computer has the second incremental data, the second incremental data is sent to a second industrial personal computer so that the second industrial personal computer backs up the second incremental data.
In an embodiment, the determining whether the first industrial personal computer has the first incremental data includes: receiving non-occupation state information sent by the second industrial personal computer; and responding to the non-occupation state information, and judging whether the first industrial personal computer has first incremental data.
According to another aspect of the application, an industrial computer hot backup method is provided, is applied to first industrial computer, first industrial computer is any industrial computer in a plurality of communication connection's industrial computer, its characterized in that includes: receiving first incremental data sent by a second industrial personal computer, wherein the first incremental data is sent by the second industrial personal computer under the condition that the first incremental data exists in the second industrial personal computer; and storing the first incremental data; the second industrial personal computer is any one of the industrial personal computers connected in communication except the first industrial personal computer.
In one embodiment, said storing said first delta data comprises: and storing the first incremental data, and feeding back mark information to the second industrial personal computer, wherein the mark information is used for indicating that the first incremental data is backed up.
In one embodiment, said storing said first delta data comprises: and storing the first incremental data according to the occupation state of the first industrial personal computer.
In an embodiment, the storing the first incremental data according to the occupancy state of the first industrial personal computer includes: when the first industrial personal computer is in a non-occupied state, storing the first incremental data; the industrial personal computer hot backup method further comprises the following steps: and when the first industrial personal computer is in an occupied state, discarding the first incremental data.
In an embodiment, after discarding the first incremental data when the first industrial personal computer is in a non-occupied state, the industrial personal computer hot backup method further includes: after the first industrial personal computer recovers to be in a non-occupied state, sending non-occupied state information to the second industrial personal computer, so that the second industrial personal computer responds to the non-occupied state information, judging whether target incremental data exist in the second industrial personal computer, and sending the target incremental data to the first industrial personal computer under the condition that the target incremental data exist in the second industrial personal computer; the non-occupation state information is used for indicating that the first industrial personal computer is in a non-occupation state, the target incremental data are data which are not backed up by the first industrial personal computer, and the target incremental data comprise the first incremental data.
In an embodiment, after the storing the first incremental data, the method for hot backup of the industrial personal computer further includes: acquiring first heartbeat information of the second industrial personal computer; the first heartbeat information is used for indicating whether the second industrial personal computer has a fault or not; and when the second industrial personal computer fails, the first industrial personal computer controls working equipment corresponding to the second industrial personal computer to work according to the stored first incremental data.
In an embodiment, after the storing the first incremental data, the method for hot backup of the industrial personal computer further includes: sending confirmation information to the second industrial personal computer; when second heartbeat information fed back by the second industrial personal computer in response to the confirmation information is not received, determining that the second industrial personal computer fails; and when the second industrial personal computer fails, controlling working equipment corresponding to the second industrial personal computer to work according to the stored first incremental data.
According to another aspect of this application, an industrial computer hot backup device is provided, is applied to first industrial computer, first industrial computer is any industrial computer in a plurality of communication connection's the industrial computer, includes: the judging module is used for judging whether the first industrial personal computer has first incremental data or not; the sending module is used for sending the first incremental data to a second industrial personal computer under the condition that the first industrial personal computer has the first incremental data so as to enable the second industrial personal computer to backup the first incremental data; the second industrial personal computer is any one of the industrial personal computers connected in communication except the first industrial personal computer.
According to another aspect of this application, an industrial computer hot backup device is provided, is applied to first industrial computer, first industrial computer is any industrial computer in a plurality of communication connection's the industrial computer, includes: the receiving module is used for receiving first incremental data sent by a second industrial personal computer, and the first incremental data is sent by the second industrial personal computer under the condition that the first incremental data exists in the second industrial personal computer; and a storage module for storing the first incremental data; the second industrial personal computer is any one of the industrial personal computers connected in communication except the first industrial personal computer.
According to another aspect of the application, an industrial computer hot backup method is provided, and is applied to an industrial computer system, the industrial computer system comprises a first industrial computer and a second industrial computer, the first industrial computer is any one of industrial computers of a plurality of communication connection, the second industrial computer is any one of the industrial computers of a plurality of communication connection except the first industrial computer, and the industrial computer hot backup method comprises the following steps: the first industrial personal computer judges whether incremental data exist in the first industrial personal computer; the first industrial personal computer sends the incremental data to the second industrial personal computer when the incremental data exist in the first industrial personal computer, so that the second industrial personal computer backs up the incremental data; the second industrial personal computer receives the incremental data sent by the first industrial personal computer; and the second industrial personal computer stores the incremental data sent by the first industrial personal computer.
According to another aspect of the application, an industrial personal computer system is provided, comprising: the industrial personal computers are in communication connection; a plurality of working devices corresponding to the plurality of industrial personal computers; the controller is in communication connection with the industrial personal computers and the working devices; the controller is used for executing the industrial personal computer hot backup method.
Has the advantages that: the industrial personal computer hot backup method, the device and the system firstly judge whether the first industrial personal computer has data which are not backed up by the second industrial personal computer, the first industrial personal computer and the second industrial personal computer can carry out data mutual backup once or never carry out mutual backup, in the working process, if incremental data are generated in the first industrial personal computer and are data which are not backed up in the second industrial personal computer, the first industrial personal computer sends the incremental data to the second industrial personal computer, and the second industrial personal computer receives the incremental data of the first industrial personal computer and stores the incremental data in the second industrial personal computer, so that the effect of backing up the incremental data is achieved. The second industrial computer only backs up data that the second industrial computer was not backed up in the first industrial computer, can avoid the condition that the duplicate backup caused data redundancy, and the second industrial computer can control the working equipment that the second industrial computer corresponds and carry out work, also can regard as the standby machine of first industrial computer simultaneously, and the increment data of backup first industrial computer when first industrial computer breaks down, can control the working equipment that first industrial computer corresponds and work. The first industrial personal computer and the second industrial personal computer are both in effective work, the second industrial personal computer is not a standby machine, the resources for configuring the standby machine can be saved by the aid of the backup method, data redundancy caused by repeated backup data can be reduced, and accordingly working efficiency of the industrial personal computer is affected, meanwhile, a more stable working environment can be provided for working equipment, when one industrial personal computer fails, other industrial personal computers can take over for work of the failed industrial personal computer at once, the corresponding working equipment is controlled to continue to work, and the situation that working equipment works is affected due to failure of the industrial personal computer is reduced.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in more detail embodiments of the present application with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application. In the drawings, like reference numbers generally represent like parts or steps.
Fig. 1 is a schematic structural diagram of an industrial personal computer hot backup software according to an exemplary embodiment of the present application.
Fig. 2 is a schematic flowchart of a hot backup method of an industrial personal computer according to an exemplary embodiment of the present application.
Fig. 3 is a schematic flowchart of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application.
Fig. 4 is a schematic flowchart of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application.
Fig. 5 is a schematic flowchart of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application.
Fig. 6 is a schematic flowchart of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application.
Fig. 7 is a schematic flowchart of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application.
Fig. 8 is a schematic flowchart of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application.
Fig. 9 is a schematic flowchart of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application.
Fig. 10 is a schematic flowchart of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application.
Fig. 11 is a schematic flowchart of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application.
Fig. 12 is a schematic flowchart of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application.
Fig. 13 is a schematic structural diagram of an industrial personal computer hot backup device according to an exemplary embodiment of the present application.
Fig. 14 is a schematic structural diagram of an industrial personal computer hot backup device according to another exemplary embodiment of the present application.
Fig. 15 is a schematic structural diagram of an industrial personal computer hot backup device according to another exemplary embodiment of the present application.
Fig. 16 is a schematic structural diagram of an industrial personal computer hot backup device according to another exemplary embodiment of the present application.
Fig. 17 is a schematic structural diagram of an industrial personal computer hot backup device according to another exemplary embodiment of the present application.
Fig. 18 is a block diagram of an electronic device provided in an exemplary embodiment of the present application.
Description of reference numerals: the industrial personal computer hot backup device comprises an industrial personal computer hot backup device 2, a judgment module 21, a first receiving unit 211, a first judgment unit 212, a sending module 22, a receiving mark module 23, a first judgment module 24, a first sending module 25, a receiving module 31, a storage module 32, a first storage unit 321, a discarding module 33, a second sending module 34, an obtaining module 35, a receiving module 36, a confirming module 37, a fault judgment module 38, a standby module 39, an interaction judgment module 41, an interaction sending module 42, an interaction receiving module 43, an interaction storage module 44, an electronic device 7, a processor 71, a memory 72, an input device 73 and an output device 74.
Detailed Description
Hereinafter, example embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be understood that the described embodiments are only some embodiments of the present application and not all embodiments of the present application, and that the present application is not limited by the example embodiments described herein.
Fig. 1 is a schematic structural diagram of an industrial personal computer hot backup software provided in an exemplary embodiment of the present application, and as shown in fig. 1, the industrial personal computer hot backup software takes a first industrial personal computer as an example of a receiving end, and includes: the whole-warehouse synchronization module 11, the whole-warehouse synchronization module 11 is used for receiving the working data of other industrial personal computers (second industrial personal computers) in a plurality of communication connected industrial personal computers except the first industrial personal computer, and the whole-warehouse synchronization module 11 is used for: and automatically identifying a user table, a user view and a user trigger in the whole database of the second industrial personal computer, forming a specific backup file, and replacing each table structure and data in the database of the first industrial personal computer. Increment synchronization module 12, increment synchronization module 12 are used for according to the occupation state of first industrial computer, receive the increment data of second industrial computer, and increment synchronization module 12's effect is: and the newly added production service data of the second industrial personal computer is backed up in a targeted manner in the production process. The file transmission module 13 is used for receiving working data of a second industrial personal computer, and the file transmission module 13 has the following functions: when the first industrial personal computer backs up the table structure, the data and the incremental data of the second industrial personal computer, the production program files of the second industrial personal computer can be backed up at the same time, because the industrial personal computer is used for controlling different stirring machines, the different models possibly exist between different stirring machines, the production program files corresponding to the models need to be copied, the different stirring machines can be controlled, otherwise, abnormal phenomena such as overload can occur. Increment mark module 14, increment mark module 14 is used for when the occupation state of first industrial computer is for being locked, mark increment data, obtains mark increment data, and increment mark module 14's effect is: when the incremental synchronization is used, the incremental data cannot be identified as the incremental data generated after the last synchronization because the incremental data has no mark. Lock table unblock module 15, lock table unblock module 15 is used for unblock first industrial computer, and lock table unblock module 15's effect is: the second industrial computer monitors whether deadlock operation exists in the first industrial computer in the process of writing data of the second industrial computer into the first industrial computer, unlocking operation is executed and the polling processing is abandoned if deadlock exists, next polling is waited, and unlocking operation is executed on the first industrial computer, so that the first industrial computer is enabled to be in a lock table occupation state and is in a non-occupation state. The heartbeat verification module 16 is used for detecting the working state of the second industrial personal computer to obtain a heartbeat signal, and the heartbeat verification module 16 has the following functions: and verifying whether the database of the interconnected second industrial personal computer is on line with the first industrial personal computer in real time. And the control module 17 is used for controlling the working equipment corresponding to the second industrial personal computer to work according to the backup production data when the heartbeat signal represents the fault of the second industrial personal computer, and the control module 17 is used for controlling the working equipment corresponding to the second industrial personal computer to work.
Taking two interconnected industrial personal computers as an example, the two industrial personal computers can be a first industrial personal computer and a second industrial personal computer, the two industrial personal computers interact with a PLC respectively to control two different mixers to work, the two industrial personal computers read and write themselves in the production process and write data into own databases, the two industrial personal computers can back up each other through a whole-library synchronous module 11, except for backing up table data and structure through the whole-library synchronous module 11, production program files can be backed up through a file transmission module 13 to adapt to different types of working equipment, overload and the like can not be generated during emergency control, the first industrial personal computer and the second industrial personal computer can generate incremental data during the working process, only newly generated incremental data can be backed up in a targeted manner through the incremental synchronous module 12, the writing of the incremental data can only be carried out in a single direction, when the first industrial personal computer writes the incremental data into the second industrial personal computer, the second industrial personal computer cannot write the incremental data of the second industrial personal computer into the first industrial personal computer at the same time, when the second industrial personal computer is written into the incremental data by other industrial personal computers or the second industrial personal computer is reading and writing by itself, the table data of the second industrial personal computer is in an occupied state, the second industrial personal computer is in a locking state at the moment, the first industrial personal computer cannot succeed in writing the incremental data into the second industrial personal computer at the moment, because the second industrial personal computer is already locked, the incremental data which cannot be written temporarily are marked as mark incremental data by the incremental marking module 14, when the first industrial personal computer is written into the second industrial personal computer, the locking table unlocking module 15 monitors whether the second industrial personal computer is in a locking state, if the first industrial personal computer is in the locking state, the unlocking operation is executed, but the first industrial personal computer gives up the polling operation, the incremental data are not written into the second industrial personal computer, and the second industrial personal computer is in an unoccupied state after being unlocked, the first industrial personal computer can write the mark increment data, so that data conflict and lock table conflict are avoided, independent backup can be performed on the increment data, and resources are wasted due to the fact that backup is not repeatedly performed. After backup each other is accomplished, can use heartbeat verification module 16 to come the state whether two industrial computers are in normal work in real time between first industrial computer and the second industrial computer, when first industrial computer verifies that the second industrial computer is in unusual operating condition, then can judge second industrial computer stop work, need start emergent scheme, the control module 17 of first industrial computer can control the equipment that the second industrial computer corresponds and continue work, first industrial computer can play the effect temporarily as the standby machine of second industrial computer this moment, also can exercise the original work responsibility of first industrial computer.
Exemplary method
Fig. 2 is a schematic flowchart of a hot backup method of an industrial personal computer according to an exemplary embodiment of the present disclosure, and as shown in fig. 2, the hot backup method of the industrial personal computer is applied to a first industrial personal computer, where the first industrial personal computer is any one of a plurality of industrial personal computers connected in communication, and includes:
step 110: and judging whether the first industrial personal computer has first incremental data or not.
The first incremental data can be data which are not backed up by a second industrial personal computer (receiving end) relative to the second industrial personal computer, the second industrial personal computer is any one industrial personal computer except the first industrial personal computer (transmitting end) in the industrial personal computers connected in a plurality of communication modes, and therefore the first incremental data can also be data which are not backed up by the industrial personal computers connected in other communication modes and are generated by the first industrial personal computer relative to other industrial personal computers in the industrial personal computers connected in a plurality of communication modes.
Step 120: and under the condition that the first industrial computer has the first incremental data, the first incremental data is sent to the second industrial computer so that the second industrial computer can backup the first incremental data.
The second industrial personal computer is any one of the industrial personal computers connected in communication except the first industrial personal computer.
The first industrial computer can send first incremental data to the second industrial computer, make the backup first incremental data of second industrial computer, the backup first incremental data of second industrial computer can be used for storing the working data of first industrial computer, also can be used for when first industrial computer trouble, the second industrial computer is according to the work of the working device that first industrial computer of first incremental data control that backs up corresponds, first industrial computer also can send first incremental data to many industrial computers through simple and easy LAN connection, wherein the first incremental data of first industrial computer can all be backed up to arbitrary industrial computer, arbitrary industrial computer can all be according to the work of the working device that first industrial computer of first incremental data control that backs up corresponds.
The industrial personal computer hot backup method comprises the steps of firstly judging whether a first industrial personal computer has data which are not backed up by a second industrial personal computer, carrying out primary data mutual backup or non-backup before judging, if incremental data are generated in the first industrial personal computer and are data which are not backed up in the second industrial personal computer in the working process, sending the incremental data to the second industrial personal computer by the first industrial personal computer, receiving the incremental data of the first industrial personal computer by the second industrial personal computer, storing the incremental data in the second industrial personal computer, and playing a role of backing up the incremental data. The second industrial computer only backs up data that the second industrial computer was not backed up in the first industrial computer, can avoid the condition that the duplicate backup caused data redundancy, and the second industrial computer can control the working equipment that the second industrial computer corresponds and carry out work, also can regard as the standby machine of first industrial computer simultaneously, and the increment data of backup first industrial computer when first industrial computer breaks down, can control the working equipment that first industrial computer corresponds and work. The first industrial personal computer and the second industrial personal computer are both in effective work, the second industrial personal computer is not a standby machine, the resources for configuring the standby machine can be saved by the aid of the backup method, data redundancy caused by repeated backup data can be reduced, and accordingly working efficiency of the industrial personal computer is affected, meanwhile, a more stable working environment can be provided for working equipment, when one industrial personal computer fails, other industrial personal computers can take over for work of the failed industrial personal computer at once, the corresponding working equipment is controlled to continue to work, and the situation that working equipment works is affected due to failure of the industrial personal computer is reduced.
Fig. 3 is a schematic flowchart of a hot-backup method of an industrial personal computer according to another exemplary embodiment of the present application, and as shown in fig. 3, after step 120, the hot-backup method of the industrial personal computer may further include:
step 130: and receiving the marking information sent by the second industrial personal computer.
Wherein the flag information is used to indicate that the first incremental data has been backed up.
The first industrial personal computer sends the first incremental data to the second industrial personal computer, the second industrial personal computer receives and stores the first incremental data and then feeds back the mark information to the first industrial personal computer to inform the first industrial personal computer that the first incremental data is backed up, the first industrial personal computer determines that the first incremental data is backed up after receiving the mark information sent by the second industrial personal computer, the backed-up data cannot be sent to the second industrial personal computer, and the situation that data are repeatedly sent to cause redundancy is reduced.
Fig. 4 is a schematic flowchart of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application, and as shown in fig. 4, after step 130, the hot backup method of the industrial personal computer may further include:
step 140: and judging whether second incremental data exists in the first industrial personal computer or not according to the marking information, wherein the second incremental data is data which is not backed up by the second industrial personal computer.
After the first industrial personal computer receives the mark information sent by the second industrial personal computer, the first incremental data is determined to be backed up, the backed-up data cannot be sent to the second industrial personal computer, the first incremental data is not regarded as data needing to be backed up any more, the first industrial personal computer restarts recording the second incremental data after acquiring the mark information, and the second incremental data is data which is newly generated by the first industrial personal computer except the first incremental data and is not backed up by the second industrial personal computer.
Step 150: and under the condition that the first industrial personal computer has second incremental data, sending the second incremental data to a second industrial personal computer so that the second industrial personal computer backs up the second incremental data.
When second incremental data exist in the first industrial personal computer, the backup process of the first incremental data is repeated, the first industrial personal computer sends the second incremental data to the second industrial personal computer, the second industrial personal computer receives the second incremental data and stores the second incremental data, and mark information can still be fed back to the first industrial personal computer after the second industrial personal computer backs up the second incremental data, so that the first industrial personal computer is prompted that the second incremental data are backed up, and repeated sending is not needed.
Fig. 5 is a schematic flowchart of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application, and as shown in fig. 5, the step 110 may further include:
step 111: and receiving non-occupation state information sent by the second industrial personal computer.
The second industrial computer may exist table data because self reading and writing and occupy, also may be because the working data of receiving other industrial computers and be occupied, still may be because the second industrial computer is sending working data and is occupied for other industrial computers, the second industrial computer wants to receive the data of first industrial computer, then need the second industrial computer to be in the state that is not occupied, judge whether to be in the occupation state, can avoid lock table conflict and data conflict, play the effect of data order processing, the second industrial computer is when not occupying the state, can send non-occupation state information to first industrial computer, be used for indicting that first industrial computer can carry out the transmission of data.
Step 112: and responding to the non-occupied state information, and judging whether the first industrial personal computer has first incremental data.
After the first industrial personal computer receives the non-occupation state information sent by the second industrial personal computer, whether first incremental data which are not backed up by the second industrial personal computer exist in the first industrial personal computer is judged, and when the second industrial personal computer is in the non-occupation state, the first industrial personal computer can write the first incremental data into the second industrial personal computer and receive and store the first incremental data by the second industrial personal computer.
Fig. 6 is a schematic flow chart of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present disclosure, and as shown in fig. 6, the hot backup method of the industrial personal computer is applied to a first industrial personal computer, the first industrial personal computer is any one of a plurality of industrial personal computers connected in communication, and the hot backup method of the industrial personal computer includes:
step 210: and receiving first incremental data sent by the second industrial personal computer, wherein the first incremental data is sent by the second industrial personal computer under the condition that the first incremental data exists in the second industrial personal computer.
The first incremental data are generated by a second industrial computer (a sending end) and are not backed up by a first industrial computer (a receiving end), when the second industrial computer has first incremental data which are not backed up by the first industrial computer, the first incremental data are sent to the first industrial computer, and the first industrial computer receives the first incremental data sent by the second industrial computer.
Step 220: the first incremental data is stored.
The second industrial personal computer is any one of the industrial personal computers connected in communication except the first industrial personal computer.
After the first industrial personal computer receives the first incremental data sent by the second industrial personal computer, the first incremental data are stored, and when the second industrial personal computer breaks down, the first industrial personal computer can control the working equipment corresponding to the second industrial personal computer to continue working according to the first incremental data.
The step 220 may be further adjusted as follows: and storing the first incremental data and feeding back mark information to the second industrial personal computer, wherein the mark information is used for indicating that the first incremental data is backed up.
After the first industrial personal computer stores the first incremental data, the mark information is fed back to the second industrial personal computer and used for indicating that the first incremental data is backed up by the first industrial personal computer, and after the second industrial personal computer receives the mark information, the first incremental data is not sent to the first industrial personal computer any more, so that the repeated backup situation is reduced.
Fig. 7 is a schematic flowchart illustrating a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application, and as shown in fig. 7, step 220 may further include:
step 221: and storing the first incremental data according to the occupation state of the first industrial personal computer.
First industrial computer may exist table data because self reading and writing and occupy, also may be because the working data that is receiving other industrial computers and be occupied, still may be because first industrial computer is sending working data for other industrial computers and is occupied, and first industrial computer wants to receive the data of second industrial computer, then needs first industrial computer to be in the state that is not occupied, judges whether to be in the occupation state, can avoid lock table conflict and data conflict, plays the effect of data order handling.
Fig. 8 is a schematic flowchart illustrating a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application, and as shown in fig. 8, the step 221 may include:
step 2211: and storing the first incremental data when the first industrial personal computer is in a non-occupied state.
The second industrial personal computer judges whether to send the first incremental data according to the occupation state of the first industrial personal computer, and when the first industrial personal computer is in the non-occupation state, the second industrial personal computer sends the first incremental data according to the non-occupation state of the first industrial personal computer, and the first industrial personal computer stores the first incremental data.
Correspondingly, the industrial personal computer hot backup method can further comprise the following steps:
step 230: and when the first industrial personal computer is in an occupied state, discarding the first incremental data.
When the second industrial personal computer sends the first incremental data to the first industrial personal computer, the first industrial personal computer is in an occupied state, the first incremental data can be discarded by the first industrial personal computer, and the second industrial personal computer reserves the first incremental data to wait for next polling.
Fig. 9 is a schematic flowchart of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application, and as shown in fig. 9, after step 230, the hot backup method of the industrial personal computer may further include:
step 240: and after the first industrial personal computer recovers to the non-occupied state, sending non-occupied state information to the second industrial personal computer so that the second industrial personal computer responds to the non-occupied state information, judging whether target incremental data exist in the second industrial personal computer, and sending the target incremental data to the first industrial personal computer under the condition that the target incremental data exist in the second industrial personal computer.
The non-occupation state information is used for indicating that the first industrial personal computer is in a non-occupation state, the target incremental data are data which are not backed up by the first industrial personal computer, and the target incremental data comprise first incremental data.
The non-occupation state information can trigger the second industrial personal computer again to initiate a new round of polling, and trigger the first industrial personal computer to expand a new round of backup, after the second industrial personal computer receives the non-occupation state information sent by the first industrial personal computer, the second industrial personal computer judges that the first industrial personal computer is in a non-occupation state, the condition of data transmission is met, the second industrial personal computer responds to the non-occupation state information of the first industrial personal computer, whether the second industrial personal computer has target incremental data is judged, under the condition that the second industrial personal computer has the target incremental data, the target incremental data are sent to the first industrial personal computer, and the first industrial personal computer receives and stores the target incremental data in the non-occupation state.
Fig. 10 is a schematic flowchart illustrating a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application, and as shown in fig. 10, after step 220, the method may further include:
step 260: acquiring first heartbeat information of a second industrial personal computer; the first heartbeat information is used for indicating whether the second industrial personal computer breaks down or not.
The second industrial computer sends first heartbeat information to the first industrial computer to make the first industrial computer confirm the working state of the second industrial computer, the first heartbeat information indicates that the second industrial computer is in a fault state, the fault state of the second industrial computer can include a disconnection, the second industrial computer informs the first industrial computer through the first heartbeat information, and the first industrial computer confirms that the second industrial computer breaks down through the first heartbeat information.
Step 270: and when the second industrial personal computer fails, the first industrial personal computer controls working equipment corresponding to the second industrial personal computer to work according to the stored first incremental data.
When the first industrial personal computer receives the first heartbeat information, the first industrial personal computer can determine that the second industrial personal computer fails at the moment, and the first industrial personal computer can control the working equipment corresponding to the second industrial personal computer to continue working according to the first incremental data sent by the backed-up second industrial computer.
Fig. 11 is a schematic flowchart of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present application, and as shown in fig. 11, after step 220, the method may further include:
step 280: and sending confirmation information to the second industrial personal computer.
The method comprises the steps that a first industrial personal computer sends a small data packet to a second industrial personal computer which is interconnected at intervals, whether a communication link between the two interconnected parties is disconnected or not is judged according to the reply condition of the second industrial personal computer, and whether the second industrial personal computer is in a normal working state or not is judged by sending confirmation information to the second industrial personal computer.
Step 290: and when second heartbeat information fed back by the second industrial personal computer in response to the confirmation information is not received, determining that the second industrial personal computer has a fault.
When the first industrial computer does not receive the second heartbeat information fed back by the second industrial computer, namely the second industrial computer does not respond to the confirmation information sent by the first industrial computer, the second industrial computer can be judged to be in a fault state at the moment and cannot respond to the confirmation information.
Step 300: and when the second industrial personal computer fails, controlling working equipment corresponding to the second industrial personal computer to work according to the stored first incremental data.
After the first industrial personal computer confirms that the second industrial personal computer breaks down, the working equipment corresponding to the second industrial personal computer can be controlled to work according to the first incremental data backed up from the second industrial computer.
Fig. 12 is a schematic flow diagram of a hot backup method of an industrial personal computer according to another exemplary embodiment of the present disclosure, and as shown in fig. 12, the hot backup method of the industrial personal computer is applied to an industrial personal computer system, the industrial personal computer system includes a first industrial personal computer and a second industrial personal computer, the first industrial personal computer is any one of a plurality of industrial personal computers connected in communication, the second industrial personal computer is any one of the plurality of industrial personal computers connected in communication except the first industrial personal computer, and the hot backup method of the industrial personal computer includes:
step 410: the first industrial personal computer judges whether incremental data exist in the first industrial personal computer.
Step 420: and when the first industrial personal computer has incremental data, the first industrial personal computer sends the incremental data to the second industrial personal computer so as to enable the second industrial personal computer to backup the incremental data.
Step 430: and the second industrial personal computer receives the incremental data sent by the first industrial personal computer.
Step 440: and the second industrial personal computer stores the incremental data sent by the first industrial personal computer.
The industrial personal computer hot backup method comprises the steps of firstly judging whether a first industrial personal computer has data which are not backed up by a second industrial personal computer, carrying out primary data mutual backup or non-backup before judging, if incremental data are generated in the first industrial personal computer and are data which are not backed up in the second industrial personal computer in the working process, sending the incremental data to the second industrial personal computer by the first industrial personal computer, receiving the incremental data of the first industrial personal computer by the second industrial personal computer, storing the incremental data in the second industrial personal computer, and playing a role of backing up the incremental data. The second industrial computer only backs up data that the second industrial computer was not backed up in the first industrial computer, can avoid the condition that the duplicate backup caused data redundancy, and the second industrial computer can control the working equipment that the second industrial computer corresponds and carry out work, also can regard as the standby machine of first industrial computer simultaneously, and the increment data of backup first industrial computer when first industrial computer breaks down, can control the working equipment that first industrial computer corresponds and work. The first industrial personal computer and the second industrial personal computer are both in effective work, the second industrial personal computer is not a standby machine, the resources for configuring the standby machine can be saved by the aid of the backup method, data redundancy caused by repeated backup data can be reduced, and accordingly working efficiency of the industrial personal computer is affected, meanwhile, a more stable working environment can be provided for working equipment, when one industrial personal computer fails, other industrial personal computers can take over for work of the failed industrial personal computer at once, the corresponding working equipment is controlled to continue to work, and the situation that working equipment works is affected due to failure of the industrial personal computer is reduced.
In an embodiment, after the step 420, the method for hot backup of an industrial personal computer applied to an industrial personal computer system may further include: and the first industrial personal computer receives mark information sent by the second industrial personal computer, wherein the mark information is used for indicating that the incremental data is backed up.
In an embodiment, after the first industrial personal computer receives the mark information sent by the second industrial personal computer, the industrial personal computer hot backup method may further include that the first industrial personal computer judges whether incremental data exist in the first industrial personal computer according to the mark information, wherein the incremental data are data which are not backed up by the second industrial personal computer; and the first industrial personal computer sends the incremental data to the second industrial personal computer under the condition that the first industrial personal computer has the incremental data so as to enable the second industrial personal computer to backup the incremental data.
In an embodiment, the step 410 may be correspondingly adjusted to: the first industrial personal computer receives non-occupation state information sent by the second industrial personal computer; and responding to the non-occupation state information, and judging whether incremental data exist in the first industrial personal computer or not by the first industrial personal computer.
In an embodiment, the step 440 may be correspondingly adjusted to: the second industrial personal computer stores the incremental data and feeds back mark information to the first industrial personal computer, wherein the mark information is used for indicating that the incremental data are backed up.
In an embodiment, the step 440 may be further adjusted to: and the second industrial personal computer stores incremental data according to the occupation state of the second industrial personal computer.
Correspondingly, the second industrial personal computer can store incremental data according to the occupation state of the second industrial personal computer, and the incremental data can be adjusted to be: when the second industrial personal computer is in a non-occupied state, the second industrial personal computer stores incremental data;
correspondingly, the industrial personal computer hot backup method can further comprise the following steps: and when the second industrial personal computer is in an occupied state, discarding the incremental data.
In an embodiment, when the second industrial computer is in an occupied state, and after the incremental data is discarded, the method for hot backup of the industrial computer may further include: after the second industrial personal computer recovers to be in the non-occupied state, sending non-occupied state information to the first industrial personal computer, so that the first industrial personal computer responds to the non-occupied state information, judging whether target incremental data exist in the first industrial personal computer, and sending the target incremental data to the second industrial personal computer under the condition that the target incremental data exist in the first industrial personal computer; the non-occupation state information is used for indicating that the second industrial personal computer is in a non-occupation state, the target incremental data are data which are not backed up by the second industrial personal computer, and the target incremental data comprise incremental data.
In an embodiment, after step 440, the method for hot backup of an industrial personal computer may further include: the second industrial personal computer acquires heartbeat information of the first industrial personal computer, wherein the first heartbeat information is used for indicating whether the first industrial personal computer fails; and when the first industrial personal computer fails, the second industrial personal computer controls working equipment corresponding to the first industrial personal computer to work according to the stored incremental data.
In an embodiment, after step 440, the method for hot backup of an industrial personal computer may further include: and the second industrial personal computer sends confirmation information to the first industrial personal computer, confirms that the first industrial personal computer fails when the second industrial personal computer does not receive second heartbeat information fed back by the first industrial personal computer in response to the confirmation information, and controls working equipment corresponding to the first industrial personal computer to work according to the stored incremental data.
Exemplary devices
Fig. 13 is a schematic structural diagram of an industrial personal computer hot backup device provided in an exemplary embodiment of the present application, and as shown in fig. 13, the industrial personal computer hot backup device 2 is applied to a first industrial personal computer, the first industrial personal computer is any one of a plurality of industrial personal computers connected in communication, and the industrial personal computer hot backup device 2 includes: the judging module 21 is used for judging whether the first industrial personal computer has first incremental data or not; the sending module 22 is used for sending the first incremental data to the second industrial personal computer under the condition that the first incremental data exists in the first industrial personal computer so as to enable the second industrial personal computer to backup the first incremental data; the second industrial personal computer is any one of the industrial personal computers connected in communication except the first industrial personal computer.
This industrial computer hot backup device judges first industrial computer through judging module 21 whether have the data that the second industrial computer was not backed up earlier, first industrial computer and second industrial computer can carry out data backup each other once before judging, also can never carry out backup each other, in the course of the work, if produce first incremental data in the first industrial computer, and this first incremental data is the data that have not backed up in the second industrial computer, first industrial computer sends this first incremental data to the second industrial computer through sending module 22, the incremental data of first industrial computer is received to the second industrial computer, and store it in the second industrial computer, play the effect of backup incremental data. The second industrial computer only backs up data that the second industrial computer was not backed up in the first industrial computer, can avoid the condition that the duplicate backup caused data redundancy, and the second industrial computer can control the working equipment that the second industrial computer corresponds and carry out work, also can regard as the standby machine of first industrial computer simultaneously, and the first increment data of backup first industrial computer when first industrial computer breaks down, can control the working equipment that first industrial computer corresponds and work. The first industrial personal computer and the second industrial personal computer are both in effective work, the second industrial personal computer is not a standby machine, the resources for configuring the standby machine can be saved by the aid of the backup method, data redundancy caused by repeated backup data can be reduced, and accordingly working efficiency of the industrial personal computer is affected, meanwhile, a more stable working environment can be provided for working equipment, when one industrial personal computer fails, other industrial personal computers can take over for work of the failed industrial personal computer at once, the corresponding working equipment is controlled to continue to work, and the situation that working equipment works is affected due to failure of the industrial personal computer is reduced.
Fig. 14 is a schematic structural diagram of an industrial personal computer hot-backup device according to another exemplary embodiment of the present application, and as shown in fig. 14, the industrial personal computer hot-backup device 2 may further include: and the receiving marking module 23 is used for receiving marking information sent by the second industrial personal computer.
In an embodiment, as shown in fig. 14, the industrial personal computer hot backup device 2 may further include: the first judgment module 24 is used for judging whether second incremental data exists in the first industrial personal computer according to the marking information, wherein the second incremental data is data which are not backed up by the second industrial personal computer; and the first sending module 25 is configured to send the second incremental data to a second industrial personal computer under the condition that the second incremental data exists in the first industrial personal computer, so that the second industrial personal computer backs up the second incremental data.
In an embodiment, as shown in fig. 14, the industrial personal computer hot backup device 2 may further include: the first receiving unit 211 is configured to receive non-occupation state information sent by a second industrial personal computer; and a first judging unit 212, configured to judge whether the first industrial personal computer has first incremental data in response to the non-occupied state information.
Fig. 15 is a schematic structural diagram of a hot-standby device of an industrial personal computer according to another exemplary embodiment of the present disclosure, and as shown in fig. 15, the hot-standby device 2 of the industrial personal computer is applied to a first industrial personal computer, the first industrial personal computer is any one of a plurality of industrial personal computers connected in communication, and the hot-standby device 2 of the industrial personal computer may further include: the receiving module 31 is used for receiving first incremental data sent by a second industrial personal computer, and the first incremental data is sent by the second industrial personal computer under the condition that the second industrial personal computer has the first incremental data; and a storage module 32 for storing the first incremental data; the second industrial personal computer is any one of the industrial personal computers connected in a plurality of communication modes except the first industrial personal computer.
The first incremental data are generated by the second industrial personal computer and are not backed up by the first industrial personal computer, when the second industrial personal computer has the first incremental data which are not backed up by the first industrial personal computer, the first incremental data are sent to the first industrial personal computer, and the first industrial personal computer receives the first incremental data sent by the second industrial personal computer through the receiving module 31. After the first industrial personal computer receives the first incremental data sent by the second industrial personal computer, the first incremental data are stored through the storage module 32, and when the second industrial personal computer breaks down, the first industrial personal computer can control the working equipment corresponding to the second industrial personal computer to continue working according to the first incremental data.
Correspondingly, the storage module 32 may be further configured to: and storing the first incremental data and feeding back mark information to the second industrial personal computer, wherein the mark information is used for indicating that the first incremental data is backed up.
Fig. 16 is a schematic structural diagram of an industrial personal computer hot-backup device according to another exemplary embodiment of the present application, and as shown in fig. 16, the industrial personal computer hot-backup device 2 may further include: the first storage unit 321 is configured to store the first incremental data according to an occupation state of the first industrial personal computer.
In an embodiment, as shown in fig. 16, the industrial personal computer hot backup device 2 may further include: the discarding module 33 is used for discarding the first incremental data when the first industrial personal computer is in an occupied state; correspondingly, the first storage unit may be further configured to: and storing the first incremental data when the first industrial personal computer is in a non-occupied state.
In an embodiment, as shown in fig. 16, the industrial personal computer hot backup device 2 may further include: and the second sending module 34 is configured to send non-occupation state information to the second industrial personal computer after the first industrial personal computer recovers to the non-occupation state, so that the second industrial personal computer responds to the non-occupation state information, judges whether the second industrial personal computer has target incremental data, and sends the target incremental data to the first industrial personal computer under the condition that the second industrial personal computer has the target incremental data.
In an embodiment, as shown in fig. 16, the industrial personal computer hot backup device 2 may further include: the acquisition module 35 is used for acquiring first heartbeat information of the second industrial personal computer; the first heartbeat information is used for indicating whether the second industrial personal computer has a fault or not; and the receiving module 36 is used for controlling the working equipment corresponding to the second industrial personal computer to work according to the stored first incremental data when the second industrial personal computer fails.
In an embodiment, as shown in fig. 16, the industrial personal computer hot backup device 2 may further include: a confirmation module 37, configured to send confirmation information to the second industrial personal computer; a fault judgment module 38, configured to determine that the second industrial personal computer has a fault when second heartbeat information fed back by the second industrial personal computer in response to the confirmation information is not received; and the standby module 39 is used for controlling working equipment corresponding to the second industrial personal computer to work according to the stored first incremental data when the second industrial personal computer fails.
Fig. 17 is a schematic structural diagram of an industrial personal computer hot-backup device according to another exemplary embodiment of the present application, and as shown in fig. 17, the industrial personal computer hot-backup device 2 may further include: the interaction judgment module is used for judging whether the first industrial personal computer has incremental data or not; the interactive sending module is used for sending the incremental data to the second industrial personal computer when the first industrial personal computer has the incremental data so as to enable the second industrial personal computer to backup the incremental data; the interactive receiving module is used for receiving the incremental data sent by the first industrial personal computer by the second industrial personal computer; and the interactive storage module is used for storing the incremental data sent by the first industrial personal computer by the second industrial personal computer.
Exemplary System
An industrial personal computer system comprises a plurality of industrial personal computers which are in communication connection; a plurality of working devices corresponding to the plurality of industrial personal computers; the controller is in communication connection with the industrial personal computers and the working equipment;
the controller is used for executing the hot backup method of the industrial personal computer in any one of the embodiments.
The industrial computer system can be applied to the mixing plant, and a plurality of industrial computers can respectively correspondingly control a plurality of mixers. The industrial computer system can be applied to mutual backup among a plurality of industrial computers, so when one of the industrial computers breaks down, other industrial computers can control the mixer work corresponding to the broken industrial computer based on backup data.
In many industrial computers that connect through simple and easy LAN, any industrial computer can all carry out following work: receiving the working data of other industrial computers connected in the simple local area network, detecting whether the other industrial computers are working normally or not, obtaining the state signals whether the other industrial computers are working normally or not, when the state signals represent that the other industrial computers are in fault, the industrial computers working normally can control the working equipment corresponding to the other industrial computers to continue working through the received working data of the other industrial computers, each industrial computer can be used as a standby machine of the other industrial computers to backup the working data of the other industrial computers, but each industrial computer also has the working equipment corresponding to the industrial computer, so that each industrial computer is in effective working instead of being used as a standby machine, the backup method can save resources, and can ensure that when one industrial computer is in fault, the other industrial computers can immediately take over the working of the fault industrial computer, and the corresponding working equipment is controlled to continue working, so that the condition that the working equipment works is influenced by the fault of the industrial personal computer is reduced, and a more stable working environment is provided for the working equipment.
Exemplary electronic device
Next, an electronic apparatus according to an embodiment of the present application is described with reference to fig. 18. The electronic device may be either or both of the first device and the second device, or a stand-alone device separate from them, which stand-alone device may communicate with the first device and the second device to receive the acquired input signals therefrom.
FIG. 18 illustrates a block diagram of an electronic device in accordance with an embodiment of the present application.
As shown in fig. 18, the electronic device 7 includes one or more processors 71 and a memory 72.
The processor 71 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 7 to perform desired functions.
Memory 72 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium and executed by processor 71 to implement the above-described hot-standby method of the industrial personal computer of the various embodiments of the present application and/or other desired functions. Various contents such as an input signal, a signal component, a noise component, etc. may also be stored in the computer-readable storage medium.
In one example, the electronic device 7 may further include: an input device 73 and an output device 74, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
For example, when the electronic device 7 is a stand-alone device, the input means 73 may be a communication network connector for receiving the acquired input signals from the first device and the second device.
The input device 73 may also include, for example, a keyboard, a mouse, and the like.
The output device 74 may output various information including the determined distance information, direction information, and the like to the outside. The output devices 74 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, among others.
Of course, for the sake of simplicity, only some of the components related to the present application in the electronic device 7 are shown in fig. 18, and components such as a bus, an input/output interface, and the like are omitted. In addition, the electronic device 7 may comprise any other suitable components, depending on the specific application.
In addition to the above-described methods and apparatus, embodiments of the present application may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the industrial computer hot backup method according to various embodiments of the present application described in the "exemplary methods" section of this specification above.
The computer program product may be written with program code for performing the operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present application may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform the steps in the industrial computer hot backup method according to various embodiments of the present application described in the "exemplary methods" section above in this specification.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present application in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present application are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present application. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the foregoing disclosure is not intended to be exhaustive or to limit the disclosure to the precise details disclosed.
The block diagrams of devices, apparatuses, systems referred to in this application are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It should also be noted that in the devices, apparatuses, and methods of the present application, the components or steps may be decomposed and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of the present application.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the application to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.
Claims (15)
1. The utility model provides an industrial computer hot backup method, is applied to first industrial computer, any industrial computer in a plurality of communication connection's industrial computer, its characterized in that includes:
judging whether the first industrial personal computer has first incremental data or not;
under the condition that the first industrial personal computer has the first incremental data, the first incremental data are sent to a second industrial personal computer, so that the second industrial personal computer backs up the first incremental data;
the second industrial personal computer is any one of the industrial personal computers connected in communication except the first industrial personal computer.
2. The industrial personal computer hot backup method according to claim 1, wherein after the sending the first incremental data to a second industrial personal computer, the method further comprises:
receiving the marking information sent by the second industrial personal computer; wherein the flag information is used to indicate that the first incremental data has been backed up.
3. The industrial personal computer hot backup method according to claim 2, after receiving the mark information sent by the second industrial personal computer, further comprising:
judging whether second incremental data exists in the first industrial personal computer or not according to the marking information, wherein the second incremental data is data which are not backed up by the second industrial personal computer;
and under the condition that the first industrial personal computer has the second incremental data, the second incremental data is sent to a second industrial personal computer so that the second industrial personal computer backs up the second incremental data.
4. The industrial personal computer hot backup method according to claim 1, wherein the judging whether the first industrial personal computer has the first incremental data comprises:
receiving non-occupation state information sent by the second industrial personal computer; and
and responding to the non-occupation state information, and judging whether the first industrial personal computer has first incremental data.
5. The utility model provides an industrial computer hot backup method, is applied to first industrial computer, any industrial computer in a plurality of communication connection's industrial computer, its characterized in that includes:
receiving first incremental data sent by a second industrial personal computer, wherein the first incremental data is sent by the second industrial personal computer under the condition that the first incremental data exists in the second industrial personal computer; and
storing the first incremental data;
the second industrial personal computer is any one of the industrial personal computers connected in communication except the first industrial personal computer.
6. The industrial personal computer hot backup method according to claim 5, wherein the storing the first incremental data comprises:
and storing the first incremental data, and feeding back mark information to the second industrial personal computer, wherein the mark information is used for indicating that the first incremental data is backed up.
7. The industrial personal computer hot backup method according to claim 5, wherein the storing the first incremental data comprises:
and storing the first incremental data according to the occupation state of the first industrial personal computer.
8. The industrial personal computer hot backup method according to claim 7, wherein the storing the first incremental data according to the occupancy state of the first industrial personal computer comprises:
when the first industrial personal computer is in a non-occupied state, storing the first incremental data;
the industrial personal computer hot backup method further comprises the following steps:
and when the first industrial personal computer is in an occupied state, discarding the first incremental data.
9. The industrial personal computer hot backup method according to claim 8, wherein after discarding the first incremental data when the first industrial personal computer is in the non-occupied state, the method further comprises:
after the first industrial personal computer recovers to be in a non-occupied state, sending non-occupied state information to the second industrial personal computer, so that the second industrial personal computer responds to the non-occupied state information, judging whether target incremental data exist in the second industrial personal computer, and sending the target incremental data to the first industrial personal computer under the condition that the target incremental data exist in the second industrial personal computer;
the non-occupation state information is used for indicating that the first industrial personal computer is in a non-occupation state, the target incremental data are data which are not backed up by the first industrial personal computer, and the target incremental data comprise the first incremental data.
10. The industrial personal computer hot backup method according to claim 5, further comprising, after the storing the first incremental data:
acquiring first heartbeat information of the second industrial personal computer; the first heartbeat information is used for indicating whether the second industrial personal computer has a fault or not; and
and when the second industrial personal computer fails, the first industrial personal computer controls working equipment corresponding to the second industrial personal computer to work according to the stored first incremental data.
11. The industrial personal computer hot backup method according to claim 5, further comprising, after the storing the first incremental data:
sending confirmation information to the second industrial personal computer;
when second heartbeat information fed back by the second industrial personal computer in response to the confirmation information is not received, determining that the second industrial personal computer fails; and
and when the second industrial personal computer fails, controlling working equipment corresponding to the second industrial personal computer to work according to the stored first incremental data.
12. The utility model provides an industrial computer hot backup device, is applied to first industrial computer, first industrial computer is any industrial computer in a plurality of communication connection's the industrial computer, its characterized in that includes:
the judging module is used for judging whether the first industrial personal computer has first incremental data or not;
the sending module is used for sending the first incremental data to a second industrial personal computer under the condition that the first industrial personal computer has the first incremental data so as to enable the second industrial personal computer to backup the first incremental data;
the second industrial personal computer is any one of the industrial personal computers connected in communication except the first industrial personal computer.
13. The utility model provides an industrial computer hot backup device, is applied to first industrial computer, first industrial computer is any industrial computer in a plurality of communication connection's the industrial computer, its characterized in that includes:
the receiving module is used for receiving first incremental data sent by a second industrial personal computer, and the first incremental data is sent by the second industrial personal computer under the condition that the first incremental data exists in the second industrial personal computer; and
a storage module for storing the first incremental data;
the second industrial personal computer is any one of the industrial personal computers connected in communication except the first industrial personal computer.
14. The utility model provides an industrial computer hot backup method, is applied to industrial computer system, industrial computer system includes first industrial computer and second industrial computer, first industrial computer is any industrial computer in a plurality of communication connection's industrial computer, the second industrial computer is in a plurality of communication connection's industrial computer except that any industrial computer except first industrial computer, its characterized in that, industrial computer hot backup method includes:
the first industrial personal computer judges whether incremental data exist in the first industrial personal computer;
the first industrial personal computer sends the incremental data to the second industrial personal computer when the incremental data exist in the first industrial personal computer, so that the second industrial personal computer backs up the incremental data;
the second industrial personal computer receives the incremental data sent by the first industrial personal computer; and
and the second industrial personal computer stores the incremental data sent by the first industrial personal computer.
15. An industrial personal computer system, comprising:
the industrial personal computers are in communication connection;
a plurality of working devices corresponding to the plurality of industrial personal computers; and
the controller is in communication connection with the industrial personal computers and the working devices;
the controller is used for executing the industrial personal computer hot backup method of claim 14.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110786888.6A CN113534708A (en) | 2021-07-12 | 2021-07-12 | Industrial personal computer hot backup method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110786888.6A CN113534708A (en) | 2021-07-12 | 2021-07-12 | Industrial personal computer hot backup method, device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113534708A true CN113534708A (en) | 2021-10-22 |
Family
ID=78127639
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110786888.6A Pending CN113534708A (en) | 2021-07-12 | 2021-07-12 | Industrial personal computer hot backup method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113534708A (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030200480A1 (en) * | 2002-04-19 | 2003-10-23 | Computer Associates Think, Inc. | Method and system for disaster recovery |
CN103514064A (en) * | 2012-06-28 | 2014-01-15 | 国际商业机器公司 | Method and device for recording backup information |
JP2014106862A (en) * | 2012-11-29 | 2014-06-09 | Taiyo Nippon Sanso Corp | Redundant system and redundancy method |
CN104503869A (en) * | 2015-01-15 | 2015-04-08 | 宇龙计算机通信科技(深圳)有限公司 | Data processing method and data processing system |
CN104699055A (en) * | 2015-02-13 | 2015-06-10 | 西安热工研究院有限公司 | Field bus controller and method |
CN104898620A (en) * | 2015-05-19 | 2015-09-09 | 西安晨宇环境工程有限公司 | Ethernet-based redundancy control system and control method |
CN105739469A (en) * | 2016-03-18 | 2016-07-06 | 天津惠普数据中心设计工程有限公司 | Data center machine room freeze water secondary pump redundancy control system and method |
CN108509298A (en) * | 2018-03-22 | 2018-09-07 | 中国银联股份有限公司 | A kind of method, apparatus and storage medium of data processing |
CN109032021A (en) * | 2018-08-07 | 2018-12-18 | 中国航空工业集团公司雷华电子技术研究所 | A kind of application method of the double MCU warm back-up control systems of redundancy |
CN109991945A (en) * | 2019-04-04 | 2019-07-09 | 三一汽车制造有限公司 | Mixing plant and concrete pump combined control system |
CN111125049A (en) * | 2019-12-24 | 2020-05-08 | 上海交通大学 | RDMA (remote direct memory Access) -and-nonvolatile-memory-based distributed file data block reading and writing method and system |
CN112051805A (en) * | 2019-06-05 | 2020-12-08 | 西安瑞德宝尔智能科技有限公司 | Gravel production line control data hot standby method and device |
-
2021
- 2021-07-12 CN CN202110786888.6A patent/CN113534708A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030200480A1 (en) * | 2002-04-19 | 2003-10-23 | Computer Associates Think, Inc. | Method and system for disaster recovery |
CN103514064A (en) * | 2012-06-28 | 2014-01-15 | 国际商业机器公司 | Method and device for recording backup information |
JP2014106862A (en) * | 2012-11-29 | 2014-06-09 | Taiyo Nippon Sanso Corp | Redundant system and redundancy method |
CN104503869A (en) * | 2015-01-15 | 2015-04-08 | 宇龙计算机通信科技(深圳)有限公司 | Data processing method and data processing system |
CN104699055A (en) * | 2015-02-13 | 2015-06-10 | 西安热工研究院有限公司 | Field bus controller and method |
CN104898620A (en) * | 2015-05-19 | 2015-09-09 | 西安晨宇环境工程有限公司 | Ethernet-based redundancy control system and control method |
CN105739469A (en) * | 2016-03-18 | 2016-07-06 | 天津惠普数据中心设计工程有限公司 | Data center machine room freeze water secondary pump redundancy control system and method |
CN108509298A (en) * | 2018-03-22 | 2018-09-07 | 中国银联股份有限公司 | A kind of method, apparatus and storage medium of data processing |
CN109032021A (en) * | 2018-08-07 | 2018-12-18 | 中国航空工业集团公司雷华电子技术研究所 | A kind of application method of the double MCU warm back-up control systems of redundancy |
CN109991945A (en) * | 2019-04-04 | 2019-07-09 | 三一汽车制造有限公司 | Mixing plant and concrete pump combined control system |
CN112051805A (en) * | 2019-06-05 | 2020-12-08 | 西安瑞德宝尔智能科技有限公司 | Gravel production line control data hot standby method and device |
CN111125049A (en) * | 2019-12-24 | 2020-05-08 | 上海交通大学 | RDMA (remote direct memory Access) -and-nonvolatile-memory-based distributed file data block reading and writing method and system |
Non-Patent Citations (1)
Title |
---|
顾跃举: "Linux系统下web服务双机热备系统", 《黑龙江教育(理论与实践)》, no. 6, 30 June 2014 (2014-06-30), pages 57 - 58 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20070288585A1 (en) | Cluster system | |
CN104854845A (en) | Method and apparatus using high-efficiency atomic operations | |
JP2000134786A (en) | Power system protection and control system and its control, and storage medium with program module stored therein | |
CN112235127A (en) | Node fault reporting method and device, terminal equipment and storage medium | |
CN113534708A (en) | Industrial personal computer hot backup method, device and system | |
JP7489183B2 (en) | Arithmetic device, redundancy system and program, and method for constructing a redundancy configuration | |
US20070124462A1 (en) | State Information Acquisition Processing Program, State Information Acquisition Apparatus, and State Information Acquisition System | |
JPH07306794A (en) | Distributed system and enhancing method for reliability | |
JP2856617B2 (en) | Programmable controller | |
CN101242201B (en) | A master-slave system maintenance method, system and device | |
US6493599B2 (en) | Automated system and method for generating data to drive a manufacturing process | |
JP4439235B2 (en) | Operation test apparatus and operation test method | |
US7412500B2 (en) | Method and apparatus for using a serial cable as a cluster quorum device | |
JP2001333083A (en) | Setting method for newly adding and deleting field device, and method for newly adding field device | |
WO2006030697A1 (en) | Communication device, communication control method, communication control program, and computer-readable recording medium containing the communication control program | |
US20050022056A1 (en) | Access by distributed computers to a same hardware resource | |
JPH06301658A (en) | Recovery system in loose coupling electronic computer system | |
JPH06187184A (en) | Input and output controller for duplex system | |
JP2001256071A (en) | Redundant system | |
CN116069583A (en) | Database cluster management method and device and network equipment | |
JP2699291B2 (en) | Power failure processing device | |
JP2848442B2 (en) | Arbitrary message data discrimination method | |
JP2009015472A (en) | Device monitor system for computer system | |
JP2746140B2 (en) | Terminal test control processing method | |
CN118819915A (en) | MySQL database double-master avoiding method, device and storage medium |
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 |