Train departure timing method, device, system and computing equipment
By recording the reception time of the off-site timing command issued by the server on the client and performing timing processing based on the offset of the reception time and local time, the problem of inconsistent departure timing of the client in the ATS system is solved, and more accurate and consistent timing results improve user experience.
Patent Information
- Application Number
- CN202411590900.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-11-08
AI Technical Summary
In the prior art, in the automatic train monitoring system (ATS) in the rail transit system, the client's departure timing results may be inconsistent, resulting in poor user experience.
After receiving the off-site timing command issued by the client on the client, the reception time of the command is recorded, and the timing processing is performed based on the offset of the reception time and the local time, the departure timing result of the current period is determined.
It realizes more accurate off-site timing, ensures consistency of timing results for different clients, improves user experience, reduces dependence on the server, and saves network processing resources.
Smart Images

Figure CN119117053B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present specification relate to the field of computer technology, and more particularly to a method, device, system and computing equipment for timing a train departure. Background Art
[0002] With the rapid development of computer technology and intelligent control technology, rail transit has attracted more and more attention from most people. The Automatic Train Supervision (ATS) system is an important part of the rail transit system and plays a key role in the safe operation of trains. The ATS subsystem coordinates with other subsystems to jointly manage and control operating trains and signal equipment in rail transit.
[0003] In the prior art, the ATS subsystem includes multiple clients that can display the departure time. When the train runs to the platform, each client will receive a timing command issued by the server. After receiving the timing command, the client starts the timer itself, and adds / subtracts 1 to the current timing once per cycle. The timing changes every second, and the timing result is refreshed on the front-end page of the client to display the departure time.
[0004] However, due to the inconsistency of device hardware conditions and resource usage of different clients, the timing results of different clients may be inconsistent. The longer the timing is, the greater the difference will be. The departure timing displayed by multiple clients in the same space may be inconsistent, with obvious differences and poor user experience. Therefore, a more accurate departure timing solution is urgently needed. Summary of the invention
[0005] In view of this, an embodiment of the present specification provides a train departure timing method. One or more embodiments of the present specification also relate to another train departure timing, a train departure timing device, another train departure timing device, a train departure timing system, a computing device, a computer-readable storage medium and a computer program product to solve the technical defects existing in the prior art.
[0006] According to a first aspect of an embodiment of this specification, a train departure timing method is provided, which is applied to a client and includes:
[0007] Receive a departure timing command issued by the server, and record the time of receiving the departure timing command, wherein the departure timing command is generated based on the actual arrival time and the planned departure time of the target train when the target train runs to the target platform, and the departure timing command carries the timing type and the duration to be timed;
[0008] Periodically acquiring the local time, and determining the timing offset time of the current cycle according to the reception time of the departure timing command and the local time of the current cycle;
[0009] According to the timing type, the waiting timing time and the timing offset time of the current cycle are processed to determine the departure timing result of the current cycle.
[0010] According to a second aspect of an embodiment of this specification, a train departure timing method is provided, which is applied to a server, and includes:
[0011] When the target train runs to the target platform, the actual arrival time of the target train is recorded;
[0012] Determine the timing type and the time to be timed of the target train according to the actual arrival time and the planned departure time of the target train;
[0013] A departure timing command is generated according to the timing type and the duration to be timed, and the departure timing command is sent to at least two clients, wherein the departure timing command is used to instruct the at least two clients to execute the train departure timing method of the first aspect described above.
[0014] According to a third aspect of the embodiments of this specification, a train departure timing device is provided, which is applied to a client and includes:
[0015] A first recording module is configured to receive a departure timing command issued by a server, and record the reception time of the departure timing command, wherein the departure timing command is generated based on the actual arrival time and the planned departure time of the target train when the target train runs to the target platform, and the departure timing command carries a timing type and a time to be counted;
[0016] A first determination module is configured to periodically obtain a local time, and determine a timing offset time of a current cycle according to a reception time of the departure timing command and a local time of a current cycle;
[0017] The second determination module is configured to process the waiting time and the timing offset time of the current cycle according to the timing type to determine the departure timing result of the current cycle.
[0018] According to a fourth aspect of the embodiments of this specification, a train departure timing device is provided, which is applied to a server, and includes:
[0019] A second recording module is configured to record the actual arrival time of the target train when the target train runs to the target platform;
[0020] A third determination module is configured to determine the timing type and the time to be timed of the target train according to the actual arrival time and the planned departure time of the target train;
[0021] The first sending module is configured to generate a departure timing command according to the timing type and the duration to be timed, and send the departure timing command to at least two clients, wherein the departure timing command is used to instruct the at least two clients to execute the train departure timing method of the first aspect mentioned above.
[0022] According to a fifth aspect of the embodiments of this specification, a train departure timing system is provided, including a server and at least two clients;
[0023] The server is configured to record the actual arrival time of the target train when the target train runs to the target platform; determine the timing type and the waiting time of the target train according to the actual arrival time and the planned departure time of the target train; generate a departure timing command according to the timing type and the waiting time, and send the departure timing command to at least two clients;
[0024] The at least two clients are configured to receive the departure timing command issued by the server and record the reception time of the departure timing command; periodically obtain the local time, and determine the timing offset time of the current cycle according to the reception time of the departure timing command and the local time of the current cycle; and process the timing duration to be measured and the timing offset time of the current cycle according to the timing strategy corresponding to the timing type to determine the departure timing result of the current cycle.
[0025] According to a sixth aspect of an embodiment of this specification, a computing device is provided, including:
[0026] Memory and processor;
[0027] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above-mentioned train departure timing method are implemented.
[0028] According to the seventh aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned train departure timing method are implemented.
[0029] According to an eighth aspect of the embodiments of this specification, there is provided a computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned train departure timing method.
[0030] An embodiment of the present specification provides a train departure timing method, which is applied to a client. When a departure timing command issued by a server is received, the reception time of the departure timing command can be recorded. The departure timing command is generated based on the actual arrival time and the planned departure time of the target train when the target train runs to the target platform, and carries a timing type and a duration to be counted. Based on the reception time of the departure timing command and the local time of the current cycle, the timing offset time of the current cycle is determined, and according to the timing type, the duration to be counted and the timing offset time of the current cycle are processed to determine the departure timing result of the current cycle. In this way, the departure timing is performed based on the offset time between the reception time of the departure timing command and the local time of the current cycle. Even if there is an error in the local time due to the device hardware conditions and usage resources of different clients, the difference between the reception time of the departure timing command and the local time of the current cycle is fixed, and the determined departure timing is more accurate, which ensures the consistency between the departure timing results of different clients for the target station, avoids inconsistent departure timing displayed by multiple clients in the same space, and improves the user experience; and, based on the timing type, the timing duration to be scheduled and the timing offset time of the current cycle are processed. Different timing types can adopt different timing processing strategies, which can adapt to a variety of timing situations and make the timing results more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a flow chart of a train departure timing method provided by one embodiment of this specification;
[0032] Figure 2 It is a schematic diagram of a processing process of refreshing the off-site timing result by a client provided by an embodiment of this specification;
[0033] Figure 3 It is a schematic diagram of a processing process of train departure timing provided by an embodiment of this specification;
[0034] Figure 4 is a flow chart of another train departure timing method provided by an embodiment of this specification;
[0035] Figure 5 It is a timing diagram of the processing process of a train departure timing method provided by an embodiment of this specification;
[0036] Figure 6 It is a structural schematic diagram of a train departure timing device provided by an embodiment of this specification;
[0037] Figure 7 It is a structural schematic diagram of another train departure timing device provided by an embodiment of this specification;
[0038] Figure 8It is a structural schematic diagram of a train departure timing system provided by an embodiment of this specification;
[0039] Fig. 9 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION
[0040] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.
[0041] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0042] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0043] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0044] First, the terms involved in one or more embodiments of this specification are explained.
[0045] Automatic Train Supervision: referred to as "ATS subsystem", is a distributed real-time monitoring and control system that integrates modern data communication, computer, network and signal technology. The ATS subsystem manages and controls subway operating trains and signal equipment through coordination with other subsystems. Its core equipment is located in the central layer of the signal system, which is used to realize the automated management and dispatching of high-density and high-volume urban rail transit transportation. It is a comprehensive driving command and dispatching control system.
[0046] The ATS subsystem consists of the dispatch center ATS equipment, station ATS equipment and on-board ATS equipment. The dispatch center and the station exchange data in both directions through the data transmission system, while the station and the train exchange data through the train-ground information exchange system, thus forming a complete ATS subsystem.
[0047] The client that outputs information to the user in the ATS subsystem is called workstation software. There are many types of workstation software, such as dispatch workstation, large-screen workstation, monitoring workstation, maintenance workstation, on-site workstation, etc. Among them, dispatch workstation and large-screen workstation are generally installed in the dispatch center for display.
[0048] In the ATS subsystem, the application service software undertakes business tasks. Most of the business processing logic is completed in the application service software and displayed to users by being sent to the workstation software.
[0049] When the train runs to the platform and arrives at the station, each workstation software will receive the timing information frame sent by the application service software, and display the platform's departure timing at the corresponding workstation, and the timing changes every second.
[0050] In one implementation, after receiving the timing command, the client (i.e., the workstation software) starts the timer itself, and processes once per cycle to add / subtract 1 from the current time. The time changes every second, and the timing result is refreshed on the client's front-end page to display the departure time. However, due to the inconsistency of the device hardware conditions and resources used by different clients, the timing results of different clients may be inconsistent. The longer the timing is, the greater the difference will be. The departure time displayed by multiple clients in the same space may be inconsistent, with obvious differences, resulting in poor user experience.
[0051] In order to solve the above problem, another implementation method is to change the timing method of the same data source, that is, the server (that is, the application service software) starts the timer with a cycle of 1 second, and adds / subtracts 1 to the current timing once in each cycle, and then sends the timing result to each client. Each client receives the timing result, refreshes the timing result on the client's front-end page, and displays the departure timing. However, this timing method has a large amount of interaction. During the timing period, the server needs to send the timing result to multiple clients every second, resulting in high pressure on the network and data processing, which may affect other functions of the system.
[0052] Therefore, an embodiment of the present specification provides a departure timing method. When receiving the departure timing command issued by the server, the reception time of the departure timing command can be recorded, and then the timing offset time of the current cycle is determined based on the reception time of the departure timing command and the local time of the current cycle. According to the timing type, the timing duration to be timed and the timing offset time of the current cycle are processed to determine the departure timing result of the current cycle. Without increasing the network resource usage, the problem of inconsistent timing results of multiple clients is solved, which not only improves the user experience, but also does not require frequent access to the server, saves network processing resources, and avoids system abnormalities.
[0053] In this specification, a train departure timing method is provided. This specification also relates to another train departure timing method, a train departure timing device, another train departure timing device, a train departure timing system, a computing device, a computer-readable storage medium, and a computer program product, which are described in detail one by one in the following embodiments.
[0054] See also Figure 1 , Figure 1 A flow chart of a train departure timing method provided according to an embodiment of the present specification is shown, which is applied to a client and specifically includes the following steps.
[0055] Step 102: Receive the departure timing command sent by the server, and record the receipt time of the departure timing command, wherein the departure timing command is generated based on the actual arrival time and planned departure time of the target train when the target train runs to the target platform, and the departure timing command carries the timing type and the duration to be counted.
[0056] The server refers to the application service software that undertakes business tasks in the ATS subsystem, and the server can realize a variety of monitoring and timing tasks. The client refers to the workstation software in the ATS subsystem such as the dispatch center ATS equipment and the station ATS equipment, which outputs information to the user. The workstation software is divided into many types, such as the dispatch workstation, large-screen workstation, monitoring workstation, maintenance workstation, on-site workstation, etc. Among them, the dispatch workstation and large-screen workstation are generally installed in the dispatch center for display.
[0057] The departure timing command is used to instruct the client to perform departure timing for the current target platform. The departure timing is used to indicate the time interval between the current time and the planned departure time of the target train at the target platform.
[0058] The timing type is used to indicate the timing sequence of the departure timing command, such as the timing type can include positive timing and countdown. The waiting time is the time required for timing, which is used to indicate the time interval between the actual arrival time and the planned departure time. The timing type and the waiting time can be determined by the server based on the actual arrival time and the planned departure time of the target train when the target train runs to the target platform.
[0059] It should be noted that when the server monitors the target train arriving at the target platform, it can record the actual arrival time of the target train, and determine the planned departure time at the target platform according to the operation plan of the target train, and then determine the timing type and the duration to be counted based on the actual arrival time and the planned departure time, generate a departure timing command, and send it to at least two clients. In actual implementation, each client can receive the departure timing command issued by the server, and then record the reception time of the departure timing command, so as to facilitate the subsequent departure timing based on the local time of the client. Among them, the departure timing command can be in the form of a message, which can carry the timing type and the duration to be counted, and can also carry other basic attribute parameters, such as train identification, platform identification, etc.
[0060] Step 104: periodically obtain the local time, and determine the timing offset time of the current cycle according to the reception time of the departure timing command and the local time of the current cycle.
[0061] The period for periodically obtaining the local time can be pre-configured, indicating the interval for timing. For example, the period is generally configured as 1 second, and can also be configured as 2 seconds, 3 seconds, 1 minute, etc. based on actual needs.
[0062] The timing offset time is used to indicate the time difference between the reception time of the departure timing command and the local time of the current cycle, so as to perform departure timing.
[0063] In actual implementation, after the client receives the departure timing command sent by the server, it starts a thread to perform periodic departure timing processing. Get the local time of the current cycle, use the local time of the current cycle to subtract the reception time of the departure timing command, and obtain the timing offset time of the current cycle. Since the client starts the timing processing after receiving the departure timing command, the local time of the current cycle must be greater than the reception time of the departure timing command, and the timing offset time of the current cycle is a positive number.
[0064] For example, assuming that the local time dt1 of the current cycle is 10:08, and the reception time dt2 of the departure timing command is 10:05, by subtracting 10:05 from 10:08, the timing offset time of the current cycle can be obtained as 3 minutes.
[0065] It should be noted that, assuming that for a certain client, there is an error between its time and the server's time, but the difference between the reception time of the departure timing command and the local time of the current cycle is fixed, the determined departure timing is more accurate, ensuring the consistency between the timing results of different clients, avoiding inconsistent departure timing displayed by multiple clients in the same space, and improving the user experience.
[0066] For example, the actual arrival time of the target train at platform A is 10:05:00. At 10:05:00, a departure timing command is sent to client 1 and client 2. However, the time of client 1 is 8 milliseconds later than the server time. Client 1 receives the departure timing command at 10:05:008. Then the local time of the current cycle of client 1 will also be 8 milliseconds later than the server time, that is, the local time of the current cycle may be 10:06:008. At this time, it is determined that the timing offset time between the reception time of the departure timing command and the local time of the current cycle is 1 minute (60 seconds).
[0067] The time of client 2 is 1 second later than that of the server. The time received by client 2 for the departure timing command is 10:05:01. Then the local time of the current cycle of client 2 will also be 1 second later than that of the server, that is, the local time of the current cycle may be 10:06:01. At this time, the timing offset time between the reception time of the departure timing command and the local time of the current cycle is also determined to be 1 minute (60 seconds).
[0068] Subsequent timing is performed based on the timing offset time of the current cycle, ensuring the consistency of timing results among multiple clients.
[0069] Step 106: According to the timing type, the duration to be timed and the timing offset time of the current cycle are processed to determine the departure timing result of the current cycle.
[0070] It should be noted that the timing type can be determined by the server based on the actual arrival time and planned departure time of the target train. If the actual arrival time is earlier than the planned departure time, it means that the target train can still stay at the target platform for a period of time according to the operation plan. At this time, the timing type can be determined to be countdown, and the time it can stay is counted down; if the actual arrival time is later than or equal to the planned departure time, it means that the current time has exceeded the planned departure time of the target train at the target platform. According to the operation plan, the target train should leave the target platform. At this time, the timing type can be determined to be positive timing, and the time the target train stays at the target platform is counted.
[0071] In actual implementation, since different timing types indicate different departure timing situations, different timing types can use different timing processing strategies to process the timing duration and the timing offset time of the current cycle to determine the departure timing result of the current cycle.
[0072] For example, assuming that the actual arrival time of the target train at platform A is 10:05:00 and the planned departure time is 10:10:00, then the timing type is countdown, the waiting time is 5 minutes, and the client can start counting down from 5 minutes, such as 5 minutes (05:00), 4 minutes and 59 seconds (04:59), 4 minutes and 58 seconds (04:58), 4 minutes and 57 seconds (04:57), ...; assuming that the actual arrival time of the target train at platform A is 10:10:00 and the planned departure time is 10:05:00, then the timing type is positive timing, the waiting time is 5 minutes, and the counting starts from 5 minutes, such as 5 minutes (05:00), 5 minutes and 01 seconds (05:01), 5 minutes and 02 seconds (05:02), 5 minutes and 03 seconds (05:03), ...
[0073] In an optional implementation of this embodiment, the timing type includes countdown and countdown;
[0074] According to the timing type, the duration to be timed and the timing offset time of the current cycle are processed to determine the departure timing result of the current cycle, including:
[0075] If the timing type is countdown, the waiting time and the timing offset time are subtracted to determine the departure timing result of the current cycle;
[0076] If the timing type is positive timing, the waiting time and the timing offset time are added to determine the departure timing result of the current cycle.
[0077] Among them, countdown and count-up are two different ways of calculating time. Countdown is a process that starts from a predetermined time end point and decreases as time goes by. It is often used to indicate how much time is left until an event occurs. Count-up is a process that starts from a starting point and increases as time goes by. It is usually used to record the length of time that has passed.
[0078] In actual implementation, if the timing type is countdown, it means that the timing result will gradually decrease, so the timing offset time can be subtracted from the waiting timing time to determine the departure timing result of the current cycle; if the timing type is positive timing, it means that the timing result will gradually increase, so the timing offset time can be added to the waiting timing time to determine the departure timing result of the current cycle.
[0079] For example, assuming that the actual arrival time of the target train at platform A is 10:05:00 and the planned departure time is 10:10:00, then the timing type is countdown, the waiting time is 05:00, and the departure timing command is generated and sent to each client. Each client receives the departure timing command at 10:05:00, displays the current departure timing result 05:00, and the client records the receipt time of the departure timing command as 10:05:00. Assume that the timing cycle is 1 second. In the next second, the local time of the current cycle is 10:05:01, and the timing offset time of the current cycle is 1 second. Since the timing type is countdown, the waiting time 05:00 is subtracted from the timing offset time of 1 second, and the departure timing result of the current cycle is 04:59. In the next second, the local time of the current cycle is 10:05:02, and the timing offset time of the current cycle is 2 seconds. Since the timing type is countdown, the timing offset time of 2 seconds is subtracted from the waiting time 05:00, and the departure timing result of the current cycle is 04:58. And so on, the countdown is performed, which is used to indicate the time that the target train can stay at the target platform according to the operation plan.
[0080] Assume that the actual arrival time of the target train at platform A is 10:15:00, and the planned departure time is 10:10:00. At this time, the timing type is positive timing, the waiting time is 05:00, and the departure timing command is generated and sent to each client. Each client receives the departure timing command at 10:15:00, displays the current departure timing result 05:00, and the client records the receipt time of the departure timing command as 10:15:00. Assume that the timing cycle is 1 second. In the next second, the local time of the current cycle is 10:15:01, and the timing offset time of the current cycle is 1 second. Since the timing type is positive timing, the waiting time 05:00 is added to the timing offset time of 1 second, and the departure timing result of the current cycle is 05:01. In the next second, the local time of the current cycle is 10:15:02, and the timing offset time of the current cycle is 2 seconds. Since the timing type is positive timing, the waiting time 05:00 is added to the timing offset time 2 seconds, and the departure timing result of the current cycle is 05:02. And so on, positive timing is performed, which is used to indicate the target train has exceeded the stay time at the target platform according to the operation plan.
[0081] In the embodiments of this specification, different timing processing strategies are adopted for countdown and countdown to perform departure timing, and timing is performed separately for early and late trains. This can distinguish different stop situations of the train at the platform and adapt to a variety of actual timing situations, making the timing results more accurate.
[0082] In an optional implementation of this embodiment, the waiting time and the timing offset time are added to determine the departure timing result of the current cycle, including:
[0083] Add the waiting time and the timing offset time to obtain the absolute value of the timing;
[0084] Negate the absolute value of the timing to obtain the departure timing result of the current cycle.
[0085] It should be noted that, for positive timing, it means that the current time has exceeded the planned departure time of the target train at the target platform, and the target train is delayed, and the delay time will gradually increase.
[0086] In actual implementation, in order to distinguish between early trains and late trains, for positive timing, the waiting time and the timing offset time can be added to obtain the absolute value of the timing; then the absolute value of the timing is negated to obtain the departure timing result of the current cycle. In other words, if the departure timing result of the current cycle is a positive number, it means that it corresponds to the countdown type, and the target train is early. The departure timing result of the current cycle indicates that according to the operation plan, the train can still stay at the target platform; if the departure timing result of the current cycle is a negative number, it means that it corresponds to the positive timing type, and the target train is late. The absolute value of the departure timing result of the current cycle indicates that the current time has exceeded the planned departure time of the target train at the target platform in the operation plan.
[0087] Using the above example, for the countdown, the departure timing results obtained are 04:59, 04:58, 04:57, ..., indicating that the target train can still stay at the target platform according to the operation plan, and this time is gradually decreasing. For the positive timing, the departure timing results obtained are -05:01, -05:02, -05:03, ..., "-" means that the current time exceeds the planned departure time of the target train at the target platform, and the exceeding time is gradually increasing.
[0088] In the embodiments of this specification, the absolute value of timing can be obtained by first adding the time to be timed and the timing offset time, and then the absolute value of timing is negated to obtain the departure timing result of the current cycle. In this way, the departure timing result of the current cycle has a value with positive and negative attributes, which can indicate the current timing type through positive and negative, and further indicate whether the departure timing result of the current cycle is the time that the target train can still stay at the target platform according to the operation plan, or the current time exceeds the planned departure time of the target train at the target platform, and further distinguish whether the target train is early or late at the target platform, and accurately time different situations.
[0089] Of course, in actual applications, it is also possible not to distinguish between positive and negative departure timing results of the current cycle, but to display the departure timing results of the current cycle with different annotations based on different timing types.
[0090] In an optional implementation of this embodiment, according to the timing type, after processing the to-be-timed duration and the timing offset time of the current cycle and determining the departure timing result of the current cycle, the method further includes:
[0091] Determine the threshold range to which the departure timing result of the current cycle belongs;
[0092] The departure timing results of the current cycle are labeled and displayed according to the labeling parameters corresponding to the threshold range.
[0093] The threshold range refers to the threshold range corresponding to the departure timing result in the pre-configured multiple threshold ranges, such as the pre-configured multiple threshold ranges may be less than 0, equal to 0, greater than 0, and other threshold ranges may be configured based on business needs in actual implementation, such as less than 0 and greater than or equal to -10, equal to 0, greater than 0 and less than 10, and greater than or equal to 10. The annotation parameter refers to the rendering parameter for annotating and displaying the departure timing result, and the annotation parameter may include the position, font, size and / or color of the departure timing result.
[0094] It should be noted that, according to the timing type, the timing duration and the timing offset time of the current cycle are processed to determine the departure timing result of the current cycle, and then the departure timing result of the current cycle can be marked and displayed.
[0095] In actual implementation, annotation parameters corresponding to different threshold ranges can be pre-configured, and different threshold ranges correspond to different annotation parameters to distinguish the departure timing results under different threshold ranges. Specifically, the threshold range to which the departure timing result of the current period belongs can be determined, and then the annotation parameters corresponding to the threshold range can be obtained, and the departure timing result of the current period can be rendered to achieve annotation display.
[0096] Specifically, when the departure timing result of the current period is marked and displayed, the absolute value of the departure timing result of the current period can be displayed, and of course the departure timing result with a sign can also be displayed, or, when the departure timing result of the current period is less than 0, the absolute value of the departure timing result of the current period is displayed, otherwise the departure timing result of the current period is displayed, and the embodiments of this specification do not limit this.
[0097] It should be noted that as the timing proceeds, for the countdown, the departure timing result will gradually decrease, and for the positive timing, the departure timing result will gradually increase. The threshold range may change, and the corresponding annotation parameters may also change accordingly.
[0098] For example, it is assumed that the pre-configured threshold range can be less than 0, equal to 0, and greater than 0, and the annotation parameter less than 0 is a red font color, the annotation parameter equal to 0 is a white font color, and the font color greater than 0 is green. For the countdown, its departure timing result will gradually decrease, and after decreasing to 0, it will become a negative value, indicating that the current time has exceeded the planned departure time of the target train at the target platform, that is, for the countdown, the departure timing result is displayed in green at the beginning, when the departure timing result decreases to 0, it is displayed in white, and when the departure timing result continues to decrease to a negative value, it is displayed in red.
[0099] In the embodiments of the present specification, the corresponding annotation parameters can be used for annotation display according to the threshold range to which the departure timing result of the current period belongs. The departure timing results of different threshold ranges are displayed with different parameters to achieve different display effects, which can clearly distinguish the current departure timing result and improve the user experience.
[0100] In an optional implementation of this embodiment, the departure timing result of the current period is annotated and displayed according to the annotation parameter corresponding to the threshold range, including:
[0101] When the threshold range indicates that the target train is early, the departure timing result of the current cycle is marked and displayed based on the first marking parameter;
[0102] When the threshold range indicates that the target train is delayed, the departure timing result of the current cycle is marked and displayed based on the second marking parameter;
[0103] Among them, the early target train means that the time of the current cycle is earlier than the planned departure time of the target train at the target platform, and the late target train means that the time of the current cycle is later than the planned departure time of the target train at the target platform. The second annotation parameter is different from the first annotation parameter.
[0104] Among them, the first annotation parameter refers to the annotation parameter corresponding to the situation where the target train is early, and the second annotation parameter refers to the annotation parameter corresponding to the situation where the target train is late. For example, the first annotation parameter is displayed in green font, and the second annotation parameter is displayed in red font.
[0105] It should be noted that the target train being early or late are two different monitoring situations. In the rail transit scenario, they need to be paid attention to separately. Therefore, the annotation parameters corresponding to the target train being early and the target train being late can be configured separately, and the departure timing results when the target train is early and the target train is late can be displayed with different annotation parameters.
[0106] In actual implementation, the threshold range can be configured based on whether the target train is delayed. The threshold range to which the departure timing result of the current cycle belongs can indicate whether the target train is early or late in the current cycle, and then the corresponding marking parameters are used for marking.
[0107] In addition, if the threshold range of the departure timing result of the current cycle indicates that the current cycle is neither early nor late, but on time, the third annotation parameter can be used to annotate and display the departure timing result of the current cycle. The third annotation parameter is different from the first annotation parameter and the second annotation parameter, such as the third annotation parameter can be displayed in white font.
[0108] Continuing with the above example, assume that the pre-configured threshold range can be less than 0, equal to 0, and greater than 0. Less than 0 means that the target train is late, that is, the current time has exceeded the planned departure time of the target train at the target platform; equal to 0 means on time, that is, the current time is equal to the planned departure time of the target train at the target platform; greater than 0 means early, that is, the target train can still stay at the target platform according to the operation plan. Assuming that the threshold range of the departure timing result of the current cycle is determined to be greater than 0, it means that the target train is early, and the departure timing result of the current cycle is displayed in green; assuming that the threshold range of the departure timing result of the current cycle is determined to be less than 0, it means that the target train is late, and the departure timing result of the current cycle is displayed in red. Assuming that the threshold range of the departure timing result of the current cycle is determined to be equal to 0, it means that the target train is on time, and the departure timing result of the current cycle is displayed in white.
[0109] In the embodiments of the present specification, it is possible to determine whether the target train is early or late at the target platform in the current period according to the threshold range of the departure timing result of the current period, and then use different annotation parameters for the early target train and the late target train to display the departure timing result. Different display effects can be achieved for the early target train and the late target train, and it is clearly distinguished whether the departure timing result of the current period is early or late, thereby improving the user experience.
[0110] As an example, Figure 2 FIG. 1 is a schematic diagram of a process for refreshing the out-of-station timing result by a client according to an embodiment of the present specification. Figure 2 As shown, after the client receives the departure timing command sent by the server, it starts a thread to perform periodic departure timing processing. Get the local time dt2 of the current cycle, subtract the receipt time dt1 of the departure timing command from the local time dt2 of the current cycle, and determine the timing offset time diffTime of the current cycle. If the timing type is countdown, subtract the timing offset time diffTime from the waiting time Time to determine the departure timing result currTime of the current cycle; if the timing type is positive timing, add the waiting time Time to the timing offset time diffTime to determine the departure timing result currTime of the current cycle.
[0111] Determine whether the departure timing result currTime of the current cycle is greater than 0. If so, display the departure timing result of the current cycle in green font. If not, determine whether the departure timing result currTime of the current cycle is equal to 0. If so, display the departure timing result of the current cycle in white font; if not, display the absolute value of the departure timing result of the current cycle in red font.
[0112] Determine whether the timing result is correct. If not, continue to return to execute to obtain the local time dt2 of the current cycle and continue to time the next cycle. If yes, stop timing and the departure timing ends.
[0113] In another implementation, for the positive timing type, after adding the waiting time and the timing offset time, the result can be directly used as the departure timing result of the current cycle without taking a negative value. According to the timing type in the departure timing command, the corresponding annotation parameters are determined, and the departure timing result of the current cycle is annotated and displayed.
[0114] In actual implementation, since the timing type is countdown, as time goes by, its departure timing result will gradually decrease, and the departure timing result of the current cycle may change from greater than 0 to less than 0, and its threshold range will change, and the target train may change from early to late; while for positive timing, its departure timing result of the current cycle will gradually increase, and always indicate that the target train in the current cycle has stayed at the target platform for more than the planned departure time, which means that the target train is late, and the delay time will gradually increase. Therefore, for positive timing, the second annotation parameter corresponding to the delay can be directly used to display the departure timing result of the current cycle; and for countdown, the threshold range of the departure timing result of the current cycle can be further determined, and then further based on the threshold range, it is determined whether the target train in the current cycle is early or late, and the corresponding annotation parameters are used for annotation and display.
[0115] In an optional implementation of this embodiment, the departure timing command is issued when the target train runs to the target platform; the method further includes:
[0116] Receive the stop timing command sent by the server and stop the departure timing, wherein the stop timing command is sent by the server when the target train leaves the target platform.
[0117] In actual implementation, when the server detects that the target train has left the target platform, it can send a stop timing command to each client, and no longer time the target train leaving the target platform. When each client receives the stop timing command sent by the server, it stops timing the departure, and the timing ends. Based on the command sent by the server, the client starts timing the departure when the target train runs to the target platform, and ends timing when the target train leaves the target platform. It can accurately monitor the time interval between the current time and the planned departure time of the target train at the target platform, thereby monitoring the stay of the target train at the target platform.
[0118] Figure 3 FIG. 1 is a schematic diagram of a process for processing train departure timing provided by an embodiment of the present specification, such as Figure 3As shown, the client receives the departure timing command sent by the server, records the reception time of the departure timing command, and starts a thread to perform periodic departure timing processing. The detailed operation process of periodic departure timing processing can be found in the above Figure 2 The client determines whether a stop timing command is received, if not, it continues the periodic departure timing process; if yes, it ends the timing.
[0119] An embodiment of the present specification provides a train departure timing method, which is applied to a client and performs departure timing based on the offset time between the reception time of a departure timing command and the local time of the current cycle. Even if there is an error in the local time due to the device hardware conditions and resource usage of different clients, the difference between the reception time of the departure timing command and the local time of the current cycle is fixed, and the determined departure timing is more accurate, thereby ensuring the consistency between the timing results of different clients and avoiding inconsistent departure timing displayed by multiple clients in the same space, thereby improving the user experience. Furthermore, based on the timing type, the timing duration to be timed and the timing offset time of the current cycle are processed. Different timing types can adopt different timing processing strategies, and can adapt to a variety of timing situations to make the timing results more accurate.
[0120] See also Figure 4 , Figure 4 A flow chart of another train departure timing method provided according to an embodiment of the present specification is shown, which is applied to the server and specifically includes the following steps.
[0121] Step 402: When the target train runs to the target platform, the actual arrival time of the target train is recorded.
[0122] The target train refers to any train that the ATS subsystem is currently monitoring, and the target platform refers to the platform to which the target train is currently running.
[0123] In actual implementation, in the field of rail transit, the target train can travel through each platform according to the operation plan. When the target train travels to the target platform, the actual arrival time of the target train at the target platform is recorded.
[0124] In an optional implementation of this embodiment, when the target train runs to the target platform, after recording the actual arrival time of the target train, the method further includes:
[0125] Obtain the operation plan of the target train;
[0126] According to the platform identification and operation plan of the target platform, the planned departure time of the target train at the target platform is determined.
[0127] Among them, the operation plan of the target train refers to a series of detailed operational arrangements formulated to ensure that the train can run safely and efficiently according to the scheduled schedule. It includes key information of the train from the departure station to the terminal station, such as departure time, arrival time, stops, planned stop time at each stop, planned departure time, driving route, speed limit, etc.
[0128] In actual implementation, the operation plan of the target train can be obtained, and according to the platform identification of the target platform, the planned departure time of the target train at the target platform can be queried in the operation plan of the target train. For example, after train A runs to platform A, the operation plan of train A is obtained, and the planned departure time of train A at platform A is queried in the operation plan to be 10:10:00.
[0129] It should be noted that the planned departure time of the target train at the target platform can be queried in the operation plan based on the platform identification of the target platform. The method of obtaining the planned departure time is simple and accurate, which facilitates subsequent monitoring of the relationship between the current time and the planned departure time, and then monitors the target train's stay at the target platform.
[0130] Step 404: Determine the timing type and the time to be timed of the target train according to the actual arrival time and the planned departure time of the target train.
[0131] The timing type is used to indicate the timing sequence, such as the timing type can include positive timing and countdown. The waiting time is the time required for timing, which is used to indicate the time interval between the actual arrival time and the planned departure time. The timing type and the waiting time can be determined by the server based on the actual arrival time and the planned departure time of the target train when the target train runs to the target platform.
[0132] In an optional implementation of this embodiment, determining the timing type and the waiting time for timing of the target train according to the actual arrival time and the planned departure time of the target train includes:
[0133] Determine the waiting time based on the time difference between the actual arrival time and the planned departure time;
[0134] The timing type is determined based on the temporal relationship between the actual arrival time and the planned departure time.
[0135] In actual implementation, the time difference can indicate the time interval between the actual arrival time and the planned departure time. Therefore, the waiting time can be determined based on the time difference between the actual arrival time and the planned departure time. Specifically, the time difference can be obtained by subtracting the planned departure time from the actual arrival time, or by subtracting the actual arrival time from the planned departure time, and then the absolute value of the time difference is determined as the waiting time.
[0136] Continuing with the above example, assuming the planned departure time is 10:10:00 and the actual arrival time is 10:05:00, the planned departure time minus the actual arrival time is 5 minutes, and the absolute value is also 5. At this time, it can be determined that the waiting time is 5 minutes; assuming the actual arrival time is 10:15:00, the planned departure time minus the actual arrival time is -5 minutes. At this time, it can be determined that the absolute value of "-5" is 5, and the waiting time is 5 minutes.
[0137] In addition, the timing relationship can indicate the temporal sequence of the actual arrival time and the planned departure time. Therefore, the timing type can be determined based on the timing relationship between the actual arrival time and the planned departure time. Different timing relationships can be determined as different timing types, thereby classifying the timing according to different timing relationships.
[0138] In the embodiments of the present specification, the duration to be measured can be determined according to the time difference between the actual arrival time and the planned departure time, and the timing type can be determined according to the temporal relationship between the actual arrival time and the planned departure time, so that the duration to be measured and the timing type can be sent to each client later, and each client performs departure timing based on the duration to be measured and the timing type. Different timing types can adopt different timing processing strategies, which can adapt to a variety of timing situations, so that the timing results are more accurate.
[0139] In an optional implementation of this embodiment, determining the timing type according to the temporal relationship between the actual arrival time and the planned departure time includes:
[0140] When the actual arrival time is earlier than the planned departure time, the timing type of the target train is determined to be countdown;
[0141] When the actual arrival time is later than the planned departure time, the timing type of the target train is determined to be positive timing.
[0142] In actual implementation, if the actual arrival time is earlier than the planned departure time, it means that the target train can still stay at the target platform for a period of time according to the operation plan. At this time, the timing type can be determined to be countdown, and the time it can stay is counted down; if the actual arrival time is later than or equal to the planned departure time, it means that the current time has exceeded the planned departure time of the target train at the target platform. According to the operation plan, the target train should leave the target platform. At this time, the timing type can be determined to be positive timing, and the time the target train stays at the target platform is counted.
[0143] For example, assuming that the planned departure time is 10:10:00, if the actual arrival time is 10:05:00, it means that the actual arrival time is earlier than the planned departure time, and the timing type of the target train is determined to be a countdown of 5 minutes; if the actual arrival time is 10:15:00, it means that the actual arrival time is later than the planned departure time, and the timing type of the target train is determined to be a countdown of 5 minutes.
[0144] In the embodiment of this specification, if the actual arrival time is earlier than the planned departure time, the timing type of the target train is determined to be countdown, and if the actual arrival time is later than the planned departure time, the timing type of the target train is determined to be positive. According to different actual situations, the timing is classified, so that different timing types of the subsequent client can adopt different timing processing strategies, which can adapt to a variety of timing situations, making the timing results more accurate.
[0145] Step 406: Generate a departure timing command according to the timing type and the duration to be timing, and send the departure timing command to at least two clients.
[0146] The off-station timing command is used to instruct at least two clients to execute the above Figure 1-Figure 3 The train departure timing method shown.
[0147] In actual implementation, after determining the timing type and the waiting time, the server can generate a departure timing command and send the departure timing command to at least two clients, so that at least two clients perform periodic departure timing based on the timing type and the waiting time carried in the departure timing command. The process of the client performing periodic departure timing can be referred to above. Figure 1 The content shown.
[0148] In an optional implementation of this embodiment, the method further includes:
[0149] When it is monitored that the target train leaves the target platform, a stop timing command is sent to at least two clients, so that the at least two clients stop timing.
[0150] The embodiments of the present specification provide a train departure timing method, which is applied to a server. The server can record the actual arrival time of a target train, and determine the timing type and the time to be timed of the target train according to the actual arrival time and the planned departure time of the target train; generate a departure timing command according to the timing type and the time to be timed, and send it to each client. Each client can perform periodic departure timing based on the timing type and the time to be timed. Different timing types can adopt different timing processing strategies, and can adapt to a variety of timing situations to make the timing results more accurate.
[0151] The above is a schematic scheme of a train departure timing method of a server in this embodiment. It should be noted that the technical scheme of the train departure timing method of the server and the technical scheme of the train departure timing method of the client described above belong to the same concept, and the details of the technical scheme of the train departure timing method of the server that are not described in detail can all be referred to the description of the technical scheme of the train departure timing method of the client described above.
[0152] Figure 5 FIG. 1 shows a timing diagram of a process of a train departure timing method provided by an embodiment of the present specification, such as Figure 5 As shown:
[0153] The server side records the actual arrival time of the target train when the target train runs to the target platform; obtains the operation plan of the target train; and determines the planned departure time of the target train at the target platform based on the platform identification and operation plan of the target platform.
[0154] On the server side, when the actual arrival time is earlier than the planned departure time, the timing type of the target train is determined to be countdown; when the actual arrival time is later than the planned departure time, the timing type of the target train is determined to be countdown.
[0155] The server determines the waiting time based on the time difference between the actual arrival time and the planned departure time.
[0156] The server generates a departure timing command according to the timing type and the waiting timing time, and sends the departure timing command to at least two clients.
[0157] The client records the time when the departure timing command is received.
[0158] The client periodically obtains the local time and determines the timing offset time of the current cycle according to the reception time of the off-station timing command and the local time of the current cycle.
[0159] The client, if the timing type is countdown, subtracts the waiting time from the timing offset time to determine the departure timing result of the current period; if the timing type is positive, adds the waiting time from the timing offset time to determine the departure timing result of the current period.
[0160] The client determines the threshold range to which the departure timing result of the current period belongs; when the threshold range indicates that the target train is early, the departure timing result of the current period is marked and displayed based on the first marking parameter; when the threshold range indicates that the target train is late, the departure timing result of the current period is marked and displayed based on the second marking parameter.
[0161] Among them, the early target train means that the time of the current cycle is earlier than the planned departure time of the target train at the target platform, and the late target train means that the time of the current cycle is later than the planned departure time of the target train at the target platform. The second annotation parameter is different from the first annotation parameter.
[0162] The server, upon detecting that the target train leaves the target platform, sends a stop timing command to at least two clients.
[0163] The client receives the stop timing command sent by the server and stops the departure timing.
[0164] The embodiments of the present specification provide a train departure timing method, wherein the server can record the actual arrival time of the target train, and determine the timing type and the duration to be timed of the target train according to the actual arrival time and the planned departure time of the target train; generate a departure timing command according to the timing type and the duration to be timed, and send it to each client; when the client receives the departure timing command sent by the server, it can record the reception time of the departure timing command, and then determine the timing offset time of the current cycle based on the reception time of the departure timing command and the local time of the current cycle; according to the timing type, the duration to be timed and the timing offset time of the current cycle are processed to determine the departure timing result of the current cycle.
[0165] In this way, the departure timing is performed based on the offset time between the reception time of the departure timing command and the local time of the current cycle. Even if there is an error in the local time due to the device hardware conditions and usage resources of different clients, the difference between the reception time of the departure timing command and the local time of the current cycle is fixed, and the determined departure timing is more accurate, which ensures the consistency between the timing results of different clients and avoids inconsistent departure timing displayed by multiple clients in the same space, thereby improving the user experience. In addition, the timing duration to be scheduled and the timing offset time of the current cycle are processed based on the timing type. Different timing types can adopt different timing processing strategies, which can adapt to a variety of timing situations and make the timing results more accurate.
[0166] Corresponding to the above method embodiment, this specification also provides a train departure timing device embodiment, Figure 6 FIG. 2 shows a schematic diagram of a train departure timing device provided by an embodiment of the present specification. Figure 6 As shown, applied to a client, the device includes:
[0167] The first recording module 602 is configured to receive a departure timing command issued by the server, and record the reception time of the departure timing command, wherein the departure timing command is generated based on the actual arrival time and the planned departure time of the target train when the target train runs to the target platform, and the departure timing command carries the timing type and the waiting timing duration;
[0168] The first determination module 604 is configured to periodically obtain the local time and determine the timing offset time of the current cycle according to the reception time of the departure timing command and the local time of the current cycle;
[0169] The second determination module 606 is configured to process the to-be-timed duration and the timing offset time of the current cycle according to the timing type, and determine the departure timing result of the current cycle.
[0170] Optionally, the timing type includes countdown and countdown;
[0171] The second determining module 606 is further configured to:
[0172] If the timing type is countdown, the waiting time and the timing offset time are subtracted to determine the departure timing result of the current cycle;
[0173] If the timing type is positive timing, the waiting time and the timing offset time are added to determine the departure timing result of the current cycle.
[0174] Optionally, the second determining module 606 is further configured to:
[0175] Add the waiting time and the timing offset time to obtain the absolute value of the timing;
[0176] Negate the absolute value of the timing to obtain the departure timing result of the current cycle.
[0177] Optionally, the device further includes a label display module configured to:
[0178] Determine the threshold range to which the departure timing result of the current cycle belongs;
[0179] The departure timing results of the current cycle are labeled and displayed according to the labeling parameters corresponding to the threshold range.
[0180] Optionally, the annotation display module is further configured to:
[0181] When the threshold range indicates that the target train is early, the departure timing result of the current cycle is marked and displayed based on the first marking parameter;
[0182] When the threshold range indicates that the target train is delayed, the departure timing result of the current cycle is marked and displayed based on the second marking parameter;
[0183] Among them, the early target train means that the time of the current cycle is earlier than the planned departure time of the target train at the target platform, and the late target train means that the time of the current cycle is later than the planned departure time of the target train at the target platform. The second annotation parameter is different from the first annotation parameter.
[0184] Optionally, the device further includes a receiving module configured to:
[0185] Receive the stop timing command sent by the server and stop the departure timing, wherein the stop timing command is sent by the server when the target train leaves the target platform.
[0186] An embodiment of the present specification provides a train departure timing device, which is applied to a client and performs departure timing based on the offset time between the reception time of the departure timing command and the local time of the current cycle. Even if there is an error in the local time due to the device hardware conditions and usage resources of different clients, the difference between the reception time of the departure timing command and the local time of the current cycle is fixed, and the determined departure timing is more accurate, thereby ensuring the consistency between the timing results of different clients and avoiding inconsistent departure timing displayed by multiple clients in the same space, thereby improving the user experience. Furthermore, based on the timing type, the timing duration to be timed and the timing offset time of the current cycle are processed. Different timing types can adopt different timing processing strategies, and can adapt to a variety of timing situations to make the timing results more accurate.
[0187] Corresponding to the above method embodiment, this specification also provides another train departure timing device embodiment, Figure 7 FIG. 2 shows a schematic diagram of the structure of another train departure timing device provided by an embodiment of the present specification. Figure 7 As shown, applied to the server, the device includes:
[0188] The second recording module 702 is configured to record the actual arrival time of the target train when the target train runs to the target platform;
[0189] The third determination module 704 is configured to determine the timing type and the time to be timed of the target train according to the actual arrival time and the planned departure time of the target train;
[0190] The first sending module 706 is configured to generate a departure timing command according to the timing type and the waiting time, and send the departure timing command to at least two clients, so that the at least two clients perform periodic departure timing based on the timing type and the waiting time carried in the departure timing command.
[0191] Optionally, the third determining module 704 is further configured to:
[0192] Determine the waiting time based on the time difference between the actual arrival time and the planned departure time;
[0193] The timing type is determined based on the temporal relationship between the actual arrival time and the planned departure time.
[0194] Optionally, the third determining module 704 is further configured to:
[0195] When the actual arrival time is earlier than the planned departure time, the timing type of the target train is determined to be countdown;
[0196] When the actual arrival time is later than the planned departure time, the timing type of the target train is determined to be positive timing.
[0197] Optionally, the device further includes a fourth determining module, configured to:
[0198] Obtain the operation plan of the target train;
[0199] According to the platform identification and operation plan of the target platform, the planned departure time of the target train at the target platform is determined.
[0200] Optionally, the device further includes a second sending module, configured to:
[0201] When it is monitored that the target train leaves the target platform, a stop timing command is sent to at least two clients, so that the at least two clients stop timing.
[0202] The embodiments of the present specification provide a train departure timing device, which is applied to a server. The server can record the actual arrival time of a target train, and determine the timing type and the time to be timed of the target train according to the actual arrival time and the planned departure time of the target train; generate a departure timing command according to the timing type and the time to be timed, and send it to each client. Each client can perform periodic departure timing based on the timing type and the time to be timed. Different timing types can adopt different timing processing strategies, and can adapt to a variety of timing situations to make the timing results more accurate.
[0203] The above is a schematic scheme of a train departure timing device of this embodiment. It should be noted that the technical scheme of the train departure timing device and the technical scheme of the train departure timing method described above are of the same concept, and the details of the technical scheme of the train departure timing device that are not described in detail can all be referred to the description of the technical scheme of the train departure timing method described above.
[0204] Corresponding to the above method embodiment, this specification also provides another train departure timing system embodiment, Figure 8 FIG. 2 shows a schematic diagram of a train departure timing system provided by an embodiment of the present specification. Figure 8 As shown, it includes a server 802 and at least two clients 804;
[0205] The server 802 is configured to record the actual arrival time of the target train when the target train runs to the target platform; determine the timing type and the waiting time of the target train according to the actual arrival time and the planned departure time of the target train; generate a departure timing command according to the timing type and the waiting time, and send the departure timing command to at least two clients 804;
[0206] At least two clients 804 are configured to receive the departure timing command issued by the server 802 and record the reception time of the departure timing command; periodically obtain the local time, and determine the timing offset time of the current cycle based on the reception time of the departure timing command and the local time of the current cycle; according to the timing strategy corresponding to the timing type, process the timing duration and the timing offset time of the current cycle to determine the departure timing result of the current cycle.
[0207] The embodiments of the present specification provide a train departure timing system, in which a server can record the actual arrival time of a target train, and determine the timing type and the duration to be timed of the target train according to the actual arrival time and the planned departure time of the target train; a departure timing command is generated according to the timing type and the duration to be timed, and is sent to each client; when the client receives the departure timing command sent by the server, the client can record the reception time of the departure timing command, and then determine the timing offset time of the current cycle based on the reception time of the departure timing command and the local time of the current cycle; according to the timing type, the duration to be timed and the timing offset time of the current cycle are processed to determine the departure timing result of the current cycle.
[0208] In this way, the departure timing is performed based on the offset time between the reception time of the departure timing command and the local time of the current cycle. Even if there is an error in the local time due to the device hardware conditions and usage resources of different clients, the difference between the reception time of the departure timing command and the local time of the current cycle is fixed, and the determined departure timing is more accurate, which ensures the consistency between the timing results of different clients and avoids inconsistent departure timing displayed by multiple clients in the same space, thereby improving the user experience. In addition, the timing duration to be scheduled and the timing offset time of the current cycle are processed based on the timing type. Different timing types can adopt different timing processing strategies, which can adapt to a variety of timing situations and make the timing results more accurate.
[0209] The above is a schematic scheme of a train departure timing system of this embodiment. It should be noted that the technical scheme of the train departure timing system and the technical scheme of the train departure timing method described above are of the same concept, and the details of the technical scheme of the train departure timing system that are not described in detail can all be referred to the description of the technical scheme of the train departure timing method described above.
[0210] Fig. 9The block diagram of a computing device according to an embodiment of the present specification is shown. The components of the computing device 900 include but are not limited to a memory 910 and a processor 920. The processor 920 is connected to the memory 910 via a bus 930, and the database 950 is used to store data.
[0211] The computing device 900 also includes an access device 940 that enables the computing device 900 to communicate via one or more networks 960. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 940 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).
[0212] In one embodiment of the present specification, the above components of the computing device 900 and Fig. 9 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Fig. 9 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0213] The computing device 900 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 900 may also be a mobile or stationary server.
[0214] The processor 920 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned train departure timing method.
[0215] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the train departure timing method described above are of the same concept, and the details not described in detail in the technical scheme of the computing device can be found in the description of the technical scheme of the train departure timing method described above.
[0216] An embodiment of the present specification also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned train departure timing method.
[0217] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the train departure timing method described above belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the train departure timing method described above.
[0218] An embodiment of the present specification also provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned train departure timing method.
[0219] The above is a schematic scheme of a computer program of this embodiment. It should be noted that the technical scheme of the computer program and the technical scheme of the train departure timing method described above are of the same concept, and the details not described in detail in the technical scheme of the computer program can be found in the description of the technical scheme of the train departure timing method described above.
[0220] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0221] Computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. Computer readable media may include: any entity or device capable of carrying computer program codes, recording media, USB flash drives, mobile hard disks, magnetic disks, optical disks, computer memories, read-only memories (ROM), random access memories (RAM), electric carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the contents of computer readable media may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer readable media do not include electric carrier signals and telecommunication signals.
[0222] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some 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 embodiments of this specification.
[0223] 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.
[0224] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.
Claims
1. A train departure timing method, characterized in that: Applied to the client, including: Receive a departure timing command issued by the server, and record the reception time of the departure timing command, wherein the departure timing command is generated based on the actual arrival time and the planned departure time of the target train when the target train runs to the target platform, and the departure timing command carries a timing type and a waiting time, and the timing type includes positive timing and countdown; Periodically acquiring the local time, and determining the timing offset time of the current cycle according to the reception time of the departure timing command and the local time of the current cycle; According to the timing type, the waiting timing time and the timing offset time of the current cycle are processed to determine the departure timing result of the current cycle; The processing of the to-be-timed duration and the timing offset time of the current cycle according to the timing type to determine the departure timing result of the current cycle includes: If the timing type is countdown, subtract the waiting time from the timing offset time to determine the departure timing result of the current cycle; If the timing type is positive timing, the waiting timing time and the timing offset time are added to determine the departure timing result of the current cycle.
2. The train departure timing method according to claim 1, characterized in that: The adding the waiting time and the timing offset time to determine the departure timing result of the current cycle includes: Add the time to be counted and the timing offset time to obtain a timing absolute value; The timing absolute value is negated to obtain the departure timing result of the current cycle.
3. The train departure timing method according to claim 1, characterized in that: After the to-be-timed time and the timing offset time of the current cycle are processed according to the timing type to determine the departure timing result of the current cycle, the method further includes: Determine a threshold range to which the departure timing result of the current cycle belongs; The departure timing result of the current period is labeled and displayed according to the labeling parameters corresponding to the threshold range.
4. The train departure timing method according to claim 3, characterized in that: The marking and displaying of the departure timing result of the current period according to the marking parameter corresponding to the threshold range includes: In the case where the threshold range indicates that the target train is early, marking and displaying the departure timing result of the current cycle based on the first marking parameter; When the threshold value range indicates that the target train is delayed, marking and displaying the departure timing result of the current period based on the second marking parameter; Among them, the early target train means that the time of the current cycle is earlier than the planned departure time of the target train at the target platform, and the late target train means that the time of the current cycle is later than the planned departure time of the target train at the target platform, and the second marking parameter is different from the first marking parameter.
5. The train departure timing method according to claim 1, characterized in that: The departure timing command is issued when the target train runs to the target platform; the method also includes: Receive a stop timing command issued by the server, and stop the departure timing, wherein the stop timing command is issued by the server when the target train leaves the target platform.
6. A train departure timing method, characterized in that: Applied to the server, including: When the target train runs to the target platform, the actual arrival time of the target train is recorded; Determine the timing type and the time to be timed of the target train according to the actual arrival time and the planned departure time of the target train; A departure timing command is generated according to the timing type and the duration to be timed, and the departure timing command is sent to at least two clients, wherein the departure timing command is used to instruct the at least two clients to execute the train departure timing method described in any one of claims 1-5 above.
7. The train departure timing method according to claim 6, characterized in that: Determining the timing type and the time to be timed of the target train according to the actual arrival time and the planned departure time of the target train includes: Determine the waiting time according to the time difference between the actual arrival time and the planned departure time; The timing type is determined according to the temporal relationship between the actual arrival time and the planned departure time.
8. The train departure timing method according to claim 7, characterized in that: The determining the timing type according to the temporal relationship between the actual arrival time and the planned departure time includes: In a case where the actual arrival time is earlier than the planned departure time, determining the timing type of the target train to be countdown; In a case where the actual arrival time is later than the planned departure time, the timing type of the target train is determined to be positive timing.
9. The train departure timing method according to claim 6, characterized in that: When the target train runs to the target platform, after recording the actual arrival time of the target train, the method further includes: Obtaining an operation plan of the target train; The planned departure time of the target train at the target platform is determined according to the platform identification of the target platform and the operation plan.
10. The train departure timing method according to claim 6, characterized in that: The method further comprises: When it is monitored that the target train leaves the target platform, a stop timing command is sent to the at least two clients so that the at least two clients stop timing.
11. A train departure timing device, characterized in that: Applied to the client, including: A first recording module is configured to receive a departure timing command issued by a server, and record the reception time of the departure timing command, wherein the departure timing command is generated based on the actual arrival time and the planned departure time of the target train when the target train runs to the target platform, and the departure timing command carries a timing type and a waiting time, and the timing type includes positive timing and countdown; A first determination module is configured to periodically obtain a local time, and determine a timing offset time of a current cycle according to a reception time of the departure timing command and a local time of a current cycle; A second determination module is configured to process the waiting time and the timing offset time of the current cycle according to the timing type to determine the departure timing result of the current cycle; Among them, the second determination module is further configured to, if the timing type is countdown, subtract the waiting time and the timing offset time to determine the departure timing result of the current cycle; if the timing type is positive timing, add the waiting time and the timing offset time to determine the departure timing result of the current cycle.
12. A train departure timing device, characterized in that: Applied to the server, including: A second recording module is configured to record the actual arrival time of the target train when the target train runs to the target platform; A third determination module is configured to determine the timing type and the time to be timed of the target train according to the actual arrival time and the planned departure time of the target train; The first sending module is configured to generate a departure timing command according to the timing type and the duration to be timed, and send the departure timing command to at least two clients, wherein the departure timing command is used to instruct the at least two clients to execute the train departure timing method described in any one of claims 1-5 above.
13. A train departure timing system, characterized in that: Includes a server and at least two clients; The server is configured to record the actual arrival time of the target train when the target train runs to the target platform; Determine the timing type and the time to be timed of the target train according to the actual arrival time and the planned departure time of the target train; Generate a departure timing command according to the timing type and the waiting timing duration, and send the departure timing command to at least two clients; The at least two clients are configured to receive the departure timing command sent by the server and record the reception time of the departure timing command; Periodically acquiring the local time, and determining the timing offset time of the current cycle according to the reception time of the departure timing command and the local time of the current cycle; According to the timing strategy corresponding to the timing type, the duration to be counted and the timing offset time of the current cycle are processed to determine the departure timing result of the current cycle; wherein the timing type includes positive timing and countdown, and according to the timing type, the duration to be counted and the timing offset time of the current cycle are processed to determine the departure timing result of the current cycle, including: if the timing type is countdown, the duration to be counted and the timing offset time are subtracted to determine the departure timing result of the current cycle; if the timing type is positive timing, the duration to be counted and the timing offset time are added to determine the departure timing result of the current cycle.
14. A computing device, characterized in that include: Memory and processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the train departure timing method described in any one of claims 1-10 are implemented.
15. A computer-readable storage medium, characterized in that: It stores computer executable instructions, which, when executed by a processor, implement the steps of the train departure timing method described in any one of claims 1 to 10.
16. A computer program product, characterized in that The method comprises a computer program / instruction, which, when executed by a processor, implements the steps of the train departure timing method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Train arrival time forecasting method and system
CN110758493A
Subway data simulation method and device, server and storage medium
CN113934743A