Secure real-time bus (SRB) and node control method and device thereof

By introducing a link switching circuit in the safe real-time bus SRB, the first port and the second port are directly connected when a bus node fails, which solves the problem of topology destruction caused by bus node failure and achieves network stability and reliability.

CN120658587APending Publication Date: 2025-09-16北京傲星科技有限公司
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202510832909.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-20
Publication Date
2025-09-16

Smart Images

  • Figure CN120658587A_ABST
    Figure CN120658587A_ABST
Patent Text Reader

Abstract

The invention discloses a secure real-time bus (SRB) and a node control method and device thereof, the bus comprises a plurality of bus nodes connected according to a preset topological structure, and each bus node is provided with an interface module, a first port, a second port and a link switching circuit. The first port is connected with the interface module through the link switching circuit, and the second port is connected with the interface module through the link switching circuit; when the bus node works normally, the link switching circuit is configured to enable the first port to be only communicated with the interface module and enable the second port to be only communicated with the interface module; when the bus node has a fault, the link switching circuit is configured to switch off the first port and the interface module, switch off the second port and the interface module, and communicate the first port and the second port, so that upstream and downstream signals or data can be exchanged when the bus node has a fault without being influenced by the fault. In this way, it can be guaranteed that the original topological structure is not changed when individual bus nodes break down.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of bus technology, and more specifically, to a secure real-time bus (SRB) and a node control method and device thereof. Background Art

[0002] The Safety Real-Time Bus (SRB) is a fieldbus technology that complies with the IEEE 802.3 Ethernet protocol specification and supports linear, star, and ring topologies. For linear and ring topologies, the MAC layer of each bus node in the Safety Real-Time Bus is implemented through internal port forwarding. Figure 1 As shown in Figure 1, each bus node has two ports, one of which forwards data packets received on the other port to a port on the next bus node. The problem is that if a bus node fails, the connection between the bus nodes on either side of it will be interrupted, disrupting the entire network topology. Summary of the Invention

[0003] In view of this, the present application provides a secure real-time bus (SRB) and a node control method and device thereof, which can ensure that the entire network topology is not destroyed when a bus node fails.

[0004] In order to achieve the above objectives, the following solutions are proposed:

[0005] A secure real-time bus (SRB) comprises a plurality of bus nodes connected in a preset topology, each of the bus nodes being provided with an interface module, a first port, a second port and a link switching circuit, wherein:

[0006] The first port is connected to the interface module through the link switching circuit, and the second port is connected to the interface module through the link switching circuit;

[0007] When the bus node operates normally, the link switching circuit is configured to connect the first port only to the interface module and connect the second port only to the interface module;

[0008] When a fault occurs in the bus node, the link switching circuit is configured to disconnect the first port from the interface module, disconnect the second port from the interface module, and connect the first port to the second port.

[0009] Optionally, the link switching circuit includes a first analog switch and a second analog switch, wherein:

[0010] The first port is connected to the interface module via the first analog switch, the second port is connected to the interface module via the second analog switch, and the first analog switch is further connected to the second analog switch;

[0011] When the bus node operates normally, the first analog switch is configured to connect the first port to the interface module, the second analog switch is configured to connect the second port to the interface module, and the connection between the first analog switch and the second analog switch is configured to be disconnected;

[0012] When a fault occurs in the bus node, the first analog switch is configured to disconnect the first port from the interface module, the second analog switch is configured to disconnect the second port from the interface module, and the connection between the first analog switch and the second analog switch is configured to be conductive.

[0013] Optionally, the first analog switch includes a first input-output terminal, a second input-output terminal, and a third input-output terminal, and the second analog switch includes a fourth input-output terminal, a fifth input-output terminal, and a sixth input-output terminal, wherein:

