JP5190901B2 - COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD - Google Patents

COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD Download PDF

Info

Publication number
JP5190901B2
JP5190901B2 JP2011025240A JP2011025240A JP5190901B2 JP 5190901 B2 JP5190901 B2 JP 5190901B2 JP 2011025240 A JP2011025240 A JP 2011025240A JP 2011025240 A JP2011025240 A JP 2011025240A JP 5190901 B2 JP5190901 B2 JP 5190901B2
Authority
JP
Japan
Prior art keywords
data
time
transmission
communication
time difference
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2011025240A
Other languages
Japanese (ja)
Other versions
JP2011130486A (en
Inventor
広章 高田
亮 倉地
之宏 宮下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nagoya University NUC
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Tokai National Higher Education and Research System NUC
Original Assignee
Nagoya University NUC
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Tokai National Higher Education and Research System NUC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nagoya University NUC, Sumitomo Wiring Systems Ltd, AutoNetworks Technologies Ltd, Sumitomo Electric Industries Ltd, Tokai National Higher Education and Research System NUC filed Critical Nagoya University NUC
Priority to JP2011025240A priority Critical patent/JP5190901B2/en
Publication of JP2011130486A publication Critical patent/JP2011130486A/en
Application granted granted Critical
Publication of JP5190901B2 publication Critical patent/JP5190901B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Description

本発明は、複数の通信装置間でデータを送受信する通信システムに関する。特に、受信したデータの生成時点を簡易な構成により特定することができる通信装置、該通信装置を含む通信システム及び通信方法に関する。   The present invention relates to a communication system that transmits and receives data between a plurality of communication devices. In particular, the present invention relates to a communication device that can specify a generation point of received data with a simple configuration, a communication system including the communication device, and a communication method.

近年では、複数の通信装置を接続し、各通信装置に夫々機能を割り振って相互にデータを交換し、連携して多様な処理を行なわせるシステムが各分野で利用されている。例えば、車両に配される車載LAN(Local Area Network)の分野では、通信装置としてECU(電子制御装置;Electronic Control Unit)を用い、各ECUに夫々特化させた処理を行なわせて相互にデータを交換することにより、システムとして多様な機能を実現させている。   In recent years, systems that connect a plurality of communication devices, assign functions to the communication devices, exchange data with each other, and perform various processes in cooperation have been used in various fields. For example, in the field of an in-vehicle LAN (Local Area Network) arranged in a vehicle, an ECU (Electronic Control Unit) is used as a communication device, and each ECU performs a specialized process to exchange data with each other. By exchanging, various functions are realized as a system.

内容が時々刻々と変化するようなデータを複数の通信装置間で交換して処理を行なう場合、各データには有効期間がある。車載LANの分野でECUが行なう制御が安全面に関する場合、極端に古いデータが用いられると問題となる可能性がある。   When processing is performed by exchanging data whose contents change from moment to moment among a plurality of communication apparatuses, each data has a valid period. When the control performed by the ECU in the field of in-vehicle LAN is related to safety, there is a possibility that a problem may occur if extremely old data is used.

特許文献1には、データの到着期限時刻に基づく優先度に従った順に各ECUがデータの送受信を制御する構成により、到着期限時刻を超えて到着するデータを最小とする技術が開示されている。特許文献1に開示されている技術では、到着期限時刻は絶対時刻とし、各ECUは同期された基準時刻を計測する時刻計測手段を用いて到着期限時刻までの時間が短いデータほど優先的に送信するようにしてある。   Patent Document 1 discloses a technique for minimizing data arriving after the arrival deadline time by a configuration in which each ECU controls transmission and reception of data in the order according to the priority based on the arrival deadline time of data. . In the technique disclosed in Patent Document 1, the arrival deadline time is an absolute time, and each ECU transmits data with a shorter time until the arrival deadline time using a time measurement unit that measures a synchronized reference time. I have to do it.

特開2007−295081号公報JP 2007-295081 A

特許文献1に示すように、各ECUが同期された基準時刻を計測する構成とすることにより、各ECUは他の通信装置で計測されたデータの生成時刻を共に受信することで、データが生成された時点を正確に認識することができる。   As shown in Patent Document 1, each ECU is configured to measure a synchronized reference time, so that each ECU receives data generation times measured by other communication devices, thereby generating data. Can be accurately recognized.

相互に接続される通信装置が備えるタイマーなどの計時手段により計測される時間を同期するための方法は、種々の方法がある。しかしながら、時間を同期させるためには、各通信装置が自身の計時手段により計測される時間を一の通信装置から送信される基準時刻に合わせる処理を行なう構成、又は、各通信装置がGPS(Global Positioning System)受信機能を備える構成等が必要となる。   There are various methods for synchronizing the time measured by time measuring means such as a timer provided in the communication devices connected to each other. However, in order to synchronize the time, a configuration in which each communication device performs a process of matching the time measured by its own clocking means with a reference time transmitted from one communication device, or each communication device has GPS (Global Positioning System) A configuration with a receiving function is required.

本発明は斯かる事情に鑑みてなされたものであり、各通信装置が備える計時手段によって計測される時間を同期させることなしに、簡易な構成で他の通信装置から受信したデータの生成時点を正確に特定することができる通信装置、該通信装置を含む通信システム及び通信方法を提供することを目的とする。   The present invention has been made in view of such circumstances, and the generation time point of data received from another communication device can be determined with a simple configuration without synchronizing the time measured by the time measuring means included in each communication device. It is an object of the present invention to provide a communication device that can be specified accurately, a communication system including the communication device, and a communication method.

第1発明に係る通信装置は、計時手段と、通信線を介してデータの送受信を行なう通信手段と、前記通信線を監視し、該通信線を介して、他の装置が通信中ではなく、かつ他の装置が送信を開始しようとしている場合には、該他の装置との調停に勝って優先的にデータを送信することが可能なときに、前記通信手段によるデータの送信が可と判断する送信可否判断手段と、データが生成された生成時点、及び、前記送信可否判断手段により可の判断がされて前記データの送信を開始する送信開始時点の間の時間差を求める手段と、求めた時間差を示す時間差情報を前記データに付加する手段と、時間差情報が付加されたデータを前記通信手段により受信した場合、受信開始時点を前記計時手段による計時に基づき特定する手段と、前記時間差情報及び前記受信開始時点に基づき、データの生成時点を特定する特定手段とを備えることを特徴とする。   The communication device according to the first invention is a timing device, a communication device that transmits and receives data via a communication line, and monitors the communication line, and other devices are not communicating via the communication line, When another device is about to start transmission, it is determined that the data can be transmitted by the communication means when it is possible to preferentially transmit data over the arbitration with the other device. And a means for obtaining a time difference between a generation time when the data is generated and a transmission start time at which transmission is determined by the transmission permission determination means and transmission of the data is started. Means for adding time difference information indicating a time difference to the data, means for specifying the reception start time based on the time measured by the time measuring means when the data with time difference information added is received by the communication means, and the time difference Based on the broadcast and the reception start time point, characterized by comprising a specifying means for specifying the time of generation of the data.

第2発明に係る通信装置は、前記送信可否判断手段が送信可であると判断した場合、前記計時手段によりデータの送信開始時点を取得する手段と、取得した送信開始時点、及び前記データの生成時点の間の時間差を求める手段とを備え、求めた時間差を示す時間差情報を、送信を開始している前記データに付加するようにしてあることを特徴とする。   In the communication device according to the second invention, when the transmission permission determination means determines that transmission is possible, the time measuring means acquires a data transmission start time, the acquired transmission start time, and the generation of the data Means for obtaining a time difference between time points, and time difference information indicating the obtained time difference is added to the data that has started transmission.

第3発明に係る通信装置は、計時手段と、通信線を介してデータの送受信を行なう通信手段と、前記通信線を監視し、該通信線を介して、他の装置が通信中ではなく、かつ他の装置が送信を開始しようとしている場合には、該他の装置との調停に勝って優先的にデータを送信することが可能なときに、前記通信手段によるデータの送信が可と判断する送信可否判断手段と、データを送信する送信開始時点を決定する決定手段と、決定した送信開始時点、及び前記データが生成された生成時点の間の時間差を前記計時手段に基づき求める手段と、求めた時間差を示す時間差情報を前記データに付加する手段と、前記決定手段が決定した送信開始時点に到達したか否かを前記計時手段による計時に基づき判断する手段と、前記送信開始時点に到達したと判断した場合に、前記通信手段による前記データ及び該データに付加されている時間差情報の送信を試みる手段と、時間差情報が付加されたデータを前記通信手段により受信した場合、受信開始時点を前記計時手段による計時に基づき特定する手段と、前記時間差情報及び前記受信開始時点に基づき、データの生成時点を特定する特定手段とを備え、前記送信可否判断手段が不可と判断した場合、前記決定手段により次に送信を開始する送信開始時点を再決定し、時間差を求め直して送信を再度試みるようにしてあることを特徴とする。 A communication device according to a third aspect of the present invention is a timekeeping means, a communication means for transmitting / receiving data via a communication line, and monitoring the communication line, and other devices are not communicating via the communication line, When another device is about to start transmission, it is determined that the data can be transmitted by the communication means when it is possible to preferentially transmit data over the arbitration with the other device. Means for determining whether to transmit, determining means for determining a transmission start time for transmitting data, means for determining a time difference between the determined transmission start time and the generation time at which the data is generated based on the time measuring means , Means for adding time difference information indicating the obtained time difference to the data; means for determining whether or not the transmission start time determined by the determination means has been reached; If it is determined that, means for attempting transmission time difference information added to the data and the data by the communication means, when received by the communication means additional data time difference information, the reception start time point the A means for specifying based on timekeeping by a time measuring means; a specifying means for specifying a data generation time based on the time difference information and the reception start time; and when the transmission availability determination means determines that the transmission is not possible, the determination means Then, the transmission start point at which transmission is started next is re-determined, the time difference is obtained again, and transmission is retried.

第4発明に係る通信装置は、時間差情報が付加されたデータを前記通信手段により受信した場合、前記データを更に他の通信装置へ前記通信手段により転送する手段と、前記特定手段により特定したデータの生成時点、及びデータの転送開始時点の間の時間差を求める手段と、求めた時間差を示す時間差情報を、転送するデータに付加される時間差情報とする手段とを備えることを特徴とする。   When the communication device according to the fourth aspect of the invention receives the data to which the time difference information is added by the communication device, the communication device further transfers the data to another communication device by the communication device, and the data specified by the specifying device. Means for obtaining a time difference between the generation time of the data and the data transfer start time, and means for using the time difference information indicating the obtained time difference as time difference information added to the data to be transferred.

第5発明に係る通信システムは、通信装置を複数含む通信システムにおいて、各通信装置は、計時手段と、通信線を介してデータの送受信を行う通信手段と、前記通信線を監視し、該通信線を介して、他の装置が通信中ではなく、かつ他の装置が送信を開始しようとしている場合には、該他の装置との調停に勝って優先的にデータを送信することが可能なときに、前記通信手段によるデータの送信が可と判断する送信可否判断手段と、データが生成された生成時点、及び、前記送信可否判断手段により可の判断がされて前記データの送信を開始する送信開始時点の間の時間差を求める手段と、求めた時間差を示す時間差情報を前記データに付加する手段と、時間差情報が付加されたデータを前記通信手段により受信した場合、受信開始時点を前記計時手段による計時に基づき特定する手段と、前記時間差情報及び前記受信開始時点に基づき、データの生成時点を特定する特定手段とを備えることを特徴とする通信システム。   A communication system according to a fifth aspect of the present invention is a communication system including a plurality of communication devices, wherein each communication device monitors a communication means for transmitting and receiving data via a communication line, and monitoring the communication line. If another device is not communicating via the line and the other device is about to start transmission, it is possible to preferentially transmit data over the arbitration with the other device. Sometimes, the transmission means for judging whether the data can be transmitted by the communication means, the generation time point when the data is generated, and the transmission is judged by the transmission possibility judgment means, and the transmission of the data is started. Means for obtaining a time difference between the transmission start time points, means for adding time difference information indicating the obtained time difference to the data, and when the data with time difference information added are received by the communication means, Serial communication system for the particular to means based on time measurement by the time measuring means, based on the time difference information and the reception start time point, comprising: a specifying means for specifying the time of generation of the data.

第6発明に係る通信方法は、計時手段及び通信手段を備える通信装置が、前記通信手段により通信線を介してデータを送受信する方法において、前記通信装置は、通信線を監視し、該通信線を介して、他の装置が通信中ではなく、かつ他の装置が送信を開始しようとしている場合には、該他の装置との調停に勝って優先的にデータを送信することが可能なときに、前記通信手段によるデータの送信が可と判断し、送信可と判断した場合、データの送信を開始し、前記計時手段により前記データの送信開始時点を取得し、取得した送信開始時点、及び前記データが生成された生成時点の間の時間差を求め、求めた時間差を示す時間差情報を、送信を開始している前記データに付加して送信することを特徴とする。   A communication method according to a sixth aspect of the present invention is a method in which a communication device including a time measuring unit and a communication unit transmits and receives data via the communication line by the communication unit, the communication device monitors the communication line, and the communication line When other devices are not communicating via the network, and other devices are about to start transmission, when it is possible to preferentially transmit data over the arbitration with the other devices In addition, when it is determined that transmission of data by the communication unit is possible, and when it is determined that transmission is possible, the transmission of data is started, the transmission start point of the data is acquired by the timing unit, the acquired transmission start point, and A time difference between generation points at which the data is generated is obtained, and time difference information indicating the obtained time difference is added to the data that has been transmitted and transmitted.

第7発明に係る通信方法は、計時手段及び通信手段を備える通信装置が、前記通信手段により通信線を介してデータを送受信する方法において、前記通信装置は、通信線を監視し、該通信線を介して、他の装置が通信中ではなく、かつ他の装置が送信を開始しようとしている場合には、該他の装置との調停に勝って優先的にデータを送信することが可能なときに、前記通信手段によるデータの送信が可と判断し、データを送信する送信開始時点を決定し、決定した送信開始時点及び前記データが生成された生成時点の時間差を求め、求めた時間差を示す時間差情報を前記データに付加し、決定した送信開始時点に到達したか否かを判断し、送信開始時点に到達したと判断した場合、前記通信手段による前記データ及び該データに付加されている時点差情報の送信を試み、前記通信線を監視して前記通信手段によるデータの送信の可否を判断し、前記データの送信を不可と判断した場合、次に送信を開始する送信開始時点を再決定し、時間差を求め直して送信を再度試みることを特徴とする。   According to a seventh aspect of the present invention, there is provided a communication method in which a communication device including a timing unit and a communication unit transmits and receives data via a communication line by the communication unit. The communication device monitors the communication line, and the communication line When other devices are not communicating via the network, and other devices are about to start transmission, when it is possible to preferentially transmit data over the arbitration with the other devices In addition, it is determined that data transmission by the communication means is possible, a transmission start time point at which data is transmitted is determined, a time difference between the determined transmission start time point and a generation time point at which the data is generated is obtained, and the obtained time difference is indicated. The time difference information is added to the data, and it is determined whether or not the determined transmission start time has been reached. If it is determined that the transmission start time has been reached, the communication means adds the data and the data. Attempts to transmit time difference information, monitors the communication line to determine whether or not data transmission by the communication means is possible. It is characterized in that it is determined, the time difference is obtained again, and transmission is attempted again.

第1発明及び第5発明では、データが生成された生成時点、及び、前記データの送信が実際に可能となって送信が開始される送信開始時点の間の時間差を示す時間差情報がデータに付加される。送信開始から受信開始までの時間差が無視できれば、受信開始時点よりも時間差情報が示す時間差の分過去の時点がデータが生成された時点である。   In the first invention and the fifth invention, time difference information indicating a time difference between a generation time when data is generated and a transmission start time at which the transmission of the data is actually possible and transmission is started is added to the data. Is done. If the time difference from the start of transmission to the start of reception can be ignored, the time point past the time difference indicated by the time difference information from the reception start time point is the time point when the data is generated.

第2発明及び第6発明では、送信可と判断されてデータの送信が開始された送信開始時点が取得され、前記データの生成時点との時間差が求められる。これにより、実際に送信が開始された正確な送信開始時点の情報に基づき時間差が求められ、送信中のデータに付加されて送信される。   In the second and sixth aspects of the invention, a transmission start time when data transmission is determined to be permitted and data transmission is started is obtained, and a time difference from the data generation time is obtained. As a result, a time difference is obtained based on information on the accurate transmission start time at which transmission is actually started, and is added to the data being transmitted and transmitted.

第3発明及び第7発明では、データの送信開始時点を予め決定しておき、決定した送信開始時点と前記データの生成時点との時間差が予め求められて時間差情報がデータに付加される。送信開始時点に到達して送信が試みられ、送信可と判断されて送信が開始された場合、送信中のデータに既に付加されている時間差情報が表わす時間差は正確である。送信不可と判断されて送信が開始されない場合は、次の送信の機会に合わせて送信開始時点が再決定され、時間差情報が再び求められて送信が試みられる。これにより、送信中のデータに時間差情報を付加することが困難な場合でも簡易な構成で正確な生成時点を特定可能な時間差情報を付加することができる。   In the third and seventh aspects of the invention, a data transmission start time is determined in advance, a time difference between the determined transmission start time and the data generation time is obtained in advance, and time difference information is added to the data. When transmission is attempted when transmission is reached and transmission is determined to be possible and transmission is started, the time difference represented by the time difference information already added to the data being transmitted is accurate. If it is determined that transmission is not possible and transmission is not started, the transmission start time is re-determined in accordance with the next transmission opportunity, time difference information is obtained again, and transmission is attempted. Thereby, even when it is difficult to add time difference information to the data being transmitted, it is possible to add time difference information that can specify an accurate generation time point with a simple configuration.

第4発明では、他の通信装置から受信したデータを転送する場合も、転送を行なう通信装置における計時手段に基づいて、データの生成時点から転送開始までの時間差が求められて付加される。これにより、複数の通信装置を介してデータが転送される場合も、データを受信した通信装置は共に受信する時間差情報に基づき自身の計時手段により計測される時間に基づく正確なデータの生成時点を特定することが可能となる。   In the fourth aspect of the invention, when transferring data received from another communication device, a time difference from the data generation time to the start of transfer is obtained and added based on the time measuring means in the communication device that performs the transfer. As a result, even when data is transferred via a plurality of communication devices, the communication device that has received the data determines the accurate data generation time based on the time measured by its own time measuring means based on the time difference information received together. It becomes possible to specify.

本発明による場合、各通信装置が備える計時手段により測定される時間を同期させることなしに、送受信されるデータの生成時点を簡易な構成により正確に特定することができる。   According to the present invention, it is possible to accurately specify the generation time point of transmitted / received data with a simple configuration without synchronizing the time measured by the time measuring unit included in each communication device.

実施の形態1における車載通信システムの構成を示す構成図である。1 is a configuration diagram showing a configuration of an in-vehicle communication system in a first embodiment. 実施の形態1におけるECUの制御部がデータを生成し、時間差情報と共に送信する通信処理手順の一例を示すフローチャートである。4 is a flowchart illustrating an example of a communication processing procedure in which the control unit of the ECU according to the first embodiment generates data and transmits the data together with time difference information. 実施の形態1におけるECUの制御部又は中継装置の制御部がデータを受信して生成時点を特定する処理の一例を示すフローチャートである。6 is a flowchart illustrating an example of processing in which a control unit of an ECU or a control unit of a relay device in Embodiment 1 receives data and specifies a generation time point. 実施の形態1における中継装置の制御部がデータを転送する際の通信処理手順の一例を示すフローチャートである。6 is a flowchart illustrating an example of a communication processing procedure when the control unit of the relay device in Embodiment 1 transfers data. 実施の形態1におけるECU及び中継装置により送受信されたデータの生成時点が、いずれのECU又は中継装置でも正しく特定される過程を示す説明図である。It is explanatory drawing which shows the process in which the production | generation time of the data transmitted / received by ECU in Embodiment 1 and the relay apparatus is correctly specified by any ECU or relay apparatus. 実施の形態2におけるECUの制御部がデータを生成し、時間差情報と共に送信する通信処理手順の一例を示すフローチャートである。6 is a flowchart illustrating an example of a communication processing procedure in which a control unit of an ECU according to Embodiment 2 generates data and transmits the data together with time difference information. 実施の形態2における中継装置の制御部がデータを転送する際の通信処理手順の一例を示すフローチャートである。10 is a flowchart illustrating an example of a communication processing procedure when the control unit of the relay apparatus according to the second embodiment transfers data.

以下、本発明をその実施の形態を示す図面に基づいて具体的に説明する。なお、以下の実施の形態1及び2では、車両に配されて相互にデータの送受信を行なう複数のECUを含む車載通信システムに本発明を適用した場合を例に挙げて説明する。   Hereinafter, the present invention will be specifically described with reference to the drawings showing embodiments thereof. In the following first and second embodiments, a case where the present invention is applied to an in-vehicle communication system including a plurality of ECUs arranged in a vehicle and transmitting / receiving data to / from each other will be described as an example.

(実施の形態1)
図1は、実施の形態1における車載通信システムの構成を示す構成図である。実施の形態1における車載通信システムは、データを送受信する通信装置であるECU1,1,…と、ECU1,1,…間のデータの送受信を中継する中継装置2a,2b,…と、ECU1,1,…及び中継装置2a,2b,…間を接続する通信線3a,3b,…とを含む。
(Embodiment 1)
FIG. 1 is a configuration diagram showing the configuration of the in-vehicle communication system in the first embodiment. The in-vehicle communication system according to the first embodiment includes ECUs 1, 1,... That are communication devices that transmit and receive data, relay devices 2a, 2b,. ,... And relay devices 2a, 2b,..., And communication lines 3a, 3b,.

ECU1,1,…は異なる通信線3a,3b,…に夫々バス型に接続されている。中継装置2aは通信線3a,3bの両方と接続されており、通信線3a,3bに夫々接続されているECU1,1,…間のデータの送受信を中継するようにしてある。同様に中継装置2bは、通信線3b,3cの両方と接続されており、通信線3b,3cに夫々接続されているECU1,1,…間のデータの送受信を中継する。   The ECUs 1, 1,... Are connected to different communication lines 3a, 3b,. The relay device 2a is connected to both the communication lines 3a and 3b, and relays data transmission / reception between the ECUs 1, 1,... Connected to the communication lines 3a and 3b, respectively. Similarly, the relay device 2b is connected to both the communication lines 3b and 3c, and relays data transmission / reception between the ECUs 1, 1,... Connected to the communication lines 3b and 3c, respectively.

ECU1,1,…は夫々、各構成部の動作を制御する制御部10と、制御に必要なデータを記憶する記憶部11と、計時部12と、通信線3a,3b,…を介した通信を制御する通信制御部13とを備える。   Each of the ECUs 1, 1,... Communicates via a control unit 10 that controls the operation of each component, a storage unit 11 that stores data necessary for control, a time measuring unit 12, and communication lines 3a, 3b,. The communication control part 13 which controls this is provided.

ECU1の制御部10は、図示しない車両のバッテリー、オルタネータ等の電力供給装置から電力の供給を受けて各構成部の動作を制御するようにしてある。   The control unit 10 of the ECU 1 receives power supplied from a power supply device such as a vehicle battery and an alternator (not shown) to control the operation of each component.

記憶部11は揮発性のメモリを利用し、制御部10は処理の過程で発生する各種情報、後述するようにセンサから入力された信号が表す測定値又は中継装置2a,2b,…によって中継されたデータを一時的に記憶部11に記憶する。   The storage unit 11 uses a volatile memory, and the control unit 10 is relayed by various information generated in the course of processing, measured values represented by signals input from sensors or relay devices 2a, 2b,. The stored data is temporarily stored in the storage unit 11.

計時部12は、所定の周波数で計数することによって時間の経過を測定する。例えば計時部12は、所定の基準時点からの経過時間を測定している。計時部12における基準時点は電力の供給を受けた時点でもよいし、任意の時刻(例えばUTC;Coordinated Universal Time)でもよい。制御部10は、計時部12から任意のタイミングでの時間情報を取得する。なお、制御部10が計時部12から取得する時間情報が表わす時間は、ECU1,1,…夫々におけるローカルタイムであって同期されている必要がない。   The timer 12 measures the passage of time by counting at a predetermined frequency. For example, the time measuring unit 12 measures an elapsed time from a predetermined reference time. The reference time point in the time measuring unit 12 may be a time point at which power is supplied, or an arbitrary time (for example, UTC; Coordinated Universal Time). The control unit 10 acquires time information at an arbitrary timing from the time measuring unit 12. Note that the time indicated by the time information acquired by the control unit 10 from the time measuring unit 12 is a local time in each of the ECUs 1, 1,... And does not need to be synchronized.

通信制御部13は、ネットワークコントローラチップを有して通信線3a,3b,…のいずれかを介した通信を実現する。なお、ECU1,1,…及び中継装置2a,2b,…間ではCAN(Controller Area Network)のプロトコルに順じてデータを送受信するようにしてある。したがって通信制御部12は、CANプロトコルに基づき通信線3a,3bを介してデータを送受信する。例えば通信線3aに接続されているECU1の制御部10は、通信制御部12により通信線3aにおける通信状況をモニタし、自身がデータを送信可能であるか否かを判断し、送信可能である場合にデータを送信する。具体的には、通信線3aに接続されている一のECU1は、同様に通信線3aに接続されている他のECU1,1,…又は中継装置2aがデータが送信していない場合に、通信制御部12によりデータを送信することができる。なお、通信線3aに接続されているECU1,1,…及び中継装置2aのいずれか複数が同時にデータの送信を開始しようとした場合、調停によっていずれかが優先的にデータを送信することが可能である。具体的には、CANプロトコルに準じて送受信されるデータの先頭に付加されるヘッダ中に、調停のためのアービトレーションフィールドが含まれており、アービトレーションフィールド内のビット列により通信線3aにおける調停が行なわれ、調停に勝った一のECU1又は中継装置2aのみが送信を継続することができる。また、通信線3aに接続されているECU1,1,…及び中継装置2aのいずれかが通信線3aを介してデータを送信している場合、通信線3aに接続されている他のECU1,1,…又は中継装置2aは同時にデータを受信する。   The communication control unit 13 has a network controller chip and realizes communication via any one of the communication lines 3a, 3b,. .. And the relay devices 2a, 2b,... Transmit and receive data in accordance with a CAN (Controller Area Network) protocol. Therefore, the communication control unit 12 transmits and receives data via the communication lines 3a and 3b based on the CAN protocol. For example, the control unit 10 of the ECU 1 connected to the communication line 3a monitors the communication status on the communication line 3a by the communication control unit 12, determines whether or not it can transmit data, and can transmit it. Send data in case. Specifically, one ECU 1 connected to the communication line 3a communicates when other ECUs 1, 1,... Connected to the communication line 3a or the relay device 2a are not transmitting data. Data can be transmitted by the control unit 12. When any one of the ECUs 1, 1,... And the relay device 2a connected to the communication line 3a tries to start data transmission at the same time, any one can preferentially transmit data by arbitration. It is. Specifically, an arbitration field for arbitration is included in the header added to the head of data transmitted / received according to the CAN protocol, and arbitration is performed on the communication line 3a by a bit string in the arbitration field. Only one ECU 1 or relay device 2a that has won the arbitration can continue transmission. Further, when any of the ECUs 1, 1,... Connected to the communication line 3a and the relay device 2a transmit data via the communication line 3a, the other ECUs 1, 1 connected to the communication line 3a. ,... Or the relay apparatus 2a simultaneously receives data.

このように構成されるECU1,1,…は測定値、計算値、制御値等の各種物理量の数値情報を含むデータの送信又はエンジン、ブレーキ等のマイクロコンピュータによる制御が可能な装置である。例えば、通信線3aに接続されている一のECU1はABS(Antilock Brake System)として機能し、車輪の回転速度(車輪速)を検知する図示しないセンサと接続されている。このECU1は、車両の制動時にセンサを介して検知した車輪速に基づいてブレーキを制御すると共に、車輪速の測定値をデータとして通信線3aを介して他のECU1,1,…及び中継装置2aへ送信する。   The ECUs 1, 1,... Configured as described above are devices that can transmit data including numerical information of various physical quantities such as measured values, calculated values, and control values, or can be controlled by a microcomputer such as an engine and a brake. For example, one ECU 1 connected to the communication line 3a functions as an ABS (Antilock Brake System), and is connected to a sensor (not shown) that detects the rotational speed (wheel speed) of the wheel. The ECU 1 controls the brake based on the wheel speed detected via the sensor during braking of the vehicle, and also uses the measured value of the wheel speed as data to communicate with the other ECUs 1, 1,... And the relay device 2a via the communication line 3a. Send to.

そしてECU1,1,…は測定値、計算値、制御値等の各種物理量の数値情報を含むデータを送信するに際し、データの生成時点、例えばセンサを介して車輪速の測定値を検知した時点を特定するための情報をデータの後ろに付加して送信する。詳細には、ECU1,1,…の制御部10は、生成時点からデータの送信開始時点までの時間差を表わす時間差情報を付加する。また、データを受信したECU1,1,…は受信したデータの生成時点を参照する必要がある場合、データに付加されている時間差情報を用い受信開始時点から時間差情報が表わす時間差分前の時点を生成時点と特定して用いる。   The ECUs 1, 1,... Transmit data including numerical information of various physical quantities such as measured values, calculated values, control values, etc., when data is generated, for example, when wheel speed measured values are detected via sensors. Information for identification is added after the data and transmitted. Specifically, the control unit 10 of the ECUs 1, 1,... Adds time difference information representing a time difference from the generation time point to the data transmission start time point. In addition, when it is necessary for the ECUs 1, 1,. It is specified as the generation time.

中継装置2aは、各構成部の動作を制御する制御部20と、各種情報を記憶する記憶部21と、計時部22と、通信線3a及び3bに接続される通信部23とを備える。中継装置2b,2c,…の内部構成は中継装置2aの内部構成と同様であるので詳細な説明を省略する。   The relay device 2a includes a control unit 20 that controls the operation of each component, a storage unit 21 that stores various types of information, a timing unit 22, and a communication unit 23 connected to the communication lines 3a and 3b. The internal configuration of the relay devices 2b, 2c,... Is the same as the internal configuration of the relay device 2a, and detailed description thereof is omitted.

制御部20はMPU(Micro Processing Unit)を利用し、図示しない車両のオルタネータ、バッテリー等の電力供給装置から電力の供給を受けて各構成部の動作を制御するように構成してある。   The control unit 20 uses an MPU (Micro Processing Unit), and is configured to receive power from a power supply device (not shown) such as an alternator of a vehicle or a battery to control the operation of each component.

記憶部21は、揮発性のメモリを利用し、ECU1,1,…から受信したデータを一時的に記憶する。また、制御部20の処理の過程で発生して用いられる各種情報が記憶部21に記憶される。   The memory | storage part 21 memorize | stores temporarily the data received from ECU1,1, ... using a volatile memory. Various kinds of information generated and used in the process of the control unit 20 are stored in the storage unit 21.

計時部22は、所定の周波数で計数することによって時間の経過を測定する。例えば計時部22は、所定の基準時点からの経過時間を測定している。基準時点は、ECU1,1,…における計時部12同様に、電力の供給を受けた時点でもよいし、任意の時刻(例えばUTC)でもよい。制御部20は、計時部22から任意のタイミングでの時間情報を取得する。計時部22から取得される時間情報が表わす時間は、中継装置2a,2b,…におけるローカルタイムであって、他の中継装置2a,2b,…及びECU1,1,…の計時部22及び計時部12とと同期されている必要がない。   The timer unit 22 measures the passage of time by counting at a predetermined frequency. For example, the timer unit 22 measures an elapsed time from a predetermined reference time. The reference time point may be a time point at which power is supplied, or may be an arbitrary time (for example, UTC), like the time measuring unit 12 in the ECUs 1, 1,. The control unit 20 acquires time information at an arbitrary timing from the time measuring unit 22. The time represented by the time information acquired from the timer unit 22 is the local time in the relay devices 2a, 2b,..., And the timer units 22 and timer units of the other relay devices 2a, 2b,. 12 need not be synchronized.

通信部23は、通信線3a,3b,…を介して接続しているECU1,1,…とのデータの送受信を実現する。即ち、CANプロトコルに準じてデータを送受信する。なお、通信部23は、複数のポートを有して夫々異なる通信線3a,3b,…に接続しデータを送受信することが可能である。通信線3a,3bに接続されている中継装置2aの制御部20は、通信部23により通信線3aにおける通信状況をモニタし、自身がデータを送信可能であるか否かを判断し、送信可能である場合に通信線3aを介してデータを送信する。同様に、中継装置2aは、通信部23により通信線3bにおける通信状況をモニタし、自身がデータを送信可能であるか否かを判断し、送信可能である場合に通信線3bを介してデータを送信する。なお、通信部23は異なるポートによる送受信を同時に実行可能である。   The communication unit 23 realizes data transmission / reception with the ECUs 1, 1,... Connected via the communication lines 3a, 3b,. That is, data is transmitted and received according to the CAN protocol. The communication unit 23 has a plurality of ports and can connect to different communication lines 3a, 3b,... To transmit and receive data. The control unit 20 of the relay device 2a connected to the communication lines 3a and 3b monitors the communication status on the communication line 3a by the communication unit 23, determines whether or not it can transmit data, and can transmit the data. If so, data is transmitted via the communication line 3a. Similarly, the relay device 2a monitors the communication status on the communication line 3b by the communication unit 23, determines whether or not it can transmit data, and if it can transmit data, the data is transmitted via the communication line 3b. Send. Note that the communication unit 23 can simultaneously perform transmission and reception through different ports.

このように構成される中継装置2a,2b,…の制御部20は、通信部23を介してECU1,1,…から受信したデータを、受信ポートと異なるポートから他のECU1,1,…へ転送するに際し、データに付加して送信されているデータの生成時点を特定するための時間差情報も転送する。ただし制御部20は時間差情報を変更してから転送する。具体的には、制御部20は受信したデータに付加されている時間差情報が示す時間差に、受信開始時点から転送開始時点までの時間差を加算して生成時点から転送開始時点までの時間差を求め、転送するデータに付加されている時間差情報を、求めた時間差を示す時間差情報に変更してから転送する。   The control unit 20 of the relay apparatuses 2a, 2b,... Configured as described above transfers data received from the ECUs 1, 1,... Via the communication unit 23 from other ports to the other ECUs 1, 1,. At the time of transfer, time difference information for specifying the generation time point of the data that is added to the data and transmitted is also transferred. However, the control unit 20 transfers the time difference information after changing it. Specifically, the control unit 20 adds the time difference from the reception start time to the transfer start time to the time difference indicated by the time difference information added to the received data to obtain the time difference from the generation time to the transfer start time, The time difference information added to the data to be transferred is changed to time difference information indicating the obtained time difference and then transferred.

図2は、実施の形態1におけるECU1,1,…の制御部10がデータを生成し、時間差情報と共に送信する通信処理手順の一例を示すフローチャートである。なお、以下に示すフローチャートは、通信線3aに接続されている一のECU1の制御部10による処理を示す。他のECU1,1,…の制御部10による処理も同様である。   FIG. 2 is a flowchart illustrating an example of a communication processing procedure in which the control unit 10 of the ECUs 1, 1,... In Embodiment 1 generates data and transmits the data together with time difference information. In addition, the flowchart shown below shows the process by the control part 10 of one ECU1 connected to the communication line 3a. The processing by the control unit 10 of the other ECUs 1, 1,.

制御部10は、センサを介して測定値を検知した場合、他のデータを受信したことを契機に算出した計算値が得られた場合、又は、制御対象の制御値が得られた場合、各種物理量の数値情報を含むデータを生成する(ステップS11)。この際に制御部10は、データを生成した時点、即ちデータ生成時点(Tc(0) )を計時部12により取得する(ステップS12)。 The control unit 10 detects a measurement value via a sensor, obtains a calculated value triggered by receiving other data, or obtains a control value to be controlled. Data including numerical information on the physical quantity is generated (step S11). At this time, the control unit 10 acquires the time point when the data is generated, that is, the data generation time point (Tc (0) ) by the time measuring unit 12 (step S12).

なお、以下の説明では上述のステップS12におけるデータ生成時点(Tc(0) )のように各時点情報を表わす代数の肩に数字を示す。当該数字は、いずれの装置におけるローカルタイムで表わされた時間情報であるかを説明するための任意の自然数(k)であり、データの中継回数に相当する。例えば、ステップS12におけるデータ生成時点(Tc(0) )の「0(ゼロ)」は、データが生成された装置(データの起点の装置)におけるローカルタイムで表わされた時間情報であることを示す。なお肩に示される数字は、送受信される時間差情報に含まれなくてよい。 In the following description, a number is shown on the shoulder of the algebra representing each time point information, such as the data generation time point (Tc (0) ) in step S12 described above. The number is an arbitrary natural number (k) for explaining which device is the time information represented by the local time, and corresponds to the number of data relays. For example, “0 (zero)” at the data generation time point (Tc (0) ) in step S12 indicates that the time information is represented by the local time in the device in which the data is generated (the data starting device). Show. Note that the number shown on the shoulder does not have to be included in the transmitted / received time difference information.

制御部10は、ステップS11で生成したデータの送信を通信制御部13により試み、送信開始に成功したか否かを判断する(ステップS13)。制御部10は、通信線3aに接続されている他のECU1,1,…又は中継装置2aが通信中であるか、又はデータの送信を開始したが調停に負けたことによって送信開始に失敗したと判断した場合(S13:NO)、処理をステップS13へ戻して送信を開始できるまで待機する。制御部10は、この場合他のECU1,1,…又は中継装置2aから送信されるデータを通信制御部13により受信する。   The control unit 10 attempts transmission of the data generated in step S11 by the communication control unit 13, and determines whether or not transmission has been successfully started (step S13). The control unit 10 has failed to start transmission because another ECU 1, 1,... Connected to the communication line 3a or the relay device 2a is communicating, or has started transmission of data but lost to arbitration. (S13: NO), the process returns to step S13 and waits until transmission can be started. In this case, the control unit 10 receives the data transmitted from the other ECUs 1, 1,... Or the relay device 2a by the communication control unit 13.

制御部10は、他のECU1,1,…及び中継装置2aが通信中でなく、データの送信を開始し且つ調停に勝ったことによって送信開始に成功したと判断した場合(S13:YES)、送信開始時点(Ts(0) )を計時部12により取得する(ステップS14)。厳密には、送信開始時点(Ts(0) )はアービトレーションフィールドの終端の送信時点を示す。 When the control unit 10 determines that the other ECUs 1, 1,... And the relay device 2a are not in communication and have started transmission by starting data transmission and winning arbitration (S13: YES), The transmission start time (Ts (0) ) is acquired by the time measuring unit 12 (step S14). Strictly speaking, the transmission start time (Ts (0) ) indicates the transmission time at the end of the arbitration field.

制御部10は、送信開始時点(Ts(0) )とデータの生成時点(Tc(0) )との間の時間差(Td(0) =Ts(0) −Tc(0) )を算出し(ステップS15)、時間差(Td(0) )を示す時間差情報を送信中のデータに通信制御部13により付加し(ステップS16)、送信を完了させて処理を終了する。 The control unit 10 calculates a time difference (Td (0) = Ts (0) −Tc (0) ) between the transmission start time (Ts (0) ) and the data generation time (Tc (0) ) ( In step S15), the time difference information indicating the time difference (Td (0) ) is added to the data being transmitted by the communication control unit 13 (step S16), the transmission is completed, and the process ends.

このように、制御部10は実際に送信が開始された正確な送信開始時点(Ts(0) )の情報に基づき時間差が求められ、送信中のデータに付加されて送信される。 In this way, the control unit 10 obtains a time difference based on information on the accurate transmission start time (Ts (0) ) at which transmission is actually started, and is added to the data being transmitted and transmitted.

なお、通信制御部13がCANプロトコルに準じて通信処理を行なう場合、ステップS16における時間差情報の付加は以下のような処理によって実現させる。通信制御部13は、データを送信するに際し、データの先頭にアービトレーションフィールドを含むヘッダ情報を付加し、末尾にデータ送信終了を示すトレイラ情報を付加して送信する。ヘッダ情報にはヘッダ情報からトレイラ情報の末尾までの長さも含む。そこで、時間差情報はデータの具体的な数値情報に続く所定の長さのフィールドによって表わすように規定しておく。時間差情報を表わすフィールドには予め任意の数値情報を入れておく。そして通信制御部13により、データの送信を開始してから時間差情報を表わすフィールドの書き換えが可能に構成する。制御部10は通信制御部13により送信の開始に成功した時点で送信開始時点(Ts(0) )を取得して時間差(Td(0) )を算出してから、通信制御部13に時間差情報を書き換えるように指示する。これにより、送信中の時間差情報の付加が可能となる。 In addition, when the communication control part 13 performs a communication process according to a CAN protocol, addition of the time difference information in step S16 is implement | achieved by the following processes. When transmitting data, the communication control unit 13 adds header information including an arbitration field to the head of the data and adds trailer information indicating the end of data transmission to the end of the data. The header information includes the length from the header information to the end of the trailer information. Therefore, the time difference information is defined so as to be represented by a field having a predetermined length following the specific numerical information of the data. Arbitrary numerical information is entered in advance in the field representing the time difference information. The communication control unit 13 is configured to be able to rewrite the field representing the time difference information after the data transmission is started. Transmission start time controller 10 upon successful start of the transmission by the communication control unit 13 (Ts (0)) the time difference to get the (Td (0)) from the calculated, the communication control unit 13 for two hours difference information To rewrite. This makes it possible to add time difference information during transmission.

図3は、実施の形態1におけるECU1,1,…の制御部10又は中継装置2a,2b,…の制御部20がデータを受信して生成時点を特定する処理の一例を示すフローチャートである。以下に示すフローチャートは、通信線3bに接続されている一のECU10によ処理を示す。他のECU1,1,…及び中継装置2a,2b,…の制御部20による処理も同様である。   3 is a flowchart illustrating an example of processing in which the control unit 10 of the ECUs 1, 1,... Or the control unit 20 of the relay apparatuses 2a, 2b,. The flowchart shown below shows processing by one ECU 10 connected to the communication line 3b. The processing by the control unit 20 of the other ECUs 1, 1,... And the relay devices 2a, 2b,.

制御部10は、通信制御部13(中継装置2a,2bの制御部20による処理の場合は通信部23)によりデータの受信を開始したか否かを判断する(ステップS21)。制御部10は、データの受信を開始していないと判断した場合(S21:NO)、処理をステップS21へ戻す。   The control unit 10 determines whether or not data reception is started by the communication control unit 13 (communication unit 23 in the case of processing by the control unit 20 of the relay devices 2a and 2b) (step S21). When it is determined that the reception of data has not started (S21: NO), the control unit 10 returns the process to step S21.

制御部10は、データの受信を開始したと判断した場合(S21:YES)、受信開始時点(Tm(k) )を計時部12により取得する(ステップS22)。そして制御部10は、ステップS21で受信を開始したデータに付加されている時間差(Td(k−1) )を示す時間差情報を抽出し(ステップS23)、抽出した時間差情報が示す時間差(Td(k−1) )及びステップS22で取得した受信開始時点(Tm(k) )により、自身のローカルタイムで表わすデータの生成時点(Tc(k) =Tm(k) −Td(k−1) )を算出し(ステップS24)、データの生成時点の特定処理を終了する。 When it is determined that the data reception has started (S21: YES), the control unit 10 acquires the reception start time (Tm (k) ) by the time measuring unit 12 (step S22). Then, the control unit 10 extracts time difference information indicating the time difference (Td (k−1) ) added to the data started to be received in step S21 (step S23), and the time difference (Td ( Td ( k−1) ) and the reception start time (Tm (k) ) acquired in step S22, the generation time of data represented by its own local time (Tc (k) = Tm (k) −Td (k−1) ) Is calculated (step S24), and the data generation time specifying process is terminated.

これにより、通信線3bに接続されているECU1の制御部10は、例えば通信線3aに接続されているECU1で生成されて送信されたデータの生成時点を特定することができる。時間差情報は、実際にデータが生成されてから実際に送信が開始されるまでの時間差であるから、受信開始時点から時間差分遡った時点はデータの正確な生成時点である。なお、図3のフローチャートの説明における数値情報kは、データが生成された装置からの中継回数に相当している。   Thereby, the control part 10 of ECU1 connected to the communication line 3b can specify the production | generation time point of the data produced | generated and transmitted, for example by ECU1 connected to the communication line 3a. Since the time difference information is a time difference from when data is actually generated to when transmission is actually started, the time point after the time difference from the reception start time is an accurate data generation time. Note that the numerical information k in the description of the flowchart of FIG. 3 corresponds to the number of relays from the device that generated the data.

図4は、実施の形態1における中継装置2a,2b,…の制御部20がデータを転送する際の通信処理手順の一例を示すフローチャートである。なお、以下に示すフローチャートは、通信線3a,3bに接続されている一の中継装置2aの制御部20が、通信線3aに接続されているECU1から受信するデータを、通信線3bに接続されている各装置へ転送する際の処理を示す。通信線3bに接続されている装置のいずれかから送信されたデータを通信線3aに接続されているECU1,1,…へ送信する際の処理も同様である。また、他の中継装置2b,2c,…の制御部20による処理も同様である。   4 is a flowchart illustrating an example of a communication processing procedure when the control unit 20 of the relay apparatuses 2a, 2b,... In Embodiment 1 transfers data. In the flowchart shown below, the control unit 20 of one relay device 2a connected to the communication lines 3a and 3b receives data received from the ECU 1 connected to the communication line 3a and is connected to the communication line 3b. The processing when transferring to each device is shown. The processing when transmitting data transmitted from any of the devices connected to the communication line 3b to the ECUs 1, 1,... Connected to the communication line 3a is the same. The processing by the control unit 20 of the other relay apparatuses 2b, 2c,.

制御部20は、通信部23が有する通信線3aに接続するポートによりデータの受信を開始したか否かを判断する(ステップS31)。制御部20は、データの受信を開始していないと判断した場合(S31:NO)、処理をステップS31へ戻し、接続している通信線3aをモニタしてデータの受信を開始するまで待機する。   The control unit 20 determines whether or not data reception is started by a port connected to the communication line 3a of the communication unit 23 (step S31). When it is determined that the data reception has not started (S31: NO), the control unit 20 returns the process to step S31, monitors the connected communication line 3a, and waits until the data reception starts. .

制御部20は、データの受信を開始したと判断した場合(S31:YES)、受信開始時点(Tm(k) )を計時部22により取得する(ステップS32)。制御部20は、データの受信を完了したか否かを判断し(ステップS33)、完了していないと判断した場合は(S33:NO)、処理をステップS33へ戻す。 When it is determined that the data reception has started (S31: YES), the control unit 20 acquires the reception start time (Tm (k) ) by the time measuring unit 22 (step S32). The control unit 20 determines whether or not the reception of data has been completed (step S33). If it is determined that the data has not been completed (S33: NO), the process returns to step S33.

制御部20は、通信部23によりトレイラ情報を検知してデータの受信を完了したと判断した場合(S33:YES)、受信したデータに付加されている時間差(Td(k−1) )を示す時間差情報を抽出する(ステップS34)。 When the control unit 20 detects the trailer information by the communication unit 23 and determines that the reception of data is completed (S33: YES), the control unit 20 indicates the time difference (Td (k−1) ) added to the received data. Time difference information is extracted (step S34).

そして制御部20は、受信したデータが、受信したポートとは異なるポートにより通信線3bに接続されているECU1,1,…及び中継装置3bへ転送すべきデータである場合、データの送信を通信部23により試み、送信開始に成功したか否かを判断する(ステップS35)。制御部20は、通信線3bに接続されている他のECU1,1,…又は中継装置2bが通信中であるか、又はデータの送信を開始したが調停に負けたことによって送信開始に失敗したと判断した場合(S35:NO)、処理をステップS35へ戻して送信を開始できるまで待機する。   When the received data is data to be transferred to the ECUs 1, 1,... And the relay device 3b connected to the communication line 3b through a port different from the received port, the control unit 20 communicates data transmission. The unit 23 tries to determine whether or not transmission has been successfully started (step S35). The control unit 20 fails to start transmission because another ECU 1, 1,... Connected to the communication line 3b or the relay device 2b is communicating, or has started transmission of data but lost to arbitration. If it is determined (S35: NO), the process returns to step S35 and waits until transmission can be started.

制御部20は、通信線3bに接続されている他のECU1,1,…及び中継装置2bが通信中でなく、データの送信を開始し、且つ調停に勝ったことによって送信開始に成功したと判断した場合(S35:YES)、送信開始時点(Ts(k) )を計時部22により取得する(ステップS36)。 The control unit 20 has succeeded in starting the transmission because the other ECUs 1, 1,... Connected to the communication line 3b and the relay device 2b are not communicating and have started transmission of data and won arbitration. If it is determined (S35: YES), the transmission start time (Ts (k) ) is acquired by the time measuring unit 22 (step S36).

制御部20は、送信開始時点(Ts(k) )と受信開始時点(Tm(k) )との時間差に、受信した時間差情報が示す時間差(Td(k−1) )を加算した時間差(Td(k) =Td(k−1) +(Ts(k) −Tm(k) ))を算出し(ステップS37)、時間差(Td(k) )を示す時間差情報を送信中のデータに通信部23により付加し(ステップS38)、送信を完了させて処理を終了する。 The control unit 20 adds a time difference (Td (k−1) ) indicated by the received time difference information to a time difference between the transmission start time (Ts (k) ) and the reception start time (Tm (k) ). (k) = Td (k-1) + (Ts (k) -Tm (k) )) is calculated (step S37), and the time difference information indicating the time difference (Td (k) ) is added to the data being transmitted. 23 (step S38), the transmission is completed, and the process is terminated.

なお、通信部23がCANプロトコルに準じて通信処理を行ない、ステップS38において時間情報を付加する処理は、通信制御部13と同様に以下のように行なう構成とする。時間差情報はデータの具体的な数値情報に続く所定の長さのフィールドによって表わされ、制御部20は時間差情報を表わすフィールドには予め任意の数値情報を入れておく。通信部23は、送信を開始してから時間差情報を表わすフィールドを書き換えることが可能な構成とする。制御部20は通信部23により送信の開始に成功した時点で送信開始時点(Ts(k) )を取得して時間差(Td(k) )を算出してから、通信部23に時間差情報を書き換えるように指示する。 The communication unit 23 performs a communication process according to the CAN protocol, and the process of adding time information in step S38 is performed as follows in the same manner as the communication control unit 13. The time difference information is represented by a field having a predetermined length following the specific numerical information of the data, and the control unit 20 puts arbitrary numerical information in advance in the field representing the time difference information. The communication unit 23 is configured to be able to rewrite the field representing the time difference information after starting transmission. The control unit 20 calculates the acquired by the time difference the transmission start time upon successful start of the transmission (Ts (k)) by the communication unit 23 (Td (k)), rewrite the communication unit 23 two hours difference information To instruct.

図5は、実施の形態1におけるECU1,1,…及び中継装置2a,2b,…により送受信されたデータの生成時点が、いずれのECU1,1,…又は中継装置2a,2b,…でも正しく特定される過程を示す説明図である。図5では、下方に向けて時間が経過していることを示している。なお、図5の説明図は、通信線3aに接続されているECU1でデータが生成され、中継装置2a,2b,…によってデータが転送される場合を例に示している。   FIG. 5 shows that the generation time point of data transmitted / received by the ECUs 1, 1,... And the relay devices 2a, 2b,. It is explanatory drawing which shows the process performed. FIG. 5 shows that time has passed downward. Note that the explanatory diagram of FIG. 5 shows an example in which data is generated by the ECU 1 connected to the communication line 3a and is transferred by the relay devices 2a, 2b,.

通信線3aに接続されているECU1でデータが生成された際に、ECU1で取得された生成時点はTc(0) である。ECU1から生成されたデータは、ECU1におけるローカルタイムでTs(0) の時点で送信が開始され、この際に付加される時間差情報が示す時間差はTd(0) =Ts(0) −Tc(0) である。 When data is generated by the ECU 1 connected to the communication line 3a, the generation time point acquired by the ECU 1 is Tc (0) . The data generated from the ECU 1 is transmitted at the time Ts (0) in the local time in the ECU 1, and the time difference indicated by the time difference information added at this time is Td (0) = Ts (0) −Tc (0 ) .

通信線3aに接続されているECU1と中継装置2aとはバス型に接続されており、CANプロトコルに準じてデータを送受信している。したがって、ECU1が自身におけるローカルタイムでTs(0) の時点でデータの送信の開始に成功している場合、中継装置2aは同時に、中継装置2a自身におけるローカルタイムでTm(1) の時点で受信を開始している。なお、中継装置2aの制御部20は、受信したデータに付加されている時間差情報が示す時間差Td(0) に基づき、自身のローカルタイムにおけるデータの生成時点をTc(1) =Tm(1) −Td(0) と特定することが可能である。 The ECU 1 and the relay device 2a connected to the communication line 3a are connected in a bus shape, and transmit and receive data according to the CAN protocol. Therefore, if the ECU 1 has succeeded in starting data transmission at the time Ts (0) in its own local time, the relay device 2a simultaneously receives the data at the time Tm (1) in the local time of the relay device 2a itself. Has started. Note that the control unit 20 of the relay apparatus 2a sets the data generation time in its own local time based on the time difference Td (0) indicated by the time difference information added to the received data as Tc (1) = Tm (1). -Td (0) can be specified.

中継装置2aは、ECU1から受信したデータを通信線3bに接続されているECU1,1,…及び中継装置2bへ転送する。その際、上述の図4のフローチャートに示したように中継装置2aの制御部20は、通信部23によって送信の開始に成功した送信開始時点Ts(1) を取得し、送信開始時点Ts(1) とデータの生成時点Tc(1) との時間差、即ち、受信したデータに付加されていた時間差Td(0) に、自身における受信開始時点Tm(1) と送信開始時点Ts(1) との間の時間差を加算した時間差Td(1) を示す時間差情報を付加して送信する。 The relay device 2a transfers the data received from the ECU 1 to the ECUs 1, 1,... Connected to the communication line 3b and the relay device 2b. At this time, the control unit 20 of the relay device 2a as shown in the flowchart of FIG. 4 described above, it acquires the transmission start time Ts (1) successful start of the transmission by the communication unit 23, a transmission start time Ts (1 ) And the generation time Tc (1) of the data, that is, the time difference Td (0) added to the received data, the reception start time Tm (1) and the transmission start time Ts (1) in itself. The time difference information indicating the time difference Td (1) obtained by adding the time differences between the two is added and transmitted.

通信線3bに接続されているECU1,1,…は中継装置2aによって転送されたデータを受信した場合、付加されている時間差情報が示す時間差Td(1) と、自身がデータの受信を開始した時点Tm(2) とに基づき、ECU1自身のローカルタイムでのデータの生成時点Tc(2) を特定することができる。 When the ECUs 1, 1,... Connected to the communication line 3b receive the data transferred by the relay device 2a, they start receiving the time difference Td (1) indicated by the added time difference information and the data itself. Based on the time Tm (2) , the data generation time Tc (2) in the local time of the ECU 1 itself can be specified.

同様にして、k回中継(転送)されたデータを受信したECU1も、付加されている時間差情報が示す時間差Td(k−1) と、自身がデータの受信を開始した時点Tm(k) とに基づき、ECU1自身のローカルタイムでのデータの生成時点Tc(k) を特定することができる。何度中継されたデータであっても、受信されるデータに付加されている時間差情報が示す時間差は、所定の周波数で表わされたデータ生成時点と送信(受信)開始時点と間の時間差である。したがって、何度中継されたデータであっても、受信開始時点Tm(k) よりも時間差Td(k−1) 分遡った時点Tc(k) がデータ生成時点である。 Similarly, the ECU 1 that has received the data relayed (transferred) k times also includes the time difference Td (k−1) indicated by the added time difference information and the time Tm (k) at which the data reception starts. Based on the above, it is possible to specify the data generation time Tc (k) in the local time of the ECU 1 itself. Regardless of how many times the data is relayed, the time difference indicated by the time difference information added to the received data is the time difference between the data generation time and the transmission (reception) start time represented by a predetermined frequency. is there. Therefore, even many times relayed data, the time difference Td than the reception start time point Tm (k) (k-1 ) minute predated time Tc (k) is the data generation time.

このように、ECU1,1,…の計時部12及び中継装置2a,2b,…の計時部22における計時が、所定の絶対時刻を基準に同期されていなくとも、各装置におけるローカルタイムで表わした生成時点を特定することが可能である。つまり、図5に示すようにTc(0) 、Tc(1) 及びTc(k) が夫々異なる数値によって表わされていたとしても、各装置で特定された生成時点Tc(0) 、Tc(1) 及びTc(k) は図5に示すように同時点に相当する。 As described above, the timekeeping unit 12 of the ECUs 1, 1,... And the timekeeping unit 22 of the relay devices 2a, 2b,... Are expressed in local time in each device even though they are not synchronized with reference to a predetermined absolute time. It is possible to specify the generation time. That is, as shown in FIG. 5, even if Tc (0) , Tc (1), and Tc (k) are represented by different numerical values, the generation times Tc (0) , Tc ( 1) and Tc (k) correspond to simultaneous points as shown in FIG.

(実施の形態2)
実施の形態1では、ECU1,1,…の制御部10及び中継装置2a,2b,…の制御部20は、送信の開始に成功した場合に送信開始時点を取得して送信中のデータに付加する構成とした。これに対し実施の形態2では、予め送信開始時点を決定しておき、データに付加する時間差情報を求めてから送信を試みる構成とする。
(Embodiment 2)
In the first embodiment, the control unit 10 of the ECUs 1, 1,... And the control unit 20 of the relay devices 2a, 2b,... Acquire the transmission start time and add it to the data being transmitted when the transmission is successfully started. The configuration is as follows. On the other hand, in the second embodiment, a transmission start time is determined in advance, and transmission is attempted after obtaining time difference information to be added to data.

実施の形態2における車載通信システムの構成は、ECU1,1,…の制御部10による処理の詳細及び中継装置2a,2b,…の制御部20による処理の詳細以外は、実施の形態1における構成と同様である。以下、実施の形態1と共通する構成については同一の符号を付して詳細な説明を省略し、相違点であるECU1,1,…の制御部10による処理の詳細及び中継装置2a,2b,…の制御部20による処理の詳細について、フローチャートを参照して説明する。   The configuration of the in-vehicle communication system in the second embodiment is the same as that in the first embodiment except for the details of the processing by the control unit 10 of the ECUs 1, 1,... And the details of the processing by the control unit 20 of the relay devices 2a, 2b,. It is the same. Hereinafter, the same reference numerals are assigned to components common to the first embodiment, and detailed description thereof is omitted, and details of processing by the control unit 10 of the ECUs 1, 1,..., Which are different points, and relay devices 2a, 2b, Details of the processing by the control unit 20 will be described with reference to a flowchart.

図6は、実施の形態2におけるECU1,1,…の制御部10がデータを生成し、時間差情報と共に送信する通信処理手順の一例を示すフローチャートである。なお、以下に示すフローチャートは、通信線3aに接続されている一のECU1の制御部10による処理を示す。他のECU1,1,…の制御部10による処理も同様である。また、以下に示すフローチャートに示す処理手順の内、実施の形態1における図2のフローチャートに示した処理手順と共通する処理手順には同一のステップ番号を付し、詳細な説明を省略する。   FIG. 6 is a flowchart illustrating an example of a communication processing procedure in which the control unit 10 of the ECUs 1, 1,... In Embodiment 2 generates data and transmits the data together with time difference information. In addition, the flowchart shown below shows the process by the control part 10 of one ECU1 connected to the communication line 3a. The processing by the control unit 10 of the other ECUs 1, 1,. Of the processing procedures shown in the flowchart shown below, the same processing steps as those shown in the flowchart of FIG. 2 in the first embodiment are given the same step numbers, and detailed description thereof is omitted.

制御部10は、データ生成時点(Tc(0) )を計時部12により取得した後(S12)、送信を開始する予定時間、即ち送信開始時点(Ts(0) )を決定する(ステップS41)。そして制御部10は、予定として決定した送信開始時点(Ts(0) )とデータ生成時点(Tc(0) )との時間差(Td(0) =Ts(0) −Tc(0) )を算出する(ステップS42)。 After acquiring the data generation time point (Tc (0) ) by the time measuring unit 12 (S12), the control unit 10 determines the scheduled time to start transmission, that is, the transmission start time point (Ts (0) ) (step S41). . Then, the control unit 10 calculates a time difference (Td (0) = Ts (0) −Tc (0) ) between the transmission start time (Ts (0) ) determined as a schedule and the data generation time (Tc (0) ). (Step S42).

制御部10は、算出した時間差(Td(0) )を示す時間差情報を生成したデータに付加し(ステップS43)、計時部12による計時と比較して、ステップS41で決定した送信開始時点(Ts(0) )に到達したか否かを判断する(ステップS44)。制御部10は、送信開始時点(Ts(0) )に到達していないと判断した場合(S44:NO)、処理をステップS44へ戻す。 The control unit 10 adds time difference information indicating the calculated time difference (Td (0) ) to the generated data (step S43), and compared with the time measurement by the time measurement unit 12, the transmission start time (Ts determined in step S41). It is determined whether or not (0) ) has been reached (step S44). If the control unit 10 determines that the transmission start time (Ts (0) ) has not been reached (S44: NO), the process returns to step S44.

