Emergency control box alarm system and related method

By introducing multi-channel monitoring service threads and echo servers into the rail transit system, asynchronous communication between the emergency control box and the line operation and maintenance management platform is realized, and status data reporting is processed in parallel, which solves the thread pool blockage and data loss caused by concurrent access, and improves the system's processing efficiency.

CN119766625APending Publication Date: 2025-04-04BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410878623.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

In the rail transit system, when the communication between the emergency control box and the line operation and maintenance management platform is large, it is easy to cause thread pool blockage and data loss.

Method used

Multi-channel listening service threads and echo servers are used to process the status data reporting of multiple emergency control boxes in parallel through the asynchronous communication channel to avoid thread pool blockage, and perform emergency operations through the Active MQ message queue.

Benefits of technology

The parallel processing of state data reported by multiple emergency control boxes is realized, which improves the system's processing efficiency and avoids thread pool blockage and data loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766625A_ABST
    Figure CN119766625A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an emergency control box alarm system and a related method, and the system comprises a multi-channel monitoring service thread which comprises a plurality of channel monitoring service threads and is used for building an asynchronous communication channel between each emergency control box and a line operation and maintenance management platform; any channel monitoring service thread is used for forwarding a query state command issued by the line operation and maintenance management platform to the emergency control box corresponding to the channel monitoring service line; the emergency control box is used for receiving a query state command and reporting state data; and the echo server is established by the line operation and maintenance management platform, is connected with the line operation and maintenance management platform, and is used for receiving the state data transmitted by the channel monitoring service thread, analyzing the state data to obtain abnormal data, and sending an Active MQ message to the line operation and maintenance management platform to execute emergency operation. By adopting the embodiment of the invention, the situations of thread pool blockage and data loss can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of rail vehicle transportation technology, and in particular to an emergency control box alarm system and related methods. Background Art

[0002] Urban rail transit system has become one of the important symbols of a modern and civilized city. The safety of the Automatic Fare Collection System (AFC) is an extremely important task.

[0003] In order to ensure the safety of passengers in an emergency, a corresponding safety mechanism has been developed. At present, emergency control boxes are connected to the gates of the AFC system in rail transit stations. The function of the emergency control box is to respond to the signal of the integrated backup control panel (IBP) in the train control room and the signal of the subway fire alarm system (FAS), control all gates to open, and the gates will feedback the gate status to the emergency control box, and the emergency control box communicates with the station's line operation and maintenance management platform (OMC) through the network interface.

[0004] The communication connection between the emergency control box and the line operation and maintenance management platform OMC follows TCP / IP (Transmission Control Protocol / Internet Protocol), which is usually based on a pseudo-asynchronous IO communication architecture and uses Socket programming to determine a two-way communication connection and data exchange between the client and the server.

[0005] However, when the above solution is used and there are a large number of client requests, the increase in concurrent access volume will cause the thread pool to be blocked, which may easily cause data loss. Summary of the invention

[0006] The embodiments of the present application provide an emergency control box alarm system and related methods to achieve parallel processing of status data reported by multiple emergency control boxes, which is beneficial to avoiding thread pool blocking and data loss.

[0007] In a first aspect, an embodiment of the present application provides an emergency control box alarm system, characterized in that it includes:

[0008] A multi-channel monitoring service thread, including multiple channel monitoring service threads, is used to establish an asynchronous communication channel between each emergency control box and the line operation and maintenance management platform;

[0009] Any of the channel monitoring service threads is used to forward the query status command issued by the line operation and maintenance management platform to the emergency control box corresponding to the channel monitoring service line;

[0010] The emergency control box is used to receive the query status command and report status data;

[0011] The echo server is established by the line operation and maintenance management platform and connected to the line operation and maintenance management platform, and is used to receive the status data transmitted by the channel monitoring service thread, and analyze the status data to obtain abnormal data, and then send an intermediate message to the line operation and maintenance management platform to perform emergency operations.

[0012] In some examples of the present application, each of the emergency control boxes is further used to send a connection request to the echo server or the line operation and maintenance management platform;

[0013] In terms of establishing an asynchronous communication channel between the emergency control box and the line operation and maintenance management platform, any one of the channel monitoring service threads is specifically used to: receive the connection request; when the connection request is a valid connection request, establish a handshake connection between the emergency control box and the line operation and maintenance management platform; open a channel Socket connection to establish the corresponding asynchronous communication channel between the emergency control box and the line operation and maintenance management platform.

[0014] In some examples of the present application, in terms of analyzing the status data to obtain abnormal data, the echo server is specifically used to: if the status data includes abnormal alarm information, determine that the status data is the abnormal data.

[0015] In some examples of the present application, the emergency control box alarm system also includes a front-end display interface, and the front-end display interface is used to receive the intermediate message and display the abnormal alarm information.

