JP2008302780A - On-vehicle communication system and on-vehicle communication method - Google Patents

On-vehicle communication system and on-vehicle communication method Download PDF

Info

Publication number
JP2008302780A
JP2008302780A JP2007150783A JP2007150783A JP2008302780A JP 2008302780 A JP2008302780 A JP 2008302780A JP 2007150783 A JP2007150783 A JP 2007150783A JP 2007150783 A JP2007150783 A JP 2007150783A JP 2008302780 A JP2008302780 A JP 2008302780A
Authority
JP
Japan
Prior art keywords
data
vehicle
devices
received
stored
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.)
Granted
Application number
JP2007150783A
Other languages
Japanese (ja)
Other versions
JP5207106B2 (en
Inventor
Hiroaki Takada
広章 高田
Yukihiro Miyashita
之宏 宮下
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
Original Assignee
Nagoya University NUC
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
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 filed Critical Nagoya University NUC
Priority to JP2007150783A priority Critical patent/JP5207106B2/en
Publication of JP2008302780A publication Critical patent/JP2008302780A/en
Application granted granted Critical
Publication of JP5207106B2 publication Critical patent/JP5207106B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an on-vehicle communication system and an on-vehicle communication method capable of improving reliability of data to be distributed from a distributing device to each of on-vehicle devices by multiplexing connection between a plurality of on-vehicle devices and the distributing device connected to each of the on-vehicle devices so as to distribute the data transmitted from each of the on-vehicle devices to other on-vehicle device besides. <P>SOLUTION: On-vehicle devices 1a, 1b and 1c are respectively connected to a plurality of distribution devices 2a and 2b, and respectively transmit data to the distributing devices 2a and 2b. With this structure, even in the case wherein a trouble outbreaks in the distributing device 2a and, as a result, a data base 21a can not used, or even in the case wherein a trouble outbreaks in a vehicle-inside communication circuit 3a, data is distributed from the distributing device 2b to the on-vehicle devices 1a, 1b and 1c. Every time the on-vehicle devices 1a, 1b and 1c transmit the data, the on-vehicle devices 1a, 1b and 1c give the number to the data, modifying the number. The distributing devices 2a and 2b determine whether the data is the latest data or not by comparing the numbers, and stores only the latest data. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、複数の車載装置と、各車載装置に接続してあり各車載装置から送信されるデータを更に他の車載装置へ分配する分配装置とを備える車載通信システムに関し、分配装置と車載装置との接続関係を多重化して、分配装置から各車載装置へ分配されるデータの信頼性を向上させることができる車載通信システム及び車載通信方法に関する。   The present invention relates to an in-vehicle communication system including a plurality of in-vehicle devices and a distribution device that is connected to each in-vehicle device and distributes data transmitted from each in-vehicle device to other in-vehicle devices. It is related with the vehicle-mounted communication system and vehicle-mounted communication method which can improve the reliability of the data distributed from a distribution apparatus to each vehicle-mounted apparatus.

近年、電子制御装置(ECU;Electronic Control Unit)を使用した車載装置の機能の増加に伴い、車輌に配される車載装置の数及び種類も増加する傾向にある。   In recent years, with the increase in functions of in-vehicle devices using electronic control units (ECUs), the number and types of in-vehicle devices arranged in vehicles tend to increase.

車載装置の数の増大に伴い車載装置が接続される車内通信回線で送受信されるデータの量も増大する。車内通信回線で送受信されるデータ量の増大はコリジョン(衝突)によるデータの遅延又は欠落を招く。データの著しい遅延又は欠落は、データ内容の信頼性を欠き、場合によっては車載装置によるブレーキ制御等の運転補助機能に対して致命的となる。   As the number of in-vehicle devices increases, the amount of data transmitted and received through the in-vehicle communication line to which the in-vehicle devices are connected also increases. An increase in the amount of data transmitted and received through the in-vehicle communication line causes data delay or loss due to collision (collision). A significant delay or loss of data lacks the reliability of the data content, and in some cases becomes fatal to a driving assistance function such as brake control by an in-vehicle device.

そこで、車載装置を複数の群に分け、異なる車内通信回線に車載装置を群毎に接続する構成が一般的である。また、車載装置の増大に対して効率的に車内通信回線を利用するために、車載装置の群を送受信するデータの種類で分別し、群毎に通信速度の異なる車内通信回線に接続する構成もある。これらの構成では、異なる車内通信回線間はデータの送受信を制御するゲートウェイ装置により接続される。   Therefore, a configuration in which the in-vehicle devices are divided into a plurality of groups and the in-vehicle devices are connected to different in-vehicle communication lines for each group is common. In addition, in order to efficiently use in-vehicle communication lines against the increase in in-vehicle devices, there is a configuration in which groups of in-vehicle devices are classified according to the type of data transmitted and received and connected to in-vehicle communication lines with different communication speeds for each group. is there. In these configurations, different in-vehicle communication lines are connected by a gateway device that controls transmission and reception of data.

特許文献1には、車載装置を複数の群に分けて群毎に通信回線に接続し、車内通信回線を更にゲートウェイ装置で接続する構成とし、送受信されるデータに優先順位を識別するための優先度情報を付加し、ゲートウェイ装置が異なる車内通信回線間でデータを送受信する場合に受信したデータの優先度情報から優先度を判別して優先度が高いデータを優先的に送信し、車内通信回線の通信負荷が増加した場合でも優先度が高いデータの送信が大きく遅れないようにする技術が開示されている。
特開2005−159568号公報
Patent Document 1 discloses a configuration in which in-vehicle devices are divided into a plurality of groups and connected to communication lines for each group, and in-vehicle communication lines are further connected by a gateway device, and priority for identifying priorities for data to be transmitted and received When the gateway device transmits / receives data between different in-vehicle communication lines, the priority is determined from the received data priority information and data with higher priority is transmitted preferentially. A technique is disclosed in which transmission of data with high priority is not greatly delayed even when the communication load increases.
JP 2005-159568 A

しかしながら、車載装置を複数の群に分けて、各群の間をゲートウェイ装置を介して接続する場合、一の群の車載装置から他の群の車載装置へデータを送信する都度、車載装置から他の車載装置へデータを送信するのでは車載装置間の通信負荷を低減することができない。   However, when the in-vehicle devices are divided into a plurality of groups and each group is connected via a gateway device, each time data is transmitted from one group of in-vehicle devices to another group of in-vehicle devices, If data is transmitted to the in-vehicle device, the communication load between the in-vehicle devices cannot be reduced.

また、車載装置を複数の群に分けて、各群の間をゲートウェイ装置を介して接続する場合、一の群の中の車載装置が更新するデータの内容は、更新された後にゲートウェイ装置を介して他の群の車載装置へ送信されるまでの間、一の群と他の群とではデータの内容が一致しない時間が生じる。さらに、複数の群がゲートウェイ装置に直列的に接続される場合は、一の群と他の群とでデータの内容に段階的に時間差が生じる虞がある。この場合、車載通信システムにおけるデータの信頼性が担保されない。   In addition, when the in-vehicle devices are divided into a plurality of groups and each group is connected via a gateway device, the content of data updated by the in-vehicle devices in one group is updated via the gateway device. Until the data is transmitted to another group of in-vehicle devices, there is a time in which the data content does not match between one group and the other group. Furthermore, when a plurality of groups are connected in series to the gateway device, there is a possibility that a time difference will occur in steps in the data contents between one group and another group. In this case, the reliability of data in the in-vehicle communication system is not ensured.

本発明は斯かる事情に鑑みてなされたものであり、複数の車載装置から送信されるデータを記憶するデータベースを有してデータを各車載装置へ分配する分配装置を備えることによってデータを一元的に管理させ、通信負荷の低減及び各車載装置へ分配されるデータの内容の同一性の担保を実現し、且つ各車載装置を各分配装置に対し夫々接続することで各車載装置とデータベースとの接続関係を多重化することにより、分配装置に支障が発生した場合に車載通信システム全体の処理に支障が生じることを防ぎ、その信頼性を向上させることができる車載通信システム及び車載通信方法を提供することを目的とする。   The present invention has been made in view of such circumstances, and has a database that stores data transmitted from a plurality of in-vehicle devices, and includes a distribution device that distributes the data to each in-vehicle device, thereby centralizing data. Management, to reduce the communication load and ensure the identity of the content of data distributed to each in-vehicle device, and to connect each in-vehicle device to each distribution device, thereby connecting each in-vehicle device and the database. Provided an in-vehicle communication system and an in-vehicle communication method capable of preventing a problem in processing of the entire in-vehicle communication system and improving its reliability by multiplexing connection relations when the distribution device is in trouble The purpose is to do.

本発明の他の目的は、各車載装置を複数の分配装置に対し夫々接続することで各車載装置とデータベースとの接続関係を多重化した場合、各車載装置から送信されるデータに、最新のデータであるか否かを識別することができる番号を付与し、分配装置で必ず最新の情報のみでデータベースを更新することにより、データの信頼性を向上させることができる車載通信システム及び車載通信方法を提供することにある。   Another object of the present invention is to multiplex the connection relationship between each in-vehicle device and a database by connecting each in-vehicle device to a plurality of distribution devices. An in-vehicle communication system and an in-vehicle communication method capable of improving the reliability of data by assigning a number that can identify whether or not it is data and always updating the database with only the latest information in the distribution device Is to provide.

第1発明に係る車載通信システムは、データを送受信する複数の車載装置と、該車載装置に接続されており各車載装置からデータを受信してデータベースに記憶する手段及び記憶したデータを各車載装置へ分配する手段を備える複数の分配装置とを備える車載通信システムであって、前記車載装置の一部又は全部は、前記複数の分配装置に夫々接続されており、同一のデータを各分配装置へ送信する手段を備えることを特徴とする。   The in-vehicle communication system according to the first invention includes a plurality of in-vehicle devices that transmit and receive data, means for receiving data from each in-vehicle device and storing it in a database, and storing the stored data in each in-vehicle device. An in-vehicle communication system comprising a plurality of distribution devices including means for distributing data to a plurality of distribution devices, wherein some or all of the in-vehicle devices are connected to the plurality of distribution devices, respectively, and the same data is sent to each distribution device. A means for transmitting is provided.

第2発明に係る車載通信システムは、前記分配装置は夫々、データベースに記憶してあるデータを他の分配装置へ送信する手段と、他の分配装置から送信されたデータを前記データベースに記憶する手段とを備えることを特徴とする。   In the in-vehicle communication system according to the second aspect of the invention, each of the distribution devices transmits means stored in the database to other distribution devices, and means stores the data transmitted from the other distribution devices in the database. It is characterized by providing.

第3発明に係る車載通信システムは、各車載装置はデータを送信するに際し、データに番号を付与する手段と、前記番号を増加(又は減少)させる手段とを備え、各分配装置は、車載装置又は他の分配装置からデータを受信した場合、共に受信したデータの番号が、記憶してあるデータの番号よりも大きい(又は小さい)か否かを判断する判断手段と、該判断手段が、記憶してあるデータ番号よりも大きい(又は小さい)と判断した場合、受信したデータと共に受信した番号をデータベースに記憶する手段と、前記判断手段が、記憶してあるデータ番号以下(又は以上)であると判断した場合、受信したデータを破棄する手段と、データベースに記憶してあるデータを他の分配装置へ送信するに際し、記憶してある前記データの番号を共に送信する手段とを備えることを特徴とする。   An in-vehicle communication system according to a third aspect of the present invention includes means for assigning a number to data and means for increasing (or decreasing) the number when each in-vehicle device transmits data. Alternatively, when data is received from another distribution device, a determination unit that determines whether the number of data received together is larger (or smaller) than the number of stored data, and the determination unit stores If the data number is determined to be larger (or smaller) than the data number, the means for storing the received number in the database together with the received data and the determination means are less than or equal to the stored data number. If it is determined that the number of the received data is discarded, and the data number stored in the database is transmitted to another distribution device, the stored data number is sent together. Characterized in that it comprises means for.

第4発明に係る車載通信方法は、データを送受信する複数の車載装置と、該車載装置に接続されており各車載装置からデータを受信してデータベースに記憶し、記憶したデータを各車載装置へ分配する複数の分配装置とを含む車載通信システムにおける車載通信方法であって、前記車載装置の一部又は全部は、前記複数の分配装置に夫々接続されており、データを各分配装置へ送信するに際し、データに番号を付与し、前記番号を増加(又は減少)させ、前記分配装置は、データベースに記憶してあるデータを、記憶してある前記データの番号と共に他の分配装置へ送信し、各車載装置又は他の分配装置からデータを受信した場合、共に受信したデータの番号が、記憶してあるデータの番号よりも大きい(又は小さい)か否かを判断し、記憶してあるデータの番号よりも大きい(又は小さい)と判断した場合、受信したデータと共に受信したデータの番号をデータベースに記憶し、記憶してあるデータの番号以下(又は以上)であると判断した場合、受信したデータを破棄することを特徴とする。   A vehicle-mounted communication method according to a fourth aspect of the invention includes a plurality of vehicle-mounted devices that transmit and receive data, and data received from each vehicle-mounted device connected to the vehicle-mounted device, stored in a database, and the stored data to each vehicle-mounted device. An in-vehicle communication method in an in-vehicle communication system including a plurality of distribution devices for distribution, wherein a part or all of the in-vehicle device is connected to each of the plurality of distribution devices and transmits data to each distribution device. In this case, a number is assigned to the data, the number is incremented (or decreased), and the distribution device transmits the data stored in the database together with the stored data number to the other distribution devices, When data is received from each in-vehicle device or other distribution device, it is determined whether the data number received together is larger (or smaller) than the stored data number, and stored When it is determined that the number is larger (or smaller) than the data number, the received data number is stored in the database together with the received data, and the data number is determined to be less than (or greater than) the stored data number. The received data is discarded.

第5発明に係る車載通信方法は、データを送受信する複数の車載装置と、該車載装置に接続されており各車載装置からデータを受信してデータベースに記憶し、記憶したデータを各車載装置へ分配する複数の分配装置とを含む車載通信システムにおける車載通信方法であって、前記車載装置の一部又は全部は、前記複数の分配装置に夫々接続されて同一のデータを各分配装置へ送信し、前記車載装置及び分配装置は共通する所定の周期に従い、該所定の周期の内のデータ送信期間に、前記車載装置は、データに番号を付与し、前記番号を増加(又は減少)させて各分配装置へ送信し、各分配装置は、各車載装置からデータを受信した場合、共に受信したデータ番号が、記憶してある前記データの番号よりも大きい(又は小さい)か否かを判断し、記憶してあるデータの番号よりも大きい(又は小さい)と判断した場合、受信したデータと共に受信した番号をデータベースに記憶し、記憶してあるデータの番号以下(又は以上)であると判断した場合、受信したデータを破棄し、前記所定の周期の内の残期間に、各分配装置は、データベースに記憶してあるデータを、記憶してある前記データの番号と共に他の分配装置へ送信し、各車載装置又は他の分配装置からデータを受信した場合、共に受信したデータの番号が、記憶してあるデータの番号よりも大きい(又は小さい)か否かを判断し、記憶してあるデータの番号よりも大きい(又は小さい)と判断した場合、受信したデータと共に受信したデータの番号をデータベースに記憶し、記憶してあるデータの番号以下(又は以上)であると判断した場合、受信したデータを破棄することを特徴とする。   A vehicle-mounted communication method according to a fifth aspect of the present invention is a plurality of vehicle-mounted devices that transmit and receive data, and is connected to the vehicle-mounted device, receives data from each vehicle-mounted device, stores it in a database, and stores the stored data to each vehicle-mounted device. An in-vehicle communication method in an in-vehicle communication system including a plurality of distribution devices to distribute, wherein a part or all of the in-vehicle devices are respectively connected to the plurality of distribution devices and transmit the same data to each distribution device. The in-vehicle device and the distribution device follow a common predetermined cycle, and in the data transmission period within the predetermined cycle, the in-vehicle device assigns a number to the data, and increases (or decreases) the number. When each of the distribution devices receives data from each on-vehicle device, the distribution device determines whether the data number received together is larger (or smaller) than the stored data number. When it is determined that the number is larger (or smaller) than the stored data number, the received number is stored in the database together with the received data, and it is determined that the stored data number is less than (or higher). The received data is discarded, and in the remaining period of the predetermined cycle, each distribution device transmits the data stored in the database to the other distribution devices together with the stored data number. When data is received from each in-vehicle device or other distribution device, it is determined whether the data number received together is larger (or smaller) than the stored data number, and the stored data If it is determined that the number is larger (or smaller) than the number of the received data, the received data number is stored in the database together with the received data, and the stored data number is less than (or higher). If it is determined that that, characterized by discarding the received data.

本発明では、車載装置から送信されるデータを受信してデータベースに記憶し、車載装置から受信して記憶してあるデータを他の車載装置に分配する分配装置が複数備えられ、且つ、車載装置の一部又は全部夫々に対して複数の分配装置が接続される。即ち、各車載装置と分配装置との接続関係が多重化される。各車載装置からは接続している複数の分配装置に同一の内容のデータが送信され、分配装置により受信されたデータは夫々のデータベースに記憶される。   In the present invention, a plurality of distribution devices that receive data transmitted from the in-vehicle device and store it in the database, and distribute the data received and stored from the in-vehicle device to other in-vehicle devices are provided, and the in-vehicle device A plurality of distribution devices are connected to some or all of the devices. That is, the connection relationship between each in-vehicle device and the distribution device is multiplexed. Data of the same content is transmitted from each in-vehicle device to a plurality of distribution devices connected thereto, and the data received by the distribution device is stored in each database.

本発明では更に、データベースのデータが分配装置間で夫々送受信される。これにより、複数の分配装置間でデータベースのデータ内容が同期される。   Further, according to the present invention, database data is transmitted and received between distribution devices. Thereby, the data contents of the database are synchronized among the plurality of distribution devices.

本発明では、各分配装置へ接続している車載装置から直接データが送信される場合と、他の分配装置へデータが一度送信されて記憶された後に分配装置のデータベースの同期のために当該データが送信される場合とがある。つまり、同一のデータが時間差で一の分配装置へ送信される。本発明では、車載装置からデータが送信されるに際し、データに番号が付与され、送信の都度その番号が増加(又は減少)させられる。分配装置により、車載装置からデータが受信された場合、共に受信された番号もデータベースに記憶され、他の分配装置へデータを送信されるに際し、共に記憶されてある番号も送信される。分配装置により、車載装置及び分配装置からデータが受信された場合、受信されたデータと共に受信されたデータの番号が既に記憶されてあるデータの番号よりも大きい(又は小さい)か否かにより最新のデータであるか否かが判断され、最新のデータであると判断されたときのみデータは記憶され、それ以外のときにデータは破棄される。   In the present invention, when data is directly transmitted from an in-vehicle device connected to each distribution device, and after data is transmitted once to another distribution device and stored, the data is synchronized for the database of the distribution device. May be sent. That is, the same data is transmitted to one distribution device with a time difference. In the present invention, when data is transmitted from the in-vehicle device, a number is assigned to the data, and the number is increased (or decreased) each time the data is transmitted. When the distribution device receives data from the in-vehicle device, the number received together is also stored in the database, and when the data is transmitted to another distribution device, the number stored together is also transmitted. When data is received from the in-vehicle device and the distribution device by the distribution device, the latest data depends on whether the data number received together with the received data is larger (or smaller) than the data number already stored. Whether or not the data is determined is determined. Only when it is determined that the data is the latest data, the data is stored. At other times, the data is discarded.

さらに本発明では、車載装置から分配装置へのデータの送信と分配装置から分配装置へのデータの交換とが周期に従って順に行われる場合、同一のデータが一の分配装置で車載装置から直接受信される場合、及びデータベースの同期のために他の分配装置を経由して受信される場合の複数回受信される。本発明では、分配装置により、データと共に受信された番号が記憶されてあるデータの番号よりも大きい(又は小さい)か否かにより最新のデータであるか否かが判断され、最新のデータであると判断された場合のみデータが記憶され、それ以外の場合にデータは破棄される。   Furthermore, in the present invention, when the transmission of data from the in-vehicle device to the distribution device and the exchange of data from the distribution device to the distribution device are sequentially performed according to the cycle, the same data is directly received from the in-vehicle device by one distribution device. And received multiple times when received via another distribution device for database synchronization. In the present invention, the distribution device determines whether or not the latest data is based on whether or not the number received together with the data is larger (or smaller) than the stored data number. Only when it is determined that the data is stored, the data is discarded.

本発明による場合、分配装置と車載装置の一部又は全部との接続関係が多重化されるので、複数の分配装置の内のいずれかについて支障が発生し、当該分配装置からデータが分配されない状態となっても、他の分配装置からのデータの分配が可能になる。したがって、分配装置を備えることにより各車載装置が受信するデータの同一性を担保することができるのみならず、分配装置のいずれかに支障が発生した場合、分配装置と車載装置との接続に支障が発生した場合等、システムの一部に障害が発生しても車載通信システム全体の動作に支障が生じることを防ぎ、システムの信頼性を向上させることができる。   According to the present invention, since the connection relationship between the distribution device and a part or all of the in-vehicle devices is multiplexed, a problem occurs in any of the plurality of distribution devices, and data is not distributed from the distribution device Even in this case, data can be distributed from other distribution devices. Therefore, by providing the distribution device, not only can the identity of the data received by each in-vehicle device be ensured, but if any of the distribution devices fails, the connection between the distribution device and the in-vehicle device is hindered. If a failure occurs in a part of the system, for example, the occurrence of a failure in the operation of the entire in-vehicle communication system can be prevented, and the reliability of the system can be improved.

本発明による場合、多重化された分配装置と各車載装置との接続関係において、各分配装置が有しているデータベースが同期されるので、分配装置から送信されるデータの内容が異なる等の問題が起こることを防ぎ、データの内容の同一性を担保し、車載通信システムで送受信されるデータの信頼性を向上させることができる。   In the case of the present invention, since the database possessed by each distribution device is synchronized in the connection relationship between the multiplexed distribution device and each in-vehicle device, the content of data transmitted from the distribution device is different. Can be prevented, the identity of data can be ensured, and the reliability of data transmitted and received in the in-vehicle communication system can be improved.

本発明による場合、多重化された分配装置と各車載装置との接続関係において、車載装置から分配装置へデータが送信される際及び分配装置間でデータが交換される際、分配装置は最新のデータであると判断した場合のみデータベースに記憶するので、古いデータで新しいデータを更新してしまうことを防ぎ、車載通信システムで送受信されるデータの信頼性を向上させることができる。   According to the present invention, in the connection relationship between the multiplexed distribution device and each in-vehicle device, when data is transmitted from the in-vehicle device to the distribution device and when data is exchanged between the distribution devices, the distribution device is the latest Since it is stored in the database only when it is determined to be data, it is possible to prevent new data from being updated with old data and to improve the reliability of data transmitted and received in the in-vehicle communication system.

さらに、本発明による場合、車載装置及び分配装置が共通の周期に従って車載装置から分配装置へのデータの送信及び分配装置間でのデータの交換を行うときは、分配装置は車載装置及び他の分配装置から同一のデータを受信するが、最新のデータであると判断した場合のみ記憶するのでデータの信頼性を向上させることができる。   Furthermore, according to the present invention, when the in-vehicle device and the distribution device transmit data from the in-vehicle device to the distribution device and exchange data between the distribution devices according to a common cycle, the distribution device is the in-vehicle device and other distribution devices. Although the same data is received from the apparatus, it is stored only when it is determined that it is the latest data, so that the reliability of the data can be improved.

以下、本発明をその実施の形態を示す図面に基づいて具体的に説明する。   Hereinafter, the present invention will be specifically described with reference to the drawings showing embodiments thereof.

図1は、本発明に係る車載通信システムの構成を示す模式図である。車載通信システムは、ECU(Electronic Control Unit)、センサ等を備えてデータを送受信する複数の車載装置1a,1b,1cと、車載装置1a,1b,1c夫々と接続されており各車載装置1a,1b,1cからデータを受信し、他の車載装置1a,1b,1c及び図示しない他の車載装置群へデータを分配する分配装置2a,2bと、車載装置1a,1b,1cと分配装置2aとを接続する車内通信回線3aと、車載装置1a,1b,1cと分配装置2bとを接続する車内通信回線3bと、分配装置2a,2b間を接続する通信線4とを含んで構成されている。なお、図1中において車内通信回線3bは車内通信回線3aと区別するために破線で示している。また、図1中の白矢印は、車載装置1aと分配装置2a,2bとの間のデータの送受信の例を表わしている。   FIG. 1 is a schematic diagram showing a configuration of an in-vehicle communication system according to the present invention. The in-vehicle communication system includes an ECU (Electronic Control Unit), a sensor, and the like, and is connected to a plurality of in-vehicle devices 1a, 1b, and 1c and in-vehicle devices 1a, 1b, and 1c. Distribution devices 2a, 2b that receive data from 1b, 1c and distribute the data to other in-vehicle devices 1a, 1b, 1c and other in-vehicle devices (not shown); in-vehicle devices 1a, 1b, 1c, and distribution device 2a; Is configured to include an in-vehicle communication line 3a for connecting the vehicle-mounted devices 1a, 1b, 1c and the distribution device 2b, and a communication line 4 for connecting the distribution devices 2a, 2b. . In FIG. 1, the in-vehicle communication line 3b is indicated by a broken line to distinguish it from the in-vehicle communication line 3a. Moreover, the white arrow in FIG. 1 represents the example of transmission / reception of the data between the vehicle-mounted apparatus 1a and distribution apparatus 2a, 2b.

車載装置1a,1b,1cは、測定値、計算値、制御値等の各種物理量の数値情報を含むデータの送信又はエンジン、ブレーキ等のマイクロコンピュータによる制御が可能な装置である。例えば一の車載装置1aは車速を検知する図示しないセンサを備え、検知した車速のデータを分配装置2a,2bへ送信する。   The in-vehicle devices 1a, 1b, and 1c 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 in-vehicle device 1a includes a sensor (not shown) that detects the vehicle speed, and transmits data of the detected vehicle speed to the distribution devices 2a and 2b.

分配装置2a,2bは、データベース21a,21bとして使用する記憶領域を備えており、車載装置1a,1b,1cから送信されたデータをデータベース21a,21bに記憶し、データベース21a,21bから読み出したデータを車載装置1a,1b,1cへ送信する。分配装置2a,2bにデータを一元的に記憶させることにより、通信負荷の低減及び各車載装置1a,1b,1cへ分配されるデータの内容の同一性の担保の実現が可能になる。   The distribution devices 2a and 2b have storage areas used as the databases 21a and 21b, store data transmitted from the in-vehicle devices 1a, 1b, and 1c in the databases 21a and 21b, and read data from the databases 21a and 21b. Is transmitted to the in-vehicle devices 1a, 1b, 1c. By storing the data in the distribution devices 2a and 2b in a unified manner, it is possible to reduce the communication load and ensure the identity of the contents of the data distributed to the in-vehicle devices 1a, 1b and 1c.

分配装置2a,2bは、図示しない他の車載装置群と接続しており、車載装置1a,1b,1cから受信したデータを他の車載装置群へ送信してもよい。この場合、他の車載装置群へ送信するデータは車載装置1a,1b,1cから送信されるデータ全てではなく、当該他の車載装置群で必要なデータのみをデータベース21a,21bから読み出して送信する構成とすることにより、車載通信システムにおける通信負荷が低減される。またデータベース21a,21bに一元的に記憶されてデータベース21a,21bから読み出されたデータが分配されることにより、車載装置1a,1b,1c及び他の車載装置群で受信するデータの内容の同一性が担保される。さらに、分配装置2a,2bから複数の群に接続している各車載装置へ一括してデータを送信することによりデータの同時性が担保される。   Distribution device 2a, 2b is connected with other vehicle equipment groups which are not illustrated, and may transmit data received from vehicle equipment 1a, 1b, 1c to other vehicle equipment groups. In this case, the data to be transmitted to the other in-vehicle devices is not all the data transmitted from the in-vehicle devices 1a, 1b, 1c, but only the data necessary for the other in-vehicle devices is read from the databases 21a, 21b and transmitted. By adopting the configuration, the communication load in the in-vehicle communication system is reduced. Further, the data stored in the databases 21a and 21b and read from the databases 21a and 21b are distributed, so that the contents of data received by the in-vehicle devices 1a, 1b and 1c and other in-vehicle devices are the same. Sex is guaranteed. Furthermore, data simultaneity is ensured by transmitting data from the distribution devices 2a and 2b to the respective in-vehicle devices connected to the plurality of groups in a lump.

車載装置1a,1b,1cと分配装置2a,2bとを接続している車内通信回線3a,3b、及び分配装置2a,2b間を接続している通信線4のトポロジーは、バス型、スター型、ディジーチェーン型等いずれの形態でもよい。車載装置1a,1b,1cは分配装置2a,2bと車内通信回線3a,3bを介してデータを送受信することが可能であり、分配装置2a,2bは通信線4を介して相互にデータを送受信することが可能である。   The topology of the in-vehicle communication lines 3a, 3b connecting the in-vehicle devices 1a, 1b, 1c and the distribution devices 2a, 2b and the communication line 4 connecting the distribution devices 2a, 2b are bus type and star type. Any form such as a daisy chain type may be used. The in-vehicle devices 1a, 1b, and 1c can transmit and receive data to and from the distribution devices 2a and 2b and the in-vehicle communication lines 3a and 3b. The distribution devices 2a and 2b transmit and receive data to and from each other via the communication line 4. Is possible.

なお、本発明に係る車載通信システムでは更に、図1の模式図に示すように各車載装置1a,1b,1cが分配装置2a及び分配装置2bの両者に車内通信回線3a及び3bを介して接続されており、両者にデータを送信する。例えば車載装置1aは分配装置2a及び分配装置2bの両者に車速のデータを送信する。他の車載装置群によって送信されたデータを含め、分配装置2a及び分配装置2bの両者に同一のデータが送信されて記憶される。これにより、車載装置1a,1b,1cは分配装置2aのみならず分配装置2bからもデータを受信することができる。   In the in-vehicle communication system according to the present invention, as shown in the schematic diagram of FIG. 1, each on-vehicle device 1a, 1b, 1c is connected to both the distribution device 2a and the distribution device 2b via in-vehicle communication lines 3a and 3b. And send data to both. For example, the in-vehicle device 1a transmits vehicle speed data to both the distribution device 2a and the distribution device 2b. The same data is transmitted and stored in both distribution device 2a and distribution device 2b, including data transmitted by other in-vehicle device groups. Thereby, the in-vehicle devices 1a, 1b, and 1c can receive data not only from the distribution device 2a but also from the distribution device 2b.

したがって、図1の模式図に示すように、分配装置2aにおいてメモリ等のハードウェアの故障が発生してデータベース21aからデータを読み出すことができなくなる場合、又は分配装置2aと車内通信回線3aとの接続に障害が発生し、車載装置1a,1b,1cが分配装置2aからデータを送受信することができなくなる場合等、分配装置2aに支障が発生した場合であっても、車載装置1a,1b,1cは分配装置2bとの間でデータを送受信することができる。このように本発明の車載通信システムでは各車載装置1a,1b,1cと分配装置2a,2b即ちデータベース21a,21bとの接続関係が二重化されることにより車載通信システム全体としてフェールセーフな状態で動作することが可能になり、システムとしての信頼性が向上する。   Therefore, as shown in the schematic diagram of FIG. 1, when a hardware failure such as memory occurs in the distribution device 2a and data cannot be read from the database 21a, or between the distribution device 2a and the in-vehicle communication line 3a Even when a failure occurs in the distribution device 2a, such as when the connection fails and the in-vehicle devices 1a, 1b, 1c cannot transmit or receive data from the distribution device 2a, the in-vehicle devices 1a, 1b, 1c can transmit / receive data to / from the distribution device 2b. Thus, in the in-vehicle communication system of the present invention, the in-vehicle communication system as a whole operates in a fail-safe state by duplicating the connection relationship between the in-vehicle devices 1a, 1b, 1c and the distribution devices 2a, 2b, that is, the databases 21a, 21b. And the reliability of the system is improved.

さらに、本発明に係る車載通信システムでは、分配装置2a,2b間で夫々のデータベース21a,21bから読み出したデータを送受信し、データベース21a,21bの内容を同期させることが望ましい。分配装置2a及び分配装置2bの両者が完全に同じ構成で車載装置1a,1b,1c及び他の車載装置群と接続されており、各車載装置1a,1b,1c,…から正常にデータが両者に送信される場合、データベース21a,21bの内容は同一の内容となる。しかしながら、例えば車載装置1a,1b,1c以外に接続されている車載装置が異なる場合等は、送信されるデータが異なり、データベース21a,21bの内容が同一でないことがある。データベース21a,21bの内容が同一でない場合、車載装置1a,1b,1cは分配装置2a,2b夫々から送信されるデータのいずれが正しい(最新の)データであるかを判断する必要が生じ、データの信頼性が低下する。また、分配装置2aと分配装置2bとで車載装置1a,1b,1c以外の車載装置に別々に接続している場合、それらの車載装置から送信されるデータを車載装置1a,1b,1cでも共有することができると共に、車載装置1a,1b,1c以外であって、分配装置2a及び分配装置2bに別々に接続している車載装置間で同一のデータを使用するときにデータの内容の同一性が担保される。   Furthermore, in the in-vehicle communication system according to the present invention, it is desirable to transmit / receive data read from the respective databases 21a, 21b between the distribution devices 2a, 2b and to synchronize the contents of the databases 21a, 21b. Both the distribution device 2a and the distribution device 2b are connected to the vehicle-mounted devices 1a, 1b, 1c and other vehicle-mounted device groups with the completely same configuration, and data is normally transmitted from the vehicle-mounted devices 1a, 1b, 1c,. The contents of the databases 21a and 21b are the same. However, for example, when the in-vehicle devices connected to other than the in-vehicle devices 1a, 1b, and 1c are different, the transmitted data is different, and the contents of the databases 21a and 21b may not be the same. If the contents of the databases 21a and 21b are not the same, the in-vehicle devices 1a, 1b, and 1c need to determine which of the data transmitted from the distribution devices 2a and 2b is correct (latest) data. Reliability decreases. Further, when the distribution device 2a and the distribution device 2b are separately connected to in-vehicle devices other than the in-vehicle devices 1a, 1b, and 1c, the data transmitted from these in-vehicle devices is also shared by the in-vehicle devices 1a, 1b, and 1c. In addition to the in-vehicle devices 1a, 1b, and 1c, when the same data is used between the in-vehicle devices that are separately connected to the distribution device 2a and the distribution device 2b, the data content is identical. Is secured.

図2は、本発明に係る車載通信システムを構成する車載装置1a及び分配装置2aの内部構成を示すブロック図である。車載装置1b,1cは車載装置1aと同様の内部構成であるので詳細な説明を省略し、分配装置2bは分配装置2aと同様の内部構成であるので詳細な説明を省略する。   FIG. 2 is a block diagram showing an internal configuration of the in-vehicle device 1a and the distribution device 2a constituting the in-vehicle communication system according to the present invention. Since the in-vehicle devices 1b and 1c have the same internal configuration as the in-vehicle device 1a, detailed description thereof is omitted, and the distribution device 2b has the same internal configuration as the distribution device 2a, and thus detailed description thereof is omitted.

車載装置1aは、以下に示す各構成部の動作を制御する制御部10aと、各構成部に電力を供給する電源回路11aと、DRAM(Dynamic Random Access Memory)等の揮発性のメモリからなる記憶部12aと、車内通信回線3aに接続されている第1通信制御部13aと、車内通信回線3bに接続されている第2通信制御部14aとを備える。   The in-vehicle device 1a includes a control unit 10a that controls the operation of each component described below, a power supply circuit 11a that supplies power to each component, and a volatile memory such as a DRAM (Dynamic Random Access Memory). Unit 12a, a first communication control unit 13a connected to the in-vehicle communication line 3a, and a second communication control unit 14a connected to the in-vehicle communication line 3b.

車載装置1aの制御部10aは、図示しない車輌のオルタネータ、バッテリー等の電力供給装置から電源回路11aを介して電力の供給を受け、記憶部12aに記憶されている制御プログラムを読み出して実行し、各構成部の動作を制御する。   The control unit 10a of the in-vehicle device 1a receives power supply from a power supply device such as a vehicle alternator and a battery (not shown) via the power supply circuit 11a, reads and executes a control program stored in the storage unit 12a, Controls the operation of each component.

車載装置1aの記憶部12aには、制御部10aの処理により発生する制御値、計算値等の各種情報、又は図示しないセンサから入力された信号が表わす物理量の計測値等が一時的に記憶される。   The storage unit 12a of the in-vehicle device 1a temporarily stores various information such as control values and calculation values generated by the processing of the control unit 10a, or measured values of physical quantities represented by signals input from sensors (not shown). The

また、本発明による場合、車載装置1aの記憶部12aには、送信するデータに付与するデータのシーケンス番号が記憶されている。車載装置1aの制御部10aはデータを送信する場合、記憶部12aに記憶されているシーケンス番号を読み出してデータと共に送信する。本実施の形態では、シーケンス番号は1バイトのメモリを使用する正の整数値(0〜255)として記憶される。シーケンス番号の初期値はゼロに設定されており、制御部10aはデータを送信する都度シーケンス番号を1つ増加させる。シーケンス番号は、255まで増加された場合、次はゼロにリセットされる。なお、シーケンス番号を増加させるタイミングはデータの送信前、送信後いずれでもよい。制御部10aは、データを送信した後、送信前又は送信後に増加されたシーケンス番号を記憶部12aに記憶する。   In the case of the present invention, the storage unit 12a of the in-vehicle device 1a stores a sequence number of data to be added to data to be transmitted. When transmitting data, the control unit 10a of the in-vehicle device 1a reads out the sequence number stored in the storage unit 12a and transmits it together with the data. In the present embodiment, the sequence number is stored as a positive integer value (0 to 255) using a 1-byte memory. The initial value of the sequence number is set to zero, and the control unit 10a increments the sequence number by one every time data is transmitted. If the sequence number is increased to 255, then it is reset to zero. Note that the sequence number may be increased before or after data transmission. After transmitting data, the control unit 10a stores the sequence number increased before or after transmission in the storage unit 12a.

車載装置1aの第1通信制御部13aは、車内通信回線3aを介して接続している分配装置2aとのデータの送受信を実現する。なお、車載装置1aは、第1通信制御部13aにより、車内通信回線3aを介して他の車載装置1b,1cと直接的にデータの送受信が可能な構成でもよい。第2通信制御部14aは、車内通信回線3bを介して接続している分配装置2bと車載装置1aとのデータの送受信を実現する。   The first communication control unit 13a of the in-vehicle device 1a realizes data transmission / reception with the distribution device 2a connected via the in-vehicle communication line 3a. The in-vehicle device 1a may be configured such that the first communication control unit 13a can directly transmit / receive data to / from the other in-vehicle devices 1b and 1c via the in-vehicle communication line 3a. The second communication control unit 14a realizes data transmission / reception between the distribution device 2b and the in-vehicle device 1a connected via the in-vehicle communication line 3b.

車載装置1aの制御部10aは、第1通信制御部13a及び第2通信制御部14aにより、記憶部12aに記憶してあるデータのシーケンス番号と共にデータを送信する。なお車載装置1aの制御部10aは、所定のフォーマットを有する「メッセージ」にデータを含めて送信する。   The control unit 10a of the in-vehicle device 1a transmits data together with the sequence number of the data stored in the storage unit 12a by the first communication control unit 13a and the second communication control unit 14a. In addition, the control part 10a of the vehicle-mounted apparatus 1a transmits data including a message in a predetermined format.

分配装置2aは、以下に示す各構成部の動作を制御する制御部20aと、各構成部に電力を供給する電源回路22aと、DRAM(Dynamic Random Access Memory)等の揮発性のメモリからなる記憶部23aと、車内通信回線3aに接続されている第1通信制御部24aと、通信線4に接続されている第2通信制御部25aとを備える。   The distribution device 2a includes a control unit 20a that controls the operation of each component described below, a power supply circuit 22a that supplies power to each component, and a memory that includes a volatile memory such as a DRAM (Dynamic Random Access Memory). Unit 23a, a first communication control unit 24a connected to the in-vehicle communication line 3a, and a second communication control unit 25a connected to the communication line 4.

分配装置2aの制御部20aは、図示しない車輌のオルタネータ、バッテリー等の電力供給装置から電源回路22aを介して電力の供給を受け、記憶部23aに記憶されている制御プログラムを読み出して実行し、各構成部の動作を制御する。   The control unit 20a of the distribution device 2a receives power supply from a power supply device such as a vehicle alternator and battery (not shown) via the power supply circuit 22a, reads and executes the control program stored in the storage unit 23a, Controls the operation of each component.

分配装置2aの記憶部23aには、制御部20aが車載装置1a,1b,1cから受信したデータを記憶するデータベース21aのための記憶領域が設けられている。制御部20aは、受信したデータから「車速」「操舵角」等の種別(データID)毎に、対応する具体的な測定値、計算値、制御値及び後述するデータのシーケンス番号をデータベース21aに記憶する。なお、分配装置2aの制御部20aは後述するように、データを受信した場合でもデータベース21aに記憶せず破棄するときがある。この処理については後述にて説明する。   The storage unit 23a of the distribution device 2a is provided with a storage area for a database 21a that stores data received by the control unit 20a from the in-vehicle devices 1a, 1b, and 1c. For each type (data ID) such as “vehicle speed” and “steering angle” from the received data, the control unit 20a stores corresponding specific measured values, calculated values, control values, and sequence numbers of data described later in the database 21a. Remember. As will be described later, the control unit 20a of the distribution device 2a may discard the data without storing it in the database 21a. This process will be described later.

分配装置2aの第1通信制御部24aは、車内通信回線3aを介して接続している各車載装置1a,1b,1cとのデータの送受信を実現する。第2通信制御部25aは、通信線4を介して接続している分配装置2bとのデータの送受信を実現する。なお、本実施の形態では、分配装置2aの制御部20aは第2通信制御部25aによりデータベース21aから読み出したデータを分配装置2bへ送信するに際し、データベース21aにデータの種別毎に記憶してあるシーケンス番号を読み出して共に送信する。   The first communication control unit 24a of the distribution device 2a implements data transmission / reception with each of the in-vehicle devices 1a, 1b, 1c connected via the in-vehicle communication line 3a. The second communication control unit 25 a implements data transmission / reception with the distribution device 2 b connected via the communication line 4. In the present embodiment, the control unit 20a of the distribution device 2a stores data read from the database 21a by the second communication control unit 25a to the distribution device 2b for each data type in the database 21a. Read the sequence number and send it together.

図3は、本発明に係る車載通信システムを構成する車載装置1a,1b,1c及び分配装置2a,2b間で送受信されるメッセージのフォーマットを模式的に表わす説明図である。   FIG. 3 is an explanatory view schematically showing a format of a message transmitted / received between the in-vehicle devices 1a, 1b, 1c and the distribution devices 2a, 2b constituting the in-vehicle communication system according to the present invention.

図3の説明図に示すように、車載装置1a,1b,1cから送信されるメッセージは、所定のヘッダから開始され、シーケンス番号、データ(ペイロード)、最後にメッセージの終了を示すトレイラで構成される。分配装置2aは車載装置1a,1b,1c又は他の分配装置2bから送信されるメッセージから、図3の説明図に表わされたフォーマットに従い、データとそのデータに付与されたシーケンス番号を読み出すことができる。なお、シーケンス番号はデータに含まれる構成でもよい。   As shown in the explanatory diagram of FIG. 3, a message transmitted from the in-vehicle devices 1a, 1b, and 1c starts with a predetermined header, and includes a sequence number, data (payload), and finally a trailer indicating the end of the message. The The distribution device 2a reads the data and the sequence number assigned to the data from the message transmitted from the in-vehicle device 1a, 1b, 1c or another distribution device 2b according to the format shown in the explanatory diagram of FIG. Can do. The sequence number may be included in the data.

また、本実施の形態における車載装置1a,1b,1c及び分配装置2a,2bは、同期したタイマを有していることにより、共有の周期に基づき同期して動作する。このため、車載装置1a,1b,1cの制御部10a,10b,10c及び分配装置2a,2bの制御部20a,20bは夫々、図示しない内臓クロックに従ってタイマとして機能する。図4は、本実施の形態における各車載装置1a,1b,1c及び各分配装置2a,2bの制御部10a,10b,10c,20a,20bがタイマとして機能することにより従う所定の周期の例を模式的に示す説明図である。横軸は時間の経過を表わし、各矩形は分割された期間を表わしている。   Moreover, the vehicle-mounted devices 1a, 1b, 1c and the distribution devices 2a, 2b in the present embodiment operate synchronously based on a shared cycle by having synchronized timers. Therefore, the control units 10a, 10b, 10c of the in-vehicle devices 1a, 1b, 1c and the control units 20a, 20b of the distribution devices 2a, 2b function as timers according to a built-in clock (not shown). FIG. 4 shows an example of a predetermined cycle that is followed when the control units 10a, 10b, 10c, 20a, and 20b of the in-vehicle devices 1a, 1b, and 1c and the distribution devices 2a and 2b in the present embodiment function as timers. It is explanatory drawing shown typically. The horizontal axis represents the passage of time, and each rectangle represents a divided period.

図4の説明図に示す例では、一周期は例えば数十ミリ秒である。一周期は、分配装置2a,2b間でデータを送受信しデータベース21a,21bを同期する期間である同期スロットと、車載装置1a,1b,1cから分配装置2a,2bへ及び分配装置2a,2bから車載装置1a,1b,1cへデータを送信する期間である送信スロットとに分割されている。図4の説明図に示す期間A,C,Eは送信スロットであり、期間B,D,Fは同期スロットである。車載装置1a,1b,1c及び分配装置2a,2bの制御部10a,10b,10c及び制御部20a,20bは、タイマとして機能することにより同期スロット及び送信スロットを認識する。   In the example shown in the explanatory diagram of FIG. 4, one cycle is, for example, several tens of milliseconds. One period is a synchronization slot in which data is transmitted and received between the distribution devices 2a and 2b and the databases 21a and 21b are synchronized, and from the in-vehicle devices 1a, 1b and 1c to the distribution devices 2a and 2b and from the distribution devices 2a and 2b. It is divided into transmission slots that are periods for transmitting data to the in-vehicle devices 1a, 1b, and 1c. Periods A, C, and E shown in the explanatory diagram of FIG. 4 are transmission slots, and periods B, D, and F are synchronization slots. The control units 10a, 10b, 10c and the control units 20a, 20b of the in-vehicle devices 1a, 1b, 1c and the distribution devices 2a, 2b recognize the synchronization slot and the transmission slot by functioning as a timer.

同期スロットの間、分配装置2a,2bと車載装置1a,1b,1cとの間ではデータの送受信は行われず、分配装置2a,2b間でデータベース21a,21bに記憶してあるデータを送受信し、データを交換することにより、データベース21a,21bが同期される。本実施の形態では、データベース21a,21bの同期の手順については限定しない。同期スロットが終了した時点で、分配装置2aのデータベース21aの内容と分配装置2bのデータベース21bの内容とは同期している。   During the synchronization slot, data transmission / reception is not performed between the distribution devices 2a, 2b and the in-vehicle devices 1a, 1b, 1c, and data stored in the databases 21a, 21b is transmitted / received between the distribution devices 2a, 2b, By exchanging data, the databases 21a and 21b are synchronized. In the present embodiment, the synchronization procedure of the databases 21a and 21b is not limited. At the end of the synchronization slot, the contents of the database 21a of the distribution device 2a and the contents of the database 21b of the distribution device 2b are synchronized.

上述のように構成される本発明に係る車載通信システムにおいて、各車載装置1a,1b,1cがデータをメッセージに含め、分配装置2a,2bへ送信する処理、分配装置2aがデータベース21aからデータを読み出してメッセージに含めて分配装置2bへ送信する処理、及び、分配装置2bが各車載装置1a,1b,1c及び分配装置2aから送信されるメッセージを受信する場合の処理について説明する。   In the in-vehicle communication system according to the present invention configured as described above, each in-vehicle device 1a, 1b, 1c includes data in a message and transmits it to the distribution devices 2a, 2b, and the distribution device 2a receives data from the database 21a. Processing to read and include in a message and transmit to the distribution device 2b, and processing when the distribution device 2b receives a message transmitted from each of the in-vehicle devices 1a, 1b, 1c and the distribution device 2a will be described.

本発明の車載通信システムでは、上述のように各車載装置1a,1b,1cは分配装置2a及び分配装置2bの両者に接続しており、両者に同一のデータ例えば車速データを含めたメッセージを送信する。この場合、車内通信回線3bでコリジョンが発生し、一方の分配装置2bへのメッセージが大幅に遅延し、分配装置2bへデータが送信された時点ではそのデータが既に古いデータとなるときがある。これに対して本発明では上述のように、各車載装置1a,1b,1cからデータにシーケンス番号が付与されて共に送信され、且つ送信の都度シーケンス番号が増加されるので、データを受信する分配装置2a,2bは、より大きいシーケンス番号が付与されたデータが最新であることを認識することができる。したがって、分配装置2a,2bは最新のデータのみをデータベース21a,21bに記憶し、それ以外のデータを破棄する。   In the in-vehicle communication system of the present invention, as described above, each of the in-vehicle devices 1a, 1b, 1c is connected to both the distribution device 2a and the distribution device 2b, and the same data, for example, a message including vehicle speed data is transmitted to both. To do. In this case, a collision occurs in the in-vehicle communication line 3b, a message to one distribution device 2b is significantly delayed, and the data may already be old data when the data is transmitted to the distribution device 2b. On the other hand, in the present invention, as described above, each vehicle-mounted device 1a, 1b, 1c is given a sequence number to the data and transmitted together, and the sequence number is increased each time transmission is performed. The devices 2a and 2b can recognize that the data to which the higher sequence number is assigned is the latest. Accordingly, the distribution devices 2a and 2b store only the latest data in the databases 21a and 21b, and discard other data.

以下に、車載装置1a,1b,1c及び分配装置2a,2bの制御部20a,20bが送信スロット及び同期スロットの期間に行なう処理をフローチャートを用いて説明する。図5及び図6は、本実施の形態における車載通信システムで、送信スロットの期間に車載装置1a及び分配装置2aの間でデータが送受信される処理手順を示すフローチャートである。車載装置1b,1cが分配装置2a,2bへ送信する処理手順は車載装置1aによる処理手順と同様であるので詳細な説明を省略する。また、分配装置2bが車載装置1a,1b,1cからメッセージを受信する処理手順は、分配装置2aによる処理手順と同様であるので詳細な説明を省略する。   Hereinafter, processing performed by the control units 20a and 20b of the in-vehicle devices 1a, 1b, and 1c and the distribution devices 2a and 2b during the transmission slot and the synchronization slot will be described with reference to flowcharts. 5 and 6 are flowcharts showing a processing procedure in which data is transmitted and received between the in-vehicle device 1a and the distribution device 2a during the transmission slot in the in-vehicle communication system according to the present embodiment. Since the processing procedure that the in-vehicle devices 1b and 1c transmit to the distribution devices 2a and 2b is the same as the processing procedure by the in-vehicle device 1a, detailed description thereof is omitted. Further, the processing procedure for the distribution device 2b to receive a message from the in-vehicle devices 1a, 1b, 1c is the same as the processing procedure by the distribution device 2a, and detailed description thereof will be omitted.

車載装置1aの制御部10aはタイマとして機能することにより、送信スロットが到来したか否かを判断する(ステップS101)。車載装置1aの制御部10aは、送信スロットが到来していないと判断した場合(S101:NO)、処理をステップS101へ戻し、送信スロットが到来したと判断するまで待機する。   The control unit 10a of the in-vehicle device 1a functions as a timer to determine whether a transmission slot has arrived (step S101). When determining that the transmission slot has not arrived (S101: NO), the control unit 10a of the in-vehicle device 1a returns the process to step S101 and waits until it is determined that the transmission slot has arrived.

車載装置1aの制御部10aは、送信スロットが到来したと判断した場合(S101:YES)、記憶部12aに一時的に記憶してある測定値、計算値、制御値等のデータを読み出す(ステップS102)。また車載装置1aの制御部10aは、記憶部12aに記憶してあるシーケンス番号を読み出し(ステップS103)、読み出したシーケンス番号を1増加させ(ステップS104)、読み出したデータ及び増加させたシーケンス番号を含めてメッセージを生成し(ステップS105)、生成したメッセージを第1通信制御部13a及び第2通信制御部14aにより、車内通信回線3a,3bを介して分配装置2a,2bへ送信する(ステップS106)。   When it is determined that the transmission slot has arrived (S101: YES), the control unit 10a of the in-vehicle device 1a reads data such as measurement values, calculation values, control values, and the like temporarily stored in the storage unit 12a (Step S101). S102). The control unit 10a of the in-vehicle device 1a reads the sequence number stored in the storage unit 12a (Step S103), increments the read sequence number by 1 (Step S104), and reads the read data and the increased sequence number. A message including the message is generated (step S105), and the generated message is transmitted to the distribution devices 2a and 2b via the in-vehicle communication lines 3a and 3b by the first communication control unit 13a and the second communication control unit 14a (step S106). ).

