JP2008172353A - In-vehicle relay device, in-vehicle communication system, and in-vehicle communication method - Google Patents

In-vehicle relay device, in-vehicle communication system, and in-vehicle communication method Download PDF

Info

Publication number
JP2008172353A
JP2008172353A JP2007001716A JP2007001716A JP2008172353A JP 2008172353 A JP2008172353 A JP 2008172353A JP 2007001716 A JP2007001716 A JP 2007001716A JP 2007001716 A JP2007001716 A JP 2007001716A JP 2008172353 A JP2008172353 A JP 2008172353A
Authority
JP
Japan
Prior art keywords
data
vehicle
transmission
vehicle communication
received
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.)
Pending
Application number
JP2007001716A
Other languages
Japanese (ja)
Inventor
Toshiya Hisada
俊哉 久田
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.)
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Original Assignee
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 Sumitomo Wiring Systems Ltd, AutoNetworks Technologies Ltd, Sumitomo Electric Industries Ltd filed Critical Sumitomo Wiring Systems Ltd
Priority to JP2007001716A priority Critical patent/JP2008172353A/en
Publication of JP2008172353A publication Critical patent/JP2008172353A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an in-vehicle relay device, an in-vehicle communication system and an in-vehicle communication method that can transmit and receive data according to priority levels given to the data not only in one network but also among a plurality of networks. <P>SOLUTION: The in-vehicle relay device 50 which relays the transmission and reception of the data among the plurality of networks NW1, NW2, ..., is provided with transmission queues by connection ports connecting in-cabin communication lines 31, 32, ... of the respective networks NW1, NW2, ..., and data are stored in the respective transmission queues in transmission order corresponding to priority levels of data received by the in-vehicle relay device 50. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、車載通信装置が接続されたネットワークを車輌に複数搭載する場合に、ネットワーク間でのデータの送受信を中継するための車載中継装置、及びこの車載中継装置を用いて車載通信装置の通信を行う車載通信システム及び車載通信方法に関する。   The present invention relates to an in-vehicle relay device for relaying transmission / reception of data between networks when a plurality of networks to which the in-vehicle communication device is connected is mounted on a vehicle, and communication of the in-vehicle communication device using the in-vehicle relay device. The present invention relates to an in-vehicle communication system and an in-vehicle communication method.

従来、車輌には多数の電子装置が搭載されて様々な処理を行っている。これらの電子装置が協調して処理を行うためには、各電子装置に通信機能を設けてネットワークに接続し、相互にデータの送受信を行って情報を共有する必要がある。車輌に搭載された通信機能を有する電子装置(以下、車載通信装置という)がデータの送受信を行う場合、通信規約としてCAN(Controller Area Network)(非特許文献1、非特許文献2参照)が広く採用されている。   Conventionally, many electronic devices are mounted on a vehicle to perform various processes. In order for these electronic devices to perform processing in a coordinated manner, it is necessary to provide each electronic device with a communication function, connect to a network, and transmit / receive data to / from each other to share information. When an electronic device having a communication function mounted on a vehicle (hereinafter referred to as an in-vehicle communication device) transmits and receives data, CAN (Controller Area Network) (see Non-Patent Document 1 and Non-Patent Document 2) is widely used as a communication protocol. It has been adopted.

CANの規約では、差動信号を伝送するツイストペアケーブルからなるCANバスに車載通信装置が接続され、車載通信装置は差動信号によって表されるデジタルデータを送受信する。また、CANはシリアル通信のプロトコルであり、CANバスに接続されている複数の車載通信装置のうちの一の車載通信装置のみがデータを送信することができ、他の車載通信装置は一の車載通信装置がデータの送信を終了するまで待機するように制御される。よって、CANバスに接続されている複数の車載通信装置が同時的にデータの送信を試みた場合に、データの送信が競合するときがある。このときには、CANの規約に従って車載通信装置は他の車載通信装置と調停(アービトレーション)を行った上でデータを送信する。   Under the CAN convention, an in-vehicle communication device is connected to a CAN bus formed of a twisted pair cable that transmits a differential signal, and the in-vehicle communication device transmits and receives digital data represented by the differential signal. CAN is a protocol for serial communication, and only one in-vehicle communication device among a plurality of in-vehicle communication devices connected to the CAN bus can transmit data, and the other in-vehicle communication device is one in-vehicle communication device. Control is performed so that the communication device waits until data transmission is completed. Therefore, when a plurality of in-vehicle communication devices connected to the CAN bus attempt to transmit data at the same time, data transmission may compete. At this time, the in-vehicle communication device transmits data after arbitrating with another in-vehicle communication device in accordance with the rules of CAN.

車載通信装置が送信するデータには、データに含まれる各種情報の種類を識別するため、各種情報それぞれに割り当てられたIDが含まれている。CANの規約では、データの送信の調停はこのIDを優先度を表す情報として用いて行われるため、データ中のIDを含むフィールドをアービトレーションフィールドと呼称している。例えば、車輌のエンジンの状態に係る情報などの重要度の高い情報はIDに小さい数値を割り当て、重要度の低い情報ほどIDに大きな数値を割り当てて、各車載通信装置がデータを送信するときにIDの値が小さいデータを優先して送信するようにしてある。   The data transmitted by the in-vehicle communication device includes an ID assigned to each type of information in order to identify various types of information included in the data. According to the CAN rules, arbitration of data transmission is performed using this ID as information indicating priority. Therefore, a field including the ID in the data is referred to as an arbitration field. For example, when high importance information such as information related to the state of a vehicle engine is assigned a small numerical value to the ID, and low importance information is assigned a large numerical value to the ID, and each in-vehicle communication device transmits data. Data with a small ID value is preferentially transmitted.

近年では、車輌に搭載される電子装置の数が増加しており、多数の電子装置が一のネットワークに接続されることによってネットワークが帯域不足となり、データの送受信を円滑に行うことができず、各電子装置の処理が停滞するなどの問題が生じる虞がある。このため、車輌のネットワークを複数に分割して、各ネットワークをゲートウェイなどの中継装置に接続し、ネットワーク間のデータの送受信を中継装置を介して行うことにより、ネットワークの帯域不足を補うことが行われている。   In recent years, the number of electronic devices mounted on vehicles has increased, and a large number of electronic devices are connected to a single network, resulting in a lack of bandwidth in the network, and smooth transmission and reception of data. There is a possibility that problems such as stagnation of processing of each electronic device may occur. For this reason, the network of a vehicle is divided into a plurality of parts, each network is connected to a relay device such as a gateway, and data transmission / reception between the networks is performed via the relay device to compensate for the lack of network bandwidth. It has been broken.

図18は、従来の車載通信システムの一構成例を示す模式図である。図において10a、10b…は車載通信装置であり、車輌には複数の車載通信装置10a、10b…が搭載されてそれぞれ車内通信回線31、32…に接続してある。図示の例では、車載通信装置10a、10bを車内通信回線31に接続してネットワークNW1が構成してあり、車載通信装置10c、10dを車内通信回線32に接続してネットワークNW2が構成してあり、車載通信装置10e、10fを車内通信回線33に接続してネットワークNW3が構成してあり、車載通信装置10g、10h、10iを車内通信回線34に接続してネットワークNW4が構成してある。また、車輌中の複数のネットワークNW1、NW2…は車載中継装置100にそれぞれ接続してあり、一の車内通信回線に接続された一の車載通信装置が送信したデータを車載中継装置100が他の車内通信回線に接続された他の車載通信装置へ送信することができるようにしてある。例えば、車内通信回線31に接続された車載通信装置10aが送信したデータを車載中継装置100を介して車内通信回線34に接続された車載通信装置10iへ送信することができる。
ISO 11898−1:2003 Road vehicles--Controller area network(CAN)--Part1:Data link layer and physical signaling ISO 11519−1:1994 Road vehicles--Low-speed serial data communication--Part1:General and definitions
FIG. 18 is a schematic diagram showing a configuration example of a conventional in-vehicle communication system. In the figure, reference numerals 10a, 10b,... Denote in-vehicle communication devices. A plurality of in-vehicle communication devices 10a, 10b,... Are mounted on the vehicle and connected to in-vehicle communication lines 31, 32,. In the illustrated example, the in-vehicle communication devices 10a and 10b are connected to the in-vehicle communication line 31 to form the network NW1, and the in-vehicle communication devices 10c and 10d are connected to the in-vehicle communication line 32 to form the network NW2. The in-vehicle communication devices 10e and 10f are connected to the in-vehicle communication line 33 to form a network NW3, and the in-vehicle communication devices 10g, 10h and 10i are connected to the in-vehicle communication line 34 to form a network NW4. Further, a plurality of networks NW1, NW2,... In the vehicle are respectively connected to the in-vehicle relay device 100, and the in-vehicle relay device 100 transmits data transmitted from one in-vehicle communication device connected to one in-vehicle communication line to the other in-vehicle communication device. Transmission to other in-vehicle communication devices connected to the in-vehicle communication line is possible. For example, data transmitted by the in-vehicle communication device 10a connected to the in-vehicle communication line 31 can be transmitted to the in-vehicle communication device 10i connected to the in-vehicle communication line 34 via the in-vehicle relay device 100.
ISO 11898-1: 2003 Road vehicles--Controller area network (CAN)-Part1: Data link layer and physical signaling ISO 11519-1: 1994 Road vehicles--Low-speed serial data communication--Part1: General and definitions

図19は、従来の車載通信システムのデータ送信の一例を示す模式図であり、図18の車載通信システムにおいてデータの送信を行った場合の例を図示してある。図19(a)は、一のネットワークNW4内でのみデータの送受信を行う場合であり、例えば車載通信装置10gからIDが「23」のデータが送信され、車載通信装置10hからIDが「98」のデータが送信され、車載通信装置10iからIDが「26」のデータが送信される場合である。この場合、IDが最も小さい車載通信装置10gのデータが送信され、他のデータは送信を待機される。その後、車内通信回線34に接続された他の車載通信装置がデータを受信してデータの送受信が完了した場合、次いでIDが小さい車載通信装置10iのデータが送信される。このようにして、データに付されたIDに応じて送信を行うことにより、重要度の高いデータを優先的に送信することができる。   FIG. 19 is a schematic diagram showing an example of data transmission of a conventional in-vehicle communication system, and illustrates an example in which data is transmitted in the in-vehicle communication system of FIG. FIG. 19A shows a case where data is transmitted and received only within one network NW4. For example, data with ID “23” is transmitted from the in-vehicle communication device 10g, and ID is “98” from the in-vehicle communication device 10h. Is transmitted, and data with ID “26” is transmitted from the in-vehicle communication device 10i. In this case, the data of the in-vehicle communication device 10g having the smallest ID is transmitted, and other data is waited for transmission. Thereafter, when another in-vehicle communication device connected to the in-vehicle communication line 34 receives the data and the transmission / reception of the data is completed, the data of the in-vehicle communication device 10i having the next smallest ID is transmitted. In this way, high-priority data can be preferentially transmitted by performing transmission according to the ID attached to the data.

これに対して、図19(b)は、複数のネットワークNW1、NW2…間でデータの送受信を行う場合であり、例えばネットワークNW1の車載通信装置10bからIDが「12」のデータがネットワークNW4の車載通信装置10iへ送信され、ネットワークNW2の車載通信装置10dからIDが「23」のデータがネットワークNW4の車載通信装置10iへ送信される場合である。この場合、送信されたデータは車載中継装置100にて受信される。車載中継装置100は、各ネットワークNW1、NW2…の車内通信回線31、32…が接続される接続ポートを有すると共に、接続ポート毎に送信キューを有しており、受信したデータを送信先の車載通信装置10a、10b…に対応する接続ポートの送信キューに蓄積するようにしてある。従来の車載中継装置100は、受信したデータを受信した順番で各送信キューへ蓄積するため、図示の例において車載通信装置10dが送信したデータを中継装置100が先に受信し、車載通信装置10bが送信したデータを中継装置100が後に受信した場合には、送信キューにIDが「23」のデータが先に蓄積され、IDが「12」のデータが後に蓄積される。よって、ネットワークNW4の車載通信装置10iには優先度の低いデータが先に送信され、優先度の高いデータが後に送信されるという問題があった。   On the other hand, FIG. 19B shows a case where data is transmitted and received between a plurality of networks NW1, NW2,..., For example, data with an ID of “12” from the in-vehicle communication device 10b of the network NW1 of the network NW4. This is a case where data transmitted to the in-vehicle communication device 10i and the ID “23” is transmitted from the in-vehicle communication device 10d in the network NW2 to the in-vehicle communication device 10i in the network NW4. In this case, the transmitted data is received by the in-vehicle relay device 100. The in-vehicle relay device 100 has connection ports to which the in-vehicle communication lines 31, 32,... Of the networks NW1, NW2,... Are connected, and has a transmission queue for each connection port. It is made to accumulate | store in the transmission queue of the connection port corresponding to communication apparatus 10a, 10b .... Since the conventional in-vehicle relay device 100 accumulates the received data in each transmission queue in the order received, the relay device 100 first receives the data transmitted by the in-vehicle communication device 10d in the illustrated example, and the in-vehicle communication device 10b When the relay device 100 receives the data transmitted later, data with ID “23” is accumulated first in the transmission queue, and data with ID “12” is accumulated later. Therefore, the low-priority data is transmitted to the in-vehicle communication device 10i of the network NW4 first, and the high-priority data is transmitted later.

本発明は、斯かる事情に鑑みてなされたものであって、その目的とするところは、優先度に係る情報を含むデータを送受信する車載通信装置をネットワークに接続して、複数のネットワーク間で通信を行う場合に、一のネットワークの車載通信装置から受信したデータを、送信先の車載通信装置が接続された送信先ネットワークに対応付けて蓄積し、受信した複数のデータの送信順を優先度に応じて決定し、送信先ネットワーク毎に決定した送信順でデータを送信する構成とすることにより、複数のネットワーク間で優先度に応じてデータを中継し、複数の車載通信装置に通信を行わせることができる車載中継装置、車載通信システム及び車載通信方法を提供することにある。   The present invention has been made in view of such circumstances, and an object of the present invention is to connect an in-vehicle communication device that transmits and receives data including information related to priority to a network, and between a plurality of networks. When communicating, the data received from the in-vehicle communication device of one network is stored in association with the destination network to which the in-vehicle communication device of the transmission destination is connected, and the transmission order of the plurality of received data is prioritized. The data is transmitted in the order of transmission determined for each destination network, and the data is relayed according to the priority between the plurality of networks and communicated to the plurality of in-vehicle communication devices. It is providing the vehicle-mounted relay apparatus, vehicle-mounted communication system, and vehicle-mounted communication method which can be made.

また本発明の他の目的とするところは、送信すべき順にデータを待ち行列として蓄積する送信キューを設け、決定した送信順で送信を行うことができるように送信キューにデータを蓄積し、送信キューからデータを取得して送信先の車載通信装置へ送信する構成とすることにより、データの送信を簡単且つ確実に行うことができる車載中継装置、車載通信システム及び車載通信方法を提供することにある。   Another object of the present invention is to provide a transmission queue for storing data in a queue in the order to be transmitted, store the data in the transmission queue so that transmission can be performed in the determined transmission order, and transmit To provide an in-vehicle relay device, an in-vehicle communication system, and an in-vehicle communication method capable of easily and reliably transmitting data by acquiring data from a queue and transmitting the data to a destination in-vehicle communication device. is there.

また本発明の他の目的とするところは、同一のネットワークに接続された車載通信装置から受信した複数のデータに関しては、優先度に関わらず受信した順に他のネットワークの車載通信装置へ送信する構成とすることにより、一のネットワーク内でのデータ送信の調停結果を最優先にして他のネットワークへデータを送信することができる車載中継装置、車載通信システム及び車載通信方法を提供することにある。   Another object of the present invention is that a plurality of data received from an in-vehicle communication device connected to the same network is transmitted to the in-vehicle communication device of another network in the order received regardless of the priority. Thus, an object of the present invention is to provide an in-vehicle relay device, an in-vehicle communication system, and an in-vehicle communication method capable of transmitting data to another network with the highest priority given to the arbitration result of data transmission in one network.

また本発明の他の目的とするところは、同一の車載通信装置から受信した複数のデータに関しては、優先度に関わらず受信した順に他のネットワークの車載通信装置へ送信する構成とすることにより、一の車載通信装置によるデータの送信順を最優先にして他のネットワークへデータを送信することができる車載中継装置、車載通信システム及び車載通信方法を提供することにある。   Another object of the present invention is that a plurality of data received from the same in-vehicle communication device are transmitted to the in-vehicle communication device in another network in the order received regardless of the priority. It is an object of the present invention to provide an in-vehicle relay device, an in-vehicle communication system, and an in-vehicle communication method capable of transmitting data to another network with the highest priority given to the order of data transmission by one in-vehicle communication device.

また本発明の他の目的とするところは、受信したデータに受信時点に係る情報を付して蓄積しておき、受信した一のデータの受信時点と以前に受信した他のデータの受信時点との差が閾値を超える場合には、優先順位に関わらず以前に受信した他のデータを先に送信する構成とすることにより、優先度の低いデータが送信されずに待機した状態が長時間持続されることを防止できる車載中継装置、車載通信システム及び車載通信方法を提供することにある。   Another object of the present invention is to store the received data with information related to the reception time, and receive the reception time of one received data and the reception time of other previously received data. If the difference between the two exceeds the threshold, regardless of the priority order, other previously received data is transmitted first, so that the low-priority data is not transmitted and the standby state continues for a long time. It is providing the vehicle-mounted relay apparatus, vehicle-mounted communication system, and vehicle-mounted communication method which can prevent that.

