Nothing Special   »   [go: up one dir, main page]

CN116055249B - Bus communication system, control method, device and medium thereof - Google Patents

Bus communication system, control method, device and medium thereof Download PDF

Info

Publication number
CN116055249B
CN116055249B CN202310108268.6A CN202310108268A CN116055249B CN 116055249 B CN116055249 B CN 116055249B CN 202310108268 A CN202310108268 A CN 202310108268A CN 116055249 B CN116055249 B CN 116055249B
Authority
CN
China
Prior art keywords
master station
standby
station equipment
communication system
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310108268.6A
Other languages
Chinese (zh)
Other versions
CN116055249A (en
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.)
Hangzhou Hollysys Automation Co Ltd
Original Assignee
Hangzhou Hollysys Automation 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 Hangzhou Hollysys Automation Co Ltd filed Critical Hangzhou Hollysys Automation Co Ltd
Priority to CN202310108268.6A priority Critical patent/CN116055249B/en
Publication of CN116055249A publication Critical patent/CN116055249A/en
Application granted granted Critical
Publication of CN116055249B publication Critical patent/CN116055249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • H04L12/40176Flexible bus arrangements involving redundancy
    • H04L12/40202Flexible bus arrangements involving redundancy by using a plurality of master stations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Hardware Redundancy (AREA)

Abstract

The application relates to the field of communication, and discloses a bus communication system, a control method, a device and a medium thereof, wherein the bus communication system comprises: the system comprises a controller, a master station device, a standby master station device and an alarm device; the controller is connected with the master station equipment to acquire first state information of the master station equipment; the controller is also connected with the standby master station equipment to control the standby master station equipment to execute the master-slave switching operation when the first state information meets a first preset condition; the alarm device is connected with the controller to send alarm information to the manager when the controller detects that the standby master station device meets a second preset condition. According to the scheme, the controller is used for controlling the standby master station equipment to execute the main-standby switching when the master station equipment meets the first preset condition, and sending the alarm information when the standby master station equipment meets the second preset condition, so that the standby master station equipment is maintained in time, the communication system cannot work normally when the host is down due to the communication link failure of the standby equipment, and the stability and the reliability of the communication system are improved.

Description

