JP2009147722A - On-vehicle relay connection unit - Google Patents

On-vehicle relay connection unit Download PDF

Info

Publication number
JP2009147722A
JP2009147722A JP2007323644A JP2007323644A JP2009147722A JP 2009147722 A JP2009147722 A JP 2009147722A JP 2007323644 A JP2007323644 A JP 2007323644A JP 2007323644 A JP2007323644 A JP 2007323644A JP 2009147722 A JP2009147722 A JP 2009147722A
Authority
JP
Japan
Prior art keywords
communication line
transmission
message
bits
reception
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2007323644A
Other languages
Japanese (ja)
Other versions
JP4999668B2 (en
Inventor
Yoshiichi Isoyama
芳一 礒山
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 JP2007323644A priority Critical patent/JP4999668B2/en
Publication of JP2009147722A publication Critical patent/JP2009147722A/en
Application granted granted Critical
Publication of JP4999668B2 publication Critical patent/JP4999668B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To prevent a state where there is no data to be transmitted from occurring, when relaying a message received from a communication line of a reception source to a communication line of a transmission destination of which the transmission rate is higher than that of the communication line of the reception source, by a relay connection unit using a cut-through method. <P>SOLUTION: The present invention relates to an on-vehicle relay connection unit 10 for relaying a message (m) received from an electronic control unit connected to a first communication line 31A to an electronic unit connected to a second communication line 31B of which the transmission rate is higher than that of the first communication line 31A using the cut-through method, including a relay processing section in which, the message is received from the first communication line, a relay start waiting time is calculated at a point of time when a control field has been received, the relay start waiting time being [the reception time required for completing the reception of the remaining bits in the message]-[the transmission time required for transmitting all the bits in the message to the second communication line], and relay of the message to the second communication line is started in timing delayed just by the relay start waiting time. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、車載用の中継接続ユニットに関し、詳しくは、中継接続ユニットに接続された通信線の伝送速度が相違し、受信側の伝送速度より送信側の伝送速度が早い場合に、メッセージ全体を確実に且つ効率よく送信ができるようにするものである。   The present invention relates to an in-vehicle relay connection unit, and more particularly, when the transmission speed of a communication line connected to the relay connection unit is different and the transmission speed on the transmission side is faster than the transmission speed on the reception side, the entire message is displayed. It is intended to enable reliable and efficient transmission.

従来、車両搭載機器を制御する電子制御ユニット(Electronic Control Unit:ECU)を通信線で接続し、該通信線同士を中継接続ユニット(ゲートウェイ装置)を介して接続して、異なる通信線に属するECU間で送受信されるメッセージを該中継接続ユニットで中継する車載用通信システムが採用されている。   Conventionally, an electronic control unit (Electronic Control Unit: ECU) that controls a vehicle-mounted device is connected by a communication line, the communication lines are connected to each other via a relay connection unit (gateway device), and the ECUs belong to different communication lines. An in-vehicle communication system that relays messages transmitted and received between the relay connection units is employed.

中継接続ユニットは、通信線に接続されたECUからのメッセージを受信すると、該メッセージの中継送信先である他の通信線にメッセージを中継している。
詳細には、中継接続ユニットは、該受信したメッセージのメッセージ識別子と中継送信する送信先のECUを接続した通信線との対応を記載したルーティングマップを備えている。中継接続ユニットはメッセージを受信してメッセージ識別子を読み込み、前記ルーティングマップを参照して該メッセージ識別子と対応する送信先の通信線を判別し、特定した送信先の通信線にメッセージを送信している。
When the relay connection unit receives a message from the ECU connected to the communication line, the relay connection unit relays the message to another communication line that is a relay transmission destination of the message.
Specifically, the relay connection unit includes a routing map that describes the correspondence between the message identifier of the received message and the communication line connected to the transmission destination ECU for relay transmission. The relay connection unit receives the message, reads the message identifier, refers to the routing map, determines the destination communication line corresponding to the message identifier, and transmits the message to the identified destination communication line. .

前記中継接続ユニットの中継処理の方法として、例えば、特開平9−162917号公報(特許文献1)に記載されているように、カットスルー方式が知られている。
カットスルー方式は、図7に示すように、中継接続ユニットが、通信線(受信元バス)からメッセージを受信し、メッセージのうちメッセージ識別子が書き込まれたアービトレーションフィールド(ID)までを受信した時点taで、ルーティングマップを参照して該メッセージ識別子に対応する中継先の通信線(送信先バス)を判別し、該通信線に送信を開始する方式である。メッセージを最後まで受信せずに通信線に送信を開始しているので、メッセージを最後まで受信してから送信を開始するストア&フォワード方式に比べて、メッセージの受信を開始してから送信を開始するまでの時間が短くなり、中継処理を高速化することができる。
As a relay processing method of the relay connection unit, for example, a cut-through method is known as described in JP-A-9-162917 (Patent Document 1).
In the cut-through method, as shown in FIG. 7, when the relay connection unit receives a message from the communication line (reception source bus) and receives up to the arbitration field (ID) in which the message identifier is written in the message ta. In this method, a routing destination communication line (transmission destination bus) corresponding to the message identifier is identified with reference to the routing map, and transmission to the communication line is started. Since transmission to the communication line is started without receiving the message to the end, transmission starts after message reception is started, compared to the store and forward method which starts transmission after receiving the message to the end. The time until this is shortened, and the relay processing can be speeded up.

しかし、中継接続ユニットがカットスルー方式でメッセージの中継処理を行っている場合に、例えば、図8に示すように、中継接続ユニットが250kpbsの伝送速度で受信元の通信線(バス)から受信したメッセージを、500kbpsの伝送速度で送信先の通信線(バス)に送信しているときには、メッセージを受信する速度が送信する速度よりも遅いため、送信すべきメッセージのデータが受信できておらず、送信すべきデータが無い状態が発生するという問題がある。
このように送信すべきデータが無い状態が発生すると、中継接続ユニットはエラーとして中継処理を中断し、バス上にエラーが発生し、問題となる。
However, when the relay connection unit is performing message relay processing by the cut-through method, for example, as shown in FIG. 8, the relay connection unit has received from the communication line (bus) of the reception source at a transmission rate of 250 kpbs. When sending a message to the destination communication line (bus) at a transmission rate of 500 kbps, the message receiving speed is slower than the sending speed, so the data of the message to be sent cannot be received, There is a problem that there is a state where there is no data to be transmitted.
When there is a state where there is no data to be transmitted in this way, the relay connection unit interrupts the relay process as an error, and an error occurs on the bus, which becomes a problem.

特開平9−162917号公報Japanese Patent Laid-Open No. 9-162917

本発明は、前記問題に鑑みてなされたもので、中継接続ユニットが受信側の通信線から受信したメッセージを、受信側の通信線よりも伝送速度の速い送信側の通信線にカットスルー方式で中継するときに、送信すべきデータが無い状態が発生することを防ぎ、効率よくメッセージの送信を行うことを課題としている。   The present invention has been made in view of the above problems, and a message received from a communication line on the reception side by the relay connection unit is cut to a transmission line on the transmission side that is faster than the communication line on the reception side. It is an object to prevent the occurrence of a state where there is no data to be transmitted when relaying, and to transmit a message efficiently.

前記課題を解決するため、本発明は、第1CAN通信線に接続された電子制御ユニットから受信したメッセージを、前記第1CAN通信線よりも伝送速度の速い第2CAN通信線に接続された電子制御ユニットにカットスルー方式で中継する車載用の中継接続ユニットであって、
前記中継接続ユニットは、
前記第1CAN通信線および第2CAN通信線と接続した送受信部と、
前記送受信部と接続した中継処理部を備え、
前記中継処理部は、
前記第1CAN通信線から受信したメッセージのコントロールフィールドの受信が完了した時点で、前記メッセージの残りのビット数の受信を完了するために必要な受信時間TAと、前記メッセージの全ビット数を前記第2CAN通信線に送信するために必要な送信時間TBを求め、前記受信時間TAから送信時間TBを減算して送信待ち時間TC(TC=TA−TB)を演算し、前記送信待ち時間TCが正の値の場合には、前記メッセージのコントロールフィールドの受信完了時から前記送信待ち時間の時間経過後に前記第2CAN通信線に該メッセージの中継を開始する中継処理を行う設定としていることを特徴とする車載用の中継接続ユニットを提供している。
In order to solve the above-mentioned problem, the present invention provides an electronic control unit connected to a second CAN communication line having a transmission speed higher than that of the first CAN communication line for a message received from the electronic control unit connected to the first CAN communication line. It is an in-vehicle relay connection unit that relays by the cut-through method.
The relay connection unit is
A transceiver connected to the first CAN communication line and the second CAN communication line;
A relay processing unit connected to the transmission / reception unit;
The relay processing unit
When reception of the control field of the message received from the first CAN communication line is completed, the reception time TA required to complete reception of the remaining number of bits of the message and the total number of bits of the message The transmission time TB required for transmission to the 2CAN communication line is obtained, the transmission time TB is subtracted from the reception time TA to calculate the transmission waiting time TC (TC = TA−TB), and the transmission waiting time TC is correct. Is set to perform relay processing for starting relaying of the message to the second CAN communication line after elapse of the transmission waiting time from completion of reception of the control field of the message. We provide in-vehicle relay connection units.

このように、コントロールフィールドの受信が完了した時点から、該送信待ち時間(TC)だけ遅らせてメッセージの送信を開始することで、第1CAN通信線から受信するメッセージの受信完了時は、第2CAN通信線に送信するメッセージの送信完了時よりも確実に早くすることができる。
言い換えれば、中継接続ユニットが第1CAN通信線からメッセージの受信を完了した時点では、第2CAN通信線へのメッセージの送信は完了しないようにメッセージの中継開始のタイミングを遅らせている。
このため、中継接続ユニットは、第1CAN通信線から受信したメッセージを、第1CAN通信線よりも伝送速度の速い第2CAN通信線にカットスルー方式で中継するときに、送信すべきデータが無い状態が発生することを防ぐことができる。
In this way, by starting the transmission of the message after the completion of the reception of the control field by the transmission waiting time (TC), the second CAN communication is performed when the reception of the message received from the first CAN communication line is completed. This can be surely faster than when the transmission of the message to be transmitted to the line is completed.
In other words, when the relay connection unit completes the message reception from the first CAN communication line, the message relay start timing is delayed so that the message transmission to the second CAN communication line is not completed.
For this reason, when the relay connection unit relays the message received from the first CAN communication line to the second CAN communication line having a higher transmission speed than the first CAN communication line by the cut-through method, there is no data to be transmitted. It can be prevented from occurring.

送信待ち時間TCが負またはゼロとなる場合には、前記メッセージのコントロールフィールドの受信完了後、ただちに前記第2CAN通信線に該メッセージの中継を開始する。
このような場合には、第2CAN通信線へのメッセージの中継開始のタイミングを遅らせなくても、カットスルー方式でメッセージを中継するときに、送信すべきデータが無い状態は発生しないためである。
When the transmission waiting time TC becomes negative or zero, the relay of the message is started to the second CAN communication line immediately after the reception of the control field of the message is completed.
In such a case, even when the relay start timing of the message to the second CAN communication line is not delayed, a state where there is no data to be transmitted does not occur when the message is relayed by the cut-through method.

具体的には、前記コントロールフィールドに格納されたデータフィールドのデータ長と、前記第2CAN通信線と前記第1CAN通信線の伝送速度比から、(データフィールドのデータ長−メッセージの全ビット数/伝送速度比)である送信待ちビット数を求め、第1CAN通信線の伝送速度で送信待ちビット数の経過時間を前記送信待ち時間としている。   Specifically, from the data length of the data field stored in the control field and the transmission speed ratio between the second CAN communication line and the first CAN communication line, (data field data length−total number of bits of message / transmission) The transmission waiting bit number which is a speed ratio) is obtained, and the elapsed time of the transmission waiting bit number at the transmission speed of the first CAN communication line is set as the transmission waiting time.

