A communication message transmission method based on SRB bus and related device

By setting instance identifiers and forwarding ports in the SRB bus system, the problem of device interference caused by broadcast transmission was solved, and accurate transmission of communication messages was achieved, ensuring normal device operation.

CN121418227BActive Publication Date: 2026-03-27BEIJING ZHONGTIAN STAR CONTROL TECH DEV CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-12-29
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing SRB bus communication, broadcast message transmission causes non-participating devices to also receive communication messages, affecting the normal use of the devices.

Method used

By setting an instance identifier in the SRB bus system, it is determined whether the communication device is a shared device, and the forwarding port is determined based on the instance identifier and the system identifier. Communication messages are only transmitted to the set forwarding port to avoid broadcast transmission.

Benefits of technology

This ensures that communication messages are only transmitted to the designated port, avoiding interference with all devices and guaranteeing the normal operation of each communication device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121418227B_ABST
    Figure CN121418227B_ABST
Patent Text Reader

Abstract

The application provides a communication message transmission method based on an SRB bus and related equipment, which is applied to the field of data communication. The method can be implemented in an SRB bus system, the system includes multiple SRB subsystems, each subsystem includes multiple communication devices, and any subsystem shares communication devices with the subsystems having a connection relationship with the subsystem. The method includes the following steps: when a current communication device receives a communication message, it is determined whether the current communication device is a shared device, if the current communication device is a shared device, an instance identifier carried in the communication message is determined; the SRB subsystem to which the instance identifier belongs is determined; in the SRB subsystem to which the instance identifier belongs, a forwarding port corresponding to the instance identifier is determined, and the communication message is transmitted by the forwarding port. The transmission method provided by the application only transmits the communication message to the set forwarding port, avoids broadcasting the communication message to all communication devices, and ensures the normal use of each communication device.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of data communication, in particular to a communication message transmission method based on SRB bus and related equipment. BACKGROUND

[0002] SRB (secure real-time bus) is an industrial data field bus based on high-performance semiconductor component technology. After each communication device is connected through the SRB bus, the communication process between each communication device generally adopts broadcast form communication, that is, any device sends a communication message, and all other node devices can receive it.

[0003] The inventor found through research that in the process of communication message communication of each communication device, since the broadcast form is used for message transmission, the communication device that does not participate in the communication message also receives the related communication message, which affects the normal use of each communication device. SUMMARY

[0004] The technical problem to be solved by the present application is to provide a communication message transmission method based on SRB bus, which transmits communication messages to only the set forwarding port, avoids the problem of broadcast communication message transmission to all communication devices, and ensures the normal use of each communication device.

[0005] The present application also provides a communication message transmission device based on SRB bus, which is used to ensure the implementation and application of the above method in practice.

[0006] A communication message transmission method based on SRB bus, which is applied to an SRB bus system, the SRB bus system includes a plurality of SRB subsystems, each of the SRB subsystems includes a plurality of communication devices, each of the communication devices in each of the SRB subsystems is connected to each other according to a set connection path, and any one of the SRB subsystems and the SRB subsystems having a connection relationship with it share at least one communication device; the method comprises:

[0007] When a current communication device receives a communication message, it is determined whether the current communication device is a shared device, the shared device being a communication device shared by at least two SRB subsystems having a connection relationship;

[0008] If the current communication device is a shared device, the instance identifier carried in the communication message is determined;

[0009] The SRB subsystem to which the instance identifier belongs is determined;

[0010] In the SRB subsystem to which the instance identifier belongs, the forwarding port corresponding to the instance identifier is determined;

[0011] outputting the communication message to the forwarding port, and transmitting the communication message by the forwarding port.

[0012] The SRB bus-based communication message transmission method can further include the following steps.

[0013] If the current communication device is not a common device, determining an SRB subsystem in which the current communication device is located.

[0014] Determining a forwarding port in the SRB subsystem in which the current communication device is located, to transmit the communication message.

