CN115616891A - Hot standby redundancy control system and method of front-end processor based on OPC UA technology - Google Patents

Hot standby redundancy control system and method of front-end processor based on OPC UA technology Download PDF

Info

Publication number
CN115616891A
CN115616891A CN202110725356.1A CN202110725356A CN115616891A CN 115616891 A CN115616891 A CN 115616891A CN 202110725356 A CN202110725356 A CN 202110725356A CN 115616891 A CN115616891 A CN 115616891A
Authority
CN
China
Prior art keywords
server
end processor
standby
main
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110725356.1A
Other languages
Chinese (zh)
Inventor
付海新
骆俊贤
王景云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN202110725356.1A priority Critical patent/CN115616891A/en
Publication of CN115616891A publication Critical patent/CN115616891A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B9/00Safety arrangements
    • G05B9/02Safety arrangements electric
    • G05B9/03Safety arrangements electric with multiple-channel loop, i.e. redundant control systems

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses a front-end processor hot standby redundancy control system and a method based on OPC UA technology. The system comprises a main front-end processor server, a standby front-end processor server, a real-time server and a client, wherein the main front-end processor server and the standby front-end processor server respectively send UA information of the main front-end processor server to the real-time server periodically, the real-time server judges whether main-standby switching is needed according to the UA information of the main front-end processor server, and sends a main-standby switching instruction to the main front-end processor server and the standby front-end processor server when switching is needed so that the main-standby switching is carried out on the main front-end processor server and the standby front-end processor server, the client receives the UA information of the main front-end processor server and the standby front-end processor server sent by the real-time server, and sends an alarm when the UA information of the main front-end processor server and the standby front-end processor server confirms that a hot standby redundancy control system is in a non-main state according to the UA information of the main front-end processor server and the standby front-end processor server, and the alarm can effectively avoid the occurrence of a double-host phenomenon.

Description