CANプロトコルに準拠したメッセージは、アービトレーションフィールドと、コントロールフィールドと、コントロールフィールドに続くデータフィールドを備えており、コントロールフィールドにはデータフィールドのデータ長が格納されている。
中継接続ユニットの中継処理部は、メッセージのコントロールフィールドを受信すると、データフィールドのデータ長を読み出す。また、中継処理部は、予め第1CAN通信線と第2CAN通信線の伝送速度から、前記第2CAN通信線と前記第1CAN通信線の伝送速度比を求めている。
さらに、中継処理部は、CANプロトコルにより定められているアービトレーションフィールドとコントロールフィールドのビット数と、コントロールフィールドから読み出したデータフィールドのデータ長から、メッセージの全ビット数を演算している。
A message conforming to the CAN protocol includes an arbitration field, a control field, and a data field following the control field, and the data length of the data field is stored in the control field.
When receiving the control field of the message, the relay processing unit of the relay connection unit reads the data length of the data field. The relay processing unit obtains a transmission rate ratio between the second CAN communication line and the first CAN communication line from the transmission rates of the first CAN communication line and the second CAN communication line in advance.
Further, the relay processing unit calculates the total number of bits of the message from the number of bits of the arbitration field and the control field defined by the CAN protocol and the data length of the data field read from the control field.

中継処理部は、上記により求めたデータフィールドのデータ長、メッセージの全ビット数、伝送速度比から、(データフィールドのデータ長−メッセージの全ビット数/伝送速度比)を演算して送信待ちビット数を求めている。コントロールフィールドの受信が完了した時点から、第1CAN通信線から受信するメッセージを送信待ちビット数分数えた後、第2CAN通信線へメッセージの中継を開始する。
即ち、第1CAN通信線の伝送速度で送信待ちビット数の経過時間である送信待ち時間後にメッセージの中継を開始する。
The relay processing unit calculates (data field data length−total number of message bits / transmission speed ratio) from the data length of the data field, the total number of bits of the message, and the transmission speed ratio obtained as described above, and a transmission waiting bit. Seeking the number. After the reception of the control field is completed, the message received from the first CAN communication line is counted for the number of transmission waiting bits, and then relaying of the message to the second CAN communication line is started.
That is, message relaying is started after a transmission waiting time that is the elapsed time of the number of transmission waiting bits at the transmission speed of the first CAN communication line.