[0015] The SRB bus-based communication message transmission method can further include the following steps of determining whether the current communication device is a common device.

[0016] In the device list of the current communication device, searching for the identification information corresponding to the current communication device.

[0017] If the number of the identification information corresponding to the current communication device is greater than 1, determining that the current communication device is a common device.

[0018] The SRB bus-based communication message transmission method can further include the following steps of determining the SRB subsystem to which the instance identification belongs.

[0019] Determining the system identification of each SRB subsystem.

[0020] Matching the instance identification with the system identification of each SRB subsystem one by one.

[0021] Determining the SRB subsystem in which the system identification matches the instance identification as the SRB subsystem to which the instance identification belongs.

[0022] The SRB bus-based communication message transmission method can further include the following steps of determining the forwarding port corresponding to the instance identification.

[0023] In the SRB subsystem to which the instance identification belongs, determining the flow direction of the communication message according to the preset communication message transmission path.

[0024] According to the flow direction, determining the forwarding port corresponding to the instance identification in the current communication device.

[0025] A communication message transmission device based on SRB bus, which is applied to an SRB bus system, the SRB bus system comprising a plurality of SRB subsystems, each of the SRB subsystems comprising a plurality of communication devices, each of the communication devices in each of the SRB subsystems being connected with each other according to a set connection path, and any one of the SRB subsystems sharing at least one communication device with the SRB subsystems having a connection relationship with the any one of the SRB subsystems; the device comprising:

[0026] a first determination unit configured to determine whether a current communication device is a shared device when the current communication device receives a communication message, the shared device being a communication device shared by at least two SRB subsystems having a connection relationship;

[0027] a second determination unit configured to determine an instance identifier carried in the communication message if the current communication device is the shared device;

[0028] a third determination unit configured to determine an SRB subsystem to which the instance identifier belongs;

[0029] a fourth determination unit configured to determine a forwarding port corresponding to the instance identifier in the SRB subsystem to which the instance identifier belongs;

[0030] a transmission unit configured to output the communication message to the forwarding port and transmit the communication message by the forwarding port.

[0031] The communication message transmission device based on SRB bus described above, optionally, further comprises:

[0032] a fifth determination unit configured to determine an SRB subsystem in which the current communication device is located if the current communication device is not the shared device, and determine a forwarding port in the SRB subsystem in which the current communication device is located to transmit the communication message.

[0033] The communication message transmission device based on SRB bus described above, optionally, the first determination unit comprises:

[0034] a searching subunit configured to search for identification information corresponding to the current communication device in a device list of the current communication device;

[0035] a determination subunit configured to determine that the current communication device is the shared device if a quantity of the identification information corresponding to the current communication device is greater than 1.

[0036] A storage medium comprising stored instructions, wherein the instructions, when executed, control a device in which the storage medium is located to perform the communication message transmission method based on SRB bus described above.

[0037] An electronic device includes a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to perform the above-mentioned SRB bus-based communication message transmission method by one or more processors.

[0038] Compared with the prior art, the present application has the following advantages:

[0039] The present application provides an SRB bus-based communication message transmission method, which is applied to an SRB bus system, the SRB bus system including a plurality of SRB subsystems, each of the SRB subsystems including a plurality of communication devices, each of the communication devices in each of the SRB subsystems being connected to each other according to a set connection path, and any one of the SRB subsystems sharing at least one communication device with the SRB subsystems having a connection relationship with the any one of the SRB subsystems. The method includes: when a current communication device receives a communication message, determining whether the current communication device is a shared device, the shared device being a communication device shared by at least two SRB subsystems having a connection relationship; if the current communication device is the shared device, determining an instance identifier carried in the communication message; determining an SRB subsystem to which the instance identifier belongs; determining a forwarding port corresponding to the instance identifier in the SRB subsystem to which the instance identifier belongs; and outputting the communication message to the forwarding port, and transmitting the communication message by the forwarding port. The SRB bus-based communication message transmission method provided by the present application embodiment only transmits the communication message to the set forwarding port, avoids the problem that the communication message is broadcast to all communication devices, and ensures normal use of the communication devices. BRIEF DESCRIPTION OF DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor based on the provided drawings.