[0016] In some examples of the present application, after the channel Socket connection is opened, the line operation and maintenance management platform is used to: parse the Socket information transmitted by the channel monitoring service thread, obtain the IP address and port number corresponding to the emergency control box, and add the Socket information to the Socket list, and the Socket list is used to manage the emergency control boxes corresponding to different lines or stations.

[0017] In some examples of the present application, after establishing an asynchronous communication channel between each emergency control box and the line operation and maintenance management platform, the echo server is also used to: receive manual abnormal alarm information transmitted by any one of the channel monitoring service threads; analyze the manual abnormal alarm information to obtain a data frame carrying an IBP signal; package the data frame carrying the IBP signal and send the intermediate message to the line operation and maintenance management platform to perform emergency operations.

[0018] In some examples of the present application, the echo server is further used to: if the status data transmitted by the channel monitoring service thread is not received, update the emergency control box to an inoperative state.

[0019] In some examples of the present application, the intermediate message is an Active MQ message.

[0020] In a second aspect, an embodiment of the present application provides an emergency control box alarm method, which is applied to an emergency control box alarm system, wherein the emergency control box alarm system includes: a multi-channel monitoring service thread, multiple emergency control boxes, an echo server, and a line operation and maintenance management platform, wherein the multi-channel monitoring service thread includes multiple channel monitoring service threads, and the method includes:

[0021] Establishing an asynchronous communication channel between each of the emergency control boxes and the line operation and maintenance management platform through the multi-channel monitoring service thread;

[0022] Forwarding the query status command issued by the line operation and maintenance management platform to the emergency control box corresponding to the channel monitoring service line;

[0023] Receiving the query status command through the emergency control box and reporting status data;

[0024] The state data transmitted by the channel monitoring service thread is received through the echo server, and the state data is analyzed to obtain abnormal data, and emergency operations are performed.

[0025] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.

[0026] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute some or all of the steps described in the first aspect of this embodiment.

[0027] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product may be a software installation package.

[0028] It can be seen that the emergency control box alarm system described in the embodiment of the present application includes a multi-channel monitoring service thread, including multiple channel monitoring service threads, which are used to establish an asynchronous communication channel between each emergency control box and the line operation and maintenance management platform; any of the channel monitoring service threads is used to forward the query status command issued by the line operation and maintenance management platform to the emergency control box corresponding to the channel monitoring service line; the emergency control box is used to receive the query status command and report status data; the echo server is established by the line operation and maintenance management platform and connected to the line operation and maintenance management platform, and is used to receive the status data transmitted by the channel monitoring service thread, and analyze the status data to obtain abnormal data, and then send an Active MQ message to the line operation and maintenance management platform to perform emergency operations. In this way, a multi-channel monitoring service line is introduced, and the interactive communication between multiple emergency control boxes and the line operation and maintenance management platform is realized through the multi-channel monitoring service thread and the echo server, which occupies low network resources. When any emergency control box is abnormal, it can be reported to the line operation and maintenance management platform in time through the corresponding channel monitoring service thread, so as to perform emergency operations in time, which is beneficial to improve the processing efficiency of the emergency control box alarm system, and is beneficial to improve the working efficiency of the emergency control box alarm system, so as to realize the parallel processing of status data reported by multiple emergency control boxes, and is beneficial to avoid thread pool blocking and data loss. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 It is a structural diagram of an automatic fare collection system (Automatic Fare Collection System, AFC) provided in an embodiment of the present application;

[0031] Figure 2 It is a schematic diagram of the architecture of an emergency control box alarm system provided by an embodiment of the present application;

[0032] Figure 3 It is a schematic diagram of interaction between a line operation and maintenance management platform OMC and an emergency control box provided in an embodiment of the present application;

[0033] Figure 4 It is a schematic diagram of a process of uploading device status by an emergency control box based on Netty architecture provided in an embodiment of the present application;

[0034] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0035] Figure 6 It is a flowchart of an emergency control box alarm method provided by an embodiment of the present application;

[0036] Figure 7 This is a functional unit composition block diagram of an emergency control box alarm device provided in an embodiment of the present application;

[0037] Figure 8 This is a block diagram of the functional units of another emergency control box alarm device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0039] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0040] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0041] The definitions or explanations of the concepts and terms involved in this application are as follows.

[0042] Netty architecture: a non-blocking, event-driven network application service development framework. Although the Netty structure is based on Socket, it expands and upgrades the transmission performance of the architecture. This architecture is based on the network communication framework developed based on NIO (Nonblocking I / O). The server and client have strong concurrent data processing capabilities, good data encapsulation, and fast transmission speed.

[0043] Echo Server: A server-side service in the Netty architecture.

