Vehicle-mounted safety platform machine inter-cage communication state detection method, equipment and medium
By actively sending detection frames during the system initialization stage of the vehicle security platform and sending SYNC frames during the normal operation stage, the problem of poor reliability of detecting communication status between cages in the prior art is solved, real-time reliable detection and simplified system logic design is realized.
Patent Information
- Application Number
- CN202411931979.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-05-06
AI Technical Summary
When detecting the communication status between cages of the vehicle-mounted security platform, the detection reliability is poor, and there is a problem of increasing the additional communication burden.
During the system initialization phase, the detection frames are actively sent, including the cage number information where the board is located. The detection frames are divided into long frames and short frames, which are used to detect communication performance and cage existence. During normal operation, the main control board sends SYNC frames every cycle and other boards respond to it to detect the communication status.
Real-time reliable detection in the system initialization stage is realized, the system logic design is simplified, the initialization time is reduced, and no additional communication burden is added during the normal operation stage.
Smart Images

Figure CN119945952A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a train signal control system, and in particular to a method, a device and a medium for detecting the communication state between cages of a vehicle-mounted safety platform. Background Art
[0002] In order to ensure passenger safety and improve operational efficiency, railway operators and equipment manufacturers are continuously developing and deploying more advanced train control systems to increase train operating speed while ensuring high safety and reliability.
[0003] The onboard safety platform is the core of the train control system. It is responsible for processing data from train sensors and IO acquisition boards, and monitoring the running status of the train in real time, including speed, braking system, door status, etc., to ensure that the train runs under safe conditions. Safe and reliable information exchange between various modules of the system is the basis for the normal operation of the system. For this reason, the main control board of the onboard safety platform needs to monitor the communication status of the entire system in real time.
[0004] If there is only one cage, the PHY chip status can be checked to confirm whether the communication conditions are met. In fact, the in-vehicle safety platform that uses redundant communication links is Figure 1 As shown, each board is in a different cage, and the cages are cascaded through a switch board SWB.
[0005] Each board runs inside an unused cage, and the cages are connected through switch boards. In this scenario, it is necessary to detect whether the communication link between the cages has the communication conditions and monitor the status of the communication link in real time during operation. Obviously, the communication status of the entire communication link cannot be obtained by checking the PHY status.
[0006] After searching, Chinese patent publication number CN109379264A discloses a multi-board communication device, method and system based on CAN2.0, which specifically discloses: identifying communication data through CAN ID identification technology; the communication data includes source address, destination address, task number, message frame number and number of transmitted bytes; according to the communication data, the communication format is determined through data packet division technology; the communication format includes message header, user data packet and message tail; judging whether the current data packet transmitted is correct according to the communication format, if so, establishing a communication link; communicating according to the communication link. However, the detection communication status of the existing technology is still relatively simple, and there are problems such as poor detection reliability and additional communication burden. Summary of the invention
[0007] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a method, device and medium for detecting the communication status between cages of a vehicle-mounted safety platform.
[0008] The purpose of the present invention can be achieved by the following technical solutions:
[0009] According to a first aspect of the present invention, a method for detecting the communication status between cages of a vehicle-mounted safety platform is provided. The method actively sends a detection frame during the system initialization phase, and broadcasts the cage number information of the board card on the communication bus; during the normal operation phase, the main control board sends a synchronization frame (SYNC) frame once per cycle, and the other boards respond, and the communication status of each cage is detected through the response frame of each board card.
[0010] As a preferred technical solution, the detection frame includes a long frame and a short frame, the long frame is used to detect communication performance, and the short frame is used to detect whether a cage exists.
[0011] As a preferred technical solution, the long frame is the maximum frame length allowed by the communication bus, and the short frame is 60 bytes in length.
[0012] As a preferred technical solution, the method specifically comprises the following steps:
[0013] Step S1, detecting the board type;
[0014] Step S2, detect the Phy chip status and wait for the Phy negotiation to succeed;
[0015] Step S3, after the phy negotiation is successful, determine whether a SYNC frame is received. If not, send a packet of long detection frames and a packet of short detection frames, and execute step S4. If yes, the system enters the normal operation state;
[0016] Step S4, after the main control board receives the short detection packet on the corresponding switch board during the system initialization phase and verifies it, it only records the cage, and after receiving the long detection frame and verifies it, it updates the switch board status corresponding to the cage to available;
[0017] Step S5, after the main control board detects that the switch boards of all cages of any link are available during the system initialization phase, the main control board enters the normal operation phase;
[0018] Step S6, the main control board enters the normal operation phase and sends a SYNC frame;
[0019] Step S7: After the remaining boards receive the SYNC frame, the system enters the normal operation state.
[0020] As a preferred technical solution, the frame header of the detection frame in step S3 includes the ID of the board.
[0021] As a preferred technical solution, the ID value of the board is as follows:
[0022] ID=(RACK-1)*4+SLOT
[0023] RACK is the cage number and SLOT is the slot number.
[0024] As a preferred technical solution, the frame tail of the detection frame in step S3 is CRC, and its operation polynomial is 0x4c11db7.
[0025] As a preferred technical solution, the period for sending a packet of long detection frames and a packet of short detection frames in step S3 is 50 ms.
[0026] As a preferred technical solution, during the normal operation phase, the main control board records that the communication status of the corresponding cage is normal as long as it receives a response message.
[0027] As a preferred technical solution, during the normal operation phase, if no message from a certain cage is received on the corresponding link for N consecutive cycles, the switch board status of the corresponding cage is set to be unavailable.
[0028] According to a second aspect of the present invention, there is provided an electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the method described above is implemented when the processor executes the program.
[0029] According to a third aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the program implements the method described above when executed by a processor.
[0030] Compared with the prior art, the present invention has the following advantages:
[0031] 1) The present invention can detect the communication status between each cage in real time and reliably during the system initialization stage, and provide a reference for whether the main control board can enter the normal operation stage. In addition to saving initialization time, it can also simplify the system logic design.
[0032] 2) In the initialization phase of the present invention, there is no normal message interaction on the communication bus. Taking full advantage of this idle time to actively send detection frames will not interfere with the normal operation of the system. Moreover, the detection frames have CRC checksums to determine that the communication status is true and reliable.
[0033] 3) In the normal operation phase, the present invention stops sending detection frames and uses the response frames of each board to monitor the communication status between each cage, which will not increase additional burden. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 Schematic diagram of an on-vehicle safety platform using redundant communication links;
[0035] Figure 2 It is a specific flow chart of the method of the present invention. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0037] The present invention proposes a method for detecting the communication status between cages. In the system initialization stage, active sending of detection frames is added, and information such as the cage number where the board is located is broadcast on the communication bus. The detection frames are divided into long frames and short frames. The length of the long frame is the maximum frame length allowed by the bus, and the short frame is 60 bytes in length. The long frame is used to detect the communication performance, and the short frame is used to detect whether the cage exists.
[0038] During the normal operation phase, the main control board sends a SYNC frame once per cycle, and the other boards respond. During the normal operation phase, the response frames of each board are used to detect the communication status of each cage.
[0039] like Figure 2 As shown, the specific process of the method of the present invention is as follows:
[0040] Step 1: Check the board type. Different board types will have different operations. If it is a master computing (MPB) board, perform master-slave management.
[0041] Step 2: Check the PHY status and wait for PHY negotiation to succeed.
[0042] Step 3: After the phy negotiation succeeds, determine whether the SYNC frame is received. If no SYNC frame is received, send a long detection frame and a short detection frame every 50ms.
[0043] The length of a short detection frame is 60 bytes, and the length of a long detection frame is 1451 bytes. The detection frame header contains the board ID. The board ID values are as follows:
[0044] ID = (RACK-1)*4+SLOT; (RACK: cage number; SLOT: slot number)
[0045] The tail of the detection packet frame is CRC, and the operation polynomial is: 0x4c11db7.
[0046] Step 4: During the initialization phase, after the main control board receives a short detection packet from the corresponding switch board and verifies that it passes, it only records the cage, and after receiving a long detection frame and verifies that it passes, it updates the switch board status corresponding to the cage to available.
[0047] Step 5: After the main control board detects that the switch boards of all cages in any link are available during the initialization phase, the main control board can enter the normal operation phase.
[0048] Step 6: The main control board enters the normal operation stage, sends SYNC frames, and no longer sends detection frames.
[0049] Step 7: After receiving the SYNC frame, the remaining boards no longer send detection frames, and the system enters normal operation.
[0050] Step 8: During the normal operation phase, the main control board records that the communication status of the corresponding cage is normal as long as it receives a response message.
[0051] Step 9: During the normal operation phase, if no message from a cage is received on the corresponding link for three consecutive cycles, the switch board status of the corresponding cage is set to unavailable and the communication link is abnormal.
[0052] The above is an introduction to the method embodiment. The following is a further explanation of the scheme of the present invention through electronic equipment and storage medium embodiments.
[0054] The embodiment of the present invention also provides an electronic device including a central processing unit (CPU), which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) or computer program instructions loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for device operation can also be stored. The CPU, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0055] Multiple components in the device are connected to the I / O interface, including: input units, such as keyboards, mice, etc.; output units, such as various types of displays, speakers, etc.; storage units, such as disks, optical disks, etc.; and communication units, such as network cards, modems, wireless communication transceivers, etc. The communication unit allows the device to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunication networks.
[0056] The processing unit performs the various methods and processes described above, such as the method of the present invention. For example, in some embodiments, the method of the present invention can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program can be loaded and / or installed on the device via a ROM and / or a communication unit. When the computer program is loaded into RAM and executed by the CPU, one or more steps of the method of the present invention described above can be performed. Alternatively, in other embodiments, the CPU can be configured to perform the method of the present invention by any other appropriate means (e.g., by means of firmware).
[0057] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0058] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0059] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 of the foregoing.
[0060] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for detecting the communication status between cages of a vehicle-mounted safety platform, characterized in that: The method actively sends a detection frame during the system initialization phase, and broadcasts the cage number information of the board on the communication bus; During the normal operation phase, the main control board sends a SYNC frame once per cycle, and the other boards respond. The communication status of each cage is detected through the response frames of each board.
2. According to claim 1, a method for detecting the communication status between cages of a vehicle-mounted safety platform is characterized in that: The detection frame includes a long frame and a short frame, the long frame is used to detect communication performance, and the short frame is used to detect whether a cage exists.
3. According to claim 2, a method for detecting the communication status between cages of a vehicle-mounted safety platform is characterized in that: The long frame is the maximum frame length allowed by the communication bus, and the short frame is 60 bytes in length.
4. According to claim 2, a method for detecting the communication status between cages of a vehicle-mounted safety platform is characterized in that: The method specifically comprises the following steps: Step S1, detecting the board type; Step S2, check the phy status and wait for phy negotiation to succeed; Step S3, after the phy negotiation is successful, determine whether a SYNC frame is received. If not, send a packet of long detection frames and a packet of short detection frames, and execute step S4. If yes, the system enters the normal operation state; Step S4, after the main control board receives the short detection packet on the corresponding switch board during the system initialization phase and verifies it, it only records the cage, and after receiving the long detection frame and verifies it, it updates the switch board status corresponding to the cage to available; Step S5, after the main control board detects that the switch boards of all cages of any link are available during the system initialization phase, the main control board enters the normal operation phase; Step S6, the main control board enters the normal operation phase and sends a SYNC frame; Step S7: After the remaining boards receive the SYNC frame, the system enters the normal operation state.
5. According to claim 4, a method for detecting the communication status between cages of a vehicle-mounted safety platform is characterized in that: The frame header of the detection frame in step S3 includes the ID of the board.
6. According to claim 5, a method for detecting the communication status between cages of a vehicle-mounted safety platform is characterized in that: The ID values of the board are as follows: ID=(RACK-1)*4+SLOT RACK is the cage number and SLOT is the slot number.
7. According to claim 4, a method for detecting the communication status between cages of a vehicle-mounted safety platform is characterized in that: The frame tail of the detection frame in step S3 is CRC, and its operation polynomial is 0x4c11db7.
8. According to claim 4, a method for detecting the communication status between cages of a vehicle-mounted safety platform is characterized in that: The period of sending a packet of long detection frames and a packet of short detection frames in step S3 is 50ms.
9. A method for detecting the communication status between cages of a vehicle-mounted safety platform according to claim 4, characterized in that: During the normal operation phase, the main control board records that the communication status of the corresponding cage is normal as long as it receives a response message.
10. A method for detecting the communication status between cages of a vehicle-mounted safety platform according to claim 4, characterized in that: During the normal operation phase, if no message from a certain cage is received on the corresponding link for N consecutive cycles, the switch board status of the corresponding cage is set to unavailable.
11. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the program, the method according to any one of claims 1 to 10 is implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Multi-board-card communication equipment, method and system based on CAN2.0
CN109379264A