[0014] The first input / output terminal is connected to the first port, the second input / output terminal is connected to the interface module, and the third input / output terminal is connected to the sixth input / output terminal. When the first module switch receives a first control signal, the first input / output terminal is connected to the second input / output terminal. When the first analog switch receives a second control signal, the first input / output terminal is connected to the third input / output terminal.

[0015] The fourth input / output terminal is connected to the second port, and the fifth input / output terminal is connected to the interface module. When the second analog switch receives the first control signal, the fourth input / output terminal is connected to the fifth input / output terminal. When the second analog switch receives the second control signal, the fourth input / output terminal is connected to the sixth input / output terminal.

[0016] Optionally, the second input / output terminal is connected to the interface module via a first signal interface circuit, and the fifth input / output terminal is connected to the interface module via a second signal receiving circuit.

[0017] Optionally, the interface module is respectively connected to the control signal input end of the first analog switch and the control signal input end of the second analog switch, and is used to output the first control signal to the two control signal input ends respectively during normal operation, and is also used to output the second control signal to the two control signal input ends respectively when a fault occurs.

[0018] Optionally, it further includes a first coupling and decoupling module, a second coupling and decoupling module, and a power supply module, wherein:

[0019] The first input and output end is connected to the first port through the first coupling and decoupling module;

[0020] The fourth input and output end is connected to the second port through the second coupling and decoupling module;

[0021] The power supply module is connected to the first coupling and decoupling module and the second coupling and decoupling module respectively.

[0022] A node control method is applied to a bus node of the safe real-time bus (SRB) as described above, and the node control method comprises the steps of:

[0023] When the bus node is operating normally, the interface module is controlled to output a first control signal to the link switching module, wherein the first control signal is used to control the link switching module to connect the interface module to the first port and the second port respectively;

[0024] When the bus node fails, the interface module is controlled to output a second control signal to the link switching module, where the second control signal is used to control the link switching module to directly connect the first port and the second port.

[0025] Optionally, the first control signal and the second control signal are level signals.

[0026] A node control device is applied to a bus node of the above-mentioned secure real-time bus, the node control device comprising:

[0027] a first control module, configured to control the interface module to output a first control signal to the link switching module when the bus node is operating normally, wherein the first control signal is used to control the link switching module to connect the interface module to the first port and the second port respectively;

[0028] The second control module is configured to control the interface module to output a second control signal to the link switching module when a failure occurs in the bus node, wherein the second control signal is used to control the link switching module to directly connect the first port and the second port.

[0029] Optionally, the first control signal and the second control signal are level signals.

[0030] As can be seen from the above technical solution, the present application discloses a secure real-time bus (SRB) and its node control method and device. The bus includes multiple bus nodes connected according to a preset topology. Each bus node is provided with an interface module, a first port, a second port, and a link switching circuit. The first port is connected to the interface module via the link switching circuit, and the second port is connected to the interface module via the link switching circuit. When the bus node is operating normally, the link switching circuit is configured to connect the first port only to the interface module and the second port only to the interface module. When the bus node fails, the link switching circuit is configured to disconnect the first port from the interface module, disconnect the second port from the interface module, and connect the first port to the second port. In this way, upstream and downstream signals or data can still be exchanged even when the bus node fails, without being affected by the failure. In this way, the original topology can be maintained even when individual bus nodes fail. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 any creative work.

[0032] Figure 1 A topological diagram of a secure real-time bus (SRB) according to an embodiment of the present application;

[0033] Figure 2 A schematic diagram of an SRB bus node according to an embodiment of the present application;

[0034] Figure 3 This is a schematic diagram of the connection between two SRB bus nodes according to an embodiment of the present application;

[0035] Figure 4 A schematic diagram of a data path when a bus node fails according to an embodiment of the present application;

[0036] Figure 5 A schematic diagram of another SRB bus node according to an embodiment of the present application;

[0037] Figure 6 This is a flowchart of a node control method according to an embodiment of the present application;