第1発明に係る車載中継装置は、一又は複数の車載通信装置が接続されたネットワークに接続する複数の接続部と、一の接続部に接続されたネットワークの一の車載通信装置が送信したデータを受信する受信手段と、該受信手段が受信したデータを他の接続部に接続されたネットワークの他の車載通信装置へ送信する送信手段とを備える車載中継装置において、車載通信装置が送信するデータには優先度に係る情報を含み、前記受信手段が受信したデータを、該データの送信先の車載通信装置が接続された送信先ネットワークに対応付けて蓄積する蓄積手段と、前記受信手段が受信した複数のデータの送信順を、前記データの優先度に応じて決定する決定手段とを備え、前記送信手段は、送信先ネットワーク毎に、前記決定手段が決定した送信順に応じて前記蓄積手段に蓄積されたデータを送信するようにしてあることを特徴とする。   The in-vehicle relay device according to the first aspect of the invention includes a plurality of connection units connected to a network to which one or a plurality of in-vehicle communication devices are connected, and data transmitted by one in-vehicle communication device of the network connected to the one connection unit. Data transmitted by the in-vehicle communication device in the in-vehicle relay device comprising: a receiving means for receiving the data; and a transmitting means for transmitting the data received by the receiving means to another in-vehicle communication device connected to another connection unit Includes information relating to priority and stores the data received by the receiving means in association with the destination network to which the in-vehicle communication device to which the data is sent is connected, and the receiving means receives the data. Determining means for determining the transmission order of the plurality of data according to the priority of the data, wherein the transmitting means determines the transmission order determined by the determining means for each destination network. Characterized in that in accordance with the order are to be sent a the data accumulated in the accumulating means.

また、第2発明に係る車載中継装置は、前記蓄積手段が、前記決定手段が決定した送信順にデータを待ち行列として蓄積するようにしてあり、前記送信手段は、前記待ち行列からデータを取得して送信するようにしてあることを特徴とする。   In the in-vehicle relay device according to the second aspect of the invention, the storage unit stores data in a queue in the transmission order determined by the determination unit, and the transmission unit acquires data from the queue. It is characterized by being transmitted.

また、第3発明に係る車載中継装置は、前記決定手段が、前記受信手段が同一のネットワークに接続された車載通信装置から受信した複数のデータは、該データの優先度に関わらず、前記受信手段が受信した順に前記送信手段が送信するように送信順を決定するようにしてあることを特徴とする。   Further, in the in-vehicle relay device according to the third aspect of the present invention, the determination unit receives the plurality of data received from the in-vehicle communication device connected to the same network as the reception unit, regardless of the priority of the data. The transmission order is determined so that the transmission means transmits in the order received by the means.

また、第4発明に係る車載中継装置は、前記決定手段が、前記受信手段が同一の車載通信装置から受信した複数のデータは、該データの優先度に関わらず、前記受信手段が受信した順に前記送信手段が送信するように送信順を決定するようにしてあることを特徴とする。   Further, in the in-vehicle relay device according to the fourth aspect of the present invention, the determination unit receives a plurality of data received from the same in-vehicle communication device by the receiving unit in the order received by the receiving unit regardless of the priority of the data. The transmission order is determined so that the transmission means transmits.

また、第5発明に係る車載中継装置は、前記蓄積手段が、前記受信手段が受信したデータに、該データの受信時点に係る情報を付して蓄積するようにしてあり、前記決定手段は、前記受信手段が受信した一のデータの受信時点と、以前に受信した他のデータの受信時点との差が所定の閾値を超える場合には、前記一のデータ及び他のデータの優先度に関わらず、前記他のデータを先に送信するように送信順を決定するようにしてあることを特徴とする。   Further, in the in-vehicle relay device according to a fifth aspect of the invention, the storage means stores the data received by the receiving means with information relating to the reception time of the data, and the determining means When the difference between the reception time of the one data received by the receiving means and the reception time of the other data received previously exceeds a predetermined threshold, the priority is given to the priority of the one data and the other data. The transmission order is determined so that the other data is transmitted first.

また、第6発明に係る車載通信システムは、一又は複数の車載通信装置がそれぞれ接続された複数のネットワークと、該ネットワークに接続する複数の接続部、一の接続部に接続されたネットワークの一の車載通信装置が送信したデータを受信する受信手段、及び該受信手段が受信したデータを他の接続部に接続されたネットワークの他の車載通信装置へ送信する送信手段を有する車載中継装置とを備える車載通信システムにおいて、前記車載通信装置は、優先度に係る情報を含むデータを送信するようにしてあり、前記車載中継装置は、前記受信手段が受信したデータを、該データの送信先の車載通信装置が接続された送信先ネットワークに対応付けて蓄積する蓄積手段と、前記受信手段が受信した複数のデータの送信順を、前記データの優先度に応じて決定する決定手段とを有し、前記送信手段が、送信先ネットワーク毎に、前記決定手段が決定した送信順に応じて前記蓄積手段に蓄積されたデータを送信するようにしてあることを特徴とする。   An in-vehicle communication system according to a sixth aspect of the present invention includes a plurality of networks to which one or a plurality of in-vehicle communication devices are respectively connected, a plurality of connection units connected to the network, and a network connected to the one connection unit. A receiving means for receiving data transmitted by the in-vehicle communication device, and an in-vehicle relay device having transmitting means for transmitting the data received by the receiving means to another in-vehicle communication device connected to another connection unit In the in-vehicle communication system, the in-vehicle communication device is configured to transmit data including information related to priority, and the in-vehicle relay device transmits the data received by the receiving unit to the in-vehicle destination of the data The storage means for storing the data in association with the destination network to which the communication device is connected, and the transmission order of the plurality of data received by the receiving means, Determining means for determining according to the priorities, wherein the transmitting means transmits the data accumulated in the accumulating means for each transmission destination network according to the transmission order determined by the determining means. It is characterized by that.

また、第7発明に係る車載通信システムは、前記車載中継装置は、前記蓄積手段が、前記決定手段が決定した送信順にデータを待ち行列として蓄積するようにしてあり、前記送信手段が、前記待ち行列からデータを取得して送信するようにしてあることを特徴とする。   In the in-vehicle communication system according to the seventh aspect of the present invention, the in-vehicle relay device stores the data in a queue in the order of transmission determined by the determining unit, and the transmitting unit includes the waiting unit. Data is acquired from the matrix and transmitted.

また、第8発明に係る車載通信システムは、前記車載中継装置は、前記決定手段が、前記受信手段が同一のネットワークに接続された車載通信装置から受信した複数のデータは、該データの優先度に関わらず、前記受信手段が受信した順に前記送信手段が送信するように送信順を決定するようにしてあることを特徴とする。   In the in-vehicle communication system according to the eighth aspect of the present invention, the in-vehicle relay device includes a plurality of pieces of data received from the in-vehicle communication device connected to the same network by the determining unit. Regardless, the transmission order is determined so that the transmission means transmits in the order received by the reception means.

また、第9発明に係る車載通信システムは、前記車載中継装置は、前記決定手段が、前記受信手段が同一の車載通信装置から受信した複数のデータは、該データの優先度に関わらず、前記受信手段が受信した順に前記送信手段が送信するように送信順を決定するようにしてあることを特徴とする。   Further, in the in-vehicle communication system according to the ninth aspect of the present invention, the plurality of data received by the determining means from the same in-vehicle communication apparatus by the receiving means are the same regardless of the priority of the data. The transmission order is determined so that the transmission means transmits in the order received by the reception means.

また、第10発明に係る車載通信システムは、前記車載中継装置は、前記蓄積手段が、前記受信手段が受信したデータに、該データの受信時点に係る情報を付して蓄積するようにしてあり、前記決定手段が、前記受信手段が受信した一のデータの受信時点と、以前に受信した他のデータの受信時点との差が所定の閾値を超える場合には、前記一のデータ及び他のデータの優先度に関わらず、前記他のデータを先に送信するように送信順を決定するようにしてあることを特徴とする。   Further, in the in-vehicle communication system according to the tenth invention, the in-vehicle relay device is configured such that the storage unit stores the data received by the reception unit with information relating to the reception time of the data. And when the difference between the reception time of the one data received by the reception means and the reception time of the other data previously received exceeds a predetermined threshold, the determination means The transmission order is determined so that the other data is transmitted first regardless of the priority of the data.

また、第11発明に係る車載通信方法は、一又は複数の車載通信装置が接続されたネットワークに接続する複数の接続部を備える車載中継装置にて、一の接続部に接続されたネットワークの一の車載通信装置が送信したデータを受信し、受信したデータを他の接続部に接続されたネットワークの他の車載通信装置へ送信する車載通信方法において、車載通信装置が送信するデータには優先度に係る情報を含み、受信したデータを、該データの送信先の車載通信装置が接続された送信先ネットワークに対応付けて蓄積し、受信した複数のデータの送信順を、前記データの優先度に応じて決定し、送信先ネットワーク毎に、決定した送信順に応じて前記蓄積手段に蓄積されたデータを送信することを特徴とする。   An in-vehicle communication method according to an eleventh aspect of the present invention is an in-vehicle relay device including a plurality of connection units connected to a network to which one or a plurality of in-vehicle communication devices are connected, and a network connected to one connection unit. In the in-vehicle communication method of receiving the data transmitted by the in-vehicle communication device and transmitting the received data to other in-vehicle communication devices of the network connected to other connection units, the data transmitted by the in-vehicle communication device has a priority. The received data is stored in association with the transmission destination network to which the in-vehicle communication device that is the transmission destination of the data is connected, and the transmission order of the plurality of received data is set to the priority of the data. The data stored in the storage means is transmitted according to the determined transmission order for each destination network.

また、第12発明に係る車載通信方法は、決定した送信順にデータを待ち行列として蓄積し、前記待ち行列からデータを取得して送信することを特徴とする。   The on-vehicle communication method according to the twelfth aspect of the invention is characterized in that data is accumulated as a queue in the determined transmission order, and data is acquired from the queue and transmitted.

また、第13発明に係る車載通信方法は、同一のネットワークに接続された車載通信装置から受信した複数のデータは、該データの優先度に関わらず、受信した順に送信するように送信順を決定することを特徴とする。   In the in-vehicle communication method according to the thirteenth aspect, the transmission order is determined so that a plurality of data received from the in-vehicle communication devices connected to the same network are transmitted in the order received, regardless of the priority of the data. It is characterized by doing.

また、第14発明に係る車載通信方法は、同一の車載通信装置から受信した複数のデータは、該データの優先度に関わらず、受信した順に送信するように送信順を決定することを特徴とする。   The in-vehicle communication method according to the fourteenth invention is characterized in that the transmission order is determined so that a plurality of data received from the same in-vehicle communication device are transmitted in the order received, regardless of the priority of the data. To do.

また、第15発明に係る車載通信方法は、受信したデータに、該データの受信時点に係る情報を付して蓄積し、受信した一のデータの受信時点と、以前に受信した他のデータの受信時点との差が所定の閾値を超える場合には、前記一のデータ及び他のデータの優先度に関わらず、前記他のデータを先に送信するように送信順を決定することを特徴とする。   In the in-vehicle communication method according to the fifteenth aspect of the present invention, the received data is stored with the information related to the reception time of the data, and the reception time of the received one data and the other data previously received are stored. The transmission order is determined so that the other data is transmitted first regardless of the priority of the one data and the other data when the difference from the reception time exceeds a predetermined threshold. To do.

本発明においては、車載中継装置に複数の接続部を設けて、一又は複数の車載通信装置が接続されたネットワークをそれぞれ接続する。各車載通信装置は優先度に係る情報を含むデータを送信し、車載中継装置は一のネットワークに接続された車載通信装置からこのデータを受信し、他のネットワークに接続された車載通信装置へ送信する。このとき、車載通信装置では、受信したデータを送信先のネットワークに対応付けて蓄積すると共に、受信した複数のデータの送信順を各データの優先度に応じて決定し、送信先のネットワーク毎に決定した送信順に応じてデータの送信を行う。車載中継装置が、単に受信した順にデータを送信するのではなく、各データの優先度に応じた送信順でデータを送信するため、ネットワーク内のみでなくネットワーク間の通信においても各データに付された優先度を有効に利用できる。   In the present invention, a plurality of connection units are provided in the in-vehicle relay device, and the networks to which one or a plurality of in-vehicle communication devices are connected are respectively connected. Each in-vehicle communication device transmits data including information relating to priority, and the in-vehicle relay device receives this data from the in-vehicle communication device connected to one network and transmits it to the in-vehicle communication device connected to another network. To do. At this time, the in-vehicle communication device accumulates the received data in association with the transmission destination network, and determines the transmission order of the plurality of received data according to the priority of each data, for each transmission destination network. Data is transmitted according to the determined transmission order. The in-vehicle relay device does not simply transmit data in the order received, but instead transmits data in the order of transmission according to the priority of each data. Effective priority can be used.

また、本発明においては、車載中継装置に送信すべき順にデータを待ち行列として蓄積する送信キューを設けて、決定した送信順で送信を行うことができるように送信キューにデータを蓄積する。データを送信する際、車載中継装置は送信キューに蓄積されたデータを順に取得して送信するのみでよい。データの蓄積に送信キューを用いることによって、データの送信を簡単且つ確実に行うことができる。   In the present invention, a transmission queue for storing data as a queue in the order to be transmitted to the in-vehicle relay device is provided, and the data is stored in the transmission queue so that transmission can be performed in the determined transmission order. When transmitting data, the in-vehicle relay device only needs to acquire and transmit data stored in the transmission queue in order. By using a transmission queue for data accumulation, data transmission can be performed easily and reliably.

また、本発明においては、同一のネットワークに接続された一又は複数の車載通信装置から受信した複数のデータに関しては、各データの優先順位に応じて送信順を決定するのではなく、受信順に応じて送信順を決定する。同一のネットワーク内においては、既にデータの送信順の調停がなされているため、車載中継装置が受信した順序が本来の送信順序である。同一のネットワークに関するデータは受信順に送信順を決定することにより、優先順位に応じた入れ替えにより本来の優先順序を逆転させてしまうことがない。   In the present invention, for a plurality of data received from one or a plurality of in-vehicle communication devices connected to the same network, the order of transmission is not determined according to the priority order of each data, but according to the order of reception. To determine the transmission order. Since the transmission order of data has already been adjusted in the same network, the order received by the in-vehicle relay device is the original transmission order. By determining the transmission order of data related to the same network in the order of reception, the original priority order is not reversed by switching according to the priority order.

また、本発明においては、同一の車載通信装置から受信した複数のデータに関しては、各データの優先順位に応じて送信順を決定するのではなく、受信順に応じて送信順を決定する。同一の車載通信装置からは、その制御に従って送信すべき順でデータの送信がなされているため、同一の車載通信装置から送信されたデータは受信順に送信順を決定することによって、優先順位に応じた入れ替えにより本来の優先順序を逆転させてしまうことがない。車載通信装置は、例えばセンサなどが検出した車輌の状態をデータとして送信するが、センサによって検出した順に時系列的にデータを送信する場合が多い。よって、同一の車載通信装置から送信されたデータの送信順を入れ替えた場合には、これらのデータを受信して利用して処理を行う他の車載通信装置が時系列的なデータを非時系列的に受信することとなり、他の車載通信装置の処理が実行困難となる虞がある。同一の車載通信装置からのデータを受信順に送信することで、これを回避できる。   Further, in the present invention, for a plurality of data received from the same in-vehicle communication device, the transmission order is not determined according to the priority order of each data, but is determined according to the reception order. Since data is transmitted from the same in-vehicle communication device in the order to be transmitted according to the control, the data transmitted from the same in-vehicle communication device is determined according to the priority order by determining the transmission order in the order of reception. The original priority order is not reversed by the replacement. The in-vehicle communication device transmits, for example, a vehicle state detected by a sensor or the like as data, but often transmits data in time series in the order detected by the sensor. Therefore, when the transmission order of the data transmitted from the same in-vehicle communication device is changed, other in-vehicle communication devices that receive and use these data for processing process the time-series data in a non-time-series manner. Therefore, there is a possibility that the processing of another in-vehicle communication device becomes difficult to execute. This can be avoided by transmitting data from the same in-vehicle communication device in the order of reception.

また、本発明においては、受信したデータを蓄積する際に、受信時点に係る情報をデータに付して蓄積する。データの送信順を決定する際、受信した一のデータの受信時点と以前に受信した他のデータの受信時点との差が閾値を超える場合には、各データの優先度に関係なく、以前に受信した他のデータを先に送信するように送信順を決定する。車載通信装置からは時系列的にデータの送信がなされているので、車載通信装置からのデータの送信間に所定時間の間隔がある場合には、車載中継装置が受信した順序が本来の送信順序である。所定時間以上の間隔をおいて受信したデータは受信順に送信順を決定することにより、優先順位に応じた入れ替えにより本来の優先順序を逆転させてしまうことはない。また、常にデータの優先度に応じてデータの送信を行うと、優先度の高いデータを連続的に受信し続けた場合に、優先度の低いデータを送信することができない虞がある。データの受信時点の差が閾値を超える場合には優先度が低いデータであっても先に送信することによって、これを回避できる。   Further, in the present invention, when the received data is accumulated, information related to the reception time is attached to the data and accumulated. When determining the transmission order of data, if the difference between the reception time of one received data and the reception time of other data previously received exceeds the threshold, The transmission order is determined so that other received data is transmitted first. Since data is transmitted from the in-vehicle communication device in time series, when there is a predetermined time interval between data transmission from the in-vehicle communication device, the order received by the in-vehicle relay device is the original transmission order. It is. By determining the transmission order of data received at intervals of a predetermined time or more in the order of reception, the original priority order is not reversed by switching according to the priority order. Further, if data is always transmitted according to the priority of the data, there is a possibility that the low priority data cannot be transmitted when the high priority data is continuously received. When the difference in data reception time exceeds a threshold, this can be avoided by transmitting data of low priority first.

第1発明、第6発明及び第11発明による場合は、優先度に係る情報を含むデータを送受信する車載通信装置をネットワークに接続し、車載中継装置に複数の接続部を設けてネットワークをそれぞれ接続すると共に、一のネットワークの車載通信装置から受信したデータを、送信先の車載通信装置が接続された送信先ネットワークに対応付けて蓄積し、受信した複数のデータの送信順を優先度に応じて決定し、送信先ネットワーク毎に決定した送信順でデータを送信する構成とすることにより、ネットワーク内のみでなくネットワーク間の通信においても各データに付された優先度に応じた通信を行うことができるため、車輌の走行に重要な情報をより早く且つ確実に複数の車載通信装置が共有することができる。また、車載中継装置を介して複数のネットワークを接続してもデータの優先度が無効化されることがないため、車輌のネットワーク構成の自由度を高めることができる。   In the first invention, the sixth invention, and the eleventh invention, an in-vehicle communication device that transmits and receives data including priority information is connected to a network, and a plurality of connection units are provided in the in-vehicle relay device to connect the networks. In addition, the data received from the in-vehicle communication device of one network is stored in association with the destination network to which the in-vehicle communication device of the transmission destination is connected, and the transmission order of the plurality of received data is set according to the priority. By determining and transmitting data in the transmission order determined for each destination network, communication according to the priority assigned to each data can be performed not only within the network but also between networks. Therefore, a plurality of in-vehicle communication devices can share information important for traveling of the vehicle more quickly and reliably. Further, even if a plurality of networks are connected via the in-vehicle relay device, the priority of data is not invalidated, so that the degree of freedom of the vehicle network configuration can be increased.