制御部10は、送信開始時点(Ts(0) )に到達したと判断した場合(S44:YES)、S11で生成したデータの送信を通信制御部13により試み、送信開始に成功したか否かを判断する(ステップS45)。制御部10は、通信線3aに接続されている他のECU1,1,…又は中継装置2aが通信中であるか、又はデータの送信を開始したが調停に負けたことによって送信開始に失敗したと判断した場合(S45:NO)、処理をステップS41へ戻して次に送信を試みる送信開始時点(Ts(0) )を決定し直す。 If the control unit 10 determines that the transmission start time (Ts (0) ) has been reached (S44: YES), the communication control unit 13 attempts to transmit the data generated in S11, and whether or not the transmission start is successful. Is determined (step S45). The control unit 10 has failed to start transmission because another ECU 1, 1,... Connected to the communication line 3a or the relay device 2a is communicating, or has started transmission of data but lost to arbitration. (S45: NO), the process returns to step S41 to re-determine the transmission start time (Ts (0) ) for the next transmission attempt.

制御部10は、他のECU1,1,…及び中継装置2aが通信中でなく、データの送信を開始し、且つ調停に勝ったことによって送信開始に成功したと判断した場合(S45:YES)、送信を継続して送信を完了させ、処理を終了する。   When the control unit 10 determines that the other ECUs 1, 1,... And the relay device 2a are not communicating, start transmission of data, and have succeeded in arbitration, thereby successfully starting transmission (S45: YES). , The transmission is continued to complete the transmission, and the process is terminated.