[0038] Figure 7 This is a block diagram of a node control device according to an embodiment of the present application. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0040] This application discloses a method for designing a physical interface for an SRB bus. The secure real-time bus includes multiple bus nodes connected in a predetermined topology. The topology can be linear or ring. The secure real-time bus in this application is designed to maintain its topology even when one or more bus nodes fail.

[0041] The bus node in this application includes a link switching module IC1, an interface module IC2, a first port P1 and a second port P2. Figure 2 As shown. The first port is used to connect to the second port of the adjacent bus node, and the second port is used to connect to the first port of another adjacent bus node, thereby forming a linear topology or a ring topology, as shown in FIG. Figure 3 shown.

[0042] The link switching module of the bus node is connected to the first port, the second port, and the interface module respectively. When it is working, the signal or data enters the link switching module from the first port, and then enters the interface module from the link switching module. The interface module sends the signal or data to the CPU to which it is connected, and then forwards the signal or data output by the CPU to the second port through the link switching module.

[0043] When the bus node of the present application is operating normally, the link switching module is used to connect the first port to the interface module and simultaneously connect the interface module to the second port. In particular, when the bus node fails, the present application can also directly connect the first port to the second port upon receiving a configuration or control instruction, so that the upstream and downstream signals or data can still be exchanged when the bus node fails, without being affected by the failure. Figure 4 shown.

[0044] As can be seen from the above technical solution, this embodiment provides a secure real-time bus (SRB) comprising multiple bus nodes connected in a preset topology. Each bus node is provided with an interface module, a first port, a second port, and a link switching circuit. The first port is connected to the interface module via the link switching circuit, and the second port is connected to the interface module via the link switching circuit. When the bus node is operating normally, the link switching circuit is configured to connect the first port only to the interface module and the second port only to the interface module. When the bus node fails, the link switching circuit is configured to disconnect the first port from the interface module, disconnect the second port from the interface module, and connect the first port to the second port. This allows upstream and downstream signals or data to be exchanged even when the bus node fails, without being affected by the failure. This ensures that the original topology remains unchanged even when individual bus nodes fail.

[0045] The link switching circuit includes a first analog switch K1 and a second analog switch K2. Figure 5 As shown. The first analog switch is provided with a first input / output terminal A1, a second input / output terminal B1, and a third input / output terminal C1, and the second analog switch is provided with a fourth input / output terminal A1, a fifth input / output terminal B2, and a sixth input / output terminal C2. The bus node also includes a first coupling / decoupling module CDN1, a second coupling / decoupling module CDN2, a first signal interface circuit PHY1, a second signal interface circuit PHY2, and a power module.

[0046] Among them, the first input and output end is connected to the first port, the second input and output end is connected to the interface module, and the third input and output end is connected to the sixth input and output end. When the first module switch receives the first control signal, the first input and output end is connected to the second input and output end. When the first analog switch receives the second control signal, the first input and output end is connected to the third input and output end. The second input and output end is connected to the interface module through the first signal interface circuit.

[0047] The fourth input / output terminal is connected to the second port, and the fifth input / output terminal is connected to the interface module. When the second analog switch receives the first control signal, the fourth input / output terminal is connected to the fifth input / output terminal. When the second analog switch receives the second control signal, the fourth input / output terminal is connected to the sixth input / output terminal. The fifth input / output terminal is connected to the interface module through the second signal receiving circuit.

[0048] The interface module is further connected to the control signal input of the first analog switch and the control signal input of the second analog switch via a control port thereof. The interface module is configured to output a first control signal to each of the two control signal inputs during normal operation, and to output a second control signal to each of the two control signal inputs in the event of a fault. The second control signal enables direct connection between the first port and the second port. The first and second control signals are signals with different levels: if the first control signal is low, the second control signal is high, and vice versa.

