CONTROL DEVICE, CONTROL SYSTEM, AND MESSAGE DELAY DETECTION METHOD
The control device detects message delays by measuring time at different expiration times, addressing the limitations of existing systems to enhance train control reliability without increasing communication time or cost.
Patent Information
- Application Number
- JP2024542480
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-08-23
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-08-23
AI Technical Summary
Existing train control systems fail to detect message delays without increasing communication time and cost, as they are limited by the length of time information and fixed expiration times, leading to undetected message delays when messages remain in communication devices for extended periods.
Implementing a control device that measures time at different expiration times for each message, allowing detection of delays without increasing the amount of information in the message by using a second time information that differs from the first expiration time.
Enables effective detection of message delays without adding to communication time or cost, ensuring reliable train control by accurately identifying delayed messages.
Smart Images

Figure 0007566220000001 
Figure 0007566220000002 
Figure 0007566220000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a control device, a control system, and a method for detecting message delays used in train control. [Background technology]
[0002] Conventionally, there is a system in which a plurality of devices exchange messages with each other to control trains and the like. When a delay occurs in sending and receiving messages when a plurality of devices exchange messages, one device may fail to control the train by using a delayed message sent from another device. In response to such a problem, Patent Document 1 discloses a technology in which, in a system in which one master communication device and a plurality of slave communication devices send and receive data, the plurality of slave communication devices communicate with the master communication device in different communication cycles. In the system described in Patent Document 1, the plurality of slave communication devices communicate with the master communication device in different communication cycles, thereby avoiding the occurrence of congestion and suppressing the occurrence of delays.
[0003] In some systems in which multiple devices exchange messages with each other to control trains and the like, communication between the devices is relayed by a communication device such as a hub along the way. In such systems, if a failure occurs in a communication device along the way, a delay may occur in sending and receiving messages between the devices. As a method for detecting delays caused by communication devices between devices, there is a method in which each device adds time information to the message it sends, and uses the time information included in the message, the time information when the message was received by the device itself, etc.
[0004] Specifically, device A assigns the time information of the message transmission time to the message to be sent from itself for each message. Device A also assigns the time information of the message transmission time sent from device B, which is included in the message acquired from device B, to the message to be sent from itself as ACKNOWLEDGE information. Device B acquires multiple messages from device A, and if the time difference between the previous message transmission time and the current message transmission time is appropriate for the message reception time interval measured by its own clock, it determines that the message is not delayed. However, if multiple messages from device A have the same delay time, device B cannot detect the delay. Therefore, device B compares the ACKNOWLEDGE information included in the message from device A with the current time measured by its own device, and if the time difference is sufficiently small, it determines that the message received from device A is sufficiently new and that the message is not delayed. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] International Publication No. 2020 / 095413 Summary of the Invention [Problem to be solved by the invention]
[0006] In order to ensure speedy delivery of control messages, there is a limit to the length of the area that can be used for time information, etc. For example, if the measurement time expires in 24 hours, the clock will start over from 0 24 hours later. With such a limit, if a message sent from device A remains in a communication device such as a hub between devices for exactly 24 hours before being output to device B, device B will not be able to detect that the received message was sent from device A 24 hours earlier. In other words, there was a problem in that device B could not detect that the received message was delayed.
[0007] The above problems can be solved by increasing the amount of information in the time information added to the message, i.e., the number of bits, and expressing it in the Gregorian calendar. However, if the number of bits for time information is increased in messages sent and received between devices, the communication time and communication costs will increase. Furthermore, in existing systems that control trains, etc., it is considered that the expiration time of the time information handled is fixed, so it is not easy to change the message configuration.
[0008] The present disclosure has been made in consideration of the above, and has an object to provide a control device that can detect a delay in a received message without increasing the amount of information in the message. [Means for solving the problem]
[0009] In order to solve the above-mentioned problems and achieve the object, the present disclosure provides a control device that is a second control device in a control system in which a first control device and a second control device transmit and receive messages via a communication device. The control device is characterized by including a communication unit that receives a first message that is a message transmitted from the first control device via the communication device and transmits a second message that is a message to the first control device via the communication device, a delay detection unit that detects a delay of the first message using first time information at which the first message is transmitted according to a first expiration time of the first control device that is added to the first message and second time information at which the first message is received or the second message is transmitted according to a second expiration time of the control device that is different from the first expiration time, and a time measurement unit that measures time using the second expiration time. Effect of the Invention
[0010] The control device according to the present disclosure advantageously makes it possible to detect a delay in a received message without increasing the amount of information in the message. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 is a diagram showing a configuration example of a control system according to a first embodiment. [Diagram 2] FIG. 1 is a diagram showing a configuration example of a control device according to a first embodiment; [Diagram 3] FIG. 1 is a first sequence diagram showing a state in which a control device transmits and receives a message via a communication device using time information of the same expiration time as a comparative example. [Figure 4] FIG. 2 is a second sequence diagram showing a state in which a control device transmits and receives a message via a communication device using time information of the same expiration time as a comparative example. [Diagram 5] FIG. 1 is a sequence diagram showing how the control device according to the first embodiment transmits and receives messages via a communication device using time information with different expiration times. [Figure 6] 1 is a flowchart showing an operation of the control device according to the first embodiment for detecting a delay in a received message. [Figure 7] FIG. 1 is a diagram showing an example of the configuration of a processing circuit that realizes a control device according to a first embodiment when the processing circuit is configured with a processor and a memory; [Figure 8] FIG. 1 is a diagram showing an example of a processing circuit for implementing the control device according to the first embodiment when the processing circuit is configured with dedicated hardware; [Figure 9] 11 is a flowchart showing an operation of the control device according to the second embodiment to detect a change in the expiration time of the control device that is the source of a message. [Figure 10] FIG. 11 is a diagram showing an example of a maturity time management table held by a delay detection unit of a control device according to a second embodiment; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A control device, a control system, and a message delay detection method according to embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0013] Embodiment 1 FIG. 1 is a diagram showing a configuration example of a control system 100 according to the first embodiment. The control system 100 is a system in which a train control device 11 and ground control devices 21a and 21c exchange messages, i.e., communicate with each other, to control the running of a train 10. The control system 100 includes a train 10, ground control devices 21a and 21c, layer 2 switches 24a, 24c, and 25a to 25c, ground radio devices 22a to 22c, and antennas 23a to 23c. The ground radio devices 22a to 22c and the antennas 23a to 23c are installed along a track 40 on which the train 10 runs. A communication area 30a is formed by the antenna 23a connected to the ground radio device 22a, a communication area 30b is formed by the antenna 23b connected to the ground radio device 22b, and a communication area 30c is formed by the antenna 23c connected to the ground radio device 22c. In the example of FIG. 1, the train 10 travels so as to pass through the communication area 30a, the communication area 30b, and the communication area 30c in that order.
[0014] The train 10 includes a train control device 11, an on-board radio device 12, and an antenna 13. Although the antenna 13 is shown outside the train 10 in FIG. 1, the antenna 13 is also included in the train 10. The train control device 11 transmits a generated message to the ground control devices 21a and 21c via the on-board radio device 12 and the antenna 13. The ground control devices 21a and 21c receive the message transmitted from the train control device 11 via the antennas 23a to 23c, the ground radio devices 22a to 22c, the layer 2 switches 24a, 24c, and 25a to 25c, and the like. In addition, the ground control devices 21a and 21c transmit the generated message to the train control device 11 via the layer 2 switches 24a, 24c, and 25a to 25c, the ground radio devices 22a to 22c, the antennas 23a to 23c, and the like. The train control device 11 receives messages transmitted from the ground control devices 21 a and 21 c via the antenna 13 and the on-board radio device 12 .
[0015] In this embodiment, the train control device 11 detects a delay in a message received from the ground control devices 21a, 21c via the layer 2 switches 24a, 24c, 25a-25c, the ground radio devices 22a-22c, the antennas 23a-23c, the antenna 13, the on-board radio device 12, etc. Similarly, the ground control devices 21a, 21c detect a delay in a message received from the train control device 11 via the on-board radio device 12, the antenna 13, the antennas 23a-23c, the ground radio devices 22a-22c, the layer 2 switches 24a, 24c, 25a-25c, etc. The train control device 11 and the ground control devices 21a, 21c measure the time information to be added to a message to be transmitted and the time information when a message is received, using different expiration times.
[0016] The train control device 11 and the ground control devices 21a, 21c have different configurations for controlling the running of the train 10, but are similar in configuration for detecting message delay. In this embodiment, since only detection of message delay will be described, when the train control device 11 and the ground control devices 21a, 21c are not distinguished, they are referred to as a control device 50, and the configuration and operation of the control device 50 will be described. FIG. 2 is a diagram showing an example of the configuration of the control device 50 according to the first embodiment. The control device 50 includes a communication unit 51, a delay detection unit 52, and a time measurement unit 53. The control device 50 is a second control device in a control system 100 in which a first control device and a second control device transmit and receive messages via a communication device. The first control device and the second control device are the control device 50, and the communication devices are the on-board radio device 12, the ground radio devices 22a to 22c, the layer 2 switches 24a, 24c, 25a to 25c, etc. The communication device may be composed of a plurality of communication devices. For example, when the first control device is the train control device 11, the second control device is the ground control device 21a or the ground control device 21c, and when the first control device is the ground control device 21a or the ground control device 21c, the second control device is the train control device 11.
[0017] The communication unit 51 receives a first message, which is a message transmitted from the first control device, via the communication device, and transmits a second message, which is a message, to the first control device via the communication device.
[0018] The delay detection unit 52 detects a delay of the first message using first time information when the first message is transmitted based on a first expiration time of the first control device that is attached to the first message, and second time information when the first message is received or the second message is transmitted based on a second expiration time of the control device 50 that is different from the first expiration time.
[0019] The time measurement unit 53 measures the time at the second expiration time.
[0020] In this embodiment, the first expiration time of the first time information at which the first message is transmitted and which is assigned to the first message transmitted by the first control device is different from the second expiration time of the second time information at which the second control device receives the first message or transmits the second message.
[0021] Next, an operation of two control devices 50 transmitting and receiving a message via a communication device will be described. In order to explain the necessity for multiple control devices 50 to measure time with different expiry times, a comparative example will be described in which a message is transmitted and received when multiple control devices 50 measure time with the same expiry time.
[0022] FIG. 3 is a first sequence diagram showing a state in which the control devices 50A and 50B transmit and receive messages via the communication device 60 using time information of the same expiration time as a comparative example. In FIG. 3, the control device 50A corresponds to the first control device described above, the control device 50B corresponds to the second control device described above, and the communication device 60 corresponds to the communication device described above. The communication device 60 may be configured by a plurality of devices as in the example of FIG. 1, since it is sufficient that it is between the control device 50A, which is the first control device, and the control device 50B, which is the second control device. In FIG. 3, when the control device 50A is the train control device 11, the control device 50B is the ground control device 21a or the ground control device 21c, and when the control device 50A is the ground control device 21a or the ground control device 21c, the control device 50B is the train control device 11.
[0023] First, the communication unit 51 of the control device 50A adds the first time information TA_1, which is information on the transmission time, to the first message, which is the message to be transmitted, and transmits the first message (step S11). The transmission time may be the time when the first message was generated. The same applies to the following. The communication device 60 relays the first message transmitted from the control device 50A with a delay time of delay δ1 and transmits it to the control device 50B (step S12). The time measurement unit 53 of the control device 50B measures the time when the first message transmitted from the control device 50A and relayed by the communication device 60 is received as the second time information TB_1.
[0024] The communication unit 51 of the control device 50B adds second time information TB_2, which is information on the transmission time, to the second message, which is the message to be transmitted, and transmits the second message (step S13). The transmission time may be the time when the second message was generated. The same applies to the following. The communication device 60 relays the second message transmitted from the control device 50B with a delay time of delay δ2 and transmits it to the control device 50A (step S14). The communication unit 51 of the control device 50A receives the second message transmitted from the control device 50B and relayed by the communication device 60.
[0025] The communication unit 51 of the control device 50A adds the first time information TA_2, which is information on the transmission time, and the second time information TB_2, which is added to the second message as ACKNOWLEDGE information, to the first message, which is the message to be transmitted, and transmits the first message (step S15). In FIG. 3, the ACKNOWLEDGE information is written as ACK information. The same applies hereinafter. The communication device 60 relays the first message transmitted from the control device 50A with a delay time of delay δ3 and transmits it to the control device 50B (step S16). The time measurement unit 53 of the control device 50B measures the time when the first message transmitted from the control device 50A and relayed by the communication device 60 is received as the second time information TB_3.
[0026] The delay detection unit 52 of the control device 50B uses the first time information TA_1, TA_2 and the second time information TB_1, TB_2, TB_3 to confirm whether the time information of the control device 50A satisfies confirmation equation (1) and the ACKNOWLEDGE information satisfies confirmation equation (2).
[0027] |(TB_3-TB_1)-(TA_2-TA_1)|=δ3-δ1<ε1 …(1)
[0028] TB_3-TB_2<ε2 …(2)
[0029] In formula (1), ε1 is a defined first delay threshold, and in formula (2), ε2 is a defined second delay threshold. When formula (1) and formula (2) are satisfied, delay detection unit 52 of control device 50B determines that no delay has occurred in the first message transmitted from control device 50A. When at least one of formula (1) and formula (2) is not satisfied, delay detection unit 52 of control device 50B determines that a delay has occurred in the first message transmitted from control device 50A.
[0030] Next, in Fig. 3, a case will be described in which the first expiration time of the first time information measured by the time measurement unit 53 of the control device 50A and the second expiration time of the second time information measured by the time measurement unit 53 of the control device 50B are both 24 hours, and the first message transmitted from the control device 50A is retained, i.e., delayed, for 24 hours longer than the delay time of the normal delay δ3 in the communication device 60 before being transmitted to the control device 50B. Fig. 4 is a second sequence diagram showing, as a comparative example, how the control devices 50A and 50B transmit and receive messages via the communication device 60 using time information with the same expiration time.
[0031] First, the communication unit 51 of the control device 50A receives a second message similar to step S14 shown in Fig. 3 approximately 24 hours before the operation of step S22 and subsequent steps described below, and transmits the first message (step S21) by adding the first time information TA_2, which is information on the transmission time, and the second time information TB_2, which is added to the second message as ACKNOWLEDGE information, to the first message, which is the message to be transmitted, similar to step S15 shown in Fig. 3. However, the first message transmitted from the control device 50A in step S21 will remain in the communication device 60 for 24 hours longer than usual.
[0032] The communication unit 51 of the control device 50A assigns the first time information TA_1, which is information on the transmission time, to the first message, which is the message to be transmitted, and transmits the first message (step S22). The first time information TA_1 assigned to the first message in step S22 is approximately 24 hours after the first time information TA_2 assigned to the second message in step S21, and the first expiration time expires once between the first time information TA_2 in step S21 and the first time information TA_1 in step S22.
[0033] The communication device 60 relays the first message transmitted from the control device 50A with a delay time of delay δ1 and transmits it to the control device 50B (step S23). The time measurement unit 53 of the control device 50B measures the time when the first message transmitted from the control device 50A and relayed by the communication device 60 is received as second time information TB_1. The second time information TB_1, which is the reception time of the first message in step S23, is approximately 24 hours after the second time information TB_2 added to the second message in step S21, and it is assumed that the second expiration time expires once between the second time information TB_2 in step S21 and the second time information TB_1 in step S23.
[0034] The communication unit 51 of the control device 50B adds second time information TB_2, which is information on the transmission time, to the second message, which is the message to be transmitted, and transmits the second message (step S24). The communication device 60 relays the second message transmitted from the control device 50B with a delay time of delay δ2 and transmits it to the control device 50A (step S25). The communication unit 51 of the control device 50A receives the second message transmitted from the control device 50B and relayed by the communication device 60.
[0035] Here, the communication device 60 relays the first message received from the control device 50A in step S21 with a delay time of 24 hours plus delay δ3, and transmits it to the control device 50B (step S26). The time measurement unit 53 of the control device 50B measures the time at which the first message transmitted from the control device 50A and relayed by the communication device 60 is received, as second time information TB_3.
[0036] The delay detection unit 52 of the control device 50B uses the first time information TA_1, TA_2 and the second time information TB_1, TB_2, TB_3 to check whether the time information of the control device 50A satisfies the confirmation formula (1) and the ACKNOWLEDGE information satisfies the confirmation formula (2) as in the example of Fig. 3. In this case, the formula (1) is actually as follows. Note that the formula (2) is the same as described above, so description is omitted.
[0037] |(TB_3-TB_1)-(TA_2-TA_1)|=MOD(24+δ3,24)-δ1=δ3-δ1<ε1 …(1)
[0038] In this way, when a delay of the same time as the first maturity time of the control device 50A and the second maturity time of the control device 50B occurs in the communication device 60, the delay detection unit 52 of the control device 50B cannot detect that a delay has occurred in the communication device 60. That is, the delay detection unit 52 of the control device 50B recognizes the first time information TA_2 attached to the first message received in step S26 and the second time information TB_2 of the ACKNOWLEDGE information as the most recent time information, although they are actually from approximately 24 hours ago.
[0039] Therefore, in this embodiment, the first maturity time of the control device 50A and the second maturity time of the control device 50B are set to different maturity times. FIG. 5 is a sequence diagram showing a state in which the control devices 50A and 50B according to the first embodiment transmit and receive messages via the communication device 60 using time information of different maturity times. In FIG. 5, the first maturity time of the control device 50A is set to 24 hours, and the second maturity time of the control device 50B is set to 23 hours. Note that the residence time of the first message in the communication device 60 is set to be 24 hours longer than the delay time of the normal delay δ3, as in the case of the example of FIG. 4.
[0040] First, the communication unit 51 of the control device 50A receives a second message similar to step S14 shown in Fig. 3 approximately 24 hours before the operation of step S32 and subsequent steps described below, and transmits the first message (step S31) by adding the first time information TA_2, which is information on the transmission time, and the second time information TB_2, which is added to the second message as ACKNOWLEDGE information, to the first message, which is the message to be transmitted, similar to step S15 shown in Fig. 3. However, the first message transmitted from the control device 50A in step S31 will remain in the communication device 60 for 24 hours longer than usual.
[0041] The communication unit 51 of the control device 50A assigns the first time information TA_1, which is information on the transmission time, to the first message, which is the message to be transmitted, and transmits the first message (step S32). The first time information TA_1 assigned to the first message in step S32 is approximately 24 hours after the first time information TA_2 assigned to the second message in step S31, and the first expiration time expires once between the first time information TA_2 in step S31 and the first time information TA_1 in step S32.
[0042] The communication device 60 relays the first message transmitted from the control device 50A with a delay time of delay δ1 and transmits it to the control device 50B (step S33). The time measurement unit 53 of the control device 50B measures the time when the first message transmitted from the control device 50A and relayed by the communication device 60 is received as second time information TB_1+1. The second time information TB_1+1, which is the reception time of the first message in step S33, is approximately 24 hours after the second time information TB_2 added to the second message in step S31, and it is assumed that the second expiration time expires once between the second time information TB_2 in step S31 and the second time information TB_1+1 in step S33.
[0043] Here, in the example of FIG. 5, the first maturity time of the control device 50A is 24 hours, while the second maturity time of the control device 50B is 23 hours, which is one hour shorter than the first maturity time of the control device 50A. That is, the first maturity time at the time of the first time information TA_2 of the control device 50A and the second maturity time at the time of the second time information TB_2 of the control device 50B shown in step S31 are both maturity, but the second maturity time of the control device 50B is one hour earlier. Therefore, at the next first maturity time of the control device 50A and the second maturity time of the control device 50B, that is, at step S32 and thereafter, compared to the previous first maturity time of the control device 50A and the second maturity time of the control device 50B, the second time information based on the second maturity time of the control device 50B appears to be ahead of the first time information based on the first maturity time of the control device 50A. In the example of Figure 5, the situation in which the second time information based on the second expiration time of the control device 50B appears to be ahead of the first time information based on the first expiration time of the control device 50A is represented as the second time information "TB_1+1" in step S33.
[0044] The communication unit 51 of the control device 50B adds second time information TB_2+1, which is information on the transmission time, to the second message, which is the message to be transmitted, and transmits the second message (step S34). The communication device 60 relays the second message transmitted from the control device 50B with a delay time of delay δ2 and transmits it to the control device 50A (step S35). The communication unit 51 of the control device 50A receives the second message transmitted from the control device 50B and relayed by the communication device 60.
[0045] Here, the communication device 60 relays the first message received from the control device 50A in step S31 with a delay time of 24 hours plus delay δ3, and transmits it to the control device 50B (step S36). The time measurement unit 53 of the control device 50B measures the time at which the first message transmitted from the control device 50A and relayed by the communication device 60 was received, as second time information TB_3+1.
[0046] The delay detection unit 52 of the control device 50B uses the first time information TA_1, TA_2 and the second time information TB_1+1, TB_2, TB_3+1 to check whether the time information of the control device 50A satisfies the confirmation formula (1) and the ACKNOWLEDGE information satisfies the confirmation formula (2). At this time, the formulas (1) and (2) are as follows:
[0047] |((TB_3+1)-(TB_1+1))-(TA_2-TA_1)|=MOD(24+δ3,24)-δ1=δ3-δ1<ε1 …(1)
[0048] (TB_3+1)-TB_2>ε2 …(2)
[0049] In this way, when a delay of the same time as the first maturity time of the control device 50A occurs in the communication device 60, the delay detection unit 52 of the control device 50B cannot detect the occurrence of a delay in the communication device 60 from equation (1), as in the example of Fig. 4. However, the delay detection unit 52 of the control device 50B can detect the occurrence of a delay in the communication device 60 by using equation (2), unlike the example of Fig. 4.
[0050] Although the case where a delay of the same time as the first maturity time of the control device 50A occurs in the communication device 60 has been described, the present invention is not limited to this. Although detailed explanation using mathematical expressions is omitted, the delay detection unit 52 of the control device 50B can detect the occurrence of a delay in the communication device 60 by using the formula (1) and the formula (2) even when a delay of the same time as the second maturity time of the control device 50B occurs in the communication device 60 and when a delay of a time different from the first maturity time of the control device 50A and different from the second maturity time of the control device 50B occurs in the communication device 60. For example, when a delay of the same time as the second maturity time of the control device 50B occurs in the communication device 60, the delay detection unit 52 of the control device 50B cannot detect the occurrence of a delay in the communication device 60 from the formula (2). However, the delay detection unit 52 of the control device 50B can detect the occurrence of a delay in the communication device 60 by using the formula (1).
[0051] Furthermore, in the control system 100, the control device 50A can detect a delay in a message transmitted from and received by the control device 50B by performing an operation similar to that of the control device 50B described above.
[0052] FIG. 6 is a flowchart showing an operation of the control device 50 according to the first embodiment to detect a delay in a received message. In the second control device, the communication unit 51 acquires the first time information and the second time information from the received first message (step S101). Specifically, when the communication unit 51 receives the first message transmitted from the first control device, the communication unit 51 acquires the first time information, which is the transmission time of the first message, which is attached to the first message. In addition, when the second time information, which is the information on the transmission time of the transmitted second message, is attached to the received first message as ACKNOWLEDGE information, the communication unit 51 acquires the second time information, which is the ACKNOWLEDGE information attached to the first message. The time measurement unit 53 measures the time when the first message is received, and acquires the reception time of the first message as the second time information (step S102).
[0053] The delay detection unit 52 calculates a first difference based on the above-mentioned formula (1) using the second time information when the first message is received multiple times and the first time information attached to each first message (step S103). The delay detection unit 52 calculates a second difference based on the above-mentioned formula (2) using the second time information when the first message to which the ACKNOWLEDGE information is attached is received and the second time information which is the transmission time of the second message indicated by the ACKNOWLEDGE information (step S104). If the absolute value of the first difference is less than the first delay threshold and the second difference is less than the second delay threshold (step S105: Yes), the delay detection unit 52 determines that no delay has occurred in the first message (step S106). If the absolute value of the first difference is greater than or equal to the first delay threshold and the second difference is greater than or equal to the second delay threshold (step S105: No), the delay detection unit 52 determines that a delay has occurred in the first message (step S107).
[0054] In this way, the delay detection unit 52 calculates a first difference between the difference of the second time information, which is the difference between the latest second time information when the first latest message, which is the latest first message, is received and the previous second time information when the first previous message, which is the first message, is received, and the difference of the first time information, which is the difference between the transmission time of the first latest message attached to the first latest message and the transmission time of the first previous message attached to the first previous message. In addition, the delay detection unit 52 calculates a second difference between the latest second time information and the previous second time information, which is the second time information attached to the first latest message and is the transmission time at the control device 50 of the second latest message attached to the second latest message, which is the latest second message received before the first control device transmits the first latest message. If the absolute value of the first difference is less than the specified first delay threshold value and the second difference is less than the specified second delay threshold value, the delay detection unit 52 determines that no delay has occurred in the first message. The delay detection unit 52 determines that a delay has occurred in the first message when at least one of the absolute value of the first difference is equal to or greater than a first delay threshold and the absolute value of the second difference is equal to or greater than a second delay threshold.
[0055] Next, the hardware configuration of the control device 50 will be described. In the control device 50, the communication unit 51 is a communication device that communicates with the communication device 60. The delay detection unit 52 and the time measurement unit 53 are realized by a processing circuit. The processing circuit may be a processor and memory that executes a program stored in a memory, or may be dedicated hardware. The processing circuit is also called a control circuit.
[0056] FIG. 7 is a diagram showing a configuration example of the processing circuit 90 in the case where the processing circuit for realizing the control device 50 according to the first embodiment is configured by a processor 91 and a memory 92. The processing circuit 90 shown in FIG. 7 is a control circuit and includes a processor 91 and a memory 92. When the processing circuit 90 is configured by the processor 91 and the memory 92, each function of the processing circuit 90 is realized by software, firmware, or a combination of software and firmware. The software or firmware is described as a program and stored in the memory 92. In the processing circuit 90, each function is realized by the processor 91 reading and executing the program stored in the memory 92. That is, the processing circuit 90 includes a memory 92 for storing a program that results in the processing of the control device 50 being executed. This program can also be said to be a program for causing the control device 50 to execute each function realized by the processing circuit 90. This program may be provided by a storage medium in which the program is stored, or may be provided by other means such as a communication medium.
[0057] The above program can also be said to be a program that causes the control device 50 to execute the following steps: a communication step in which the communication unit 51 receives a first message, which is a message sent from the first control device, via the communication device 60, and transmits a second message, which is a message, to the first control device via the communication device 60; a delay detection step in which the delay detection unit 52 detects a delay in the first message using first time information at which the first message was sent based on the first expiration time of the first control device that is attached to the first message, and second time information at which the first message was received or the second message was sent based on a second expiration time of the control device 50 that is different from the first expiration time; and a time measurement step in which the time measurement unit 53 measures time using the second expiration time.
[0058] Here, the processor 91 is, for example, a CPU (Central Processing Unit), a processing device, an arithmetic device, a microprocessor, a microcomputer, or a DSP (Digital Signal Processor), etc. Also, the memory 92 is, for example, a non-volatile or volatile semiconductor memory such as a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, an EPROM (Erasable Programmable ROM), an EEPROM (Electrically EPROM), a magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, or a DVD (Digital Versatile Disc), etc.
[0059] FIG. 8 is a diagram showing an example of a processing circuit 93 in the case where the processing circuit for realizing the control device 50 according to the first embodiment is configured with dedicated hardware. The processing circuit 93 shown in FIG. 8 corresponds to, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a combination of these. The processing circuit may be partially realized with dedicated hardware and partially realized with software or firmware. In this way, the processing circuit can realize each of the above-mentioned functions by dedicated hardware, software, firmware, or a combination of these.
[0060] As described above, according to this embodiment, in the control device 50, the delay detection unit 52 detects a delay in the first message by using first time information when the first message is transmitted by the first control device with the first expiration time attached to the first message, and second time information when the first message is received or the second message is transmitted by the second control device, which is a control device 50 with a second expiration time different from the first expiration time. In the control system 100, each control device 50 measures time with a different expiration time. This allows the control device 50 to detect a delay in the received message without increasing the amount of information in the message.
[0061] Embodiment 2 In the first embodiment, the control device 50 has been described on the assumption that the train control device 11 mounted on the train 10 and the ground control device 21a or ground control device 21c installed on the ground exchange messages. From the viewpoint of the ground control device 21a or ground control device 21c installed on the ground, the train control device 11 mounted on the train 10, which is the communication partner, moves with the running of the train 10, so the communication partner changes frequently. On the other hand, the ground control device 21a and the ground control device 21c also exchange messages, but since the ground control device 21a and the ground control device 21c are fixed and do not move, the message exchange is continued. In the second embodiment, a case will be described in which the control device 50 detects whether the first expiration time of the first control device, which is the communication partner, is appropriate when the first expiration period of the first control device is known.
[0062] In the second embodiment, the configuration of the control system 100 is the same as that of the control system 100 of the first embodiment shown in FIG. 1. The configuration of the control device 50 is the same as that of the control device 50 of the first embodiment shown in FIG. 2. Here, the ground control device 21a is described as the first control device, and the ground control device 21c is described as the second control device. In this embodiment, when the first expiration time of the first control device is known, the delay detection unit 52 of the second control device determines whether the first expiration time has changed based on the first time information added to the first message. When the first expiration time has changed, the first expiration time may have been changed from originally 24 hours to 25 hours, or the first expiration time may have been originally 24 hours and the way of expressing the time indicated by the first time information may not have changed, but the unit time, for example, one hour may advance faster or slower than before.
[0063] The delay detection unit 52 of the second control device may receive and store information on the first expiration time of the first control device from a person in charge of managing the control system 100 when the second control device and the first control device are installed, or may calculate the first expiration time from the transmission interval of the first message based on the first time information added to the first message previously received from the first control device. That is, the delay detection unit 52 of the second control device may store the first expiration time of the first control device in advance, or may calculate it after starting transmission and reception of messages by receiving multiple first messages from the first control device.
[0064] FIG. 9 is a flowchart showing an operation of the control device 50 according to the second embodiment to detect a change in the expiration time of the control device 50 that is the transmission source of a message. In the second control device, the delay detection unit 52 receives the first message transmitted from the first control device, and calculates the first expiration time of the first time information of the first control device using the first time information added to the first message (step S201). If the difference between the calculated first expiration time and the known first expiration time is within a specified range (step S202: Yes), the delay detection unit 52 determines that the calculated first expiration time of the first time information of the first control device has not changed (step S203). If the difference between the calculated first expiration time and the known first expiration time is outside the specified range (step S202: No), the delay detection unit 52 determines that the calculated first expiration time of the first time information of the first control device has changed (step S204). The delay detection unit 52 of the second control device periodically performs the operation of the flowchart shown in FIG.
[0065] As described above, in this embodiment, for a first control device that continuously transmits and receives messages, when the first expiration time is known, the delay detection unit 52 of the second control device can determine whether or not the first expiration time has changed based on the first time information added to the first message. As a result, when the delay detection unit 52 of the second control device determines that the first expiration time has changed in the first control device, it can notify, for example, a person in charge of managing the control system 100, thereby making the state of the first control device known.
[0066] The delay detection unit 52 of the second control device may hold an expiration time management table in which the first expiration time of the first control device is registered. FIG. 10 is a diagram showing an example of an expiration time management table held by the delay detection unit 52 of the control device 50 according to the second embodiment. In FIG. 10, the control device number is for identifying the first control device, and is, for example, a number given according to the order in which the delay detection unit 52 of the second control device registers information on the first control device and the first expiration time in the expiration time management table. Also, in FIG. 10, the expiration time indicates the first expiration time for each first control device. In the example of FIG. 10, the delay detection unit 52 of the second control device manages the first expiration times of three first control devices, but the number of first expiration times of the first control devices that it manages is not limited to three. The delay detection unit 52 of the second control device holds an expiration time management table as shown in FIG. 10, which makes it easier to manage the first expiration time of the first control device.
[0067] The delay detection unit 52 of the second control device may obtain information to be registered in the expiration time management table by at least one of information on the first expiration time included in a message transmitted from the first control device when the first control device is started and information on the first expiration time included in a message transmitted periodically from the first control device. This allows the delay detection unit 52 of the second control device to obtain information to be registered in the expiration time management table without the person in charge of managing the control system 100 setting the expiration time management table in advance. In addition, even if a new first control device is added during the operation of the control system 100, the delay detection unit 52 of the second control device can obtain information on the first expiration time from the added first control device, and therefore can flexibly respond to the situation.
[0068] Here, in a situation where the first control device periodically transmits a message including information on the first expiration time as described above, when the second control device is newly started, the delay detection unit 52 of the second control device may check the information on the first expiration time included in the message acquired from the first control device and set a second expiration time different from the first expiration time. This allows the delay detection unit 52 of the second control device to set a second expiration time different from the first expiration time of the first control device without adjustment by a person in charge of managing the control system 100, etc. That is, in the control system 100, the multiple control devices 50 can each set a different expiration time.
[0069] In the control system 100, a newly activated control device 50 may output a message of an acquisition request for the expiration time to the control device 50 with which it is to communicate when it is started, and the control device 50 that receives the message of the acquisition request for the expiration time may return information on the expiration time of its own device, thereby collecting information on the expiration time of the control device 50 with which it is to communicate. That is, when the delay detection unit 52 of the second control device acquires a message of an acquisition request for the second expiration time from the first control device to be newly started via the communication unit 51, the delay detection unit 52 of the second control device controls to transmit a message including information on the second expiration time from the communication unit 51 to the first control device to be newly started. Alternatively, when the second control device is newly started, the delay detection unit 52 of the second control device controls to transmit a message of an acquisition request for the first expiration time to the first control device via the communication unit 51, and acquires a message including information on the first expiration time from the first control device via the communication unit 51. As a result, the control system 100 does not need to include information on the expiration time in a message periodically transmitted by the control device 50, and therefore can reduce the communication load. Furthermore, since the control device 50 does not need to include information about the expiration time in messages that are transmitted periodically, it does not need to change the format of the messages that are transmitted periodically.
[0070] Although the case has been described where the delay detection unit 52 of the second control device holds the expiration time management table shown in Fig. 10, the present invention is not limited to this. By including expiration time information in messages periodically transmitted by each control device 50 of the control system 100, the delay detection unit 52 of the second control device may detect a delay in the first message based on the information on the first expiration time included in the message periodically transmitted from the first control device. This makes it unnecessary for the delay detection unit 52 of the second control device to use an expiration time management table as shown in Fig. 10, which facilitates management of the control devices 50 in the control system 100.
[0071] The configurations shown in the above embodiments are merely examples, and may be combined with other known technologies, or the embodiments may be combined with each other. Also, parts of the configurations may be omitted or modified without departing from the spirit of the invention. [Explanation of symbols]
[0072] 10 train, 11 train control device, 12 on-board radio device, 13, 23a to 23c antennas, 21a, 21c ground control device, 22a to 22c ground radio device, 24a, 24c, 25a to 25c layer 2 switch, 30a to 30c communication area, 40 track, 50, 50A, 50B control device, 51 communication unit, 52 delay detection unit, 53 time measurement unit, 60 communication device, 100 control system.
Claims
1. A control device which is a second control device in a control system in which a first control device and a second control device transmit and receive messages via a communication device, a communication unit that receives a first message, which is the message transmitted from the first control device, via the communication device, and transmits a second message, which is the message, to the first control device via the communication device; a delay detection unit that detects a delay of the first message by using first time information at which the first message is transmitted according to a first expiration time of the first control device that is added to the first message, and second time information at which the first message is received or the second message is transmitted according to a second expiration time of the control device that is different from the first expiration time; a time measurement unit that measures time at the second expiration time; A control device comprising:
2. The delay detection unit is a difference in second time information between the latest second time information when a first latest message, which is the latest first message, is received and the previous second time information when a first previous message, which is the previous first message, is received; and a difference in first time information that is a difference between a sending time of the first latest message that is added to the first latest message and a sending time of the first previous message that is added to the first previous message; and is less than a first delay threshold, and the latest second time information; and second time information added to the first latest message, the second latest message being the latest second message received before the first control device transmits the first latest message, and previous second time information added to a second latest message being the transmission time of the second latest message by the control device; if the second difference is less than a second delay threshold, determining that no delay has occurred in the first message; determining that a delay has occurred in the first message when the absolute value of the first difference is equal to or greater than the first delay threshold and when the absolute value of the second difference is equal to or greater than the second delay threshold; The control device according to claim 1 .
3. the delay detection unit, when the first expiration time of the first control device is known, determines whether or not the first expiration time has changed based on first time information added to the first message; The control device according to claim 1 .
4. The delay detection unit holds an expiration time management table in which the first expiration time of the first control device is registered. The control device according to claim 1 .
5. the delay detection unit acquires information to be registered in the expiration time management table based on at least one of information on the first expiration time included in a message transmitted from the first control device when the first control device is started and information on the first expiration time included in a message transmitted periodically from the first control device; 5. The control device according to claim 4.
6. When the first control device is newly started in a situation where the first control device periodically transmits a message including information on the first expiration time, the delay detection unit checks the information on the first expiration time included in the message acquired from the first control device and sets the second expiration time different from the first expiration time.
6. The control device according to claim 5.
7. When the delay detection unit acquires a message of a request for acquiring the second expiration time from the first control device to be newly started via the communication unit, the delay detection unit controls to transmit a message including information of the second expiration time from the communication unit to the first control device to be newly started.
6. The control device according to claim 5.
8. When the control device is newly started, the delay detection unit controls to transmit a message of an acquisition request for the first expiration time to the first control device via the communication unit, and acquires a message including information on the first expiration time from the first control device via the communication unit.
6. The control device according to claim 5.
9. The delay detection unit detects a delay of the first message based on information of the first expiration time included in a message periodically transmitted from the first control device. The control device according to claim 1 .
10. A first control device; A second control device which is a control device according to any one of claims 1 to 9; Equipped with a first expiration time of first time information at which the first control device transmits a first message and which is added to the first message transmitted by the first control device is different from a second expiration time of second time information at which the second control device receives the first message or transmits a second message; A control system comprising:
11. A method for detecting a message delay in a control device, the control device being a second control device in a control system in which a first control device and a second control device transmit and receive messages via a communication device, comprising: A communication step in which a communication unit receives a first message, which is the message transmitted from the first control device, via the communication device, and transmits a second message, which is the message, to the first control device via the communication device; a delay detection step in which a delay detection unit detects a delay of the first message by using first time information at which the first message is transmitted according to a first expiration time of the first control device that is added to the first message, and second time information at which the first message is received or the second message is transmitted according to a second expiration time of the control device that is different from the first expiration time; a time measurement step in which a time measurement unit measures time at the second expiration time; A method for detecting message delays comprising:
12. In the delay detection step, the delay detection unit a difference in second time information between the latest second time information when a first latest message, which is the latest first message, is received and the previous second time information when a first previous message, which is the previous first message, is received; and a difference in first time information that is a difference between a sending time of the first latest message that is added to the first latest message and a sending time of the first previous message that is added to the first previous message; and is less than a first delay threshold, and the latest second time information; and second time information added to the first latest message, the second latest message being the latest second message received before the first control device transmits the first latest message, and previous second time information added to a second latest message being the transmission time of the second latest message by the control device; if the second difference is less than a second delay threshold, determining that no delay has occurred in the first message; determining that a delay has occurred in the first message when the absolute value of the first difference is equal to or greater than the first delay threshold and when the absolute value of the second difference is equal to or greater than the second delay threshold; The method of claim 11, wherein the message delay detection method is a method for detecting a message delay.
13. In the delay detection step, when the first expiration time of the first control device is known, the delay detection unit determines whether or not the first expiration time has changed based on first time information added to the first message. The method of claim 11, wherein the message delay detection method is a method for detecting a message delay.
14. In the delay detection step, the delay detection unit holds an expiration time management table in which the first expiration time of the first control device is registered. The method of claim 11, wherein the message delay detection method is a method for detecting a message delay.
15. In the delay detection step, the delay detection unit acquires information to be registered in the expiration time management table based on at least one of information on the first expiration time included in a message transmitted from the first control device when the first control device is started and information on the first expiration time included in a message transmitted periodically from the first control device.
15. The method of claim 14, wherein the message delay detection method is a method for detecting a message delay.
16. In the delay detection step, when the first control device is newly started in a situation where the first control device periodically transmits a message including information on the first expiration time, the delay detection unit checks the information on the first expiration time included in the message acquired from the first control device, and sets the second expiration time different from the first expiration time.
16. The method of claim 15, wherein the message delay detection method is a method for detecting a message delay.
17. In the delay detection step, when the delay detection unit receives a message of a request for acquiring the second expiration time from the first control device to be newly started via the communication unit, the delay detection unit controls to transmit a message including information of the second expiration time from the communication unit to the first control device to be newly started.
17. The method for detecting message delay according to claim 15 or 16.
18. In the delay detection step, when the control device is newly started, the delay detection unit controls to transmit a message of an acquisition request for the first expiration time to the first control device via the communication unit, and acquires a message including information of the first expiration time from the first control device via the communication unit.
17. The method for detecting message delay according to claim 15 or 16.
19. In the delay detection step, the delay detection unit detects a delay of the first message based on information of the first expiration time included in a message periodically transmitted from the first control device.
14. The method of claim 11, wherein the method comprises the steps of:
Citation Information
Patent Citations
Efficient Disposal Mechanism during Small Cell Deployment
JP2016527812A
Communication system, communication device, method, and program
WO2020095413A1