この場合にデータに付加される送信開始時点は予め決定した時点であるが、送信の開始に成功した場合には、実際の送信開始時点となる。実施の形態2においても、データを受信したECU1,1,…の制御部10又は中継装置2,2,…の制御部20による生成時点の特定は、実施の形態1の図3のフローチャートに示した処理によって行なわれる。したがって、図6のフローチャートに示した処理手順で時間差(Td(0) )を示す時間差情報に基づきデータの生成時点を特定する場合であっても、正しくデータの生成時点を特定することが可能である。 In this case, the transmission start time added to the data is a predetermined time, but when the transmission is successfully started, the actual transmission start time is reached. Also in the second embodiment, specification of the generation time by the control unit 10 of the ECUs 1, 1,... That receives the data or the control unit 20 of the relay apparatuses 2, 2,... Is shown in the flowchart of FIG. This process is performed. Therefore, even when the data generation time point is specified based on the time difference information indicating the time difference (Td (0) ) in the processing procedure shown in the flowchart of FIG. 6, it is possible to correctly specify the data generation time point. is there.

図7は、実施の形態2における中継装置2a,2b,…の制御部20がデータを転送する際の通信処理手順の一例を示すフローチャートである。なお、以下に示すフローチャートは、通信線3a,3bに接続されている一の中継装置2aの制御部20が、通信線3aに接続されているECU1から受信するデータを、通信線3bに接続されている各装置へ転送する際の処理を示す。通信線3bに接続されている装置のいずれかから送信されたデータを通信線3aに接続されているECU1,1,…へ送信する際の処理も同様である。また、他の中継装置2b,2c,…の制御部20による処理も同様である。   FIG. 7 is a flowchart illustrating an example of a communication processing procedure when the control unit 20 of the relay apparatuses 2a, 2b,... In the flowchart shown below, the control unit 20 of one relay device 2a connected to the communication lines 3a and 3b receives data received from the ECU 1 connected to the communication line 3a and is connected to the communication line 3b. The processing when transferring to each device is shown. The processing when transmitting data transmitted from any of the devices connected to the communication line 3b to the ECUs 1, 1,... Connected to the communication line 3a is the same. The processing by the control unit 20 of the other relay apparatuses 2b, 2c,.