前述したように、送信待ちビット数は、コントロールフィールドから読み出すデータフィールドのデータ長と、該データ長から算出できるメッセージの全ビット数と、伝送速度比から求めている。このため、データ長と伝送速度比から送信待ちビット数を予め計算し、テーブルとして中継接続ユニットに記憶しておくことができる。
即ち、中継処理部は、コントロールフィールドの受信が完了した時点で、コントロールフィールドからデータ長を読み出すと共に、第2CAN通信線と前記第1CAN通信線の伝送速度から伝送速度比を求め、該データ長と伝送速度比から該テーブルを参照して送信待ちビット数を読み出すことができる。
As described above, the transmission waiting bit number is obtained from the data length of the data field read from the control field, the total number of message bits that can be calculated from the data length, and the transmission rate ratio. For this reason, the number of bits waiting for transmission can be calculated in advance from the data length and the transmission rate ratio and stored in the relay connection unit as a table.
That is, when the reception of the control field is completed, the relay processing unit reads the data length from the control field, obtains a transmission rate ratio from the transmission rates of the second CAN communication line and the first CAN communication line, and calculates the data length. The number of bits waiting for transmission can be read from the transmission rate ratio with reference to the table.

また、中継処理部は、前記メッセージの残りのビット数の受信を完了するために必要な受信時間と、メッセージの全ビット数を前記第2CAN通信線に送信するために必要な送信時間をそれぞれ演算し、前記受信時間から送信時間を減算して送信待ち時間を求めてもよい。
具体的には、データフィールドのデータ長、メッセージの全ビット数、各通信線の伝送速度から、(データフィールドのデータ長/第1CAN通信線の伝送速度)を演算して、前記メッセージの残りのビット数の受信を完了するために必要な受信時間とする。また、(メッセージの全ビット数/第2CAN通信線の伝送速度)を演算して、メッセージの全ビット数を前記第2CAN通信線に送信するために必要な送信時間とする。さらに、前記受信時間から送信時間を減算した送信待ち時間を求め、コントロールフィールドの受信が完了した時点から該送信待ち時間後にメッセージの中継を開始する。
The relay processing unit calculates a reception time required to complete reception of the remaining number of bits of the message and a transmission time required to transmit the total number of bits of the message to the second CAN communication line. Then, the transmission waiting time may be obtained by subtracting the transmission time from the reception time.
Specifically, (data field data length / first CAN communication line transmission speed) is calculated from the data length of the data field, the total number of bits of the message, and the transmission speed of each communication line, and the rest of the message is calculated. The reception time required to complete reception of the number of bits. Further, (total number of bits of message / transmission speed of second CAN communication line) is calculated, and the total number of bits of the message is set as a transmission time required for transmitting to the second CAN communication line. Further, a transmission waiting time obtained by subtracting the transmission time from the reception time is obtained, and relaying of the message is started after the transmission waiting time from completion of reception of the control field.

前記第1CAN通信線または第2CAN通信線の伝送速度は、125kbps、250kbps、500kbps、1Mbpsであり、前記伝送速度比は、2、4、8のいずれかである。
一般的に、CANプロトコルで用いられる伝送速度は125kbps、250kbps、500kbps、1Mbpsである。中継接続ユニットの中継処理部は第1CAN通信線及び第2CAN通信線の伝送速度から伝送速度比を求めている。
The transmission speed of the first CAN communication line or the second CAN communication line is 125 kbps, 250 kbps, 500 kbps, 1 Mbps, and the transmission speed ratio is one of 2, 4, and 8.
Generally, transmission rates used in the CAN protocol are 125 kbps, 250 kbps, 500 kbps, and 1 Mbps. The relay processing unit of the relay connection unit obtains the transmission rate ratio from the transmission rates of the first CAN communication line and the second CAN communication line.

前述したように、本発明の中継接続ユニットによれば、コントロールフィールドの受信が完了した時点から該送信待ち時間後にメッセージの中継を開始することで、中継接続ユニットは、第1CAN通信線から受信したメッセージを、第1CAN通信線よりも伝送速度の速い第2CAN通信線にカットスルー方式で中継するときに、送信すべきデータが無い状態が発生することを防ぐことができる。   As described above, according to the relay connection unit of the present invention, the relay connection unit receives from the first CAN communication line by starting relaying the message after the transmission waiting time from the time when reception of the control field is completed. When a message is relayed to the second CAN communication line, which has a higher transmission speed than the first CAN communication line, by a cut-through method, it is possible to prevent a situation where there is no data to be transmitted.

本発明の実施形態を図面を参照して説明する。
図1乃至図4に本発明の第1実施形態を示す。
本発明の車載用の中継接続ユニット10は、電子制御ユニット(ECU)30を接続した通信線31間に介在させ、異なる通信線31に属する前記ECU30間で送受信するメッセージmを中継するものである。
本実施形態では、中継接続ユニット10を第1通信線31A、第2通信線31Bの間に介在させていると共に、第1通信線31AにECU30A、第2通信線31BにECU30Bを接続して通信システム20を構成している。通信プロトコルはCAN(Controller Area Network)である。第1通信線31Aの伝送速度は第2通信線31Bよりも遅い速度とし、中継接続ユニット10は、第1通信線31Aに接続されたECU30Aが送信したメッセージmを、第1通信線31Aよりも伝送速度が速い第2通信線31Bに接続されたECU30Bに中継している。
Embodiments of the present invention will be described with reference to the drawings.
1 to 4 show a first embodiment of the present invention.
The in-vehicle relay connection unit 10 of the present invention is interposed between communication lines 31 to which an electronic control unit (ECU) 30 is connected, and relays a message m transmitted / received between the ECUs 30 belonging to different communication lines 31. .
In the present embodiment, the relay connection unit 10 is interposed between the first communication line 31A and the second communication line 31B, and the ECU 30A is connected to the first communication line 31A and the ECU 30B is connected to the second communication line 31B for communication. A system 20 is configured. The communication protocol is CAN (Controller Area Network). The transmission speed of the first communication line 31A is set to be slower than that of the second communication line 31B, and the relay connection unit 10 sends the message m transmitted by the ECU 30A connected to the first communication line 31A to that of the first communication line 31A. It relays to ECU30B connected to the 2nd communication line 31B with a high transmission speed.

中継接続ユニット10は、中継処理部11と、送受信部12A、12Bと、記憶部13を備えている。
中継処理部11は、送受信部12A、12Bと接続すると共に記憶部13と接続しており、第1通信線31Aに接続されたECU30Aからのメッセージmを受信すると、メッセージmのアービトレーションフィールド42から識別子(ID)を読み出している。さらに、該IDからルーティングマップを用いて該メッセージmの中継送信先である第2通信線31Bを判別し、該通信線にメッセージmを中継している。
このとき、中継はカットスルー方式で行っている。
The relay connection unit 10 includes a relay processing unit 11, transmission / reception units 12A and 12B, and a storage unit 13.
The relay processing unit 11 is connected to the transmission / reception units 12A and 12B and to the storage unit 13. When the relay processing unit 11 receives the message m from the ECU 30A connected to the first communication line 31A, the relay processing unit 11 receives an identifier from the arbitration field 42 of the message m. (ID) is being read out. Further, the second communication line 31B, which is a relay transmission destination of the message m, is determined from the ID using a routing map, and the message m is relayed to the communication line.
At this time, the relay is performed by a cut-through method.