分配装置2aの制御部20aは、接続している車載装置1aから送信されたメッセージを第1通信制御部24aにより受信し(ステップS107)、受信したメッセージからデータ及びデータのシーケンス番号を読み出す(ステップS108)。分配装置2aの制御部20aは、受信したメッセージから読み出したデータに対応し、データベース21aに既に記憶してあるデータのシーケンス番号を読み出し(ステップS109)、ステップS108で読み出したシーケンス番号と比較する(ステップS110)。   The control unit 20a of the distribution device 2a receives the message transmitted from the connected in-vehicle device 1a by the first communication control unit 24a (step S107), and reads out the data and the sequence number of the data from the received message (step S107). S108). The control unit 20a of the distribution device 2a reads the sequence number of the data already stored in the database 21a corresponding to the data read from the received message (step S109) and compares it with the sequence number read in step S108 ( Step S110).

分配装置2aの制御部20aは、受信したメッセージから読み出したデータのシーケンス番号が、データベース21aから読み出したデータのシーケンス番号よりも大きいか否かを判断する(ステップS111)。分配装置2aの制御部20aは、受信したメッセージから読み出したデータのシーケンス番号が、読み出したデータのシーケンス番号よりも大きいと判断した場合(S111:YES)、受信したメッセージから読み出したデータ、及び共にメッセージから読み出したシーケンス番号をデータベース21aに記憶し(ステップS112)、処理を終了する。   The control unit 20a of the distribution device 2a determines whether or not the sequence number of the data read from the received message is larger than the sequence number of the data read from the database 21a (Step S111). When the control unit 20a of the distribution device 2a determines that the sequence number of the data read from the received message is larger than the sequence number of the read data (S111: YES), the data read from the received message and both The sequence number read from the message is stored in the database 21a (step S112), and the process ends.