[0044] Socket: A socket is an intermediate software abstraction layer for communication between the application layer and the TCP / IP protocol family. It is the basic operation unit for communication that supports the TCP / IP protocol.

[0045] Active MQ: is an open source messaging middleware implementation based on the JMS (Java Message Servie) specification. Its design goal is to provide standard, message-oriented, application integration messaging communication middleware that can span multiple languages ​​and multiple systems. It is often used to decouple applications from system services and push asynchronous messages.

[0046] The integrated backbone panel (IBP) in the train control room is a device placed in the integrated control room of a subway station.

[0047] The emergency control box is installed in the station computer room and has a hard-wired signal interface with FAS and IBP. When an emergency occurs at the station, the operator presses the "Release" button on the IBP panel to put the station system into emergency mode and receive the fire alarm linkage signal from the station FAS system.

[0048] The emergency control box will upload the received emergency operation signal to the station computer through the communication port within a fixed time period, and upload it to the central computer system through the station management system. The system will analyze the data frames uploaded by the emergency control box and make analysis and judgment. If alarm data appears, it will notify the background system to start emergency transaction processing and open the gate to evacuate passengers.

[0049] In emergency mode, the emergency control box can control all the blocking mechanisms (blocking bars, doors, flap doors, etc.) of the station entrance and exit and two-way ticket gates to open automatically, so that passengers can quickly leave the station without using tickets. Because the line operation and maintenance management platform OMC continuously sends heartbeat commands (used to obtain gate feedback signals, 1- represents emergency status, 0- represents no emergency status), the system interface staff can get the current status of the emergency control box on the front-end display of OMC.

[0050] The communication connection between the emergency control box and the line operation and maintenance management platform OMC follows TCP / IP (Transmission Control Protocol / Internet Protocol), which is usually based on a pseudo-asynchronous IO communication architecture and uses Socket programming to determine a two-way communication connection and data exchange between the client and the server.

[0051] However, when the above solution is used and there are a large number of client requests, the increase in concurrent access volume will cause the thread pool to be blocked, which may easily cause data loss.

[0052] In view of the above problems, an embodiment of the present application provides an emergency control box alarm system and related methods. The embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0053] See also Figure 1 , Figure 1 Schematic diagram of the structure of an automatic fare collection system (AFC) provided in the embodiment of the present application. Figure 1 As shown, it may include: a backend system, a line operation and maintenance management platform (Operation and Maintenance Center, OMC), an emergency control box and a gate unit.

[0054] For example, the emergency control box is provided with several automatic ticket gate interfaces, and multiple automatic ticket gates can be connected through the wiring terminals. When the external IBP or FAS signal is transmitted to the emergency control box, the communication interface connected to the corresponding system of the OMC will transmit the data frame to the background system.

[0055] See also Figure 2 , is a schematic diagram of the architecture of an emergency control box alarm system provided in an embodiment of the present application. Figure 2 As shown, it includes: multi-channel monitoring service thread, emergency control box, echo server and line operation and maintenance management platform OMC.

[0056] A multi-channel monitoring service thread, including multiple channel monitoring service threads, is used to establish an asynchronous communication channel between each emergency control box and the line operation and maintenance management platform;

[0057] Any of the channel monitoring service threads is used to forward the query status command issued by the line operation and maintenance management platform to the emergency control box corresponding to the channel monitoring service line;

[0058] The emergency control box is used to receive the query status command and report status data;

[0059] The echo server is established by the line operation and maintenance management platform and connected to the line operation and maintenance management platform, and is used to receive the status data transmitted by the channel monitoring service thread, and analyze the status data to obtain abnormal data, and then send an intermediate message to the line operation and maintenance management platform to perform emergency operations, wherein the intermediate message is an Active MQ message.

[0060] Each channel monitoring service thread corresponds to a line or station. Figure 1 Emergency control box shown.

[0061] For example, each channel monitoring service thread, in addition to forwarding the query status command issued by OMC to the emergency control box corresponding to the channel monitoring service thread, is also used to transmit data, establish a communication channel, establish or transmit or forward a channel Socket connection, monitor the status of the corresponding emergency control box, upload the status data of the emergency control box to OMC, etc., which is not limited here.

[0062] The echo server (Echo Server) can be established by a line operation and maintenance management platform.

[0063] The above-mentioned query status command is used to query the device status of the emergency control box, and the device status may include at least one of the following: working status and non-working status.

[0064] Among them, the multi-channel monitoring service thread can simultaneously handle the abnormal information reporting of multiple channels and the issuance of control commands from the line operation and maintenance management platform.

[0065] For example, when the emergency control box receives a status query command, it will perform status data reporting within a certain period of time (for example, an interval of 10-30 seconds). The status data sent by multiple emergency control boxes can be distributed through a multi-channel listening service thread. If the distributed data reaches the Echo Server data processing interface, the echo server receives the status data transmitted by the corresponding channel listening service thread of each emergency control box. If abnormal data is obtained by analyzing the status data, an Active MQ message is sent to the line operation and maintenance management platform to perform emergency operations.