Bus communication system, control method, device and medium thereof
Technical Field
The present application relates to the field of communications, and in particular, to a bus communication system, and a control method, apparatus, and medium thereof.
Background
The process field bus (Process Field Bus, PROFIBUS) protocol is an open, manufacturer-independent international standard bus protocol, including three protocols PROFIBUS-DP (Distributed Peripherals), PROFIBUS-PA (Process Automation) and PROFIBUS-FMS (Fieldbus Message Specification), and is widely applied to the field of equipment communication. The PROFIBUS-DP communication system comprises a master station device and a slave station device, wherein the master station device and the slave station device are connected through a cable. When a master station device, a slave station device, or a cable fails, interruption of communication and loss of data may be caused.
In order to prevent failure of the primary station device to cause interruption of communication, it is often an option to provide redundant hosts in the communication system. Fig. 1 is a block diagram of a conventional communication system, and as shown in fig. 1, when a redundant host device serving as a master device fails, the redundant host device starts up and receives the master service. The networking mode can greatly improve the stability and reliability of a communication system. However, in the operation process of the communication system, if the redundant host works normally, the redundant host and the slave station communicate bidirectionally, and the redundant slave can only be used for receiving the data sent by the slave station. Therefore, when the redundant standby takes over the primary station service, the system may not work normally due to the communication link failure of the redundant standby.
It can be seen that how to provide a control method for a bus communication system to improve the stability and reliability of the communication system is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a bus communication system control method, a bus communication system control device and a bus communication system control medium, so as to prevent the communication system from not working normally when a host is down due to the communication link failure of a standby device, and improve the stability and the reliability of the communication system.
In order to solve the above technical problems, the present application provides a bus communication system, including: the system comprises a controller, a master station device, a standby master station device and an alarm device;
The controller is connected with the master station equipment to acquire first state information of the master station equipment;
The controller is also connected with the standby master station equipment to control the standby master station equipment to execute a master-slave switching operation when the first state information meets a first preset condition;
The alarm device is connected with the controller to send alarm information when the controller detects that the standby master station device meets a second preset condition.
Preferably, the master station device and the standby master station device both comprise an embedded processor and a master-standby redundancy circuit;
the main and standby redundant circuits comprise a DPRAM circuit and a redundant logic controller.
Preferably, the master station device and the standby master station device are connected with the slave station device through an RS485 bus.
In order to solve the technical problem, the present application further provides a control method of a bus communication system, which is applied to a bus communication system including a controller, a master station device, a standby master station device, and an alarm device, wherein the controller is connected to the master station device and the standby master station device, the alarm device is connected to the controller, and the control method of the bus communication system includes:
Acquiring first state information of the master station equipment;
Judging whether the first state information meets a first preset condition, and if so, controlling the standby master station equipment to execute a master-standby switching operation.
Preferably, the first preset condition includes:
Acquiring a main-standby switching instruction sent by the controller; and/or the current moment satisfies the primary and standby switching period;
The second preset condition is that the communication link of the standby master station equipment fails.
Preferably, after the step of controlling the standby master station device to perform the active-standby switching operation, the method further includes:
and recording the equipment information and the second state information of each standby master station equipment.
Preferably, the method further comprises:
and when the unregistered standby master station device is detected, controlling the unregistered standby master station device to execute a master-slave switching operation.
In order to solve the technical problem, the present application further provides a bus communication system control device, which is applied to a bus communication system including a controller, a master station device, a standby master station device, and an alarm device, wherein the controller is connected to the master station device and the standby master station device, the alarm device is connected to the standby master station device, and the bus communication system control device includes:
the acquisition module is used for acquiring the first state information of the master station equipment;
the control module is used for judging whether the first state information meets a first preset condition, and if so, controlling the standby master station equipment to execute a master-standby switching operation;
and the alarm module is used for judging whether the standby master station equipment meets a second preset condition, and if so, controlling the alarm equipment to send alarm information.
In order to solve the technical problem, the application also provides a bus communication system control device, which comprises a memory for storing a computer program;
And the processor is used for realizing the steps of the bus communication system control method when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the bus communication system control method.
The present application provides a bus communication system comprising: the system comprises a controller, a master station device, a standby master station device and an alarm device; the controller is connected with the master station equipment to acquire first state information of the master station equipment; the controller is also connected with the standby master station equipment to control the standby master station equipment to execute the master-slave switching operation when the first state information meets a first preset condition; the alarm device is connected with the controller to send alarm information to the manager when the controller detects that the standby master station device meets a second preset condition. Therefore, according to the technical scheme provided by the application, the controller is used for controlling the standby master station equipment to execute the main-standby switching operation when the master station equipment meets the first preset condition, and sending the alarm information to the manager through the alarm equipment when the standby master station equipment meets the second preset condition, so that the manager can maintain the standby master station equipment in time, the communication system can not work normally when the host is down due to the communication link failure of the standby equipment, and the stability and the reliability of the communication system are improved.
In addition, the application also provides a control method, a device and a medium of the bus communication system, which are applied to the bus communication system and have the same effects.
Drawings
For a clearer description of embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
Fig. 1 is a block diagram of a conventional communication system;
FIG. 2 is a block diagram of a bus communication system according to an embodiment of the present application;
FIG. 3 is a flowchart of a control method of a bus communication system according to an embodiment of the present application;
fig. 4 is a block diagram of a control device of a bus communication system according to an embodiment of the present application;
FIG. 5 is a block diagram of another control device for a bus communication system according to an embodiment of the present application;
The reference numerals are as follows: 1 is a controller, 2 is a master station device, 3 is a standby master station device, and 4 is an alarm device.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present application.
The core of the application is to provide a bus communication system, a control method, a device and a medium thereof, so as to prevent the communication system from not working normally when a host is down due to the communication link failure of a standby device, and improve the stability and the reliability of the communication system.
In order to better understand the aspects of the present application, the present application will be described in further detail with reference to the accompanying drawings and detailed description.
Fig. 2 is a block diagram of a bus communication system according to an embodiment of the present application, where, as shown in fig. 2, the bus communication system according to the embodiment of the present application includes: the system comprises a controller, a master station device, a standby master station device and an alarm device;
the controller is connected with the master station equipment to acquire first state information of the master station equipment;
the controller is also connected with the standby master station equipment to control the standby master station equipment to execute the master-slave switching operation when the first state information meets a first preset condition;
The alarm device is connected with the controller to send alarm information to the manager when the controller detects that the standby master station device meets a second preset condition.
In the working process of the bus communication system, only one I-type master station exists in the system, so that data can be sent to the slave station equipment of the PROFIBUS-DP only by the master station equipment on the PROFIBUS-DP bus, and the data returned by the PROFIBUS-DP slave station can be received by the master station equipment and the standby master station equipment simultaneously. In this case, the transmission link between the master station device and the slave station device of the DP bus is not in an operating state, and if the transmission link fails, such as a disconnection, during this time, the entire communication system cannot timely detect and report the failure of the transmission link. When the master station equipment fails, the redundant switching control system can control the standby master station equipment to take over the service, so that the standby master station equipment is updated to the master station equipment. If the transmission link of the primary standby master station equipment fails, the master station equipment and the slave station equipment of the communication system can not normally perform data interaction, so that the communication system fails and data are lost. Therefore, the application provides a bus communication system, when the main station equipment meets the first preset condition, the controller controls the standby main station equipment to execute the main-standby switching operation, and when the standby main station equipment meets the second preset condition, the warning equipment sends warning information to the manager, so that the manager can maintain the standby main station equipment in time, and the communication system can not work normally when the main machine is down due to the communication link failure of the standby equipment.
The first preset condition comprises: acquiring a main and standby switching instruction sent by a controller; and/or the current moment satisfies the primary and standby switching period; the second preset condition is that the transmission link of the communication link of the standby master station equipment has a fault.
In specific implementation, after the communication system is powered on, if redundant master station equipment exists in the system, whether the working state of each standby master station equipment is normal is detected in advance, and if so, the standby master station equipment is controlled to initiate primary-standby redundancy switching, so that whether each standby master station equipment can work normally is judged.
It will be appreciated that the number of standby master devices in the system may be one or more, and is not limited herein. If a plurality of standby master station devices exist in the system, equipment information and second state information of each standby master station device are recorded so as to provide data support for executing master-slave switching operation when the master station device is down.
The present application provides a bus communication system comprising: the system comprises a controller, a master station device, a standby master station device and an alarm device; the controller is connected with the master station equipment to acquire first state information of the master station equipment; the controller is also connected with the standby master station equipment to control the standby master station equipment to execute the master-slave switching operation when the first state information meets a first preset condition; the alarm device is connected with the controller to send alarm information to the manager when the controller detects that the standby master station device meets a second preset condition. Therefore, according to the technical scheme provided by the application, the controller is used for controlling the standby master station equipment to execute the main-standby switching operation when the master station equipment meets the first preset condition, and sending the alarm information to the manager through the alarm equipment when the standby master station equipment meets the second preset condition, so that the manager can maintain the standby master station equipment in time, the communication system can not work normally when the host is down due to the communication link failure of the standby equipment, and the stability and the reliability of the communication system are improved.
As a preferred embodiment, the master station device and the standby master station device each comprise an embedded processor and a master-standby redundancy circuit;
the main and standby redundant circuits comprise a DPRAM circuit and a redundant logic controller. The master station equipment and the standby master station equipment are connected with the slave station equipment through an RS485 bus.
Specifically, the master station equipment is connected to a communication network through a bottom plate slot, and reads slave station data through a serial data bus; the string data bus used is an RS485 bus. The master station device comprises a bus transceiver for receiving and transmitting RS485 data, and the bus transceiver is connected with a data link layer chip running a Profibus protocol stack through an isolation circuit. The master station equipment and the standby master station equipment are respectively provided with the following modules: the memory circuit comprises a Flash circuit and a memory circuit DPRAM which are respectively connected with the embedded processor, the Flash circuit stores user application programs, and the DPRAM circuit is used for the embedded processor to execute the user application programs at a high speed; the microprocessor executes operation processing including running a curing program on a Profibus protocol stack and running a user application program on a memory circuit; in addition, a reset circuit is arranged on the embedded processor.
Fig. 3 is a flowchart of a control method of a bus communication system provided by an embodiment of the present application, as shown in fig. 3, where the control method of the bus communication system provided by the embodiment of the present application is applied to a bus communication system including a controller, a master station device, a standby master station device, and an alarm device, the controller is connected to the master station device and the standby master station device, and the alarm device is connected to the controller, so that when the controller detects that the standby master station device meets a second preset condition, alarm information is sent to a manager, and the control method of the bus communication system includes:
S10: acquiring first state information of a master station device;
S11: judging whether the first state information meets a first preset condition, and if so, controlling the standby master station equipment to execute a master-standby switching operation;
s12: judging whether the standby master station equipment meets a second preset condition, and if so, controlling the alarm equipment to send alarm information.
The application provides a control method of a bus communication system, which comprises the following steps: to obtain first state information of the master station device; the controller is also connected with the standby master station equipment to control the standby master station equipment to execute the master-slave switching operation when the first state information meets a first preset condition; the alarm device is connected with the controller to send alarm information to the manager when the controller detects that the standby master station device meets a second preset condition. Therefore, according to the technical scheme provided by the application, the controller is used for controlling the standby master station equipment to execute the main-standby switching operation when the master station equipment meets the first preset condition, and sending the alarm information to the manager through the alarm equipment when the standby master station equipment meets the second preset condition, so that the manager can maintain the standby master station equipment in time, the communication system can not work normally when the host is down due to the communication link failure of the standby equipment, and the stability and the reliability of the communication system are improved.
As a preferred embodiment, the first preset condition includes: acquiring a main and standby switching instruction sent by a controller; and/or the current moment satisfies the primary and standby switching period; the second preset condition is a communication link failure of the standby master station device.
In order to provide data support for performing a master-slave switch when a master station device is down, a preferred embodiment further needs to record device information and second status information of each standby master station device, so as to select a standby master station device that works normally as a new master station device. On the basis of the above embodiment, after the step of controlling the standby master station device to perform the active-standby switching operation, the method further includes: and recording the device information and the second state information of each standby master station device.
The device information comprises device codes, IP information and the like of the standby master station devices, and the second state information is the working state of a data transmission link between each standby master station device and each slave station device.
In order to further improve the stability of the communication system, when another PROFIBUS-DP protocol master station access system becomes a standby master station, a master-slave switching is immediately performed, and whether the communication between the standby master station and the DP slave station is normal is tested. On the basis of the above embodiment, the bus communication system control method further includes: and when the unregistered standby master station device is detected, controlling the unregistered standby master station device to execute a master-slave switching operation.
It will be appreciated that the detection of a new unregistered standby master device includes: the control system has just completed powering on or there is a redundant standby master device for the new access system. Specifically, when the control system has just completed powering up,
If the master station equipment and the standby master station equipment exist in the system at the same time, controlling the communication system to execute a master-standby switching task so as to detect whether the standby master station equipment can work normally as the master station equipment;
if only the main station equipment exists in the system, main-standby switching is not performed, and when redundant standby main station equipment is accessed in the system, main-standby switching is immediately performed once so as to test whether a communication link of the standby main station equipment works normally.
In the above embodiments, the detailed description is given of the control method of the bus communication system, and the present application further provides a corresponding embodiment of the control device of the bus communication system. It should be noted that the present application describes an embodiment of the device portion from two angles, one based on the angle of the functional module and the other based on the angle of the hardware.
Fig. 4 is a block diagram of a control device for a bus communication system according to an embodiment of the present application, as shown in fig. 4, where the control device for a bus communication system is applied to a bus communication system including a controller, a master station device, a standby master station device, and an alarm device, the controller is connected to the master station device and the standby master station device, the alarm device is connected to the controller, and the control device for a bus communication system includes:
an acquisition module 10, configured to acquire first state information of a master station device;
The control module 11 is configured to determine whether the first state information meets a first preset condition, and if the first state information meets the preset condition, control the standby master station device to execute a master-standby switching operation;
And the alarm module 12 is configured to determine whether the standby master station device meets a second preset condition, and if the standby master station device meets the second preset condition, control the alarm device to send alarm information.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
The application provides a bus communication system control device, comprising: to obtain first state information of the master station device; the controller is also connected with the standby master station equipment to control the standby master station equipment to execute the master-slave switching operation when the first state information meets a first preset condition; the alarm device is connected with the controller to send alarm information to the manager when the controller detects that the standby master station device meets a second preset condition. Therefore, according to the technical scheme provided by the application, the controller is used for controlling the standby master station equipment to execute the main-standby switching operation when the master station equipment meets the first preset condition, and sending the alarm information to the manager through the alarm equipment when the standby master station equipment meets the second preset condition, so that the manager can maintain the standby master station equipment in time, the communication system can not work normally when the host is down due to the communication link failure of the standby equipment, and the stability and the reliability of the communication system are improved.
Fig. 5 is a block diagram of a bus communication system control device according to another embodiment of the present application, and as shown in fig. 5, the bus communication system control device includes: a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the bus communication system control method according to the above embodiment when executing a computer program.
The bus communication system control device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The Processor 21 may be implemented in at least one hardware form of a digital signal Processor (DIGITAL SIGNAL Processor, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 21 may also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a central processor (Central Processing Unit, CPU); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with an image processor (Graphics Processing Unit, GPU) for rendering and rendering of content to be displayed by the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, which, when loaded and executed by the processor 21, is capable of implementing the relevant steps of the bus communication system control method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. Operating system 202 may include Windows, unix, linux, among other things. The data 203 may include, but is not limited to, first state information, second state information, first preset conditions, and the like.
In some embodiments, the bus communication system control may further include a display 22, an input-output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is not limiting of the bus communication system control device and may include more or fewer components than shown.
The bus communication system control device provided by the embodiment of the application comprises a memory and a processor, wherein the processor can realize the following method when executing a program stored in the memory: acquiring first state information of a master station device; judging whether the first state information meets a first preset condition, and if so, controlling the standby master station equipment to execute the master-standby switching operation.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The bus communication system, the control method, the device and the medium thereof provided by the application are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (9)

1. A bus communication system, comprising: the system comprises a controller, a master station device, a standby master station device and an alarm device;
The controller is connected with the master station equipment to acquire first state information of the master station equipment;
The controller is also connected with the standby master station equipment to control the standby master station equipment to execute a master-slave switching operation when the first state information meets a first preset condition;
The alarm device is connected with the controller to send alarm information when the controller detects that the standby master station device meets a second preset condition; the bus communication system control method further comprises the following steps: when the unregistered standby master station device is detected, the unregistered standby master station device is controlled to execute a master-standby switching operation;
The detecting of the new unregistered standby master device includes: the control system just completes power-on operation or redundant standby master station equipment with a new access system exists; specifically, when the control system has just completed powering up;
If the master station equipment and the standby master station equipment exist in the system at the same time, controlling the communication system to execute a master-standby switching task so as to detect whether the standby master station equipment can work normally as the master station equipment;
if only the main station equipment exists in the system, main-standby switching is not performed, and when redundant standby main station equipment is accessed in the system, main-standby switching is immediately performed once so as to test whether a communication link of the standby main station equipment works normally.
2. The bus communication system as set forth in claim 1, wherein said master station device, said backup master station device each comprise an embedded processor and a primary-backup redundancy circuit;
the main and standby redundant circuits comprise a DPRAM circuit and a redundant logic controller.
3. The bus communication system as set forth in claim 1, wherein the master station device and the backup master station device are each connected to a slave station device via an RS485 bus.
4. A bus communication system control method, characterized in that it is applied to a bus communication system including a controller, a master station device, a standby master station device, and an alarm device, wherein the controller is connected to both the master station device and the standby master station device, and the alarm device is connected to the controller, the bus communication system control method includes:
Acquiring first state information of the master station equipment;
Judging whether the first state information meets a first preset condition or not, and if so, controlling the standby master station equipment to execute a master-standby switching operation;
Judging whether the standby master station equipment meets a second preset condition, and if so, controlling the alarm equipment to send alarm information; the bus communication system control method further comprises the following steps: when the unregistered standby master station device is detected, the unregistered standby master station device is controlled to execute a master-standby switching operation;
The detecting of the new unregistered standby master device includes: the control system just completes power-on operation or redundant standby master station equipment with a new access system exists; specifically, when the control system has just completed powering up;
If the master station equipment and the standby master station equipment exist in the system at the same time, controlling the communication system to execute a master-standby switching task so as to detect whether the standby master station equipment can work normally as the master station equipment;
if only the main station equipment exists in the system, main-standby switching is not performed, and when redundant standby main station equipment is accessed in the system, main-standby switching is immediately performed once so as to test whether a communication link of the standby main station equipment works normally.
5. The bus communication system control method according to claim 4, wherein the first preset condition includes:
Acquiring a main-standby switching instruction sent by the controller; and/or the current moment satisfies the primary and standby switching period;
The second preset condition is that the communication link of the standby master station equipment fails.
6. The bus communication system control method as set forth in claim 4, wherein after said step of controlling said standby master station device to perform a master-slave switching operation, further comprising:
and recording the equipment information and the second state information of each standby master station equipment.
7. A bus communication system control apparatus, characterized by being applied to a bus communication system including a controller, a master station device, a standby master station device, and an alarm device, wherein the controller is connected to both the master station device and the standby master station device, the alarm device is connected to the standby master station device, the bus communication system control apparatus comprising:
the acquisition module is used for acquiring the first state information of the master station equipment;
the control module is used for judging whether the first state information meets a first preset condition, and if so, controlling the standby master station equipment to execute a master-standby switching operation;
The alarm module is used for judging whether the standby master station equipment meets a second preset condition, and if so, controlling the alarm equipment to send alarm information; the bus communication system control method further comprises the following steps: when the unregistered standby master station device is detected, the unregistered standby master station device is controlled to execute a master-standby switching operation;
The detecting of the new unregistered standby master device includes: the control system just completes power-on operation or redundant standby master station equipment with a new access system exists; specifically, when the control system has just completed powering up;
If the master station equipment and the standby master station equipment exist in the system at the same time, controlling the communication system to execute a master-standby switching task so as to detect whether the standby master station equipment can work normally as the master station equipment;
if only the main station equipment exists in the system, main-standby switching is not performed, and when redundant standby main station equipment is accessed in the system, main-standby switching is immediately performed once so as to test whether a communication link of the standby main station equipment works normally.
8. A bus communication system control device comprising a memory for storing a computer program;
A processor for implementing the steps of the bus communication system control method according to any one of claims 4 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the bus communication system control method according to any of claims 4 to 6.
CN202310108268.6A 2023-02-02 2023-02-02 Bus communication system, control method, device and medium thereof Active CN116055249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310108268.6A CN116055249B (en) 2023-02-02 2023-02-02 Bus communication system, control method, device and medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310108268.6A CN116055249B (en) 2023-02-02 2023-02-02 Bus communication system, control method, device and medium thereof

Publications (2)

Publication Number Publication Date
CN116055249A CN116055249A (en) 2023-05-02
CN116055249B true CN116055249B (en) 2024-09-10

Family

ID=86116385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310108268.6A Active CN116055249B (en) 2023-02-02 2023-02-02 Bus communication system, control method, device and medium thereof

Country Status (1)

Country Link
CN (1) CN116055249B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296065A (en) * 2008-06-19 2008-10-29 浙江中控技术股份有限公司 Method and system for improving reliability of redundancy main station

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100440588B1 (en) * 2002-06-10 2004-07-19 한국전자통신연구원 Status Recognition and Alarm Device of Serial Bus Type Supporting hierarchical Structure
CN1275436C (en) * 2002-08-23 2006-09-13 华为技术有限公司 Method for implementing quick optical fibre protective inversion in ring network and its equipment
JP2004135379A (en) * 2002-10-08 2004-04-30 Yaskawa Electric Corp Controller for intermediate switch
US8305877B2 (en) * 2009-09-10 2012-11-06 Tyco Electronics Subsea Communications Llc System and method for distributed fault sensing and recovery
JP5546663B2 (en) * 2013-03-14 2014-07-09 三菱電機株式会社 Slave station device, master station device, communication line switching method, communication system and control device
CN105718337B (en) * 2016-01-20 2019-02-05 邦彦技术股份有限公司 FPGA-based system and method for automatically detecting and switching master and standby board cards in place
CN109188895A (en) * 2018-09-13 2019-01-11 杭州和利时自动化有限公司 A kind of servo-control system based on Redundancy Design
CN213782953U (en) * 2020-08-05 2021-07-23 中国人民解放军军事科学院国防科技创新研究院 Main and standby power supply switching device and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296065A (en) * 2008-06-19 2008-10-29 浙江中控技术股份有限公司 Method and system for improving reliability of redundancy main station

Also Published As

Publication number Publication date
CN116055249A (en) 2023-05-02

Similar Documents

Publication Publication Date Title
TW201702799A (en) Method and system for dynamically managing power supply
CN111061587A (en) Communication control method, device, equipment and storage medium of I2C bus
CN112199240B (en) Method for switching nodes during node failure and related equipment
CN105159851A (en) Multi-controller storage system
EP3832414A1 (en) Redundant hot standby control system and control device, redundant hot standby method and computer-readable storage medium
CN114355760A (en) Main control station and hot standby redundancy control method thereof
CN117251333A (en) Method, device, equipment and storage medium for acquiring hard disk information
CN114189429B (en) Monitoring system, method, device and medium for server cluster faults
CN113672306B (en) Server component self-checking abnormity recovery method, device, system and medium
CN116055249B (en) Bus communication system, control method, device and medium thereof
CN117331863A (en) Power supply information communication method, system, electronic equipment and storage medium
CN115766410A (en) Method, system, device and medium for switching working states of machine
CN115102937B (en) Self-adaptive communication method, device and medium for server power supply
US11314670B2 (en) Method, apparatus, and device for transmitting file based on BMC, and medium
US11431782B2 (en) Method, apparatus, and device for transmitting file based on BMC, and medium
CN116089139A (en) Method, device and medium for processing serial hard disk faults
CN112491570A (en) Method, device and storage medium for setting link state of virtual network card
CN110661869B (en) Node online method, system, device, equipment and computer storage medium
JP2856617B2 (en) Programmable controller
CN111865411A (en) Switch optical module monitoring method and device and related components
CN110647435A (en) Server, hard disk remote control method and control assembly
EP4068015A1 (en) Controller and control method
CN114301927B (en) Main node selection method, device and medium in distributed system
CN118349290B (en) Dual-memory chip start-up upgrade system, method, device, medium and product
CN116450557A (en) Serial port signal switching method, device and 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
GR01 Patent grant
GR01 Patent grant