また、第2発明、第7発明及び第12発明による場合は、車載中継装置に送信すべき順にデータを待ち行列として蓄積する送信キューを設けて、決定した送信順で送信を行うことができるように送信キューにデータを蓄積し、送信キューからデータを取得して送信先の車載通信装置へ送信する構成とすることにより、データを送信する際に送信キューに蓄積されたデータを順に取得して送信するのみでよいため、データの送信を簡単且つ確実に行うことができる。よって、車載中継装置のハードウェア規模の増大及び処理の複雑化等を招来することがない。   Further, in the case of the second invention, the seventh invention and the twelfth invention, a transmission queue for storing data as a queue in the order to be transmitted to the in-vehicle relay device is provided so that transmission can be performed in the determined transmission order. By collecting data in the transmission queue, acquiring the data from the transmission queue, and transmitting the data to the destination in-vehicle communication device, the data accumulated in the transmission queue is sequentially acquired when transmitting the data. Since it is only necessary to transmit, data can be transmitted easily and reliably. Therefore, the hardware scale of the in-vehicle relay device is not increased and the processing is not complicated.

また、第3発明、第8発明及び第13発明による場合は、同一のネットワークに接続された車載通信装置から受信した複数のデータに関しては、優先度に関わらず受信した順に他のネットワークの車載通信装置へ送信する構成とすることにより、既に調停がなされている同一のネットワーク内のデータの送信順を崩すことなく、車載中継装置を介して複数のネットワーク間での通信を行うことができ、優先順位が低いデータの送信が不当に遅延することを防止することができる。よって、ネットワークを複数に分割して車載中継装置により接続することが容易にできるため、車輌のネットワーク構成の自由度をより高めることができる。   In the third invention, the eighth invention, and the thirteenth invention, with respect to a plurality of data received from the in-vehicle communication device connected to the same network, the in-vehicle communication in other networks in the order received regardless of the priority. By adopting a configuration to transmit to the device, communication between multiple networks can be performed via the in-vehicle relay device without disrupting the transmission order of data in the same network that has already been arbitrated. It is possible to prevent the transmission of data having a lower rank from being unduly delayed. Therefore, since it is easy to divide the network into a plurality of parts and connect them by the in-vehicle relay device, the degree of freedom of the vehicle network configuration can be further increased.

また、第4発明、第9発明及び第14発明による場合は、同一の車載通信装置から受信した複数のデータに関しては、優先度に関わらず受信した順に他のネットワークの車載通信装置へ送信する構成とすることにより、一の車載通信装置が時系列的に送信するデータを他の車載通信装置が車載中継装置を介して時系列を崩すことなく受信することができる。即ち、優先順位が低いデータの送信が不当に遅延することを防止することができる。よって、ネットワークを複数に分割して車載中継装置により接続することが容易にできるため、車輌のネットワーク構成の自由度をより高めることができる。   In the case of the fourth, ninth, and fourteenth inventions, a plurality of data received from the same in-vehicle communication device are transmitted to the in-vehicle communication devices in other networks in the order received regardless of the priority. By doing so, the data transmitted by one in-vehicle communication device in time series can be received by another in-vehicle communication device via the in-vehicle relay device without destroying the time series. That is, it is possible to prevent the transmission of data with low priority from being unduly delayed. Therefore, since it is easy to divide the network into a plurality of parts and connect them by the in-vehicle relay device, the degree of freedom of the vehicle network configuration can be further increased.

また、第5発明、第10発明及び第15発明による場合は、受信したデータに受信時点に係る情報を付して蓄積しておき、受信した一のデータの受信時点と以前に受信した他のデータの受信時点との差が閾値を超える場合には、優先順位に関わらず以前に受信した他のデータを先に送信する構成とすることにより、優先度の高いデータを連続的に受信し続けて優先度の低いデータを送信することができない状態が長時間持続されることがないため、優先順位が低いデータの送信が不当に遅延することを防止することができ、車載中継装置を介した複数のネットワーク間でのデータの送受信の信頼性を高めることができる。   Further, in the case of the fifth, tenth and fifteenth inventions, the received data is added with information related to the reception time and stored, and the reception time of the received one data and other previously received data are stored. If the difference from the data reception time exceeds the threshold, the system will continue to receive high-priority data continuously by sending other previously received data regardless of priority. Therefore, it is possible to prevent the transmission of data with low priority from being unduly delayed, and the state where data with low priority cannot be transmitted for a long time. Reliability of data transmission / reception between a plurality of networks can be improved.

(実施の形態1)
以下、本発明をその実施の形態を示す図面に基づき具体的に説明する。図1は、本発明の実施の形態1に係る車載通信システムの一構成例を示す模式図である。図において10a、10b…は車載通信装置であり、複数の車載通信装置10a、10b…が図示しない車輌中の適所に配設されて、車輌の電子機器の制御又は車輌の走行状態の検出等の処理を行うようにしてある。各車載通信装置10a、10b…は、車輌中に敷設された電気通信ケーブル又は光通信ケーブル等による車内通信回線31、32…に適宜に接続されて、複数のネットワークNW1、NW2…を構成している。図示の例では、車載通信装置10a、10bを車内通信回線31に接続してネットワークNW1が構成してあり、車載通信装置10c、10dを車内通信回線32に接続してネットワークNW2が構成してあり、車載通信装置10e、10fを車内通信回線33に接続してネットワークNW3を構成してあり、車載通信装置10g、10h、10iを車内通信回線34に接続してネットワークNW4を構成してある。
(Embodiment 1)
Hereinafter, the present invention will be specifically described with reference to the drawings showing embodiments thereof. FIG. 1 is a schematic diagram showing a configuration example of an in-vehicle communication system according to Embodiment 1 of the present invention. In the figure, reference numerals 10a, 10b,... Denote in-vehicle communication devices. A plurality of in-vehicle communication devices 10a, 10b,... Processing is performed. Each of the in-vehicle communication devices 10a, 10b,... Is appropriately connected to the in-vehicle communication lines 31, 32, etc. by an electric communication cable or an optical communication cable laid in the vehicle, and constitutes a plurality of networks NW1, NW2,. Yes. In the illustrated example, the in-vehicle communication devices 10a and 10b are connected to the in-vehicle communication line 31 to form the network NW1, and the in-vehicle communication devices 10c and 10d are connected to the in-vehicle communication line 32 to form the network NW2. The in-vehicle communication devices 10e and 10f are connected to the in-vehicle communication line 33 to form the network NW3, and the in-vehicle communication devices 10g, 10h and 10i are connected to the in-vehicle communication line 34 to form the network NW4.

また、車輌中の複数のネットワークNW1、NW2…は、それぞれの車内通信回線31、32…を車載中継装置50に接続することによって、車載中継装置50を介して相互にデータの送受信を行うことができるようにしてある。車載中継装置50は、車輌中の適所に配設してあり、一のネットワーク中の車載通信装置が車内通信回線を介して送信したデータを受信し、他の車内通信回線を介して他のネットワーク中の車載通信装置へ送信することができるようにしてある。   Further, the plurality of networks NW1, NW2,... In the vehicle can transmit / receive data to / from each other via the in-vehicle relay device 50 by connecting the in-vehicle communication lines 31, 32,. I can do it. The in-vehicle relay device 50 is disposed at an appropriate position in the vehicle, receives data transmitted by the in-vehicle communication device in one network through the in-vehicle communication line, and receives another network through another in-vehicle communication line. It can be transmitted to the in-vehicle communication device.

また、車載中継装置50は、内部に複数の送信キュー501、502…を備えている。送信キュー501、502…は、車載中継装置50に接続された複数のネットワークNW1、NW2…毎にそれぞれ設けられ、各ネットワークNW1、NW2…の車載通信装置10a、10b…に送信するデータを一時的に蓄積するものである。図示の例では、車載中継装置50に4つのネットワークNW1〜NW4が接続されており、各ネットワークNW1〜NW4に対応付けて4つの送信キュー501〜504が設けてある。例えば、ネットワークNW1の車載通信装置10aがネットワークNW4の車載通信装置10iへ向けて送信したデータは車内通信回線31を介して車載中継装置50にて受信され、ネットワークNW4に対応付けて設けられた送信キュー504に蓄積された後、車内通信回線34を介してネットワークNW4の車載通信装置10iへ送信される。   The in-vehicle relay device 50 includes a plurality of transmission queues 501, 502,. The transmission queues 501, 502,... Are provided for each of the plurality of networks NW1, NW2,... Connected to the in-vehicle relay device 50, and temporarily transmit data to be transmitted to the in-vehicle communication devices 10a, 10b,. It accumulates in. In the illustrated example, four networks NW1 to NW4 are connected to the in-vehicle relay device 50, and four transmission queues 501 to 504 are provided in association with the networks NW1 to NW4. For example, data transmitted from the in-vehicle communication device 10a of the network NW1 to the in-vehicle communication device 10i of the network NW4 is received by the in-vehicle relay device 50 via the in-vehicle communication line 31, and is transmitted in association with the network NW4. After being stored in the queue 504, it is transmitted to the in-vehicle communication device 10i of the network NW4 via the in-vehicle communication line 34.

図2は、本発明の実施の形態1に係る車載通信システムの車載通信装置10a及び車載中継装置50の構成を示すブロック図である。なお、その他の車載通信装置10b、10c…の構成は、車載通信装置10aの構成と同様であるため図示を省略してある。車載通信装置10aは、以下の各部へ電力を供給する電源回路14、制御に必要なプログラム及びデータ等を記憶する記憶部15、車内通信回線31に接続されてデータの送受信を行う通信部16、車輌の走行状態などを検出するセンサ17に接続されてセンサ17から入力される信号を取得する入力部12、及び車輌に搭載された制御対象となる装置(図示は省略する)に接続されて制御信号などを出力する出力部13と、これらの各部の動作を制御する制御部11とを備えている。   FIG. 2 is a block diagram showing configurations of the in-vehicle communication device 10a and the in-vehicle relay device 50 of the in-vehicle communication system according to Embodiment 1 of the present invention. The other configurations of the in-vehicle communication devices 10b, 10c,... Are the same as the configuration of the in-vehicle communication device 10a, and are not shown. The in-vehicle communication device 10a includes a power supply circuit 14 that supplies power to the following units, a storage unit 15 that stores programs and data necessary for control, a communication unit 16 that is connected to the in-vehicle communication line 31 and transmits / receives data, It is connected to a sensor 17 that detects the running state of the vehicle and obtains a signal input from the sensor 17, and is connected to and controlled by a device (not shown) to be controlled mounted on the vehicle. An output unit 13 that outputs signals and the like, and a control unit 11 that controls operations of these units are provided.

車載通信装置10aの電源回路14は、図示しないオルタネータ又はバッテリ等の電力供給源に接続され、電力供給源からの電力を各部に適した電圧又は電流に調整した後に、各部へ供給するようにしてある。記憶部15は、EEPROM若しくはフラッシュメモリ等のデータ書き換え可能な不揮発性のメモリ素子、又は電池付きのSRAM又はDRAM等のデータ書き換え可能な揮発性のメモリ素子により構成してあり、車載通信装置10aの電源投入時に制御部11が記憶部15に予め記憶されたプログラム及びデータ等を読み出して処理を開始するようにしてあると共に、制御部11の処理過程で発生する各種の情報を一時的に記憶するようにしてある。   The power supply circuit 14 of the in-vehicle communication device 10a is connected to a power supply source such as an alternator or a battery (not shown), adjusts the power from the power supply source to a voltage or current suitable for each part, and then supplies the power to each part. is there. The storage unit 15 is configured by a rewritable non-volatile memory element such as an EEPROM or a flash memory, or a rewritable volatile memory element such as an SRAM or DRAM with a battery. When the power is turned on, the control unit 11 reads a program and data stored in the storage unit 15 in advance to start processing, and temporarily stores various information generated in the process of the control unit 11. It is like that.

また、入力部12には、例えば車速、加速度、エンジンの温度又はハンドルの操舵角等を検出する各種のセンサ17が接続してあり、センサ17からの検出値が信号として入力されている。入力部12は、センサ17が検出した検出値を取得して記憶部15に記憶すると共に、制御部11へセンサ17からの検出値の取得の完了を通知するようにしてある。出力部13には、車輌のエンジン又はブレーキ等の各種装置を電子的に制御するための電子回路(図示は省略する)に接続してあり、各種装置の動作を制御する制御信号を出力するようにしてある。なお、車載通信装置10aによっては入力部12及び出力部13はいずれか一方のみ備える構成であってもよい。   The input unit 12 is connected with various sensors 17 for detecting, for example, vehicle speed, acceleration, engine temperature, steering angle of a steering wheel, and the like, and detection values from the sensor 17 are input as signals. The input unit 12 acquires the detection value detected by the sensor 17 and stores it in the storage unit 15, and notifies the control unit 11 of the completion of acquisition of the detection value from the sensor 17. The output unit 13 is connected to an electronic circuit (not shown) for electronically controlling various devices such as a vehicle engine or a brake, and outputs a control signal for controlling the operation of the various devices. It is. Depending on the in-vehicle communication device 10a, the input unit 12 and the output unit 13 may be provided with only one of them.

通信部16に接続される車内通信回線31はCANのプロトコルに基づくバス型の通信回線であり、通信部16は車内通信回線31を介してCANに基づく信号を発生又は検知することによりデータの送受信を行うことができるようにしてある。CANに基づく車内通信回線31は2つの信号線からなり、信号線間に発生する作動電圧を検出して信号を検知することにより、データを受信するようにしてある。2つの信号線間の電圧に差がない状態がデジタル信号の”1”に該当し、電圧に差がある状態がデジタル信号の”0”に該当するようにしてある。通信部16は、2つの信号線間に作動電圧を発生させることで、デジタル信号によるデータを送信するようにしてある。なお、他の車内通信回線32〜34についても同様の構成である。   The in-vehicle communication line 31 connected to the communication unit 16 is a bus type communication line based on the CAN protocol, and the communication unit 16 transmits / receives data by generating or detecting a CAN-based signal via the in-vehicle communication line 31. To be able to do that. The in-vehicle communication line 31 based on CAN is composed of two signal lines, and detects data by detecting an operating voltage generated between the signal lines to detect data. The state where there is no difference in voltage between the two signal lines corresponds to “1” of the digital signal, and the state where there is a difference in voltage corresponds to “0” of the digital signal. The communication unit 16 transmits data based on a digital signal by generating an operating voltage between two signal lines. The other in-vehicle communication lines 32 to 34 have the same configuration.

制御部11は、センサ17から検出値を入力部12にて取得し、取得した検出値を基に演算を行って制御信号を生成し、出力部13から制御信号を出力するようにしてある。このとき、センサ17からの検出値を他の車載通信装置10b、10c…と共有する必要がある場合には、検出値を含む送信データを生成して通信部16へ与え、通信部16から車内通信回線31へ送信するようにしてある。他の車載通信装置10b、10c…への送信データには、センサ17の検出値に係る情報と共に、データの種別を表すIDなどが含まれている。これにより、他の車載通信装置10b、10c…は車載通信装置10aが送信したデータを受信し、受信したデータに含まれるIDを特定してデータの種別を判断し、データに含まれる検出値に応じた処理を行うことが可能となる。   The control unit 11 acquires a detection value from the sensor 17 at the input unit 12, performs a calculation based on the acquired detection value, generates a control signal, and outputs a control signal from the output unit 13. At this time, when it is necessary to share the detection value from the sensor 17 with the other in-vehicle communication devices 10b, 10c, ..., transmission data including the detection value is generated and given to the communication unit 16, and the communication unit 16 The data is transmitted to the communication line 31. The data transmitted to the other in-vehicle communication devices 10b, 10c,... Includes information indicating the detection value of the sensor 17 and an ID representing the type of data. Accordingly, the other in-vehicle communication devices 10b, 10c,... Receive the data transmitted by the in-vehicle communication device 10a, specify the ID included in the received data, determine the type of the data, and set the detected value included in the data. It is possible to perform the corresponding processing.

一方、車載中継装置50は、ネットワークNW1〜NW4の各車内通信回線31〜34を接続する接続ポート521〜524と、ネットワークNW1〜NW4の車載通信装置10a、10b…から受信し、他の車載通信装置10a、10b…へ送信するデータを記憶して蓄積する記憶部53と、各部へ電力を供給する電源回路54と、これらの制御を行う制御部51とを備えている。車載中継装置50の電源回路54は、車載通信装置10a、10b…の電源回路14と同様に、車輌に搭載されたオルタネータ又はバッテリ等の電力供給源に接続され、電力供給源からの電力を各部に適した電圧又は電流に調整した後に、各部へ供給するようにしてある。   On the other hand, the in-vehicle relay device 50 receives from the connection ports 521 to 524 connecting the in-vehicle communication lines 31 to 34 of the networks NW1 to NW4 and the in-vehicle communication devices 10a, 10b,. Are provided with a storage unit 53 that stores and accumulates data to be transmitted to the devices 10a, 10b,..., A power supply circuit 54 that supplies power to each unit, and a control unit 51 that controls these units. The power supply circuit 54 of the in-vehicle relay device 50 is connected to a power supply source such as an alternator or a battery mounted on the vehicle, similarly to the power supply circuit 14 of the in-vehicle communication devices 10a, 10b,. After being adjusted to a voltage or current suitable for the above, it is supplied to each part.