また、以下に示すフローチャートに示す処理手順の内、実施の形態1における図4のフローチャートに示した処理手順と共通する処理手順には同一のステップ番号を付し、詳細な説明を省略する。   Of the processing procedures shown in the flowchart shown below, the same processing steps as those shown in the flowchart of FIG. 4 in the first embodiment are given the same step numbers, and detailed description thereof is omitted.

制御部20は、受信したデータから付加されている時間差(Td(k−1) )を示す時間差情報を抽出した後(S34)、受信したデータが、受信したポートとは異なるポートにより通信線3bに接続されているECU1,1,…及び中継装置3bへ転送すべきデータである場合は以下の処理を行なう。 After extracting the time difference information indicating the time difference (Td (k−1) ) added from the received data (S34), the control unit 20 uses the communication line 3b by the port where the received data is different from the received port. When the data is to be transferred to the ECUs 1, 1,... Connected to the relay device 3b, the following processing is performed.

制御部20は、送信(転送)を開始する予定時間、即ち送信開始時点(Ts(k) )を決定する(ステップS51)。そして制御部10は、予定として決定した送信開始時点(Ts(k) )と受信開始時点(Tm(k) )との時間差に、受信した時間差情報が示す時間差(Td(k−1) )を加算した時間差(Td(k) =Td(k−1) +(Ts(k) −Tm(k) ))を算出する(ステップS52)。 The control unit 20 determines a scheduled time for starting transmission (transfer), that is, a transmission start time (Ts (k) ) (step S51). Then, the control unit 10 adds the time difference (Td (k−1) ) indicated by the received time difference information to the time difference between the transmission start time (Ts (k) ) and the reception start time (Tm (k) ) determined as scheduled. The added time difference (Td (k) = Td (k-1) + (Ts (k) -Tm (k) )) is calculated (step S52).