さらに、中継処理部11は、メッセージmの受信元の第1通信線31Aよりもメッセージmの送信先である第2通信線31Bのほうが伝送速度が速い場合に、後述する送信待ちビット数Xを記憶部13から読み出し、第1通信線31Aから受信するメッセージmのコントロールフィールド43の受信が完了した時点から、第1通信線31Aのメッセージのビット数を送信待ちビット数X分数えた後、第2通信線31Bへメッセージmの送信を開始している。
即ち、第1通信線31Aの伝送速度で送信待ちビット数Xが経過した送信待ち時間TC後に、第2通信線31Bへメッセージmの送信を開始している。
Further, when the transmission speed of the second communication line 31B that is the transmission destination of the message m is higher than that of the first communication line 31A that is the reception source of the message m, the relay processing unit 11 sets the transmission waiting bit number X described later. After the reception of the control field 43 of the message m read from the storage unit 13 and received from the first communication line 31A is completed, the number of bits of the message on the first communication line 31A is counted by the number X of transmission waiting bits, 2 Transmission of the message m to the communication line 31B is started.
That is, the transmission of the message m to the second communication line 31B is started after the transmission waiting time TC when the transmission waiting bit number X has elapsed at the transmission speed of the first communication line 31A.

記憶部13は、送信待ちビット数Xを記載したテーブルTを記憶している。テーブルTには、伝送速度比R、即ち、(第2通信線31Bの伝送速度/第1通信線31Aの伝送速度)と、メッセージmのデータフィールド44のデータ長に対する、送信待ちビット数Xが記載されている。テーブルTの詳細は後述する。
また、記憶部13は中継処理部11の中継処理のためのルーティングマップを記憶している。
The storage unit 13 stores a table T in which the number X of transmission waiting bits is described. In the table T, the transmission rate ratio R, that is, (the transmission rate of the second communication line 31B / the transmission rate of the first communication line 31A) and the number X of transmission waiting bits with respect to the data length of the data field 44 of the message m are shown. Are listed. Details of the table T will be described later.
In addition, the storage unit 13 stores a routing map for relay processing of the relay processing unit 11.

送受信部12Aは第1通信線31Aと接続しており、送受信部12Bは第2通信線31Bと接続している。送受信部12は第1通信線31A及び第2通信線31Bを介してメッセージmの送受信を行っている。   The transmission / reception unit 12A is connected to the first communication line 31A, and the transmission / reception unit 12B is connected to the second communication line 31B. The transmission / reception unit 12 transmits / receives the message m via the first communication line 31A and the second communication line 31B.

例えば、中継接続ユニット10の中継処理部11はCPUで構成し、送受信部12はCANコントローラで構成し、記憶部13はROMまたはRAMまたは不揮発性メモリ等で構成している。   For example, the relay processing unit 11 of the relay connection unit 10 is configured by a CPU, the transmission / reception unit 12 is configured by a CAN controller, and the storage unit 13 is configured by ROM or RAM, a nonvolatile memory, or the like.

次に、中継接続ユニット10が送受信するメッセージmのフォーマットについて説明する。図2に示すように、メッセージmのフレームは、上位ビットより、メッセージフレームの開始を示すスタートオブフレーム(SOF)フィールド41と、メッセージ識別子(ID)を格納したアービトレーションフィールド42と、データフィールド44のデータ長(DLC)を格納したコントロールフィールド43と、送受信されるメッセージmの内容(データ)を示すデータフィールド44とを備えている。
メッセージmはCANプロトコルに準拠しており、標準フォーマットである。従って、アービトレーションフィールド42は12ビット、コントロールフィールド43は6ビット、SOFフィールド41は1ビットと定められており、データフィールド44のデータ長はメッセージm毎に異なる。コントロールフィールド43にはデータフィールド44のデータ長がバイト単位で格納されている。
Next, the format of the message m transmitted / received by the relay connection unit 10 will be described. As shown in FIG. 2, the frame of the message m includes a start-of-frame (SOF) field 41 indicating the start of the message frame, an arbitration field 42 storing a message identifier (ID), and a data field 44 from the upper bits. A control field 43 storing a data length (DLC) and a data field 44 indicating the contents (data) of a message m to be transmitted / received are provided.
The message m conforms to the CAN protocol and has a standard format. Therefore, the arbitration field 42 is defined as 12 bits, the control field 43 is defined as 6 bits, and the SOF field 41 is defined as 1 bit, and the data length of the data field 44 is different for each message m. The control field 43 stores the data length of the data field 44 in units of bytes.

次に、送信待ちビット数Xについて説明する。
送信待ちビット数Xとは、図3に示すように、中継接続ユニット10が第1通信線31Aからメッセージmを受信し、コントロールフィールド43の受信の完了時t1から、第2通信線31Bにメッセージmの中継を開始するまでのビット数Xであり、中継処理部11は第1通信線31Aから受信するメッセージのビット数を数えることで、該送信待ちビット数Xを数えている。
例えば、送信待ちビット数Xが10ビットの場合、図3に示すように中継処理部11はコントロールフィールド43の受信の完了時t1から、第1通信線31Aから受信するメッセージを10ビット分数えたのち、第2通信線31Bにメッセージmの中継を開始している。
第1通信線31Aの伝送速度において送信待ちビット数Xが経過する時間を送信待ち時間TCとする。
Next, the transmission waiting bit number X will be described.
As shown in FIG. 3, the number X of transmission waiting bits means that the relay connection unit 10 receives the message m from the first communication line 31 </ b> A, and the message to the second communication line 31 </ b> B from the time t <b> 1 when the reception of the control field 43 is completed. The relay processing unit 11 counts the number of bits waiting for transmission X by counting the number of bits of the message received from the first communication line 31A.
For example, when the transmission waiting bit number X is 10 bits, the relay processing unit 11 counts 10 bits of messages received from the first communication line 31A from the time t1 when the reception of the control field 43 is completed as shown in FIG. After that, the relay of the message m is started on the second communication line 31B.
The time during which the transmission waiting bit number X elapses at the transmission speed of the first communication line 31A is defined as a transmission waiting time TC.

送信待ちビット数Xの求め方について説明する。
第1通信線31Aからのメッセージmのコントロールフィールド43の受信の完了時t1においては、中継接続ユニット10はアービトレーションフィールド42及びコントロールフィールド43の受信を完了しており、データフィールド44を続けて受信する。
中継処理部11は、コントロールフィールド43の受信の完了時t1から、第1通信線31Aの伝送速度において送信待ちビット数Xが経過した時点、即ち送信待ち時間TCの経過後から、第2通信線31Bにメッセージmの送信を開始する。
A method of obtaining the transmission waiting bit number X will be described.
At the completion of reception of the control field 43 of the message m from the first communication line 31A, the relay connection unit 10 has completed reception of the arbitration field 42 and the control field 43, and continuously receives the data field 44. .
The relay processing unit 11 starts the second communication line from the time t1 when the reception of the control field 43 is completed, when the transmission waiting bit number X has elapsed at the transmission speed of the first communication line 31A, that is, after the transmission waiting time TC has elapsed. The transmission of the message m is started at 31B.