[0041] Figure 1 A method flowchart of an SRB bus-based communication message transmission method provided by the present application embodiment;

[0042] Figure 2 A structural schematic diagram of an SRB bus provided by the present application embodiment;

[0043] Figure 3 Another structural schematic diagram of an SRB bus provided by the present application embodiment;

[0044] Figure 4A structural schematic diagram of a communication message transmission device based on an SRB bus is provided for an embodiment of the present application.

[0045] Figure 5 A structural schematic diagram of an electronic device is provided for an embodiment of the present application. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present application will be clearly and completely described with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative effort fall within the protection scope of the present application.

[0047] The present application can be used in many general or special-purpose computing device environments or configurations. For example: personal computers, server computers, handheld or laptop devices, tablet devices, multiprocessor devices, distributed computing environments that include any of the above devices or devices, and the like.

[0048] The embodiment of the present application provides a communication message transmission method based on an SRB bus, which can be applied to each SRB bus system, and the execution subject can be a processor in the SRB bus system. The SRB bus system provided by the embodiment of the present application includes a plurality of SRB subsystems. Each SRB subsystem includes a plurality of communication devices. Each communication device in each SRB subsystem is connected to each other according to a set connection path. Any SRB subsystem and the SRB subsystem having a connection relationship share at least one communication device. The method flowchart of the method is as shown in the figure. Figure 1

[0049] S101: When a communication message is received by a current communication device, it is determined whether the current communication device is a shared device. The shared device is a communication device shared by at least two SRB subsystems having a connection relationship.

[0050] In the method provided by the embodiment of the present application, when any communication device in the SRB bus system receives a communication message, it is determined whether the communication device is a shared device. The communication message received by the communication device is forwarded and transmitted by other communication devices in the SRB bus system having a communication connection with the communication device.

[0051] In the method provided by the embodiment of the present application, the SRB bus system can include a plurality of SRB subsystems. Each SRB subsystem shares at least one communication device with the SRB subsystem having a connection relationship, as shown in the figure. Figure 2 ​As shown, the first SRB subsystem includes communication device 1, communication device 2, communication device 3 and communication device 4, and the second SRB subsystem includes communication device 3, communication device 4, communication device 5 and communication device 6; wherein the communication device 3 and the communication device 4 are common devices of the first SRB subsystem and the second SRB subsystem.

[0052] In the prior SRB bus system, when the communication device 1 sends a communication message, the communication message is propagated in the first SRB subsystem and also propagated in the second SRB subsystem through the communication device 4 or the communication device 3. Figure 2 In the prior SRB bus system, when the communication device 1 sends a communication message, the communication message is propagated in the first SRB subsystem and also propagated in the second SRB subsystem through the communication device 4 or the communication device 3.

[0053] In the method provided by the embodiment of the application, each SRB subsystem is identified by an instance identifier, for example, the communication message propagated in the first SRB subsystem is identified by an instance identifier 1, and the communication message propagated in the second SRB subsystem is identified by an instance identifier 2.

[0054] In the method provided by the embodiment of the application, each SRB subsystem is identified by an instance identifier, for example, the communication message propagated in the first SRB subsystem is identified by an instance identifier 1, and the communication message propagated in the second SRB subsystem is identified by an instance identifier 2.

[0055] As shown, the three SRB subsystems share one communication device d, and the composition structure of the SRB bus system provided by the embodiment of the application can be extended to include multiple SRB subsystems. Figure 3

[0056] S102: If the current communication device is a common device, determining an instance identifier carried in the communication message;

[0057] In the method provided by the embodiment of the application, when the current communication device is determined to be a common device, an instance identifier carried in the communication message received by the current communication device is determined.

[0058] S103: Determining an SRB subsystem to which the instance identifier belongs;

[0059] ​The method provided by the embodiment of the application comprises the following steps.