制御部20は、算出した時間差(Td(k) )を示す時間差情報を生成したデータに付加し(ステップS53)、計時部12による計時と比較して、ステップS51で決定した送信開始時点(Ts(k) )に到達したか否かを判断する(ステップS54)。制御部20は、送信開始時点(Ts(k) )に到達していないと判断した場合(S54:NO)、処理をステップS54へ戻す。 The control unit 20 adds time difference information indicating the calculated time difference (Td (k) ) to the generated data (step S53), and compared with the time measurement by the time measurement unit 12, the transmission start time (Ts determined in step S51). (k) ) It is determined whether or not (step S54). When the control unit 20 determines that the transmission start time (Ts (k) ) has not been reached (S54: NO), the control unit 20 returns the process to step S54.

制御部20は、送信開始時点(Ts(k) )に到達したと判断した場合(S54:YES)、データの送信を通信部23により試み、送信開始に成功したか否かを判断する(ステップS55)。制御部20は、通信線3bに接続されている他のECU1,1,…又は中継装置2bが通信中であるか、又はデータの送信を開始したが調停に負けたことによって送信開始に失敗したと判断した場合(S55:NO)、処理をステップS51へ戻して次に送信を試みる送信開始時点(Ts(k) )を決定し直す。 When it is determined that the transmission start time (Ts (k) ) has been reached (S54: YES), the control unit 20 attempts to transmit data by the communication unit 23, and determines whether the transmission has been successfully started (step S54). S55). The control unit 20 fails to start transmission because another ECU 1, 1,... Connected to the communication line 3b or the relay device 2b is communicating, or has started transmission of data but lost to arbitration. (S55: NO), the process returns to step S51 to re-determine the transmission start time (Ts (k) ) for the next transmission attempt.

