CN-121433993-B - Debugging method of secure real-time bus SRB, related equipment and storage medium
Abstract
The application discloses a debugging method of a safe real-time bus SRB, related equipment and a storage medium, wherein the method is applied to target safe real-time bus equipment and comprises the steps of storing current debugging information of the target safe real-time bus equipment into a buffer address corresponding to the local target safe real-time bus equipment at regular time, receiving a debugging information message sent by each non-target safe real-time bus equipment at regular time, extracting current debugging information of the non-target safe real-time bus equipment from the debugging information message, storing the current debugging information of the non-target safe real-time bus equipment into the buffer address corresponding to the local non-target safe real-time bus equipment, and feeding the current debugging information of each safe real-time bus equipment in the buffer address corresponding to each safe real-time bus equipment back to an upper computer when the non-target safe real-time bus equipment is connected with the upper computer so as to utilize the current debugging information of each safe real-time bus equipment to debug.
Inventors
- FAN XIAODONG
- LIU BO
Assignees
- 北京傲星科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20251229
Claims (8)
- 1. A method for debugging a secure real-time bus SRB, comprising: The target safe real-time bus equipment stores the current debugging information of the target safe real-time bus equipment into a local buffer address corresponding to the target safe real-time bus equipment at regular time, wherein the target safe real-time bus equipment is any appointed safe real-time bus equipment; The target safety real-time bus equipment receives debug information messages sent by each non-target safety real-time bus equipment at regular time, wherein the non-target safety real-time bus equipment is all safety real-time bus equipment except the target safety real-time bus equipment; Extracting current debugging information of the non-target safe real-time bus equipment from the debugging information message by the target safe real-time bus equipment; the target safe real-time bus equipment updates the debugging information and the source address in the debugging information message into a local buffer address corresponding to the source address in the debugging information message; When the target safe real-time bus equipment is connected with an upper computer, the debugging information and the source address in each buffer area address are respectively fed back to the upper computer as one piece of information, so that the current debugging information of each safe real-time bus equipment is summarized according to the source address, and the current debugging information of each safe real-time bus equipment is utilized for debugging.
- 2. The method of claim 1, wherein the target secure real-time bus device receives debug information messages sent by each non-target secure real-time bus device at regular time, comprising: The target safe real-time bus equipment receives debug information messages sent to the addresses of the target safe real-time bus equipment through Ethernet at regular time by each non-target safe real-time bus equipment, wherein the debug information messages consist of non-target safe real-time bus data according to Ethernet heads, destination addresses, source addresses and current debug information of the non-target safe real-time bus data, and the destination addresses are addresses of the target safe real-time bus equipment and the source addresses are addresses of the non-target safe real-time bus data.
- 3. The method of claim 1, wherein the target secure real-time bus device receives debug information messages sent by each non-target secure real-time bus device at regular time, comprising: the target safety real-time bus equipment receives debugging information messages which are transmitted by each non-target safety real-time bus equipment through a target exchanger at regular time, wherein the target exchanger is an exchanger connected with the target safety real-time bus equipment, each non-target safety real-time bus equipment connected with the target exchanger directly transmits the debugging information messages to the target exchanger, and each non-target safety real-time bus equipment not connected with the target exchanger transmits the debugging information messages to the target exchanger through the exchanger connected with the non-target safety real-time bus equipment.
- 4. The method as recited in claim 1, further comprising: the target safety real-time bus equipment responds to the starting operation of a target dial switch of a user and starts a networking function, wherein the target dial switch Guan Chushi of each safety real-time bus equipment defaults to be in a closed state; and the target safe real-time bus equipment configures each safe real-time bus equipment according to the configuration information provided by the configuration software, so as to realize the networking with each safe real-time bus equipment.
- 5. A target secure real-time bus device, wherein the target secure real-time bus device is any one of designated secure real-time bus devices, the target secure real-time bus device comprising: the first cache unit is used for storing the current debugging information of the first cache unit into a cache area address corresponding to the local target safe real-time bus equipment at regular time; The system comprises a receiving unit, a receiving unit and a processing unit, wherein the receiving unit is used for receiving debug information messages sent by each non-target safe real-time bus device at regular time, wherein the non-target safe real-time bus device is the rest of each safe real-time bus device; The extraction unit is used for extracting the current debugging information of the non-target safe real-time bus equipment from the debugging information message; the second cache unit is used for storing the current debugging information of the non-target safe real-time bus equipment to a local cache region address corresponding to the non-target safe real-time bus equipment; The feedback unit is used for feeding back the current debugging information of each safety real-time bus device in each buffer address to the upper computer when the feedback unit is connected with the upper computer so as to utilize the current debugging information of each safety real-time bus device for debugging; The second buffer unit includes: the second buffer subunit is used for updating the debugging information and the source address in the debugging information message to a buffer area address corresponding to the source address in the debugging information message in the local area; the feedback unit includes: and the feedback subunit is used for respectively feeding back the debugging information in each buffer address and the source address as one piece of information to the upper computer when the feedback subunit is connected with the upper computer so as to summarize the current debugging information of each safety real-time bus device according to the source address.
- 6. The apparatus of claim 5, wherein the receiving unit comprises: The first receiving unit is used for receiving debug information messages sent to the addresses of the target safety real-time bus devices by each non-target safety real-time bus device at regular time through Ethernet, wherein the debug information messages consist of non-target safety real-time bus data according to Ethernet heads, destination addresses, source addresses and current debug information of the non-target safety real-time bus devices, and the destination addresses are the addresses of the target safety real-time bus devices and the source addresses are the addresses of the non-target safety real-time bus data.
- 7. An electronic device, comprising: A memory and a processor; wherein the memory is used for storing programs; The processor is configured to execute the program, which when executed is specifically configured to implement the method for debugging the secure real-time bus SRB according to any of claims 1 to 4.
- 8. A computer storage medium storing a computer program which, when executed by a processor, is adapted to carry out a method of debugging a secure real time bus SRB as claimed in any of claims 1 to 4.
Description
Debugging method of secure real-time bus SRB, related equipment and storage medium Technical Field The application relates to the technical field of secure real-time buses, in particular to a method for debugging a secure real-time bus SRB, related equipment and a storage medium. Background Secure real-time bus (Security Realtime Bus, SRB) technology originates from an autonomous industrial ethernet (Ethernet for Plant Automation, EPA) technology standard. Particularly, under the EPA technical system, the safety real-time bus in the equipment field is developed by improving the requirements of strong real-time, large bandwidth and high reliability of application in the special industry. In order to ensure the normal operation of the SRB system, when the SRB system fails, if the SRB system loses a packet or fails, a debugging means is needed to analyze and locate the problem. The current debugging mode is to connect 1 serial port line through 1 USB interface of an upper computer, and then insert the serial port line on serial port of each SRB board card in sequence. And finally, the upper computer is used for operating and reading the debugging information of the connected SRB equipment. After the debugging information on all the devices is read, the debugging information is tidied up for system debugging. However, this method requires a plurality of operations to read all the debug information and also requires a large amount of arrangement of the debug information, so that the efficiency is very low and errors are liable to occur. Moreover, frequent plugging of serial port lines also easily leads to serial port cable faults. Disclosure of Invention Based on the defects of the prior art, the application provides a debugging method of a secure real-time bus SRB, related equipment and a storage medium, so as to solve the problems of low efficiency and easy error occurrence in the prior art. In order to achieve the above object, the present application provides the following technical solutions: the first aspect of the present application provides a method for debugging a secure real-time bus SRB, comprising: The target safe real-time bus equipment stores the current debugging information of the target safe real-time bus equipment into a local buffer address corresponding to the target safe real-time bus equipment at regular time, wherein the target safe real-time bus equipment is any appointed safe real-time bus equipment; The target safety real-time bus equipment receives debug information messages sent by each non-target safety real-time bus equipment at regular time, wherein the non-target safety real-time bus equipment is all safety real-time bus equipment except the target safety real-time bus equipment; Extracting current debugging information of the non-target safe real-time bus equipment from the debugging information message by the target safe real-time bus equipment; The target safe real-time bus device stores the current debugging information of the non-target safe real-time bus device into a local cache region address corresponding to the non-target safe real-time bus device; When the target safe real-time bus equipment is connected with the upper computer, the current debugging information of each safe real-time bus equipment in the buffer area address corresponding to each safe real-time bus equipment is fed back to the upper computer so as to utilize the current debugging information of each safe real-time bus equipment for debugging. Optionally, in the above method for debugging a secure real-time bus SRB, the receiving, by the target secure real-time bus device, a debug information packet sent by each non-target secure real-time bus device at regular time includes: the target safe real-time bus equipment receives debug information messages sent to the addresses of the target safe real-time bus equipment by each non-target safe real-time bus equipment at regular time through Ethernet, wherein the debug information messages consist of non-target safe real-time bus data according to Ethernet heads, destination addresses, source addresses and current debug information of the non-target safe real-time bus data, the destination addresses are the addresses of the target safe real-time bus equipment, and the source addresses are the addresses of the non-target safe real-time bus data. Optionally, in the above method for debugging a secure real-time bus SRB, the storing, by the target secure real-time bus device, current debug information of the non-target secure real-time bus device into a local cache address corresponding to the non-target secure real-time bus device includes: and the target safe real-time bus equipment updates the debugging information and the source address in the debugging information message into a local buffer address corresponding to the source address in the debugging information message. Optionally, in the above method for debugging a secure real-time bus SRB, when the targe