In-vehicle device and time synchronization method
Patent Information
- Application Number
- JP2021124058
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-07-29
- Publication Date
- 2025-03-05
- Estimated Expiration
- 2041-07-29
AI Technical Summary
【0012】 本開示によれば、車載装置間における時刻同期をより正確に行うことができる。
Smart Images

Figure 0007639600000001 
Figure 0007639600000002 
Figure 0007639600000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an in-vehicle device and a time synchronization method. [Background technology]
[0002] Conventionally, a technology related to time synchronization between multiple devices has been developed. For example, Japanese Patent Application Laid-Open No. 2016-5214 (Patent Document 1) discloses the following network system. That is, the network system configures a time synchronization network whose network configuration does not change dynamically, and includes multiple nodes including a node that functions as a master, and each of the multiple nodes includes a storage means for storing synchronization information including master information indicating the master and topology information indicating the logical topology of the time synchronization network, and a control means for controlling the node itself, and the control means forms the time synchronization network by starting the node itself using the synchronization information stored in the storage means as the synchronization information of the node itself in the time synchronization network.
[0003] In addition, a technology for performing time synchronization processing has been developed in consideration of the fact that the time required for MAC processing performed by a specific device when synchronizing time information with another device varies depending on the state of the system. For example, Japanese Patent Laid-Open Publication No. 2016-219870 (Patent Document 2) discloses the following time synchronization control device. That is, the time synchronization control device includes a storage unit that stores current time information output from a time output unit as second time information when an input signal including first time information received from an external device is received, and an update unit that updates the current time information output by the time output unit based on third time information, the first time information, and the second time information stored in the storage unit, which is current time information output from the time output unit when a signal processing unit that performs predetermined signal processing on the input signal ends the signal processing on the input signal. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2016-5214 A [Patent Document 2] JP 2016-219870 A Summary of the Invention [Problem to be solved by the invention]
[0005] Each in-vehicle device in the in-vehicle network periodically calculates the average value of the propagation delay time of data in both directions between the in-vehicle devices as a theoretical value, for example, in accordance with a protocol defined by the IEEE (registered trademark) 802.1 standard, and performs time synchronization between the in-vehicle devices using the newly calculated theoretical value of the propagation delay time.
[0006] However, the propagation delay time of data in one direction between on-board devices may differ from the propagation delay time of data in the other direction. In such cases, the actual value of the propagation delay time differs from the theoretical value of the propagation delay time, resulting in problems such as a decrease in the accuracy of time synchronization.
[0007] The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide an in-vehicle device and a time synchronization method that can perform time synchronization between in-vehicle devices more accurately. [Means for solving the problem]
[0008] The vehicle-mounted device of the present disclosure includes a memory unit that stores delay time information indicating a first transmission delay time from a measurement reference position of the data transmission time in the vehicle-mounted device itself to an outside, or a second transmission delay time from the outside to a measurement reference position of the data reception time in the vehicle-mounted device itself, and a transmission processing unit that transmits the delay time information stored in the memory unit to a first other device that performs time synchronization with the vehicle-mounted device.
[0009] The time synchronization method disclosed herein is a time synchronization method for an in-vehicle device, and includes a step of acquiring delay time information indicating a first transmission delay time from a measurement reference position of the data transmission time to an outside in the in-vehicle device itself, or a second transmission delay time from the outside to a measurement reference position of the data reception time in the in-vehicle device itself, and a step of transmitting the acquired delay time information to another device that performs time synchronization with the in-vehicle device.
[0010] The time synchronization method disclosed herein is a time synchronization method in an in-vehicle communication system including a first in-vehicle device and a second in-vehicle device, and includes the steps of: the first in-vehicle device transmitting to the second in-vehicle device delay time information indicating a first transmission delay time from a measurement reference position of the transmission time of data in the first in-vehicle device to an outside, or a second transmission delay time from the outside to a measurement reference position of the reception time of data in the first in-vehicle device; the second in-vehicle device receiving the delay time information transmitted from the first in-vehicle device; the second in-vehicle device measuring a propagation delay time between the first in-vehicle device and the first in-vehicle device by transmitting and receiving information for time synchronization with the first in-vehicle device; the second in-vehicle device correcting the measured propagation delay time based on the delay time information received from the first in-vehicle device; and the second in-vehicle device performing time synchronization with the first in-vehicle device based on the corrected propagation delay time.
[0011] One aspect of the present disclosure may be realized not only as an in-vehicle device having such a characteristic processing unit, but also as a program for causing a computer to execute such characteristic processing. Furthermore, one aspect of the present disclosure may be realized as a semiconductor integrated circuit that realizes a part or all of the in-vehicle device, or as a system including the in-vehicle device. Effect of the Invention
[0012] According to the present disclosure, time synchronization between in-vehicle devices can be performed more accurately. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a diagram showing a configuration of an in-vehicle communication system according to an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a diagram illustrating a configuration of a switch device according to an embodiment of the present disclosure. [Diagram 3] FIG. 3 is a diagram illustrating a configuration of a functional unit on the master side according to an embodiment of the present disclosure. [Figure 4] FIG. 4 is a diagram for explaining a method of calculating a data propagation delay time between a master-side functional unit and a switch device according to an embodiment of the present disclosure. [Diagram 5] FIG. 5 is a diagram illustrating a configuration of a functional unit on the slave side according to an embodiment of the present disclosure. [Figure 6] FIG. 6 is a diagram for explaining data transmission delay times in each of two in-vehicle devices according to the embodiment of the present disclosure. [Figure 7] FIG. 7 is a diagram for explaining data transmission delay times in each of the slave side functional units and the switch device according to the embodiment of the present disclosure. [Figure 8] FIG. 8 is a diagram for explaining a second method of time synchronization in an in-vehicle communication system according to an embodiment of the present disclosure. [Figure 9] FIG. 9 is a diagram for explaining data transmission delay times in the newly connected slave side functional units and switch devices according to the embodiment of the present disclosure. [Figure 10] FIG. 10 is a diagram illustrating an example of a table created by a slave-side functional unit according to an embodiment of the present disclosure. [Figure 11] FIG. 11 is a diagram for explaining a second method of time synchronization in an in-vehicle communication system according to an embodiment of the present disclosure. [Figure 12] FIG. 12 is a diagram for explaining data transmission delay times in the functional units and switch devices on the newly connected master side according to the embodiment of the present disclosure. [Figure 13]FIG. 13 is a diagram illustrating an example of a table created by a switch device according to an embodiment of the present disclosure. [Figure 14] FIG. 14 is a sequence diagram defining an example of an operation procedure when time synchronization is performed between in-vehicle devices according to an embodiment of the present disclosure. [Figure 15] FIG. 15 is a sequence diagram defining an example of an operation procedure when time synchronization is performed between in-vehicle devices according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] First, the contents of the embodiments of the present disclosure will be listed and described. (1) An in-vehicle device according to an embodiment of the present disclosure includes a memory unit that stores delay time information indicating a first transmission delay time from a measurement reference position of a data transmission time in the in-vehicle device itself to an outside, or a second transmission delay time from the outside to a measurement reference position of a data reception time in the in-vehicle device itself, and a transmission processing unit that transmits the delay time information stored in the memory unit to a first other device that performs time synchronization with the in-vehicle device.
[0015] In this way, by transmitting delay time information indicating the data transmission delay time in the own device to the other device, the other device can correct the propagation delay time based on the delay time information from the in-vehicle device. Therefore, even if the propagation delay time of data in one direction between the in-vehicle devices is different from the propagation delay time of data in the other direction, the other device can perform more accurate time correction using the corrected propagation delay time.
[0016] In addition, even if the other device dynamically changes the connection partner, the delay time information can be obtained from the newly connected in-vehicle device, so that the time correction between the newly connected in-vehicle device can be performed more accurately, and therefore the time synchronization between the in-vehicle devices can be performed more accurately.
[0017] (2) The delay time information may indicate both the first transmission delay time and the second transmission delay time.
[0018] With this configuration, the other device can correct the propagation delay time using the transmission delay time on both the data sending side and the data receiving side of the connected in-vehicle device, thereby making it possible to calculate a more accurate propagation delay time.
[0019] (3) Each of the measurement reference positions may be located between a Medium Access Control (MAC) processing unit that performs processing of a MAC layer and a Physical (PHY) processing unit that performs processing of a PHY layer.
[0020] With this configuration, in another device, for example, the time required for PHY processing of the data when the connected in-vehicle device transmits or receives the data can be taken into consideration to perform more appropriate correction of the propagation delay time.
[0021] (4) The transmission processing unit may transmit the delay time information to the first other device in response to establishment of a communication connection between the own device and the first other device.
[0022] With this configuration, when another device is newly connected to the in-vehicle device, delay time information can be transmitted to the other device at a more appropriate timing, before the other device performs time synchronization with the in-vehicle device.
[0023] (5) The transmission processing unit may include the delay time information in information for time synchronization and transmit the information.
[0024] With this configuration, there is no need for another device to store the data transmission delay time of the connected in-vehicle device, and when performing time synchronization with the in-vehicle device using time synchronization information, a more accurate propagation delay time can be calculated using the delay time information contained in the time synchronization information.
[0025] (6) The in-vehicle device may further include a time synchronization unit that measures a propagation delay time between the in-vehicle device and the second other device by transmitting and receiving information for time synchronization with the second other device, and performs time synchronization with the second other device based on the measured propagation delay time, and the time synchronization unit may include a correction unit that corrects the propagation delay time based on delay time information transmitted from the second other device, indicating a third transmission delay time from a measurement reference position of the transmission time of data in the second other device to an outside, or a fourth transmission delay time from the outside to a measurement reference position of the reception time of data in the second other device.
[0026] Here, between two on-board devices, one of the devices only needs to perform time correction based on the propagation delay time, and the one on-board device only needs to hold delay time information from the other on-board device. As described above, the on-board device transmits its own held delay time information to the first other device and receives the delay time information held by the second other device from the second other device. For example, when the on-board device has multiple communication ports, the on-board device performs time correction with the second other device, which is the communication partner, in data transmission and reception using some communication ports, and the first other device, which is the communication partner of the on-board device, performs time correction with the on-board device, in data transmission and reception using other communication ports. This makes it possible to more efficiently realize an on-board network with a function of performing time correction.
[0027] (7) A time synchronization method according to an embodiment of the present disclosure is a time synchronization method in an in-vehicle device, and includes a step of acquiring delay time information indicating a first transmission delay time from a measurement reference position of a data transmission time in the in-vehicle device itself to an outside, or a second transmission delay time from the outside to a measurement reference position of a data reception time in the in-vehicle device itself, and a step of transmitting the acquired delay time information to another device that performs time synchronization with the in-vehicle device.
[0028] In this way, by transmitting delay time information indicating the data transmission delay time in the own device to the other device, the other device can correct the propagation delay time based on the delay time information from the in-vehicle device. Therefore, even if the propagation delay time of data in one direction between the in-vehicle devices is different from the propagation delay time of data in the other direction, the other device can perform more accurate time correction using the corrected propagation delay time.
[0029] In addition, even if the other device dynamically changes the connection partner, the delay time information can be obtained from the newly connected in-vehicle device, so that the time correction between the newly connected in-vehicle device can be performed more accurately, and therefore the time synchronization between the in-vehicle devices can be performed more accurately.
[0030] (8) A time synchronization method according to an embodiment of the present disclosure is a time synchronization method in an in-vehicle communication system including a first in-vehicle device and a second in-vehicle device, the method including the steps of: the first in-vehicle device transmitting to the second in-vehicle device delay time information indicating a first transmission delay time from a measurement reference position of a data transmission time in the first in-vehicle device to an outside; or a second transmission delay time from the outside to a measurement reference position of a data reception time in the first in-vehicle device; the second in-vehicle device receiving the delay time information transmitted from the first in-vehicle device; the second in-vehicle device measuring a propagation delay time between the first in-vehicle device and the first in-vehicle device by transmitting and receiving information for time synchronization with the first in-vehicle device; the second in-vehicle device correcting the measured propagation delay time based on the delay time information received from the first in-vehicle device; and the second in-vehicle device performing time synchronization with the first in-vehicle device based on the corrected propagation delay time.
[0031] With this configuration, even if the propagation delay time of data in one direction between the vehicle-mounted devices is different from the propagation delay time of data in the other direction, the second vehicle-mounted device can perform more accurate time correction using the corrected propagation delay time.
[0032] Furthermore, even if the connection partner dynamically changes in the second in-vehicle device, the delay time information can be obtained from the newly connected in-vehicle device, so that time correction between the newly connected in-vehicle device can be performed more accurately. Therefore, time synchronization between the in-vehicle devices can be performed more accurately.
[0033] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals, and the description thereof will not be repeated. In addition, at least some of the embodiments described below may be arbitrarily combined.
[0034] <Configuration and basic operation> [Overall configuration] Fig. 1 is a diagram showing a configuration of an in-vehicle communication system according to an embodiment of the present disclosure. With reference to Fig. 1, an in-vehicle communication system 301 is mounted on a vehicle 1, and includes one or more switch devices 101 and multiple functional units 111. Fig. 1 shows, as an example, one switch device 101 and three functional units 111A, 111B, and 111C that are the functional units 111. The switch device 101 and each functional unit 111 are in-vehicle devices, such as an ECU (Electronic Control Unit).
[0035] The switch device 101 is connected to a plurality of functional units 111 by, for example, an Ethernet (registered trademark) cable 10, and is capable of communicating with the plurality of functional units 111 connected to itself. For example, the switch device 101 performs a relay process for relaying data from a functional unit 111 to another functional unit 111. Between the in-vehicle devices, information is exchanged using, for example, an Ethernet frame in which an IP packet is stored.
[0036] The functional unit 111 includes an external vehicle communication ECU, a sensor, a camera, a navigation device, an autonomous driving processing ECU, an ADAS (Advanced Driving Assistant System) ECU, an engine control device, an AT (Automatic Transmission) control device, an HEV (Hybrid Electric Vehicle) control device, a brake control device, a chassis control device, a steering control device, and an instrument display control device.
[0037] [Switch device and master side functional parts] (Switch device configuration) Fig. 2 is a diagram illustrating a configuration of a switch device according to an embodiment of the present disclosure. Referring to Fig. 2, the switch device 101 includes, for example, a relay unit 51, a time synchronization unit (transmission processing unit) 52, a storage unit 53, and communication ports 54A to 54E. Here, it is assumed that functional units 111A, 111B, and 111C are connected to the communication ports 54A to 53C, respectively, and that no in-vehicle device is connected to the communication ports 54D and 54E.
[0038] The relay unit 51 and the time synchronization unit 52 are realized by, for example, a processor such as a CPU (Central Processing Unit) and a DSP (Digital Signal Processor). The storage unit 53 is, for example, a non-volatile memory. The relay unit 51 includes a switch unit 61 and a control unit 62. The time synchronization unit 52 includes a processing unit 63 and a correction unit 64. Hereinafter, each of the communication ports 54A to 54E will also be simply referred to as a "communication port 54."
[0039] (Relay processing by switch device) The communication port 54 corresponds to an input end and an output end of the switch device 101, and is, for example, a terminal to which an Ethernet cable 10 can be connected. Note that the communication port 54 may be a terminal of an integrated circuit.
[0040] The storage unit 53 stores an address table At that indicates the correspondence between the port number of the communication port 54 and the MAC (Media Access Control) address of the connection destination device.
[0041] The switch unit 61 relays data between a plurality of functional units 111. That is, when the switch unit 61 receives an Ethernet frame transmitted from a functional unit 111 via the communication port 54 corresponding to that functional unit 111, the switch unit 61 performs relay processing on the received Ethernet frame.
[0042] More specifically, the switch unit 61 refers to the address table At stored in the storage unit 53, and identifies the port number corresponding to the destination MAC address included in the received Ethernet frame. Then, the switch unit 61 transmits the received Ethernet frame from the communication port 54 of the identified port number.
[0043] (Configuration of the master side functional section) Fig. 3 is a diagram showing a configuration of a master-side functional unit according to an embodiment of the present disclosure. Of the functional units 111A to 111C shown in Fig. 1, the functional unit 111A is assumed to be the master-side functional unit 111 that holds a reference time in the in-vehicle communication system 301. The other functional units 111B and 111C are assumed to be slave-side functional units 111.
[0044] 3, the master side functional unit 111A includes a communication unit 21, a time synchronization unit (transmission processing unit) 22, a storage unit 23, and a communication port 24. The communication unit 21 and the time synchronization unit 22 are realized by a processor such as a CPU and a DSP. The storage unit 23 is, for example, a non-volatile memory.
[0045] The communication port 24 corresponds to an input end and an output end of the functional unit 111A, and is, for example, a terminal to which an Ethernet cable 10 can be connected. The communication port 24 may be a terminal of an integrated circuit, etc. The communication port 24 is connected to the switch device 101 via the Ethernet cable 10.
[0046] (Calculation of data propagation delay time between the master function unit and the switch device) FIG. 4 is a diagram for explaining a method of calculating a data propagation delay time between a master-side functional unit and a switch device according to an embodiment of the present disclosure.
[0047] 2 to 4, the switch device 101 measures a data propagation delay time Td1 between the functional unit 111A and the switch device 101 by transmitting and receiving information for time synchronization with the master functional unit 111A according to the IEEE802.1 standard, for example. Then, the switch device 101 performs time synchronization with the functional unit 111A based on the measured propagation delay time Td1.
[0048] Between the two in-vehicle devices, one device that performs time correction based on the propagation delay time Td1 is also referred to as the “Initiator,” and the other device is also referred to as the “Responder.” Here, between the switch device 101 and the functional unit 111A, the switch device 101 is the Initiator, and the functional unit 111A is the Responder.
[0049] In detail, the switch device 101 periodically or irregularly calculates the propagation delay time Td1, and updates the propagation delay time Td1 that is already held to the newly calculated propagation delay time Td1.
[0050] More specifically, the processing unit 63 in the switch device 101 transmits request information (Pdelay_Req) for requesting time information used to update the propagation delay time Td1 to the functional unit 111A via the relay unit 51 and the communication port 54A. Hereinafter, the request information is also referred to as a "request message." Furthermore, the control unit 62 in the relay unit 51 stores the transmission time t1 of the request message in the storage unit 53 as a timestamp.
[0051] The communication unit 21 in the functional unit 111A receives the request message transmitted from the switch device 101 via the communication port 24, and outputs the received request message to the time synchronization unit 22. The communication unit 21 also stores the reception time t2 of the request message in the storage unit 23 as a timestamp.
[0052] The time synchronization unit 22 receives a request message from the communication unit 21 and outputs time information (Pdelay_Resp) for the request message to the communication unit 21. The communication unit 21 transmits the time information received from the time synchronization unit 22 to the switch device 101 via the communication port 24. At this time, the time synchronization unit 22 transmits the time information including the reception time t2 of the request message stored in the storage unit 23. Hereinafter, the time information is also referred to as a "response message." In addition, the communication unit 21 stores the transmission time t3 of the response message in the storage unit 23 as a timestamp.
[0053] After transmitting the response message, the time synchronizer 22 outputs the response message transmission time t3 stored in the memory 23 to the communication unit 21 by including the response message transmission time t3 in a follow-up message (Pdelay_Resp_Follow_Up). The communication unit 21 transmits the follow-up message received from the time synchronizer 22 to the switch device 101 via the communication port 24.
[0054] The control unit 62 in the switch device 101 receives the response message and the follow-up message transmitted from the functional unit 111A via the communication port 54A. Then, the control unit 62 stores the reception time t4 of the response message as a timestamp in the storage unit 53. The control unit 62 also notifies the time synchronization unit 52 of the time t2 included in the response message and the time t3 included in the follow-up message.
[0055] The processing unit 63 in the time synchronization unit 52 calculates a propagation delay time Td1 of data between the functional unit 111A and the switch device 101 based on the times t2 and t3 notified from the control unit 62 and the times t1 and t4 stored in the storage unit 53. More specifically, the processing unit 63 calculates the average value of the propagation delay times of data in both directions between the switch device 101 and the functional unit 111A as the propagation delay time Td1.
[0056] Specifically, the processing unit 63 uses the following formula (1) to calculate, as the propagation delay time Td1, the average value of the time from the sending time t1 at the switch device 101 to the receiving time t2 at the functional unit 111A of the request message and the time from the sending time t3 at the functional unit 111A to the receiving time t4 at the switch device 101 of the response message. Then, the processing unit 63 updates the propagation delay time Td1 stored in the storage unit 53 to the newly calculated propagation delay time Td1. Td1=((t4-t1)-(t3-t2)) / 2 ···(1)
[0057] (Time correction in switch device) The time synchronization unit 22 in the functional unit 111A periodically or irregularly outputs a Sync message to the communication unit 21. The communication unit 21 transmits the Sync message received from the time synchronization unit 22 to the switch device 101 via the communication port 24. The communication unit 21 also stores the transmission time tm1 of the Sync message in the storage unit 23 as a timestamp.
[0058] After transmitting the Sync message, the time synchronizer 22 outputs the follow-up message (Follow_Up) to the communicator 21. The communicator 21 transmits the follow-up message received from the time synchronizer 22 to the switch device 101 via the communication port 24.
[0059] The control unit 62 in the switch device 101 receives the Sync message and the follow-up message transmitted from the functional unit 111A via the communication port 54A. Then, the control unit 62 stores the reception time ty1 of the Sync message as a timestamp in the storage unit 53. The control unit 62 also notifies the time synchronizer 52 of the time tm1 included in the follow-up message.
[0060] The processing unit 63 in the time synchronization unit 52 performs time synchronization with the functional unit 111A based on the time tm1 notified from the control unit 62, and the time ty1 and propagation delay time Td1 stored in the storage unit 53.
[0061] Here, it is assumed that the processing unit 63 uses times tm1, ty1 and the propagation delay time Td1 to calculate a time difference D1=tm1+Td1-ty1, which is the difference between the time of the functional unit 111A and the time of the switch device 101. Then, the processing unit 63 uses the calculated time difference D1 to correct the time of its own switch device 101, thereby establishing time synchronization with the functional unit 111A.
[0062] [Slave side function] 5 is a diagram showing a configuration of a functional unit on the slave side according to an embodiment of the present disclosure. Here, the configuration of functional unit 111B will be described. The configuration of functional unit 111C is similar to the configuration of functional unit 111B.
[0063] 5, the slave side functional unit 111B includes a communication unit 81, a time synchronization unit (transmission processing unit) 82, a storage unit 83, and a communication port 84. The communication unit 81 and the time synchronization unit 82 are realized by a processor such as a CPU and a DSP. The storage unit 83 is, for example, a non-volatile memory.
[0064] The time synchronization unit 82 includes a processing unit 91 and a correction unit 92. The communication port 84 corresponds to an input end and an output end of the functional unit 111B, and is, for example, a terminal to which an Ethernet cable 10 can be connected. Note that the communication port 84 may be a terminal of an integrated circuit or the like. The communication port 84 is connected to the switch device 101 via the Ethernet cable 10.
[0065] (Calculation of data propagation delay time between the slave functional unit and the switch device) Between the slave functional unit 111B and the switch device 101, the functional unit 111B is the initiator, and the switch device 101 is the responder. That is, the functional unit 111B measures the data propagation delay time Td2 between the switch device 101 and the functional unit 111B.
[0066] More specifically, the processing unit 91 in the functional unit 111B periodically or irregularly calculates a propagation delay time Td2 of data between the switch device 101 and the functional unit 111B, and updates the propagation delay time Td2 stored in the storage unit 83 to the newly calculated propagation delay time Td2. The method of calculating the propagation delay time Td2 by the processing unit 91 is similar to the method of calculating the propagation delay time Td1 by the processing unit 63 in the switch device 101 described with reference to FIG.
[0067] Then, the processing unit 91 performs time synchronization with the switch device 101 based on the calculated propagation delay time Td2. The method of time synchronization by the processing unit 91 is similar to the method of time synchronization by the processing unit 63 in the switch device 101.
[0068] [Problem description] In each in-vehicle device, when data is transmitted or received, an IC (Integrated Circuit) chip that performs PHY (Physical) layer processing such as A / D conversion, or an IC chip that performs MAC layer processing such as processing of MAC addresses stored in Ethernet frames, stores the transmission time or reception time as a timestamp for the data. The position that is the reference for measuring the timestamp is hereinafter also referred to simply as the "measurement reference position."
[0069] The data transmission delay time between the measurement reference position in the vehicle-mounted device and the outside of the vehicle-mounted device may differ depending on the vendor and type of the vehicle-mounted device, etc. Hereinafter, a more detailed explanation will be given with reference to the drawings.
[0070] (When sending data from the Initiator to the Responder) 6 is a diagram for explaining a data transmission delay time in each of two in-vehicle devices according to an embodiment of the present disclosure. Here, a data transmission delay time in each of the switch device 101 on the initiator side and the functional unit 111A on the responder side will be explained.
[0071] 6, the switch device 101 includes a MAC processing unit M11 and a PHY processing unit P11 corresponding to the communication port 54A. The MAC processing unit M11 includes an IC chip CM11 that performs MAC layer processing. The PHY processing unit P11 includes an IC chip CP11 that performs PHY layer processing. The IC chip CM11 further assumes, for example, a part of the functions of the control unit 62 shown in FIG. 2.
[0072] The measurement reference position X1 corresponding to the communication port 54A in the switch device 101 is located near the boundary between the IC chip CM11 and the IC chip CP11, specifically, between the IC chip CM11 and the IC chip CP11, between the IC chip CM11 and the IC chip CP11, and a data transmission path L1, such as wiring on a printed circuit board.
[0073] The functional unit 111A also includes a MAC processing unit M12 and a PHY processing unit P12. The MAC processing unit M12 includes an IC chip CM12 that performs processing of the MAC layer. The PHY processing unit P12 includes an IC chip CP12 that performs processing of the PHY layer. The IC chip CM12 further performs, for example, a part of the function of the communication unit 21 shown in FIG. 3.
[0074] The measurement reference position X2 in the functional unit 111A is located near the boundary between the IC chip CM12 and the IC chip CP12, specifically, between the IC chip CM12 and the IC chip CP12, and a data transmission path L2, such as wiring on a printed circuit board.
[0075] When the switch device 101 transmits data to the functional unit 111A, the IC chip CM11 stores the time when the data passes through the measurement reference position X1, i.e., the transmission time when the data is output to the IC chip CP11, as a timestamp in the storage unit 53. Then, the IC chip CP11 performs PHY layer processing on the data received from the IC chip CM11, and outputs the data to the outside of the switch device 101 via the communication port 54A. The transmission delay time from when the IC chip CM11 stores the transmission time of the data to when the data is output to the outside of the switch device 101, i.e., when the data is output from the output end of the switch device 101, is defined as "T11".
[0076] When the functional unit 111A receives data from the switch device 101, the IC chip CP12 performs PHY layer processing on the data received from the outside via the communication port 24, and outputs the data to the IC chip CM12. The IC chip CM12 stores the time when the data from the IC chip CP12 passes the measurement reference position X2, that is, the reception time when the data is received from the IC chip CP12, as a timestamp in the storage unit 23. The transmission delay time from when the functional unit 111A receives data from the outside at the input end to when the IC chip CM12 stores the reception time of the data is "T21".
[0077] (When sending data from the Responder to the Initiator) When the functional unit 111A transmits data to the switch device 101, the IC chip CM12 stores the time when the data passes through the measurement reference position X2, i.e., the transmission time when the data is output to the IC chip CP12, as a timestamp in the storage unit 23. Then, the IC chip CP12 performs PHY layer processing on the data received from the IC chip CM12, and outputs the data to the outside of the functional unit 111A via the communication port 24. The transmission delay time from when the IC chip CM12 stores the transmission time of the data to when the data is output to the outside of the functional unit 111A, i.e., when the data is output from the output terminal of the functional unit 111A, is defined as "T22".
[0078] When the switch device 101 receives data from the functional unit 111A, the IC chip CP11 performs PHY layer processing on the data received from the outside via the communication port 54A and outputs it to the IC chip CM11. The IC chip CM11 stores the time when the data from the IC chip CP11 passes through the measurement reference position X1, that is, the reception time when the data is received from the IC chip CP11, as a timestamp in the storage unit 53. The transmission delay time from when the switch device 101 receives data from the outside at the input end to when the IC chip CM11 stores the reception time of the data is set to "T12".
[0079] In the switch device 101, the IC chip CM11 is configured to store the transmission time or reception time of data, but the present invention is not limited to this configuration, and the IC chip CP11 may be configured to store the transmission time or reception time of data. In this case, the measurement reference position X1 is located near the boundary between the IC chip CP11 and the Ethernet cable 10.
[0080] In addition, in the functional unit 111A, the IC chip CM12 is configured to store the transmission time or reception time of data, but the present invention is not limited to such a configuration, and the IC chip CP12 may be configured to store the transmission time or reception time of data. In this case, the measurement reference position X2 is located near the boundary between the IC chip CP12 and the Ethernet cable 10.
[0081] (Relationship between the theoretical value of propagation delay time Td1 and the transmission delay time considering the measurement reference position) Let Tk1 be the propagation time of data required to pass through the Ethernet cable 10 between the functional unit 111A and the switch device 101. In this case, the time from the transmission time of data in the switch device 101 to the reception time of the data in the functional unit 111A, that is, the propagation delay time Ttx of the data from the switch device 101 to the functional unit 111A, taking into account the transmission delay time between the measurement reference positions X1, X2 in each device and the outside, is expressed as in the following formula (2). Ttx = T11 + Tk1 + T21 (2)
[0082] In addition, the propagation delay time Ttr, which is the time from the transmission time of data in the functional unit 111A to the reception time of the data in the switch device 101, that is, the propagation delay time Ttr taking into account the transmission delay time between the measurement reference positions X1, X2 in each device and the outside, for the data from the functional unit 111A to the switch device 101, is expressed as shown in the following equation (3). Ttr = T22 + Tk1 + T12 (3)
[0083] As explained using Figure 4, the processing unit 63 in the switch device 101 calculates the average value of the propagation delay time of data in both directions between the switch device 101 and the functional unit 111A as the theoretical value of the propagation delay time Td1 of data between the functional unit 111A and the switch device 101.
[0084] That is, if the above-mentioned times T11, T12, T21, T22, and Tk1 are used instead of times t1, t2, t3, and t4 shown in FIG. 4, the theoretical value of the propagation delay time Td1 calculated by the processing unit 63 is expressed by the following equation (4). Td1=(Ttx+Ttr) / 2 ={(T11+Tk1+T21)+(T22+Tk1+T12)} / 2 ···(4)
[0085] Here, the data transmission delay time between the measurement reference position in the vehicle-mounted device and the outside of the vehicle-mounted device may differ depending on the vendor and type of the vehicle-mounted device, etc. Specifically, the transmission delay times T11, T12, T21, and T22 shown in Fig. 5 may differ depending on the vendor of the switch device 101 and the functional unit 111A, etc.
[0086] In such a case, the propagation delay times Ttx, Ttr of data in both directions between the switch device 101 and the functional unit 111A will be different from each other (Ttx ≠ Ttr), and each of the propagation delay times Ttx, Ttr will be different from the theoretical value (= Td1) of the propagation delay time, which is the average value of these propagation delay times Ttx, Ttr (Td1 ≠ Ttx, Td1 ≠ Ttr).
[0087] Similarly, the propagation delay times Ttx and Ttr of data in both directions may be different from each other (Ttx ≠ Ttr) between the functional unit 111B and the switch device 101. In this case, each of the propagation delay times Ttx and Ttr is different from the theoretical value (= Td2) of the propagation delay time, which is the average value of these propagation delay times Ttx and Ttr (Td2 ≠ Ttx, Td2 ≠ Ttr).
[0088] In addition, the connection partner of the in-vehicle device may change dynamically due to the addition of a service in the vehicle 1. For this reason, it is difficult for the in-vehicle device to store in advance the data transmission delay time of the other in-vehicle device with which it is connected. In contrast, each in-vehicle device in the in-vehicle communication system 301 according to the embodiment of the present disclosure has the following configuration, which enables more accurate calculation of the propagation delay time even when the connection partner of the in-vehicle device changes dynamically.
[0089] [Time synchronization method 1] An in-vehicle device that is a responder transmits delay time information indicating the transmission delay time from the measurement reference position of the data transmission time in its own in-vehicle device, that is, to the outside, i.e., the output terminal of its own device, and the transmission delay time from the outside, i.e., the input terminal of its own device, to the measurement reference position of the data reception time in its own device, to another in-vehicle device that is an initiator.
[0090] (Time synchronization between the master function unit 111A and the switch device 101) 3, the functional unit 111A acquires in advance delay time information Ix2 indicating a transmission delay time T21 from the outside to the measurement reference position X2 of the functional unit 111A and a transmission delay time T22 from the measurement reference position X2 of the functional unit 111A to the outside. That is, the delay time information Ix2 is stored in the storage unit 23 of the functional unit 111A.
[0091] The functional unit 111A, which is the responder, includes the delay time information Ix2 in the information for time synchronization and transmits the information to the switch device 101, which is the initiator. Specifically, the time synchronization unit 22 in the functional unit 111A includes the delay time information Ix2 stored in the storage unit 23 in the payload portion of the follow-up message, for example, every time the time synchronization unit 22 transmits the follow-up message shown in FIG. 4 to the switch device 101, and outputs the follow-up message to the communication unit 21. Then, the communication unit 21 transmits the follow-up message received from the time synchronization unit 22 to the switch device 101 via the communication port 24.
[0092] The switch device 101 acquires in advance delay time information Ix1 indicating a transmission delay time T11 from the measurement reference position X1 of the switch device 101 to the outside, which corresponds to the communication port 54A, and a transmission delay time T12 from the outside to the measurement reference position X1 of the switch device 101, which corresponds to the communication port 54A. That is, the storage unit 53 in the switch device 101 stores the delay time information Ix1.
[0093] As described above, the control unit 62 in the switch device 101 receives the Sync message and the follow-up message transmitted from the functional unit 111A via the communication port 54A. Then, the control unit 62 stores the reception time ty1 of the Sync message as a timestamp in the storage unit 53. The control unit 62 also notifies the time synchronizer 52 of the time tm1 included in the follow-up message. The control unit 62 also outputs the delay time information Ix2 included in the received follow-up message to the time synchronizer 52.
[0094] The correction unit 64 in the time synchronization unit 52 corrects the propagation delay time Td1 calculated by the processing unit 63 based on the transmission delay times T21, T22 indicated by the delay time information Ix2 received from the control unit 62 and the transmission delay times T11, T12 indicated by the delay time information Ix1 stored in the memory unit 53.
[0095] More specifically, as shown in the following formula (5), the value obtained by subtracting the correction value Cv from the propagation delay time Td1 calculated by the processing unit 63 is the propagation delay time Ttx when a message is transmitted from the switch device 101 to the functional unit 111A. Also, as shown in the following formula (6), the value obtained by adding the correction value Cv to the propagation delay time Td1 is the propagation delay time Ttr when a message is transmitted from the functional unit 111A to the switch device 101. Ttx = Td1 - Cv (5) Ttr = Td1 + Cv (6)
[0096] In this case, the correction value Cv is expressed by the following equation (7). Cv = Td1 - Ttx ={(T11+Tk1+T21)+(T22+Tk1+T12)} / 2-(T11+Tk1+T21) ={(T22-T11)+(T12-T21)} / 2 ···(7)
[0097] The correction unit 64 calculates the correction value Cv using, for example, equation (7), and subtracts the correction value Cv from the propagation delay time Td1 as a correction of the propagation delay time Td1. Then, the correction unit 64 notifies the processing unit 63 of the propagation delay time Ttx, which is the corrected propagation delay time (Td1-Cv), as the propagation delay time when transmitting data to the functional unit 111A.
[0098] Moreover, the correction unit 64 adds a correction value Cv to the propagation delay time Td1 as a correction of the propagation delay time Td1. Then, the correction unit 64 notifies the processing unit 63 of the propagation delay time Ttr, which is the corrected propagation delay time (Td1+Cv), as the propagation delay time when receiving data from the functional unit 111A.
[0099] The processing unit 63 stores the propagation delay times Ttx and Ttr notified by the correction unit 64 in the storage unit 53. The processing unit 63 also calculates a time difference D1 between the time of the functional unit 111A and the time of the switch device 101, using, for example, the transmission time tm1 of the Sync message at the functional unit 111A notified by the control unit 62 and the reception time ty1 of the Sync message stored in the storage unit 53, as shown in FIG.
[0100] Specifically, the processing unit 63 calculates the time difference D1=tm1+Ttr-ty1. Then, the processing unit 63 corrects the time in its own switch device 101 using the calculated time difference D1, thereby establishing time synchronization with the functional unit 111A.
[0101] The processing unit 63 may perform time synchronization using the propagation delay time Ttx instead of the propagation delay time Ttr. For example, the processing unit 63 may calculate the time difference D1 between the time of the functional unit 111A and the time of the switching device 101 using the transmission time of the message from the switching device 101 to the functional unit 111A at the switching device 101, the reception time of the message at the functional unit 111A, and the propagation delay time Ttx stored in the storage unit 53.
[0102] (Time synchronization between the switch device 101 and the slave side functional unit 111B) 7 is a diagram for explaining a data transmission delay time in each of the slave side functional units and the switch device according to the embodiment of the present disclosure. With reference to FIG. 7, the functional unit 111B, which is an initiator, includes a MAC processing unit M21 and a PHY processing unit P21. The MAC processing unit M21 includes an IC chip CM21 that performs MAC layer processing. The PHY processing unit P21 includes an IC chip CP21 that performs PHY layer processing. The IC chip CM21 further assumes, for example, a part of the function of the communication unit 81 shown in FIG. 5.
[0103] The measurement reference position X3 in the functional unit 111B is located between the IC chips CM21 and CP21, specifically, near the boundary between the IC chip CM21 and the data transmission path L3, such as wiring on a printed circuit board, between the IC chips CM21 and CP21.
[0104] The switch device 101, which is a responder, also includes a MAC processing unit M22 and a PHY processing unit P22, which correspond to the communication port 54B. The MAC processing unit M22 includes an IC chip CM22 that performs MAC layer processing. The PHY processing unit P22 includes an IC chip CP22 that performs PHY layer processing. The IC chip CM22 further performs, for example, part of the functions of the control unit 62 shown in FIG. 2.
[0105] The measurement reference position X4 corresponding to the communication port 54B in the switch device 101 is located near the boundary between the IC chip CM22 and the IC chip CP22, specifically, between the IC chip CM22 and the IC chip CP22, between the IC chip CM22 and the IC chip CP22, and a data transmission path L4, such as wiring on a printed circuit board.
[0106] In addition to the delay time information Ix1 described above, the memory unit 53 in the switch device 101 further stores delay time information Ix4 indicating a transmission delay time T42 from the measurement reference position X4 of the switch device 101 to the outside, i.e., the output terminal of the switch device 101, which corresponds to the communication port 54B, and a transmission delay time T41 from the outside, i.e., the input terminal of the switch device 101, to the measurement reference position X4 of the switch device 101, which corresponds to the communication port 54B.
[0107] The switch device 101, which is the responder, includes the delay time information Ix4 in the information for time synchronization and transmits the information to the functional unit 111B, which is the initiator. Specifically, the processing unit 63 in the switch device 101, for example, includes the delay time information Ix4 stored in the storage unit 53 in the payload portion of the follow-up message every time the processing unit 63 transmits the follow-up message to the functional unit 111B, and outputs the follow-up message to the relay unit 51. Then, the relay unit 51 transmits the follow-up message received from the processing unit 63 to the functional unit 111B via the communication port 84.
[0108] The memory unit 83 in the functional unit 111B stores delay time information Ix3 indicating the transmission delay time T31 from the measurement reference position X3 of the functional unit 111B to the output terminal of the external functional unit 111B, and the transmission delay time T32 from the outside, i.e., the input terminal of the functional unit 111B, to the measurement reference position X3 of the functional unit 111B.
[0109] In the functional unit 111B, the communication unit 81 receives the Sync message and the follow-up message transmitted from the switch device 101 via the communication port 84. Then, the communication unit 81 stores the reception time ty2 of the Sync message as a timestamp in the storage unit 83. The communication unit 81 also notifies the time synchronization unit 82 of the time tm2 included in the follow-up message. The communication unit 81 also outputs the delay time information Ix4 included in the received follow-up message to the time synchronization unit 82.
[0110] The correction unit 92 in the time synchronization unit 82 corrects the propagation delay time Td2 calculated by the processing unit 91 based on the transmission delay times T41, T42 indicated by the delay time information Ix4 received from the communication unit 81 and the transmission delay times T31, T32 indicated by the delay time information Ix3 stored in the memory unit 83.
[0111] More specifically, the correction unit 92 calculates a correction value Cv, similar to the correction unit 64 in the switch device 101, and subtracts the correction value Cv from the propagation delay time Td2 as a correction of the propagation delay time Td2. Then, the correction unit 92 notifies the processing unit 91 of the propagation delay time Ttx, which is the corrected propagation delay time (Td2-Cv), as the propagation delay time when transmitting a message to the switch device 101.
[0112] Moreover, the correction unit 92 adds a correction value Cv to the propagation delay time Td2 as a correction of the propagation delay time Td2. Then, the correction unit 92 notifies the processing unit 91 of the propagation delay time Ttr, which is the corrected propagation delay time (Td2+Cv), as the propagation delay time at the time of receiving the message from the switch device 101.
[0113] The processing unit 91 stores the propagation delay times Ttx and Ttr notified by the correction unit 92 in the storage unit 83. The processing unit 91 also calculates a time difference D2 between the time of the switch device 101 and the time of the functional unit 111B, for example, by using the transmission time tm2 of the Sync message in the switch device 101 and the reception time ty2 of the Sync message, as well as the propagation delay time Ttr.
[0114] Specifically, the processing unit 91 calculates the time difference D2=tm2+Ttr-ty2, and establishes time synchronization with the switch device 101 by correcting the time in its own functional unit 111B using the calculated time difference D2.
[0115] Here, when time synchronization is established between the master side functional unit 111A and the switch device 101, the time included in the follow-up message transmitted from the switch device 101 to the functional unit 111B is the time synchronized with the functional unit 111A. Therefore, the processing unit 91 in the functional unit 111B corrects the time, thereby establishing time synchronization between the functional unit 111B and the switch device 101, and as a result, time synchronization is established between the functional unit 111B and the functional unit 111A.
[0116] [Time synchronization method 2] In the above-mentioned method 1, the in-vehicle device which is the responder periodically or irregularly transmits delay time information to the in-vehicle device which is the initiator. Then, when the in-vehicle device which is the initiator receives the delay time information, it corrects the propagation delay time using the newly received delay time information.
[0117] In contrast, in method 2, for example, when an in-vehicle device is connected to another in-vehicle device by plug-and-play, the one in-vehicle device, which is the responder, transmits delay time information to the other in-vehicle device, which is the initiator. The other in-vehicle device then holds the delay time information transmitted from the in-vehicle device, which is the responder, and corrects the propagation delay time using the held delay time information, for example, every time time synchronization is performed between the in-vehicle device and the other in-vehicle device.
[0118] (Time synchronization between the switch device 101 and the newly connected slave side functional unit 111D) Fig. 8 is a diagram for explaining a second method of time synchronization in an in-vehicle communication system according to an embodiment of the present disclosure. With reference to Fig. 8, a case will be described in which a slave-side functional unit 111D is newly connected to a communication port 54D of a switch device 101. The functional unit 111D has a configuration similar to that of the functional unit 111B shown in Fig. 5, and includes a communication unit 81, a time synchronization unit 82, a storage unit 83, and a communication port 84.
[0119] 9 is a diagram for explaining a data transmission delay time in each of a newly connected slave side functional unit and a switch device according to an embodiment of the present disclosure. With reference to FIG. 9, the functional unit 111D, which is an initiator, includes a MAC processing unit M31 and a PHY processing unit P31. The MAC processing unit M31 includes an IC chip CM31 that performs MAC layer processing. The PHY processing unit P31 includes an IC chip CP31 that performs PHY layer processing. The IC chip CM31 further assumes, for example, a part of the function of the communication unit 81 in the functional unit 111D.
[0120] The measurement reference position X5 in the functional unit 111D is located between the IC chips CM31 and CP31, specifically, near the boundary between the IC chip CM31 and the data transmission path L5, such as wiring on a printed circuit board, between the IC chips CM31 and CP31.
[0121] The switch device 101, which is a responder, also includes a MAC processing unit M32 and a PHY processing unit P32, which correspond to the communication port 54D. The MAC processing unit M32 includes an IC chip CM32 that performs MAC layer processing. The PHY processing unit P32 includes an IC chip CP32 that performs PHY layer processing. The IC chip CM32 further performs, for example, part of the functions of the control unit 62 shown in FIG. 2.
[0122] The measurement reference position X6 corresponding to the communication port 54D in the switch device 101 is located near the boundary between the IC chip CM32 and the IC chip CP32, specifically, between the IC chip CM32 and the IC chip CP32, between the IC chip CM32 and the IC chip CP32, and a data transmission path L6, such as wiring on a printed circuit board.
[0123] In addition to the delay time information Ix1 and Ix4 described above, the memory unit 53 in the switch device 101 further stores delay time information Ix6 indicating a transmission delay time T62 from the measurement reference position X6 of the switch device 101 to the outside, i.e., the output terminal of the switch device 101, which corresponds to the communication port 54D, and a transmission delay time T61 from the outside, i.e., the input terminal of the switch device 101, to the measurement reference position X6 of the switch device 101, which corresponds to the communication port 54D.
[0124] The memory unit 83 in the functional unit 111D stores delay time information Ix5 indicating the transmission delay time T52 from the outside, i.e., the input terminal of the functional unit 111D, to the measurement reference position X5 of the functional unit 111D, and the transmission delay time T51 from the measurement reference position X5 of the functional unit 111D to the outside, i.e., the output terminal of the functional unit 111D.
[0125] For example, when a slave functional unit 111D is newly connected to a communication port 54D of the switch device 101, a process for establishing a communication connection is performed between the switch device 101 and the functional unit 111D.
[0126] Then, for example, in response to the establishment of a communication connection between the switch device 101 and the functional unit 111D, the processing unit 63 in the switch device 101 on the Responder side includes delay time information Ix6 in the payload portion of a message using SOME / IP (Scalable service-Oriented Middleware over IP) and transmits the message to the functional unit 111D on the Initiator side.
[0127] In the functional unit 111D, when the communication unit 81 receives the delay time information Ix6 contained in the message transmitted from the switch device 101 via the communication port 84, the communication unit 81 stores the delay time information Ix6 in the storage unit 83. For example, when the correction unit 92 in the time synchronization unit 82 confirms that the delay time information Ix6 has been stored in the storage unit 83, the correction unit 92 creates a table Sta indicating the transmission delay times in both directions in each of the functional unit 111D and the switch device 101 based on the delay time information Ix5 and the delay time information Ix6 stored in the storage unit 83.
[0128] 10 is a diagram illustrating an example of a table created by a slave-side functional unit according to an embodiment of the present disclosure. Referring to FIG. 10, the correction unit 92 in the functional unit 111D creates a table Sta indicating the transmission delay times T51 and T52 indicated by the delay time information Ix5 and the transmission delay times T61 and T62 indicated by the delay time information Ix6, and stores the created table Sta in the storage unit 83.
[0129] 5, the processing unit 91 in the functional unit 111D periodically or irregularly calculates a propagation delay time Td3 of data between the switch device 101 and the functional unit 111D. The correction unit 92 corrects the propagation delay time Td3 calculated by the processing unit 91 based on the transmission delay times T51, T52, T61, and T62 shown in the table Sta stored in the storage unit 83. The processing unit 91 then corrects the time between the switch device 101 and the processing unit 91 based on the propagation delay time Td3 corrected by the correction unit 92.
[0130] In functional unit 111D, the method of correcting propagation delay time Td3 by correction unit 92 and the method of correcting the time between switch device 101 are similar to the method of correcting propagation delay time Td2 by correction unit 92 and the method of correcting the time between switch device 101 in functional unit 111B.
[0131] (Time synchronization between the switch device 101 and the newly connected master side functional unit 111E) Fig. 11 is a diagram for explaining a second method of time synchronization in an in-vehicle communication system according to an embodiment of the present disclosure. With reference to Fig. 11, a description will be given of time synchronization between the switch device 101 and the functional unit 111E in a case where a slave-side functional unit 111D is newly connected to a communication port 54D of the switch device 101, and further a master-side functional unit 111E is newly connected to a communication port 54E of the switch device 101. The time synchronization between the switch device 101 and the functional unit 111D is as described above.
[0132] 3, and includes a communication unit 21, a time synchronization unit 22, a storage unit 23, and a communication port 24. The functional units 111A, 111B, and 111C already connected to the switch device 101 are included in group A, and the functional units 111D and 111E newly connected to the switch device 101 are included in group B. Time synchronization is performed between the in-vehicle devices included in group A, and time synchronization is performed between the in-vehicle devices included in group B.
[0133] 12 is a diagram for explaining a data transmission delay time in each of the functional units and the switch device on the newly connected master side according to the embodiment of the present disclosure. With reference to FIG. 12, the switch device 101, which is the initiator, includes a MAC processing unit M41 and a PHY processing unit P41 corresponding to the communication port 54E. The MAC processing unit M41 includes an IC chip CM41 that performs MAC layer processing. The PHY processing unit P41 includes an IC chip CP41 that performs PHY layer processing. The IC chip CM41 further assumes, for example, a part of the function of the control unit 62 shown in FIG. 2.
[0134] The measurement reference position X7 in the switch device 101 is located between the IC chips CM41 and CP41, specifically, near the boundary between the IC chips CM41 and CP41, and a data transmission path L7, such as wiring on a printed circuit board, between the IC chips CM41 and CP41.
[0135] The functional unit 111E, which is the Responder, includes a MAC processing unit M42 and a PHY processing unit P42. The MAC processing unit M42 includes an IC chip CM42 that performs MAC layer processing. The PHY processing unit P42 includes an IC chip CP42 that performs PHY layer processing. The IC chip CM42 further performs, for example, part of the function of the communication unit 21 in the functional unit 111D.
[0136] The measurement reference position X8 in the functional unit 111E is located near the boundary between the IC chip CM42 and the IC chip CP42, specifically, between the IC chip CM42 and the IC chip CP42, and a data transmission path L8, such as wiring on a printed circuit board, and the IC chip CM42.
[0137] In addition to the delay time information Ix1, Ix4, and Ix6 mentioned above, the memory unit 53 in the switch device 101 further stores delay time information Ix7 indicating a transmission delay time T71 from the measurement reference position X7 of the switch device 101 to the outside, i.e., the output terminal of the switch device 101, which corresponds to the communication port 54E, and a transmission delay time T72 from the outside, i.e., the input terminal of the switch device 101, to the measurement reference position X7 of the switch device 101, which corresponds to the communication port 54E.
[0138] The memory unit 23 in the functional unit 111E stores delay time information Ix8 indicating the transmission delay time T81 from the outside, i.e., the input end of the functional unit 111E, to the measurement reference position X8 of the functional unit 111E, and the transmission delay time T82 from the measurement reference position X8 of the functional unit 111E to the outside, i.e., the output end of the functional unit 111E.
[0139] For example, when a master functional unit 111E is newly connected to a communication port 54E of the switch device 101, a process for establishing a communication connection is performed between the switch device 101 and the functional unit 111E.
[0140] Then, the time synchronization unit 82 in the functional unit 111E, which is the Responder, for example, in response to the establishment of a communication connection between the switch device 101 and the functional unit 111E, includes delay time information Ix8 in the payload portion of a message using SOME / IP and sends it to the switch device 101, which is the Initiator.
[0141] When the control unit 62 in the switch device 101 receives the delay time information Ix8 transmitted from the functional unit 111E via the communication port 54E, the control unit 62 stores the delay time information Ix8 in the storage unit 53. For example, when the correction unit 64 confirms that the delay time information Ix8 has been stored in the storage unit 53, the correction unit 64 creates a table Stb indicating the transmission delay times in both directions in each of the functional unit 111E and the switch device 101 based on the delay time information Ix7 and the delay time information Ix8 stored in the storage unit 53.
[0142] 13 is a diagram illustrating an example of a table created by a switch device according to an embodiment of the present disclosure. Referring to FIG. 13, the control unit 62 creates a table Stb indicating the transmission delay times T71 and T72 indicated by the delay time information Ix7 and the transmission delay times T81 and T82 indicated by the delay time information Ix8, and stores the created table Stb in the storage unit 53.
[0143] The processing unit 63 in the switch device 101 periodically or irregularly calculates a propagation delay time Td4 of data between the functional unit 111E and the switch device 101. The correction unit 64 corrects the propagation delay time Td4 calculated by the processing unit 63 based on the transmission delay times T71, T72, T81, and T82 indicated in the table Stb stored in the storage unit 53. Then, the processing unit 63 performs time correction between the functional unit 111E and the processing unit 63 based on the propagation delay time Td4 corrected by the correction unit 64.
[0144] In the switch device 101, the method by which the corrector 64 corrects the propagation delay time Td4 and the time between the functional unit 111E is similar to the method by which the corrector 64 corrects the propagation delay time Td1 and the time between the functional unit 111A.
[0145] In addition, the delay time information held in each vehicle-mounted device is not limited to a configuration indicating both the transmission delay time from the measurement reference position of the data transmission time in the device itself to the outside, i.e., the transmission delay time when transmitting data, and the transmission delay time from the outside to the measurement reference position of the data reception time in the device itself, i.e., the transmission delay time when receiving data, but may indicate either one of these transmission delay times.
[0146] In the on-board device, the transmission delay time when receiving data is often longer than the transmission delay time when transmitting data. In other words, the transmission delay time when receiving data may have a greater effect on the length of the propagation delay time than the transmission delay time when transmitting data. In this case, it is preferable that the delay time information indicates the transmission delay time when receiving data.
[0147] 1, at least one of the initiator and the responder is the switch device 101, but the present invention is not limited to such a configuration. In other words, both the initiator and the responder may be the functional unit 111.
[0148] <Operation flow> Next, the operation of the in-vehicle communication system 301 when time synchronization is performed between the in-vehicle devices will be described with reference to the drawings.
[0149] Each device in the in-vehicle communication system 301 includes a computer including a memory, and a processor such as a CPU in the computer reads out a program including some or all of the steps in the following flowcharts from the memory and executes it. Each of the programs for the multiple devices can be installed from the outside. Each of the programs for the multiple devices is distributed in a state stored in a recording medium or via a communication line.
[0150] [Time synchronization between the master functional unit and the switch device using method 1] 14 is a sequence diagram showing an example of an operation procedure when time synchronization is performed between in-vehicle devices according to an embodiment of the present disclosure. Here, an operation procedure when time synchronization is performed between the master side functional unit 111A and the switch device 101 in the case of using the above-mentioned method 1 will be described.
[0151] 14, first, the switch device 101 waits until the timing for measuring the propagation delay time Td1 between the switch device 101 and the functional unit 111A arrives ("NO" in step S11). Then, when the timing for measuring the propagation delay time Td1 arrives ("YES" in step S11), the switch device 101 transmits and receives time information and the like between the switch device 101 and the functional unit 111A (step S12).
[0152] Next, the switch device 101 calculates the propagation delay time Td1 based on the transmission time and reception time of the time information transmitted and received between the switch device 101 and the functional unit 111A (step S13).
[0153] Next, the functional unit 111A waits until the timing for transmitting delay time information Ix2 indicating the transmission delay time T22 from the measurement reference position X2 of the data transmission time to the outside and the transmission delay time T21 from the outside to the measurement reference position X2 of the data reception time arrives. The transmission timing of the delay time information Ix2 is, for example, the transmission timing of information for time synchronization including the delay time information Ix2, such as a follow-up message after the transmission of a Sync message ("NO" in step S14).
[0154] Next, when the timing for transmitting the delay time information Ix2 arrives ("YES" in step S14), the functional unit 111A transmits the delay time information Ix2 to the switch device 101 in addition to the information for time synchronization (step S15).
[0155] Next, the switch device 101 corrects the propagation delay time Td1 calculated in step S13 based on the transmission delay times T21, T22 indicated by the delay time information Ix2 transmitted from the functional unit 111A, as well as the transmission delay time T11 from the measurement reference position X1 of the data transmission time to the outside and the transmission delay time T12 from the outside to the measurement reference position X1 of the data reception time indicated by the delay time information Ix1 held by itself (step S16).
[0156] Next, the switch device 101 corrects the time in its own switch device 101 based on, for example, the transmission time in the functional unit 111A of the Sync message transmitted from the functional unit 111A, the reception time in the switch device 101, and the corrected propagation delay time Td1. This establishes time synchronization between the functional unit 111A and the switch device 101 (step S17). Then, the operations from step S11 onwards are repeated.
[0157] [Time synchronization between the master functional unit and the switch device using method 2] 15 is a sequence diagram defining an example of an operation procedure when time synchronization is performed between in-vehicle devices according to an embodiment of the present disclosure. Here, an operation procedure will be described when the above-mentioned method 2 is used and time synchronization is performed between the switch device 101 and the functional unit 111D newly connected to the switch device 101.
[0158] Referring to FIG. 15, it is assumed that the functional unit 111D is first physically connected to the communication port 54D of the switch device 101 (step S21).
[0159] Next, when the power supply of the functional unit 111D is switched on (step S22), a process for establishing a communication connection between the functional unit 111D and the switch device 101 is performed (step S23).
[0160] Next, when a communication connection with functional unit 111D is established, switch device 101 transmits delay time information Ix6 indicating the transmission delay time T62 from the measurement reference position X6 of the data transmission time to the outside, and the transmission delay time T61 from the outside to the measurement reference position X6 of the data reception time, corresponding to communication port 54D, to functional unit 111D, for example, in a message using SOME / IP (step S24).
[0161] Next, the functional unit 111D creates a table Sta indicating the transmission delay times T61, T62 indicated by the delay time information Ix6 transmitted from the switch device 101, as well as the transmission delay time T51 indicated by the delay time information Ix5 held by itself from the measurement reference position X5 of the data transmission time to the outside, and the transmission delay time T52 from the outside to the measurement reference position X5 of the data reception time (step S25).
[0162] Next, when the measurement timing for the propagation delay time Td3 arrives ("YES" in step S26), the functional unit 111D transmits and receives information for time synchronization, such as time information, to and from the switch device 101 (step S27).
[0163] Next, the functional unit 111D calculates the propagation delay time Td3 based on the transmission time and reception time of the time information transmitted and received between the switch device 101 (step S28).
[0164] Next, the functional unit 111D corrects the propagation delay time Td3 calculated in step S28 based on the transmission delay times T51, T52, T61, and T62 shown in the table Sta created in step S25 (step S29).
[0165] Next, when the timing for transmitting the Sync message arrives, the switch device 101 transmits the Sync message and the follow-up message to the functional unit 111D (step S30).
[0166] Next, the functional unit 111D corrects the time in its own functional unit 111D based on the transmission time in the switch device 101, the reception time in the functional unit 111D, and the corrected propagation delay time Td3 of the Sync message transmitted from the switch device 101. This establishes time synchronization between the switch device 101 and the functional unit 111D (step S31).
[0167] Next, when the condition for switching the power of functional unit 111D from on to off is met ("YES" in step S32), such as when the user performs an operation to switch the power of functional unit 111D off, the power of functional unit 111D is switched off (step S33). Meanwhile, the operations of steps S26 to S32 are repeated until the condition for switching the power of functional unit 111D from on to off is met ("NO" in step S32).
[0168] In addition, when functional unit 111D receives a new Sync message from switch device 101 when the next measurement timing for propagation delay time Td3 has not yet arrived ("NO" in step S26), it corrects the time in its own functional unit 111D using the corrected propagation delay time Td3 that has already been stored (step S31).
[0169] The above-described embodiments should be considered as illustrative and not restrictive in all respects. The scope of the present disclosure is defined by the claims, not the above description, and is intended to include all modifications within the meaning and scope of the claims.
[0170] The above description includes the following additional features. [Appendix 1] A storage unit that stores delay time information indicating a first transmission delay time from a measurement reference position of a transmission time of data in the vehicle-mounted device to an outside, or a second transmission delay time from the outside to a measurement reference position of a reception time of data in the vehicle-mounted device; a transmission processing unit that transmits the delay time information stored in the storage unit to a first other device that performs time synchronization with the device itself; the first other device measures a propagation delay time between the first other device and the first other device in accordance with the IEEE 802.1 standard by transmitting and receiving information for time synchronization between the first other device and the first other device, and performs time synchronization between the first other device and the first other device based on the measured propagation delay time; the delay time information includes both the first transmission delay time and the second transmission delay time, The first other device corrects the propagation delay time based on the first transmission delay time and the second transmission delay time indicated by the delay time information from the in-vehicle device, and a third transmission delay time from a measurement reference position of the data transmission time in the first other device to an outside, or a fourth transmission delay time from the outside to a measurement reference position of the data reception time in the first other device, and performs the time synchronization using the corrected propagation delay time.
[0171] [Appendix 2] An in-vehicle device, a time synchronization unit that measures a propagation delay time between the other device and the other in-vehicle device by transmitting and receiving information for time synchronization between the other device and the other in-vehicle device, and performs time synchronization with the other device based on the measured propagation delay time; A receiving unit that receives delay time information indicating a first transmission delay time from a measurement reference position of a transmission time of data in the other device to an outside, or a second transmission delay time from the outside to a measurement reference position of a reception time of data in the other device; A storage unit stores a third transmission delay time from a measurement reference position of a data transmission time in the vehicle-mounted device to an outside, or a fourth transmission delay time from the outside to a measurement reference position of a data reception time in the vehicle-mounted device, The in-vehicle device includes a correction unit that corrects the propagation delay time measured by the time synchronization unit based on the first transmission delay time and the second transmission delay time indicated by the delay time information transmitted from the other device, and the third transmission delay time and the fourth transmission delay time stored in the memory unit. [Explanation of symbols]
[0172] 1 vehicle 10 Ethernet cable 51 Relay Section 22, 52, 82 Time synchronization unit (transmission processing unit) 23,53,83 Storage section 24, 54, 54A~54H, 84 Communication port 61 Switch section 62 Control section 63,91 Processing section 64,92 Correction section 21,81 Communications Department 101 Switching device 111,111A~111E Functional part 301 In-vehicle communication system CM11, CP11, CM12, CP12 IC chip CM21, CP21, CM22, CP22 IC chip CM31, CP31, CM32, CP32 IC chip CM41, CP41, CM42, CP42 IC chip M11, M12, M21, M22, M31, M32, M41, M42 MAC processing section P11, P12, P21, P22, P31, P32, P41, P42 PHY processing section X1~X8 Measurement reference positions L1~L8 transmission path Sta,Stb Table
Claims
1. A storage unit that stores delay time information indicating a first transmission delay time from a measurement reference position of a transmission time of data in the vehicle-mounted device to an outside, or a second transmission delay time from the outside to a measurement reference position of a reception time of data in the vehicle-mounted device; a transmission processing unit that transmits the delay time information registered in advance in the storage unit to a first other device that performs time synchronization with the in-vehicle device.
2. The in-vehicle device according to claim 1 , wherein the delay time information indicates both the first transmission delay time and the second transmission delay time.
3. 3. The in-vehicle device according to claim 1, wherein each of the measurement reference positions is located between a MAC (Medium Access Control) processing unit that performs processing of a MAC layer and a PHY (Physical) processing unit that performs processing of a PHY layer.
4. The in-vehicle device according to claim 1 , wherein the transmission processing unit transmits the delay time information to the first other device in response to establishment of a communication connection between the device itself and the first other device.
5. The in-vehicle device according to claim 1 , wherein the transmission processing unit transmits the delay time information by including it in information for time synchronization.
6. The in-vehicle device further comprises: a time synchronization unit that measures a propagation delay time between the second other device and the second other device by transmitting and receiving information for time synchronization between the second other device and the second other device, and performs time synchronization with the second other device based on the measured propagation delay time; 6. The in-vehicle device according to claim 1, wherein the time synchronization unit includes a correction unit that corrects the propagation delay time based on delay time information indicating a third transmission delay time from a measurement reference position of a data transmission time in the second other device to an outside, or a fourth transmission delay time from the outside to a measurement reference position of a data reception time in the second other device, transmitted from the second other device.
7. An in-vehicle device as described in any one of claims 1 to 6, wherein the transmission processing unit transmits the delay time information to the first other device periodically or irregularly.
8. A time synchronization method for an in-vehicle device, comprising: acquiring delay time information indicating a first transmission delay time from a measurement reference position of a transmission time of data to an outside in the vehicle-mounted device, or a second transmission delay time from the outside to a measurement reference position of a reception time of data in the vehicle-mounted device; a step of transmitting the acquired delay time information to another device that performs time synchronization with the device itself; the in-vehicle device includes a storage unit that stores the delay time information, A time synchronization method, comprising: acquiring the delay time information that is registered in advance in the storage unit in the step of acquiring the delay time information.
9. A time synchronization method in an in-vehicle communication system including a first in-vehicle device and a second in-vehicle device, a step of transmitting delay time information indicating a first transmission delay time from a measurement reference position of a transmission time of data in the first in-vehicle device to an outside, or a second transmission delay time from the outside to a measurement reference position of a reception time of data in the first in-vehicle device, to the second in-vehicle device; receiving the delay time information transmitted by the second in-vehicle device from the first in-vehicle device; a step of measuring a propagation delay time between the second in-vehicle device and the first in-vehicle device by transmitting and receiving information for time synchronization between the second in-vehicle device and the first in-vehicle device; a step of correcting the measured propagation delay time by the second in-vehicle device based on the delay time information received from the first in-vehicle device; and a step of the second in-vehicle device performing time synchronization with the first in-vehicle device based on the corrected propagation delay time.
Citation Information
Patent Citations
Transmission device, transmission system and communication control method
JP2013074527A
Network system, on-vehicle system, time synchronization method, node and program
JP2016005214A
Time synchronization controller, time synchronization control system, time synchronization control method, and time synchronization control program
JP2016219870A
Switch device, vehicle-mounted communication device, vehicle-mounted communication system, time correction method, and time correction program
WO2019171669A1
Communication device and communication system
WO2020054219A1