分配装置2aの制御部20aは、受信したメッセージから読み出したデータのシーケンス番号が、読み出したデータのシーケンス番号以下であると判断した場合(S111:NO)、受信したメッセージから読み出したデータを破棄し(ステップS113)、処理を終了する。   When it is determined that the sequence number of the data read from the received message is equal to or less than the sequence number of the read data (S111: NO), the control unit 20a of the distribution device 2a discards the data read from the received message. (Step S113), the process ends.

なお、ステップS111における判断処理で、分配装置2aの制御部20aは、受信したメッセージから読み出したデータのシーケンス番号がゼロリセットされた後の番号である場合は、読み出したデータのシーケンス番号よりも大きいと判断する。   In the determination processing in step S111, the control unit 20a of the distribution device 2a has a larger sequence number than the read data when the sequence number of the data read from the received message is a number after zero reset. Judge.

図7及び図8は、本実施の形態における車載通信システムで、同期スロットの期間に分配装置2a,2b間でデータが送受信される処理手順を示すフローチャートである。なお、分配装置2bが他の分配装置2aからメッセージを受信する処理以降の処理手順は、車載装置1a,1b,1cからメッセージを受信した場合の処理手順と同様である。したがって、図7及び図8のフローチャートに示す処理手順の内の、分配装置2bが分配装置2aからメッセージを受信した後の処理手順については図5及び図6のフローチャートに示した処理手順と同一のステップ番号を付して、詳細な説明を省略する。   7 and 8 are flowcharts showing a processing procedure in which data is transmitted and received between the distribution devices 2a and 2b during the synchronization slot in the in-vehicle communication system according to the present embodiment. The processing procedure after the processing in which the distribution device 2b receives a message from another distribution device 2a is the same as the processing procedure in the case of receiving a message from the in-vehicle devices 1a, 1b, 1c. Accordingly, the processing procedure after the distribution device 2b receives the message from the distribution device 2a in the processing procedures shown in the flowcharts of FIGS. 7 and 8 is the same as the processing procedure shown in the flowcharts of FIGS. Step numbers are assigned and detailed description is omitted.