[0060] In the method provided by the embodiment of the application, the SRB instance identifier is used to determine the forwarding port corresponding to the communication message.

[0061] In the method provided by the embodiment of the application, the forwarding port to which the communication message needs to be forwarded next can be further determined according to the instance identifier.

[0062] S105: outputting the communication message to the forwarding port, and transmitting the communication message by the forwarding port.

[0063] The method for transmitting a communication message based on an SRB bus provided by the embodiment of the application comprises the following steps.

[0064] The method provided by the embodiment of the application further comprises the following steps.

[0065] If the current communication device is not a shared device, the SRB subsystem in which the current communication device is located is determined.

[0066] The forwarding port in the SRB subsystem in which the current communication device is located is determined, so as to transmit the communication message.

[0067] In the method provided by the embodiment of the application, if the current communication device is not a shared device, the forwarding port corresponding to the SRB subsystem in which the current communication device is located can be directly determined, so as to transmit the communication message.

[0068] The method provided by the embodiment of the application comprises the following steps.

[0069] In the device list of the current communication device, the identifier information corresponding to the current communication device is searched.

[0070] If the number of the identifier information corresponding to the current communication device is greater than 1, it is determined that the current communication device is a shared device.

[0071] The method provided by the embodiment of the application comprises the following steps: a device list is arranged in each communication device, and the device list records identification information corresponding to the communication device; the identification information represents which SRB subsystems the communication device can transmit communication messages for; therefore, if the number of the identification information corresponding to the current communication device is greater than 1, it can be determined that the current communication device is a shared device.

[0072] The method provided by the embodiment of the application comprises the following steps:

[0073] The system identification of each SRB subsystem is determined.

[0074] The instance identification is matched with the system identification of each SRB subsystem one by one.

[0075] The SRB subsystem, of which the system identification matches the instance identification, is determined as the SRB subsystem to which the instance identification belongs.

[0076] The method provided by the embodiment of the application comprises the following steps:

[0077] In the SRB subsystem to which the instance identification belongs, the flow direction of the communication message is determined according to the set communication message transmission path.

[0078] According to the flow direction, the forwarding port corresponding to the instance identification in the current communication device is determined.

[0079] In the method provided by the embodiment of the application, the order of the communication message forwarding between the communication devices can be set according to the functions of the SRB subsystems, and the flow direction of the communication message is set as the transmission direction between the communication devices.

[0080] Corresponding to the communication message transmission device based on the SRB bus shown in Figure 1 The embodiment of the application also provides a communication message transmission device based on the SRB bus, and a structure diagram of the device is shown in Figure 4 The device is applied to an SRB bus system, the SRB bus system comprises a plurality of SRB subsystems, each SRB subsystem comprises a plurality of communication devices, each communication device in each SRB subsystem is connected to each other according to a set connection path, and any SRB subsystem and the SRB subsystems having a connection relationship with the SRB subsystem share at least one communication device; the device comprises the following units:

[0081] The first determination unit 201 is configured to determine whether the current communication device is a shared device when the current communication device receives a communication message, and the shared device is a communication device shared by at least two SRB subsystems having a connection relationship.

[0082] The second determining unit 202 is configured to determine an instance identifier carried in the communication message if the current communication device is a shared device.

[0083] The third determining unit 203 is configured to determine an SRB subsystem to which the instance identifier belongs.

[0084] The fourth determining unit 204 is configured to determine a forwarding port corresponding to the instance identifier in the SRB subsystem to which the instance identifier belongs.

[0085] The transmitting unit 205 is configured to output the communication message to the forwarding port, and transmit the communication message by the forwarding port.

[0086] The communication message transmitting device based on the SRB bus provided by the embodiment of the present application sets an SRB instance identifier in each SRB subsystem in the SRB bus system, and the communication message carries the SRB instance identifier in the propagation process. Each communication device determines the SRB subsystem range in which the communication message can flow by identifying the corresponding SRB instance identifier when receiving the communication message. Further, the communication message can be transmitted between the set SRB subsystems, and will not be transmitted to all communication devices, thereby ensuring the normal use of each communication device.