このとき、中継接続ユニット10が第1通信線31Aからメッセージmの受信を完了した時t2では、第2通信線31Bへのメッセージmの送信が完了しないように、送信待ちビット数Xを設定している。即ち、第1通信線31Aから受信するメッセージmの受信完了時t2が、第2通信線31Bに送信するメッセージmの送信完了時t3よりも早くなるように、送信待ちビット数Xを設定している。
従って、(データフィールド44を受信するために必要な時間TA)が、(送信待ち時間TC+メッセージmの全ビット数を第2通信線31Bに送信するために必要な時間TB)よりも小さければよい。
At this time, when the relay connection unit 10 completes the reception of the message m from the first communication line 31A, the transmission waiting bit number X is set so that the transmission of the message m to the second communication line 31B is not completed. ing. That is, the transmission waiting bit number X is set so that the reception time t2 of the message m received from the first communication line 31A is earlier than the transmission time t3 of the message m transmitted to the second communication line 31B. Yes.
Therefore, (the time TA necessary for receiving the data field 44) should be smaller than (the transmission time TC + the time TB necessary for transmitting the total number of bits of the message m to the second communication line 31B). .

データフィールド44を受信するために必要な時間TAは、データフィールド44のビット数/第1通信線31Aの伝送速度で求められる。なお、データフィールド44のデータ長とは、データフィールド44のビット数を表している。
送信待ち時間TCは、第1通信線31Aの伝送速度を基準として考えると、送信待ちビット数X/第1通信線31Aの伝送速度で求められる。
メッセージmの全ビット数を第2通信線31Bに送信するために必要な時間TBは、メッセージmの全ビット数/第2通信線31Bの伝送速度で求められる。
上記より、送信待ちビット数Xを求めると、(データフィールド44のビット数−メッセージmの全ビット数/伝送速度比R)となる。ここで、伝送速度比Rとは第2通信線31Bの伝送速度/第1通信線31Aの伝送速度である。
The time TA required to receive the data field 44 is obtained by the number of bits of the data field 44 / the transmission speed of the first communication line 31A. Note that the data length of the data field 44 represents the number of bits of the data field 44.
The transmission waiting time TC is obtained by the number of transmission waiting bits X / the transmission speed of the first communication line 31A, considering the transmission speed of the first communication line 31A as a reference.
The time TB required to transmit the total number of bits of the message m to the second communication line 31B is obtained by the total number of bits of the message m / the transmission rate of the second communication line 31B.
From the above, when the number X of transmission waiting bits is obtained, it becomes (the number of bits of the data field 44−the total number of bits of the message m / the transmission rate ratio R). Here, the transmission rate ratio R is the transmission rate of the second communication line 31B / the transmission rate of the first communication line 31A.

詳細には、データフィールド44のデータ長(ビット数)は、コントロールフィールド43より読み出している。データ長はバイト単位で表されており1バイトは8ビットなので、読み出した値がnの場合、データフィールド44のデータ長(ビット数)は8×nビットである。
メッセージmの全ビット数は、SOFフィールド41、アービトレーション(ID)フィールド42、コントロール(DLC)フィールド43、データフィールド44のビット数の和である。前述したようにアービトレーションフィールド42は12ビット、コントロールフィールド43は6ビット、SOFは1ビットと定められているため、計19ビットとなり、データフィールド44のデータ長は8×nビットである。従って、メッセージmの全ビット数は(19+8×n)ビットとなる。
Specifically, the data length (number of bits) of the data field 44 is read from the control field 43. Since the data length is expressed in bytes and one byte is 8 bits, when the read value is n, the data length (number of bits) of the data field 44 is 8 × n bits.
The total number of bits of the message m is the sum of the number of bits in the SOF field 41, the arbitration (ID) field 42, the control (DLC) field 43, and the data field 44. As described above, since the arbitration field 42 is defined as 12 bits, the control field 43 is defined as 6 bits, and the SOF is defined as 1 bit, the total is 19 bits, and the data length of the data field 44 is 8 × n bits. Therefore, the total number of bits of the message m is (19 + 8 × n) bits.

また、第1通信線31A及び第2通信線31Bの伝送速度は125kbps、250kbps、500kbps、1Mbpsのいずれかであり、また、第1通信線31Aは第2通信線31Bよりも伝送速度が遅いため、伝送速度比Rは2、4、8のいずれかの値となる。   Further, the transmission speed of the first communication line 31A and the second communication line 31B is any one of 125 kbps, 250 kbps, 500 kbps, and 1 Mbps, and the first communication line 31A is slower than the second communication line 31B. The transmission rate ratio R is any one of 2, 4, and 8.

さらに、スタッフビットを考慮する。CANプロトコルによる通信システムでは、ECU30及び中継接続ユニット10は6ビット以上連続して同じ値のビットを受信することができず、連続して5ビット同じ値のビットが続いた場合には1ビットのスタッフビットが挿入される。このため、データフィールド44のビット数は、最大で8×n×6/5となる。6/5をビットスタッフ率Sと称す。
なお、アービトレーションフィールド42、コントロールフィールド43にもスタッフビットは挿入される。しかし、メッセージmの全ビット数が長くなる場合には、第2通信線31Bに送信されるメッセージmの全ビット数が大きくなり、中継接続ユニット10の第2通信線31Bへのメッセージmの送信完了時t3がさらに遅くなる。本発明では、第1通信線31Aから受信するメッセージmの受信完了時t2が、第2通信線31Bに送信するメッセージmの送信完了時t3よりも早くなるように設定しており、メッセージmの全ビット数が長くなる場合には、送信待ちビット数Xの演算には影響を与えない。そこで、本実施形態では、データフィールド44に挿入されるスタッフビットのみを考慮している。
In addition, consider stuff bits. In the communication system based on the CAN protocol, the ECU 30 and the relay connection unit 10 cannot receive the same value bit continuously for 6 bits or more. A stuff bit is inserted. Therefore, the maximum number of bits in the data field 44 is 8 × n × 6/5. 6/5 is referred to as a bit stuff rate S.
Note that stuff bits are also inserted into the arbitration field 42 and the control field 43. However, when the total number of bits of the message m becomes long, the total number of bits of the message m transmitted to the second communication line 31B increases, and the message m is transmitted to the second communication line 31B of the relay connection unit 10. When completed, t3 is further delayed. In the present invention, the completion time t2 of the message m received from the first communication line 31A is set to be earlier than the time t3 of the transmission completion of the message m transmitted to the second communication line 31B. When the total number of bits becomes long, the calculation of the transmission waiting bit number X is not affected. Therefore, in the present embodiment, only stuff bits inserted in the data field 44 are considered.