分配装置2aの制御部20aはタイマとして機能することにより、同期スロットが到来したか否かを判断する(ステップS201)。分配装置2aの制御部20aは、同期スロットが到来していないと判断した場合(S201:NO)、処理をステップS201へ戻し、同期スロットが到来したと判断するまで待機する。   The control unit 20a of the distribution device 2a functions as a timer to determine whether or not a synchronization slot has arrived (step S201). When determining that the synchronization slot has not arrived (S201: NO), the control unit 20a of the distribution device 2a returns the process to step S201 and waits until determining that the synchronization slot has arrived.

分配装置2aの制御部20aは、同期スロットが到来したと判断した場合(S201:YES)、記憶部23aのデータベース21aに記憶してあるデータ及びデータのシーケンス番号を読み出す(ステップS202)。分配装置2aの制御部20aは、読み出したデータ及びシーケンス番号を含めてメッセージを生成し(ステップS203)、生成したメッセージを第2通信制御部25aにより分配装置2bへ送信する(ステップS204)。   When determining that the synchronization slot has arrived (S201: YES), the control unit 20a of the distribution device 2a reads out the data stored in the database 21a of the storage unit 23a and the sequence number of the data (step S202). The control unit 20a of the distribution device 2a generates a message including the read data and the sequence number (step S203), and transmits the generated message to the distribution device 2b by the second communication control unit 25a (step S204).