[0087] The device provided by the embodiment of the present application further comprises:

[0088] The fifth determining unit is configured to determine the SRB subsystem in which the current communication device is located if the current communication device is not a shared device, and determine a forwarding port in the SRB subsystem in which the current communication device is located to transmit the communication message.

[0089] The device provided by the embodiment of the present application, the first determining unit comprises:

[0090] The searching subunit is configured to search the identifier information corresponding to the current communication device in the device list of the current communication device.

[0091] The determining subunit is configured to determine that the current communication device is a shared device if the number of the identifier information corresponding to the current communication device is greater than 1.

[0092] The embodiment of the present application further provides a storage medium, which comprises stored instructions, wherein the instructions control a device in which the storage medium is located to execute the communication message transmitting method based on the SRB bus when the instructions are executed.

[0093] The embodiment of the present application further provides an electronic device which can be applied to the SRB bus system, the SRB bus system comprising a plurality of SRB subsystems, each of the SRB subsystems comprising a plurality of communication devices, each of the communication devices in each of the SRB subsystems being connected with each other according to a set connection path, and any one of the SRB subsystems sharing at least one communication device with the SRB subsystems having a connection relationship with the any one of the SRB subsystems, and a structure diagram of the electronic device is as shown in Figure 5 The electronic device comprises a memory 301 and one or more than one instruction 302, wherein the one or more than one instruction 302 is stored in the memory 301 and is configured to perform the one or more than one instruction 302 by the one or more than one processor 303 to perform the following operations:

[0094] When the current communication device receives the communication message, it is determined whether the current communication device is a shared device, wherein the shared device is a communication device shared by at least two SRB subsystems having a connection relationship;

[0095] If the current communication device is a shared device, an instance identifier carried in the communication message is determined;

[0096] An SRB subsystem to which the instance identifier belongs is determined;

[0097] In the SRB subsystem to which the instance identifier belongs, a forwarding port corresponding to the instance identifier is determined;

[0098] The communication message is output to the forwarding port, and the communication message is transmitted by the forwarding port.

[0099] It should be noted that each of the embodiments in the present application is described in a progressive manner, and each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.

[0100] Finally, it is to be understood that the phraseology or terminology employed herein, such as "first" and "second", etc. for example, are for the purpose of differentiating one from another instantiation or action without imposing an inherent order or sequence. Also, the use of terminology or expressions such as "including", "containing" or "comprising", or other derivatives does not exclude or preclude the inclusion of additional, non-recited elements or steps, or that an additional element is essential to the process, method, article, or apparatus. An element proceeded by "comprises a", "comprising", or "includes" does not, without more restrictions, exclude the inclusion of other elements or any combination of elements that can be added to, associated with, or that can be separated from, the process, method, article, or apparatus including the element.

[0101] For the convenience of description, the above apparatus is described in various units according to functions. Of course, the functions of the units can be implemented in one or more software and / or hardware in the implementation of the present application.

[0102] From the above description of the embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software and the necessary general hardware platform. Based on such an understanding, the technical solutions of the present application, essentially or in the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0103] The above provides a detailed description of a communication message transmission method based on an SRB bus and related equipment. The principles and implementation modes of the present application are described by applying specific examples. The above description of the embodiments is only used to help understand the method and its core idea. For those skilled in the art, according to the idea of the present application, the specific implementation mode and application range can be changed. In summary, the content of the specification should not be understood as a limitation of the present application.

Claims

