Temporary speed limit command state transition method, system and device and storage medium
By pre-stored response rules and state transition rule sets, the rule-based and structured state transition of temporary rate limiting commands is realized, which solves the problem of insufficient flexibility in existing technologies, reduces operation and maintenance costs, and improves maintenance efficiency and system adaptability.
Patent Information
- Application Number
- CN202610203027.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-02-11
- Publication Date
- 2026-05-12
AI Technical Summary
The existing temporary rate limit command response and status management processes lack flexibility and adaptability, leading to operational difficulties, high maintenance costs, and a tendency to encounter logical anomalies in complex and ever-changing real-world engineering applications.
By pre-storing the response rule set and state transition rule set of temporary speed limit commands, the initial and final states of temporary speed limit commands are determined, and a rule-based and structured state transition process is achieved using static configuration data.
It reduces maintenance costs and difficulties for operations and maintenance personnel, improves maintenance efficiency, enhances system readability and maintainability, and adapts to changes in complex scenarios.
Smart Images

Figure CN122009289A_ABST
Abstract
Description
Technical Field
[0001] This article relates to device control technology, and more particularly to a state transition method, system, device, and storage medium for a temporary rate limit command. Background Technology
[0002] Temporary speed limit orders are a critical safety control instruction used to respond to temporary track conditions, such as natural disasters, track construction, equipment failures, or the presence of slower-moving trains ahead. The purpose is to force trains passing through the section to limit their speed to a safe level to ensure traffic safety.
[0003] Temporary speed restriction commands are typically managed centrally by the Temporary Speed Restriction Server (TSRS) within the Chinese Train Control System (CTCS). The TSRS primarily handles the storage, verification, deletion, splitting, setting, and cancellation of temporary speed restriction commands. Dispatchers issue temporary speed restriction commands to the TSRS via the Centralized Traffic Control (CTC) system. The TSRS main control software, combining static baseline data of the specific railway line, calculates the relevant executing devices for the temporary speed restriction command and forwards it to the Train Control Center (TCC), Radio Block Center (RBC), and adjacent TSRS systems. The TSRS then integrates the status feedback from all speed restriction-related executing devices and sends the final status back to the CTC.
[0004] However, the existing temporary rate-limiting command response and status management processes rely entirely on the main control software for state transition conditions and logic. This fixed rate-limiting interaction process means that changes to the interaction flow will render the existing software logic inapplicable to new technical requirements, lacking flexibility in complex and ever-changing real-world engineering applications. Furthermore, this complete reliance on software design can lead to problems during later-stage product operation and maintenance. Logical anomalies caused by multiple devices, multiple cycles, and network latency can make it difficult for maintenance personnel to pinpoint problems and result in high costs for longitudinal risk investigation. Summary of the Invention
[0005] This application provides a method, system, device, and storage medium for state transition of a temporary rate limit command, which can reduce maintenance costs for operation and maintenance personnel, reduce maintenance difficulty, and improve maintenance efficiency.
[0006] In a first aspect, embodiments of this application provide a state transition method for a temporary speed limit command, including: In response to the first temporary speed limit command issued by the Centralized Dispatch Control (CTC) system, the system calls the pre-stored response rule set for temporary speed limit commands to determine the response rule corresponding to the first temporary speed limit command. The first temporary speed limit command includes the type of the first temporary speed limit command. Based on the response rules corresponding to the first temporary speed limit order, the current status and type of the first temporary speed limit order, determine the status after the initial transfer of the first temporary speed limit order; Based on the state after the initial transfer of the first temporary speed limit order and the pre-stored state transfer rule set for temporary speed limit orders, determine the final state after the transfer of the first temporary speed limit order.
[0007] In one possible implementation, Based on the state after the initial transition of the first temporary speed limit order and the pre-stored state transition rule set for temporary speed limit orders, the final state after the transition of the first temporary speed limit order is determined, including: Based on the pre-stored set of state transition rules for temporary speed limit commands, determine the state transition rule corresponding to the first temporary speed limit command; Based on the state transition rules corresponding to the first temporary speed limit order, determine the target speed limit-related equipment; According to the first temporary speed limit command, a first message is sent to the target speed limit related equipment, and the pre-selection status is received from the target speed limit related equipment based on the first message; Based on the state transition rules corresponding to the first temporary speed limit order, the state after the initial transition, and the pre-selected state fed back by the target speed limit related equipment, the final state after the first temporary speed limit order is determined.
[0008] In one possible implementation, any response rule includes at least one of the following data items: the current state of the temporary speed limit command, the state after the temporary speed limit command is transferred, and the type of the temporary speed limit command.
[0009] In one possible implementation, any state transition rule includes at least one of the following data items: the current state of the temporary speed limit command, the state after the temporary speed limit command is transferred, the pre-selected state of the temporary speed limit command fed back by each speed limit-related device, the pre-set logical relationship between the pre-selected states fed back by each speed limit-related device, and the priority, wherein the priority is the priority between state transition rules corresponding to the current state of the same temporary speed limit command.
[0010] In one possible implementation, the state transition rule corresponding to the first temporary speed limit command is determined based on a pre-stored set of state transition rules for temporary speed limit commands, including: The pre-stored state transition rule set for temporary speed limit commands is invoked, and the state transition rule with the highest priority corresponding to the current state and type of the first temporary speed limit command in the state transition rule set is determined as the state transition rule corresponding to the first temporary speed limit command.
[0011] One possible implementation also includes: In response to the first update command input by the user, update the response rule set for the temporary rate limit command; And / or, In response to the second update command input by the user, update the state transition rule set of the temporary rate limit command.
[0012] In one possible implementation, the status of the temporary rate limiting command includes: not yet activated, successful verification, successful execution, unknown, prompt that it can be set, prompt that it can be activated, timeout and not activated, successful execution cancellation, successful execution deletion, no such command, in the process of planning verification, in the process of verification, in the process of execution, and in the process of deletion.
[0013] Secondly, embodiments of this application provide a state transition system for a temporary speed limit command, including a centralized scheduling system (CTC), at least one speed limit-related device, and a temporary speed limit server (TSRS). CTC is configured to send a first temporary speed limit command to TSRS in response to a user action, the first temporary speed limit command including the type of the first temporary speed limit command; The TSRS is set to respond to the first temporary speed limit command by calling the pre-stored response rule set of the temporary speed limit command to determine the response rule corresponding to the first temporary speed limit command; based on the response rule corresponding to the first temporary speed limit command, the current state and type of the first temporary speed limit command, the state after the initial transfer of the first temporary speed limit command is determined; based on the state after the initial transfer of the first temporary speed limit command and the pre-stored state transfer rule set of the temporary speed limit command, the final speed limit state after the transfer of the first temporary speed limit command is determined.
[0014] Thirdly, embodiments of this application provide an electronic device, including a processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements any of the methods provided in the first aspect.
[0015] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements any of the methods provided in the first aspect.
[0016] The temporary speed limit command state transition method, system, device, and storage medium provided in this application embodiment, in response to a first temporary speed limit command issued by the Centralized Time Control (CTC) system, invokes a pre-stored set of response rules for temporary speed limit commands to determine the response rules corresponding to the first temporary speed limit command. The first temporary speed limit command includes a type of temporary speed limit command. Based on the response rules corresponding to the first temporary speed limit command, the current state and type of the first temporary speed limit command, the state after the initial transition of the first temporary speed limit command is determined. Based on the state after the initial transition of the first temporary speed limit command and the pre-stored set of state transition rules for temporary speed limit commands, the final state after the transition of the first temporary speed limit command is determined. This enables static configuration of the response rules for temporary speed limit commands, facilitating later maintenance, reducing maintenance costs and difficulty, and helping to improve maintenance efficiency.
[0017] Other features and advantages of this application will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the application. Other advantages of this application can be realized and obtained by means of the embodiments described in the description and the accompanying drawings. Attached Figure Description
[0018] The accompanying drawings are used to provide an understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0019] Figure 1 A flowchart illustrating a state transition method for a temporary speed limit command provided in an embodiment of this application; Figure 2 This is a schematic diagram of the state transition process of a temporary speed limit command provided in an embodiment of this application. Detailed Implementation
[0020] This application describes several embodiments, but these descriptions are exemplary and not limiting, and it will be apparent to those skilled in the art that many more embodiments and implementations are possible within the scope of the embodiments described herein. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with, or may replace, any feature or element of any other embodiment.
[0021] This application includes and contemplates combinations of features and elements known to those skilled in the art. The embodiments, features, and elements disclosed in this application can also be combined with any conventional features or elements to form unique inventive solutions. Any feature or element of any embodiment can also be combined with features or elements from other inventive solutions to form another unique inventive solution. Therefore, it should be understood that any feature shown and / or discussed in this application can be implemented individually or in any suitable combination. Therefore, the embodiments are not limited except by the limitations imposed by the appended claims and their equivalents. Furthermore, various modifications and changes can be made within the scope of the appended claims.
[0022] Furthermore, in describing representative embodiments, the specification may have presented methods and / or processes as a specific sequence of steps. However, the method or process should not be limited to a specific order of steps to the extent that it does not depend on this specific order. As will be understood by those skilled in the art, other sequences of steps are also possible. Therefore, the specific order of steps set forth in the specification should not be construed as a limitation of the claims. Moreover, the claims relating to the method and / or process should not be limited to the steps performed in the order written, and those skilled in the art will readily understand that these orders can be varied and still remain within the spirit and scope of the embodiments of this application.
[0023] To address the technical problems existing in the prior art, this application provides a state transition method for a temporary speed limit command, such as... Figure 1 As shown, this method can be applied to TSRS, and the method includes: S101. In response to the first temporary speed limit command issued by CTC, the pre-stored response rule set for temporary speed limit commands is invoked to determine the response rule corresponding to the first temporary speed limit command.
[0024] The first temporary speed limit order includes the type of the first temporary speed limit order.
[0025] Optionally, the first temporary speed limit order also includes characteristic information of the temporary speed limit order, such as the source of the temporary speed limit order, the speed limit type of the temporary speed limit order, and the line type of the temporary speed limit order.
[0026] A temporary speed limit order is a safety control instruction used to deal with temporary track conditions, such as natural disasters, track construction, equipment failure, or slow-moving trains ahead. Its purpose is to force trains passing through the section to limit their speed to a safe level to ensure traffic safety.
[0027] For example, the types of temporary speed limit commands include at least one of the following: drafting, verifying, executing, deleting, requesting activation prompts, requesting setting prompts, and requesting to obtain the current speed limit status of the other party.
[0028] The response rule set for calling a pre-stored temporary rate limiting command can be either the response rule set for calling a pre-stored temporary rate limiting command in an external device connected to the communication connection, or the response rule set for calling a pre-stored temporary rate limiting command in an internal storage unit.
[0029] Optionally, the set of response rules for a temporary rate limit command can be stored in a structured form, such as in a table.
[0030] This method makes the response more regular and structured by calling pre-stored static configuration data.
[0031] The pre-stored set of response rules for temporary speed limit commands includes at least one response rule for a temporary speed limit command. This response rule describes the correspondence between the current state of the temporary speed limit command, the type of the temporary speed limit command, and the state after the transition.
[0032] S102. Determine the state of the first temporary speed limit command after its initial transfer based on the response rules corresponding to the first temporary speed limit command and the current state and type of the first temporary speed limit command.
[0033] In one possible implementation, the status of the temporary rate limiting command includes: not yet activated, successful verification, successful execution, unknown, prompt that it can be set, prompt that it can be activated, timeout and not activated, successful execution cancellation, successful execution deletion, no such command, in the process of planning verification, in the process of verification, in the process of execution, and in the process of deletion.
[0034] Existing technical specifications for temporary rate limiting servers only define 11 states for temporary rate limiting commands (referred to as rate limiting states). This can be understood as meaning that there are only 11 rate limiting states in the existing technology for interaction between the TSRS and peripheral devices: not yet activated, successful verification, successful execution, unknown, prompt "configurable", prompt "activateable", timed out, still processing, successful execution cancellation, successful execution deletion, and no such command. However, the "still processing" state is ambiguous; it can be reported to the peripheral device during the command drafting, verification, execution, and deletion processes. To more accurately describe the command status, this application breaks down the "still processing" state into four states: drafting verification processing, verification processing, execution processing, and deletion processing. The equivalence relationships between these states are shown in Table 1. When the TSRS reports the rate limiting state to the peripheral device, if the software recognizes any of these four states, it needs to perform the corresponding internal state transition.
[0035] Table 1. Equivalence Relations Between States In one possible implementation, the response rules for a temporary speed limit command include at least one of the following data items: the current state of the temporary speed limit command, the type of the temporary speed limit command, and the state after the temporary speed limit command is transferred.
[0036] Each temporary speed limit command has one and only one current state, and may reach one or more next states. If multiple next states are possible, that is, if the current state of the same temporary speed limit command may correspond to different transition states, in order to accurately respond to each temporary speed limit command and determine the state after the initial transition of each temporary speed limit command, the data items in the response rules may also include priority, where the priority is the priority among the response rules corresponding to the current state of the same temporary speed limit command.
[0037] For example, if the CTC issues multiple speed limit commands, and these commands differ only in the type of temporary speed limit command they contain, the TSRS can change the temporary speed limit command's current state to its corresponding transition state based on the response rules of the temporary speed limit command with the highest priority corresponding to the current state. Referring to Table 2, assuming a temporary speed limit command's current state is "not yet activated," when the TSRS simultaneously receives temporary speed limit commands of three types—"draft," "verify," and "delete"—the TSRS will transition the temporary speed limit command's state to "not yet activated" because "draft" has the highest priority.
[0038] For example, the response rules for temporary rate limiting commands that are currently inactive are shown in Table 2: Table 2 shows the response rules for temporary speed limit commands that are currently inactive. For example, priority 1 is the highest priority, and the same applies to other tables in this application.
[0039] The current status of the temporary rate limiting command is a request for activation. The response rules are shown in Table 3. Table 3 shows the response rules for the temporary speed limit command in the current status of the activation request prompt. The current status of the temporary speed limit command is "timeout" and no response rules have been set, as shown in Table 4: Table 4 Response Rules for Temporary Speed Limit Orders in Current Status The response rules for a temporary speed limit command that has been successfully verified are shown in Table 5: Table 5 shows the response rules for temporary speed limit orders that have been successfully verified. The current status of the temporary rate limiting command is as follows: The response rules for requesting settings prompts are shown in Table 6: Table 6 shows the current status of the temporary speed limit command as a request to set the response rules. The response rules for temporary speed limit orders with an unknown current status are shown in Table 7: Table 7 Response Rules for Temporary Speed Limit Orders with Unknown Current Status Temporary rate limiting commands are sent from the CTC to the TSRS. Therefore, it is easy to understand that the initial state of any temporary rate limiting command on the TSRS is empty. In other words, when a temporary rate limiting command is first sent from the CTC to the TSRS, the current state of the temporary rate limiting command does not exist on the TSRS. Therefore, the current state of the temporary rate limiting command on the TSRS in this case can be defined as none.
[0040] Since TSRS also receives temporary speed limit commands from other adjacent TSRS, when a TSRS responds to a temporary speed limit command for the first time, it needs to further consider the source of the temporary speed limit command. Specifically, it should consider whether the temporary speed limit command originates from an adjacent TSRS, that is, whether it is related to an adjacent TSRS.
[0041] Based on this, optionally, when the current state of the temporary speed limit command is none, the response rules for the temporary speed limit command shall include at least one of the following data items: the current state of the temporary speed limit command, the type of the temporary speed limit command, the state after the temporary speed limit command is transferred, and the correlation between the temporary speed limit command and the adjacent TSRS.
[0042] For example, the response rules for a temporary speed limit command when the current status is none are shown in Table 8: Table 8 Response Rules for Temporary Speed Limit Orders When the Current Status is None It should be noted that Tables 1-8 above are only examples of response rules, not the only representation. Any variation of the above tables is part of the content disclosed in this application, and will not be elaborated here to save space.
[0043] S103. Determine the final state of the first temporary speed limit command after its initial transfer based on the state after the initial transfer of the first temporary speed limit command and the pre-stored state transfer rule set of temporary speed limit commands.
[0044] In one possible implementation, determining the final state of the first temporary speed limit command after its initial transfer, based on the state after the initial transfer of the first temporary speed limit command and a pre-stored set of state transfer rules for temporary speed limit commands, includes: determining the state transfer rule corresponding to the first temporary speed limit command based on the pre-stored set of state transfer rules for temporary speed limit commands; determining the target speed limit-related device based on the state transfer rule corresponding to the first temporary speed limit command; sending a first message to the target speed limit-related device according to the first temporary speed limit command, and receiving a pre-selected state from the target speed limit-related device based on the first message; and determining the final state of the first temporary speed limit command after its initial transfer, based on the state after the initial transfer of the first temporary speed limit command and the pre-selected state from the target speed limit-related device.
[0045] Optionally, speed limit-related devices include at least one of the following: TCC, RBC, and adjacent TSRS.
[0046] Optionally, the first temporary speed limit command also includes basic parameters for the first temporary speed limit command. For example, the basic parameters of the temporary speed limit command include information such as the speed limit location, the limited speed, the time, and the executing device, used to describe the specific parameters of the speed limit command.
[0047] Optionally, the target speed limit related equipment is determined according to the state transition rules corresponding to the first temporary speed limit command: the pre-selected speed limit related equipment is determined according to the basic parameters of the first temporary speed limit command and the pre-stored basic line data; the target speed limit related equipment is determined from the pre-selected speed limit related equipment according to the speed limit related equipment involved in the state transition rules corresponding to the first temporary speed limit command.
[0048] The basic line data includes at least one of the following: line range information, mileage information, TSRS-managed execution equipment information, block section information, transponder information, and communication parameter information of each interface device.
[0049] Typically, the TSRS (Transitional Speed Limiting System) breaks down the temporary speed limit command issued by the CTC (Center for Traffic Control) into several instruction fragments targeting different execution devices (speed limit-related devices) based on the basic parameters of the temporary speed limit command and pre-stored basic line data. These instruction fragments are then processed and sent to the corresponding TCC (Traffic Control Center), RBC (Resource Bank), or adjacent TSRS via a secure communication interface. Upon receiving the message, the TCC, RBC, or adjacent TSRS will report a pre-selected state of the transitioned temporary speed limit command to the TSRS based on its own instruction execution status, allowing the TSRS to make a final state determination. In one possible implementation, any state transition rule includes at least one of the following data items: the current state of the temporary speed limit command, the state after the transition of the temporary speed limit command, the pre-selected states of the temporary speed limit command reported by each speed limit-related device, and the pre-defined logical relationship and priority between the pre-selected states reported by each speed limit-related device. The priority refers to the priority among state transition rules corresponding to the current state of the same temporary speed limit command.
[0050] Each temporary rate-limiting command has one and only one current state, and can potentially reach one or more next states. If multiple next states are reachable, the current state of the same temporary rate-limiting command may correspond to different transition states. By setting priorities, the execution process of temporary rate-limiting commands can be made to follow the user's expectations as closely as possible. At the same time, it can make the boundaries between different rules clearer, make the software logic more organized, and improve the readability and maintainability of the software.
[0051] In one possible implementation, the state transition rule corresponding to the first temporary speed limit command is determined according to the pre-stored state transition rule set of the temporary speed limit command. This includes: calling the pre-stored state transition rule set of the temporary speed limit command, and determining the state transition rule with the highest priority in the state transition rule set of the temporary speed limit command that corresponds to the current state and type of the first temporary speed limit command as the state transition rule corresponding to the first temporary speed limit command.
[0052] The state transition rule set for calling a pre-stored temporary rate limiting command can be either a state transition rule for calling a temporary rate limiting command stored in an external device connected to the communication connection, or a state transition rule for calling a temporary rate limiting command stored in an internal storage unit.
[0053] Optionally, the state transition rule set for temporary rate limiting commands can be stored in a structured form, such as in tabular form.
[0054] This method uses static configuration data to make state transitions more regular and structured. The pre-stored set of state transition rules for temporary speed limit commands includes at least one state transition rule. These rules describe under what circumstances a temporary speed limit command transitions from which state to which state, and which circumstances involve information from speed limit-related equipment feedback. For example, Figure 2 A schematic diagram of the state transition process for a temporary speed limit command provided in this application is shown below. Figure 2 As shown, temporary speed limit commands can present different states, and the states of temporary speed limit commands can change under different conditions. Figure 2 Each square represents a state, with the initial state being "none". Each temporary speed limit command has one and only one current state, but can have one or more next states. If multiple reachable states exist, different migration paths can be predetermined. Figure 2 The priority is marked as T0~T43.
[0055] For example, the state transition rules corresponding to the current state of the temporary rate limiting command being in the process of planned verification are shown in Table 9, where the priority is from 1 to 0xFF, decreasing sequentially: Table 9 shows the state transition rules when the temporary speed limit order is currently in the "Drafting and Verification Processing" stage. The temporary speed limit command processing window timeout status indicates whether the processing time of the temporary speed limit command exceeds the preset threshold duration.
[0056] The state transition rules for the temporary rate limiting command when it is not yet activated are shown in Table 10: Table 10 shows the state transition rules when the temporary speed limit order is not yet activated. The current state of the temporary rate limiting command is the state transition rule corresponding to the activation request prompt, as shown in Table 11: Table 11 shows the state transition rules for the current state of the temporary speed limit command as corresponding to the state when the activation request was prompted. The state transition rules for the temporary speed limit command when its current state is "timeout not set" are shown in Table 12: Table 12 shows the state transition rules when the temporary speed limit command is currently in the state of "timeout and not set". The state transition rules for a temporary rate limiting command when its current state is "in verification processing" are shown in Table 13: Table 13 shows the state transition rules when the temporary speed limit order is currently in the verification process. The current state of the temporary rate limiting command is the state transition rule corresponding to the successful verification, as shown in Table 14: Table 14 shows the state transition rules corresponding to the successful verification of the temporary speed limit order. The current state of the temporary rate limiting command corresponds to the state transition rules when a setting prompt was requested, as shown in Table 15: Table 15 shows the current state of the temporary speed limit command and the state transition rules corresponding to the request to set a prompt. The state transition rules for a temporary rate limiting command when it is currently in the process of execution are shown in Table 16: Table 16 shows the state transition rules when the temporary speed limit command is currently in the "processing" state. The current state of the temporary rate-limiting command is the same as the state transition rules for a successful execution, as shown in Table 17. Table 17 shows the current state of the temporary speed limit order and the state transition rules corresponding to successful execution. The state transition rules for a temporary speed limit command when its current state is unknown are shown in Table 18. Table 18 shows the state transition rules when the current state of a temporary speed limit order is unknown. The current state of the temporary speed limit command is the state transition rule corresponding to the successful cancellation verification, as shown in Table 19: Table 19 shows the current state of the temporary speed limit order and the state transition rules corresponding to the successful cancellation verification. The current state of the temporary speed limit command is the same as the state transition rules for a successful cancellation, as shown in Table 20. Table 20 shows the state transition rules corresponding to the successful cancellation of the temporary speed limit order. The state transition rules for a temporary rate limiting command when its current status is "in progress of deletion" are shown in Table 21: Table 21 shows the state transition rules when the temporary speed limit command is currently in the process of being deleted. The current state of the temporary rate limiting command is the same as the state transition rules for a successful deletion, as shown in Table 22. Table 22 shows the state transition rules corresponding to the successful deletion of the temporary speed limit command. It should be noted that Tables 9-22 above are only examples of response rules, not the only representation. Any variation of the above tables is part of the disclosure of this application, and will not be elaborated here to save space.
[0057] In one possible implementation, it also includes updating the response rule set of the temporary speed limit command in response to a first update command input by the user.
[0058] For example, a user can replace the previously stored temporary speed limit command response rule set with a new temporary speed limit command response rule set, or update one or more temporary speed limit command response rules in a pre-stored temporary speed limit command response rule set.
[0059] This method can update response rules stored in the form of static configuration data by modifying the data, reducing the maintenance cost and difficulty for maintenance personnel in the later maintenance process. The method is easy to expand the data structure and has high maintainability.
[0060] In one possible implementation, the method further includes updating the state transition rule set of the temporary rate limit command in response to a second update command input by the user.
[0061] For example, a user can replace the previously stored temporary speed limit command state transition rule set with a new temporary speed limit command state transition rule set, or update one or more temporary speed limit command state transition rules in a pre-stored temporary speed limit command state transition rule set.
[0062] This method can update state transition rules stored in the form of static configuration data by modifying the data, reducing the maintenance cost and difficulty for maintenance personnel in the later maintenance process. This method is easy to expand the data structure and has high maintainability.
[0063] Due to revisions in technical specifications or the needs of complex engineering scenarios, the response rules and / or state transition rules of temporary speed limit commands may change. This application stores these rules in the form of static configuration data. When changes occur, only the corresponding static configuration data needs to be modified, without requiring extensive modifications to the code logic. This approach is simple, highly feasible, and overcomes the cumbersome nature of existing speed limit processing modes, offering advantages in adapting to future uncertainties. From a post-operation and maintenance perspective, the core software operation logic relies on static configuration data, making the static configuration data and the logic program code physically independent. If on-site problems arise due to special scenarios, only the correctness and rationality of the static configuration data need to be checked to complete both horizontal and vertical risk assessment, thereby significantly improving the work efficiency of maintenance personnel and reducing upgrade and maintenance costs.
[0064] The state transition method for temporary speed limit commands provided in this application, in response to a first temporary speed limit command issued by the Centralized Time Control (CTC) system, calls a pre-stored set of response rules for temporary speed limit commands to determine the response rules corresponding to the first temporary speed limit command, wherein the first temporary speed limit command includes the type of the temporary speed limit command; based on the response rules corresponding to the first temporary speed limit command, the current state and type of the first temporary speed limit command, the state after the initial transition of the first temporary speed limit command is determined; based on the state after the initial transition of the first temporary speed limit command and the pre-stored set of state transition rules for temporary speed limit commands, the final state after the transition of the first temporary speed limit command is determined.
[0065] This application also provides a state transition system for a temporary speed limit command, including a centralized scheduling system (CTC), at least one speed limit-related device, and a temporary speed limit server (TSRS).
[0066] CTC is configured to send a first temporary speed limit command to TSRS in response to user action. The first temporary speed limit command includes the type of temporary speed limit command.
[0067] The TSRS is set to respond to the first temporary speed limit command by calling the pre-stored response rule set of the temporary speed limit command to determine the response rule corresponding to the first temporary speed limit command; based on the response rule corresponding to the first temporary speed limit command, the current state and type of the first temporary speed limit command, the state after the initial transfer of the first temporary speed limit command is determined; based on the state after the initial transfer of the first temporary speed limit command and the pre-stored state transfer rule set of the temporary speed limit command, the final state after the transfer of the first temporary speed limit command is determined.
[0068] In one possible implementation, the TSRS is specifically configured to determine the state transition rule corresponding to the first temporary speed limit command based on a pre-stored set of state transition rules for temporary speed limit commands; determine the target speed limit-related device based on the state transition rule corresponding to the first temporary speed limit command; and send a first message to the target speed limit-related device based on the first temporary speed limit command.
[0069] The target speed limit related equipment is set to a pre-selected state based on the feedback from the first message.
[0070] The TSRS is specifically configured to determine the final state after the first temporary speed limit command is transferred, based on the state after the initial transfer of the first temporary speed limit command and the pre-selected state fed back by the target speed limit related equipment.
[0071] In one possible implementation, TSRS includes a static data checking and initialization module and a temporary speed limit management module.
[0072] The static data inspection and initialization module includes a basic line data submodule, a temporary speed limit command response rule submodule, and a temporary speed limit state transition rule submodule.
[0073] The basic line data submodule stores basic line data for engineering applications, including line range information, mileage information, TSRS-managed execution equipment information, block section information, transponder information, and communication parameter information for each interface device. The temporary speed limit command response rule submodule stores the response rule set for temporary speed limit commands. The temporary speed limit state transition rule submodule stores the state transition rules for temporary speed limit commands.
[0074] The temporary rate limit management module includes a temporary rate limit initialization submodule, a peripheral status processing submodule, a rate limit exception generation submodule, a rate limit status transition submodule, a peripheral command processing submodule, a peripheral refresh request submodule, an error status output submodule, a request peripheral status submodule, and a rate limit local storage submodule.
[0075] The temporary speed limit initialization submodule is configured to automatically send initialization commands to all speed limit-related devices under local jurisdiction after receiving the line speed limit status confirmation command from the CTC, and report the initialization status of the TSRS to the CTC in real time.
[0076] The peripheral status processing submodule is configured to update the speed limit status reported by each speed limit-related device in real time.
[0077] The speed limit anomaly generation submodule is configured to automatically generate a corresponding temporary speed limit command in the "unknown" state if a speed limit-related device reports a temporary speed limit command that does not exist in the TSRS itself and is in a "successfully executed" or "unknown" state.
[0078] The speed limit state transition submodule is configured to: determine the state transition rule corresponding to the first temporary speed limit command based on a pre-stored set of state transition rules for temporary speed limit commands; determine the target speed limit-related device based on the state transition rule corresponding to the first temporary speed limit command; send a first message to the target speed limit-related device based on the first temporary speed limit command, and receive the pre-selected state fed back by the target speed limit-related device based on the first message; and determine the final state after the first temporary speed limit command is transferred based on the state transition rule corresponding to the first temporary speed limit command, the state after the initial transfer, and the pre-selected state fed back by the target speed limit-related device.
[0079] The speed limit state transition submodule is specifically configured to call the pre-stored state transition rule set of temporary speed limit commands, and determine the state transition rule with the highest priority corresponding to the current state and type of the first temporary speed limit command in the state transition rule set of the temporary speed limit command as the state transition rule corresponding to the first temporary speed limit command.
[0080] The peripheral command processing submodule is configured to call the pre-stored response rule set of temporary speed limit commands to determine the response rule corresponding to the first temporary speed limit command; based on the response rule corresponding to the first temporary speed limit command, the current status and type of the first temporary speed limit command, the status after the initial transfer of the first temporary speed limit command is determined.
[0081] The peripheral refresh request submodule is configured to provide real-time feedback on the rate limiting status to the request initiator based on the rate limiting status request commands from adjacent TSRSs ("Request Activation Prompt", "Request Setting Prompt", "Request to Get Current Rate Limiting Status of the Other Party") and the current status of the temporary rate limiting command.
[0082] The error status output submodule is set to uniformly output errors that occur due to temporary speed limit command verification failures, non-compliant operation procedures, etc.
[0083] The peripheral status submodule is requested to be configured to actively send refresh commands to peripherals in the event of timed refresh, inconsistent number of rate limiting commands between devices, device restart or disconnection, or communication interruption and recovery, in order to re-determine the rate limiting status.
[0084] The local storage submodule for rate limiting is configured to store or clear local non-cancel temporary rate limiting commands.
[0085] This application also provides an electronic device, including a processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in memory, it implements a state transition method for any temporary rate-limiting command provided in the embodiments of this application.
[0086] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements a state transition method for any temporary rate-limiting command provided in this application.
[0087] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term "computer storage medium" includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0088] Furthermore, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first," "second," etc., may explicitly or implicitly include at least one of those features.
[0089] In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise expressly and specifically limited.
[0090] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0091] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. A state transition method for a temporary speed limit command, characterized in that, include: In response to the first temporary speed limit command issued by the Centralized Dispatch Control (CTC) system, the system calls the pre-stored response rule set for temporary speed limit commands to determine the response rule corresponding to the first temporary speed limit command, wherein the first temporary speed limit command includes the type of the first temporary speed limit command; Based on the response rules corresponding to the first temporary speed limit order, the current status and type of the first temporary speed limit order, determine the status of the first temporary speed limit order after its initial transfer; Based on the state after the initial transfer of the first temporary speed limit command and the pre-stored state transfer rule set for temporary speed limit commands, the final state after the transfer of the first temporary speed limit command is determined.
2. The method according to claim 1, characterized in that, The step of determining the final state of the first temporary speed limit command after its initial transition based on the state after the initial transition of the first temporary speed limit command and the pre-stored state transition rule set for temporary speed limit commands includes: Based on the pre-stored set of state transition rules for temporary speed limit commands, determine the state transition rule corresponding to the first temporary speed limit command; Based on the state transition rules corresponding to the first temporary speed limit order, the target speed limit-related equipment is determined; According to the first temporary speed limit command, a first message is sent to the target speed limit related device, and the pre-selection status is received from the target speed limit related device according to the first message; Based on the state transition rules corresponding to the first temporary speed limit command, the state after the initial transition, and the pre-selected state fed back by the target speed limit related equipment, the final state after the first temporary speed limit command is determined.
3. The method according to claim 2, characterized in that, Each of the aforementioned state transition rules includes at least one of the following data items: the current state of the temporary speed limit command, the state after the temporary speed limit command is transferred, the pre-selected state of the temporary speed limit command fed back by each speed limit-related device, the pre-set logical relationship between the pre-selected states fed back by each speed limit-related device, and the priority, wherein the priority is the priority between the state transition rules corresponding to the current state of the same temporary speed limit command.
4. The method according to claim 3, characterized in that, The step of determining the state transition rule corresponding to the first temporary speed limit command based on the pre-stored state transition rule set of the temporary speed limit command includes: The pre-stored state transition rule set for temporary speed limit commands is invoked, and the state transition rule with the highest priority corresponding to the current state and type of the first temporary speed limit command in the state transition rule set is determined as the state transition rule corresponding to the first temporary speed limit command.
5. The method according to any one of claims 1-4, characterized in that, The response rules for any of the aforementioned temporary speed limit commands shall include at least one of the following data items: the current state of the temporary speed limit command, the state after the temporary speed limit command is transferred, and the type of the temporary speed limit command.
6. The method according to any one of claims 1-4, characterized in that, Also includes: In response to the first update command input by the user, update the response rule set of the temporary speed limit command; And / or, In response to a second update command input by the user, the state transition rule set of the temporary speed limit command is updated.
7. The method according to any one of claims 1-4, characterized in that, The status of the temporary speed limit command includes: not yet activated, successful verification, successful execution, unknown, prompt that it can be set, prompt that it can be activated, timed out and not activated, successful execution cancellation, successful execution deletion, no such command, in the process of being verified, in the process of being verified, in the process of being executed, and in the process of being deleted.
8. A state transition system for a temporary speed limit command, characterized in that, This includes a centralized dispatching system (CTC), at least one speed limit-related device, and a temporary speed limit server (TSRS). The CTC is configured to send a first temporary speed limit command to the TSRS in response to a user operation, the first temporary speed limit command including the type of the first temporary speed limit command; The TSRS is configured to respond to the first temporary speed limit command by calling a pre-stored set of response rules for the temporary speed limit command, determining the response rule corresponding to the first temporary speed limit command, and determining the state of the first temporary speed limit command after its initial transfer based on the response rule corresponding to the first temporary speed limit command, the current state and type of the first temporary speed limit command. Based on the state after the initial transfer of the first temporary speed limit command and the pre-stored state transfer rule set for temporary speed limit commands, the final state after the transfer of the first temporary speed limit command is determined.
9. An electronic device, characterized in that, It includes a processor, memory, and a communication bus, wherein the processor and memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1-7.