その後、ステップS107の処理により分配装置2aからメッセージを受信した(S107)分配装置2bの制御部20bは、車載装置1aからメッセージを受信した場合同様、メッセージからデータ及びシーケンス番号を読み出し(S108)、データベース21bに記憶してあるデータのシーケンス番号を読み出し(S109)て比較し(S110)、受信したメッセージから読み出したデータのシーケンス番号がデータベース21bに記憶してあるデータのシーケンス番号よりも大きいと判断した場合(S111:YES)、データを記憶し(S112)、記憶してあるデータのシーケンス番号以下であると判断した場合(S111:NO)、データを破棄して(S113)同期の処理を終了する。   Thereafter, the control unit 20b of the distribution device 2b receives the message from the distribution device 2a by the process of step S107 (S107). Similarly to the case where the message is received from the in-vehicle device 1a, the control unit 20b reads the data and sequence number from the message (S108). The sequence number of the data stored in the database 21b is read (S109) and compared (S110), and it is determined that the sequence number of the data read from the received message is larger than the sequence number of the data stored in the database 21b. If it is (S111: YES), the data is stored (S112), and if it is determined that it is less than or equal to the sequence number of the stored data (S111: NO), the data is discarded (S113) and the synchronization process is terminated. To do.

さらに、分配装置2bの制御部20bが、データベース21bから読み出したデータに基づいてメッセージを生成して分配装置2aへ送信し、分配装置2aの制御部20aは分配装置2bから受信したデータの内の、最新のデータのみデータベース21aに記憶する。これにより、分配装置2a,2b間でデータが交換され、データベース21a,21bの内容が同期される。   Further, the control unit 20b of the distribution device 2b generates a message based on the data read from the database 21b and transmits it to the distribution device 2a. The control unit 20a of the distribution device 2a includes the data received from the distribution device 2b. Only the latest data is stored in the database 21a. Thereby, data is exchanged between the distribution apparatuses 2a and 2b, and the contents of the databases 21a and 21b are synchronized.