制御部20は、他のECU1,1,…及び中継装置2bが通信中でなく、又はデータの送信を開始し、且つ調停に勝ったことによって送信開始に成功したと判断した場合(S55:YES)、送信を継続して送信を完了させ、処理を終了する。   When the control unit 20 determines that the other ECUs 1, 1,... And the relay device 2b are not communicating, or have started transmission of data and have succeeded in arbitration, and thus have successfully started transmission (S55: YES) ), The transmission is continued to complete the transmission, and the process is terminated.

これにより、データに付加される送信開始時点は予め決定した時点であるが、送信(転送)の開始に成功した場合には、実際の送信開始時点となる。したがって、図7のフローチャートに示した処理手順で算出される時間差(Td(k) )を示す時間差情報に基づきデータの生成時点を特定する場合であっても、各装置で正しくデータの生成時点を特定することが可能である。 As a result, the transmission start time added to the data is a predetermined time, but when the transmission (transfer) is successfully started, the actual transmission start time is reached. Therefore, even when the data generation time point is specified based on the time difference information indicating the time difference (Td (k) ) calculated by the processing procedure shown in the flowchart of FIG. It is possible to specify.

実施の形態2では予め時間差情報も含めてデータを生成してから送信又は転送を試みる構成とした。これにより、通信制御部13及び通信部23は、送信中にデータの時間差情報を表わすフィールドを書き換える処理を行なわなくてもよい。   In the second embodiment, the transmission or transfer is attempted after data is generated including time difference information in advance. As a result, the communication control unit 13 and the communication unit 23 do not have to perform a process of rewriting the field representing the data time difference information during transmission.