車載中継装置50の接続ポート521〜524は、車載通信装置10a、10b…の通信部16と略同じ機能を有するものであり、CANのプロトコルに基づく通信を行って、車内通信回線31〜34に接続された車載通信装置10a、10b…との間でデータの送受信を行うようにしてある。   The connection ports 521 to 524 of the in-vehicle relay device 50 have substantially the same functions as the communication units 16 of the in-vehicle communication devices 10a, 10b,..., And perform communication based on the CAN protocol to the in-vehicle communication lines 31 to 34. Data is transmitted / received to / from the connected in-vehicle communication devices 10a, 10b,.

また、記憶部53には4つの記憶領域が設けてあり、4つの記憶領域を送信キュー501〜504として利用するようにしてある。4つの送信キュー501〜504は、4つの接続ポート521〜524にそれぞれ接続されたネットワークNW1〜NW4に対応付けてある。車載中継装置50の制御部51は、内部のROM又は記憶部53等にデータに付されるIDと送信先の車載通信装置10a、10b…とが対応付けられた中継情報を有するルーティングテーブルを予め記憶しており、各接続ポート521〜524にて受信したデータに含まれるIDを調べ、ルーティングテーブルを参照することによって送信先の車載通信装置10a、10b…を特定し、データを送信先の車載通信装置10a、10b…を有するネットワークNW1〜NW4に対応付けられた送信キュー501〜504へ蓄積するようにしてある。   Further, the storage unit 53 is provided with four storage areas, and the four storage areas are used as the transmission queues 501 to 504. The four transmission queues 501 to 504 are associated with the networks NW1 to NW4 connected to the four connection ports 521 to 524, respectively. The control unit 51 of the in-vehicle relay device 50 previously stores a routing table having relay information in which the ID attached to the data in the internal ROM or the storage unit 53 and the destination in-vehicle communication devices 10a, 10b,. The IDs included in the data stored in the connection ports 521 to 524 are checked, the destination in-vehicle communication devices 10a, 10b,... Are identified by referring to the routing table, and the data is transmitted to the in-vehicle destination. Are stored in the transmission queues 501 to 504 associated with the networks NW1 to NW4 having the communication devices 10a, 10b.

送信キュー501〜504は、それぞれ複数のデータを順序付けて蓄積することができる。制御部51は、接続ポート521〜524にてデータを受信した場合には、受信したデータを対応する送信キュー501〜504へ送信順となるように順序付けて蓄積するようにしてあり、データを送信する場合には、各送信キュー501〜504から順にデータを読み出して、対応する接続ポート521〜524へ与えることによってデータを送信するようにしてある。これにより、車載中継装置50を介して複数のネットワークNW1、NW2…間で車載通信装置10a、10b…が相互にデータの送受信を行うことができる。   Each of the transmission queues 501 to 504 can accumulate a plurality of data in order. When the control unit 51 receives data at the connection ports 521 to 524, the control unit 51 stores the received data in the corresponding transmission queues 501 to 504 in the order of transmission so as to transmit the data. In this case, data is read out in order from the transmission queues 501 to 504 and given to the corresponding connection ports 521 to 524 to transmit the data. As a result, the in-vehicle communication devices 10a, 10b,... Can mutually transmit and receive data between the plurality of networks NW1, NW2,.

本実施の形態に係る車載中継装置50は、接続ポート521〜524にて受信したデータを送信キュー501〜504へ蓄積する際に、データに付されたIDを優先度としてスケジューリングを行い、各ネットワークNW1〜NW4への送信順に送信キュー501〜504へデータをそれぞれ蓄積するようにしてある。なお、各ネットワークNW1〜NW4内でのデータの送受信については、各車載通信装置10a、10b…の通信部16及び車載中継装置50の接続ポート521〜524にて、それぞれが接続された車内通信回線31〜34にて送信されているデータを監視し、送信しようとするデータのIDと送信中のデータのIDとを比較することによって、各車載通信装置10a、10b…及び車載中継装置50がIDの優先度に応じた調停を行ってデータを送信するようにしてある。   The in-vehicle relay device 50 according to the present embodiment performs scheduling using IDs attached to data as priorities when data received at the connection ports 521 to 524 is accumulated in the transmission queues 501 to 504, and each network Data is stored in transmission queues 501 to 504 in the order of transmission to NW1 to NW4. As for data transmission / reception in each of the networks NW1 to NW4, in-vehicle communication lines to which the communication units 16 of the in-vehicle communication devices 10a, 10b,... And the connection ports 521 to 524 of the in-vehicle relay device 50 are connected, respectively. Each of the in-vehicle communication devices 10a, 10b,... And the in-vehicle relay device 50 is identified by monitoring the data transmitted at 31 to 34 and comparing the ID of the data to be transmitted with the ID of the data being transmitted. The data is transmitted after arbitration according to the priority of the data.

図3及び図4は、本発明の実施の形態1に係る車載通信システムの車載中継装置50によるデータの送信順の決定方法を説明するための模式図であり、(a)から(d)へ時系列的にデータの流れを示してある。また、本図においては、ネットワークNW4の車載通信装置10g〜10iへ送信するデータについて着目して図示してあり、他のネットワークNW1〜NW3の車載通信装置10a〜10fへ送信するデータについては図示を省略してある。なお、データに付されたIDは数値が小さいものが優先度が高いものとする。   3 and 4 are schematic diagrams for explaining a method for determining the data transmission order by the in-vehicle relay device 50 of the in-vehicle communication system according to Embodiment 1 of the present invention, from (a) to (d). The data flow is shown in time series. Further, in the figure, the data transmitted to the in-vehicle communication devices 10g to 10i of the network NW4 is illustrated with attention paid thereto, and the data transmitted to the in-vehicle communication devices 10a to 10f of the other networks NW1 to NW3 is illustrated. It is omitted. It is assumed that the ID assigned to the data has a high priority when the numerical value is small.

例えば、まず、ネットワークNW2の車載通信装置10dが他のネットワークNW4の車載通信装置10g〜10iへIDが「23」のデータを送信した場合、車載中継装置50はこのデータを受信し、データに含まれるIDからルーティングテーブルを参照して送信先のネットワーク及び車載通信装置を特定し、データの送信先であるネットワークNW4に対応する送信キュー504の先頭へデータを蓄積する(図3(a)参照)。   For example, first, when the in-vehicle communication device 10d of the network NW2 transmits data with ID “23” to the in-vehicle communication devices 10g to 10i of the other network NW4, the in-vehicle relay device 50 receives this data and includes it in the data The destination network and the in-vehicle communication device are specified by referring to the routing table from the ID to be stored, and the data is accumulated at the head of the transmission queue 504 corresponding to the network NW4 that is the data transmission destination (see FIG. 3A). .

次いで、送信キュー504に蓄積されたデータが送信される前に、ネットワークNW1の車載通信装置10bが他のネットワークNW4の車載通信装置10g〜10iへIDが「12」のデータを送信した場合、車載中継装置50はこのデータを受信し、データの送信先であるネットワークNW4に対応する送信キュー504へデータを蓄積する。このとき、受信したデータのIDと送信キュー504に既に蓄積されているデータのIDとを比較し、IDが小さいデータの送信順が先になるように(図示の例では、送信キュー504の先頭に)、送信キュー504に蓄積するようにしてある(図3(b)参照)。   Next, if the in-vehicle communication device 10b of the network NW1 transmits the data with ID “12” to the in-vehicle communication devices 10g to 10i of the other network NW4 before the data accumulated in the transmission queue 504 is transmitted, The relay device 50 receives this data and stores the data in the transmission queue 504 corresponding to the network NW4 that is the data transmission destination. At this time, the ID of the received data is compared with the ID of the data already stored in the transmission queue 504 so that the transmission order of the data with the smaller ID comes first (in the example shown, the head of the transmission queue 504 In addition, the information is accumulated in the transmission queue 504 (see FIG. 3B).

次いで、送信キュー504に蓄積された2つのデータが送信される前に、ネットワークNW1の車載通信装置10bが他のネットワークNW4の車載通信装置10g〜10iへIDが「12」のデータを続けて送信した場合、車載中継装置50はこのデータを受信し、IDが小さいデータの送信順が先になるように受信したデータを送信キュー504へ蓄積する。このとき、受信したデータと同じIDのデータが送信キュー504に既に蓄積されている場合、先に受信したデータを先に送信することができるように(図示の例では、送信キュー504の2番目に)、送信キュー504に蓄積するようにしてある(図4(c)参照)。   Next, before the two pieces of data stored in the transmission queue 504 are transmitted, the in-vehicle communication device 10b of the network NW1 continuously transmits the data with the ID “12” to the in-vehicle communication devices 10g to 10i of the other network NW4. In this case, the in-vehicle relay device 50 receives this data and accumulates the received data in the transmission queue 504 so that the transmission order of the data with the smaller ID comes first. At this time, if data with the same ID as the received data is already accumulated in the transmission queue 504, the first received data can be transmitted first (in the example shown, the second of the transmission queue 504 In addition, the data is accumulated in the transmission queue 504 (see FIG. 4C).

次いで、ネットワークNW4の他のデータ送信が終了し、車載中継装置50が車内通信回線34を利用してネットワークNW4の車載通信装置10g〜10iへデータの送信が可能となった場合、送信キュー504の先頭に蓄積されたデータを車載通信装置10g〜10iへ(図示の例では、車載通信装置10hへ)送信するようにしてある(図4(d)参照)。   Next, when other data transmission of the network NW4 is finished and the in-vehicle relay device 50 can transmit data to the in-vehicle communication devices 10g to 10i of the network NW4 using the in-vehicle communication line 34, the transmission queue 504 The data accumulated at the head is transmitted to the in-vehicle communication devices 10g to 10i (in the illustrated example, to the in-vehicle communication device 10h) (see FIG. 4D).

即ち、車載中継装置50は、各接続ポート521〜524に接続されたネットワークNW1〜NW4毎に送信キュー501〜504を設けておき、車載通信装置10a、10b…からのデータを受信した場合に、データの送信先に対応する送信キュー501〜504に、データをIDの順で並べ替えて蓄積する。同じIDのデータを複数受信した場合には、受信した順で蓄積する。データを送信する場合には送信キュー501〜504毎に、送信順に並べて蓄積されたデータを読み出して、送信先の車載通信装置10a、10b…に送信する。   That is, the in-vehicle relay device 50 provides transmission queues 501 to 504 for each of the networks NW1 to NW4 connected to the connection ports 521 to 524, and receives data from the in-vehicle communication devices 10a, 10b,. Data is sorted and stored in the order of IDs in the transmission queues 501 to 504 corresponding to the data transmission destinations. When a plurality of pieces of data having the same ID are received, they are accumulated in the order received. When data is transmitted, the data stored in the order of transmission is read for each of the transmission queues 501 to 504, and transmitted to the in-vehicle communication devices 10a, 10b,.

図5は、本発明の実施の形態1に係る車載通信システムの車載中継装置50によるデータ受信時の処理の手順を示すフローチャートである。車載中継装置50の制御部51は、4つの接続ポート521〜524のいずれかにてデータを受信したか否かを監視しており(ステップS1)、いずれの接続ポート521〜524でもデータを受信していない場合(S1:NO)、いずれかの接続ポート521〜524にてデータを受信するまで監視を継続して行う。いずれかの接続ポート521〜524にてデータを受信した場合(S1:YES)、受信したデータに含まれるIDを取得すると共に(ステップS2)、取得したIDを基にルーティングテーブルを参照してデータの送信先を特定する(ステップS3)。   FIG. 5 is a flowchart showing a processing procedure at the time of data reception by the in-vehicle relay device 50 of the in-vehicle communication system according to the first embodiment of the present invention. The control unit 51 of the in-vehicle relay device 50 monitors whether data is received at any of the four connection ports 521 to 524 (step S1), and receives data at any of the connection ports 521 to 524. If not (S1: NO), monitoring is continued until data is received at any of the connection ports 521 to 524. When data is received at any one of the connection ports 521 to 524 (S1: YES), the ID included in the received data is acquired (step S2), and data is referred to the routing table based on the acquired ID. Is specified (step S3).

次いで、ステップS3にて特定した一の送信先のネットワークNW1〜NW4に対応する一の送信キュー501〜504にデータが蓄積されているか否かを調べ(ステップS4)、対応する一の送信キュー501〜504にデータが蓄積されていない場合(S4:NO)、対応する一の送信キュー501〜504の先頭に受信したデータを蓄積して(ステップS7)、処理を終了する。対応する一の送信キュー501〜504に既にデータが蓄積されている場合(S4:YES)、受信したデータと蓄積されたデータとの送信順を決定する処理を行う(ステップS5)。   Next, it is checked whether or not data is accumulated in one transmission queue 501 to 504 corresponding to one of the destination networks NW1 to NW4 specified in step S3 (step S4), and one corresponding transmission queue 501 is checked. If the data is not accumulated in ˜504 (S4: NO), the received data is accumulated at the head of the corresponding one of the transmission queues 501 to 504 (step S7), and the process is terminated. If data has already been accumulated in the corresponding one of the transmission queues 501 to 504 (S4: YES), processing for determining the transmission order of the received data and the accumulated data is performed (step S5).

図6は、本発明の実施の形態1に係る車載通信システムの車載中継装置50によるデータの送信順の決定処理の手順を示すフローチャートであり、図5に示すフローチャートのステップS5にて行う処理である。送信順の決定処理では、まず、対応する一の送信キュー501〜504の先頭に蓄積されたデータを取得し(ステップS21)、受信したデータのIDとステップS21にて取得したデータのIDとを比較して、受信したデータのIDが取得したデータのIDより小さいか否かを調べる(ステップS22)。受信したデータのIDが取得したデータのIDより小さい場合(S22:YES)、受信したデータを取得したデータの前に送信するように送信順を決定し(ステップS23)、送信順の決定処理を終了して図5に示す処理へ戻る。   FIG. 6 is a flowchart showing a procedure of data transmission order determination processing by the in-vehicle relay device 50 of the in-vehicle communication system according to the first embodiment of the present invention, and is a process performed in step S5 of the flowchart shown in FIG. is there. In the transmission order determination process, first, data accumulated at the head of one corresponding transmission queue 501 to 504 is acquired (step S21), and the received data ID and the data ID acquired in step S21 are obtained. In comparison, it is checked whether the ID of the received data is smaller than the ID of the acquired data (step S22). If the received data ID is smaller than the acquired data ID (S22: YES), the transmission order is determined so that the received data is transmitted before the acquired data (step S23), and the transmission order determination process is performed. End and return to the process shown in FIG.

また、ステップS22にて、受信したデータのIDが取得したデータのID以上の場合(S22:NO)、対応する一の送信キュー501〜504に次のデータが蓄積されているか否かを調べる(ステップS24)。次のデータが蓄積されている場合(S24:YES)、送信キュー501〜504から次のデータを取得して(ステップS25)、ステップS22へ戻り、上述の処理を繰り返し行う。対応する一の送信キュー501〜504に次のデータが蓄積されていない場合(S24:NO)、受信したデータを取得したデータの後に、即ち最後に送信するように送信順を決定し(ステップS26)、送信順の決定処理を終了して図5に示す処理へ戻る。   In step S22, if the ID of the received data is equal to or greater than the acquired data ID (S22: NO), it is checked whether or not the next data is stored in the corresponding one of the transmission queues 501 to 504 (step S22). Step S24). If the next data is accumulated (S24: YES), the next data is acquired from the transmission queues 501 to 504 (step S25), the process returns to step S22, and the above processing is repeated. When the next data is not accumulated in the corresponding one of the transmission queues 501 to 504 (S24: NO), the transmission order is determined so that the received data is transmitted after the acquired data, that is, last (step S26). ), The transmission order determination process is terminated, and the process returns to the process shown in FIG.

ステップS5にて図6に示す送信順の決定処理を行った後、受信したデータを決定した送信順となるように対応する一の送信キュー501〜504に蓄積し(ステップS6)、データ受信時の処理を終了する。その後、車載中継装置50の制御部51は、送信キュー501〜504に送信順で蓄積されたデータを順に読み出して、各送信先へ送信する。なお、図5及び図6に示した手順は、受信したデータの送信先が1つの場合を想定した手順であるが、1つのデータを複数の送信先へ送信することも可能であり、この場合にはステップS2にて複数の送信先に係る情報を取得し、ステップS3〜S7の処理を対応する複数の送信キュー501〜504毎に繰り返して又は平行して行う構成とすればよい。   After performing the transmission order determination process shown in FIG. 6 in step S5, the received data is stored in the corresponding transmission queues 501 to 504 so as to be in the determined transmission order (step S6). Terminate the process. Thereafter, the control unit 51 of the in-vehicle relay device 50 sequentially reads data stored in the transmission queues 501 to 504 in the order of transmission, and transmits the data to each transmission destination. The procedure shown in FIGS. 5 and 6 is a procedure that assumes a case where the destination of the received data is one, but it is also possible to transmit one data to a plurality of destinations. In step S2, information related to a plurality of transmission destinations may be acquired, and the processing in steps S3 to S7 may be repeated or performed in parallel for each of a plurality of corresponding transmission queues 501 to 504.

以上の構成の車載通信システムにおいては、複数のネットワークNW1、NW2…間のデータの送受信を中継する車載中継装置50に、各ネットワークNW1、NW2…の車内通信回線31、32…を接続する接続ポート521、522…毎に送信キュー501、502…を設け、車載中継装置50が受信したデータのID(優先度)に応じた送信順で送信キュー501、502…にデータを蓄積する構成とすることにより、ネットワークNW1、NW2…内でのデータの送受信と同様に、ネットワークNW1、NW2…間でのデータの送受信をデータの優先度に基づいて行うことが可能となる。よって、優先度の高い情報を複数の車載通信装置10a、10b…がより早く且つより確実に共有することが可能となり、車輌の電子的な制御をより確実に行うことが可能となる。   In the in-vehicle communication system configured as described above, connection ports for connecting the in-vehicle communication lines 31, 32,... Of the networks NW1, NW2,... To the in-vehicle relay device 50 that relays data transmission / reception between the plurality of networks NW1, NW2,. The transmission queues 501, 502... Are provided for each of 521, 522..., And the data is stored in the transmission queues 501, 502. Thus, similarly to data transmission / reception within the networks NW1, NW2,..., Data transmission / reception between the networks NW1, NW2... Can be performed based on the priority of the data. Therefore, it becomes possible for a plurality of in-vehicle communication devices 10a, 10b,... To share high-priority information earlier and more reliably, and it is possible to more reliably perform electronic control of the vehicle.