次に、上述のような処理の具体例として、車載装置1aの制御部10aによりデータの種別を車速とするデータが送信され、分配装置2a,2bによって当該車速データが受信され、更に分配装置2a,2b間でデータが同期される場合を例に挙げて説明する。図9、図10及び図11は、本発明の車載通信システムを構成する車載装置1a及び分配装置2a,2b間でデータが送受信され、記憶される処理を模式的に示す説明図である。   Next, as a specific example of the processing as described above, data having the vehicle type as the vehicle speed is transmitted by the control unit 10a of the in-vehicle device 1a, the vehicle speed data is received by the distribution devices 2a and 2b, and the distribution device 2a. , 2b will be described as an example. FIG. 9, FIG. 10 and FIG. 11 are explanatory diagrams schematically showing processes in which data is transmitted and received between the in-vehicle device 1a and the distribution devices 2a and 2b constituting the in-vehicle communication system of the present invention and stored.

図9(a)は図4の説明図に示した各期間の内の期間A、図9(b)は同様に期間B、図10(a)は期間C、図10(b)は期間D、図11(a)は期間Eにおける処理を示している。図9(a)、図9(b)、図10(a)、図10(b)、図11(a)の説明図では夫々、本発明に係る車載通信システムを構成する車載装置1a及び分配装置2a,2bの接続関係を示し、車載装置1aから分配装置2a,2bへ送信されるメッセージの内容を示し、更に、分配装置2a,2bが夫々備えているデータベース21a,21bで記憶されるデータの内容例を表により示している。   9A is a period A among the periods shown in the explanatory diagram of FIG. 4, FIG. 9B is a period B, FIG. 10A is a period C, and FIG. 10B is a period D. FIG. 11A shows processing in the period E. 9 (a), FIG. 9 (b), FIG. 10 (a), FIG. 10 (b), and FIG. 11 (a), the in-vehicle device 1a and the distribution constituting the in-vehicle communication system according to the present invention, respectively. The connection relationship between the devices 2a and 2b, the contents of messages transmitted from the in-vehicle device 1a to the distribution devices 2a and 2b, and the data stored in the databases 21a and 21b provided in the distribution devices 2a and 2b, respectively. An example of the contents is shown in a table.

まず、送信スロットである期間Aでは図9(a)の説明図に示すように、車載装置1aの制御部10aは、車速データ(値=20)及び車速データに付与されたシーケンス番号「100」を含んだメッセージを生成し、分配装置2a及び分配装置2bへ車内通信回線3a,3bを介して送信する。なお、シーケンス番号「100」は1増加された番号である。分配装置2aの制御部20aは、車載装置1aから送信されたメッセージを受信し、データベース21aを更新する。これにより、分配装置2aのデータベース21aに記憶される車速データは、値が「20」、シーケンス番号が「100」のデータに更新される。一方、期間Aでは車内通信回線3bが例えば輻輳状態であることにより、分配装置2bの制御部20bは、車載装置1aから送信されたメッセージを受信することができず、データベース21bは更新されず、分配装置2bのデータベース21bに記憶されている車速データは、値が「10」、シーケンス番号が「99」である。   First, in the period A that is a transmission slot, as shown in the explanatory diagram of FIG. 9A, the control unit 10a of the in-vehicle device 1a performs the vehicle speed data (value = 20) and the sequence number “100” given to the vehicle speed data. Is transmitted to the distribution device 2a and the distribution device 2b via the in-vehicle communication lines 3a and 3b. The sequence number “100” is a number increased by 1. The control unit 20a of the distribution device 2a receives the message transmitted from the in-vehicle device 1a and updates the database 21a. As a result, the vehicle speed data stored in the database 21a of the distribution device 2a is updated to data having a value of “20” and a sequence number of “100”. On the other hand, in the period A, because the in-vehicle communication line 3b is in a congested state, for example, the control unit 20b of the distribution device 2b cannot receive the message transmitted from the in-vehicle device 1a, the database 21b is not updated, The vehicle speed data stored in the database 21b of the distribution device 2b has a value “10” and a sequence number “99”.

次に、同期スロットである期間Bでは図9(b)の説明図に示すように、分配装置2a,2b間で通信線4を介してデータが送受信されて同期される。ここでは、分配装置2aの制御部20aが、データベース21aから車速データの値「20」及び記憶してあるシーケンス番号「100」を含むメッセージを生成し、分配装置2bへ送信する。分配装置2bの制御部20bは、分配装置2aから受信したメッセージに含まれる車速データのシーケンス番号「100」と、データベース21bに記憶してある車速データのシーケンス番号「99」とを比較する。分配装置2bの制御部20bは、受信したメッセージに含まれるデータのシーケンス番号「100」が、記憶してある車速データのシーケンス番号「99」よりも大きいと判断するので、受信した車速データの値「20」及びシーケンス番号「100」をデータベース21bに記憶する。これにより、分配装置2a,2bのデータベース21a,21bが最新のデータに同期される。   Next, in the period B which is a synchronization slot, data is transmitted and received between the distribution devices 2a and 2b via the communication line 4 and synchronized as shown in the explanatory diagram of FIG. 9B. Here, the control unit 20a of the distribution device 2a generates a message including the vehicle speed data value “20” and the stored sequence number “100” from the database 21a, and transmits the message to the distribution device 2b. The control unit 20b of the distribution device 2b compares the sequence number “100” of the vehicle speed data included in the message received from the distribution device 2a with the sequence number “99” of the vehicle speed data stored in the database 21b. Since the control unit 20b of the distribution device 2b determines that the sequence number “100” of the data included in the received message is greater than the sequence number “99” of the stored vehicle speed data, the value of the received vehicle speed data “20” and the sequence number “100” are stored in the database 21b. Thereby, the databases 21a and 21b of the distribution devices 2a and 2b are synchronized with the latest data.

次に、送信スロットである期間Cでは図10(a)の説明図に示すように、車載装置1aの制御部10aは、車速データ(値=45)を含むメッセージを生成する。このとき車載装置1aの制御部10aは、前回送信したデータのシーケンス番号「100」を1増加させたシーケンス番号「101」を車速データに共に含めてメッセージを生成し、分配装置2a,2bへ送信する。分配装置2a,2bの制御部20a,20bは、車載装置1aから送信されたメッセージを受信し、メッセージに含まれる車速データのシーケンス番号「101」とデータベース21a,21bに記憶してある車速データのシーケンス番号「100」とを比較する。分配装置2a,2bの制御部20a,20bは夫々、受信したメッセージに含まれるデータのシーケンス番号「101」が、記憶してある車速データのシーケンス番号「100」よりも大きいと判断するので、受信したメッセージに含まれる車速データの値「45」及びシーケンス番号「101」をデータベース21a,21bに記憶し、更新する。   Next, in the period C which is a transmission slot, as shown in the explanatory diagram of FIG. 10A, the control unit 10a of the in-vehicle device 1a generates a message including vehicle speed data (value = 45). At this time, the control unit 10a of the in-vehicle device 1a generates a message by including the sequence number “101” obtained by incrementing the sequence number “100” of the previously transmitted data by 1 in the vehicle speed data, and transmits the message to the distribution devices 2a and 2b. To do. The control units 20a and 20b of the distribution devices 2a and 2b receive the message transmitted from the in-vehicle device 1a, and the vehicle speed data sequence number “101” included in the message and the vehicle speed data stored in the databases 21a and 21b. The sequence number “100” is compared. The control units 20a and 20b of the distribution devices 2a and 2b determine that the sequence number “101” of the data included in the received message is greater than the sequence number “100” of the stored vehicle speed data. The vehicle speed data value “45” and sequence number “101” included in the received message are stored in the databases 21a and 21b and updated.

