Alarm simulation system and method based on real-time message bus
Through an alarm simulation system based on the real-time message bus, synchronous alarm simulation of rail transit vehicle failure is realized, the problem of lack of synchronous alarm function in the prior art is solved, and the working level and learning efficiency of maintenance personnel are improved.
Patent Information
- Application Number
- CN202411889142.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-05-27
AI Technical Summary
The existing technology has failed to realize the synchronous alarm simulation of rail transit vehicle failures, cannot effectively simulate the real alarm status, and lacks the synchronous alarm function between intelligent operation and maintenance systems and hardware systems.
The alarm simulation system based on the real-time message bus is adopted, and the fault command is edited through the command module, the signal simulator analyzes and sets up equipment failures, the alarm simulator generates alarm information, and sends it to the intelligent operation and maintenance module and hardware module synchronously through the real-time message bus to realize the synchronous occurrence of alarms.
Real-time synchronization of software and hardware alarms is achieved, the working level of maintenance personnel is improved, hardware costs and learning costs are reduced, and alarm simulation can be achieved without real vehicles.
Smart Images

Figure CN120045422A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of alarm simulation, and in particular to an alarm simulation system and method based on a real-time message bus. Background Art
[0002] With the rapid development of rail transit, it is becoming increasingly important to train personnel on the faults of rail transit vehicles. For problems such as train on-vehicle controller faults, area controller faults, and line controller faults, an alarm simulation system is needed to issue simulated fault commands and display corresponding fault states, which can simulate real alarms to provide professional subway maintenance personnel with the opportunity to learn how to detect and handle faults.
[0003] The invention patent with the publication number CN110136537A discloses a rail transit vehicle simulation control system, including: a simulation driver's console system, a vehicle main simulation control system, and a real-time database communication system; the simulation driver's console system includes at least one simulator, each simulator simulates a real train driver's console, obtains the operation information of the user on the simulated real train driver's console, and sends it to the vehicle main simulation control system through the real-time database communication system; the vehicle main simulation control system creates a main simulation environment and a vehicle main simulation, selects one simulator in the simulation driver's console system as a virtual driver's console, receives the operation information of the user on the real train driver's console simulated by the selected simulator through the real-time database communication system, and uses the vehicle dynamics model to realize the simulated driving control of the train according to the operation information and the simulation data of the selected simulator; this patent realizes the function of simulated driving, does not realize the function of alarm simulation, and does not realize the function of synchronizing alarms between the intelligent operation and maintenance system and the hardware system.
[0004] Therefore, providing an alarm simulation system that can achieve synchronized alarms is an urgent problem to be solved at present. Summary of the Invention
[0005] The purpose of the present invention is to overcome the defects of the above-mentioned existing technologies and provide an alarm simulation system and method based on a real-time message bus.
[0006] The purpose of the present invention can be achieved by the following technical solutions:
[0007] According to one aspect of the present invention, an alarm simulation system based on a real-time message bus is provided, including a command module, a signal simulator, an alarm simulator, an intelligent operation and maintenance module, a hardware module, and a real-time message bus. The command module is communicatively connected to the signal simulator, the signal simulator is communicatively connected to the alarm simulator through the real-time message bus, and the alarm simulator is communicatively connected to the intelligent operation and maintenance module and the hardware module respectively through the real-time message bus;
[0008] In the command module, a fault command is edited according to the fault to be simulated and sent to the signal simulator. After receiving the fault command, the signal simulator parses it and sets the corresponding device to a fault state. Meanwhile, the signal simulator generates fault information according to the parsed information and sends it to the alarm simulator. The alarm simulator generates alarm information according to the fault information and sends it to the intelligent operation and maintenance module and the hardware module respectively. The intelligent operation and maintenance module and the hardware module generate alarms synchronously.
[0009] As a preferred technical solution, the hardware module includes an indicator light, and the indicator light turns off or blinks according to the alarm information.
[0010] According to another aspect of the present invention, there is provided a method for the alarm simulation system based on the real-time message bus as described in any one of the above. The method specifically includes:
[0011] S1. Determine the fault to be simulated in the command module and edit the fault command;
[0012] S2. The command module sends the fault command to the signal simulator;
[0013] S3. The signal simulator parses the received fault command, sets the corresponding device to a fault state, generates fault information according to the parsed information, and sends it to the alarm simulator through the real-time message bus;
[0014] S4. The alarm simulator parses the fault information to generate alarm information and sends the information to the intelligent operation and maintenance module through the real-time message bus, and the intelligent operation and maintenance module displays the corresponding alarm content;
[0015] S5. The alarm simulator parses the fault information to generate alarm information and sends it to the hardware module through the real-time message bus, and the hardware module generates the corresponding alarm state.
[0016] As a preferred technical solution, both the fault information and the alarm information are JSON packets.
[0017] As a preferred technical solution, the alarm simulator has an alarm information library built in, and the alarm information library includes a State group structure, an Lru group structure, and an otherEquipment group structure;
[0018] Among them, the State group structure is used to describe the next state and the current state of the vehicle-mounted controller, the Lru group structure is used to describe the information of the vehicle-mounted controller, and the otherEquipment group structure is used to describe the information of the auxiliary equipment.
[0019] As a preferred technical solution, after the alarm simulator parses the corresponding fields from the fault information, it fills them into the State group structure, Lru group structure, and otherEquipment group structure, and the intelligent operation and maintenance module displays the alarm content according to the field information in the State group structure, Lru group structure, and otherEquipment group structure.
[0020] As a preferred technical solution, the State group structure includes stateLRUCounter and stateOtherEquipmentCounter, and stateLRUCounter and stateOtherEquipmentCounter represent counts.
[0021] As a preferred technical solution, the Lru group structure includes lruDefaultCode, lruDefaultContext, LruIndex, and lruState, and lruDefaultCode, lruDefaultContext, LruIndex, and lruState are, in sequence, the alarm code of the lru device, the content on the vehicle when the alarm occurs specifically, the name of the specific device on the vehicle, and the specific alarm type.
[0022] As a preferred technical solution, the otherEquipment group structure includes eqtDefaultCode, eqtDefaultContext, eqtIndex, and eqtState, and eqtDefaultCode, eqtDefaultContext, eqtIndex, and eqtState are, in sequence, the alarm code of the auxiliary device, the content on the vehicle when the alarm occurs specifically, the name of the specific device on the vehicle, and the specific alarm type.
[0023] As a preferred technical solution, after the alarm simulator parses the corresponding fields from the fault information, it forms the received fields into corresponding messages and forwards them to the hardware module through the real-time message bus, and the hardware module prompts the corresponding fault status.
[0024] Compared with the prior art, the present invention has the following beneficial effects:
[0025] 1. The present invention combines software and hardware, and sends commands to the intelligent operation and maintenance module and the hardware module in a centralized manner through the real-time message bus, enabling alarms to occur synchronously, and enhancing the real-time synchronization of software and hardware alarms.
[0026] 2. The present invention uses the State group structure, Lru group structure, and otherEquipment group structure to accommodate field information, making the information transmission reliable and easy to transmit.
[0027] 3. The present invention transmits alarm information through a real-time message bus. This mechanism has the characteristics of object-oriented programming and is implemented through a reliable TCP / IP communication middleware with a reconnection mechanism. This message bus supports a streaming network communication mode, ensuring the continuity and stability of data transmission.
[0028] 4. The present invention reduces hardware costs and improves the work level of maintenance personnel. It greatly saves the learning costs of professional maintenance personnel. Learning and processing alarms do not require a real vehicle, and only this alarm system can be used to achieve alarm simulation.
[0029] 5. When the present invention conducts simulated fault alarms, it occupies few resources and has strong platform compatibility. It can run on the vast majority of Windows hosts, facilitating wide deployment and saving the costs of training urban rail maintenance personnel. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 is a schematic diagram of the overall structure of the present invention;
[0031] Figure 2 is a working flowchart of the intelligent operation and maintenance module of the present invention;
[0032] Figure 3 is a working flowchart of the hardware module of the present invention;
[0033] Figure 4 is a schematic diagram of the structure of the alarm information library of the present invention;
[0034] Figure 5 is a schematic diagram of the structure of the State group of the present invention;
[0035] Figure 6 is a schematic diagram of the structure of the Lru group of the present invention;
[0036] Figure 7 is a schematic diagram of the structure of the otherEquipment group of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0037] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0038] Aiming at the deficiencies of high cost and poor stability in simulating subway vehicle alarms, it is difficult to meet the needs of subway professionals' training and learning in real time. At the same time, simulating the failures of on-vehicle controllers of a single train or multiple trains, area controllers, and line controllers can simulate real alarm guarantees, which can be used by professional subway maintenance personnel to learn how to detect and handle faults.
[0039] The present invention provides an alarm simulation system and method based on a real-time message bus. The present invention transmits alarm information through the real-time message bus. This mechanism has the characteristics of object-oriented programming and is implemented through a reliable TCP / IP communication middleware with a reconnection mechanism. This message bus supports a streaming network communication mode, ensuring the continuity and stability of data transmission. The present invention combines software and hardware. The command module sends commands to the intelligent operation and maintenance module and the hardware module through the real-time message bus in a centralized manner, enabling alarms to occur synchronously and enhancing the real-time synchronization of software and hardware alarms. The present invention reduces hardware costs and improves the working level of maintenance personnel. The present invention greatly saves the learning costs of professional maintenance personnel. Learning and handling alarms do not require real vehicles, and only this alarm system can be used to achieve alarm simulation. When the present invention simulates a fault alarm, it occupies few resources and has strong platform compatibility. It can run on most Windows hosts, facilitating wide deployment and saving the cost of training urban rail maintenance personnel.
[0040] Embodiment 1
[0041] As Figure 1 shown, an alarm simulation system based on a real-time message bus includes a command module, a signal simulator, an alarm simulator, an intelligent operation and maintenance module, a hardware module, and a real-time message bus. The command module is communicatively connected to the signal simulator. The signal simulator is communicatively connected to the alarm simulator through the real-time message bus. The alarm simulator is communicatively connected to the intelligent operation and maintenance module and the hardware module respectively through the real-time message bus.
[0042] In the command module, a fault command is edited according to the fault to be simulated and sent to the signal simulator. After receiving the fault command, the signal simulator parses it and sets the corresponding device to a fault. At the same time, fault information is generated according to the parsed information and sent to the alarm simulator. The alarm simulator generates alarm information according to the fault information and sends it to the intelligent operation and maintenance module and the hardware module respectively. The intelligent operation and maintenance module and the hardware module generate alarms synchronously.
[0043] The hardware module includes an indicator light, which extinguishes or flashes according to the alarm information.
[0044] In this embodiment, an autonomous and controllable real-time message bus technology is adopted in the system. This technology integrates the characteristics of object-oriented programming and is implemented through a reliable TCP / IP communication middleware. The real-time message bus supports a streaming network communication mode, ensuring the continuity and stability of data transmission. The bus is configured during the system design phase, and all nodes within the entire system, whether they are clusters or individual workstations, follow the same bus settings to ensure consistency and compatibility. The command module edits fault commands, and the specific content includes vehicle coding information, vehicle equipment coding information, and vehicle equipment alarm coding information. The background of the command module parses and processes the edited fault commands and transmits them to the signal simulator according to the agreed data format.
[0045] The signal simulator receives and processes the message information sent by the command, extracts the vehicle information, vehicle equipment information, and fault code information, and sends them to the alarm simulator in the format of a JSON message through the real-time message bus. The alarm simulator processes the received information and sends it to the intelligent operation and maintenance module and the hardware module respectively for synchronous alarm. The hardware module includes an indicator light. When it receives the corresponding fault command, it controls the corresponding indicator light to flash or turn off to indicate the fault location.
[0046] Embodiment 2
[0047] As Figures 2 - 7 shown, a method for an alarm simulation system based on a real-time message bus, the method specifically includes:
[0048] S1. Determine the fault to be simulated in the command module and edit the fault command;
[0049] S2. The command module sends the fault command to the signal simulator;
[0050] S3. The signal simulator parses the received fault command, sets the corresponding device to a fault, generates fault information according to the parsed information, and sends it to the alarm simulator through the real-time message bus;
[0051] S4. The alarm simulator parses the fault information to generate alarm information and sends the information to the intelligent operation and maintenance module through the real-time message bus, and the intelligent operation and maintenance module displays the corresponding alarm content;
[0052] S5. The alarm simulator parses the fault information to generate alarm information and sends it to the hardware module through the real-time message bus, and the hardware module generates the corresponding alarm state.
[0053] Both the fault information and the alarm information are JSON packets.
[0054] The alarm simulator has an alarm information library built-in, and the alarm information library includes a State group structure, an Lru group structure, and an otherEquipment group structure.
[0055] After the alarm simulator parses the corresponding fields from the fault information, it fills them into the State group structure, the Lru group structure, and the otherEquipment group structure. The intelligent operation and maintenance module displays the alarm content based on the field information in the State group structure, the Lru group structure, and the otherEquipment group structure.
[0056] The State group structure includes stateLRUCounter and stateOtherEquipmentCounter.
[0057] The Lru group structure includes lruDefaultCode, lruDefaultContext, LruIndex, and lruState.
[0058] The otherEquipment group structure includes eqtDefaultCode, eqtDefaultContext, eqtIndex, and eqtState.
[0059] After the alarm simulator parses the corresponding fields from the fault information, it forms the received fields into a corresponding message and forwards it to the hardware module through the real-time message bus. The hardware module prompts the corresponding fault status.
[0060] In this embodiment, according to the JSON packet, it is converted into a corresponding message. The message includes the following content:
[0061] {
[0062] "type":0,
[0063] "trainNum":"801",
[0064] "lruState":"1",
[0065] "lruIndex":"1",
[0066] "lruDefaultCode":"1"
[0067] "stateLRUCounter":"0"
[0068] "lruDefaultContext":""
[0069] "CCCORE1":"10"
[0070] "CCCORE2": "10"
[0071] }
[0072] When the value of "type" is 0, it means that this system is an Lru group structure.
[0073] trainNum is the vehicle number, representing 801 vehicle, 802 vehicle, and 803 vehicle.
[0074] lruIndex is the index number of VIOM1CORE1 in the Lru group system.
[0075] lruState represents whether the device is faulty. 0 means normal and 1 means faulty.
[0076] The count value of stateLRUCounter changes from 0 to 65535 and is accumulated when sending a packet of data.
[0077] "lruDefaultContext": ""; 37 bytes, containing detailed information about the train.
[0078] "CCCORE1": "10"; The running time of the first head. 10 means one cycle every 30s, representing a running time of 300 seconds.
[0079] "CCCORE2": "10"; The running time of the second head. 10 means one cycle every 30s, representing a running time of 300 seconds.
[0080] The State group structure describes the next state and the current state of the vehicle-mounted controller. The stateLRUCounter state and the stateOtherEquipmentCounter state values are used to represent the count in the alarm. The Lru group structure is as follows. The data items used are lruDefaultCode, lruDefaultContext, LruIndex, and lruState, which are the alarm code of the lru device, the content on the vehicle during the specific alarm, the name of the specific vehicle-mounted device, and the specific alarm type respectively. The otherEquipment group structure is as follows. The data items used are eqtDefaultCode, eqtDefaultContext, eqtIndex, and eqtState, which are the alarm code of the auxiliary equipment, the content on the vehicle during the specific alarm, the name of the specific vehicle-mounted device, and the specific alarm type respectively. The auxiliary equipment includes switch equipment, etc.
[0081] The alarm simulator receives the message information sent by the processing signal simulator through the real-time message bus, updates the values in the tablespace corresponding to each vehicle, and forms a Modbus message according to the Modbus protocol format agreed upon with the hardware module, and sends it to the hardware module through the real-time message bus. The hardware module completes the change of the lamp position;
[0082] The intelligent operation and maintenance module sends a request for the change information of all vehicles to the alarm simulator through the real-time message bus. The alarm simulator returns the updated information to the intelligent operation and maintenance module, and the intelligent operation and maintenance module parses and processes it to display the alarm information on the terminal.
[0083] The above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. An alarm simulation system based on a real-time message bus, characterized in that: It includes a command module, a signal simulator, an alarm simulator, an intelligent operation and maintenance module, a hardware module and a real-time message bus, wherein the command module is communicatively connected to the signal simulator, the signal simulator is communicatively connected to the alarm simulator via the real-time message bus, and the alarm simulator is communicatively connected to the intelligent operation and maintenance module and the hardware module via the real-time message bus respectively; In the command module, a fault command is edited according to the fault to be simulated and sent to the signal simulator. After receiving the fault command, the signal simulator parses it and sets the corresponding device as a fault. At the same time, fault information is generated according to the parsed information and sent to the alarm simulator. The alarm simulator generates alarm information according to the fault information and sends it to the intelligent operation and maintenance module and the hardware module respectively. The intelligent operation and maintenance module and the hardware module generate alarms synchronously.
2. The alarm simulation system based on real-time message bus according to claim 1 is characterized in that: The hardware module includes an indicator light, which goes out or flashes according to the alarm information.
3. A method for an alarm simulation system based on a real-time message bus as claimed in any one of claims 1 to 2, characterized in that: The method specifically comprises: S1. Determine the fault to be simulated in the command module and edit the fault command; S2, the command module sends the fault command to the signal simulator; S3, the signal simulator parses the received fault command, sets the corresponding device to fault, generates fault information according to the parsed information and sends it to the alarm simulator via the real-time message bus; S4, the alarm simulator generates alarm information according to the fault information analysis and sends the information to the intelligent operation and maintenance module through the real-time message bus, and the intelligent operation and maintenance module displays the corresponding alarm content; S5. The alarm simulator generates alarm information according to the fault information analysis and sends it to the hardware module through the real-time message bus, and the hardware module generates a corresponding alarm state.
4. The method according to claim 3, characterized in that The fault information and alarm information are both JSON packages.
5. The method according to claim 3, characterized in that: The alarm simulator has a built-in alarm information library, which includes a State group structure, an Lru group structure and an otherEquipment group structure; Among them, the State group structure is used to describe the next state and the current state of the vehicle controller, the Lru group structure is used to describe the information of the vehicle controller, and the otherEquipment group structure is used to describe the information of the auxiliary equipment.
6. The method according to claim 5, characterized in that After the alarm simulator parses the corresponding fields of the fault information, it fills them into the State group structure, Lru group structure and otherEquipment group structure. The intelligent operation and maintenance module displays the alarm content according to the field information in the State group structure, Lru group structure and otherEquipment group structure.
7. The method according to claim 5, characterized in that The State group structure includes stateLRUCounter and stateOtherEquipmentCounter, and the stateLRUCounter and stateOtherEquipmentCounter represent counts.
8. The method according to claim 5, characterized in that The Lru group structure includes lruDefaultCode, lruDefaultContext, LruIndex and lruState, wherein lruDefaultCode, lruDefaultContext, LruIndex and lruState are respectively the alarm code of the lru device, the specific vehicle-mounted content during the alarm, the name of the specific vehicle-mounted device and the specific alarm type.
9. The method according to claim 5, characterized in that The otherEquipment group structure includes eqtDefaultCode, eqtDefaultContext, eqtIndex and eqtState, wherein eqtDefaultCode, eqtDefaultContext, eqtIndex and eqtState are respectively the alarm code of the auxiliary equipment, the specific vehicle-mounted content during the alarm, the name of the specific vehicle-mounted equipment and the specific alarm type.
10. The method according to claim 3, characterized in that: After the alarm simulator parses the fault information to obtain corresponding fields, it composes the received fields into corresponding messages and forwards them to the hardware module through the real-time message bus. The hardware module prompts the corresponding fault status.
Citation Information
Patent Citations
Rail transit vehicle simulation control system
CN110136537A