従って、送信待ちビット数Xは、(データフィールド44のビット数−メッセージmの全ビット数/伝送速度比R)であり、式(1)で表される。
中継接続ユニット10は、コントロールフィールド43の受信が完了した時点t1から、第1通信線31Aから受信するメッセージmを送信待ちビット数X分数えた後に第2通信線31Bにメッセージmの中継を開始する。
なお、式(1)により送信待ちビット数Xが「0」または負の値の場合には、送信待ちビット数Xを「0」と考え、コントロールフィールド43の受信が完了した時点t1後、ただちに第2通信線31Bにメッセージmの中継を開始する。
(数1)
X=(8×n×S)−(19+8×n×S)/R(式1)
Accordingly, the number X of transmission waiting bits is (the number of bits in the data field 44−the total number of bits of the message m / the transmission rate ratio R), and is represented by the equation (1).
The relay connection unit 10 starts relaying the message m to the second communication line 31B after counting the message m received from the first communication line 31A for the number X of transmission waiting bits from the time t1 when reception of the control field 43 is completed. To do.
If the transmission wait bit number X is “0” or a negative value according to the expression (1), the transmission wait bit number X is regarded as “0”, and immediately after t1 when reception of the control field 43 is completed. The relay of the message m is started to the 2nd communication line 31B.
(Equation 1)
X = (8 * n * S)-(19 + 8 * n * S) / R (Formula 1)

式1より、送信待ちビット数Xは、伝送速度比Rとデータフィールド44のビット数の関数となる。前述したように、伝送速度比Rは2、4、8のいずれかの値となり、データフィールド44のデータ長は8×nビット、即ちnバイトで表される。CANのメッセージmでは、データフィールド44は0バイトから8バイトの値を取る。
このため、伝送速度比Rとデータフィールド44のデータ長のバイト数から送信待ちビット数Xを演算すると、図4に示すテーブルTとなる。例えば、第1通信線31Aの伝送速度が250kbps、第2通信線31Bの伝送速度が500kbps、データフィールド44のバイト数nが4バイトの場合、伝送速度比Rは500/250=2なので、送信待ちビット数Xは図4より10ビットとなる。従って、中継接続ユニット10は第1通信線31Aからメッセージmを受信し、コントロールフィールド43の受信が完了した時点t1から、図3に示すように、第1通信線31Aから受信するメッセージmを10ビット分数えた後、即ち第1通信線31Aの伝送速度250kbpsで10ビット分経過した時間(送信待ち時間TC)後、第2通信線31Bにメッセージmの中継を開始する。
テーブルTは予め算出して記憶部13に記憶される。
From Equation 1, the transmission wait bit number X is a function of the transmission rate ratio R and the number of bits in the data field 44. As described above, the transmission rate ratio R has a value of 2, 4, or 8, and the data length of the data field 44 is represented by 8 × n bits, that is, n bytes. In the CAN message m, the data field 44 takes a value from 0 to 8 bytes.
Therefore, when the transmission waiting bit number X is calculated from the transmission rate ratio R and the number of bytes of the data length of the data field 44, the table T shown in FIG. For example, when the transmission speed of the first communication line 31A is 250 kbps, the transmission speed of the second communication line 31B is 500 kbps, and the number of bytes n of the data field 44 is 4 bytes, the transmission speed ratio R is 500/250 = 2. The waiting bit number X is 10 bits from FIG. Therefore, the relay connection unit 10 receives the message m from the first communication line 31A, and receives the message m received from the first communication line 31A from the time t1 when the reception of the control field 43 is completed, as shown in FIG. After counting the number of bits, that is, after 10 bits have elapsed at the transmission rate of 250 kbps (transmission waiting time TC) of the first communication line 31A, the relay of the message m is started on the second communication line 31B.
The table T is calculated in advance and stored in the storage unit 13.

次に、中継接続ユニット10の動作について説明する。
中継接続ユニット10は、第1通信線31Aからメッセージmを受信する。該メッセージmのアービトレーションフィールド42を受信すると、中継処理部11はメッセージmのIDを読み出し、記憶部13のルーティングマップを参照して中継送信先の通信線を判別する。ここでは、第2通信線31Bを送信先とする。
次に、受信元である第1通信線31Aの伝送速度と、送信先の第2通信線31Bの伝送速度から伝送速度比Rを求める。該伝送速度比Rは予め記憶させておいてもよいし、各通信線の伝送速度を記憶しておき、メッセージmの受信毎に演算してもよい。
Next, the operation of the relay connection unit 10 will be described.
The relay connection unit 10 receives the message m from the first communication line 31A. When the arbitration field 42 of the message m is received, the relay processing unit 11 reads the ID of the message m and refers to the routing map in the storage unit 13 to determine the relay transmission destination communication line. Here, the second communication line 31B is the transmission destination.
Next, the transmission speed ratio R is obtained from the transmission speed of the first communication line 31A as the reception source and the transmission speed of the second communication line 31B as the transmission destination. The transmission rate ratio R may be stored in advance, or the transmission rate of each communication line may be stored and calculated every time the message m is received.

次に、該メッセージmのコントロールフィールド43を受信すると、コントロールフィールド43からデータフィールド44のデータ長であるバイト数を読み出す。
さらに、中継処理部11は記憶部13のテーブルTを参照して、データフィールド44のバイト数と伝送速度比Rから送信待ちビット数Xを読み出す。
次に、中継処理部11は、コントロールフィールド43の受信が完了した時点から第1通信線31Aから受信するメッセージmを送信待ちビット数X分数えた後、第2通信線31Bにメッセージmの中継を開始する。
Next, when the control field 43 of the message m is received, the number of bytes that is the data length of the data field 44 is read from the control field 43.
Further, the relay processing unit 11 refers to the table T in the storage unit 13 and reads the number X of transmission waiting bits from the number of bytes in the data field 44 and the transmission rate ratio R.
Next, the relay processing unit 11 counts the message m received from the first communication line 31A from the time when the reception of the control field 43 is completed, and then relays the message m to the second communication line 31B. To start.

本発明によれば、コントロールフィールド43の受信が完了した時点から、該送信待ち時間TCだけ遅らせてメッセージmの中継を開始することで、中継接続ユニット10が第1通信線31Aからメッセージmの受信を完了した時点t2では、第2通信線31Bへのメッセージmの送信は完了しないようにしている。このため、中継接続ユニット10は、第1通信線31Aから受信したメッセージmを、第1通信線31Aよりも伝送速度の速い第2通信線31Bにカットスルー方式で中継するときに、送信すべきデータが無い状態が発生することを防ぐことができる。   According to the present invention, the relay connection unit 10 receives the message m from the first communication line 31A by starting the relay of the message m with a delay by the transmission waiting time TC from the time when the reception of the control field 43 is completed. At the time t2 when the process is completed, the transmission of the message m to the second communication line 31B is not completed. For this reason, the relay connection unit 10 should transmit the message m received from the first communication line 31A when relaying the message m to the second communication line 31B having a higher transmission speed than the first communication line 31A by the cut-through method. It is possible to prevent a state where there is no data.