次に、同期スロットである期間Dでは図10(b)の説明図に示すように、分配装置2a,2b間でデータが送受信されて同期される。この期間でも、分配装置2aの制御部20aが、データベース21aから車速データの値「45」及び記憶してあるシーケンス番号「101」を含むメッセージを生成し、分配装置2bへ送信する。期間Bにおける処理同様に、分配装置2bの制御部20bは、分配装置2bから受信したメッセージに含まれる車速データのシーケンス番号「101」と、データベース21bに記憶してある車速データのシーケンス番号「101」とを比較する。しかし、期間Dでは分配装置2bの制御部20bは、受信したメッセージに含まれるデータのシーケンス番号「101」が、記憶してある車速データのシーケンス番号「101」以下であると判断するので、受信したメッセージに含まれる車速データ及びシーケンス番号を破棄する。記憶してあるデータと同一内容であり、既に同期されている状態であるので更新されない。   Next, in the period D that is a synchronization slot, data is transmitted and received between the distribution devices 2a and 2b and synchronized as shown in the explanatory diagram of FIG. Even during this period, the control unit 20a of the distribution device 2a generates a message including the vehicle speed data value “45” and the stored sequence number “101” from the database 21a, and transmits the message to the distribution device 2b. Similar to the processing in the period B, the control unit 20b of the distribution device 2b includes the sequence number “101” of the vehicle speed data included in the message received from the distribution device 2b and the sequence number “101” of the vehicle speed data stored in the database 21b. ". However, during the period D, the control unit 20b of the distribution device 2b determines that the sequence number “101” of the data included in the received message is equal to or less than the sequence number “101” of the stored vehicle speed data. The vehicle speed data and sequence number included in the received message are discarded. Since it has the same content as the stored data and is already synchronized, it is not updated.

次に、送信スロットである期間Eでは図11(a)の説明図に示すように、車載装置1aの制御部10aにより期間Aで送信された車速データ(値=20)及びシーケンス番号「100」を含むメッセージが車内通信回線3bを介して分配装置2bへ再送される。分配装置2bの制御部20bは、再送されたメッセージを受信する。分配装置2bの制御部20bは、受信したメッセージに含まれる車速データのシーケンス番号「100」とデータベース21bに記憶してある車速データのシーケンス番号「101」とを比較する。この場合、分配装置2bの制御部20bは、受信したメッセージに含まれるデータのシーケンス番号「100」が、記憶してある車速データのシーケンス番号「101」以下であると判断するので、受信したメッセージに含まれる車速データ及びシーケンス番号を破棄する。   Next, in the period E which is a transmission slot, as shown in the explanatory diagram of FIG. 11A, the vehicle speed data (value = 20) and the sequence number “100” transmitted in the period A by the control unit 10a of the in-vehicle device 1a. Is retransmitted to the distribution device 2b via the in-vehicle communication line 3b. The control unit 20b of the distribution device 2b receives the retransmitted message. The control unit 20b of the distribution device 2b compares the sequence number “100” of the vehicle speed data included in the received message with the sequence number “101” of the vehicle speed data stored in the database 21b. In this case, the control unit 20b of the distribution device 2b determines that the sequence number “100” of the data included in the received message is equal to or less than the sequence number “101” of the stored vehicle speed data. The vehicle speed data and sequence number included in are discarded.

上述のように分配装置2bは、送信スロット及び同期スロットの期間に夫々、車載装置1a,1b,1c及び分配装置2aから同一のデータを含むメッセージを受信する。本発明の場合、車載装置1a,1b,1cからはデータにシーケンス番号が付与されて共に送信され、且つそのシーケンス番号は送信の都度増加される。したがって、分配装置2bは、より大きいシーケンス番号が付与されたデータが最新のデータであることを認識し、受信したメッセージのデータのシーケンス番号が、データベース21bに記憶してあるデータに付与されているシーケンス番号よりも大きいと判断した場合のみデータベース21bにそのデータを記憶する。この処理により、分配装置2bが、古いデータによって新しいデータを更新してしまうことを回避することができ、車載装置1a,1b,1cに対するデータベースとの接続関係をデータベース21a及びデータベース21b両方と接続することにより二重化してデータの信頼性を向上させた上で更に、データの信頼性を向上させることができる。   As described above, the distribution device 2b receives messages including the same data from the in-vehicle devices 1a, 1b, and 1c and the distribution device 2a during the transmission slot and the synchronization slot, respectively. In the case of the present invention, the in-vehicle devices 1a, 1b, and 1c are transmitted together with a sequence number assigned to the data, and the sequence number is increased each time transmission is performed. Accordingly, the distribution device 2b recognizes that the data to which the larger sequence number is assigned is the latest data, and the sequence number of the data of the received message is assigned to the data stored in the database 21b. Only when it is determined that the number is larger than the sequence number, the data is stored in the database 21b. By this processing, it is possible to avoid the distribution device 2b updating new data with old data, and connect the connection relationship with the database for the in-vehicle devices 1a, 1b, and 1c to both the database 21a and the database 21b. Thus, the reliability of the data can be further improved while the data reliability is improved by duplication.

なお、本実施の形態では車内通信回線をも車内通信回線3a,3bによって二重化する構成とした。しかしながら、本発明はこれに限らず、分配装置2a,2b及び車載装置1a,1b,1cがいずれも一の車内通信回線に接続している構成でもよい。この場合、車載装置1a,1b,1cは通信制御部を二つ備える必要がなく、一の通信制御部を介して車内通信回線に接続し、当該一の車内通信回線を介してデータを分配装置2a及び分配装置2bに送信する構成でもよい。分配装置2aが何らかの要因で故障した場合であっても車載装置1a,1b,1cは分配装置2bからデータを受信することができ、システムの信頼性は向上する。   In this embodiment, the in-vehicle communication line is also duplicated by the in-vehicle communication lines 3a and 3b. However, the present invention is not limited to this, and the distribution devices 2a and 2b and the in-vehicle devices 1a, 1b, and 1c may all be connected to one in-vehicle communication line. In this case, the in-vehicle devices 1a, 1b, and 1c do not need to include two communication control units, but are connected to the in-vehicle communication line via one communication control unit, and distribute data via the one in-vehicle communication line. It may be configured to transmit to 2a and distribution device 2b. Even if the distribution device 2a fails for some reason, the in-vehicle devices 1a, 1b, and 1c can receive data from the distribution device 2b, and the reliability of the system is improved.

本実施の形態では、車載装置1a,1b,1cの全部が複数の分配装置2a,2bへ接続する構成とした。しかしながら、本発明はこれに限らず、車載装置1a,1b,1cの内の一部のみが複数の分配装置2a,2bへ接続している構成でもよい。例えば、車載装置1aのみ分配装置2a及び分配装置2bに接続し、車載装置1bは車内通信回線3aのみに接続して分配装置2aとのみデータの送受信が可能であり、車載装置1bは車内通信回線3bのみに接続して分配装置2bとのみデータの送受信が可能である構成でもよい。   In the present embodiment, all the in-vehicle devices 1a, 1b, and 1c are connected to the plurality of distribution devices 2a and 2b. However, the present invention is not limited to this, and only a part of the in-vehicle devices 1a, 1b, and 1c may be connected to the plurality of distribution devices 2a and 2b. For example, only the in-vehicle device 1a is connected to the distribution device 2a and the distribution device 2b, the in-vehicle device 1b is connected only to the in-vehicle communication line 3a and can transmit / receive data only to / from the distribution device 2a, and the in-vehicle device 1b is in-vehicle communication line A configuration in which data can be transmitted / received only to / from the distribution device 2b by connecting only to 3b may be used.

また、本実施の形態では車載装置1a,1b,1cがデータを送信する場合にデータに付与する番号は、送信する都度増加させる構成とした。しかしながら、本発明はこれに限らず、送信する都度番号を減少させ、番号が小さい程最新のデータであると判断できるように構成してもよい。この場合、分配装置2a,2bの制御部20a,20bは受信したデータに付与されている番号の値が記憶してあるデータの番号よりも小さい場合にデータベースに記憶し、記憶してある番号以上である場合はデータを破棄する。   Moreover, in this Embodiment, when the vehicle equipment 1a, 1b, 1c transmits data, it was set as the structure which increases the number provided to data, every time it transmits. However, the present invention is not limited to this, and the number may be decreased each time data is transmitted, and the smaller the number, the more recent data can be determined. In this case, the control units 20a and 20b of the distribution devices 2a and 2b store in the database when the value of the number assigned to the received data is smaller than the stored data number, and exceed the stored number. If it is, discard the data.

本発明に係る車載通信システムの構成を示す模式図である。It is a schematic diagram which shows the structure of the vehicle-mounted communication system which concerns on this invention. 本発明に係る車載通信システムを構成する車載装置及び分配装置の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the vehicle equipment and distribution device which comprise the vehicle-mounted communication system which concerns on this invention. 本発明に係る車載通信システムを構成する車載装置及び分配装置間で送受信されるメッセージのフォーマットを模式的に表わす説明図である。It is explanatory drawing which represents typically the format of the message transmitted / received between the vehicle equipment and distribution device which comprise the vehicle-mounted communication system which concerns on this invention. 本実施の形態における各車載装置及び各分配装置の制御部がタイマとして機能することにより従う所定の周期の例を模式的に示す説明図である。It is explanatory drawing which shows typically the example of the predetermined | prescribed period followed when the control part of each vehicle-mounted apparatus and each distribution apparatus in this Embodiment functions as a timer. 本実施の形態における車載通信システムで、送信スロットの期間に車載装置及び分配装置の間でデータが送受信される処理手順を示すフローチャートである。It is a flowchart which shows the process sequence in which data is transmitted / received between a vehicle-mounted apparatus and a distribution device in the period of a transmission slot in the vehicle-mounted communication system in this Embodiment. 本実施の形態における車載通信システムで、送信スロットの期間に車載装置及び分配装置の間でデータが送受信される処理手順を示すフローチャートである。It is a flowchart which shows the process sequence in which data is transmitted / received between a vehicle-mounted apparatus and a distribution device in the period of a transmission slot in the vehicle-mounted communication system in this Embodiment. 本実施の形態における車載通信システムで、同期スロットの期間に分配装置間でデータが送受信される処理手順を示すフローチャートである。It is a flowchart which shows the process sequence in which the data are transmitted / received between distribution devices in the period of a synchronous slot in the vehicle-mounted communication system in this Embodiment. 本実施の形態における車載通信システムで、同期スロットの期間に分配装置間でデータが送受信される処理手順を示すフローチャートである。It is a flowchart which shows the process sequence in which the data are transmitted / received between distribution devices in the period of a synchronous slot in the vehicle-mounted communication system in this Embodiment. 本発明の車載通信システムを構成する車載装置及び分配装置間でデータが送受信され、記憶される処理を模式的に示す説明図である。It is explanatory drawing which shows typically the process by which data is transmitted / received between the vehicle equipment and distribution device which comprise the vehicle-mounted communication system of this invention, and is memorize | stored. 本発明の車載通信システムを構成する車載装置及び分配装置間でデータが送受信され、記憶される処理を模式的に示す説明図である。It is explanatory drawing which shows typically the process by which data is transmitted / received between the vehicle equipment and distribution device which comprise the vehicle-mounted communication system of this invention, and is memorize | stored. 本発明の車載通信システムを構成する車載装置及び分配装置間でデータが送受信され、記憶される処理を模式的に示す説明図である。It is explanatory drawing which shows typically the process by which data is transmitted / received between the vehicle equipment and distribution device which comprise the vehicle-mounted communication system of this invention, and is memorize | stored.

符号の説明Explanation of symbols

1a,1b,1c 車載装置
10a,10b,10c 制御部
12a,12b,12c 記憶部
2a,2b 分配装置
20a,20b制御部
21a,21b データベース
23a,23b 記憶部
3a,3b 車内通信回線
4 通信線
1a, 1b, 1c In-vehicle device 10a, 10b, 10c Control unit 12a, 12b, 12c Storage unit 2a, 2b Distribution device 20a, 20b Control unit 21a, 21b Database 23a, 23b Storage unit 3a, 3b In-vehicle communication line 4 Communication line