[0049] In addition, the first input / output terminal is connected to the first port via a first coupling / decoupling module, the fourth input / output terminal is connected to the second port via a second coupling / decoupling module, and the power supply module is connected to the first coupling / decoupling module and the second coupling / decoupling module, respectively. The two coupling / decoupling modules are used to separate the signal from the first port or the second port and send it to the link switching module, or to couple the signal output from the link switching module to the first port or the second port. The coupling / decoupling module is used to transmit the power output from the power supply module to another bus node via the signal line connecting the two grid nodes, thereby providing power to the adjacent node.

[0050] Figure 6 This is a flowchart of a node control method according to an embodiment of the present application.

[0051] like Figure 6 As shown, the node control method provided in this embodiment is applied to the above-mentioned bus node, and specifically includes the following steps:

[0052] S1. When the bus node is operating normally, it outputs a first control signal to the link switching module.

[0053] That is, when the bus node is operating normally, the interface module is controlled to simultaneously output a first control signal to the first analog switch and the second analog switch, thereby connecting the first input / output terminal to the second input / output terminal and simultaneously connecting the fourth input / output terminal to the fifth input / output terminal, so that the bus node can operate normally and output or receive data to or from the CPU connected thereto. The first control signal is a low-level signal or a high-level signal.

[0054] S2. Output a second control signal to the link switching module when a bus node fails.

[0055] Specifically, when a bus node fails, the control interface module simultaneously outputs a second control signal to the first analog switch and the second analog switch, thereby connecting the first input / output terminal to the third input / output terminal and the fourth input / output terminal to the sixth input / output terminal. Given that the third input / output terminal and the sixth input / output terminal are directly connected, the first port and the second port are directly connected, thereby ensuring that the bus node failure does not affect the topology and prevents changes in the topology. The first control signal is either a high-level signal or a low-level signal. Note that the first control signal and the second control signal are opposite.

[0056] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0057] Although the operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.

[0058] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0059] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as C or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer.

[0060] Figure 7 This is a block diagram of a node control device according to an embodiment of the present application.

[0061] like Figure 7 As shown, the node control device provided in this embodiment is applied to the above-mentioned bus node, and specifically includes a first control module 10 and a second control module 20 .

[0062] The first control module is used to control the interface module to output a first control signal to the link switching module when the bus node is operating normally.

[0063] That is, when the bus node is operating normally, the interface module is controlled to simultaneously output a first control signal to the first analog switch and the second analog switch, thereby connecting the first input / output terminal to the second input / output terminal and simultaneously connecting the fourth input / output terminal to the fifth input / output terminal, so that the bus node can operate normally and output or receive data to or from the CPU connected thereto. The first control signal is a low-level signal or a high-level signal.

[0064] The second control module is used to control the interface module to output a second control signal to the link switching module when a bus node fails.

[0065] Specifically, when a bus node fails, the control interface module simultaneously outputs a second control signal to the first analog switch and the second analog switch, thereby connecting the first input / output terminal to the third input / output terminal and the fourth input / output terminal to the sixth input / output terminal. Given that the third input / output terminal and the sixth input / output terminal are directly connected, the first port and the second port are directly connected, thereby ensuring that the bus node failure does not affect the topology and prevents changes in the topology. The first control signal is either a high-level signal or a low-level signal. Note that the first control signal and the second control signal are opposite.

[0066] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0067] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0068] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0069] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0070] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.

[0071] The technical solution provided by the present invention is introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A secure real-time bus (SRB), characterized in that: The system comprises a plurality of bus nodes connected in a preset topology, each of the bus nodes being provided with an interface module, a first port, a second port and a link switching circuit, wherein: The first port is connected to the interface module through the link switching circuit, and the second port is connected to the interface module through the link switching circuit; When the bus node operates normally, the link switching circuit is configured to connect the first port only to the interface module and connect the second port only to the interface module; When a fault occurs in the bus node, the link switching circuit is configured to disconnect the first port from the interface module, disconnect the second port from the interface module, and connect the first port to the second port.

