Layered distribution method for expressway special situation messages
By establishing a tree-like emergency message distribution network on highways and adopting an exclusive mechanism to handle emergency messages, the problem of untimely processing of emergency messages in unmanned self-service toll stations has been solved, improving processing efficiency and system convenience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-16
- Publication Date
- 2026-04-10
AI Technical Summary
After the implementation of unmanned self-service toll stations on existing highways, the handling of emergency information is not timely, affecting the normal operation of vehicles.
Establish a tree-structured emergency message distribution network, using the TCP/IP protocol to build an arbitrary-level server structure from bottom to top, and employ an exclusive mechanism for emergency message processing to ensure that messages are transmitted from the bottom layer to the top layer or from the top layer to the bottom layer, and are processed by the designated level server.
It enabled timely processing of emergency messages, improved processing efficiency, reduced data latency and manpower costs, and ensured the normal operation of vehicles.
Smart Images

Figure CN121841931A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of special situation message distribution, and particularly relates to a highway special situation message hierarchical distribution method. BACKGROUND
[0002] The current national highway has completed the system upgrading work of canceling the provincial boundary toll station, the original highway network taking the province as the boundary has become a national "one map and one network", the charging mode has changed from the previous front-end toll station manual charging to the current background electronic charging, the traditional "lane manual + ETC" mode is faced with many problems such as too many toll personnel, complex structure and high cost, in order to further improve the information collection, release, exchange and processing ability of sudden problems of the highway operation and management units of each province, and improve the rapid reaction linkage mechanism with the relevant departments, each province begins to explore the "centralized charging" management mode.
[0003] The charging mode changes from the "lane manual + ETC" mode to the "centralized charging", which requires the charging station and the charging lane to have the centralized control function. In recent years, the highway operation and management units of each province begin to build unmanned self-service toll stations in order to improve the charging efficiency and reduce the labor cost.
[0004] The self-service card issuing and self-service payment mode can solve the problems of self-service card issuing at the entrance and self-service payment at the exit of most vehicles, but when a transaction special situation occurs, the toll personnel still need to intervene and confirm, and the special situation processing becomes a difficult problem to be solved. Before the unmanned self-service equipment is put into production, various special situations generated in the highway charging process are directly processed by the toll personnel on site, and after the unmanned self-service toll station is put into production, the special situation message processing is not timely, which affects the normal operation of the vehicle. SUMMARY
[0005] The application solves the problem of the existing highway special situation message processing not being timely, and proposes a highway special situation message hierarchical distribution method.
[0006] The technical scheme claimed in the application is as follows:
[0007] A highway special situation message hierarchical distribution method comprises the following steps:
[0008] S1: all special situation processing servers of the highway are recursively and circularly established in a tree-shaped special situation message distribution network through TCP / IP protocol from bottom to top and level by level, and each level is coded, the coded information of each level is sent to the next level from the lower level to the higher level, and a level identification table corresponding to each level is established;
[0009] S2: The expressway special situation message is transmitted along the tree-shaped special situation message distribution network, based on the corresponding level identifier table of each level, from the bottom to the upper level or from the upper level to the bottom, and is processed by the designated level server; the processing of the expressway special situation message adopts an exclusive mechanism, when a certain level starts to process the special situation message, other levels will not be able to process the special situation message, and after the processing of the special situation message is completed, the level will distribute the processing result to the upper and / or lower levels along the tree-shaped special situation message distribution network.
[0010] Preferably, the special situation message processing server includes a toll station special situation message processing server, a road section center\sub-center special situation message processing server, and a provincial center special situation message processing server; the special situation message processing server refers to a server with special situation message processing and distribution functions.
[0011] Preferably, the tree-shaped special situation message distribution network is established as follows: the expressway toll lane system is taken as a TCP / IP client, the toll station special situation message processing server is taken as a server, the client program initiates a request to establish a long connection to the server program, the client immediately sends heartbeat data to the server after the connection is successful, the content of the heartbeat data is taken as a data field, a general message data format is used for transmission, the toll station code and the lane code are contained in the heartbeat data, the server establishes a one-to-many mapping information for the current connection and the lane unique identifier code, one connection can correspond to multiple lanes, that is, a connection mapping table; if the toll station server (i.e., the toll station special situation message processing server) program is configured to be in an intermediate node mode, the toll station is taken as a TCP / IP client to initiate a request to establish a long connection to the upper server again, the client immediately sends heartbeat data to the server after the connection is successful, and the connection mapping table saved by the current level is contained in the data field; the server saves the lane list and the connection information, and establishes a connection mapping table, and the tree-shaped special situation message distribution network of any level is established by recursive circulation as described above.
[0012] Preferably, the TCP communication message frame is composed of a start flag, a protocol version number, a frame sequence number, a message body length, a toll station number, a lane number, a data field, and a CRC16 check value.
[0013] Preferably, the expressway special situation message in S2 includes a toll transaction special situation message and a designated level special situation message; the toll transaction special situation message includes a lane special situation message, a proactive control special situation message, and a level internal control message.
[0014] Preferably, the distribution of the toll transaction special situation message is generated by the lane server detecting abnormal toll transaction, and is transmitted to the upper level from the lane server.
[0015] Preferably, the active control special situation message is generated by a certain level above the highway toll lane system (not including itself), and is generated by a user clicking a relevant function, combined with a connection code mapping table stored at each level, and is transmitted to the designated lane server level by level, until it is transmitted to the designated lane server.
[0016] Preferably, the internal control message of the level is transmitted to the upper or lower level based on the connection code mapping table stored at each level, until it is transmitted to the internal designated level server.
[0017] Preferably, the designated level special situation message includes a special situation level message and an internal control message; the special situation level message is generated by a user of a non-lane level server clicking to end a special situation or to handle a special situation, and is transmitted to a lower level server after being generated by combining a connection mapping table saved at the level with a level identification table; when the message is transmitted to the toll station special situation message processing server level, it is determined whether the current server is the bottommost server by combining the level identification table; if so, the bottommost server is used as a client to transmit to the upper level server, and the upper level server, after receiving the message, continues to be used as a client to transmit to the upper level, and the message is thus transmitted to all non-lane levels of a single branch; the bottommost server refers to the lowermost level directly connected to the highway toll lane system as a server; and the internal control message is sent to the designated level server by combining a connection mapping table with a level identification table.
[0018] Advantages
[0019] The application provides a highway special situation message layered distribution method, which recursively and circularly establishes a tree-shaped special situation message distribution network of any level by TCP / IP protocol from bottom to top for all special situation processing servers of the highway, and the highway special situation message is transferred from the bottom to the top or from the top to the bottom step by step along the tree-shaped special situation message distribution network based on the corresponding level identifier table of each level, and is processed by the designated level server, that is, all special situation processing servers are uniformly organized, so that the special situation message can be transferred from the bottom to the top step by step, or the processed message result of the upper layer is transferred from the upper layer to the bottom step by step. The processing of the highway special situation message adopts an exclusive mechanism, when a certain level starts to process the special situation message, other levels cannot process the special situation message, and after the processing of the special situation message is completed, the level will distribute the processing result to the upper and / or lower levels step by step along the tree-shaped special situation message distribution network, so as to realize the priority occupation of the control message and the first processing. The personnel of each level can use the server to process data nearby, that is, the personnel of the toll station level use the toll station level server to process the special situation message, the personnel of the sub-center can use the sub-center level server to process the special situation message, and the personnel of the handheld machine or the provincial center can use the provincial center unified server to process the special situation message, so as to achieve the minimum data delay and the maximum work efficiency, and solve the problem of not timely processing of the existing highway special situation message.
[0020] The method provided by the application adopts a special situation message layered processing strategy to improve the special situation processing efficiency. In the original single level system, the special situation message can only be sent to a single system, and can only be processed by the user of the system. After the special situation message layered distribution method is used, a multi-level system can be established, so that the personnel of each level can use the server to process data nearby, and the minimum data delay and the maximum work efficiency are realized. The user can not only process at the toll station, but also process at the sub-center, and can process based on the provincial center network using the handheld mobile terminal, so as to further improve the convenience of system use and the special situation processing efficiency. In the single level system, if the system is deployed at the toll station, the server is distributed due to the scattered distribution of the toll station, the special situation does not have a unified outlet, and the user cannot use the mobile device for unified special situation processing. If the system is deployed at the provincial center, when the toll station and the provincial center network are disconnected, the special situation cannot be processed, which brings serious problems such as traffic jam. After the layered message distribution is adopted, each level has a server, which can solve the above problems at the same time. Based on the exclusive special situation control method of the method, the special situation message can be avoided from being repeatedly processed, and the labor cost can be saved. BRIEF DESCRIPTION OF DRAWINGS
[0021] Figure 1 The flow chart of the highway special situation message layered distribution method in the embodiment of the application.
[0022] Figure 2 The TCP message frame schematic diagram in the embodiment of the application.
[0023] Figure 3 The figure is a schematic diagram of a tree-shaped special situation message distribution network in an embodiment of the present application.
[0024] Figure 4 The figure is a schematic diagram of step-by-step upward transmission of a special situation message in an embodiment of the present application.
[0025] Figure 5 The figure is a schematic diagram of control message issuing in an embodiment of the present application.
[0026] Figure 6 The figure is a schematic diagram of designated hierarchical message distribution in an embodiment of the present application. Specific implementation method
[0027] In order to make the purpose, technical solutions and advantages of the present application more clear, the technical solutions are further clearly and completely described below in combination with the figures of the present application.
[0028] The present application provides a highway special situation message hierarchical distribution method, as shown in Figure 1 The method comprises the following steps:
[0029] S1: recursively and circularly establishing a tree-shaped special situation message distribution network of any level through TCP / IP protocol from bottom to top for all special situation processing servers of the highway, and encoding each level, and sending the coded information of each level to the next level from the lower level to the higher level, and establishing a level identification table corresponding to each level; the special situation message processing server comprises a toll station special situation message processing server, a road section center / sub-center special situation message processing server and a provincial center special situation message processing server; the special situation message processing server refers to a server with special situation message processing and distribution functions; the toll station, the road section center / sub-center and the provincial center are common levels in the highway toll industry; the toll station special situation message processing server, the road section center / sub-center special situation message processing server and the provincial center special situation message processing server respectively refer to servers deployed at the toll station level, the road section center / sub-center level and the provincial center level.
[0030] In the entire tree-shaped special situation message distribution network, the lane number is designed as an integer, and 1 byte is stored, so that the lane number is at most 256 digits; in order to uniquely identify the lane number in the message distribution network, the "toll station number: lane number" is defined as the lane unique identification, which is collectively referred to as "lane unique identification code" below.
[0031] In the specific embodiment of the present application, the message distribution network establishes network connection step by step from bottom to top through TCP / IP protocol, as shown in Figure 2As shown, the TCP communication message frame is composed of a start flag (2 bytes, taking the value 0xFFFF), a protocol version number (1 byte, the current version is 0x00), a frame number (frame sequence number, 1 byte, the sender frame sequence number is incremented by one each time, used to identify each communication, the range is 0~255, for messages requiring feedback, the frame sequence number of the feedback message should be consistent with the frame sequence number of the request message.), a message body length (the length of the toll station number to the data field, 4 bytes, the upper 2 bytes are reserved, and the lower 2 bytes are the length of the STA to DATA field), a toll station number (2 bytes), a lane number (1 byte), a data field (i.e., message content, in the format of a Json string), and a CRC16 check value (CRC16 check value of all bytes from the "protocol version number" to the "data field", 2 bytes, the initial value is 0xFFFF).
[0032] As shown in Figure 3 As shown, the tree-shaped special situation message distribution network starts from the highway toll lane system (lane toll station) as a TCP / IP client, the toll station special situation message processing server (i.e., toll station level server) as a server, the client program initiates a request to the server program to establish a long connection, and immediately sends a heartbeat data to the server after the connection is successful. The heartbeat data content is used as the data field and is transmitted in the general message data format. The heartbeat data contains the toll station code and the lane code. The server establishes a one-to-many mapping information for the current connection and lane unique identifier. One connection can correspond to multiple lane toll stations (highway toll lane systems), i.e., a connection mapping table. If the toll station special situation message processing server is configured in the intermediate node mode, the toll station special situation message processing server (toll station level server) as a TCP / IP client initiates a request to the upper server (the upper server is a sub-center special situation message processing server, i.e., a sub-center level server) to establish a long connection again. After the connection is successful, the client immediately sends a heartbeat data to the server, and in the data field, contains all the connection lane information saved by the current level: the connection mapping table. The server saves the lane list and connection information and establishes the same connection mapping table. As described above, the tree-shaped special situation message distribution network is recursively established at any level. After the tree-shaped special situation message distribution network is established, personnel at each level can use the server to process data nearby, i.e., toll station level personnel use the toll station level server to process special situation messages, sub-center personnel can use the sub-center level server to process special situation messages, and handheld or provincial center personnel can use the provincial center unified server (provincial center level system cluster) to process special situation messages.
[0033] The tree-shaped special situation message distribution network is established, and the low-level server sends its own coding information to the high-level server. After the upper level receives the coding information of the lower level, it splices the lower level coding with the colon and the current level coding as the "level identification string", for example, "lane coding 1: toll station coding: sub-center coding: xxxx". The storage method is to store the "lane unique identification code" as the key and the "level identification string" as the value in the non-relational database, and send all the coding list information to the upper level. In this way, the level identification table list information of each level is stored.
[0034] S2: The expressway special situation message is transmitted from the bottom to the top or from the top to the bottom along the tree-shaped special situation message distribution network based on the level identification table corresponding to each level, and is processed by the designated level server; the processing of the expressway special situation message adopts an exclusive mechanism, when a certain level starts to process the special situation message, other levels cannot process the special situation message, and after the processing of the special situation message is completed, the level will distribute the processing result to the upper and / or lower levels along the tree-shaped special situation message distribution network; the expressway special situation message includes a toll transaction special situation message and a designated level special situation message; the toll transaction special situation message includes a lane special situation message, an active control special situation message, and an internal control message of the level.
[0035] The lane special situation message is a special situation message generated by the expressway toll lane system when detecting abnormal toll conditions, such as Figure 4 As shown, the special situation message is transmitted from the lane toll station (expressway toll lane system) to the upper level (from the expressway toll lane system, in turn to the toll station level service area, sub-center level server,..., provincial center level server, to the mobile handheld device, and the device operator processes the lane special situation message), and all servers in the message distribution network receive the lower level special situation message as the server, and if it is a client, the message is transmitted upward through the client.
[0036] The active control special situation message is generated by a certain level above the expressway toll lane system (excluding itself), and is generated by clicking the related function by the user of the level, combined with the connection coding mapping table stored in each level, and is transmitted downward to the designated lane server, and is transmitted to the designated lane toll station. Figure 5 As shown, if the active control special situation message is generated by clicking the related function by the user of any level, the active control special situation message will be issued to the next level server from the server of any level, combined with the connection coding mapping table stored in each level, until the lane toll station, and the lane processes the special situation according to the active control special situation message.
[0037] The internal control message is based on a connection coding mapping table stored in each level, and is transmitted to the upper level or the lower level, and is transmitted to the internal designated level server.
[0038] The designated level message is divided into two categories, i.e., "special situation level message" and "internal control message". The special situation level message is divided into "upper level special situation end message" and "special situation processing occupied message", as shown in the following table: Figure 6 The two categories of messages are generated by the non-toll station level server user clicking to end the special situation or process the special situation, and are transmitted to the lower level server through the connection mapping table stored in the current level and the level identification table. When the message is transmitted to the toll station special situation message processing server level, the level identification table is used to determine whether the current server is the bottom server. If yes, the bottom server is used as a client to transmit to the upper level server. After the upper level server receives the message, it is used as a client to transmit to the upper level again. After the message is transmitted in this way, it can be distributed to all non-toll level in a single tree branch. The bottom server refers to the lowermost level connected to the expressway toll lane system as a server. The internal control message is sent to the designated level server by combining the connection mapping table with the level identification table.
[0039] The exclusive control refers to that after a user controls the special situation, other users cannot control and process the special situation, so as to avoid repeated processing of the special situation by the user. Specifically, after a user clicks to process the special situation, a "special situation processing occupied message" is generated. The message is distributed to a single tree branch in a tree structure through the above-mentioned designated level distribution mechanism. After the other level receives the control message, the special situation message is marked as processing. The user cannot process the special situation within a specified time (configurable), so as to realize the exclusive control of the special situation. After the user obtains the control right of the special situation, the user can process the special situation or directly end the special situation. After the user initiates the special situation processing message, the message is transmitted to the designated lane step by step. The lane receives the processing message, judges whether the special situation is ended according to the actual business, and generates a "special situation end message" to send to the upper level and transmit to all levels step by step. If the user chooses to directly end the special situation, an "upper level special situation end message" is generated and distributed to all levels to end the special situation.
[0040] The above embodiments are only used to illustrate the technical solutions of the present application and are not limited. Although the present application has been described in detail through the above preferred embodiments, those skilled in the art should understand that various changes can be made in form and details without departing from the scope defined by the claims of the present application.
Claims
1. A hierarchical distribution method for special situation messages on highways, characterized in that, Includes the following steps: S1: Establish a tree-like emergency message distribution network of arbitrary levels by recursively and sequentially from bottom to top using the TCP / IP protocol for all emergency handling servers on the highway, encode each level, and send the encoded information from the lower level to the higher level, and establish a level identifier table corresponding to each level. S2: Highway emergency messages are transmitted along the tree-structured emergency message distribution network, based on the hierarchical identifier table corresponding to each level, from the bottom to the top or from the top to the bottom, and processed by the designated level server. The processing of highway emergency messages adopts an exclusive mechanism. When a certain level starts processing an emergency message, other levels will not be able to process the emergency message. After the emergency message is processed, the level will distribute the processing result upward and / or downward along the tree-structured emergency message distribution network.
2. The hierarchical distribution method for highway emergency messages according to claim 1, characterized in that, The special incident message processing server includes a toll station special incident message processing server, a road section center / branch center special incident message processing server, and a provincial center special incident message processing server; the special incident message processing server refers to a server with special incident message processing and distribution functions.
3. The hierarchical distribution method for highway emergency messages according to claim 2, characterized in that, The specific establishment process of the tree-like emergency message distribution network is as follows: Initially, the highway toll lane system acts as the TCP / IP client, and the toll station emergency message processing server acts as the server. The client program initiates a request to the server program to establish a long connection. After successful connection, the client immediately sends heartbeat data to the server. The heartbeat data content serves as the data field and is transmitted using a general message data format. The heartbeat data includes the toll station code and lane code. The server establishes a one-to-many mapping information for the current connection and the unique identifier of the lane; one connection can correspond to multiple lanes, i.e., a connection mapping table. If the toll station server (i.e., the toll station emergency message processing server) program is configured as an intermediate node, the toll station, as the TCP / IP client, again initiates a request to the upper-level server to establish a long connection. After successful connection, the client immediately sends heartbeat data to the server, and the data field contains all the connected lane information stored at this level: a connection mapping table. The server then saves the lane list and connection information, and establishes the same connection mapping table. This process is repeated recursively to establish an arbitrary-level tree-like emergency message distribution network. The toll station server refers to the toll station emergency message processing server.
4. The hierarchical distribution method for highway emergency messages according to claim 3, characterized in that, A TCP communication message frame consists of a start flag, protocol version number, frame sequence number, message body length, toll station number, lane number, data field, and CRC16 check value.
5. The hierarchical distribution method for highway emergency messages according to claim 3, characterized in that, The highway emergency messages mentioned in S2 include toll transaction emergency messages and designated level emergency messages; the toll transaction emergency messages include lane emergency messages, active control emergency messages, and hierarchical internal control messages.
6. The hierarchical distribution method for highway emergency messages according to claim 5, characterized in that, The distribution of the special toll transaction message is generated by the lane server detecting abnormal toll situations and is passed up the lane server level by level.
7. The hierarchical distribution method for highway emergency messages according to claim 5, characterized in that, The proactive control emergency message is generated at a level above the highway toll lane system. It is generated by the user at that level clicking on the relevant function. Combined with the connection code mapping table stored at each level, the message is passed down to the designated lane server level by level until it reaches the designated lane server.
8. The hierarchical distribution method for highway emergency messages according to claim 5, characterized in that, Internal control messages are passed up or down the hierarchy level by level based on the connection encoding mapping table stored at each level, all the way to the specified internal level server.
9. The hierarchical distribution method for highway emergency messages according to claim 5, characterized in that, The designated level emergency messages include emergency level messages and internal control messages. Emergency level messages are generated when a non-lane level server user clicks to end or process an emergency. After generation, the message is passed down to lower-level servers via the connection mapping table and level identifier table stored at that level. When the message reaches the toll station emergency message processing server level, it checks the level identifier table to determine if the current server is the lowest-level server. If so, the lowest-level server acts as a client and passes the message to higher-level servers. Upon receiving the message, the higher-level server continues to act as a client and pass it up again. This process distributes the message to all non-lane levels within a single tree branch. The lowest-level server refers to the lowest level directly connected to the highway toll lane system as a server. The internal control messages are sent to the designated level server via the connection mapping table, level identifier table, and encoding.