なお、本実施の形態においては、1つの車載中継装置50に4つのネットワークNW1〜NW4を接続する構成としたが、これに限るものではなく、車載中継装置50に3つ以下又は5つ以上のネットワークを接続する構成としてもよい。また、車載通信システム中に複数の車載中継装置50を備える構成としてもよい。また、各ネットワークNW1〜NW4の車内通信回線31〜34に接続された車載通信装置10a、10bの数なども図示のものに限らない。また、車内通信回線31をCANのプロトコルに基づくバス型の通信回線としたが、これに限るものではなく、LAN(Local Area Network)などの他のプロトコルに基づく通信回線であってもよい。また、図3及び図4に示したデータの送受信は一例であってこれに限るものではない。   In the present embodiment, the four networks NW1 to NW4 are connected to one in-vehicle relay device 50. However, the present invention is not limited to this, and the in-vehicle relay device 50 has three or less or five or more. It is good also as a structure which connects a network. Moreover, it is good also as a structure provided with the some vehicle-mounted relay apparatus 50 in a vehicle-mounted communication system. Further, the number of in-vehicle communication devices 10a and 10b connected to the in-vehicle communication lines 31 to 34 of the networks NW1 to NW4 is not limited to the illustrated one. The in-vehicle communication line 31 is a bus-type communication line based on the CAN protocol, but is not limited to this, and may be a communication line based on another protocol such as a LAN (Local Area Network). The data transmission / reception shown in FIGS. 3 and 4 is an example, and the present invention is not limited to this.

(変形例)
図7は、本発明の実施の形態1の変形例に係る車載通信システムの一構成例を示す模式図である。図1〜図6に示した車載通信システムにおいては、車載中継装置50の記憶部53にネットワークNW1〜NW4に対応付けた送信キュー501〜504を設けて、各送信キュー501〜504にそれぞれ送信するデータを蓄積する構成とした。この構成では、1つのデータを複数のネットワークNW1〜NW4へ送信する場合に、データを複製して各送信キュー501〜504に蓄積する必要があるため、記憶部53の記憶容量を多く必要とする。そこで、図7に示す変形例の車載通信システムにおいては、車載中継装置50aの記憶部に、データを蓄積するためのデータ蓄積領域530を設けて受信したデータを受信した順に蓄積するようにしてある。また、接続ポート521〜524に接続されたネットワークNW1〜NW4に対応付けて送信キュー501a〜504aを設けるが、送信キュー501a〜504aは、データ蓄積領域530に蓄積されたデータへのポインタをデータの送信順に記憶する構成としてある。これにより、各送信キュー501a〜504aがデータの複製をそれぞれ蓄積する必要がないため、記憶部53の記憶容量を節約することができる。
(Modification)
FIG. 7 is a schematic diagram showing a configuration example of the in-vehicle communication system according to the modification of the first embodiment of the present invention. In the in-vehicle communication system shown in FIGS. 1 to 6, transmission queues 501 to 504 associated with the networks NW1 to NW4 are provided in the storage unit 53 of the in-vehicle relay device 50 and transmitted to the respective transmission queues 501 to 504. A configuration for accumulating data was adopted. In this configuration, when one piece of data is transmitted to a plurality of networks NW1 to NW4, it is necessary to duplicate the data and store it in each of the transmission queues 501 to 504. Therefore, a large storage capacity of the storage unit 53 is required. . Therefore, in the in-vehicle communication system of the modification shown in FIG. 7, a data storage area 530 for storing data is provided in the storage unit of the in-vehicle relay device 50a so that received data is stored in the order received. . In addition, transmission queues 501a to 504a are provided in association with the networks NW1 to NW4 connected to the connection ports 521 to 524. The transmission queues 501a to 504a provide pointers to data stored in the data storage area 530. It is configured to store in the order of transmission. Thereby, each of the transmission queues 501a to 504a does not need to store a copy of the data, so that the storage capacity of the storage unit 53 can be saved.

(実施の形態2)
実施の形態1に係る車載通信システムの車載中継装置50は、受信したデータのIDにのみ応じて送信順を決定する構成であるが、実施の形態2に係る車載通信システムの車載中継装置150は、受信したデータのIDと共に、データの送信元のネットワークNW1〜NW4を考慮して送信順を決定する構成である。図8は、本発明の実施の形態2に係る車載通信システムの車載中継装置150によるデータの送信順の決定方法を説明するための模式図であり、(a)から(b)へ時系列的にデータの流れを示してある。また、本図においては、ネットワークNW4の車載通信装置10g〜10iへ送信するデータについて着目して図示してあり、他のネットワークNW1〜NW3の車載通信装置10a〜10fへ送信するデータについては図示を省略してある。
(Embodiment 2)
The in-vehicle relay device 50 of the in-vehicle communication system according to the first embodiment is configured to determine the transmission order only according to the ID of the received data, but the in-vehicle relay device 150 of the in-vehicle communication system according to the second embodiment is The transmission order is determined in consideration of the received data ID and the networks NW1 to NW4 of the data transmission source. FIG. 8 is a schematic diagram for explaining a method of determining the data transmission order by the in-vehicle relay device 150 of the in-vehicle communication system according to the second embodiment of the present invention, and is time-series from (a) to (b). Shows the data flow. Further, in the figure, the data transmitted to the in-vehicle communication devices 10g to 10i of the network NW4 is illustrated with attention paid thereto, and the data transmitted to the in-vehicle communication devices 10a to 10f of the other networks NW1 to NW3 is illustrated. It is omitted.

実施の形態2の車載中継装置150は、接続ポート521〜524に接続されたネットワークNW1〜NW4からデータを受信した場合、受信した接続ポート521〜524又はネットワークNW1〜NW4に対応付けられた送信元情報を受信したデータに付して、送信キュー501〜504に蓄積するようにしてある。また、一の送信キュー501〜504に複数のデータを蓄積する場合には、データのID(優先度)に応じて送信順に蓄積するが、同一の送信元情報を有するデータについては受信した順序を優先し、受信順と送信順とが逆転しないように送信順を決定する。   When in-vehicle relay apparatus 150 according to the second embodiment receives data from networks NW1 to NW4 connected to connection ports 521 to 524, the transmission source associated with the received connection ports 521 to 524 or networks NW1 to NW4 Information is added to the received data and accumulated in the transmission queues 501 to 504. In addition, when a plurality of data is accumulated in one transmission queue 501 to 504, the data is accumulated in the order of transmission according to the data ID (priority). The transmission order is determined so that the reception order and the transmission order are not reversed.

例えば、まず、ネットワークNW2の車載通信装置10dが他のネットワークNW4の車載通信装置10g〜10iへIDが「23」のデータを送信した場合、車載中継装置150はこのデータを受信し、データに含まれるIDからルーティングテーブルを参照して送信先のネットワーク及び車載通信装置を特定し、送信元情報としてネットワークNW2に対応付けられた番号「2」を付し、データの送信先であるネットワークNW4に対応する送信キュー504の先頭へデータを蓄積する。   For example, first, when the in-vehicle communication device 10d of the network NW2 transmits data with ID “23” to the in-vehicle communication devices 10g to 10i of the other network NW4, the in-vehicle relay device 150 receives this data and includes it in the data The destination network and the in-vehicle communication device are identified by referring to the routing table from the ID to be assigned, the number “2” associated with the network NW2 is assigned as the source information, and the network NW4 that is the data destination is supported. Data is accumulated at the head of the transmission queue 504 to be transmitted.

次いで、送信キュー504に蓄積されたデータが送信される前に、ネットワークNW1の車載通信装置10aが他のネットワークNW4の車載通信装置10g〜10iへIDが「12」のデータを送信した場合、車載中継装置50はこのデータを受信し、送信元情報としてネットワークNW1に対応付けられた番号「1」を付し、データの送信先であるネットワークNW4に対応する送信キュー504へデータを蓄積する。このとき、受信したデータの送信元情報と送信キュー504に既に蓄積されているデータの送信元情報とを比較し、送信元情報が同一でないことを確認した後、受信したデータのIDと送信キュー504に既に蓄積されているデータのIDとを比較し、IDが小さいデータの送信順が先になるように(図示の例では、送信キュー504の先頭に)、受信したデータを送信キュー504に蓄積する。   Next, if the in-vehicle communication device 10a of the network NW1 transmits the data with the ID “12” to the in-vehicle communication devices 10g to 10i of the other network NW4 before the data accumulated in the transmission queue 504 is transmitted. The relay device 50 receives this data, attaches the number “1” associated with the network NW1 as transmission source information, and accumulates the data in the transmission queue 504 corresponding to the network NW4 that is the data transmission destination. At this time, the transmission source information of the received data is compared with the transmission source information of the data already stored in the transmission queue 504, and after confirming that the transmission source information is not the same, the ID of the received data and the transmission queue Compared with the ID of the data already stored in 504, the received data is transferred to the transmission queue 504 so that the transmission order of the data with the smaller ID comes first (in the illustrated example, at the head of the transmission queue 504). accumulate.

次いで、送信キュー504に蓄積された2つのデータが送信される前に、ネットワークNW1の車載通信装置10bが他のネットワークNW4の車載通信装置10g〜10iへIDが「24」のデータを送信した場合、車載中継装置50はこのデータを受信し、送信元情報としてネットワークNW1に対応付けられた番号「1」を付し、データの送信先であるネットワークNW4に対応する送信キュー504へデータを蓄積する。このとき、既に蓄積されているデータから送信元情報が同じで、且つ、最後に受信したデータを検索し、このデータより送信順が後のデータについてIDを比較し、IDが小さいデータの送信順が先になるように(図示の例では、送信キュー504の最後尾に)、受信したデータを送信キュー504に蓄積する。以上の3つのデータを受信した状態が図8(a)に示してある。   Next, when the in-vehicle communication device 10b of the network NW1 transmits the data with the ID “24” to the in-vehicle communication devices 10g to 10i of the other network NW4 before the two data accumulated in the transmission queue 504 are transmitted. The in-vehicle relay device 50 receives this data, attaches the number “1” associated with the network NW1 as transmission source information, and accumulates the data in the transmission queue 504 corresponding to the network NW4 that is the data transmission destination. . At this time, the data that has the same transmission source information from the already accumulated data and the last received data is searched, the ID is compared for the data whose transmission order is later than this data, and the transmission order of the data with the smaller ID The received data is accumulated in the transmission queue 504 so as to be first (in the illustrated example, at the end of the transmission queue 504). A state in which the above three data are received is shown in FIG.

次いで、送信キュー504に蓄積された3つのデータが送信される前に、ネットワークNW2の車載通信装置10cが他のネットワークNW4の車載通信装置10g〜10iへIDが「11」のデータを送信した場合、車載中継装置150はこのデータを受信し、送信元情報としてネットワークNW1に対応付けられた番号「2」を付し、データの送信先であるネットワークNW4に対応する送信キュー504へデータを蓄積する。このとき、既に蓄積されているデータから送信元情報が同じで、且つ、最後に受信したデータ、即ち先頭から2番目のデータを検索し、このデータより送信順が後のデータ、即ち3番目のデータについてIDを比較し、IDが小さいデータの送信順が先になるように受信したデータを先頭から3番目に蓄積する(図8(b)参照)。   Next, when the in-vehicle communication device 10c in the network NW2 transmits the data having the ID “11” to the in-vehicle communication devices 10g to 10i in the other network NW4 before the three data accumulated in the transmission queue 504 are transmitted. The in-vehicle relay device 150 receives this data, attaches the number “2” associated with the network NW1 as transmission source information, and stores the data in the transmission queue 504 corresponding to the network NW4 that is the data transmission destination. . At this time, the source information is the same from the data already stored, and the last received data, that is, the second data from the head is searched, and the data whose transmission order is later than this data, that is, the third data The IDs of the data are compared, and the received data is accumulated third from the top so that the transmission order of the data with the smaller ID comes first (see FIG. 8B).

図9は、本発明の実施の形態2に係る車載通信システムの車載中継装置150によるデータ受信時の処理の手順を示すフローチャートである。車載中継装置150の制御部51は、4つの接続ポート521〜524のいずれかにてデータを受信したか否かを監視しており(ステップS41)、いずれの接続ポート521〜524でもデータを受信していない場合(S41:NO)、いずれかの接続ポート521〜524にてデータを受信するまで監視を継続して行う。いずれかの接続ポート521〜524にてデータを受信した場合(S41:YES)、受信した接続ポート521〜524又はネットワークNW1〜NW4に対応付けられた送信元情報を受信したデータに付加し(ステップS42)、更に、受信したデータに含まれるIDを取得すると共に(ステップS43)、取得したIDを基にルーティングテーブルを参照してデータの送信先を特定する(ステップS44)。   FIG. 9 is a flowchart showing a procedure of processing at the time of data reception by the in-vehicle relay device 150 of the in-vehicle communication system according to Embodiment 2 of the present invention. The control unit 51 of the in-vehicle relay device 150 monitors whether data is received at any of the four connection ports 521 to 524 (step S41), and receives data at any of the connection ports 521 to 524. If not (S41: NO), monitoring is continued until data is received at any of the connection ports 521 to 524. When data is received at any of the connection ports 521 to 524 (S41: YES), the transmission source information associated with the received connection ports 521 to 524 or the networks NW1 to NW4 is added to the received data (step). S42) Further, an ID included in the received data is acquired (step S43), and a data transmission destination is specified with reference to the routing table based on the acquired ID (step S44).

次いで、ステップS44にて特定した一の送信先のネットワークNW1〜NW4に対応する一の送信キュー501〜504にデータが蓄積されているか否かを調べ(ステップS45)、対応する一の送信キュー501〜504にデータが蓄積されていない場合(S45:NO)、対応する一の送信キュー501〜504の先頭に受信したデータを蓄積して(ステップS48)、処理を終了する。対応する一の送信キュー501〜504に既にデータが蓄積されている場合(S45:YES)、受信したデータと蓄積されたデータとの送信順を決定する処理を行う(ステップS46)。   Next, it is checked whether or not data is stored in one transmission queue 501 to 504 corresponding to one of the destination networks NW1 to NW4 specified in step S44 (step S45), and one corresponding transmission queue 501 is checked. When data is not accumulated in .about.504 (S45: NO), the received data is accumulated at the head of one corresponding transmission queue 501.about.504 (step S48), and the process is terminated. If data has already been accumulated in the corresponding one of the transmission queues 501 to 504 (S45: YES), processing for determining the transmission order of the received data and the accumulated data is performed (step S46).

図10及び図11は、本発明の実施の形態2に係る車載通信システムの車載中継装置150によるデータの送信順の決定処理の手順を示すフローチャートであり、図9に示すフローチャートのステップS46にて行う処理である。送信順の決定処理では、まず、対応する一の送信キュー501〜504に蓄積されたデータの送信元情報を調べて、受信したデータと同じ送信元情報のデータが蓄積されているか否かを調べ(ステップS61)、同じ送信元情報のデータが蓄積されている場合には(S61:YES)、送信元情報が同じデータの中で送信順が最後のデータを検索する(ステップS62)。更に、送信元情報が異なり、ステップS62にて検索したデータの次の送信順のデータが蓄積されているか否かを調べ(ステップS63)、蓄積されていない場合には(S63:NO)、受信したデータの送信順を対応する一の送信キュー501〜504のデータの最後に決定し(ステップS64)、送信順の決定処理を終了して図9に示す処理へ戻る。   FIG.10 and FIG.11 is a flowchart which shows the procedure of the determination process of the transmission order of the data by the vehicle-mounted relay apparatus 150 of the vehicle-mounted communication system which concerns on Embodiment 2 of this invention, In step S46 of the flowchart shown in FIG. This is the process to be performed. In the transmission order determination process, first, the transmission source information of the data stored in the corresponding one of the transmission queues 501 to 504 is checked to determine whether the same transmission source information data as the received data is stored. (Step S61) When the data of the same transmission source information is accumulated (S61: YES), the data with the last transmission order is searched for among the same data of the transmission source information (Step S62). Further, it is checked whether or not the transmission source information is different and the data in the next transmission order of the data searched in step S62 is accumulated (step S63). If the data is not accumulated (S63: NO), reception is performed. The transmission order of the received data is determined at the end of the data in the corresponding transmission queue 501 to 504 (step S64), the transmission order determination process is terminated, and the process returns to the process shown in FIG.

ステップS63にて次の送信順のデータが蓄積されている場合(S63:YES)、検索したデータの次の送信順のデータを取得して(ステップS65)、ステップS67へ進む。また、ステップS61にて信したデータと同じ送信元情報のデータが蓄積されていない場合(S61:NO)、対応する一の送信キュー501〜504の先頭のデータを取得して(ステップS66)、ステップS67へ進む。   If data in the next transmission order is accumulated in step S63 (S63: YES), data in the next transmission order of the searched data is acquired (step S65), and the process proceeds to step S67. If the data of the same source information as the data transmitted in step S61 is not accumulated (S61: NO), the top data of the corresponding one of the transmission queues 501 to 504 is acquired (step S66). Proceed to step S67.

次いで、受信したデータのIDとステップS65又はS66にて取得したデータのIDとを比較して、受信したデータのIDが取得したデータのIDより小さいか否かを調べる(ステップS67)。受信したデータのIDが取得したデータのIDより小さい場合(S67:YES)、受信したデータを取得したデータの前に送信するように送信順を決定し(ステップS68)、送信順の決定処理を終了して図9に示す処理へ戻る。   Next, the received data ID is compared with the data ID acquired in step S65 or S66 to check whether the received data ID is smaller than the acquired data ID (step S67). When the received data ID is smaller than the acquired data ID (S67: YES), the transmission order is determined so that the received data is transmitted before the acquired data (step S68), and the transmission order determination processing is performed. Then, the process returns to the process shown in FIG.