なお、実施の形態1及び2では、ECU1,1,…の計時部12又は中継装置2a,2b,…の計時部22から取得された時間情報から得られる時間差を示す時間差情報を送受信する構成とした。しかしながら、データと共に送受信する時間差情報を例えばナノ秒単位で表わした時間差を示すように規定してもよい。この場合、ECU1,1,…の計時部12及び中継装置2a,2b,…の計時部22における計時が同じ周波数で計数していなくともよい。即ち、通信線3aに接続されているECU1における計時部12が600MHzで計時し、中継装置2aにおける計時部22が3GHzで計時する構成としても、時間差情報をナノ秒単位に直して送受信し、制御部10又は制御部20は、各計時部12,22から取得できる時間情報と同じ単位に変換可能である。   In the first and second embodiments, the time difference information indicating the time difference obtained from the time information acquired from the time measuring unit 12 of the ECUs 1, 1,... Or the time measuring unit 22 of the relay devices 2a, 2b,. did. However, the time difference information transmitted and received together with the data may be defined so as to indicate a time difference expressed in nanosecond units, for example. In this case, the timings in the timing units 12 of the ECUs 1, 1,... And the timing units 22 of the relay apparatuses 2a, 2b,. That is, even when the time measuring unit 12 in the ECU 1 connected to the communication line 3a measures time at 600 MHz and the time measuring unit 22 in the relay device 2a measures time at 3 GHz, the time difference information is transmitted and received in nanosecond units, and is controlled. The unit 10 or the control unit 20 can be converted into the same unit as the time information that can be acquired from the time measuring units 12 and 22.

また、実施の形態1及び2における通信線3a,3b,…はCANプロトコルに準じた通信線である構成とした。しかしながら、本発明は通信線3a,3b,…を介した通信をCANに準ずるとは限定しない。例えば、車載通信システムに含まれる通信装置に適用する場合であれば、LIN(Local Interconnect Network)、FlexRay(登録商標)等のプロトコルに基づきデータの送受信が可能な構成としてもよい。   Further, the communication lines 3a, 3b,... In the first and second embodiments are configured to be communication lines conforming to the CAN protocol. However, the present invention does not limit communication via the communication lines 3a, 3b,... According to CAN. For example, if the present invention is applied to a communication device included in an in-vehicle communication system, a configuration capable of transmitting and receiving data based on a protocol such as LIN (Local Interconnect Network) or FlexRay (registered trademark) may be used.

また、実施の形態1及び2では、ECU1,1,…及び中継装置2a,2b,…は通信線3a,3b,…に夫々バス型に接続する構成とした。これにより、通信線3a、3b,…を介した通信では、同時に複数の装置がデータを送信することができず、且つ一の装置がデータの送信を開始すると他の装置は通信線3a,3b,…をモニタすることによって同時に受信し、送信開始時点と受信開始時点との時間差が無視できた。しかしながら、本発明はこれに限らず、送信開始時点と受信開始時点との時間差がゼロでない接続形態とする構成であってもよい。特定すべきデータの生成時点に対して求められる精度への影響が少ない場合は問題とならない。   In the first and second embodiments, the ECUs 1, 1,... And the relay devices 2a, 2b,... Are connected to the communication lines 3a, 3b,. Thus, in communication via the communication lines 3a, 3b,..., A plurality of devices cannot transmit data at the same time, and when one device starts transmitting data, the other devices communicate with the communication lines 3a, 3b. ,... Were monitored simultaneously, and the time difference between the transmission start time and the reception start time could be ignored. However, the present invention is not limited to this, and a configuration in which the time difference between the transmission start time and the reception start time is not zero may be employed. This is not a problem when there is little influence on the accuracy required for the generation time point of data to be specified.

なお、開示された実施の形態は、全ての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上述の説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味及び範囲内での全ての変更が含まれることが意図される。   The disclosed embodiments should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

1 ECU
10 制御部
12 計時部
13 通信制御部
2a,2b,… 中継装置
20 制御部
22 計時部
23 通信部
3a,3b,… 通信線
1 ECU
DESCRIPTION OF SYMBOLS 10 Control part 12 Time measuring part 13 Communication control part 2a, 2b, ... Relay apparatus 20 Control part 22 Time measuring part 23 Communication part 3a, 3b, ... Communication line

Claims (7)

計時手段と、
通信線を介してデータの送受信を行なう通信手段と、
前記通信線を監視し、該通信線を介して、他の装置が通信中ではなく、かつ他の装置が送信を開始しようとしている場合には、該他の装置との調停に勝って優先的にデータを送信することが可能なときに、前記通信手段によるデータの送信が可と判断する送信可否判断手段と、
データが生成された生成時点、及び、前記送信可否判断手段により可の判断がされて前記データの送信を開始する送信開始時点の間の時間差を求める手段と、
求めた時間差を示す時間差情報を前記データに付加する手段と、
時間差情報が付加されたデータを前記通信手段により受信した場合、受信開始時点を前記計時手段による計時に基づき特定する手段と、
前記時間差情報及び前記受信開始時点に基づき、データの生成時点を特定する特定手段と
を備えることを特徴とする通信装置。
Timekeeping means,
A communication means for transmitting and receiving data via a communication line;
If the other device is not communicating via the communication line and the other device is about to start transmission, it prevails over the arbitration with the other device. When it is possible to transmit data to the transmission means for determining whether transmission of data by the communication means is possible,
Means for obtaining a time difference between a generation time when data is generated and a transmission start time at which transmission is determined by the transmission permission determination means and transmission of the data is started;
Means for adding time difference information indicating the obtained time difference to the data;
Means for specifying the reception start time based on the time measured by the time measuring means when the communication means receives the data with the time difference information added thereto;
And a specifying unit that specifies a data generation time based on the time difference information and the reception start time.
前記送信可否判断手段が送信可であると判断した場合、前記計時手段によりデータの送信開始時点を取得する手段と、
取得した送信開始時点、及び前記データの生成時点の間の時間差を求める手段と
を備え、
求めた時間差を示す時間差情報を、送信を開始している前記データに付加するようにしてあること
を特徴とする請求項1に記載の通信装置。
Means for acquiring a transmission start time of data by the time measuring means when the transmission permission determination means determines that transmission is possible;
Means for obtaining a time difference between the acquired transmission start time and the data generation time;
The communication apparatus according to claim 1, wherein time difference information indicating the obtained time difference is added to the data that has started transmission.
計時手段と、
通信線を介してデータの送受信を行なう通信手段と、
前記通信線を監視し、該通信線を介して、他の装置が通信中ではなく、かつ他の装置が送信を開始しようとしている場合には、該他の装置との調停に勝って優先的にデータを送信することが可能なときに、前記通信手段によるデータの送信が可と判断する送信可否判断手段と、
データを送信する送信開始時点を決定する決定手段と、
決定した送信開始時点、及び前記データが生成された生成時点の間の時間差を前記計時手段に基づき求める手段と、
求めた時間差を示す時間差情報を前記データに付加する手段と、
前記決定手段が決定した送信開始時点に到達したか否かを前記計時手段による計時に基づき判断する手段と、
前記送信開始時点に到達したと判断した場合に、前記通信手段による前記データ及び該データに付加されている時間差情報の送信を試みる手段と
時間差情報が付加されたデータを前記通信手段により受信した場合、受信開始時点を前記計時手段による計時に基づき特定する手段と、
前記時間差情報及び前記受信開始時点に基づき、データの生成時点を特定する特定手段と
を備え、
前記送信可否判断手段が不可と判断した場合、前記決定手段により次に送信を開始する送信開始時点を再決定し、時間差を求め直して送信を再度試みるようにしてあること
を特徴とする通信装置。
Timekeeping means,
A communication means for transmitting and receiving data via a communication line;
If the other device is not communicating via the communication line and the other device is about to start transmission, it prevails over the arbitration with the other device. When it is possible to transmit data to the transmission means for determining whether transmission of data by the communication means is possible,
Determining means for determining a transmission start time for transmitting data;
Means for obtaining a time difference between the determined transmission start time and the generation time when the data is generated based on the time measuring means ;
Means for adding time difference information indicating the obtained time difference to the data;
Means for determining whether or not the transmission start time determined by the determining means has been reached, based on the time measured by the time measuring means;
Means for attempting to transmit the data and the time difference information attached to the data by the communication means when it is determined that the transmission start time has been reached ;
Means for specifying the reception start time based on the time measured by the time measuring means when the communication means receives the data with the time difference information added thereto;
Based on the time difference information and the reception start time, comprising specifying means for specifying a data generation time ,
When said transmission determining means determines that impossible, to re-determine the transmission start time of starting the transmission to the next by said determining means, you said that you have to attempt again to send again seek time difference through Communication device.
時間差情報が付加されたデータを前記通信手段により受信した場合、前記データを更に他の通信装置へ前記通信手段により転送する手段と、
前記特定手段により特定したデータの生成時点、及びデータの転送開始時点の間の時間差を求める手段と、
求めた時間差を示す時間差情報を、転送するデータに付加される時間差情報とする手段と
を備えることを特徴とする請求項1乃至3のいずれかに記載の通信装置。
Means for transferring the data to the other communication device by the communication means when the communication means receives the data with the time difference information added thereto;
Means for obtaining a time difference between the generation time of the data specified by the specifying means and the transfer start time of the data;
4. A communication apparatus according to claim 1, further comprising means for setting time difference information indicating the obtained time difference to time difference information added to data to be transferred.
通信装置を複数含む通信システムにおいて、
各通信装置は、
計時手段と、
通信線を介してデータの送受信を行う通信手段と、
前記通信線を監視し、該通信線を介して、他の装置が通信中ではなく、かつ他の装置が送信を開始しようとしている場合には、該他の装置との調停に勝って優先的にデータを送信することが可能なときに、前記通信手段によるデータの送信が可と判断する送信可否判断手段と、
データが生成された生成時点、及び、前記送信可否判断手段により可の判断がされて前記データの送信を開始する送信開始時点の間の時間差を求める手段と、
求めた時間差を示す時間差情報を前記データに付加する手段と、
時間差情報が付加されたデータを前記通信手段により受信した場合、受信開始時点を前記計時手段による計時に基づき特定する手段と、
前記時間差情報及び前記受信開始時点に基づき、データの生成時点を特定する特定手段と
を備えることを特徴とする通信システム。
In a communication system including a plurality of communication devices,
Each communication device
Timekeeping means,
A communication means for transmitting and receiving data via a communication line;
If the other device is not communicating via the communication line and the other device is about to start transmission, it prevails over the arbitration with the other device. When it is possible to transmit data to the transmission means for determining whether transmission of data by the communication means is possible,
Means for obtaining a time difference between a generation time when data is generated and a transmission start time at which transmission is determined by the transmission permission determination means and transmission of the data is started;
Means for adding time difference information indicating the obtained time difference to the data;
Means for specifying the reception start time based on the time measured by the time measuring means when the communication means receives the data with the time difference information added thereto;
And a specifying means for specifying a data generation time based on the time difference information and the reception start time.
計時手段及び通信手段を備える通信装置が、前記通信手段により通信線を介してデータを送受信する方法において、
前記通信装置は、
通信線を監視し、該通信線を介して、他の装置が通信中ではなく、かつ他の装置が送信を開始しようとしている場合には、該他の装置との調停に勝って優先的にデータを送信することが可能なときに、前記通信手段によるデータの送信が可と判断し、
送信可と判断した場合、データの送信を開始し、
前記計時手段により前記データの送信開始時点を取得し、
取得した送信開始時点、及び前記データが生成された生成時点の間の時間差を求め、
求めた時間差を示す時間差情報を、送信を開始している前記データに付加して送信する
ことを特徴とする通信方法。
In a method in which a communication device comprising a time measuring means and a communication means transmits and receives data via a communication line by the communication means,
The communication device
If a communication line is monitored and another device is not communicating via the communication line, and another device is about to start transmission, it prevails over arbitration with the other device. When it is possible to transmit data, it is determined that transmission of data by the communication means is possible,
When it is determined that transmission is possible, transmission of data is started.
Obtain the transmission start time of the data by the time measuring means,
Find the time difference between the acquired transmission start time and the generation time when the data was generated,
A time difference information indicating the obtained time difference is added to the data that has been transmitted and transmitted.
計時手段及び通信手段を備える通信装置が、前記通信手段により通信線を介してデータを送受信する方法において、
前記通信装置は、
通信線を監視し、該通信線を介して、他の装置が通信中ではなく、かつ他の装置が送信を開始しようとしている場合には、該他の装置との調停に勝って優先的にデータを送信することが可能なときに、前記通信手段によるデータの送信が可と判断し、
データを送信する送信開始時点を決定し、
決定した送信開始時点及び前記データが生成された生成時点の時間差を求め、
求めた時間差を示す時間差情報を前記データに付加し、
決定した送信開始時点に到達したか否かを判断し、
送信開始時点に到達したと判断した場合、前記通信手段による前記データ及び該データに付加されている時点差情報の送信を試み、
前記通信線を監視して前記通信手段によるデータの送信の可否を判断し、
前記データの送信を不可と判断した場合、次に送信を開始する送信開始時点を再決定し、
時間差を求め直して送信を再度試みる
ことを特徴とする通信方法。
In a method in which a communication device comprising a time measuring means and a communication means transmits and receives data via a communication line by the communication means,
The communication device
If a communication line is monitored and another device is not communicating via the communication line, and another device is about to start transmission, it prevails over arbitration with the other device. When it is possible to transmit data, it is determined that transmission of data by the communication means is possible,
Decide when to start sending data,
Find the time difference between the determined transmission start time and the generation time when the data was generated,
Add time difference information indicating the obtained time difference to the data,
Determine whether the determined transmission start time has been reached,
If it is determined that the transmission start time has been reached, the communication means attempts to transmit the data and time difference information added to the data,
Monitoring the communication line to determine whether data can be transmitted by the communication means;
If it is determined that transmission of the data is impossible, re-determine the transmission start time to start transmission next,
A communication method characterized by re-determining the time difference and retrying transmission.
JP2011025240A 2011-02-08 2011-02-08 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD Active JP5190901B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011025240A JP5190901B2 (en) 2011-02-08 2011-02-08 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011025240A JP5190901B2 (en) 2011-02-08 2011-02-08 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2008180684A Division JP2010021804A (en) 2008-07-10 2008-07-10 Communication device, communication system, and communication method

Publications (2)

Publication Number Publication Date
JP2011130486A JP2011130486A (en) 2011-06-30
JP5190901B2 true JP5190901B2 (en) 2013-04-24

Family

ID=44292461

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011025240A Active JP5190901B2 (en) 2011-02-08 2011-02-08 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD

Country Status (1)

Country Link
JP (1) JP5190901B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5897330B2 (en) * 2011-12-28 2016-03-30 ダイハツ工業株式会社 Electronic control device for vehicle

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11261611A (en) * 1998-03-12 1999-09-24 Mitsubishi Electric Corp Transmission bus interface device
JP3802408B2 (en) * 2001-12-12 2006-07-26 株式会社安川電機 Network system synchronization method
JP2007101457A (en) * 2005-10-07 2007-04-19 Mitsubishi Electric Corp Transmitter, receiver, time notification method, and time setting method
WO2007105471A1 (en) * 2006-03-07 2007-09-20 Nec Corporation Resource information managing device, system, method, and program

Also Published As

Publication number Publication date
JP2011130486A (en) 2011-06-30

Similar Documents

Publication Publication Date Title
JP5664799B2 (en) Communication system and communication method
US7171579B2 (en) Method and device for exchanging data between at least two stations connected via a bus system
US10491530B2 (en) Communication system and communication device
JP4550505B2 (en) Data processing unit synchronization method
CN102150396A (en) Data communication network system
JP7006335B2 (en) In-vehicle communication system, in-vehicle communication method, and program
US20090292434A1 (en) Method for Synchronising Components of a Motor Vehicle Brake System and Electronic Brake Control System
JP4673749B2 (en) Vehicle communication control unit and vehicle communication control system
JP5190901B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
US7096295B2 (en) Method and device for generating program interruptions in users of a bus system, and bus system
WO2010004768A1 (en) Communication device, communication system, and communication method
JP5007904B2 (en) Communication system and communication method
US7730240B2 (en) Method for controlling the access times to a system bus and communication module
JP5009715B2 (en) In-vehicle communication system and distribution device
JP5900198B2 (en) COMMUNICATION SYSTEM, RELAY DEVICE, AND COMMUNICATION DEVICE
CN112583678B (en) Receiver apparatus, sender apparatus, and method for clock synchronization
JP2007243747A (en) Transmission timing setting method of on-vehicle lan and electronic control unit
JP2010124333A (en) Relay apparatus, communication system, and relay method
US20220271913A1 (en) Method for synchronizing time in an ethernet-based network
KR20060067712A (en) Cycle time synchronization appparatus for wireless 1394 system and method therefor
JP2000227803A (en) Method and system for controlling transmission in data link system of programmable controller
JP2008168690A (en) On-vehicle communicating device and on-vehicle communicating method
JP2023101193A (en) Information processing device, vehicle, information processing method, and program
JP2004356955A (en) Communication control unit
JP2009065518A (en) Communication system, communication device and communication method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110323

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110323

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120712

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120724

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120919

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130108

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130123

R150 Certificate of patent or registration of utility model

Ref document number: 5190901

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160208

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250