[0066] Among them, Figure 1 As shown, the above emergency operation can be opening the gate corresponding to the emergency control box, or broadcasting to urgently evacuate the crowd, etc.

[0067] For example, Figure 3 The figure shows the interaction between the line operation and maintenance management platform OMC and the emergency control box; it includes: line operation and maintenance management platform OMC, emergency control box and gate. Figure 1 , an emergency control box is generally connected to the gate of the AFC system. The emergency control box responds to the signal of the integrated backup control panel (IBP) in the train control room and the signal of the subway fire alarm system (FAS), and uploads the status data containing the above signals to the OMC, which analyzes the status data. If the status data includes abnormal data, it will be fed back to the front-end display interface to help the back-end staff determine whether it is necessary to control all gates to open the doors to perform emergency operations, that is, to open all gates corresponding to the emergency control box. Then the gate feeds back the gate status to the emergency control box, and the emergency control box continues to communicate with the station's line operation and maintenance management platform (Operation and Maintenance Center, OMC) through the Echo Server data processing interface.

[0068] In one possible example, each of the emergency control boxes is also used to send a connection request to the echo server or the line operation and maintenance management platform; in establishing an asynchronous communication channel between the emergency control box and the line operation and maintenance management platform, any one of the channel monitoring service threads is specifically used to: receive the connection request; when the connection request is a valid connection request, establish a handshake connection between the emergency control box and the line operation and maintenance management platform; open a channel Socket connection to establish the corresponding asynchronous communication channel between the emergency control box and the line operation and maintenance management platform.

[0069] The connection request may be a TCP Socket connection request, and the emergency control box may send the TCP Socket connection request to the echo server.

[0070] For example, the above connection request may refer to the first connection request initiated by the emergency control box to the line operation and maintenance management platform, or it may be a connection request initiated to the echo server when the emergency control box is converted from an off-working state to a working state, or when the corresponding or related channel monitoring service thread needs to be re-determined.

[0071] When any channel monitoring service thread completes the establishment of the asynchronous communication channel, the channel monitoring service thread is determined to be in an activated state.

[0072] For example, after establishing a TCP Socket connection between the emergency control box and the line operation and maintenance management platform, the system can establish an echo server based on the Netty architecture; and after establishing the echo server, for multiple emergency control boxes, continue to establish the above-mentioned multi-channel listening service thread, that is, multiple channel listening service threads, each channel listening service thread corresponds to an emergency control box, so as to facilitate the subsequent establishment of asynchronous communication connections between multiple emergency control boxes and the line operation and maintenance management platform.

[0073] It can be seen that in this example, when the emergency control box initiates a connection request, a corresponding channel listening service thread can be established through the line operation and maintenance management platform, and a channel Socket connection can be established between the emergency control box and the line operation and maintenance management platform within the channel listening service thread to establish an asynchronous communication connection between the two. In this way, the asynchronous communication connection between the emergency control box and the line operation and maintenance management platform can be supported through multiple channel listening service threads to achieve concurrent data processing at the same time. When any emergency control box feeds back abnormal data, it can be reported to the line operation and maintenance management platform in a timely manner through the corresponding channel listening service thread, so as to perform emergency operations in a timely manner, which is conducive to improving the processing efficiency of the emergency control box alarm system.

[0074] In a possible example, in the aspect of analyzing the status data to obtain abnormal data, the echo server is specifically used to: if the status data includes abnormal alarm information, determine that the status data is the abnormal data.

[0075] The above abnormal alarm data may refer to an IBP signal or a FAS signal.

[0076] It can be seen that in this example, the system can forward the IBP signal or FAS signal reported by the emergency control box through the channel monitoring service thread, and send the Active MQ message to the line operation and maintenance management platform through the echo server to perform emergency operations, which is beneficial to improve the efficiency of alarm execution, so as to help the background staff determine whether to start emergency transaction processing and open the gate to evacuate passengers, which is beneficial to ensure the safety of passengers.

[0077] In a possible example, the emergency control box alarm system further includes a front-end display interface, and the front-end display interface is used to receive the Active MQ message and display the abnormal alarm information.

[0078] Among them, the above-mentioned line operation and maintenance management platform can also establish an Active MQ service, which is used to directly notify the Active MQ message queue when the multi-channel monitoring service thread reports the abnormal data or abnormal alarm information obtained by monitoring, and the Active MQ service accepts the abnormal data or abnormal alarm information and performs corresponding emergency processing to facilitate the background staff to discover the alarm signal.