また、ステップS67にて、受信したデータのIDが取得したデータのID以上の場合(S67:NO)、対応する一の送信キュー501〜504に次のデータが蓄積されているか否かを調べる(ステップS69)。次のデータが蓄積されている場合(S69:YES)、送信キュー501〜504から次のデータを取得して(ステップS70)、ステップS67へ戻り、上述の処理を繰り返し行う。対応する一の送信キュー501〜504に次のデータが蓄積されていない場合(S69:NO)、受信したデータを取得したデータの後に、即ち最後に送信するように送信順を決定し(ステップS71)、送信順の決定処理を終了して図9に示す処理へ戻る。   In step S67, if the received data ID is equal to or greater than the acquired data ID (S67: NO), it is checked whether or not the next data is stored in the corresponding one of the transmission queues 501 to 504 (step S67). Step S69). When the next data is accumulated (S69: YES), the next data is acquired from the transmission queues 501 to 504 (step S70), the process returns to step S67, and the above processing is repeated. If the next data is not stored in the corresponding one of the transmission queues 501 to 504 (S69: NO), the transmission order is determined so that the received data is transmitted after the acquired data, that is, last (step S71). ), The transmission order determination process is terminated, and the process returns to the process shown in FIG.

ステップS46にて図10及び図11に示す送信順の決定処理を行った後、受信したデータを決定した送信順となるように対応する一の送信キュー501〜504に蓄積し(ステップS47)、データ受信時の処理を終了する。その後、車載中継装置150の制御部51は、送信キュー501〜504に送信順で蓄積されたデータを順に読み出して、各送信先へ送信する。   After performing the transmission order determination process shown in FIGS. 10 and 11 in step S46, the received data is accumulated in the corresponding transmission queues 501 to 504 so as to be in the determined transmission order (step S47). Ends the process when receiving data. Thereafter, the control unit 51 of the in-vehicle relay device 150 sequentially reads data stored in the transmission queues 501 to 504 in the transmission order, and transmits the data to each transmission destination.

以上の構成の実施の形態2に係る車載通信システムにおいては、車載中継装置150が受信したデータのID(優先度)のみでなく、データの送信元のネットワークNW1〜NW4を考慮して送信順を決定する構成とすることにより、各ネットワークNW1〜NW4内で調停された順序を保って、ネットワークNW1〜NW4間でのデータの送受信を行うことができる。なお、実施の形態1の変形例と同様に、送信キュー501〜504に受信データへのポインタを記憶する構成としてもよい。   In the in-vehicle communication system according to the second embodiment having the above configuration, the transmission order is determined in consideration of not only the ID (priority) of the data received by the in-vehicle relay device 150 but also the networks NW1 to NW4 that are the data transmission sources. By adopting the determined configuration, it is possible to transmit and receive data between the networks NW1 to NW4 while maintaining the order of arbitration within the networks NW1 to NW4. As in the modification of the first embodiment, the transmission queues 501 to 504 may store pointers to received data.

なお、実施の形態2に係る車載通信システムのその他の構成は、実施の形態1に係る車載通信システムの構成と同様であるため、対応する箇所には同じ符号を付して説明を省略する。   In addition, since the other structure of the vehicle-mounted communication system which concerns on Embodiment 2 is the same as that of the vehicle-mounted communication system which concerns on Embodiment 1, the same code | symbol is attached | subjected to a corresponding location and description is abbreviate | omitted.

(実施の形態3)
実施の形態2に係る車載通信システムの車載中継装置150は、受信したデータのIDと共に、データの送信元のネットワークNW1〜NW4を考慮して送信順を決定する構成であるが、実施の形態3に係る車載通信システムの車載中継装置250は、受信したデータのIDと共に、データの送信元の車載通信装置10a、10b…を考慮して送信順を決定する構成である。実施の形態3の車載中継装置250は、接続ポート521〜524に接続されたネットワークNW1〜NW4からデータを受信した場合、このデータを送信した送信元の車載通信装置10a、10b…に対応付けられた送信元情報を受信データに付して、送信キュー501〜504に蓄積するようにしてある。また、一の送信キュー501〜504に複数のデータを蓄積する場合には、データのID(優先度)に応じて送信順に蓄積するが、同一の送信元情報を有するデータについては受信した順序を優先し、受信順と送信順とが逆転しないように送信順を決定する。
(Embodiment 3)
The in-vehicle relay device 150 of the in-vehicle communication system according to the second embodiment is configured to determine the transmission order in consideration of the received data ID and the networks NW1 to NW4 that are the data transmission sources. The in-vehicle relay device 250 of the in-vehicle communication system according to the configuration is configured to determine the transmission order in consideration of the received in-vehicle communication devices 10a, 10b,. When the in-vehicle relay device 250 according to the third embodiment receives data from the networks NW1 to NW4 connected to the connection ports 521 to 524, the in-vehicle relay device 250 is associated with the in-vehicle communication devices 10a, 10b,. The transmission source information is added to the reception data and accumulated in the transmission queues 501 to 504. In addition, when a plurality of data is accumulated in one transmission queue 501 to 504, the data is accumulated in the order of transmission according to the data ID (priority). The transmission order is determined so that the reception order and the transmission order are not reversed.

このとき、送信元がいずれの車載通信装置10a、10b…であるかを判断するために、車載中継装置250はデータのIDと送信元との対応情報を有する送信元テーブルを予め記憶しており、この受信したデータのIDを基に送信元テーブルを参照することで送信元を特定するようにしてある。図12は、送信元テーブルの一例を示す模式図である。実施の形態3に係る車載通信システムでは、車載通信装置10a、10b…毎に送信するデータに付すIDが一又は複数に定められており、車載中継装置250は受信したデータのIDから送信元の車載通信装置10a、10b…を一意的に特定することができる。車載中継装置250の送信元テーブルには、送受信するデータに付されるIDと、このIDを付してデータを送信する車載通信装置10a、10b…に一意的に付された番号とが対応付けて記憶してある。図示の例では、車載通信システムの9つの車載通信装置10a〜10iにそれぞれ1〜9の番号が付してある場合に、IDが「12」及び「24」のデータは、番号が「2」の車載通信装置10bが送信元であることを示し、IDが「16」及び「23」のデータは、番号が「4」の車載通信装置10dが送信元であることを示している。   At this time, in order to determine which in-vehicle communication device 10a, 10b... Is the transmission source, the in-vehicle relay device 250 stores in advance a transmission source table having correspondence information between the data ID and the transmission source. The transmission source is specified by referring to the transmission source table based on the received data ID. FIG. 12 is a schematic diagram illustrating an example of a transmission source table. In the in-vehicle communication system according to the third embodiment, one or more IDs are assigned to data to be transmitted for each of the in-vehicle communication devices 10a, 10b,..., And the in-vehicle relay device 250 determines the transmission source from the received data ID. The in-vehicle communication devices 10a, 10b, etc. can be uniquely identified. In the transmission source table of the in-vehicle relay device 250, an ID attached to data to be transmitted / received is associated with a number uniquely assigned to the in-vehicle communication devices 10a, 10b,. I remember. In the illustrated example, when the numbers 1 to 9 are respectively assigned to the nine in-vehicle communication devices 10a to 10i of the in-vehicle communication system, the data with IDs “12” and “24” has the number “2”. The in-vehicle communication device 10b is the transmission source, and the data with IDs “16” and “23” indicates that the in-vehicle communication device 10d with the number “4” is the transmission source.

図13は、本発明の実施の形態3に係る車載通信システムの車載中継装置250によるデータの送信順の決定方法を説明するための模式図であり、(a)から(b)へ時系列的にデータの流れを示してある。また、本図においては、ネットワークNW4の車載通信装置10g〜10iへ送信するデータについて着目して図示してあり、他のネットワークNW1〜NW3の車載通信装置10a〜10fへ送信するデータについては図示を省略してある。   FIG. 13 is a schematic diagram for explaining a method of determining the data transmission order by the in-vehicle relay device 250 of the in-vehicle communication system according to the third embodiment of the present invention, and is time-series from (a) to (b). Shows the data flow. Further, in the figure, the data transmitted to the in-vehicle communication devices 10g to 10i of the network NW4 is illustrated with attention paid thereto, and the data transmitted to the in-vehicle communication devices 10a to 10f of the other networks NW1 to NW3 is illustrated. It is omitted.

例えば、まず、ネットワークNW2の車載通信装置10dが他のネットワークNW4の車載通信装置10g〜10iへIDが「23」のデータを送信した場合、車載中継装置250はこのデータを受信し、データに含まれるIDと予め記憶した送信元テーブルとにより送信元の車載通信装置10dに対応付けられた番号の「4」を取得する。車載中継装置250は、受信したデータに送信元情報として番号「4」を付し、データの送信先であるネットワークNW4に対応する送信キュー504の先頭へデータを蓄積する。   For example, first, when the in-vehicle communication device 10d in the network NW2 transmits data with ID “23” to the in-vehicle communication devices 10g to 10i in the other network NW4, the in-vehicle relay device 250 receives this data and includes it in the data The number “4” associated with the in-vehicle communication device 10d as the transmission source is acquired from the ID to be stored and the transmission source table stored in advance. The in-vehicle relay device 250 adds the number “4” as the transmission source information to the received data, and accumulates the data at the head of the transmission queue 504 corresponding to the network NW4 that is the data transmission destination.

次いで、送信キュー504に蓄積されたデータが送信される前に、ネットワークNW1の車載通信装置10bが他のネットワークNW4の車載通信装置10g〜10iへIDが「12」のデータを送信した場合、車載中継装置250はこのデータを受信し、データに含まれるIDと予め記憶した送信元テーブルとにより送信元の車載通信装置10bに対応付けられた番号の「2」を取得する。車載中継装置250は、受信したデータに送信元情報として番号「2」を付し、データの送信先であるネットワークNW4に対応する送信キュー504へデータを蓄積する。このとき、受信したデータの送信元情報と送信キュー504に既に蓄積されているデータの送信元情報とを比較し、送信元情報が同一でないことを確認した後、受信したデータのIDと送信キュー504に既に蓄積されているデータのIDとを比較し、IDが小さいデータの送信順が先になるように(図示の例では、送信キュー504の先頭に)、受信したデータを送信キュー504に蓄積する。   Next, if the in-vehicle communication device 10b of the network NW1 transmits the data with ID “12” to the in-vehicle communication devices 10g to 10i of the other network NW4 before the data accumulated in the transmission queue 504 is transmitted, The relay device 250 receives this data, and acquires “2” of the number associated with the in-vehicle communication device 10b of the transmission source based on the ID included in the data and the transmission source table stored in advance. The in-vehicle relay device 250 adds the number “2” as the transmission source information to the received data, and accumulates the data in the transmission queue 504 corresponding to the network NW4 that is the data transmission destination. At this time, the transmission source information of the received data is compared with the transmission source information of the data already stored in the transmission queue 504, and after confirming that the transmission source information is not the same, the ID of the received data and the transmission queue Compared with the ID of the data already stored in 504, the received data is transferred to the transmission queue 504 so that the transmission order of the data with the smaller ID comes first (in the illustrated example, at the head of the transmission queue 504). accumulate.

次いで、送信キュー504に蓄積された2つのデータが送信される前に、ネットワークNW1の車載通信装置10bが他のネットワークNW4の車載通信装置10g〜10iへIDが「24」のデータを送信した場合、車載中継装置250はこのデータを受信し、データに含まれるIDと予め記憶した送信元テーブルとにより送信元の車載通信装置10bに対応付けられた番号の「2」を取得する。車載中継装置250は、受信したデータに送信元情報として番号「2」を付し、データの送信先であるネットワークNW4に対応する送信キュー504へデータを蓄積する。このとき、既に蓄積されているデータから送信元情報が同じで、且つ、最後に受信したデータを検索し、このデータより送信順が後のデータについてIDを比較し、IDが小さいデータの送信順が先になるように(図示の例では、送信キュー504の最後尾に)、受信したデータを送信キュー504に蓄積する。以上の3つのデータを受信した状態が図13(a)に示してある。   Next, when the in-vehicle communication device 10b of the network NW1 transmits the data with the ID “24” to the in-vehicle communication devices 10g to 10i of the other network NW4 before the two data accumulated in the transmission queue 504 are transmitted. The in-vehicle relay device 250 receives this data, and acquires “2” of the number associated with the in-vehicle communication device 10b of the transmission source based on the ID included in the data and the transmission source table stored in advance. The in-vehicle relay device 250 adds the number “2” as the transmission source information to the received data, and accumulates the data in the transmission queue 504 corresponding to the network NW4 that is the data transmission destination. At this time, the data that has the same transmission source information from the already accumulated data and the last received data is searched, the ID is compared for the data whose transmission order is later than this data, and the transmission order of the data with the smaller ID The received data is accumulated in the transmission queue 504 so as to be first (in the illustrated example, at the end of the transmission queue 504). FIG. 13A shows a state where the above three data are received.

次いで、送信キュー504に蓄積された3つのデータが送信される前に、ネットワークNW2の車載通信装置10dが他のネットワークNW4の車載通信装置10g〜10iへIDが「16」のデータを送信した場合、車載中継装置250はこのデータを受信し、データに含まれるIDと予め記憶した送信元テーブルとにより送信元の車載通信装置10dに対応付けられた番号の「4」を取得する。車載中継装置250は、受信したデータに送信元情報として番号「4」を付し、データの送信先であるネットワークNW4に対応する送信キュー504へデータを蓄積する。このとき、既に蓄積されているデータから送信元情報が同じで、且つ、最後に受信したデータ、即ち先頭から2番目のデータを検索し、このデータより送信順が後のデータ、即ち3番目のデータについてIDを比較し、IDが小さいデータの送信順が先になるように受信したデータを先頭から3番目に蓄積する(図13(b)参照)。   Next, when the in-vehicle communication device 10d in the network NW2 transmits the data with ID “16” to the in-vehicle communication devices 10g to 10i in the other network NW4 before the three data accumulated in the transmission queue 504 are transmitted. The in-vehicle relay device 250 receives this data, and acquires “4” of the number associated with the in-vehicle communication device 10d as the transmission source based on the ID included in the data and the transmission source table stored in advance. The in-vehicle relay device 250 adds the number “4” as the transmission source information to the received data, and accumulates the data in the transmission queue 504 corresponding to the network NW4 that is the data transmission destination. At this time, the source information is the same from the data already stored, and the last received data, that is, the second data from the head is searched, and the data whose transmission order is later than this data, that is, the third data The IDs of the data are compared, and the received data is accumulated third from the top so that the transmission order of the data with the smaller ID comes first (see FIG. 13B).

このように、同一の車載通信装置10a、10b…が送信したデータを受信した場合には、車載中継装置250が受信したデータに付されたIDに関わらず、受信した順序を優先して送信順を決定することにより、一の車載通信装置10a、10b…が時系列的に送信したデータを、他の車載通信装置10a、10b…が車載中継装置250を介して時系列を崩すことなく受信することができる。なお、実施の形態3に係る車載通信システムの車載中継装置250が行うデータの受信処理についてのフローチャートは、実施の形態2の車載中継装置150が行う受信処理のフローチャートと同様であるため、図示及び説明を省略する。実施の形態3の車載中継装置250では、図9のステップS42にて送信元情報を付加する場合に、図12に示した送信元テーブルを参照して送信元の車載通信装置10a、10b…に対応付けられた番号を送信元情報として付加すればよい。   As described above, when data transmitted by the same in-vehicle communication devices 10a, 10b,... Is received, the order of reception is given priority regardless of the ID attached to the data received by the in-vehicle relay device 250. , The other in-vehicle communication devices 10a, 10b,... Receive data transmitted in time series via the in-vehicle relay device 250 without breaking the time series. be able to. In addition, since the flowchart about the reception process of the data which the vehicle-mounted relay apparatus 250 of the vehicle-mounted communication system which concerns on Embodiment 3 performs is the same as the flowchart of the reception process which the vehicle-mounted relay apparatus 150 of Embodiment 2 shows, illustration and Description is omitted. In the in-vehicle relay device 250 according to the third embodiment, when the transmission source information is added in step S42 in FIG. 9, the transmission source table shown in FIG. 12 is referred to and the in-vehicle communication devices 10a, 10b,. The associated number may be added as transmission source information.

なお、実施の形態3に係る車載通信システムのその他の構成は、実施の形態1に係る車載通信システムの構成と同様であるため、対応する箇所には同じ符号を付して説明を省略する。   In addition, since the other structure of the vehicle-mounted communication system which concerns on Embodiment 3 is the same as that of the vehicle-mounted communication system which concerns on Embodiment 1, the same code | symbol is attached | subjected to a corresponding location and description is abbreviate | omitted.

(実施の形態4)
実施の形態2に係る車載通信システムの車載中継装置150は、受信したデータのIDと共に、データの送信元のネットワークNW1〜NW4を考慮して送信順を決定する構成であり、実施の形態3に係る車載通信システムの車載中継装置250は、受信したデータのIDと共に、データの送信元の車載通信装置10a、10b…を考慮して送信順を決定する構成であるが、実施の形態4に係る車載通信システムの車載中継装置350は、受信したデータのIDと共に、データの受信時刻を考慮して送信順を決定する構成である。図14は、本発明の実施の形態4に係る車載通信システムの車載中継装置350によるデータの送信順の決定方法を説明するための模式図であり、(a)から(b)へ時系列的にデータの流れを示してある。また、本図においては、ネットワークNW4の車載通信装置10g〜10iへ送信するデータについて着目して図示してあり、他のネットワークNW1〜NW3の車載通信装置10a〜10fへ送信するデータについては図示を省略してある。
(Embodiment 4)
The in-vehicle relay device 150 of the in-vehicle communication system according to the second embodiment is configured to determine the transmission order in consideration of the data transmission source networks NW1 to NW4 together with the received data ID. The vehicle-mounted relay device 250 of the vehicle-mounted communication system is configured to determine the transmission order in consideration of the received data ID and the vehicle-mounted communication devices 10a, 10b,. The in-vehicle relay device 350 of the in-vehicle communication system is configured to determine the transmission order in consideration of the data reception time together with the received data ID. FIG. 14 is a schematic diagram for explaining a method of determining the data transmission order by the in-vehicle relay device 350 of the in-vehicle communication system according to the fourth embodiment of the present invention, and is time-series from (a) to (b). Shows the data flow. Further, in the figure, the data transmitted to the in-vehicle communication devices 10g to 10i of the network NW4 is illustrated with attention paid thereto, and the data transmitted to the in-vehicle communication devices 10a to 10f of the other networks NW1 to NW3 is illustrated. It is omitted.