1. A method for transmitting a communication message based on a SRB bus, characterized in that, The method is applied to an SRB bus system, the SRB bus system comprising a plurality of SRB subsystems, each of the SRB subsystems comprising a plurality of communication devices, each of the communication devices in each of the SRB subsystems being connected to each other according to a set connection path, and any one of the SRB subsystems sharing at least one communication device with SRB subsystems having a connection relationship with the any one of the SRB subsystems; the method comprising: when a current communication device receives a communication message, determining whether the current communication device is a shared device, the shared device being a communication device shared by at least two SRB subsystems having a connection relationship; if the current communication device is the shared device, determining an instance identifier carried in the communication message; determining an SRB subsystem to which the instance identifier belongs; in the SRB subsystem to which the instance identifier belongs, determining a forwarding port corresponding to the instance identifier; outputting the communication message to the forwarding port, and transmitting the communication message by the forwarding port.

2. The SRB bus-based communication message transfer method according to claim 1, wherein, Further comprising: if the current communication device is not the shared device, determining an SRB subsystem in which the current communication device is located; determining a forwarding port in the SRB subsystem in which the current communication device is located, to transmit the communication message.

3. The SRB bus-based communication message transfer method according to claim 1, wherein, The determination of whether the current communication device is the shared device comprises: in a device list of the current communication device, searching for identification information corresponding to the current communication device; if a quantity of the identification information corresponding to the current communication device is greater than 1, determining that the current communication device is the shared device.

4. The SRB bus-based communication message transfer method according to claim 1, wherein, The determination of the SRB subsystem to which the instance identifier belongs comprises: determining a system identifier of each of the SRB subsystems; matching the instance identifier with the system identifier of each of the SRB subsystems one by one; determining, as the SRB subsystem to which the instance identifier belongs, an SRB subsystem in which the system identifier is matched with the instance identifier.

5. The SRB bus-based communication message transfer method according to claim 1, wherein, The determination of the forwarding port corresponding to the instance identifier comprises: in the SRB subsystem to which the instance identifier belongs, determining a flow direction of the communication message according to a set communication message transmission path; determining, according to the flow direction, a forwarding port corresponding to the instance identifier in the current communication device.

6. A communication message transfer apparatus based on an SRB bus, characterized by comprising: The device is applied to an SRB bus system, the SRB bus system comprising a plurality of SRB subsystems, each of the SRB subsystems comprising a plurality of communication devices, each of the communication devices in each of the SRB subsystems being connected to each other according to a set connection path, and any one of the SRB subsystems sharing at least one communication device with SRB subsystems having a connection relationship with the any one of the SRB subsystems; the device comprising: a first determination unit configured to, when a current communication device receives a communication message, determine whether the current communication device is a shared device, the shared device being a communication device shared by at least two SRB subsystems having a connection relationship; a second determination unit configured to, if the current communication device is the shared device, determine an instance identifier carried in the communication message; a third determination unit configured to determine an SRB subsystem to which the instance identifier belongs; A fourth determining unit is configured to determine a forwarding port corresponding to the instance identifier in a SRB subsystem to which the instance identifier belongs. A transmitting unit is configured to output the communication message to the forwarding port, and transmit the communication message by the forwarding port.

7. The SRB bus-based communication message transfer device according to claim 6, wherein, Further comprising: A fifth determining unit is configured to determine a SRB subsystem in which the current communication device is located if the current communication device is not a shared device. A forwarding port is determined in the SRB subsystem in which the current communication device is located to transmit the communication message.

8. The SRB bus-based communication message transfer device according to claim 6, wherein, The first determining unit comprises: A searching sub-unit is configured to search for the identifier information corresponding to the current communication device in a device list of the current communication device. A determining sub-unit is configured to determine that the current communication device is a shared device if the number of the identifier information corresponding to the current communication device is greater than 1.

9. A storage medium, characterized by The storage medium comprises stored instructions, wherein the instructions, when executed, control a device in which the storage medium is located to perform the communication message transmitting method based on the SRB bus according to any one of claims 1-5.

10. An electronic device, comprising: The device comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the communication message transmitting method based on the SRB bus according to any one of claims 1-5.

Citation Information

Patent Citations

  • SRB (Secure Real-time Bus) connection relationship determination method and related device

    CN118764390A

  • Method and device for forwarding data message in SRv6 network, medium and equipment

    CN120455360A