なお、テーブルTを記憶部13に記憶せず、送信待ちビット数Xを、データフィールド44のバイト数と伝送速度比Rからメッセージmの受信毎に演算して求めてもよい。
また、本実施形態では、第1通信線31Aのメッセージを送信待ちビット数X分数え、送信待ちビット数Xの経過時間TC後に第2通信線31Bにメッセージmの中継を開始させているが、第2通信線31Bの伝送速度を基準として送信待ちビット数Xの経過時間TCを演算してもよい。この場合、経過時間TCは、TC=8×n×S×Ta1bit−(19+8×n×S)×Tb1bitで求められる。ただし、Ta1bitは第1通信線31Aの伝送速度で1ビット送信する時間であり、Tb1bitは第2通信線31Bの伝送速度で1ビット送信する時間である。
Instead of storing the table T in the storage unit 13, the transmission waiting bit number X may be obtained by calculating each time the message m is received from the number of bytes in the data field 44 and the transmission rate ratio R.
Further, in the present embodiment, the message on the first communication line 31A is counted for the number X of transmission waiting bits, and relaying of the message m is started on the second communication line 31B after the elapsed time TC of the number of transmission waiting bits X. The elapsed time TC of the number X of transmission waiting bits may be calculated based on the transmission speed of the second communication line 31B. In this case, the elapsed time TC is obtained by TC = 8 × n × S × Ta1bit− (19 + 8 × n × S) × Tb1bit. However, Ta1bit is a time for transmitting 1 bit at the transmission speed of the first communication line 31A, and Tb1bit is a time for transmitting 1 bit at the transmission speed of the second communication line 31B.

さらに、記憶部13にテーブルTを持たず、中継処理部11はメッセージmを受信する毎に、データフィールド44を受信するために必要な時間TAとメッセージmの全ビット数を第2通信線31Bに送信するために必要な時間TBから送信待ち時間TCを求め、コントロールフィールド43の受信が完了した時点から、第1通信線31Aの伝送速度で送信待ちビット数X分の送信待ち時間TCが経過したのち、第2通信線31Bにメッセージmの中継を開始してもよい。   Further, the storage unit 13 does not have the table T, and every time the relay processing unit 11 receives the message m, the time TA required to receive the data field 44 and the total number of bits of the message m are set to the second communication line 31B. The transmission waiting time TC is obtained from the time TB required for transmission to the transmission field, and the transmission waiting time TC corresponding to the number X of transmission waiting bits at the transmission speed of the first communication line 31A has elapsed since the reception of the control field 43 is completed. After that, the relay of the message m may be started on the second communication line 31B.

図5は本発明の第2実施形態を示す。
中継接続ユニット10が送受信するメッセージmのフォーマットとして拡張フォーマットを用いており、第1実施形態とは異なっている。
メッセージmの拡張フォーマットは、図5に示すように、アービトレーションフィールド42は32ビット、コントロールフィールド43は6ビット、SOFフィールドは1ビットと定められている。
メッセージmの全ビット数は、SOFフィールド41、アービトレーションフィールド42、コントロールフィールド43、データフィールド44のビット数の和である。データフィールド44のデータ長は8×nビットであり、メッセージmの全ビット数は(39+8×n)ビットとなる。
FIG. 5 shows a second embodiment of the present invention.
The extended format is used as the format of the message m transmitted / received by the relay connection unit 10, which is different from the first embodiment.
As shown in FIG. 5, the extended format of the message m is defined as 32 bits for the arbitration field 42, 6 bits for the control field 43, and 1 bit for the SOF field.
The total number of bits of the message m is the sum of the number of bits of the SOF field 41, the arbitration field 42, the control field 43, and the data field 44. The data length of the data field 44 is 8 × n bits, and the total number of bits of the message m is (39 + 8 × n) bits.

従って、送信待ちビット数Xは、(データフィールド44のビット数−メッセージmの全ビット数/伝送速度比R)=(8×n×S)−(39+8×n×S)/Rで表され、中継接続ユニット10は、コントロールフィールド43の受信が完了した時点t1から、第1通信線31Aの伝送速度で送信待ちビット数Xが経過する時間である送信待ち時間TC後に第2通信線31Bにメッセージmの中継を開始する。
拡張フォーマットの場合に、伝送速度比Rとデータフィールド44のバイト数から送信待ちビット数Xを演算すると、図6に示すテーブルTとなる。
Therefore, the transmission waiting bit number X is represented by (number of bits of the data field 44−total number of bits of the message m / transmission rate ratio R) = (8 × n × S) − (39 + 8 × n × S) / R. The relay connection unit 10 transfers the second communication line 31B to the second communication line 31B after a transmission waiting time TC from the time t1 when the reception of the control field 43 is completed, which is the time when the transmission waiting bit number X elapses at the transmission speed of the first communication line 31A. Start relaying message m.
In the case of the extended format, when the transmission waiting bit number X is calculated from the transmission rate ratio R and the number of bytes in the data field 44, a table T shown in FIG.

このように、メッセージmが拡張フォーマットである場合であっても、送信待ち時間TCを求め、コントロールフィールド43の受信が完了した時点から、該送信待ち時間TCだけ遅らせてメッセージmの中継を開始することで、第1通信線31Aから受信したメッセージmを、第1通信線31Aよりも伝送速度の速い第2通信線31Bにカットスルー方式で中継するときに、送信すべきデータが無い状態が発生することを防ぐことができる。
なお、他の構成および作用効果は第1実施形態と同様のため、同一の符号を付して説明を省略する。
As described above, even when the message m is in the extended format, the transmission waiting time TC is obtained, and relaying of the message m is started after being delayed by the transmission waiting time TC from the time when reception of the control field 43 is completed. As a result, when the message m received from the first communication line 31A is relayed to the second communication line 31B having a higher transmission speed than the first communication line 31A by the cut-through method, there is a state where there is no data to be transmitted. Can be prevented.
In addition, since another structure and an effect are the same as that of 1st Embodiment, the same code | symbol is attached | subjected and description is abbreviate | omitted.

本発明である中継接続ユニットを接続した通信システムの構成図である。It is a block diagram of the communication system which connected the relay connection unit which is this invention. メッセージのフォーマットの説明図である。It is explanatory drawing of the format of a message. 送信待ち時間の説明図である。It is explanatory drawing of a transmission waiting time. 伝送速度比とデータフィールドのデータ長に対する送信待ちビット数を示した図である。It is the figure which showed the number of transmission waiting bits with respect to the transmission rate ratio and the data length of a data field. 第2実施形態のメッセージのフォーマットの説明図である。It is explanatory drawing of the format of the message of 2nd Embodiment. 伝送速度比とデータフィールドのデータ長に対する送信待ちビット数を示した図である。It is the figure which showed the number of transmission waiting bits with respect to the transmission rate ratio and the data length of a data field. カットスルー方式の説明図である。It is explanatory drawing of a cut-through system. 送信すべきデータがない状態を示す図である。It is a figure which shows the state with no data which should be transmitted.

符号の説明Explanation of symbols

10 中継接続ユニット
11 中継処理部
12 送受信部
13 記憶部
30 電子制御ユニット(ECU)
31A 第1通信線
31B 第2通信線
42 アービトレーションフィールド
43 コントロールフィールド
X 送信待ちビット数
TC 送信待ち時間
T テーブル
R 伝送速度比
m メッセージ
DESCRIPTION OF SYMBOLS 10 Relay connection unit 11 Relay processing part 12 Transmission / reception part 13 Storage part 30 Electronic control unit (ECU)
31A 1st communication line 31B 2nd communication line 42 Arbitration field 43 Control field X Transmission waiting bit number TC Transmission waiting time T Table R Transmission rate ratio m Message

Claims (4)