実施の形態4の車載中継装置350は、接続ポート521〜524に接続されたネットワークNW1〜NW4からデータを受信した場合、受信開始時刻又は受信完了時刻等の受信時刻を受信したデータに付して、送信キュー501〜504に蓄積するようにしてある。また、一の送信キュー501〜504に複数のデータを蓄積する場合には、データのID(優先度)に応じて送信順に蓄積するが、受信時刻の差が予め定められた所定時間(例えば、300μs)より大きいデータについては、受信した順序を優先し、受信順と送信順とが逆転しないように送信順を決定する。   When in-vehicle relay device 350 according to the fourth embodiment receives data from networks NW1 to NW4 connected to connection ports 521 to 524, it attaches a reception time such as a reception start time or a reception completion time to the received data. The transmission queues 501 to 504 are accumulated. In addition, when a plurality of data is stored in one transmission queue 501 to 504, the data is stored in the order of transmission according to the data ID (priority). For data larger than 300 μs), the order of reception is prioritized, and the transmission order is determined so that the reception order and the transmission order are not reversed.

例えば、まず、ネットワークNW2の車載通信装置10dが他のネットワークNW4の車載通信装置10g〜10iへIDが「23」のデータを送信し、車載中継装置350が時刻900μsの時点でこのデータを受信した場合、車載中継装置350は受信したデータに受信時刻として「900」を付し、データの送信先であるネットワークNW4に対応する送信キュー504の先頭へデータを蓄積する。   For example, first, the in-vehicle communication device 10d of the network NW2 transmits the data with ID “23” to the in-vehicle communication devices 10g to 10i of the other network NW4, and the in-vehicle relay device 350 receives this data at the time of 900 μs. In this case, the in-vehicle relay device 350 adds “900” as the reception time to the received data, and accumulates the data at the head of the transmission queue 504 corresponding to the network NW4 that is the data transmission destination.

次いで、送信キュー504に蓄積されたデータが送信される前に、ネットワークNW1の車載通信装置10bが他のネットワークNW4の車載通信装置10g〜10iへIDが「12」のデータを送信し、車載中継装置350が時刻1100μsの時点でこのデータを受信した場合、車載中継装置350は受信したデータに受信時刻として「1100」を付し、データの送信先であるネットワークNW4に対応する送信キュー504の先頭へデータを蓄積する。このとき、送信キュー504に受信時刻の1100μsより300μs以上前に受信したデータが蓄積されていないことを確認した後、受信したデータのIDと送信キュー504に既に蓄積されているデータのIDとを比較し、IDが小さいデータの送信順が先になるように(図示の例では、送信キュー504の先頭に)、受信したデータを送信キュー504に蓄積する。   Next, before the data stored in the transmission queue 504 is transmitted, the in-vehicle communication device 10b of the network NW1 transmits the data with the ID “12” to the in-vehicle communication devices 10g to 10i of the other network NW4, and the in-vehicle relay When the device 350 receives this data at the time of 1100 μs, the in-vehicle relay device 350 attaches “1100” as the reception time to the received data, and starts the transmission queue 504 corresponding to the network NW4 that is the data transmission destination. Accumulate data. At this time, after confirming that the data received 300 μs or more before 1100 μs of the reception time is not accumulated in the transmission queue 504, the received data ID and the data ID already accumulated in the transmission queue 504 are obtained. In comparison, the received data is accumulated in the transmission queue 504 so that the transmission order of the data with the smaller ID comes first (in the illustrated example, at the head of the transmission queue 504).

次いで、送信キュー504に蓄積された2つのデータが送信される前に、ネットワークNW1の車載通信装置10bが他のネットワークNW4の車載通信装置10g〜10iへIDが「24」のデータを送信し、車載中継装置350が時刻1300μsの時点でこのデータを受信した場合、車載中継装置350は受信したデータに受信時刻として「1300」を付し、データの送信先であるネットワークNW4に対応する送信キュー504の先頭へデータを蓄積する。このとき、受信時刻の1100μsより300μs以上前に受信したデータが送信キュー504に蓄積されているため、このデータより後に(図示の例では、送信キュー504の最後尾に)、受信したデータを送信キュー504に蓄積する。以上の3つのデータを受信した状態が図8(a)に示してある。   Next, before the two pieces of data stored in the transmission queue 504 are transmitted, the in-vehicle communication device 10b of the network NW1 transmits the data with the ID “24” to the in-vehicle communication devices 10g to 10i of the other network NW4. When the in-vehicle relay device 350 receives this data at the time of 1300 μs, the in-vehicle relay device 350 attaches “1300” as the reception time to the received data, and the transmission queue 504 corresponding to the network NW4 that is the data transmission destination. Accumulate data at the beginning of. At this time, since the data received 300 μs or more before 1100 μs of the reception time is accumulated in the transmission queue 504, the received data is transmitted after this data (at the end of the transmission queue 504 in the illustrated example). Accumulate in queue 504. A state in which the above three data are received is shown in FIG.

次いで、送信キュー504に蓄積された3つのデータが送信される前に、ネットワークNW2の車載通信装置10dが他のネットワークNW4の車載通信装置10g〜10iへIDが「16」のデータを送信し、車載中継装置350が時刻1500μsの時点でこのデータを受信した場合、車載中継装置350は受信したデータに受信時刻として「1500」を付し、データの送信先であるネットワークNW4に対応する送信キュー504の先頭へデータを蓄積する。このとき、受信時刻の1500μsより300μs以上前に受信したデータが送信キュー504の2番目に蓄積されているため、このデータより送信順が後のデータ、即ち3番目のデータについてIDを比較し、IDが小さいデータの送信順が先になるように受信したデータを先頭から3番目に蓄積する(図14(b)参照)。   Next, before the three pieces of data stored in the transmission queue 504 are transmitted, the in-vehicle communication device 10d of the network NW2 transmits the data having the ID “16” to the in-vehicle communication devices 10g to 10i of the other network NW4. When the in-vehicle relay device 350 receives this data at the time of 1500 μs, the in-vehicle relay device 350 adds “1500” as the reception time to the received data, and the transmission queue 504 corresponding to the network NW4 that is the data transmission destination. Accumulate data at the beginning of. At this time, since the data received 300 μs or more before 1500 μs of the reception time is accumulated in the second of the transmission queue 504, the ID is compared for the data whose transmission order is later than this data, that is, the third data, The received data is accumulated third from the beginning so that the transmission order of the data with the smaller ID comes first (see FIG. 14B).

図15は、本発明の実施の形態4に係る車載通信システムの車載中継装置350によるデータ受信時の処理の手順を示すフローチャートである。車載中継装置350の制御部51は、4つの接続ポート521〜524のいずれかにてデータを受信したか否かを監視しており(ステップS81)、いずれの接続ポート521〜524でもデータを受信していない場合(S81:NO)、いずれかの接続ポート521〜524にてデータを受信するまで監視を継続して行う。いずれかの接続ポート521〜524にてデータを受信した場合(S81:YES)、受信した時刻に係る情報をデータに付加し、(ステップS82)、更に、受信したデータに含まれるIDを取得すると共に(ステップS83)、取得したIDを基にルーティングテーブルを参照してデータの送信先を特定する(ステップS84)。   FIG. 15 is a flowchart showing a procedure of processing at the time of data reception by the in-vehicle relay device 350 of the in-vehicle communication system according to the fourth embodiment of the present invention. The control unit 51 of the in-vehicle relay device 350 monitors whether data is received at any of the four connection ports 521 to 524 (step S81), and receives data at any of the connection ports 521 to 524. If not (S81: NO), monitoring is continued until data is received at any of the connection ports 521 to 524. When data is received at any of the connection ports 521 to 524 (S81: YES), information related to the received time is added to the data (step S82), and an ID included in the received data is acquired. At the same time (step S83), the destination of data is specified with reference to the routing table based on the acquired ID (step S84).

次いで、ステップS84にて特定した一の送信先のネットワークNW1〜NW4に対応する一の送信キュー501〜504にデータが蓄積されているか否かを調べ(ステップS85)、対応する一の送信キュー501〜504にデータが蓄積されていない場合(S85:NO)、対応する一の送信キュー501〜504の先頭に受信したデータを蓄積して(ステップS88)、処理を終了する。対応する一の送信キュー501〜504に既にデータが蓄積されている場合(S85:YES)、受信したデータと蓄積されたデータとの送信順を決定する処理を行う(ステップS86)。   Next, it is checked whether or not data is accumulated in one transmission queue 501 to 504 corresponding to one of the destination networks NW1 to NW4 specified in step S84 (step S85), and one corresponding transmission queue 501 is checked. If the data is not accumulated in ˜504 (S85: NO), the received data is accumulated at the head of the corresponding one of the transmission queues 501 to 504 (step S88), and the process is terminated. If data has already been accumulated in the corresponding one of the transmission queues 501 to 504 (S85: YES), processing for determining the transmission order of the received data and the accumulated data is performed (step S86).

図16及び図17は、本発明の実施の形態4に係る車載通信システムの車載中継装置350によるデータの送信順の決定処理の手順を示すフローチャートであり、図15に示すフローチャートのステップS86にて行う処理である。送信順の決定処理では、まず、対応する一の送信キュー501〜504に蓄積された送信順が最後のデータから、受信したデータの受信時刻と蓄積されたデータの受信時刻との差を調べて、この差が予め閾値として定められた所定時間外となるデータを検索し(ステップS101)、該当するデータがあるか否かを調べる(ステップS102)。対応する一の送信キュー501〜504に該当するデータが蓄積されている場合(S102:YES)、更に、対応する一の送信キュー501〜504に該当するデータの次に送信するデータが蓄積されているか否かを調べる(ステップS103)。該当するデータの次に送信するデータが蓄積されていない場合(S103:NO)、受信したデータの送信順を対応する一の送信キュー501〜504のデータの最後に決定し(ステップS104)、送信順の決定処理を終了して図15に示す処理へ戻る。   FIGS. 16 and 17 are flowcharts showing a procedure of data transmission order determination processing by the in-vehicle relay device 350 of the in-vehicle communication system according to the fourth embodiment of the present invention. In step S86 of the flowchart shown in FIG. This is the process to be performed. In the transmission order determination process, first, the difference between the reception time of the received data and the reception time of the stored data is checked from the last data in the transmission order stored in the corresponding one of the transmission queues 501 to 504. Then, data for which this difference is outside a predetermined time set in advance as a threshold is searched (step S101), and it is checked whether there is corresponding data (step S102). When data corresponding to one corresponding transmission queue 501 to 504 is accumulated (S102: YES), data to be transmitted next to data corresponding to one corresponding transmission queue 501 to 504 is further accumulated. It is checked whether or not (step S103). If the data to be transmitted next to the corresponding data is not accumulated (S103: NO), the transmission order of the received data is determined at the end of the data in the corresponding one of the transmission queues 501 to 504 (step S104) and transmitted. The order determination process ends, and the process returns to the process shown in FIG.

ステップS103にて、次に送信するデータが蓄積されている場合(S103:YES)、該当するデータの次に送信するデータを取得して(ステップS105)、ステップS107へ進む。また、ステップS102にて、該当するデータが蓄積されていない場合(S102:NO)、対応する一の送信キュー501〜504の先頭のデータを取得して(ステップS106)、ステップS107へ進む。   In step S103, when data to be transmitted next is accumulated (S103: YES), data to be transmitted next to the corresponding data is acquired (step S105), and the process proceeds to step S107. If the corresponding data is not accumulated in step S102 (S102: NO), the top data of the corresponding one of the transmission queues 501 to 504 is acquired (step S106), and the process proceeds to step S107.

次いで、受信したデータのIDとステップS105又はS106にて取得したデータのIDとを比較して、受信したデータのIDが取得したデータのIDより小さいか否かを調べる(ステップS107)。受信したデータのIDが取得したデータのIDより小さい場合(S107:YES)、受信したデータを取得したデータの前に送信するように送信順を決定し(ステップS108)、送信順の決定処理を終了して図15に示す処理へ戻る。   Next, the received data ID is compared with the data ID acquired in step S105 or S106 to check whether the received data ID is smaller than the acquired data ID (step S107). When the received data ID is smaller than the acquired data ID (S107: YES), the transmission order is determined so that the received data is transmitted before the acquired data (step S108), and the transmission order determination processing is performed. Then, the process returns to the process shown in FIG.

また、ステップS107にて、受信したデータのIDが取得したデータのID以上の場合(S107:NO)、対応する一の送信キュー501〜504に次のデータが蓄積されているか否かを調べる(ステップS109)。次のデータが蓄積されている場合(S109:YES)、送信キュー501〜504から次のデータを取得して(ステップS110)、ステップS107へ戻り、上述の処理を繰り返し行う。対応する一の送信キュー501〜504に次のデータが蓄積されていない場合(S109:NO)、受信したデータを取得したデータの後に、即ち最後に送信するように送信順を決定し(ステップS111)、送信順の決定処理を終了して図15に示す処理へ戻る。   In step S107, if the received data ID is equal to or greater than the acquired data ID (S107: NO), it is checked whether or not the next data is stored in the corresponding one of the transmission queues 501 to 504 (step S107: NO). Step S109). When the next data is accumulated (S109: YES), the next data is acquired from the transmission queues 501 to 504 (step S110), the process returns to step S107, and the above processing is repeated. When the next data is not accumulated in the corresponding one of the transmission queues 501 to 504 (S109: NO), the transmission order is determined so that the received data is transmitted after the acquired data, that is, the last (step S111). ), The transmission order determination process is terminated, and the process returns to the process shown in FIG.

ステップS86にて図16及び図17に示す送信順の決定処理を行った後、受信したデータを決定した送信順となるように対応する一の送信キュー501〜504に蓄積し(ステップS87)、データ受信時の処理を終了する。その後、車載中継装置350の制御部51は、送信キュー501〜504に送信順で蓄積されたデータを順に読み出して、各送信先へ送信する。   After performing the transmission order determination process shown in FIGS. 16 and 17 in step S86, the received data is accumulated in the corresponding one transmission queue 501 to 504 so as to be in the determined transmission order (step S87). Ends the process when receiving data. Thereafter, the control unit 51 of the in-vehicle relay device 350 sequentially reads the data stored in the transmission queues 501 to 504 in the transmission order, and transmits the data to each transmission destination.

以上の構成の実施の形態4に係る車載通信システムにおいては、車載中継装置350が受信したデータのID(優先度)のみでなく、データを受信した時刻を考慮して送信順を決定する構成とすることにより、車載中継装置350が優先度の高いデータを連続的に受信し続けた場合であっても、優先度の低いデータを送信できない状態が長時間に亘って維持されることを防止できる。なお、本実施の形態においては、μs単位で受信時刻に係る情報をデータに付加する構成としたが、これに限るものではなく、より大きな単位又は小さな単位で受信時刻に係る情報を付加してもよく、車載通信システムにて送受信されるデータの速度又は頻度等に応じて決定すればよい。また、実施の形態1の変形例と同様に、送信キュー501〜504に受信データへのポインタを記憶する構成としてもよい。   In the in-vehicle communication system according to Embodiment 4 having the above configuration, the transmission order is determined in consideration of not only the ID (priority) of the data received by the in-vehicle relay device 350 but also the time at which the data is received. As a result, even when the in-vehicle relay device 350 continuously receives high priority data, it is possible to prevent a state in which low priority data cannot be transmitted from being maintained for a long time. . In the present embodiment, the information related to the reception time is added to the data in units of μs. However, the present invention is not limited to this, and the information related to the reception time is added in larger units or smaller units. Alternatively, it may be determined according to the speed or frequency of data transmitted and received in the in-vehicle communication system. Further, similarly to the modification of the first embodiment, the transmission queues 501 to 504 may store pointers to received data.

なお、実施の形態4に係る車載通信システムのその他の構成は、実施の形態1に係る車載通信システムの構成と同様であるため、対応する箇所には同じ符号を付して説明を省略する。   In addition, since the other structure of the vehicle-mounted communication system which concerns on Embodiment 4 is the same as that of the structure of the vehicle-mounted communication system which concerns on Embodiment 1, the same code | symbol is attached | subjected to a corresponding location and description is abbreviate | omitted.