Claims (5)

データを送受信する複数の車載装置と、該車載装置に接続されており各車載装置からデータを受信してデータベースに記憶する手段及び記憶したデータを各車載装置へ分配する手段を備える複数の分配装置とを備える車載通信システムであって、
前記車載装置の一部又は全部は、
前記複数の分配装置に夫々接続されており、
同一のデータを各分配装置へ送信する手段
を備えることを特徴とする車載通信システム。
A plurality of in-vehicle devices that transmit and receive data, a plurality of distribution devices that are connected to the in-vehicle devices, receive data from each in-vehicle device, store the data in a database, and distribute the stored data to each in-vehicle device An in-vehicle communication system comprising:
Part or all of the in-vehicle device is
Connected to each of the plurality of distribution devices,
An in-vehicle communication system comprising means for transmitting the same data to each distribution device.
前記分配装置は夫々、
データベースに記憶してあるデータを他の分配装置へ送信する手段と、
他の分配装置から送信されたデータを前記データベースに記憶する手段と
を備えることを特徴とする請求項1に記載の車載通信システム。
Each of the dispensing devices is
Means for transmitting data stored in the database to another distribution device;
The vehicle-mounted communication system according to claim 1, further comprising means for storing data transmitted from another distribution device in the database.
各車載装置はデータを送信するに際し、
データに番号を付与する手段と、
前記番号を増加(又は減少)させる手段と
を備え、
各分配装置は、
車載装置又は他の分配装置からデータを受信した場合、
共に受信したデータの番号が、記憶してあるデータの番号よりも大きい(又は小さい)か否かを判断する判断手段と、
該判断手段が、記憶してあるデータ番号よりも大きい(又は小さい)と判断した場合、受信したデータと共に受信した番号をデータベースに記憶する手段と、
前記判断手段が、記憶してあるデータ番号以下(又は以上)であると判断した場合、受信したデータを破棄する手段と、
データベースに記憶してあるデータを他の分配装置へ送信するに際し、記憶してある前記データの番号を共に送信する手段と
を備えることを特徴とする請求項1又は2に記載の車載通信システム。
Each in-vehicle device transmits data,
Means for assigning numbers to the data;
Means for increasing (or decreasing) the number,
Each dispensing device
When data is received from an in-vehicle device or other distribution device,
Determining means for determining whether the number of data received together is larger (or smaller) than the number of stored data;
Means for storing the received number in the database together with the received data when the determining means determines that it is larger (or smaller) than the stored data number;
Means for discarding the received data if the determining means determines that the data number is less than or equal to the stored data number (or more);
The vehicle-mounted communication system according to claim 1, further comprising: a unit that transmits the stored data number together with the data stored in the database when the data is transmitted to another distribution device.
データを送受信する複数の車載装置と、該車載装置に接続されており各車載装置からデータを受信してデータベースに記憶し、記憶したデータを各車載装置へ分配する複数の分配装置とを含む車載通信システムにおける車載通信方法であって、
前記車載装置の一部又は全部は、
前記複数の分配装置に夫々接続されており、
データを各分配装置へ送信するに際し、
データに番号を付与し、
前記番号を増加(又は減少)させ、
前記分配装置は、
データベースに記憶してあるデータを、記憶してある前記データの番号と共に他の分配装置へ送信し、
各車載装置又は他の分配装置からデータを受信した場合、
共に受信したデータの番号が、記憶してあるデータの番号よりも大きい(又は小さい)か否かを判断し、
記憶してあるデータの番号よりも大きい(又は小さい)と判断した場合、受信したデータと共に受信したデータの番号をデータベースに記憶し、
記憶してあるデータの番号以下(又は以上)であると判断した場合、受信したデータを破棄する
ことを特徴とする車載通信方法。
In-vehicle including a plurality of in-vehicle devices that transmit and receive data, and a plurality of distribution devices that are connected to the in-vehicle devices, receive data from each in-vehicle device, store the data in a database, and distribute the stored data to each in-vehicle device An in-vehicle communication method in a communication system,
Part or all of the in-vehicle device is
Connected to each of the plurality of distribution devices,
When sending data to each distributor,
Number the data,
Increase (or decrease) the number,
The distributor is
Send the data stored in the database to the other distribution device together with the number of the stored data,
When data is received from each in-vehicle device or other distribution device,
Determine whether the number of data received together is larger (or smaller) than the number of stored data,
If it is determined that it is larger (or smaller) than the stored data number, the received data number is stored in the database together with the received data.
An in-vehicle communication method characterized by discarding received data when it is determined that the number is less than or equal to the number of stored data.
データを送受信する複数の車載装置と、該車載装置に接続されており各車載装置からデータを受信してデータベースに記憶し、記憶したデータを各車載装置へ分配する複数の分配装置とを含む車載通信システムにおける車載通信方法であって、
前記車載装置の一部又は全部は、前記複数の分配装置に夫々接続されて同一のデータを各分配装置へ送信し、
前記車載装置及び分配装置は共通する所定の周期に従い、
該所定の周期の内のデータ送信期間に、
前記車載装置は、
データに番号を付与し、
前記番号を増加(又は減少)させて各分配装置へ送信し、
各分配装置は、
各車載装置からデータを受信した場合、
共に受信したデータ番号が、記憶してある前記データの番号よりも大きい(又は小さい)か否かを判断し、
記憶してあるデータの番号よりも大きい(又は小さい)と判断した場合、受信したデータと共に受信した番号をデータベースに記憶し、
記憶してあるデータの番号以下(又は以上)であると判断した場合、受信したデータを破棄し、
前記所定の周期の内の残期間に、
各分配装置は、
データベースに記憶してあるデータを、記憶してある前記データの番号と共に他の分配装置へ送信し、
各車載装置又は他の分配装置からデータを受信した場合、
共に受信したデータの番号が、記憶してあるデータの番号よりも大きい(又は小さい)か否かを判断し、
記憶してあるデータの番号よりも大きい(又は小さい)と判断した場合、受信したデータと共に受信したデータの番号をデータベースに記憶し、
記憶してあるデータの番号以下(又は以上)であると判断した場合、受信したデータを破棄する
ことを特徴とする車載通信方法。
In-vehicle including a plurality of in-vehicle devices that transmit and receive data, and a plurality of distribution devices that are connected to the in-vehicle devices, receive data from each in-vehicle device, store the data in a database, and distribute the stored data to each in-vehicle device An in-vehicle communication method in a communication system,
A part or all of the in-vehicle device is connected to each of the plurality of distribution devices and transmits the same data to each distribution device,
The in-vehicle device and the distribution device follow a predetermined cycle in common,
During the data transmission period within the predetermined period,
The in-vehicle device is
Number the data,
Increase (or decrease) the number and send it to each distribution device,
Each dispensing device
When data is received from each in-vehicle device,
Determine whether the data number received together is larger (or smaller) than the stored data number;
When it is determined that the number is larger (or smaller) than the stored data number, the received number is stored in the database together with the received data.
If it is determined that it is less than or equal to the number of stored data, discard the received data,
In the remaining period of the predetermined period,
Each dispensing device
Send the data stored in the database to the other distribution device together with the number of the stored data,
When data is received from each in-vehicle device or other distribution device,
Determine whether the number of data received together is larger (or smaller) than the number of stored data,
If it is determined that it is larger (or smaller) than the stored data number, the received data number is stored in the database together with the received data.
An in-vehicle communication method characterized by discarding received data when it is determined that the number is less than or equal to the number of stored data.
JP2007150783A 2007-06-06 2007-06-06 In-vehicle communication system and in-vehicle communication method Active JP5207106B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007150783A JP5207106B2 (en) 2007-06-06 2007-06-06 In-vehicle communication system and in-vehicle communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007150783A JP5207106B2 (en) 2007-06-06 2007-06-06 In-vehicle communication system and in-vehicle communication method

Publications (2)

Publication Number Publication Date
JP2008302780A true JP2008302780A (en) 2008-12-18
JP5207106B2 JP5207106B2 (en) 2013-06-12

Family

ID=40231873

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007150783A Active JP5207106B2 (en) 2007-06-06 2007-06-06 In-vehicle communication system and in-vehicle communication method

Country Status (1)

Country Link
JP (1) JP5207106B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5052704B1 (en) * 2012-01-04 2012-10-17 三菱電機株式会社 Train information management device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0662012A (en) * 1992-08-06 1994-03-04 Mazda Motor Corp Multiple transmitter
JPH09323599A (en) * 1996-06-06 1997-12-16 Toshiba Transport Eng Kk Vehicle information recording device
JP2003234747A (en) * 2001-12-07 2003-08-22 Mitsubishi Electric Corp Duplex ring network system and ring selecting method
JP2007081538A (en) * 2005-09-12 2007-03-29 Toshiba Corp Gateway unit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0662012A (en) * 1992-08-06 1994-03-04 Mazda Motor Corp Multiple transmitter
JPH09323599A (en) * 1996-06-06 1997-12-16 Toshiba Transport Eng Kk Vehicle information recording device
JP2003234747A (en) * 2001-12-07 2003-08-22 Mitsubishi Electric Corp Duplex ring network system and ring selecting method
JP2007081538A (en) * 2005-09-12 2007-03-29 Toshiba Corp Gateway unit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5052704B1 (en) * 2012-01-04 2012-10-17 三菱電機株式会社 Train information management device
WO2013102998A1 (en) * 2012-01-04 2013-07-11 三菱電機株式会社 Train information management device
US9553931B2 (en) 2012-01-04 2017-01-24 Mitsubishi Electric Corporation Train-information managing apparatus

Also Published As

Publication number Publication date
JP5207106B2 (en) 2013-06-12

Similar Documents

Publication Publication Date Title
US11251891B2 (en) Method for identifying an incorrect time stamp of an ethernet message and control unit for a motor vehicle
JP4987760B2 (en) Relay device, communication system, and communication method
US20200382597A1 (en) Vehicle diagnostic communication apparatus, system including the same and method thereof
US11558404B2 (en) On-board communication system, switching device, verification method, and verification program
JP5110998B2 (en) Distribution device, communication system, and communication method
JP2010021806A (en) Relay apparatuses, communication system, and communication method
JP5165957B2 (en) In-vehicle communication system
US20100115120A1 (en) Concurrent flashing of data processing units in hierarchical networks
US9501440B2 (en) Slave control device and method for programming a slave control device
JP2019139315A (en) Vehicular communication system
US10541830B2 (en) Serial communication system
US20230155806A1 (en) Method and System for Performing Time-Synchronization Between Units of a Communication Bus System
JP5207106B2 (en) In-vehicle communication system and in-vehicle communication method
JP2008172353A (en) In-vehicle relay device, in-vehicle communication system, and in-vehicle communication method
JP5009715B2 (en) In-vehicle communication system and distribution device
JP2009017154A (en) On-vehicle gateway device
JP5096060B2 (en) In-vehicle communication system
CN104283751A (en) Method and device for processing messages sent periodically on CAN bus
JP2009049933A (en) Communication system and communication method
JP7110950B2 (en) network system
JP2009029237A (en) On-vehicle communication system
WO2021164882A1 (en) Method and system for performing time-synchronization
JP2009049930A (en) Transmission device, transmission method, and communication system
JP2019165444A (en) Gateway device and communication method
JP5219120B2 (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: 20100303

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100303

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120329

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120403

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120601

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120918

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121114

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: 20130205

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130207

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

Free format text: PAYMENT UNTIL: 20160301

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5207106

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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