Hot standby redundancy control system and method of front-end processor based on OPC UA technology
Technical Field
The invention relates to the technical field of communication, in particular to a front-end processor hot standby redundancy control system and a method based on an OPC UA technology.
Background
In a comprehensive operation scheduling system of rail transit, a server is mostly composed of a front-end processor server, a real-time server and a historical server. The main functions of the Front End Processor (FEP) are: the method is mainly used for controlling the receiving and sending of all data transmitted between the host and the terminal, and has the function of data and format conversion, namely converting one or more types of data codes and formats transmitted into the data codes and formats of the host. The main functions of the real-time server are: and storing the data processed by the FEP into a local real-time database in real time so as to be used for sampling and counting by the client and the history library. The main functions of the historian are: and according to the user requirements, counting and sampling the data of the front-end processor server, storing the data into a relational database of the historical library, and simultaneously accessing and operating the relational database by the client according to the requirements. Therefore, the server system is one of the most critical functions in the system in the whole integrated operation scheduling system. In order to ensure that the servers can normally operate in the system, the server system introduces a dual-computer hot standby scheme, and ensures that when one machine fails and needs to temporarily stop operating and the like, and the normal operation cannot be caused, the standby machine replaces the host function, so that the robustness and the stability of the system are improved, and safer and more reliable services are better provided for clients.
At present, a heartbeat line scheme is mostly adopted in a dual-host hot standby system of a front-end processor in the market, and when the heartbeat line is disconnected due to a fault, the problem of dual hosts is easy to occur, so that the normal use of the system is influenced.
Disclosure of Invention
The present invention is directed to solving, at least in part, one of the technical problems in the related art. Therefore, the first purpose of the invention is to provide a front-end processor hot standby redundancy control system based on OPC UA technology.
The second purpose of the invention is to provide a control method of a front-end processor hot standby redundancy control system based on OPC UA technology.
A third object of the invention is to propose a computer-readable storage medium.
A fourth object of the present invention is to provide a real-time server.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a front-end processor hot standby redundancy control system based on OPC UA technology, including: a main front-end processor server, a standby front-end processor server, a real-time server and a client, wherein,
the main front-end processor server and the standby front-end processor server respectively send the UA information of the main front-end processor server and the standby front-end processor server to the real-time server periodically;
the real-time server judges whether the main-standby switching is needed according to UA information of the main front-end processor server, and sends a main-standby switching instruction to the main front-end processor server and the standby front-end processor server when the switching is needed so as to enable the main front-end processor server and the standby front-end processor server to carry out the main-standby switching;
the client is used for receiving the UA information of the main prepositive server and the UA information of the standby prepositive server sent by the real-time server and sending an alarm when the hot standby redundancy control system of the prepositive server is confirmed to be in a non-main state according to the UA information of the main prepositive server and the UA information of the standby prepositive server.
According to the front-end processor hot standby redundancy control system based on the OPC UA technology, the main front-end processor server and the standby front-end processor server respectively send the UA information of the main front-end processor server to the real-time server periodically, the real-time server judges whether the main-standby switching is needed according to the UA information of the main front-end processor server, and when the switching is needed, a main-standby switching instruction is sent to the main front-end processor server and the standby front-end processor server so that the main-standby switching is conducted by the main front-end processor server and the standby front-end processor server, the client receives the UA information of the main front-end processor server and the UA information of the standby front-end processor server sent by the real-time server, and when the UA information of the main front-end processor server and the UA information of the standby front-end processor server are confirmed to be in an unowned state, an alarm is sent, therefore the front-end hot standby system is not needed to monitor the OPC.
In addition, according to the above embodiment of the present invention, the following additional technical features may be provided:
according to one embodiment of the present invention, the UA information includes configuration information and running state information.
According to one embodiment of the invention, the configuration information comprises a computer name, a computer IP address, a state code and information uploading time, wherein the state code comprises a main state code or a standby state code.
According to one embodiment of the invention, when receiving a main/standby switching instruction, a main front-end processor server modifies a main state code in configuration information into a standby state code according to the main/standby switching instruction, and sends modified UA information to a real-time server;
when receiving the master-slave switching instruction, the standby front-end processor server modifies the standby state code in the configuration information into the master state code according to the master-slave switching instruction, and sends the modified UA information to the real-time server.
According to an embodiment of the present invention, the main front-end processor server is further configured to send the processed system data to the real-time server;
the front-end processor hot standby system also comprises a history server, wherein the history server is connected with the real-time server and is used for writing the processed system data into a history database so that a client can access and operate the history database.
According to an embodiment of the present invention, when the active front-end processor server cannot send a message to the real-time server, the real-time server determines that the active front-end processor server is abnormal.
According to one embodiment of the invention, when the message sent by the main front-end processor server to the real-time server is abnormal, the real-time server judges that the main front-end processor server is abnormal.
In order to achieve the above object, an embodiment of a second aspect of the present invention provides a method for controlling a hot standby redundancy control system of a front-end processor based on OPC UA technology, including: and receiving UA information sent by the main front-end processor server and the standby front-end processor server, and judging whether the main front-end processor server is abnormal or not according to the UA information of the main front-end processor server. When the master front-end processor server is determined to be abnormal, a master-slave switching instruction is sent to the master front-end processor server and the standby front-end processor server so that the master front-end processor server and the standby front-end processor server can carry out master-slave switching. And sending the UA information of the main prepositive server and the UA information of the standby prepositive server to the client so that the client sends an alarm when confirming that the hot standby redundancy control system of the prepositive server is in a non-main state according to the UA information of the main prepositive server and the UA information of the standby prepositive server.
According to the control method of the front-end processor hot standby redundancy control system based on the OPC UA technology, UA information sent by a main front-end processor server and a standby front-end processor server is received, whether the main front-end processor server is abnormal or not is judged according to the UA information of the main front-end processor server, when the main front-end processor server is determined to be abnormal, a main/standby switching instruction is sent to the main front-end processor server and the standby front-end processor server, so that the main/standby switching is carried out on the main front-end processor server and the standby front-end processor server, the UA information of the main front-end processor server and the UA information of the standby front-end processor server are sent to a client, so that the client can send an alarm line pair when the main front-end processor hot standby redundancy control system is determined to be in a non-main state according to the UA information of the main front-end processor server and the UA information of the standby front-end processor server, therefore, the heartbeat hot standby system is not needed to monitor the OPC, the occurrence of a double-host phenomenon can be effectively avoided based on the UA technology, and when the system is in a non-main-machine state, the client can send an alarm to be timely maintained, so as to avoid maintenance personnel to cause greater loss, and improve the reliability of the system.
In order to achieve the above object, a computer readable storage medium according to a third aspect of the present invention is provided, on which a control program of a front-end processor hot-standby redundancy control system based on OPC UA technology is stored, and the control program of the front-end processor hot-standby redundancy control system implements the control method of the front-end processor hot-standby redundancy control system as described above when executed by a processor.
According to the computer readable storage medium of the embodiment of the invention, by the control method of the front-end processor hot standby redundancy control system, the double-processor hot standby system is not required to be monitored by adopting a heartbeat line, the double-processor phenomenon can be effectively avoided based on the OPC UA technology, and when the system is in the non-processor state, the client can send out an alarm, so that a maintainer can maintain in time, the larger loss is avoided, and the reliability of the system is improved.
In order to achieve the above object, a real-time server according to a fourth embodiment of the present invention includes a memory, a processor, and a control program of a front-end processor hot standby redundancy control system based on OPC UA technology, where the processor executes the control program of the front-end processor hot standby redundancy control system to implement the control method of the front-end processor hot standby redundancy control system.
According to the real-time server provided by the embodiment of the invention, by the control method of the front-end processor hot standby redundancy control system, the double-processor hot standby system is not required to be monitored by adopting a heartbeat line, the occurrence of double-host phenomenon can be effectively avoided based on the OPC UA technology, and when the system is in a non-host state, the client can send out an alarm, so that maintenance personnel can maintain the system in time, the larger loss is avoided, and the reliability of the system is improved. Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a schematic structural diagram of a dual-computer hot standby system of a conventional front-end processor;
FIG. 2 is a schematic structural diagram of a hot-standby redundancy control system of a front-end processor based on OPC UA technology according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a control method of a hot standby redundancy control system of a front-end processor based on OPC UA technology according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
At present, the dual-computer hot standby system of the front-end processor on the market mostly adopts the cluster technical scheme, and the normal communication between the two computers is ensured through the connection heart jumper. As shown in fig. 1, a conventional dual-server hot-standby system includes: the system comprises a front-end processor server A11, a front-end processor server B12 and a heartbeat line, wherein the front-end processor server A11 is connected with the front-end processor server B12 through the heartbeat line. Assuming that the front-end processor server a11 is a main front-end processor server and the front-end processor server B12 is a standby front-end processor server, when the two hot standby systems of the front-end processors are all operating normally, the main front-end processor server and the standby front-end processor server communicate with each other through a heartbeat line, and the main front-end processor server sends heartbeat data to the standby front-end processor server through the heartbeat line according to a preset period. And if the standby front-end processor server receives the heartbeat data, judging that the main front-end processor server is normal. When the primary front-end processor server fails to send heartbeat data to the standby front-end processor server, namely the standby front-end processor server does not receive heartbeat data within a preset time, the primary front-end processor server replaces the role and the function of the primary front-end processor server to serve the whole monitoring system. Meanwhile, the original main front-end processor server is lowered to the standby front-end processor server. However, when the heartbeat line of the dual-computer hot standby system is disconnected, because the main front-end processor server and the standby front-end processor server lose contact with each other, the failure of the opposite side is considered to occur because the heartbeat data of the opposite side cannot be received, the original standby front-end processor server can be upgraded to the main front-end processor server, and the original main front-end processor server continues to be in main use because the original main front-end processor server works normally, so that the phenomenon that the two computers are in main use at the same time occurs, which is the dual-main phenomenon. The double-master phenomenon can cause the double computers to compete for resources in the system, so that the double computers cannot work normally, and logic confusion or data damage can be caused, thereby causing destructive influence on the system.
In addition, according to the scheme of heartbeat monitoring, the front-end processor server a11 and the front-end processor server B12 need to be arranged in the same failover cluster, that is, the main front-end processor server and the standby front-end processor server need to be added into the cluster, in the process, DNS (domain Name System) service and failover cluster configuration need to be performed, the configuration process is complicated, the System needs to be modified, and all the front-end processor servers in the System need to be configured. In the cluster configuration process, a cluster IP (Internet Protocol, protocol for interconnecting networks) needs to be configured and planned, so as to avoid interference caused by network problems to the system due to IP collision or IP mismatching in the use process. When the failover cluster is used, the failover cluster needs to be maintained, and if the equipment is reinstalled, the cluster needs to be modified and configured when an IP address or computer information changes, which is more tedious. When a fault is found out, the whole process needs to be detected, and the requirement on subsequent maintenance personnel is high. Therefore, the operation and maintenance of the system will increase much cost.
Based on this, the application provides a hot standby redundancy Control system of a front-end processor based on OPC UA technology, which introduces OPC UA (Open Process Control Unified Architecture) technology into the hot standby redundancy Control system of the front-end processor, wherein the OPC UA technology is the next generation OPC standard, and provides a complete, safe and reliable cross-platform Architecture to acquire real-time data, historical data and time and realize the transmission of original data and preprocessed information from a hardware system level to a software system. With OPC UA technology, all the required information can be transmitted periodically to the client terminal and the historian system as required. Meanwhile, the OPC UA framework provides an information model of specific application, and in practical application, information configuration is only needed according to the model, so that the cost for configuring and maintaining the modules can be greatly reduced.
The hot-standby redundancy control system of the front-end processor based on the OPC UA technology according to the embodiments of the present invention will be described with reference to the accompanying drawings.
In the present application, reference is made to a structure diagram of a front-end processor hot standby redundancy control system based on OPC UA technology shown in fig. 2.
As shown in fig. 2, the system includes: an active front-end processor server 21, a standby front-end processor server 22, a real-time server 23 and a client 24. The active front-end processor server 21 and the standby front-end processor server 22 are connected to the real-time server 23, and the active front-end processor server 21 and the standby front-end processor server 22 periodically send their UA information to the real-time server 23, respectively.
The real-time server 23 is configured to determine whether the active-standby switching is required according to the UA information of the active front-end server, and send an active-standby switching instruction to the active front-end server 21 and the standby front-end server 22 when the switching is required, so that the active front-end server 21 and the standby front-end server 22 perform the active-standby switching.
The client 24 is connected to the real-time server 23, and configured to receive the UA information of the primary front-end server 21 and the UA information of the standby front-end server 22 sent by the real-time server 23, and send an alarm when it is determined that the hot-standby redundancy control system of the front-end server is in an unowned state according to the UA information of the primary front-end server 21 and the UA information of the standby front-end server 22.
Specifically, the above-mentioned hot standby redundancy system of the front-end processor adopts OPC UA protocol, and issues the information of the main front-end processor server 21 and the standby front-end processor server 22 to the real-time server 23 in the form of UA information, and the real-time server 23 will determine the working states of the main front-end processor server 21 and the standby front-end processor server 22 according to the UA information. When the real-time server 23 determines that the primary front-end processor server 21 is abnormal according to the UA message of the primary front-end processor server 21, the real-time server 23 sends a primary/secondary switching instruction to the primary front-end processor server 21, so that the primary front-end processor server 21 switches to a secondary processor according to the primary/secondary switching instruction, and stops the related functions of the primary processor. Meanwhile, the real-time server 23 sends a primary-standby switching instruction to the standby front-end processor server 22, so that the standby front-end processor server 22 is converted into a primary processor, and relevant functions of the standby front-end processor server 22 are awakened. When the operation state does not need to be switched between the main server and the standby server, the real-time server 23 only needs to monitor the state of the front-end processor server system.
The real-time server 23 further sends UA information of the primary front-end processor server 21 and the standby front-end processor server 22 to the client 24, and the client 24 determines, according to the UA information, that both the primary front-end processor server 21 and the standby front-end processor server 22 are abnormal, that is, when the system is in a state without a primary processor, an alarm is sent out to remind a worker to maintain the system in time.
In the above embodiment, the primary and backup front-end servers respectively send their UA information to the real-time server periodically, the real-time server determines whether the primary and backup switching is required according to the UA information of the primary front-end server, and sends a primary and backup switching instruction to the primary and backup front-end servers when the switching is required, so that the primary and backup front-end servers perform the primary and backup switching, the client receives the UA information of the primary front-end server and the UA information of the backup front-end server sent by the real-time server, and sends an alarm when it is determined that the front-end hot-backup redundancy control system is in the non-primary state according to the UA information of the primary front-end server and the UA information of the backup front-end server, so that the dual-host system does not need to be monitored by using a heartbeat line, the occurrence of the dual-host phenomenon can be effectively avoided based on OPC UA technology, and when the system is in the non-host state, the client can send an alarm so that maintenance personnel can maintain in time, thereby avoiding causing greater loss and improving the reliability of the system.
In one embodiment, the UA information includes configuration information and operational state information. The configuration information comprises a computer name, a computer IP address, a state code and information uploading time, and the state code comprises a main state code or a standby state code.
Specifically, before the system operates, configuration information required by the master and the slave of the front-end processor, that is, IP addresses, computer names, and initial default information of the master front-end processor server 21 and the standby front-end processor server 22 are filled into the configuration tools of the master front-end processor server 21 and the standby front-end processor server 22 as required, and the master front-end processor server 21 and the standby front-end processor server 22 issue the configuration information to the real-time server 23, so that the real-time server 23 can confirm the master front-end processor server 21 and the standby front-end processor server 22 according to the configuration information, and monitor the master front-end processor server 21 and the standby front-end processor server 22 according to a sampling period set in the configuration tools.
When the active front-end server 21 and the standby front-end server 22 are started, the default host is set as the active front-end server according to the default host information in the configuration tool. In the operation process, the active front-end processor server 21 and the standby front-end processor server 22 send the information of the UA point to the real-time server 23 in real time according to the configuration requirement, and the real-time server 23 monitors the active front-end processor server 21 and the standby front-end processor server 22 according to the information of the UA point sent by the front-end processor.
In the embodiment, the cluster configuration of the hot standby system of the front-end processor is not needed, and only the information of the main front-end processor server and the standby front-end and back-end servers is needed to be filled into the configuration tool, the configuration tool can send the configuration information to the real-time server in a UA (user agent) information mode, and the real-time server monitors the two front-end processors in real time according to the sampling period configured in the configuration tool, so that the implementation is convenient. And when the system is maintained and checked, the system can be maintained only by checking the configuration information in the configuration tool, so that the maintenance process is more convenient, the operation is simple, and the maintenance cost is low.
Further, the real-time server 23 monitors the operating states of the active front-end processor server 21 and the standby front-end processor server 22 by receiving UA information of the active front-end processor server 21 and the standby front-end processor server 22, and determines whether the active-standby switching is required according to the UA information.
As an example, when the active front-end processor server 21 cannot send a message to the real-time server 23, the real-time server 23 determines that the active front-end processor server 21 is abnormal, that is, the current active front-end processor server 21 does not satisfy the condition of continuing to be the active front-end processor, and at this time, the real-time server 23 needs to control the active front-end processor server 21 and the standby front-end processor server 22 to perform active-standby switching. The real-time server 23 sends the primary-secondary switching instruction to the primary front-end processor server 21 according to the algorithm, the primary front-end processor server 21 receives the primary-secondary switching instruction and stops the related functions of the primary machine, if the process is successfully converted, the primary front-end processor server 21 modifies the state code of the primary machine in the configuration information into the state code of the standby machine and sends the modified configuration information to the real-time server 23. Meanwhile, the real-time server 23 sends a primary/secondary switching instruction to the secondary front-end processor server 22, when receiving the primary/secondary switching instruction, the secondary front-end processor server 22 starts the function of the primary processor, and if the secondary front-end processor server 22 is successfully switched to the primary front-end processor server 21, the secondary front-end processor server 22 modifies the state code of the secondary processor in the configuration information into the state code of the primary processor and sends the modified configuration information to the real-time server 23, so that the real-time server 23 monitors the operating states of the switched primary front-end processor server 21 and the switched secondary front-end processor server 22.
As another example, when the message sent by the active front-end server 21 to the real-time server 23 is abnormal, the real-time server 23 sends an active/standby switching instruction to the active front-end server 21 and the standby front-end server 22. The primary front-end processor server 21 receives the primary-secondary switching instruction, stops the related functions of the primary front-end processor and converts the primary front-end processor into the standby front-end processor server 22. When receiving the main/standby switching instruction, the standby front-end processor server 22 starts the function of the main processor to switch to the main front-end processor server 21. If the above process is successfully converted, the host front-end server 21 modifies the state code of the primary machine in the configuration information into the state code of the standby machine, and the standby front-end server modifies the state code of the standby machine in the configuration information into the state code of the primary machine and sends the modified state code to the real-time server 23. The real-time server 23 re-determines the primary front-end processor server 21 and the standby front-end processor server 22 according to the received status code.
Further, the client 24 receives the UA information of the active front-end processor server 21 and the standby front-end processor server 22 in real time, and determines whether the hot-standby system of the front-end processor is in the no-host state according to the UA information, and when the hot-standby system of the front-end processor is in the no-host state, the client 24 sends an alarm. In this embodiment, the client 24 includes an alarm module, and when the host is absent, the client 24 sends an alarm through the alarm module, so that maintenance personnel can check the system in time. The alarm module can be a voice alarm module, a sound and light alarm module and the like.
Specifically, when the host is absent in the front-end processor server system, the real-time server sends the state of the front-end processor server system to the client 24, and the client 24 controls the alarm module to light a corresponding alarm lamp or send out an alarm sound, so that maintenance personnel can maintain the fault condition in time, the fault time of the system is shortened, and better experience is provided for users. Or, when the real-time server 23 resolves that the primary front-end processor server 21 has a fault according to the UA message sent by the primary front-end processor server 21, it sends a primary/secondary switching instruction to perform primary/secondary switching, and sends the fault information of the primary front-end processor to the client 24, and the client 24 controls the alarm module to send an alarm according to the fault information of the primary front-end processor, so that the user can check the fault information of the primary front-end processor server 21 in the system at the client and process the fault.
As shown in fig. 2, in one embodiment, the active front-end processor server 21 is further configured to send the processed system data to the real-time server 23, so that the user can view the processed system data in the real-time server 23.
Further, the front-end processor hot standby redundancy control system further includes a history server 25, the history server 25 is connected with the real-time server 23, after the main front-end server 21 sends the processed system data to the real-time server 23, the real-time server 23 further sends the processed system data to the history server 25. The history server 25 then writes the processed system data into the history database so that the client 24 can access and operate the history database.
In the embodiment, by introducing the standby front-end processor server, the standby front-end processor server can be started when the main front-end processor server is abnormal, so that the system cannot run when the main front-end processor server fails. By introducing OPC UA technology, the running state information of the main front-end processor server and the standby front-end processor server is sent to the real-time server in the form of UA information, so that the real-time server can timely control the main front-end processor server and the standby front-end processor server to switch between main and standby when the running state of the main front-end processor server is found to be abnormal, the problem that double-host phenomenon is easy to occur when heartbeat line communication is adopted between the main and standby processors in the traditional technology is avoided, and the reliability of the system is improved. Meanwhile, the OPC UA framework provides an information model of specific application, and only information configuration is needed according to the information model in practical application, so that the cost of system configuration and maintenance can be reduced.
In order to achieve the above object, a second aspect of the present invention provides a control method for a front-end processor hot standby redundancy control system based on OPC UA technology.
Fig. 3 is a control method of a front-end processor hot standby redundancy control system based on OPC UA technology, applied to a real-time server, the method including:
step 310: and receiving UA information sent by the main front-end processor server and the standby front-end processor server.
Step 320: and judging whether the primary front-end processor server is abnormal or not according to the UA information of the primary front-end processor server.
Step 330: when the master front-end processor server is determined to be abnormal, a master-slave switching instruction is sent to the master front-end processor server and the standby front-end processor server, so that the master front-end processor server and the standby front-end processor server can be switched between master and standby.
Step 340: and sending the UA information of the main prepositive server and the UA information of the standby prepositive server to the client, so that the client sends out an alarm when confirming that the hot standby redundancy control system of the prepositive server is in a non-main state according to the UA information of the main prepositive server and the UA information of the standby prepositive server.
In this embodiment, the front-end processor hot standby redundancy control system based on the OPC UA technology includes a primary front-end processor server, a standby front-end processor server, a real-time server, and a client. And receiving UA information sent by the main front-end processor server and the standby front-end processor server through the real-time server, and judging whether the main front-end processor server is abnormal or not according to the UA information of the main front-end processor server. When the master front-end processor server is determined to be abnormal, a master-slave switching instruction is sent to the master front-end processor server and the standby front-end processor server so that the master front-end processor server and the standby front-end processor server can carry out master-slave switching. And the real-time server also sends the UA information of the main prepositive server and the UA information of the standby prepositive server to the client, so that the client sends out an alarm when confirming that the hot standby redundancy control system of the prepositive server is in a non-main state according to the UA information of the main prepositive server and the UA information of the standby prepositive server.
In the above embodiment, the UA information sent by the primary and standby front-end servers is received, whether the primary front-end server is abnormal is determined according to the UA information of the primary front-end server, when it is determined that the primary front-end server is abnormal, a primary-standby switching instruction is sent to the primary and standby front-end servers, so that the primary front-end server and the standby front-end server perform primary-standby switching, and the UA information of the primary front-end server and the UA information of the standby front-end server are sent to the client, so that the client can send an alarm when confirming that the front-end hot standby redundancy control system is in the non-primary state according to the UA information of the primary front-end server and the UA information of the standby front-end server, so that a heartbeat line is not needed to monitor the hot standby system, the occurrence of a double-main phenomenon can be effectively avoided based on a UA OPC technology, and when the system is in the non-main state, the client can send an alarm, so that maintenance personnel can maintain in time, thereby avoiding causing greater loss and improving the reliability of the system.
It should be noted that, for the description of the control method of the hot standby redundancy control system of the front-end processor based on the OPC UA technology in the present application, please refer to the description of the hot standby redundancy control system of the front-end processor based on the OPC UA technology in the present application, and details are not repeated here.
In order to achieve the above object, a third aspect of the present invention provides a computer-readable storage medium, on which a control program of a front-end processor hot-standby redundancy control system based on OPC UA technology is stored, wherein the control program of the front-end processor hot-standby redundancy control system, when executed by a processor, implements the control method of the front-end processor hot-standby redundancy control system as described above.
The computer-readable storage medium of the above embodiment, through the control method of the front-end processor hot standby redundancy control system, does not need to monitor the dual-processor hot standby system by using a heartbeat line, can effectively avoid the occurrence of the dual-host phenomenon based on the OPC UA technology, and when the system is in a no-host state, the client can send out an alarm, so that a maintainer can maintain the system in time, thereby avoiding causing greater loss and improving the reliability of the system.
In order to achieve the above object, a real-time server according to a fourth aspect of the present invention includes a memory, a processor, and a control program of a front-end processor hot standby redundancy control system based on OPC UA technology, where the processor executes the control program of the front-end processor hot standby redundancy control system, so as to implement the control method of the front-end processor hot standby redundancy control system.
The real-time server of the embodiment, through the control method of the front-end processor hot standby redundancy control system, does not need to adopt a heartbeat line to monitor the dual-processor hot standby system, can effectively avoid the occurrence of the dual-host phenomenon based on the OPC UA technology, and when the system is in the no-host state, the client can send out an alarm, so that a maintainer can maintain the system in time, thereby avoiding causing greater loss and improving the reliability of the system.
It should be noted that the logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A front-end processor hot standby redundancy control system based on OPC UA technology is characterized by comprising: a main front-end processor server, a standby front-end processor server, a real-time server and a client, wherein,
the main front-end processor server and the standby front-end processor server respectively send the UA information of the main front-end processor server and the standby front-end processor server to the real-time server periodically;
the real-time server is used for judging whether the main and standby switching is needed according to the UA information of the main front-end processor server, and sending a main and standby switching instruction to the main front-end processor server and the standby front-end processor server when the switching is needed so as to enable the main front-end processor server and the standby front-end processor server to carry out the main and standby switching;
the client is used for receiving the UA information of the main prepositive server and the UA information of the standby prepositive server sent by the real-time server, and sending an alarm when confirming that the hot standby redundancy control system of the prepositive server is in a non-main state according to the UA information of the main prepositive server and the UA information of the standby prepositive server.
2. The OPC UA technology based front-end hot standby redundancy control system of claim 1 wherein said UA information comprises configuration information and operational state information.
3. The OPC UA technology based front-end processor hot standby redundancy control system of claim 2, wherein the configuration information comprises a computer name, a computer IP address, a status code, and an information upload time, wherein the status code comprises a primary status code or a standby status code.
4. The OPC UA technology-based front-end processor hot standby redundancy control system of claim 2, wherein the active front-end processor server, upon receiving the active/standby switching instruction, modifies an active state code in configuration information into a standby state code according to the active/standby switching instruction, and sends the modified UA information to the real-time server;
and when receiving the main/standby switching instruction, the standby front-end processor server modifies the standby state code in the configuration information into the main state code according to the main/standby switching instruction and sends the modified UA information to the real-time server.
5. The OPC UA technology based front-end processor hot standby redundancy control system of claim 1, wherein the primary front-end processor server is further configured to send the processed system data to the real-time server;
the front-end processor hot standby system also comprises a history server, wherein the history server is connected with the real-time server and is used for writing the processed system data into a history database so that the client can access and operate the history database.
6. The OPC UA technology based front-end processor hot standby redundancy control system of claim 1, wherein the real-time server determines that the active front-end processor server is abnormal when the active front-end processor server cannot send a message to the real-time server.
7. The OPC UA technology based front-end processor hot standby redundancy control system of claim 1, wherein when an abnormality occurs in a message sent from the active front-end processor server to the real-time server, the real-time server determines that the active front-end processor server is abnormal.
8. A control method of a front-end processor hot standby redundancy control system based on OPC UA technology is characterized in that the front-end processor hot standby redundancy control system comprises a main front-end processor server, a standby front-end processor server, a real-time server and a client, and the method comprises the following steps:
receiving UA information sent by the main front-end processor server and the standby front-end processor server;
judging whether the main front-end processor server is abnormal or not according to the UA information of the main front-end processor server;
when the master front-end processor server is determined to be abnormal, sending a master-slave switching instruction to the master front-end processor server and the standby front-end processor server so as to enable the master front-end processor server and the standby front-end processor server to carry out master-slave switching;
and sending the UA information of the main prepositive server and the UA information of the standby prepositive server to a client, so that the client sends an alarm when confirming that the hot standby redundancy control system of the prepositive server is in a non-main state according to the UA information of the main prepositive server and the UA information of the standby prepositive server.
9. A computer-readable storage medium, on which a control program of a front-end computer hot standby redundancy control system based on OPC UA technology is stored, which when executed by a processor, implements the control method of the front-end computer hot standby redundancy control system according to claim 8.
10. A real-time server, comprising a memory, a processor and a control program of a front-end processor hot standby redundancy control system based on OPC UA technology, stored in the memory and running on the processor, wherein the processor implements the control method of the front-end processor hot standby redundancy control system according to claim 8 when executing the control program of the front-end processor hot standby redundancy control system.
CN202110725356.1A 2021-06-29 2021-06-29 Hot standby redundancy control system and method of front-end processor based on OPC UA technology Pending CN115616891A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110725356.1A CN115616891A (en) 2021-06-29 2021-06-29 Hot standby redundancy control system and method of front-end processor based on OPC UA technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110725356.1A CN115616891A (en) 2021-06-29 2021-06-29 Hot standby redundancy control system and method of front-end processor based on OPC UA technology