[0079] For example, the Active MQ service may send an Active MQ message to the line operation and maintenance management platform, and display the message in a timely manner on the front end of the system (for example, Figure 1 The front-end display interface included in the middle and back-end systems displays the above abnormal alarm information.

[0080] Among them, the above abnormal alarm information can be displayed in the front-end display interface through a preset emergency event logo to remind the back-end staff to start the emergency plan.

[0081] Optionally, the line operation and maintenance management platform may periodically refresh the above abnormal alarm information, that is, periodically issue a query status command for the emergency control box.

[0082] It can be seen that in this example, the emergency control box alarm system can be used to smoothly upload abnormal data or abnormal alarm information, and the front-end display interface can be used to remind the back-end staff to determine whether to initiate emergency affairs processing and open the gate to evacuate passengers, which is conducive to ensuring the safety of passengers.

[0083] In one possible example, after the channel Socket connection is opened, the line operation and maintenance management platform is used to: parse the Socket information transmitted by the channel monitoring service thread, obtain the IP address and port number corresponding to the emergency control box, and add the Socket information to the Socket list, and the Socket list is used to manage the emergency control boxes corresponding to different lines or stations.

[0084] Among them, the IP address (Internet Protocol Address) (the identification number assigned to the emergency control box) and the port number are used to simultaneously ensure that the corresponding emergency control box and the rail transit LAN are in the same system, and to ensure that the emergency control box can establish a network connection with the line operation and maintenance management platform and issue the above-mentioned connection request.

[0085] Among them, each station or line can correspond to an emergency control box.

[0086] It can be seen that in this example, the emergency control box alarm system can obtain the socket list of the emergency control boxes on all lines, so as to manage or monitor different emergency control boxes corresponding to different lines or stations through the channel monitoring service thread.

[0087] In a possible example, after establishing an asynchronous communication channel between each emergency control box and the line operation and maintenance management platform, the echo server is also used to: receive manual abnormal alarm information transmitted by any one of the channel monitoring service threads; analyze the manual abnormal alarm information to obtain a data frame carrying an IBP signal; package the data frame carrying the IBP signal and send the Active MQ message to the line operation and maintenance management platform to perform emergency operations.

[0088] Among them, when encountering an emergency situation, such as the human-machine interface failure of the vehicle control room personnel and the inability to control the equipment through the human-machine interface, the vehicle control room personnel can press the IBP button to start the backup operation of emergency processing. At this time, the EchoServer data processing interface can receive manual abnormal alarm information and transmit the manual abnormal alarm information through the channel monitoring service thread in the activated state.

[0089] Optionally, the emergency control box alarm system may also periodically obtain manual abnormal alarm information of data frames carrying IBP signals.

[0090] It can be seen that in this example, the emergency control box alarm system also has the function of enabling the staff of the operation and maintenance monitoring office to press the IBP emergency button when encountering an emergency situation, which is conducive to timely reflecting the data frame corresponding to the above-mentioned IBP signal on the front-end display interface, and is conducive to the back-end staff to make corresponding emergency operations in a timely manner.

[0091] In a possible example, the echo server is further used to: if the status data transmitted by the channel monitoring service thread is not received, update the emergency control box to an inoperative state.

[0092] Among them, when the emergency control box is not working, the IP and port number of the emergency control box can also be reflected to the front-end interface, and it can be deleted from the Socket list, so that the back-end staff can arrange personnel to check the emergency control box manually.

[0093] It can be seen that the emergency control box alarm system described in the embodiment of the present application includes a multi-channel monitoring service thread, including multiple channel monitoring service threads, which are used to establish an asynchronous communication channel between each emergency control box and the line operation and maintenance management platform; any of the channel monitoring service threads is used to forward the query status command issued by the line operation and maintenance management platform to the emergency control box corresponding to the channel monitoring service line; the emergency control box is used to receive the query status command and report status data; the echo server is established by the line operation and maintenance management platform and connected to the line operation and maintenance management platform, and is used to receive the status data transmitted by the channel monitoring service thread, and analyze the status data to obtain abnormal data, and then send an Active MQ message to the line operation and maintenance management platform to perform emergency operations. In this way, a multi-channel monitoring service line is introduced, and the interactive communication between multiple emergency control boxes and the line operation and maintenance management platform is realized through the multi-channel monitoring service thread and the echo server, which occupies low network resources. When any emergency control box is abnormal, it can be reported to the line operation and maintenance management platform in time through the corresponding channel monitoring service thread, so as to perform emergency operations in time, which is beneficial to improve the processing efficiency of the emergency control box alarm system, and is beneficial to improve the working efficiency of the emergency control box alarm system, so as to realize the parallel processing of status data reported by multiple emergency control boxes, and is beneficial to avoid thread pool blocking and data loss.

[0094] See also Figure 4 , Figure 4 This is a schematic diagram of a process of uploading device status by an emergency control box based on Netty architecture provided by this application; if the emergency control box alarm system may include multiple emergency control boxes, such as Figure 4 As shown, Figure 2 In the consistent, Figure 4 It may include: multiple emergency control boxes (for example, emergency control box 1, emergency control box 2 and emergency control box 3), multi-channel monitoring service threads (for example, channel monitoring service thread 1, channel monitoring service thread 2 and channel monitoring service thread 3), echo server, Echo Server data processing interface and line operation and maintenance management platform OMC.

[0095] The multi-channel monitoring service thread may include multiple channel monitoring service threads, each channel monitoring service thread may correspond to a channel for data transmission, and each channel or thread may correspond to an emergency control box, for example, Figure 3 As shown, channel 1 may correspond to emergency control box 1 , channel 2 may correspond to emergency control box 2 , and channel 3 may correspond to emergency control box 3 .

[0096] The Echo Server data processing interface is used to receive information such as status data sent or reported by the emergency control box.

[0097] In the specific implementation, based on Figure 3 or Figure 4 In the system shown, the OMC system can start the service of sending information frames to the emergency control box, and start the channel monitoring service thread corresponding to the emergency control box.

[0098] Furthermore, the channel monitoring service thread corresponding to the emergency control box can perform the following operations: establish a TcpSocket connection for the emergency control box to initiate a call with the server through the heartbeat mechanism, and send a connection request to the echo server.

[0099] Furthermore, the channel listening service thread corresponding to each emergency control box is used to receive the above-mentioned connection request, and when the connection request is a valid connection request, establish a handshake connection between the emergency control box and the line operation and maintenance management platform; and open the channel Socket connection to establish an asynchronous communication channel between the corresponding emergency control box and the line operation and maintenance management platform.

[0100] Furthermore, when the channel monitoring service thread monitors that the emergency control box receives the above-mentioned handshake connection signal, the OMC corresponding system includes the IP address (Internet Protocol Address) (identification number assigned to the emergency control box) and port number of the emergency control box in the packet information received by the TCP Socket in the channel monitoring service thread. Because OMC manages emergency control boxes at several stations, different emergency control boxes are identified according to IP addresses, and different emergency control boxes are reported to the socket information of the OMC system to be added to the socket list for management.

[0101] Furthermore, the emergency control box alarm system can initiate request commands (for example, query status commands) to different emergency control boxes known to the OMC. Because the request status commands need to be sent separately, it is necessary to start the channel listening service threads that send query status commands to each separate channel Socket in turn, and wait for the status data fed back by different emergency control boxes in each channel listening service thread.

[0102] It can be seen that based on Figure 2 The emergency control box alarm system shown in the figure includes multiple emergency control boxes. When the emergency control boxes report status data, a multi-channel listening service line can be established based on the Netty architecture, and the interactive communication between multiple emergency control boxes and the line operation and maintenance management platform can be realized through the echo server and multi-channel listening service thread in the architecture. It occupies low network resources, which is beneficial to improve the working efficiency of the emergency control box alarm system, so as to realize parallel processing of status data reported by multiple emergency control boxes, which is beneficial to avoid thread pool blocking and data loss.

[0103] See also Figure 5 , Figure 5 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. As shown in the figure, the structure of the electronic device 10 is as follows Figure 5 As shown, the electronic device 10 includes a processor 120, a memory 130, a communication interface 140, and one or more programs 131, wherein the one or more programs 131 are stored in the memory 130 and are configured to be executed by the processor 120, and the one or more programs 131 include instructions for executing any step in the following method embodiment. In a specific implementation, the processor 120 is used to execute any step executed by the electronic device in the following method embodiment, and when performing data transmission such as sending, the communication interface 140 can be selectively called to complete the corresponding operation.

[0104] See also Figure 6 , Figure 6 1 is a flow chart of an emergency control box alarm method provided by an embodiment of the present application. As shown in the figure, the emergency control box alarm method is applied to an electronic device, and the electronic device may include an emergency control box alarm system, and the emergency control box alarm system includes Figure 1-Figure 4 The multi-channel monitoring service thread, multiple emergency control boxes, an echo server and a line operation and maintenance management platform shown, the multi-channel monitoring service thread includes multiple channel monitoring service threads, and the method includes the following steps:

[0105] S601, establishing an asynchronous communication channel between each of the emergency control boxes and the line operation and maintenance management platform through the multi-channel monitoring service thread.

[0106] S602, forwarding the query status command issued by the line operation and maintenance management platform to the emergency control box corresponding to the channel monitoring service line.

[0107] S603, receiving the query status command through the emergency control box and reporting status data.

[0108] S604: Receive the status data transmitted by the channel monitoring service thread through the echo server, analyze the status data to obtain abnormal data, and perform emergency operations.

[0109] In a possible example, the above method may also include the following steps: receiving an emergency control box connection request through a channel monitoring service thread; when the connection request is a valid connection request, establishing a handshake connection between the emergency control box and the line operation and maintenance management platform; opening a channel Socket connection to establish an asynchronous communication channel corresponding to the emergency control box and the line operation and maintenance management platform.

[0110] In a possible example, the analyzing the status data to obtain abnormal data, the method may further include the following step: if the status data includes abnormal alarm information, determining that the status data is the abnormal data.

[0111] In a possible example, the emergency control box alarm system further includes a front-end display interface, and the above method may further include the following steps: receiving the Active MQ message, and displaying the abnormal alarm information on the front-end display interface.

[0112] In a possible example, after the channel Socket connection is opened, the above method may also include the following steps: parsing the Socket information transmitted by the channel listening service thread, obtaining the IP address and port number corresponding to the emergency control box, and adding the Socket information to a Socket list, wherein the Socket list is used to manage the emergency control boxes corresponding to different lines or stations.

[0113] In a possible example, after establishing an asynchronous communication channel between each emergency control box and the line operation and maintenance management platform, the above method may also include the following steps: receiving manual abnormal alarm information transmitted by any one of the channel monitoring service threads; analyzing the manual abnormal alarm information to obtain a data frame carrying an IBP signal; packaging the data frame carrying the IBP signal and sending the Active MQ message to the line operation and maintenance management platform to perform emergency operations.

[0114] In a possible example, the method may further include the following step: if the status data transmitted by the channel monitoring service thread is not received, updating the emergency control box to an inoperative state.

[0115] It can be seen that the emergency control box alarm method described in the embodiment of the present application establishes an asynchronous communication channel between each of the emergency control boxes and the line operation and maintenance management platform through the multi-channel monitoring service thread; forwards the query status command issued by the line operation and maintenance management platform to the emergency control box corresponding to the channel monitoring service line; receives the query status command through the emergency control box and reports the status data; receives the status data transmitted by the channel monitoring service thread through the echo server, analyzes the status data to obtain abnormal data, and performs emergency operations. In this way, asynchronous communication between the line operation and maintenance management platform and multiple emergency control boxes can be achieved through multi-channel monitoring service threads and echo servers, which is beneficial to improving the working efficiency of the emergency control box alarm system, so as to realize parallel processing of status data reported by multiple emergency control boxes, and is beneficial to avoiding thread pool blocking and data loss.

[0116] For the above embodiments, please refer to Figure 7 , Figure 7 This is a functional unit block diagram of an emergency control box alarm device provided in an embodiment of the present application. The emergency control box alarm device 700 is applied to an electronic device, which may include an emergency control box alarm system, and the device includes:

[0117] An establishing unit 701 is used to establish an asynchronous communication channel between each of the emergency control boxes and the line operation and maintenance management platform through the multi-channel monitoring service thread;

[0118] The forwarding unit 702 is used to forward the query status command issued by the line operation and maintenance management platform to the emergency control box corresponding to the channel monitoring service line;

[0119] A reporting unit 703, configured to receive the query status command through the emergency control box and report status data;

[0120] The analyzing unit 704 is used to receive the status data transmitted by the channel monitoring service thread through the echo server, analyze the status data to obtain abnormal data, and perform emergency operations.

[0121] It can be seen that the emergency control box alarm device described in the embodiment of the present application establishes an asynchronous communication channel between each of the emergency control boxes and the line operation and maintenance management platform through the multi-channel monitoring service thread; forwards the query status command issued by the line operation and maintenance management platform to the emergency control box corresponding to the channel monitoring service line; receives the query status command through the emergency control box and reports the status data; receives the status data transmitted by the channel monitoring service thread through the echo server, analyzes the status data to obtain abnormal data, and performs emergency operations. In this way, asynchronous communication between the line operation and maintenance management platform and multiple emergency control boxes can be achieved through multi-channel monitoring service threads and echo servers, which is beneficial to improving the working efficiency of the emergency control box alarm system, so as to realize parallel processing of status data reported by multiple emergency control boxes, and is beneficial to avoiding thread pool blocking and data loss.

[0122] It can be understood that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the method embodiment part in this application should be synchronously adapted to the device embodiment part and will not be repeated here.

[0123] In the case of an integrated unit, such as Figure 8 As shown, Figure 8 This is a functional unit block diagram of another emergency control box alarm device provided by an embodiment of the present application. Figure 8In the embodiment, the emergency control box alarm device 800 includes: a processing module 812 and a communication module 811. The processing module 812 is used to control and manage the actions of the emergency control box alarm device, for example, the steps of the establishment unit 701, the forwarding unit 702, the reporting unit 703 and the analysis unit 704, and / or other processes for executing the technology described herein. The communication module 811 is used for the interaction between the emergency control box alarm device and other devices. Figure 8 As shown, the emergency control box alarm device may further include a storage module 813, and the storage module 813 is used to store program codes and data of the emergency control box alarm device.

[0124] Among them, the processing module 812 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 811 can be a transceiver, an RF circuit or a communication interface, and the like. The storage module 813 can be a memory.

[0125] Among them, all relevant contents of each scenario involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. The above emergency control box alarm device 800 can execute the above Figure 6 The emergency control box alarm method shown.

[0126] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and a software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0127] The embodiment of the present application can divide the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0128] An embodiment of the present application also provides a chip, wherein the chip includes a processor for calling and running a computer program from a memory, so that a device equipped with the chip executes some or all of the steps described for the electronic device in the above method embodiment.