2. The secure real-time bus (SRB) according to claim 1, wherein: The link switching circuit includes a first analog switch and a second analog switch, wherein: The first port is connected to the interface module via the first analog switch, the second port is connected to the interface module via the second analog switch, and the first analog switch is further connected to the second analog switch; When the bus node operates normally, the first analog switch is configured to connect the first port to the interface module, the second analog switch is configured to connect the second port to the interface module, and the connection between the first analog switch and the second analog switch is configured to be disconnected; When a fault occurs in the bus node, the first analog switch is configured to disconnect the first port from the interface module, the second analog switch is configured to disconnect the second port from the interface module, and the connection between the first analog switch and the second analog switch is configured to be conductive.

3. The secure real-time bus (SRB) according to claim 2, wherein: The first analog switch includes a first input-output terminal, a second input-output terminal, and a third input-output terminal, and the second analog switch includes a fourth input-output terminal, a fifth input-output terminal, and a sixth input-output terminal, wherein: The first input / output terminal is connected to the first port, the second input / output terminal is connected to the interface module, and the third input / output terminal is connected to the sixth input / output terminal. When the first module switch receives a first control signal, the first input / output terminal is connected to the second input / output terminal. When the first analog switch receives a second control signal, the first input / output terminal is connected to the third input / output terminal. The fourth input / output terminal is connected to the second port, and the fifth input / output terminal is connected to the interface module. When the second analog switch receives the first control signal, the fourth input / output terminal is connected to the fifth input / output terminal. When the second analog switch receives the second control signal, the fourth input / output terminal is connected to the sixth input / output terminal.

4. The secure real-time bus (SRB) according to claim 3, wherein: The second input / output terminal is connected to the interface module via a first signal interface circuit, and the fifth input / output terminal is connected to the interface module via a second signal receiving circuit.

5. The secure real-time bus (SRB) according to claim 3, wherein: The interface module is respectively connected to the control signal input end of the first analog switch and the control signal input end of the second analog switch, and is used to output the first control signal to the two control signal input ends respectively during normal operation, and is also used to output the second control signal to the two control signal input ends respectively when a fault occurs.

6. The secure real-time bus (SRB) according to claim 3, wherein: It also includes a first coupling and decoupling module, a second coupling and decoupling module and a power supply module, wherein: The first input and output end is connected to the first port through the first coupling and decoupling module; The fourth input and output end is connected to the second port through the second coupling and decoupling module; The power supply module is connected to the first coupling and decoupling module and the second coupling and decoupling module respectively.

7. A node control method, applied to a bus node of the secure real-time bus (SRB) according to any one of claims 1 to 6, characterized in that: The node control method comprises the steps of: When the bus node is operating normally, the interface module is controlled to output a first control signal to the link switching module, wherein the first control signal is used to control the link switching module to connect the interface module to the first port and the second port respectively; When the bus node fails, the interface module is controlled to output a second control signal to the link switching module, where the second control signal is used to control the link switching module to directly connect the first port and the second port.

8. The node control method according to claim 7, wherein: The first control signal and the second control signal are level signals.

9. A node control device, applied to a bus node of the secure real-time bus (SRB) according to any one of claims 1 to 6, characterized in that: The node control device includes: a first control module, configured to control the interface module to output a first control signal to the link switching module when the bus node is operating normally, wherein the first control signal is used to control the link switching module to connect the interface module to the first port and the second port respectively; The second control module is configured to control the interface module to output a second control signal to the link switching module when a failure occurs in the bus node, wherein the second control signal is used to control the link switching module to directly connect the first port and the second port.

10. The node control device according to claim 9, wherein: The first control signal and the second control signal are level signals.

Citation Information

Cited By

  • Network automatic topology method and system for safety control of industrial Internet of Things

    CN120956609A

  • Automatic Network Topology Method and System for Security Control in Industrial Internet of Things

    CN120956609B