Publications (1)

Publication Number Publication Date
CN115616891A true CN115616891A (en) 2023-01-17

Family

ID=84855811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110725356.1A Pending CN115616891A (en) 2021-06-29 2021-06-29 Hot standby redundancy control system and method of front-end processor based on OPC UA technology

Country Status (1)

Country Link
CN (1) CN115616891A (en)

Similar Documents

Publication Publication Date Title
CN105607590B (en) Method and apparatus to provide redundancy in a process control system
CN108881001B (en) Gateway and method for data conversion based on CANopen protocol and Ethernet protocol
CN112035319B (en) Monitoring alarm system for multipath state
CN104320311A (en) Heartbeat detection method of SCADA distribution type platform
CN111385107B (en) Main/standby switching processing method and device for server
US20070270984A1 (en) Method and Device for Redundancy Control of Electrical Devices
TW201621539A (en) Rack having automatic recovery function and automatic recovery method for the same
CN113867226A (en) Industrial control system-oriented redundant data acquisition system
US20050066017A1 (en) Deterministically electing an active node
CN116699964A (en) Redundant operation method and system for industrial process controller
CN107071189B (en) Connection method of communication equipment physical interface
US7428655B2 (en) Smart card for high-availability clustering
KR101574900B1 (en) Control system for steel plant
US11874786B2 (en) Automatic switching system and method for front end processor
US8965993B2 (en) Entrusted management method for a plurality of rack systems
CN115616891A (en) Hot standby redundancy control system and method of front-end processor based on OPC UA technology
CN109104319B (en) Data storage device and method
CN111309515A (en) Disaster recovery control method, device and system
CN102638369B (en) Method, device and system for arbitrating main/standby switch
CN114840495A (en) Database cluster split-brain prevention method, storage medium and device
CN116074187A (en) Main-standby link switching method and device, electronic equipment and storage medium
CN114528242A (en) Computer platform dual-system synchronization method, device, equipment and medium
KR20140140719A (en) Apparatus and system for synchronizing virtual machine and method for handling fault using the same
CN109510725B (en) Communication equipment fault detection system and method
CN114257500B (en) Fault switching method, system and device for super-fusion cluster internal network

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