本発明の実施の形態1に係る車載通信システムの一構成例を示す模式図である。It is a schematic diagram which shows one structural example of the vehicle-mounted communication system which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係る車載通信システムの車載通信装置及び車載中継装置の構成を示すブロック図である。It is a block diagram which shows the structure of the vehicle-mounted communication apparatus and vehicle-mounted relay apparatus of the vehicle-mounted communication system which concern on Embodiment 1 of this invention. 本発明の実施の形態1に係る車載通信システムの車載中継装置によるデータの送信順の決定方法を説明するための模式図である。It is a schematic diagram for demonstrating the determination method of the transmission order of the data by the vehicle-mounted relay apparatus of the vehicle-mounted communication system which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係る車載通信システムの車載中継装置によるデータの送信順の決定方法を説明するための模式図である。It is a schematic diagram for demonstrating the determination method of the transmission order of the data by the vehicle-mounted relay apparatus of the vehicle-mounted communication system which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係る車載通信システムの車載中継装置によるデータ受信時の処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the process at the time of the data reception by the vehicle-mounted relay apparatus of the vehicle-mounted communication system which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係る車載通信システムの車載中継装置によるデータの送信順の決定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the determination process of the transmission order of the data by the vehicle-mounted relay apparatus of the vehicle-mounted communication system which concerns on Embodiment 1 of this invention. 本発明の実施の形態1の変形例に係る車載通信システムの一構成例を示す模式図である。It is a schematic diagram which shows one structural example of the vehicle-mounted communication system which concerns on the modification of Embodiment 1 of this invention. 本発明の実施の形態2に係る車載通信システムの車載中継装置によるデータの送信順の決定方法を説明するための模式図である。It is a schematic diagram for demonstrating the determination method of the transmission order of the data by the vehicle-mounted relay apparatus of the vehicle-mounted communication system which concerns on Embodiment 2 of this invention. 本発明の実施の形態2に係る車載通信システムの車載中継装置によるデータ受信時の処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the process at the time of the data reception by the vehicle-mounted relay apparatus of the vehicle-mounted communication system which concerns on Embodiment 2 of this invention. 本発明の実施の形態2に係る車載通信システムの車載中継装置によるデータの送信順の決定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the determination process of the transmission order of the data by the vehicle-mounted relay apparatus of the vehicle-mounted communication system which concerns on Embodiment 2 of this invention. 本発明の実施の形態2に係る車載通信システムの車載中継装置によるデータの送信順の決定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the determination process of the transmission order of the data by the vehicle-mounted relay apparatus of the vehicle-mounted communication system which concerns on Embodiment 2 of this invention. 送信元テーブルの一例を示す模式図である。It is a schematic diagram which shows an example of a transmission source table. 本発明の実施の形態3に係る車載通信システムの車載中継装置によるデータの送信順の決定方法を説明するための模式図である。It is a schematic diagram for demonstrating the determination method of the transmission order of the data by the vehicle-mounted relay apparatus of the vehicle-mounted communication system which concerns on Embodiment 3 of this invention. 本発明の実施の形態4に係る車載通信システムの車載中継装置によるデータの送信順の決定方法を説明するための模式図である。It is a schematic diagram for demonstrating the determination method of the transmission order of the data by the vehicle-mounted relay apparatus of the vehicle-mounted communication system which concerns on Embodiment 4 of this invention. 本発明の実施の形態4に係る車載通信システムの車載中継装置によるデータ受信時の処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the process at the time of the data reception by the vehicle-mounted relay apparatus of the vehicle-mounted communication system which concerns on Embodiment 4 of this invention. 本発明の実施の形態4に係る車載通信システムの車載中継装置によるデータの送信順の決定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the determination process of the transmission order of the data by the vehicle-mounted relay apparatus of the vehicle-mounted communication system which concerns on Embodiment 4 of this invention. 本発明の実施の形態4に係る車載通信システムの車載中継装置によるデータの送信順の決定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the determination process of the transmission order of the data by the vehicle-mounted relay apparatus of the vehicle-mounted communication system which concerns on Embodiment 4 of this invention. 従来の車載通信システムの一構成例を示す模式図である。It is a schematic diagram which shows the example of 1 structure of the conventional vehicle-mounted communication system. 従来の車載通信システムのデータ送信の一例を示す模式図である。It is a schematic diagram which shows an example of the data transmission of the conventional vehicle-mounted communication system.

符号の説明Explanation of symbols

10a〜10i 車載通信装置
11 制御部
16 通信部
17 センサ
31〜34 車内通信回線
50、50a、150、250、350 車載中継装置
51 制御部(受信手段、送信手段、決定手段)
53 記憶部(蓄積手段)
501〜504 送信キュー
501a〜504a 送信キュー
521〜524 接続ポート(接続部)
530 データ蓄積領域
NW1〜NW4 ネットワーク
10a to 10i In-vehicle communication device 11 Control unit 16 Communication unit 17 Sensor 31 to 34 In-vehicle communication line 50, 50a, 150, 250, 350 In-vehicle relay device 51 Control unit (reception unit, transmission unit, determination unit)
53 Storage unit (accumulation means)
501 to 504 Transmission queue 501a to 504a Transmission queue 521 to 524 Connection port (connection unit)
530 Data storage area NW1-NW4 network

Claims (15)

一又は複数の車載通信装置が接続されたネットワークに接続する複数の接続部と、一の接続部に接続されたネットワークの一の車載通信装置が送信したデータを受信する受信手段と、該受信手段が受信したデータを他の接続部に接続されたネットワークの他の車載通信装置へ送信する送信手段とを備える車載中継装置において、
車載通信装置が送信するデータには優先度に係る情報を含み、
前記受信手段が受信したデータを、該データの送信先の車載通信装置が接続された送信先ネットワークに対応付けて蓄積する蓄積手段と、
前記受信手段が受信した複数のデータの送信順を、前記データの優先度に応じて決定する決定手段と
を備え、
前記送信手段は、送信先ネットワーク毎に、前記決定手段が決定した送信順に応じて前記蓄積手段に蓄積されたデータを送信するようにしてあること
を特徴とする車載中継装置。
A plurality of connection units connected to a network to which one or a plurality of in-vehicle communication devices are connected; a receiving unit for receiving data transmitted by one in-vehicle communication device of the network connected to the one connection unit; and the receiving unit In a vehicle-mounted relay device comprising a transmission means for transmitting the received data to another vehicle-mounted communication device connected to another connection unit,
The data transmitted by the in-vehicle communication device includes information related to priority,
Storage means for storing the data received by the receiving means in association with a transmission destination network to which the in-vehicle communication device of the transmission destination of the data is connected;
Determining means for determining the transmission order of the plurality of data received by the receiving means according to the priority of the data;
The in-vehicle relay device, wherein the transmission unit transmits data stored in the storage unit according to a transmission order determined by the determination unit for each destination network.
前記蓄積手段は、前記決定手段が決定した送信順にデータを待ち行列として蓄積するようにしてあり、
前記送信手段は、前記待ち行列からデータを取得して送信するようにしてあること
を特徴とする請求項1に記載の車載中継装置。
The storage means stores data in a queue in the order of transmission determined by the determination means;
The in-vehicle relay device according to claim 1, wherein the transmission unit acquires data from the queue and transmits the data.
前記決定手段は、前記受信手段が同一のネットワークに接続された車載通信装置から受信した複数のデータは、該データの優先度に関わらず、前記受信手段が受信した順に前記送信手段が送信するように送信順を決定するようにしてあること
を特徴とする請求項1又は請求項2に記載の車載中継装置。
The determining means transmits the plurality of data received from the in-vehicle communication device connected to the same network by the receiving means, in the order received by the receiving means, regardless of the priority of the data. The in-vehicle relay device according to claim 1 or 2, wherein the transmission order is determined by the transmission order.
前記決定手段は、前記受信手段が同一の車載通信装置から受信した複数のデータは、該データの優先度に関わらず、前記受信手段が受信した順に前記送信手段が送信するように送信順を決定するようにしてあること
を特徴とする請求項1又は請求項2に記載の車載中継装置。
The determining means determines the transmission order so that the plurality of data received by the receiving means from the same in-vehicle communication device is transmitted by the transmitting means in the order received by the receiving means regardless of the priority of the data. The in-vehicle relay device according to claim 1 or 2, wherein the in-vehicle relay device is configured as described above.
前記蓄積手段は、前記受信手段が受信したデータに、該データの受信時点に係る情報を付して蓄積するようにしてあり、
前記決定手段は、前記受信手段が受信した一のデータの受信時点と、以前に受信した他のデータの受信時点との差が所定の閾値を超える場合には、前記一のデータ及び他のデータの優先度に関わらず、前記他のデータを先に送信するように送信順を決定するようにしてあること
を特徴とする請求項1又は請求項2に記載の車載中継装置。
The storage means is configured to store the data received by the receiving means with information relating to the reception time of the data,
When the difference between the reception time of the one data received by the reception means and the reception time of the other data received previously exceeds a predetermined threshold, the determination means determines the one data and the other data The in-vehicle relay device according to claim 1 or 2, wherein the transmission order is determined so that the other data is transmitted first regardless of the priority of the data.
一又は複数の車載通信装置がそれぞれ接続された複数のネットワークと、該ネットワークに接続する複数の接続部、一の接続部に接続されたネットワークの一の車載通信装置が送信したデータを受信する受信手段、及び該受信手段が受信したデータを他の接続部に接続されたネットワークの他の車載通信装置へ送信する送信手段を有する車載中継装置とを備える車載通信システムにおいて、
前記車載通信装置は、優先度に係る情報を含むデータを送信するようにしてあり、
前記車載中継装置は、
前記受信手段が受信したデータを、該データの送信先の車載通信装置が接続された送信先ネットワークに対応付けて蓄積する蓄積手段と、
前記受信手段が受信した複数のデータの送信順を、前記データの優先度に応じて決定する決定手段と
を有し、
前記送信手段が、送信先ネットワーク毎に、前記決定手段が決定した送信順に応じて前記蓄積手段に蓄積されたデータを送信するようにしてあること
を特徴とする車載通信システム。
A plurality of networks each connected with one or a plurality of in-vehicle communication devices, a plurality of connection units connected to the networks, and a reception for receiving data transmitted by one in-vehicle communication device connected to the one connection unit In-vehicle communication system comprising: means, and an in-vehicle relay device having a transmission means for transmitting data received by the receiving means to another in-vehicle communication device connected to another connection unit,
The in-vehicle communication device is configured to transmit data including information related to priority,
The in-vehicle relay device is
Storage means for storing the data received by the receiving means in association with a transmission destination network to which the in-vehicle communication device of the transmission destination of the data is connected;
Determining means for determining the transmission order of the plurality of data received by the receiving means according to the priority of the data;
The in-vehicle communication system, wherein the transmission unit transmits data stored in the storage unit according to a transmission order determined by the determination unit for each destination network.
前記車載中継装置は、
前記蓄積手段が、前記決定手段が決定した送信順にデータを待ち行列として蓄積するようにしてあり、
前記送信手段が、前記待ち行列からデータを取得して送信するようにしてあること
を特徴とする請求項6に記載の車載通信システム。
The in-vehicle relay device is
The storage means stores data in a queue in the order of transmission determined by the determination means;
The in-vehicle communication system according to claim 6, wherein the transmission means acquires data from the queue and transmits the data.
前記車載中継装置は、
前記決定手段が、前記受信手段が同一のネットワークに接続された車載通信装置から受信した複数のデータは、該データの優先度に関わらず、前記受信手段が受信した順に前記送信手段が送信するように送信順を決定するようにしてあること
を特徴とする請求項6又は請求項7に記載の車載通信システム。
The in-vehicle relay device is
A plurality of data received by the determining means from the in-vehicle communication device connected to the same network as the receiving means are transmitted by the transmitting means in the order received by the receiving means regardless of the priority of the data. 8. The in-vehicle communication system according to claim 6 or 7, wherein the transmission order is determined by the transmission order.
前記車載中継装置は、
前記決定手段が、前記受信手段が同一の車載通信装置から受信した複数のデータは、該データの優先度に関わらず、前記受信手段が受信した順に前記送信手段が送信するように送信順を決定するようにしてあること
を特徴とする請求項6又は請求項7に記載の車載通信システム。
The in-vehicle relay device is
The determination means determines the transmission order so that the transmission means transmits a plurality of data received by the reception means from the same in-vehicle communication device, regardless of the priority of the data, in the order received by the reception means. The in-vehicle communication system according to claim 6 or 7, characterized in that:
前記車載中継装置は、
前記蓄積手段が、前記受信手段が受信したデータに、該データの受信時点に係る情報を付して蓄積するようにしてあり、
前記決定手段が、前記受信手段が受信した一のデータの受信時点と、以前に受信した他のデータの受信時点との差が所定の閾値を超える場合には、前記一のデータ及び他のデータの優先度に関わらず、前記他のデータを先に送信するように送信順を決定するようにしてあること
を特徴とする請求項6又は請求項7に記載の車載通信システム。
The in-vehicle relay device is
The storage means stores the data received by the receiving means with information relating to the reception time of the data;
When the difference between the reception time of the one data received by the reception means and the reception time of the other data received previously exceeds a predetermined threshold, the determination means determines that the one data and the other data The in-vehicle communication system according to claim 6 or 7, wherein the order of transmission is determined so that the other data is transmitted first, regardless of the priority.
一又は複数の車載通信装置が接続されたネットワークに接続する複数の接続部を備える車載中継装置にて、一の接続部に接続されたネットワークの一の車載通信装置が送信したデータを受信し、受信したデータを他の接続部に接続されたネットワークの他の車載通信装置へ送信する車載通信方法において、
車載通信装置が送信するデータには優先度に係る情報を含み、
受信したデータを、該データの送信先の車載通信装置が接続された送信先ネットワークに対応付けて蓄積し、
受信した複数のデータの送信順を、前記データの優先度に応じて決定し、
送信先ネットワーク毎に、決定した送信順に応じて前記蓄積手段に蓄積されたデータを送信すること
を特徴とする車載通信方法。
In the in-vehicle relay device including a plurality of connection units connected to a network to which one or a plurality of in-vehicle communication devices are connected, the data transmitted by one in-vehicle communication device of the network connected to the one connection unit is received, In the in-vehicle communication method of transmitting the received data to other in-vehicle communication devices connected to other connection units,
The data transmitted by the in-vehicle communication device includes information related to priority,
The received data is stored in association with the destination network to which the in-vehicle communication device that is the destination of the data is connected,
The transmission order of the plurality of received data is determined according to the priority of the data,
A vehicle-mounted communication method characterized by transmitting data stored in the storage means according to a determined transmission order for each destination network.
決定した送信順にデータを待ち行列として蓄積し、
前記待ち行列からデータを取得して送信すること
を特徴とする請求項11に記載の車載通信方法。
Accumulate data as a queue in the determined transmission order,
The in-vehicle communication method according to claim 11, wherein data is acquired from the queue and transmitted.
同一のネットワークに接続された車載通信装置から受信した複数のデータは、該データの優先度に関わらず、受信した順に送信するように送信順を決定すること
を特徴とする請求項11又は請求項12に記載の車載通信方法。
The transmission order is determined so that a plurality of data received from an in-vehicle communication device connected to the same network is transmitted in the order received, regardless of the priority of the data. 12. The in-vehicle communication method according to 12.
同一の車載通信装置から受信した複数のデータは、該データの優先度に関わらず、受信した順に送信するように送信順を決定すること
を特徴とする請求項11又は請求項12に記載の車載通信方法。
The vehicle order according to claim 11 or 12, wherein a plurality of data received from the same vehicle-mounted communication device determine a transmission order so as to be transmitted in the order of reception regardless of the priority of the data. Communication method.
受信したデータに、該データの受信時点に係る情報を付して蓄積し、
受信した一のデータの受信時点と、以前に受信した他のデータの受信時点との差が所定の閾値を超える場合には、前記一のデータ及び他のデータの優先度に関わらず、前記他のデータを先に送信するように送信順を決定すること
を特徴とする請求項11又は請求項12に記載の車載通信方法。
The received data is added with information related to the reception time of the data and accumulated,
If the difference between the reception time of the received one data and the reception time of the other previously received data exceeds a predetermined threshold, the other data is not related to the priority of the one data and the other data. The in-vehicle communication method according to claim 11 or 12, wherein the transmission order is determined so as to transmit the data first.
JP2007001716A 2007-01-09 2007-01-09 In-vehicle relay device, in-vehicle communication system, and in-vehicle communication method Pending JP2008172353A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007001716A JP2008172353A (en) 2007-01-09 2007-01-09 In-vehicle relay device, in-vehicle communication system, and in-vehicle communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007001716A JP2008172353A (en) 2007-01-09 2007-01-09 In-vehicle relay device, in-vehicle communication system, and in-vehicle communication method

Publications (1)

Publication Number Publication Date
JP2008172353A true JP2008172353A (en) 2008-07-24

Family

ID=39700058

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007001716A Pending JP2008172353A (en) 2007-01-09 2007-01-09 In-vehicle relay device, in-vehicle communication system, and in-vehicle communication method

Country Status (1)

Country Link
JP (1) JP2008172353A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010245793A (en) * 2009-04-03 2010-10-28 Honda Motor Co Ltd On-vehicle gateway apparatus
JP2012253659A (en) * 2011-06-06 2012-12-20 Toyota Motor Corp Communication device, information processing device and data transmission method
US8582586B2 (en) 2009-04-03 2013-11-12 Honda Motor Co., Ltd. Vehicle onboard gateway apparatus
JP2015053568A (en) * 2013-09-06 2015-03-19 日立オートモティブシステムズ株式会社 Communication controller
WO2016132402A1 (en) * 2015-02-20 2016-08-25 三菱電機株式会社 Communication frame transfer device and communication system
CN113377037A (en) * 2020-03-10 2021-09-10 本田技研工业株式会社 Communication control system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010245793A (en) * 2009-04-03 2010-10-28 Honda Motor Co Ltd On-vehicle gateway apparatus
US8582586B2 (en) 2009-04-03 2013-11-12 Honda Motor Co., Ltd. Vehicle onboard gateway apparatus
JP2012253659A (en) * 2011-06-06 2012-12-20 Toyota Motor Corp Communication device, information processing device and data transmission method
JP2015053568A (en) * 2013-09-06 2015-03-19 日立オートモティブシステムズ株式会社 Communication controller
WO2016132402A1 (en) * 2015-02-20 2016-08-25 三菱電機株式会社 Communication frame transfer device and communication system
CN113377037A (en) * 2020-03-10 2021-09-10 本田技研工业株式会社 Communication control system

Similar Documents

Publication Publication Date Title
JP4974706B2 (en) In-vehicle communication device and in-vehicle communication system
JP5741480B2 (en) Communication system, relay device, and power supply control method
JP5884716B2 (en) In-vehicle system
JP5637190B2 (en) Communication system and communication method
JP5050653B2 (en) Electronic control device
JP2008172353A (en) In-vehicle relay device, in-vehicle communication system, and in-vehicle communication method
US10666457B2 (en) Relay device
JP4987760B2 (en) Relay device, communication system, and communication method
JP2007036907A (en) Gateway apparatus
JP2014072673A (en) Relay device
JP5286659B2 (en) In-vehicle device relay system, in-vehicle device relay method, and relay device
WO2017141546A1 (en) Redundant communication system and redundant communication system restoration method
JP5110998B2 (en) Distribution device, communication system, and communication method
JP5165957B2 (en) In-vehicle communication system
CN102100037B (en) The user node of the transmission event memory with function separation of communication system
JP2008227591A (en) On-vehicle relay connection unit
JP2006340099A (en) Gateway unit
JP7028511B2 (en) In-vehicle communication device, in-vehicle communication system, communication method and program
JP6200734B2 (en) Communication control device
JP5728043B2 (en) Gateway device
CN104486186A (en) CAN bus network architecture system
JP2008283386A (en) Data relaying device, and on-vehicle communication system
JP4361540B2 (en) Gateway device, data transfer method, and program
JP6172754B2 (en) Communication apparatus and communication method
JP6812765B2 (en) Electronic control device