A bus communication system and control method, device and medium thereof
The controller controls the backup master station equipment to perform master/backup switching when the master station equipment meets the preset conditions, and sends an alarm message when the backup master station equipment meets the fault conditions, thus solving the host downtime problem caused by the backup equipment communication link failure. , improving the stability and reliability of the bus communication system.
Patent Information
- Application Number
- CN202310108268.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-02
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-02-02
AI Technical Summary
The existing bus communication system cannot detect and handle the failure of the communication link of the backup device in time, resulting in the host being down, the system not being able to work normally, and the stability and reliability being insufficient.
Obtain the status information of the master station equipment through the controller, determine whether the preset conditions are met, control the backup master station equipment to perform master-standby switching operations, and send alarm information to managers through the alarm device to maintain the backup master station equipment in a timely manner and prevent communication Link failure.
It improves the stability and reliability of the communication system, prevents the system from not working properly when the communication link failure of the backup equipment causes the host to go down, and ensures the continuous operation of the system.
Smart Images

Figure CN116055249B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a bus communication system and a control method, device, and medium thereof. Background Art
[0002] The Process Field Bus (PROFIBUS) protocol is an open, manufacturer-independent, international standard bus protocol, including PROFIBUS-DP (Distributed Peripherals), PROFIBUS-PA (Process Automation) and PROFIBUS-FMS (Fieldbus Message Specification), which are widely used in the field of equipment communication. Among them, the PROFIBUS-DP communication system includes master devices and slave devices, and the master device and the slave device are connected by cables. When the master device, slave device or cable fails, communication interruption and data loss may occur.
[0003] In order to prevent communication interruption caused by master station equipment failure, it is usually chosen to set up a redundant host in the communication system. Figure 1 This is a common communication system structure diagram, such as Figure 1 As shown in the figure, when the redundant host of the master station fails, the redundant standby starts and takes over the master station business. This networking method can greatly improve the stability and reliability of the communication system. However, during the operation of the communication system, if the redundant host works normally, the redundant host and the slave station communicate in both directions, and the redundant standby can only be used to receive data sent by the slave station. Therefore, when the redundant standby takes over the master station business, the system may not work properly due to the failure of the communication link of the redundant standby.
[0004] It can be seen that how to provide a bus communication system control method to improve the stability and reliability of the communication system is a problem that those skilled in the art need to solve urgently. Summary of the invention
[0005] The purpose of this application is to provide a bus communication system control and its method, device, and medium to prevent the communication system from failing to work properly when the host is down due to a communication link failure of a backup device, thereby improving the stability and reliability of the communication system.
[0006] In order to solve the above technical problems, the present application provides a bus communication system, including: a controller, a master station device, a backup master station device and an alarm device;
[0007] The controller is connected to the master station device to obtain first status information of the master station device;
[0008] The controller is also connected to the standby master station device to control the standby master station device to perform a master-standby switching operation when the first state information meets a first preset condition;
[0009] The alarm device is connected to the controller to send alarm information when the controller detects that the backup master station device meets a second preset condition.
[0010] Preferably, the master station device and the backup master station device both include an embedded processor and a master-standby redundant circuit;
[0011] Wherein, the active-standby redundant circuit includes a DPRAM circuit and a redundant logic controller.
[0012] Preferably, the master station device and the backup master station device are both connected to the slave station device via an RS485 bus.
[0013] In order to solve the above technical problems, the present application also provides a bus communication system control method, which is applied to a bus communication system including a controller, a master station device, a backup master station device and an alarm device, wherein the controller is connected to the master station device and the backup master station device, and the alarm device is connected to the controller. The bus communication system control method includes:
[0014] Acquire first status information of the master station device;
[0015] It is determined whether the first status information satisfies a first preset condition; if the first preset condition is satisfied, the backup master station device is controlled to perform a master-standby switching operation.
[0016] Preferably, the first preset condition includes:
[0017] The master-slave switching instruction sent by the controller is obtained; and / or the master-slave switching cycle is satisfied at the current moment;
[0018] The second preset condition is that the communication link of the standby master station device fails.
[0019] Preferably, after the step of controlling the standby master station device to perform the master-standby switching operation, the method further includes:
[0020] The device information and the second status information of each of the standby master station devices are recorded.
[0021] Preferably, it also includes:
[0022] When an unregistered standby master station device is detected, the unregistered standby master station device is controlled to perform a master-standby switching operation.
[0023] In order to solve the above technical problems, the present application also provides a bus communication system control device, which is applied to a bus communication system including a controller, a master station device, a backup master station device and an alarm device, wherein the controller is connected to the master station device and the backup master station device, the alarm device is connected to the backup master station device, and the bus communication system control device includes:
[0024] An acquisition module, used for acquiring first status information of the master station device;
[0025] A control module, used for judging whether the first state information satisfies a first preset condition, and if the preset condition is satisfied, controlling the standby master station device to perform a master-standby switching operation;
[0026] The alarm module is used to determine whether the standby master station device meets a second preset condition, and if the second preset condition is met, control the alarm device to send an alarm message.
[0027] In order to solve the above technical problems, the present application also provides a bus communication system control device, including a memory for storing a computer program;
[0028] A processor is used to implement the steps of the bus communication system control method when executing the computer program.
[0029] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the bus communication system control method are implemented.
[0030] The present application provides a bus communication system, including: a controller, a master station device, a backup master station device and an alarm device; the controller is connected to the master station device to obtain the first status information of the master station device; the controller is also connected to the backup master station device to control the backup master station device to perform a master-slave switching operation when the first status information meets a first preset condition; the alarm device is connected to the controller to send an alarm message to the management personnel when the controller detects that the backup master station device meets a second preset condition. It can be seen that the technical solution provided by the present application controls the backup master station device to perform a master-slave switching operation when the master station device meets the first preset condition through the controller, and sends an alarm message to the management personnel through the alarm device when the backup master station device meets the second preset condition, so that the management personnel can maintain the backup master station device in time, so as to prevent the communication system from failing to work normally when the host is down due to a communication link failure of the backup device, thereby improving the stability and reliability of the communication system.
[0031] In addition, the present application also provides a bus communication system control method, device, and medium, which are applied to the above-mentioned bus communication system and have the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0033] Figure 1 This is a structural diagram of a common communication system;
[0034] Figure 2 A structural diagram of a bus communication system provided in an embodiment of the present application;
[0035] Figure 3 A flowchart of a bus communication system control method provided by an embodiment of the present application;
[0036] Figure 4 A structural diagram of a bus communication system control device provided in an embodiment of the present application;
[0037] Figure 5 A structural diagram of another bus communication system control device provided in an embodiment of the present application;
[0038] The reference numerals are as follows: 1 is a controller, 2 is a master station device, 3 is a backup master station device, and 4 is an alarm device. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0040] The core of this application is to provide a bus communication system and its control method, device, and medium to prevent the communication system from failing to work properly when the host is down due to a communication link failure of the backup device, thereby improving the stability and reliability of the communication system.
[0041] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0042] Figure 2 A structural diagram of a bus communication system provided in an embodiment of the present application, such as Figure 2 As shown, the bus communication system provided in the embodiment of the present application includes: a controller, a master station device, a backup master station device and an alarm device;
[0043] The controller is connected to the master station device to obtain first status information of the master station device;
[0044] The controller is also connected to the standby master station device to control the standby master station device to perform a master-standby switching operation when the first state information meets a first preset condition;
[0045] The alarm device is connected to the controller so as to send an alarm message to the management personnel when the controller detects that the standby master station device meets the second preset condition.
[0046] During the operation of the bus communication system, since there can only be one Class I master station in the system, only the master station device can send data to the slave station device of PROFIBUS-DP on the PROFIBUS-DP bus, and the data returned by the PROFIBUS-DP slave station can be received by the master station device and the backup master station device at the same time. In this case, the transmission link between the master station device and the slave station device of the DP bus is not in a working state. At this time, if the transmission link fails, the entire communication system cannot detect the failure of the transmission link in time and report it. When the master station device fails, the redundant switching control system will control the backup master station device to take over the business, thereby upgrading the backup master station device to the master station device. If the transmission link of the original backup master station device fails, it may cause the master station device and the slave station device of the communication system to be unable to interact with data normally, resulting in failure of the communication system and data loss. Therefore, the present application provides a bus communication system, which, when the master station device meets the first preset condition, controls the backup master station device through the controller to perform a master-slave switching operation, and sends an alarm message to the management personnel through the alarm device when the backup master station device meets the second preset condition, so that the management personnel can maintain the backup master station device in time to prevent the communication system from failing to work normally when the host fails due to a communication link failure of the backup device.
[0047] Among them, the first preset condition includes: obtaining the master-slave switching instruction sent by the controller; and / or satisfying the master-slave switching cycle at the current moment; the second preset condition is that the sending link of the standby master station device communication link has a fault.
[0048] In the specific implementation, when the communication system is powered on, if there are redundant master station devices in the system, the working status of each backup master station device is pre-detected to see if it is normal. If normal, the backup master station device is controlled to initiate the master-standby redundant switching, so as to determine whether each backup master station device can work normally.
[0049] It is understandable that the number of standby master station devices in the system can be one or more, which is not limited here. If there are multiple standby master station devices in the system, the device information and second status information of each standby master station device are recorded to provide data support for performing the master-slave switching operation when the master station device fails.
[0050] The present application provides a bus communication system, including: a controller, a master station device, a backup master station device and an alarm device; the controller is connected to the master station device to obtain the first status information of the master station device; the controller is also connected to the backup master station device to control the backup master station device to perform a master-slave switching operation when the first status information meets a first preset condition; the alarm device is connected to the controller to send an alarm message to the management personnel when the controller detects that the backup master station device meets a second preset condition. It can be seen that the technical solution provided by the present application controls the backup master station device to perform a master-slave switching operation when the master station device meets the first preset condition through the controller, and sends an alarm message to the management personnel through the alarm device when the backup master station device meets the second preset condition, so that the management personnel can maintain the backup master station device in time, so as to prevent the communication system from failing to work normally when the host is down due to a communication link failure of the backup device, thereby improving the stability and reliability of the communication system.
[0051] As a preferred embodiment, the master station device and the backup master station device both include an embedded processor and a master-backup redundant circuit;
[0052] The main and standby redundant circuits include DPRAM circuits and redundant logic controllers. The master station device and the standby master station device are connected to the slave station device via RS485 bus.
[0053] Specifically, the master station device is connected to the communication network through the bottom board slot and reads the slave station data through the serial data bus; the serial data bus used is the RS485 bus. The master station device includes a bus transceiver for RS485 data transmission and reception, and the bus transceiver is connected to the data link layer chip running the Profibus protocol stack through an isolation circuit. The master station device and the backup master station device are both equipped with the following modules: a memory circuit, including a Flash circuit and a memory circuit DPRAM respectively connected to the embedded processor, the Flash circuit stores the user application program, and the DPRAM circuit is used for the embedded processor to execute the user application program at high speed; a microprocessor, which performs calculation processing including running the fixed program on the Profibus protocol stack and running the user application program on the memory circuit; in addition, a reset circuit is provided on the embedded processor.
[0054] Figure 3 : A flowchart of a bus communication system control method provided by an embodiment of the present application, such as Figure 3As shown, the bus communication system control method provided in the embodiment of the present application is applied to a bus communication system including a controller, a master station device, a backup master station device and an alarm device, wherein the controller is connected to the master station device and the backup master station device, and the alarm device is connected to the controller, so that when the controller detects that the backup master station device meets the second preset condition, an alarm information is sent to the management personnel, and the bus communication system control method includes:
[0055] S10: Acquire first status information of the master station device;
[0056] S11: determining whether the first state information satisfies a first preset condition, and if so, controlling the standby master station device to perform a master-standby switching operation;
[0057] S12: Determine whether the standby master station device meets a second preset condition, and if the second preset condition is met, control the alarm device to send an alarm message.
[0058] The present application provides a bus communication system control method, including: obtaining the first status information of the master station device; the controller is also connected to the backup master station device to control the backup master station device to perform the master-slave switching operation when the first status information meets the first preset condition; the alarm device is connected to the controller to send an alarm message to the management personnel when the controller detects that the backup master station device meets the second preset condition. It can be seen that the technical solution provided by the present application controls the backup master station device to perform the master-slave switching operation through the controller when the master station device meets the first preset condition, and sends an alarm message to the management personnel through the alarm device when the backup master station device meets the second preset condition, so that the management personnel can maintain the backup master station device in time, so as to prevent the communication system from failing to work normally when the host is down due to the failure of the communication link of the backup device, thereby improving the stability and reliability of the communication system.
[0059] As a preferred embodiment, the first preset condition includes: obtaining the master-slave switching instruction sent by the controller; and / or satisfying the master-slave switching cycle at the current moment; the second preset condition is the failure of the communication link of the backup master station device.
[0060] As a preferred embodiment, in order to provide data support for performing active-standby switching when the master station device fails, it is also necessary to record the device information and the 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. Based on the above embodiment, after the step of controlling the standby master station device to perform the active-standby switching operation, it also includes: recording the device information and the second status information of each standby master station device.
[0061] The device information includes the device code and IP information of the standby master station device, and the second status information is the working status of the data transmission link between each standby master station device and the slave station device.
[0062] As a preferred embodiment, in order to further improve the stability of the communication system, when another PROFIBUS-DP protocol master station accesses the system and becomes a standby master station, a master-standby switch is immediately performed to test whether the communication between the standby master station and the DP slave station is normal. Based on the above embodiment, the bus communication system control method further includes: when an unregistered standby master station device is detected, controlling the unregistered standby master station device to perform a master-standby switch operation.
[0063] It is understandable that the situation where a new unregistered standby master device is detected includes: the control system has just completed power-on, or there is a redundant standby master device newly connected to the system. Specifically, when the control system has just completed power-on,
[0064] If there are both a master station device and a backup master station device in the system, the control communication system performs a master-backup switching task to detect whether the backup master station device can work normally as the master station device;
[0065] If there is only a master station device in the system, no master-slave switching is performed. When a redundant standby master station device is connected to the system, a master-slave switching is performed immediately to test whether the communication link of the standby master station device is working normally.
[0066] In the above embodiments, the bus communication system control method is described in detail, and the present application also provides a corresponding embodiment of the bus communication system control device. It should be noted that the present application describes the embodiments of the device part from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.
[0067] Figure 4 A structural diagram of a bus communication system control device provided in an embodiment of the present application, such as Figure 4 As shown, the bus communication system control device is applied to a bus communication system including a controller, a master station device, a backup master station device and an alarm device, wherein the controller is connected to the master station device and the backup master station device, and the alarm device is connected to the controller. The bus communication system control device includes:
[0068] An acquisition module 10 is used to acquire first status information of a master station device;
[0069] The control module 11 is used to determine whether the first state information satisfies a first preset condition, and if so, to control the standby master station device to perform a master-standby switching operation;
[0070] The alarm module 12 is used to determine whether the standby master station device meets a second preset condition, and if the second preset condition is met, control the alarm device to send an alarm message.
[0071] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0072] The present application provides a bus communication system control device, including: to obtain the first status information of the master station device; the controller is also connected to the backup master station device to control the backup master station device to perform the master-slave switching operation when the first status information meets the first preset condition; the alarm device is connected to the controller to send an alarm message to the management personnel when the controller detects that the backup master station device meets the second preset condition. It can be seen that the technical solution provided by the present application controls the backup master station device to perform the master-slave switching operation through the controller when the master station device meets the first preset condition, and sends an alarm message to the management personnel through the alarm device when the backup master station device meets the second preset condition, so that the management personnel can maintain the backup master station device in time, so as to prevent the communication system from failing to work normally when the host is down due to the failure of the communication link of the backup device, thereby improving the stability and reliability of the communication system.
[0073] Figure 5 A structural diagram of a bus communication system control device provided in another embodiment of the present application, such as Figure 5 As shown, the bus communication system control device includes: a memory 20 for storing a computer program;
[0074] The processor 21 is used to implement the steps of the bus communication system control method of the above embodiment when executing the computer program.
[0075] The bus communication system control device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.
[0076] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0077] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, the relevant steps of the bus communication system control method disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, first state information, second state information, first preset conditions, etc.
[0078] In some embodiments, the bus communication system control may also include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .
[0079] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the bus communication system control device, and may include more or less components than those shown in the figure.
[0080] The bus communication system control device provided in the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: obtain the first status information of the master station device; determine whether the first status information meets the first preset condition, and if the preset condition is met, control the standby master station device to perform the master-standby switching operation.
[0081] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0082] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0083] The bus communication system and its control method, device, and medium provided by the present application are introduced in detail above. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. 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 parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0084] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A bus communication system, characterized in that: include: Controller, master station equipment, backup master station equipment and alarm equipment; The controller is connected to the master station device to obtain first status information of the master station device; The controller is also connected to the standby master station device to control the standby master station device to perform a master-standby switching operation when the first state information meets a first preset condition; The alarm device is connected to the controller to send an alarm message when the controller detects that the backup master station device meets the second preset condition; wherein the bus communication system control method further includes: when an unregistered backup master station device is detected, controlling the unregistered backup master station device to perform a master-slave switching operation; The situation where a new unregistered standby master station device is detected includes: the control system has just completed power-on, or there is a redundant standby master station device newly connected to the system; specifically, when the control system has just completed power-on; If there are both a master station device and a backup master station device in the system, the control communication system performs a master-backup switching task to detect whether the backup master station device can work normally as the master station device; If there is only a master station device in the system, no master-slave switching is performed. When a redundant standby master station device is connected to the system, a master-slave switching is performed immediately to test whether the communication link of the standby master station device is working normally.
2. The bus communication system according to claim 1, characterized in that: The master station device and the standby master station device both include an embedded processor and a master-standby redundant circuit; Wherein, the active-standby redundant circuit includes a DPRAM circuit and a redundant logic controller.
3. The bus communication system according to claim 1, characterized in that: The master station device and the standby master station device are both connected to the slave station device via an RS485 bus.
4. A bus communication system control method, characterized in that: A bus communication system is applied to a controller, a master station device, a backup master station device and an alarm device, wherein the controller is connected to the master station device and the backup master station device, the alarm device is connected to the controller, and the bus communication system control method includes: Acquire first status information of the master station device; Determine whether the first state information satisfies a first preset condition, and if the first preset condition is satisfied, control the standby master station device to perform a master-standby switching operation; Determine whether the standby master station device meets the second preset condition, and if the second preset condition is met, control the alarm device to send an alarm message; wherein the bus communication system control method further includes: when an unregistered standby master station device is detected, control the unregistered standby master station device to perform a master-standby switching operation; The situation where a new unregistered standby master station device is detected includes: the control system has just completed power-on, or there is a redundant standby master station device newly connected to the system; specifically, when the control system has just completed power-on; If there are both a master station device and a backup master station device in the system, the control communication system performs a master-backup switching task to detect whether the backup master station device can work normally as the master station device; If there is only a master station device in the system, no master-slave switching is performed. When a redundant standby master station device is connected to the system, a master-slave switching is performed immediately to test whether the communication link of the standby master station device is working normally.
5. The bus communication system control method according to claim 4, characterized in that: The first preset condition includes: The master-slave switching instruction sent by the controller is obtained; and / or the master-slave switching cycle is met at the current moment; The second preset condition is that the communication link of the standby master station device fails.
6. The bus communication system control method according to claim 4, characterized in that: After the step of controlling the standby master station device to perform the master-standby switching operation, the method further includes: The device information and the second status information of each of the standby master station devices are recorded.
7. A bus communication system control device, characterized in that: Applicable to a bus communication system including a controller, a master station device, a backup master station device and an alarm device, wherein the controller is connected to both the master station device and the backup master station device, the alarm device is connected to the backup master station device, and the bus communication system control device includes: An acquisition module, used for acquiring first status information of the master station device; A control module, used for judging whether the first state information satisfies a first preset condition, and if the preset condition is satisfied, controlling the standby master station device to perform a master-standby switching operation; An alarm module is used to determine whether the standby master station device meets a second preset condition, and if the second preset condition is met, control the alarm device to send an alarm message; wherein the bus communication system control method further includes: when an unregistered standby master station device is detected, control the unregistered standby master station device to perform a master-standby switching operation; The situation where a new unregistered standby master station device is detected includes: the control system has just completed power-on, or there is a redundant standby master station device newly connected to the system; specifically, when the control system has just completed power-on; If there are both a master station device and a backup master station device in the system, the control communication system performs a master-backup switching task to detect whether the backup master station device can work normally as the master station device; If there is only a master station device in the system, no master-slave switching is performed. When a redundant standby master station device is connected to the system, a master-slave switching is performed immediately to test whether the communication link of the standby master station device is working normally.
8. A bus communication system control device, characterized in that: comprising a memory for storing a computer program; A processor, configured to implement the steps of the bus communication system control method as claimed in 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 stores a computer program, and when the computer program is executed by a processor, the steps of the bus communication system control method according to any one of claims 4 to 6 are implemented.