[0129] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.

[0130] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes an electronic device.

[0131] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0132] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0133] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0134] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0135] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0136] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.

[0137] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0138] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

[0139] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions without departing from the spirit and scope of the present invention, and can make various changes and modifications, including the combination of the above-mentioned different functions and implementation steps, including software and hardware implementation methods, all of which are within the scope of protection of the present invention.

Claims

1. An emergency control box alarm system, characterized in that: include: A multi-channel monitoring service thread, including multiple channel monitoring service threads, is used to establish an asynchronous communication channel between each emergency control box and the line operation and maintenance management platform; Any of the channel monitoring service threads is used to forward the query status command issued by the line operation and maintenance management platform to the emergency control box corresponding to the channel monitoring service line; The emergency control box is used to receive the query status command and report status data; The echo server is established by the line operation and maintenance management platform and connected to the line operation and maintenance management platform, and is used to receive the status data transmitted by the channel monitoring service thread, and analyze the status data to obtain abnormal data, and then send an intermediate message to the line operation and maintenance management platform to perform emergency operations.

2. The system according to claim 1, characterized in that Each of the emergency control boxes is further used to send a connection request to the echo server or the line operation and maintenance management platform; In establishing an asynchronous communication channel between the emergency control box and the line operation and maintenance management platform, any one of the channel monitoring service threads is specifically used for: receiving the connection request; When the connection request is a valid connection request, establishing a handshake connection between the emergency control box and the line operation and maintenance management platform; Open the channel Socket connection to establish an asynchronous communication channel between the emergency control box and the line operation and maintenance management platform.

3. The system according to claim 1 or 2, characterized in that: In the aspect of analyzing the status data to obtain abnormal data, the echo server is specifically used for: If the status data includes abnormal alarm information, the status data is determined to be the abnormal data.

4. The system according to claim 3, characterized in that The emergency control box alarm system also includes a front-end display interface, which is used to receive the intermediate message and display the abnormal alarm information.

5. The system according to claim 2, characterized in that After the channel Socket connection is opened, the line operation and maintenance management platform is used to: Parse the Socket information transmitted by the channel monitoring service thread, obtain the IP address and port number corresponding to the emergency control box, and add the Socket information to the Socket list, which is used to manage the emergency control boxes corresponding to different lines or stations.

6. The system according to claim 1 or 2, characterized in that: After the asynchronous communication channel between each emergency control box and the line operation and maintenance management platform is established, the echo server is further used to: Receiving manual abnormal alarm information transmitted by any one of the channel monitoring service threads; Analyze the manual abnormal alarm information to obtain a data frame carrying an IBP signal; The data frame carrying the IBP signal is packaged and the intermediate message is sent to the line operation and maintenance management platform to perform emergency operations.

7. The system according to claim 3, characterized in that The echo server is further used for: If the status data transmitted by the channel monitoring service thread is not received, the emergency control box is updated to an inoperative state.

8. The system according to any one of claims 1 to 7, characterized in that: The intermediate message is an Active MQ message.

9. An emergency control box alarm method, characterized in that: Applied to an emergency control box alarm system, the emergency control box alarm system includes: a multi-channel monitoring service thread, multiple emergency control boxes, an echo server and a line operation and maintenance management platform, the multi-channel monitoring service thread includes multiple channel monitoring service threads, and the method includes: Establishing an asynchronous communication channel between each of the emergency control boxes and the line operation and maintenance management platform through the multi-channel monitoring service thread; Forwarding the query status command issued by the line operation and maintenance management platform to the emergency control box corresponding to the channel monitoring service line; Receiving the query status command through the emergency control box and reporting status data; The state data transmitted by the channel monitoring service thread is received through the echo server, and the state data is analyzed to obtain abnormal data, and emergency operations are performed.

10. An electronic device, characterized in that: The method comprises a processor, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to claim 9.

11. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program causes a computer to execute the method as claimed in claim 9.