第1CAN通信線に接続された電子制御ユニットから受信したメッセージを、前記第1CAN通信線よりも伝送速度の速い第2CAN通信線に接続された電子制御ユニットにカットスルー方式で中継する車載用の中継接続ユニットであって、
前記中継接続ユニットは、
前記第1CAN通信線および第2CAN通信線と接続した送受信部と、
前記送受信部と接続した中継処理部を備え、
前記中継処理部は、
前記第1CAN通信線から受信したメッセージのコントロールフィールドの受信が完了した時点で、前記メッセージの残りのビット数の受信を完了するために必要な受信時間TAと、前記メッセージの全ビット数を前記第2CAN通信線に送信するために必要な送信時間TBを求め、前記受信時間TAから送信時間TBを減算して送信待ち時間TC(TC=TA−TB)を演算し、前記送信待ち時間TCが正の値の場合には、前記メッセージのコントロールフィールドの受信完了時から前記送信待ち時間の時間経過後に前記第2CAN通信線に該メッセージの中継を開始する中継処理を行う設定としていることを特徴とする車載用の中継接続ユニット。
In-vehicle relay that relays a message received from the electronic control unit connected to the first CAN communication line to the electronic control unit connected to the second CAN communication line having a higher transmission speed than the first CAN communication line by a cut-through method. A connection unit,
The relay connection unit is
A transmission / reception unit connected to the first CAN communication line and the second CAN communication line;
A relay processing unit connected to the transmission / reception unit;
The relay processing unit
When reception of the control field of the message received from the first CAN communication line is completed, the reception time TA required to complete reception of the remaining number of bits of the message and the total number of bits of the message The transmission time TB required for transmission to the 2CAN communication line is obtained, the transmission time TB is subtracted from the reception time TA to calculate the transmission waiting time TC (TC = TA−TB), and the transmission waiting time TC is correct. Is set to perform relay processing for starting relaying of the message to the second CAN communication line after elapse of the transmission waiting time from completion of reception of the control field of the message. In-vehicle relay connection unit.
送信待ち時間TCが負またはゼロの値の場合には、前記メッセージのコントロールフィールドの受信完了後、ただちに前記第2CAN通信線に該メッセージの中継を開始する請求項1に記載の車載用の中継接続ユニット。   2. The in-vehicle relay connection according to claim 1, wherein when the transmission waiting time TC is a negative or zero value, the relay of the message is started to the second CAN communication line immediately after the reception of the control field of the message is completed. unit. 前記コントロールフィールドに格納されたデータフィールドのデータ長と、前記第2CAN通信線と前記第1CAN通信線の伝送速度比(データフィールドのデータ長−メッセージの全ビット数/伝送速度比)から送信待ちビット数を求め、第1CAN通信線の伝送速度で送信待ちビット数の経過時間を前記送信待ち時間としている請求項1または請求項2に記載の車載用の中継接続ユニット。   Transmission waiting bit based on the data length of the data field stored in the control field and the transmission rate ratio between the second CAN communication line and the first CAN communication line (data length of the data field−total number of bits of message / transmission rate ratio) The in-vehicle relay connection unit according to claim 1 or 2, wherein the transmission waiting time is defined as an elapsed time of the number of bits waiting for transmission at the transmission speed of the first CAN communication line. 前記第1CAN通信線または第2CAN通信線の伝送速度は、125kbps、250kbps、500kbps、1Mbpsであり、前記伝送速度比は、2、4、8のいずれかである請求項1乃至請求項3のいずれか1項に記載の車載用の中継接続ユニット。   4. The transmission speed of the first CAN communication line or the second CAN communication line is 125 kbps, 250 kbps, 500 kbps, 1 Mbps, and the transmission speed ratio is 2, 4, or 8. 4. The in-vehicle relay connection unit according to claim 1.
JP2007323644A 2007-12-14 2007-12-14 In-vehicle relay connection unit Expired - Fee Related JP4999668B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007323644A JP4999668B2 (en) 2007-12-14 2007-12-14 In-vehicle relay connection unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007323644A JP4999668B2 (en) 2007-12-14 2007-12-14 In-vehicle relay connection unit

Publications (2)

Publication Number Publication Date
JP2009147722A true JP2009147722A (en) 2009-07-02
JP4999668B2 JP4999668B2 (en) 2012-08-15

Family

ID=40917810

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007323644A Expired - Fee Related JP4999668B2 (en) 2007-12-14 2007-12-14 In-vehicle relay connection unit

Country Status (1)

Country Link
JP (1) JP4999668B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002368786A (en) * 2001-06-07 2002-12-20 Matsushita Electric Ind Co Ltd Packet transfer method and packet transfer device
JP2003244180A (en) * 2002-02-21 2003-08-29 Denso Corp Data relaying apparatus and multiplex communication system
JP2004048350A (en) * 2002-07-11 2004-02-12 Denso Corp Data relay apparatus and multiplex communication system
JP2007235211A (en) * 2006-02-27 2007-09-13 Fujitsu Ltd Data transmitter-receiver, data transmission reception method, and data transmission reception program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002368786A (en) * 2001-06-07 2002-12-20 Matsushita Electric Ind Co Ltd Packet transfer method and packet transfer device
JP2003244180A (en) * 2002-02-21 2003-08-29 Denso Corp Data relaying apparatus and multiplex communication system
JP2004048350A (en) * 2002-07-11 2004-02-12 Denso Corp Data relay apparatus and multiplex communication system
JP2007235211A (en) * 2006-02-27 2007-09-13 Fujitsu Ltd Data transmitter-receiver, data transmission reception method, and data transmission reception program

Also Published As

Publication number Publication date
JP4999668B2 (en) 2012-08-15

Similar Documents

Publication Publication Date Title
US10153825B2 (en) Vehicle-mounted control device
JP6500123B2 (en) In-vehicle gateway device and in-vehicle network system
RU2596582C2 (en) Method and device for memory size adapted serial data transfer
CN103890747B (en) For the method and apparatus with the serial data transmission of message size and variable bit length flexibly
JP5434512B2 (en) In-vehicle communication system, gateway device
JP5050653B2 (en) Electronic control device
JP2007038904A (en) Car-mounted gateway device and message forwarding method used in gateway device
JP2009253557A (en) On-board relay connection unit
JP2007036907A (en) Gateway apparatus
WO2017026360A1 (en) Communications system
JP4917557B2 (en) In-vehicle relay connection unit
JP2006253922A (en) Gateway apparatus and data transfer method for the gateway apparatus
JP4999668B2 (en) In-vehicle relay connection unit
CN102100037A (en) Subscriber nodes of a communication system having a functionally separate transmission event memory
CN103827844B (en) For the method and apparatus with the serial data transmission of message size and variable bit length flexibly
EP3739820B1 (en) Establishing communication at optimized time instances
JP2009089286A (en) Relay connection unit
JP5182269B2 (en) Network system
KR101514398B1 (en) Gateway in-vehicle based on virtual bus concepet and message transmission method thereof
JP5019936B2 (en) In-vehicle relay connection unit
US11764998B2 (en) Frame transfer method and secure star coupler
JP2007135107A (en) Relay connection unit
JP4799351B2 (en) In-vehicle communication method, in-vehicle communication system, and relay device
JP2008172362A (en) In-vehicle communication system, relay device, and in-vehicle communication method
JP2004350055A (en) Data relaying apparatus and multiplex communication system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101006

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120402

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120508

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120515

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150525

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees