Secure real-time bus SRB configuration method and device, electronic equipment and storage medium
By selecting a master node in the safe real-time bus (SRB) to receive configuration parameters and automatically configure node devices, the low efficiency problem caused by one-by-one configuration in the existing technology is solved, and efficient automatic configuration is achieved.
Patent Information
- Application Number
- CN202510832907.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-09-16
AI Technical Summary
In the prior art, configuration parameters of the secure real-time bus (SRB) need to be configured for each node device one by one, resulting in low work efficiency.
By selecting a master node to receive configuration parameters, multiple node devices, including the master node and other node devices, are automatically configured based on these parameters, achieving automated configuration without manual operation.
The configuration efficiency of the safe real-time bus SRB is improved, the manual operation steps are reduced, and the work efficiency is improved.
Smart Images

Figure CN120658468A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of bus technology, and more specifically, to a configuration method, device, electronic device and storage medium for a secure real-time bus (SRB). Background Art
[0002] SRB (secure real-time bus) is an industrial data field bus built based on high-performance semiconductor component technology. A bus refers to a collection of various signal lines, often used between various components of an embedded system, 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 and commands. The secure real-time bus SRB mentioned in this application is a bus technology developed on the basis of the existing bus. It is characterized by stable, secure, and real-time data transmission, and is suitable for harsh usage environments.
[0003] Generally, a secure real-time bus (SRB) connects multiple node devices. To ensure the proper functioning of all node devices, their configuration parameters must be configured. Currently, configuring the SRB's configuration parameters requires connecting and configuring all node devices one by one, resulting in low efficiency. Summary of the Invention
[0004] In view of this, the present application provides a configuration method, device, electronic device and storage medium of a secure real-time bus (SRB), which are used to automatically configure node devices connected to the secure real-time bus (SRB) to improve work efficiency.
[0005] In order to achieve the above objectives, the following solutions are proposed:
[0006] A configuration method for a secure real-time bus (SRB) is applied to an electronic device, wherein the secure real-time bus (SRB) is connected to a plurality of node devices. The configuration method comprises the following steps:
[0007] In response to a parameter configuration request from a user, receiving at least one set of configuration parameters based on a master node selected from the plurality of node devices;
[0008] One or more of the node devices are configured based on the configuration parameters.
[0009] Optionally, the responding to the user's parameter configuration request, based on receiving at least one set of configuration parameters from a master node selected from the plurality of node devices, comprises the steps of:
[0010] receiving the configuration parameter based on the parameter configuration request, where the configuration parameter is a first configuration parameter adapted to the master node or a second configuration parameter matched to other node devices;
[0011] The first configuration parameter and / or the second configuration parameter are stored in the master node.
[0012] Optionally, configuring one or more of the node devices based on the configuration parameters includes the steps of:
[0013] Responding to a local node configuration request, extracting the first configuration parameters, and configuring the master node using the first configuration parameters;
[0014] In response to configuration requests from other node devices, the other node devices are configured based on the second configuration parameters.
[0015] Optionally, the configuration request includes address information of the node device that issues the configuration request.
[0016] A configuration device for a secure real-time bus (SRB) is applied to an electronic device. The secure real-time bus (SRB) is connected to a plurality of node devices. The configuration device includes:
[0017] a parameter receiving module configured to respond to a parameter configuration request from a user and receive at least one set of configuration parameters based on a master node selected from the plurality of node devices;
[0018] The configuration execution module is configured to configure one or more node devices based on the configuration parameters.
[0019] Optionally, the parameter receiving module includes:
[0020] a receiving execution unit configured to receive the configuration parameter based on the parameter configuration request, where the configuration parameter is a first configuration parameter adapted to the master node or a second configuration parameter matched to other node devices;
[0021] The parameter storage unit is configured to store the first configuration parameter and / or the second configuration parameter in the master node.
[0022] Optionally, the configuration execution module includes:
[0023] a first configuration unit configured to respond to a local node configuration request, extract the first configuration parameters, and configure the master node using the first configuration parameters;
[0024] The second configuration unit is configured to respond to configuration requests from other node devices and configure other node devices based on the second configuration parameters.
[0025] Optionally, the configuration request includes address information of the node device that issues the configuration request.
[0026] An electronic device comprising at least one processor and a memory connected to the processor, wherein:
[0027] The memory is used to store computer programs or instructions;
[0028] The processor is used to execute the computer program or instruction to enable the electronic device to implement the configuration method as described above.
[0029] A computer-readable storage medium is applied to an electronic device, wherein the storage medium carries one or more computer programs, and the one or more computer programs can be executed by the electronic device to enable the electronic device to implement the configuration method described above.
[0030] As can be seen from the above technical solutions, this application discloses a method, apparatus, electronic device, and storage medium for configuring a secure real-time bus (SRB). This method and apparatus, applied to electronic devices, specifically respond to a user's parameter configuration request, receive at least one set of configuration parameters based on a master node selected from multiple node devices, and configure one or more node devices based on the configuration parameters. This solution configures node devices based on node device requests, eliminating the need for manual operation and thus improving work efficiency. 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 schematic diagram of a secure real-time bus (SRB) according to the present application;
[0033] Figure 2 A flowchart of a configuration method for a secure real-time bus (SRB) according to an embodiment of the present application;
[0034] Figure 3 A schematic diagram of the message definition of an embodiment of the present application;
[0035] Figure 4A block diagram of a configuration device for a secure real-time bus (SRB) according to an embodiment of the present application;
[0036] Figure 5 A block diagram of another configuration device for a secure real-time bus (SRB) according to an embodiment of the present application;
[0037] Figure 6 This is a block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0038] 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.
[0039] The present application provides a solution for configuring a safe real-time bus SRB. The safe real-time bus SRB100 is connected to multiple node devices 101, such as Figure 1 As shown, one of the node devices is connected to the host computer 200, so specifically, the configuration scheme is used to configure some or all of the node devices in the multiple node devices. The specific technology is described as follows.
[0040] Figure 2 This is a flowchart of a configuration method for a secure real-time bus (SRB) according to an embodiment of the present application.
[0041] like Figure 2 As shown, the configuration method provided in this embodiment is applied to an electronic device. The electronic device here can be understood as a computer or embedded device with data computing and information processing capabilities, specifically a node device connected to the host computer in the secure real-time bus SRB. For ease of description, the node device connected to the host computer is described as a master node. The configuration method specifically includes the following steps:
[0042] S1. Receive at least one set of configuration parameters based on a master node.
[0043] When a user issues a parameter configuration request, the master node connected to the host computer receives one or more sets of configuration parameters transmitted by the host computer. The configuration parameters include first configuration parameters adapted to the master node and second configuration parameters matched to other node devices. The second configuration parameters can be one or more sets, and each set of configuration parameters includes address information, which corresponds to the address of one of the other node devices. The specific process is as follows:
[0044] First, one or more groups of configuration parameters are received based on a parameter configuration request, namely, the first configuration parameter matching the master node and the second configuration parameter matching other node devices.
[0045] Then, the first configuration parameter and the second configuration parameter are stored in the master node.
[0046] S2. Configure one or more node devices based on the configuration parameters.
[0047] The node device here refers to the master node or other node devices. The specific steps are as follows:
[0048] On the one hand, if the master node needs to be configured, a local node configuration request from a user or the master node is responded to, a first configuration parameter is extracted from the received configuration parameters, and the master node is configured using the first configuration parameter.
[0049] On the other hand, for configuration requests from other node devices, the message sent by other nodes when restarting or other configuration requirements are received, the message includes the identification and / or address information of the node device to be configured. The definition of this message is as follows Figure 3 After receiving the message, the master node parses the message and sends the second configuration parameter corresponding to the node device to the node device based on the parsed identification or address information, so that the node device performs the configuration operation based on the second configuration parameter.
[0050] As can be seen from the above technical solution, this embodiment provides a method for configuring a secure real-time bus (SRB). This method, applied to electronic devices, specifically responds to a user's parameter configuration request, receives at least one set of configuration parameters from a master node selected from multiple node devices, and then configures one or more node devices based on the configuration parameters. This solution configures node devices based on the node device's request, eliminating the need for manual operation and thus improving work efficiency.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] Figure 4 This is a block diagram of a configuration device for a secure real-time bus (SRB) according to an embodiment of the present application.
[0056] like Figure 4As shown, the configuration device provided in this embodiment is applied to electronic devices. The electronic devices here can be understood as computers or embedded devices with data computing and information processing capabilities, specifically node devices connected to the host computer in the secure real-time bus SRB. For ease of description, the node devices connected to the host computer are described as master nodes. The configuration device specifically includes a parameter receiving module 10 and a configuration execution module 20. Figure 5 shown.
[0057] The parameter receiving module is used to receive at least one set of configuration parameters based on the master node.
[0058] When a user issues a parameter configuration request, the master node connected to the host computer receives one or more sets of configuration parameters transmitted by the host computer. The configuration parameters include first configuration parameters adapted for the master node and second configuration parameters matched to other node devices. The second configuration parameters can be one or more sets, and each set of configuration parameters includes address information corresponding to the address of one of the other node devices. The module includes a receiving and executing unit 11 and a parameter storage unit 12.
[0059] The receiving execution unit is used to receive one or more groups of configuration parameters based on the parameter configuration request, that is, the first configuration parameter matching the master node and the second configuration parameter matching other node devices.
[0060] The parameter storage unit is used to store the first configuration parameter and the second configuration parameter in the master node.
[0061] The configuration execution module is used to configure one or more node devices based on configuration parameters.
[0062] The node device here refers to a master node or other node devices. The module includes a first configuration unit 21 and a second configuration unit 22.
[0063] The first configuration unit is used to respond to a local node configuration request of a user or the master node if the master node needs to be configured, extract a first configuration parameter from the received configuration parameters, and configure the master node using the first configuration parameter.
[0064] The second configuration unit is used for receiving the message sent by other nodes when they are restarted or have other configuration requirements, and the message includes the identification and / or address information of the node device to be configured. The definition of the message is as follows: Figure 3 After receiving the message, the master node parses the message and sends the second configuration parameter corresponding to the node device to the node device based on the parsed identification or address information, so that the node device performs the configuration operation based on the second configuration parameter.
[0065] As can be seen from the above technical solution, this embodiment provides a method for configuring a secure real-time bus (SRB). This method, applied to electronic devices, specifically responds to a user's parameter configuration request, receives at least one set of configuration parameters from a master node selected from multiple node devices, and then configures one or more node devices based on the configuration parameters. This solution configures node devices based on the node device's request, eliminating the need for manual operation and thus improving work efficiency.
[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] Figure 6 This is a block diagram of an electronic device according to an embodiment of the present application.
[0069] Reference below Figure 6 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (such as in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. This electronic device is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.
[0070] The electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory ROM 602 or a program loaded from an input device 606 into a random access memory RAM 603. Various programs and data required for the operation of the electronic device are also stored in the RAM. The processing device, ROM, and RAM are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0071] Typically, the following devices may be connected to the I / O interface: input devices such as a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 such as a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 608 such as a magnetic tape, hard disk, etc.; and communication devices 609. Communication devices 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0072] The present application also provides a computer-readable storage medium embodiment.
[0073] The computer-readable storage medium is applied to an electronic device and carries one or more computer programs. When executed by the electronic device, the one or more computer programs cause the electronic device to respond to a user's parameter configuration request, receive at least one set of configuration parameters based on a master node selected from multiple node devices, and configure one or more node devices based on the configuration parameters. This solution implements node device configuration based on node device requests, eliminating the need for manual operation and thus improving work efficiency.
[0074] It should be noted that the computer-readable medium disclosed herein may be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0075] In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
[0076] 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.
[0077] 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.
[0078] 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.
[0079] 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 configuration method for a secure real-time bus (SRB), applied to an electronic device, wherein the secure real-time bus (SRB) is connected to a plurality of node devices, characterized in that: The configuration method comprises the steps of: In response to a parameter configuration request from a user, receiving at least one set of configuration parameters based on a master node selected from the plurality of node devices; One or more of the node devices are configured based on the configuration parameters.
2. The configuration method according to claim 1, wherein: The responding to the user's parameter configuration request, based on receiving at least one set of configuration parameters from a master node selected from the plurality of node devices, comprises the steps of: receiving the configuration parameter based on the parameter configuration request, where the configuration parameter is a first configuration parameter adapted to the master node or a second configuration parameter matched to other node devices; The first configuration parameter and / or the second configuration parameter are stored in the master node.
3. The configuration method according to claim 2, wherein: The configuring of one or more node devices based on the configuration parameters comprises the steps of: Responding to a local node configuration request, extracting the first configuration parameters, and configuring the master node using the first configuration parameters; In response to configuration requests from other node devices, the other node devices are configured based on the second configuration parameters.
4. The configuration method according to claim 3, wherein: The configuration request includes address information of the node device that issues the configuration request.
5. A configuration device for a secure real-time bus (SRB), applied to an electronic device, wherein the secure real-time bus (SRB) is connected to a plurality of node devices, characterized in that: The configuration device comprises: a parameter receiving module configured to respond to a parameter configuration request from a user and receive at least one set of configuration parameters based on a master node selected from the plurality of node devices; The configuration execution module is configured to configure one or more node devices based on the configuration parameters.
6. The configuration device according to claim 5, wherein: The parameter receiving module includes: a receiving execution unit configured to receive the configuration parameter based on the parameter configuration request, where the configuration parameter is a first configuration parameter adapted to the master node or a second configuration parameter matched to other node devices; The parameter storage unit is configured to store the first configuration parameter and / or the second configuration parameter in the master node.
7. The configuration device according to claim 6, wherein: The configuration execution module includes: a first configuration unit configured to respond to a local node configuration request, extract the first configuration parameters, and configure the master node using the first configuration parameters; The second configuration unit is configured to respond to configuration requests from other node devices and configure other node devices based on the second configuration parameters.
8. The configuration device according to claim 7, wherein: The configuration request includes address information of the node device that issues the configuration request.
9. An electronic device, characterized in that: The electronic device comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs or instructions; The processor is configured to execute the computer program or instruction so as to enable the electronic device to implement the configuration method according to any one of claims 1 to 4.
10. A computer-readable storage medium, applied to an electronic device, characterized in that: The storage medium carries one or more computer programs, and the one or more computer programs can be executed by the electronic device, so that the electronic device can implement the configuration method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Node information batch configuration method and device, terminal and storage medium
CN114285739A
Node configuration method for secure real-time bus (SRB) and related device
CN118540213A