A node configuration method and related device for a secure real-time bus (SRB)
By selecting the master node in the secure real-time bus SRB and establishing a communication connection with the configuration system, efficient multi-node configuration is achieved, solving the problem of low configuration efficiency in the existing technology, simplifying the configuration process, and improving configuration efficiency.
Patent Information
- Application Number
- CN202411013759.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-26
AI Technical Summary
In the existing technology, the secure real-time bus SRB node configuration efficiency is low, especially in a node network composed of multiple nodes, communication connections need to be established with the configuration system one by one, resulting in a long configuration time.
By selecting the master node in the node network and establishing a communication connection with the configuration system, the connection status of the master node is obtained, and when the communication between the master node and the configuration system is normal, the configuration information is sent to the master node, and the master node configures the information. Nodes are configured through the master node to avoid each node establishing a communication connection with the configuration system.
It improves the efficiency of node configuration, especially in multi-node networking situations, shortens the configuration time and improves the efficiency of configuring the system.
Smart Images

Figure CN118540213B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a node configuration method and related device for a secure real-time bus (SRB). Background Art
[0002] Secure Real-time Bus (SRB) is an industrial data fieldbus built on the basis of high-performance semiconductor components. Among them, bus (BUS) refers to a collection of various signal lines, which are often used between various components of embedded systems, including high-performance components (controller chips, memory, communication interfaces, etc.), underlying software, communication protocols, etc. that make up the embedded system. It transmits binary data on the communication line and completes various communication tasks such as data transmission and conversion, system control, etc. through specific instructions. Secure real-time bus is a bus technology developed on the basis of bus. Its characteristics are stable, secure, and real-time data transmission, and it is suitable for more stringent use environments.
[0003] In the process of developing a secure real-time bus, it is necessary to configure the information of each node (such as address, data length, etc.) so that the node can process data according to the configured information. Among them, a node refers to a single device that constitutes a bus communication network. Generally speaking, each node can be regarded as a system unit (i.e., the aforementioned single device) composed of a hardware circuit composed of multiple high-performance semiconductor components, communication interfaces, etc. and a software system running in its chip. Usually, the secure real-time bus can combine these nodes into a network according to different usage scenarios, in order to dynamically expand and increase key indicators such as data bandwidth (such as data transmission rate) and data transmission frequency.
[0004] In the related art, node configuration is performed by connecting nodes via serial ports. However, this node configuration method has the problem of low configuration efficiency, especially for the configuration of a node network composed of multiple nodes. Summary of the invention
[0005] In order to solve the above technical problems, the present application provides a node configuration method and related device for a secure real-time bus SRB, which no longer requires each node to establish a communication connection with a configuration system one by one to implement information configuration, thereby improving configuration efficiency.
[0006] The embodiments of the present application disclose the following technical solutions:
[0007] On the one hand, an embodiment of the present application provides a node configuration method for a secure real-time bus SRB, the method being applied to a configuration system, the method comprising:
[0008] In response to a connection operation for establishing a communication connection with a node network, obtaining a connection state with a master node of the node network, the node network comprising a plurality of nodes, the plurality of nodes including the master node, each of the plurality of nodes being in communication connection with at least one other node, the node network establishing a communication connection with the configuration system through the master node;
[0009] If the connection status indicates that the communication between the master node and the configuration system is normal, configuration information is sent to the master node so that the master node performs information configuration on the node network according to the configuration information.
[0010] On the other hand, an embodiment of the present application provides a node configuration device for a secure real-time bus SRB, the device is applied to a configuration system, and the device includes an acquisition unit and a sending unit:
[0011] The acquisition unit is configured to acquire a connection state of a master node with the node network in response to a connection operation for establishing a communication connection with the node network, the node network comprising a plurality of nodes, the plurality of nodes including the master node, each of the plurality of nodes being in communication connection with at least one other node, and the node network establishing a communication connection with the configuration system through the master node;
[0012] The sending unit is used to send configuration information to the master node if the connection status indicates that the communication between the master node and the configuration system is normal, so that the master node performs information configuration on the node network according to the configuration information.
[0013] In another aspect, an embodiment of the present application provides a computer device, the computer device comprising a processor and a memory:
[0014] The memory is used to store program code and transmit the program code to the processor;
[0015] The processor is used to execute the node configuration method for the secure real-time bus SRB described in the above aspects according to the instructions in the program code.
[0016] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the node configuration method for the secure real-time bus SRB described in the above aspects.
[0017] It can be seen from the above technical solution that the connection operation is used to establish a communication connection between the configuration system and the node network. The configuration system can respond to the connection operation and first obtain the connection status of the master node of the node network. Among them, the node network includes multiple nodes, the multiple nodes include the master node, and each of the multiple nodes has a communication connection with at least one other node. Then, if the connection status indicates that the communication between the master node and the configuration system is normal, the configuration information can be sent to the master node so that the master node performs information configuration on the node network according to the configuration information. It can be seen that in the present application, for the node network composed of multiple nodes, there is a communication connection between the nodes, that is, data transmission can be performed, and the node network is a communication connection established by the master node and the configuration system. Based on this, when configuring the information, it is only necessary to send the configuration information to the master node. In particular, the configuration information for other nodes is also sent through the master node. In this way, it is no longer necessary for each node to establish a communication connection with the configuration system one by one to realize information configuration. Based on this, it is conducive to improving configuration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. 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 creative work.
[0019] Figure 1 A flowchart of a node configuration method for a secure real-time bus SRB provided in an embodiment of the present application;
[0020] Figure 2 A schematic diagram of a node configuration process provided in an embodiment of the present application;
[0021] Figure 3 A structural diagram of a node configuration device for a secure real-time bus SRB provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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.
[0023] In the related art, the node configuration method used is to connect a single node through a serial port, and then manually input the configuration information of the node through professional software to configure the node. Then, connect other nodes one by one and configure them one by one until all nodes are configured. Among them, the serial port is a serial interface (SI), which is a communication interface.
[0024] However, in this method, after configuring each node, it is necessary to reconnect to another node to configure the other node. Especially when the number of nodes in the node network is large, the node configuration cannot be completed quickly, resulting in low configuration efficiency.
[0025] In this regard, the embodiment of the present application provides a node configuration method and related device for a secure real-time bus SRB. For a node network composed of multiple nodes, there is a communication connection between the nodes, that is, data transmission can be carried out, and the node network is a communication connection established between the master node and the configuration system. Based on this, when configuring information, it is only necessary to send the configuration information to the master node. In particular, the configuration information for other nodes is also sent through the master node. In this way, it is no longer necessary for each node to establish a communication connection with the configuration system one by one to realize information configuration. Based on this, it is beneficial to improve configuration efficiency.
[0026] The node configuration method for the secure real-time bus SRB provided in the embodiment of the present application can be implemented by a computer device, which can be a terminal device or a server, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. Terminal devices include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, etc. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, and this application does not impose any restrictions on this.
[0027] The specific examples are as follows:
[0028] Figure 1 A flowchart of a node configuration method for a secure real-time bus SRB provided in an embodiment of the present application, the method is applied to a configuration system, that is, the device where the configuration system is located is used as the aforementioned computer device as an example for explanation, the method includes S101-S102:
[0029] S101: In response to a connection operation for establishing a communication connection with a node network, a connection status with a master node of the node network is obtained.
[0030] Among them, the node network includes multiple nodes, the multiple nodes include a master node, each of the multiple nodes has a communication connection with at least one other node, and the node network establishes a communication connection with the configuration system through the master node. That is, data can be transmitted between multiple nodes in the node network, and the node network is a communication connection established between the master node and the configuration system. Usually, the node network can be built corresponding to the development of the safe real-time bus SRB. For example, based on the business functions that the SRB needs to realize, the required nodes and the associations between the nodes are determined, and then the corresponding node network is built based on this, and then the node configuration is performed so that the configured node network can be used to realize the business functions corresponding to the SRB.
[0031] The connection operation is used to instruct the node network to establish a communication connection with the configuration system. In response to the connection operation, the connection status of the master node with the node network can be obtained first. The connection status is used to indicate whether the communication between the master node and the configuration system is normal, that is, whether the communication connection between the two is successful.
[0032] S102: If the connection status indicates that the communication between the master node and the configuration system is normal, configuration information is sent to the master node so that the master node performs information configuration on the node network according to the configuration information.
[0033] If the connection status indicates that the communication between the master node and the configuration system is normal, it means that data can be transmitted between the two. At this time, the configuration system can send configuration information to the master node so that the master node can configure the node network according to the configuration information.
[0034] It should be noted that this application does not impose any limitation on how to send configuration information and how to configure information. For ease of understanding, the following examples are provided in this application embodiment:
[0035] In a possible implementation, the information of the master node can be configured first, and then the information of other nodes can be configured. In a specific implementation, if the connection status indicates that the communication between the master node and the configuration system is normal, then the first configuration information corresponding to the master node can be obtained first, and the first configuration information can refer to the relevant information that needs to be configured for the master node. Then, the first configuration information can be sent to the master node, and accordingly, the master node is used to configure the information of the master node according to the received first configuration information. Based on this, the information of the master node is configured first. When the master node completes the configuration, a response can be returned to the configuration system to trigger the subsequent configuration of other nodes.
[0036] Correspondingly, in response to receiving the configuration success response information sent by the master node, the second configuration information corresponding to the child node can then be obtained. The configuration success response information is used to indicate that the master node has completed the steps of configuring the information of the master node based on the first configuration information, and the child node is any node other than the master node among the multiple nodes. And, the second configuration information can be sent to the master node. Accordingly, the master node is used to send the second configuration information to the child node according to the communication connection corresponding to the node network, so that the child node configures the information of the child node according to the second configuration information.
[0037] Based on this, the main node is configured first, and then the sub-nodes are configured. However, whether it is the main node or the sub-node, the configuration information can be sent to the main node by the configuration system. In this way, there is no need for each node to be connected to the configuration system, which is conducive to improving configuration efficiency. For the configuration information of the sub-node, the main node transmits the configuration information based on the communication relationship in the node network to complete the configuration of the corresponding sub-node. Based on this, the configuration of multiple sub-nodes can be carried out simultaneously, which is conducive to improving configuration efficiency and saving configuration time compared to the method of configuring one by one in the related technology.
[0038] In order to improve the configuration efficiency, in another possible implementation, if the connection status indicates that the communication between the master node and the configuration system is normal, then, first, a network configuration read request can be sent to the master node, and the network configuration read request is used to instruct the master node to determine the network configuration parameters corresponding to the node networking, and the network configuration parameters are used to indicate the multiple nodes included in the node networking and the node addresses corresponding to the multiple nodes. Then, in response to receiving the network configuration parameter response returned by the master node, the node networking that needs to be configured this time can be clarified based on the received network configuration parameter response, that is, the multiple nodes and the node addresses corresponding to the multiple nodes can be clarified. Accordingly, multiple nodes can be determined as nodes to be configured. Then, the node information corresponding to the node to be configured can be determined from the pre-configured node information, and the aforementioned configuration information can be determined based on the node information corresponding to the node to be configured, and the configuration information is sent to the master node.
[0039] Based on this, after the communication connection is established, the node networking situation that needs to be configured this time is first obtained, and then the configuration information that needs to be sent to this node networking is determined from the pre-configured node information, which is conducive to improving configuration efficiency.
[0040] The following example illustrates the pre-configured node information:
[0041] In response to the pre-configuration operation, the operation node corresponding to the pre-configuration operation and the node information corresponding to the operation node can be obtained, and the operation node refers to the node that needs to be written with node information in this pre-configuration operation. Then, the node information corresponding to the operation node can be written into the pre-configured node information.
[0042] Based on this, for any node, its corresponding node information can be pre-stored in pre-configured node information. Then, when configuration is required, it can be read from it to improve configuration efficiency.
[0043] Furthermore, there may be multiple node networks that need to be configured. Therefore, through pre-configuration operations, the configuration system can implement node configuration for multiple node networks, which is conducive to improving configuration efficiency.
[0044] It is understandable that when there is a node information that needs to be modified, the information to be modified can also be pre-stored in the pre-configured node information, and then the configuration for modification is triggered. In this way, batch modification can be achieved, which is conducive to improving configuration efficiency.
[0045] In order to improve security, in a possible implementation, data integrity verification can also be added during the data transmission process to ensure that the received data is correct, which is conducive to improving security (such as configuration security and data transmission security). In specific implementation, the configuration system can also generate first verification data based on the configuration information, and when sending the configuration information to the master node, it can also send the first verification data to the master node. Correspondingly, the master node is used to generate second verification data based on the received configuration information, and determine the data integrity of the received configuration information based on the second verification data and the first verification data.
[0046] In actual applications, when the data integrity check passes, it indicates that the received configuration information is the configuration information sent by the configuration system and has not been tampered with during the transmission process. Therefore, when the data integrity check passes, subsequent configuration can be performed. Otherwise, it can be considered that the configuration information has been tampered with during the transmission process, and configuration is not performed temporarily. At the same time, data tampering response information can be fed back to the configuration system to re-acquire new configuration information.
[0047] The present application does not impose any limitation on the verification data. For example, the verification data may be a summary corresponding to the calculated configuration information, and different configuration information corresponds to different verification data.
[0048] In a possible implementation, the aforementioned connection operation is used to indicate establishing a communication connection with the configuration system through the serial port corresponding to the master node. Correspondingly, when sending configuration information to the master node, the configuration information can be sent to the master node through the serial port corresponding to the master node.
[0049] Furthermore, it should be noted that the present application does not impose any limitation on the configuration information. For ease of understanding, the present application provides the following example description:
[0050] If the configuration information corresponds to the target node, the configuration information may include the node address, data length, data offset, delay, and control data corresponding to the target node. The node address is used to indicate that the configuration information corresponds to the target node and needs to be transmitted to the target node. Usually, the node address may include an Internet Protocol Address (IP address) and a Media Access Control Address (MAC address). The data length may indicate the length of the data sent by the target node. Usually, the unit of the data length may be bytes. The data offset may indicate the deviation range allowed for data transmission and reception. The delay may refer to the interval duration of data transmission. The control data may refer to the control command corresponding to the target node (such as a timing command, a pause command, etc.). In addition, load data may also be included. The load data may refer to the data to be transmitted carried in the data packet, etc.
[0051] It can be seen from the above technical solution that the connection operation is used to establish a communication connection between the configuration system and the node network. The configuration system can respond to the connection operation and first obtain the connection status of the master node of the node network. Among them, the node network includes multiple nodes, the multiple nodes include the master node, and each of the multiple nodes has a communication connection with at least one other node. Then, if the connection status indicates that the communication between the master node and the configuration system is normal, the configuration information can be sent to the master node so that the master node performs information configuration on the node network according to the configuration information. It can be seen that in the present application, for the node network composed of multiple nodes, there is a communication connection between the nodes, that is, data transmission can be performed, and the node network is a communication connection established by the master node and the configuration system. Based on this, when configuring the information, it is only necessary to send the configuration information to the master node. In particular, the configuration information for other nodes is also sent through the master node. In this way, it is no longer necessary for each node to establish a communication connection with the configuration system one by one to realize information configuration. Based on this, it is conducive to improving configuration efficiency.
[0052] Through the above embodiments, the node configuration method for the secure real-time bus SRB provided by the present application is described in detail. For better understanding, the embodiments of the present application also provide the following example description:
[0053] First, the node network can be built. Specifically, the multiple nodes constituting the node network can be connected with communication wires according to the communication relationship, and then a node is selected as the master node, and the serial port of the master node is connected to the configuration system, which triggers the aforementioned connection operation. Usually, the determination of the multiple nodes constituting the node network and the determination of the master node can be determined according to the actual situation of the nodes required for business implementation.
[0054] Then, the node configuration software can be opened in the configuration system to trigger subsequent configuration. Figure 2 The node configuration process diagram shown is as follows:
[0055] First, the master node can be monitored, that is, the connection status can be obtained in the aforementioned S101. If it is found that the master node has been connected and the communication is normal, the node communication network can be formed, that is, the aforementioned network configuration read request is sent to the master node to obtain the network configuration parameters of the node network.
[0056] Next, the node predefined configuration configuration can be started, that is, the configuration information is determined from the pre-configured node information as mentioned above, and the configuration information is transmitted to the master node. At the same time, the first verification data of the configuration information can also be calculated, and the first verification data can be appended to the data packet of the configuration information. In this way, after receiving the data packet of the entire configuration information, the master node can first perform data parsing, calculate the second verification data to perform data integrity verification, and determine whether the configuration information data packet is correct and there is no missing data. Specifically, it can include checking and writing (adding, modifying) the configuration configuration of the master node, that is, corresponding to the aforementioned first configuration information, and then writing to the master node after confirming that the data is correct, to complete the information configuration of the master node. And checking and writing (adding, modifying) the sub-node configuration configuration, that is, corresponding to the aforementioned second configuration information. That is, after the configuration configuration of the master node is completed, the configuration information of other nodes is also written into each node to complete the configuration of other bytes.
[0057] Finally, you can restart the node to fully configure the configuration. That is, restart the entire node network so that you can subsequently process data based on the configured nodes.
[0058] In addition, node configurations can be saved and recorded. For example, configuration information and operation logs of each node can be recorded to facilitate subsequent backtracking and inspection, so that problems can be discovered and handled in a timely manner.
[0059] It can be understood that it basically corresponds to the method embodiment, so the relevant parts can refer to the partial description of the method embodiment.
[0060] Figure 3A structural diagram of a node configuration device for a secure real-time bus SRB provided in an embodiment of the present application, wherein the device is applied to a configuration system, and the device includes an acquisition unit 301 and a sending unit 302:
[0061] The acquisition unit 301 is used for acquiring a connection state with a master node of the node network in response to a connection operation for establishing a communication connection with the node network, the node network comprising a plurality of nodes, the plurality of nodes including the master node, each of the plurality of nodes being in communication connection with at least one other node, and the node network establishing a communication connection with the configuration system through the master node;
[0062] The sending unit 302 is used to send configuration information to the master node if the connection status indicates that the communication between the master node and the configuration system is normal, so that the master node performs information configuration on the node network according to the configuration information.
[0063] In a possible implementation manner, the sending unit is further configured to:
[0064] If the connection status indicates that the communication between the master node and the configuration system is normal, obtaining first configuration information corresponding to the master node;
[0065] Sending the first configuration information to the master node, wherein the master node is configured to configure information of the master node according to the received first configuration information;
[0066] In response to receiving a configuration success response message sent by the master node, acquiring second configuration information corresponding to a child node, wherein the child node is any node among the multiple nodes except the master node;
[0067] The second configuration information is sent to the master node, and the master node is used to send the second configuration information to the child node according to the communication connection corresponding to the node networking, so that the child node configures the information of the child node according to the second configuration information.
[0068] In a possible implementation manner, the sending unit is further configured to:
[0069] Generate first verification data according to the configuration information;
[0070] The first verification data is sent to the master node, and the master node is used to generate second verification data according to the received configuration information, and determine the data integrity of the received configuration information according to the second verification data and the received first verification data.
[0071] In a possible implementation manner, the sending unit is further configured to:
[0072] If the connection status indicates that the communication between the master node and the configuration system is normal, a network configuration read request is sent to the master node, where the network configuration read request is used to instruct the master node to determine network configuration parameters corresponding to the node network, where the network configuration parameters are used to indicate the multiple nodes included in the node network and the node addresses corresponding to the multiple nodes respectively;
[0073] In response to receiving a network configuration parameter response returned by the master node, determining the multiple nodes as nodes to be configured;
[0074] Determine the node information corresponding to the node to be configured from the pre-configured node information;
[0075] Determine the configuration information according to the node information corresponding to the node to be configured;
[0076] The configuration information is sent to the master node.
[0077] In a possible implementation manner, the acquiring unit is further configured to:
[0078] In response to a pre-configured operation, acquiring an operation node corresponding to the pre-configured operation and node information corresponding to the operation node;
[0079] The node information corresponding to the operation node is written into the pre-configured node information.
[0080] In a possible implementation manner, if the configuration information corresponds to a target node, the configuration information includes a node address, data length, data offset, delay, and control data corresponding to the target node.
[0081] In a possible implementation, the connection operation is used to indicate that a communication connection is established with the configuration system through a serial port corresponding to the master node, and the sending unit is further used to:
[0082] The configuration information is sent to the master node through the serial port corresponding to the master node.
[0083] It can be seen from the above technical solution that the connection operation is used to establish a communication connection between the configuration system and the node network. The configuration system can respond to the connection operation and first obtain the connection status of the master node of the node network. Among them, the node network includes multiple nodes, the multiple nodes include the master node, and each of the multiple nodes has a communication connection with at least one other node. Then, if the connection status indicates that the communication between the master node and the configuration system is normal, the configuration information can be sent to the master node so that the master node performs information configuration on the node network according to the configuration information. It can be seen that in the present application, for the node network composed of multiple nodes, there is a communication connection between the nodes, that is, data transmission can be performed, and the node network is a communication connection established by the master node and the configuration system. Based on this, when configuring the information, it is only necessary to send the configuration information to the master node. In particular, the configuration information for other nodes is also sent through the master node. In this way, it is no longer necessary for each node to establish a communication connection with the configuration system one by one to realize information configuration. Based on this, it is conducive to improving configuration efficiency.
[0084] In another aspect, an embodiment of the present application provides a computer device, the computer device comprising a processor and a memory:
[0085] The memory is used to store program code and transmit the program code to the processor;
[0086] The processor is used to execute the node configuration method for the secure real-time bus SRB provided by the above embodiment according to the instructions in the program code.
[0087] The computer device may include a terminal device or a server, and the aforementioned node configuration device for the safety real-time bus SRB may be configured in the computer device.
[0088] On the other hand, an embodiment of the present application further provides a storage medium, wherein the storage medium is used to store a computer program, and the computer program is used to execute the node configuration method for the secure real-time bus SRB provided in the above embodiment.
[0089] In addition, an embodiment of the present application further provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the node configuration method for the secure real-time bus SRB provided in the above embodiment.
[0090] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, the above program can be stored in a computer-readable storage medium, and when the program is executed, it executes the steps of the above method embodiment; and the above storage medium can be at least one of the following media: read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc., various media that can store program codes.
[0091] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0092] It should be noted that, in this article, relational terms such as "first" and "second", etc. (if any) are used only 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 "include", "comprise" 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, the elements defined by the sentence "including a..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0093] The above is a detailed introduction to a node configuration method and related devices for a secure real-time bus SRB provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application. At the same time, for those skilled in the art, according to the method of the present application, there will be changes in the specific implementation method and application scope.
[0094] In summary, the content of this specification should not be understood as limiting the present application, and any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in this application should be included in the protection scope of this application. Moreover, based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations.
Claims
1. A node configuration method for a safety real-time bus SRB, It is characterized in that The method is applied to a configuration system, and the method comprises: In response to a connection operation for establishing a communication connection with a node network, a connection state with a master node of the node network is obtained, the node network includes a plurality of nodes, the plurality of nodes include the master node, each of the plurality of nodes is in communication connection with at least one other node, the node network establishes a communication connection with the configuration system through the master node, and the node network is built based on a business function that needs to be implemented by a secure real-time bus SRB; If the connection status indicates that the communication between the master node and the configuration system is normal, send configuration information to the master node so that the master node performs information configuration on the node network according to the configuration information, and the node network after the information configuration is completed is used to implement the service function; Wherein, if the connection status indicates that the communication between the master node and the configuration system is normal, sending configuration information to the master node includes: If the connection status indicates that the communication between the master node and the configuration system is normal, a network configuration read request is sent to the master node, where the network configuration read request is used to instruct the master node to determine network configuration parameters corresponding to the node network, where the network configuration parameters are used to indicate the multiple nodes included in the node network and the node addresses corresponding to the multiple nodes respectively; In response to receiving a network configuration parameter response returned by the master node, determining the multiple nodes as nodes to be configured; Determine the node information corresponding to the node to be configured from the pre-configured node information; Determine the configuration information according to the node information corresponding to the node to be configured; and, if the connection status indicates that the communication between the master node and the configuration system is normal, obtaining first configuration information corresponding to the master node; Sending the first configuration information to the master node, wherein the master node is configured to configure information of the master node according to the received first configuration information; In response to receiving a configuration success response message sent by the master node, acquiring second configuration information corresponding to a child node, where the child node is any node among the multiple nodes except the master node; Sending the second configuration information to the master node, wherein the master node is used to send the second configuration information to the child node according to the communication connection corresponding to the node networking, so that the child node configures the information of the child node according to the second configuration information; When the information of the pending node needs to be modified, the information corresponding to the pending node that needs to be modified is pre-stored in the pre-configured node information to trigger the configuration for modifying the pending node.
2. The method according to claim 1, It is characterized in that The method further comprises: Generate first verification data according to the configuration information; The first verification data is sent to the master node, and the master node is used to generate second verification data according to the received configuration information, and determine the data integrity of the received configuration information according to the second verification data and the received first verification data.
3. The method according to claim 1, It is characterized in that The method further comprises: In response to a pre-configured operation, acquiring an operation node corresponding to the pre-configured operation and node information corresponding to the operation node; The node information corresponding to the operation node is written into the pre-configured node information.
4. The method according to claim 1, It is characterized in that If the configuration information corresponds to a target node, the configuration information includes a node address, data length, data offset, delay, and control data corresponding to the target node.
5. The method according to any one of claims 1 to 4, It is characterized in that The connection operation is used to indicate that a communication connection is established with the configuration system through the serial port corresponding to the master node, and the sending of configuration information to the master node includes: The configuration information is sent to the master node through the serial port corresponding to the master node.
6. A node configuration device for a secure real-time bus SRB, It is characterized in that The device is applied to a configuration system, and comprises an acquisition unit and a sending unit: The acquisition unit is used to obtain a connection state of a master node with the node network in response to a connection operation for establishing a communication connection with the node network, the node network includes a plurality of nodes, the plurality of nodes include the master node, each of the plurality of nodes is in communication connection with at least one other node, the node network establishes a communication connection with the configuration system through the master node, and the node network is built based on a business function that needs to be implemented by a secure real-time bus SRB; The sending unit is configured to send configuration information to the master node if the connection status indicates that the communication between the master node and the configuration system is normal, so that the master node performs information configuration on the node network according to the configuration information, and the node network after the information configuration is completed is used to implement the service function; Wherein, the sending unit is also used for: If the connection status indicates that the communication between the master node and the configuration system is normal, a network configuration read request is sent to the master node, where the network configuration read request is used to instruct the master node to determine network configuration parameters corresponding to the node network, where the network configuration parameters are used to indicate the multiple nodes included in the node network and the node addresses corresponding to the multiple nodes respectively; In response to receiving a network configuration parameter response returned by the master node, determining the multiple nodes as nodes to be configured; Determine the node information corresponding to the node to be configured from the pre-configured node information; Determine the configuration information according to the node information corresponding to the node to be configured; and, if the connection status indicates that the communication between the master node and the configuration system is normal, obtaining first configuration information corresponding to the master node; Sending the first configuration information to the master node, wherein the master node is configured to configure information of the master node according to the received first configuration information; In response to receiving a configuration success response message sent by the master node, acquiring second configuration information corresponding to a child node, where the child node is any node among the multiple nodes except the master node; Sending the second configuration information to the master node, wherein the master node is used to send the second configuration information to the child node according to the communication connection corresponding to the node networking, so that the child node configures the information of the child node according to the second configuration information; When the information of the pending node needs to be modified, the information corresponding to the pending node that needs to be modified is pre-stored in the pre-configured node information to trigger the configuration for modifying the pending node.
7. A computer device, It is characterized in that The computer device comprises a processor and a memory: The memory is used to store program codes and transmit the program codes to the processor; The processor is configured to execute the method according to any one of claims 1 to 5 according to the instructions in the program code.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Communication networking method and communication system
CN111343697A
Equipment management method and system
CN112214377A
Active-active and master-slave synchronization environment building method and system, equipment and medium
CN113986881A
Node acquisition item updating method and device, electronic equipment and readable medium
CN116668276A
Method, device and equipment for updating configuration of fixed network terminal and storage medium thereof
CN116996376A
