Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2947437B2 - Data transmission method - Google Patents
[go: Go Back, main page]

JP2947437B2 - Data transmission method - Google Patents

Data transmission method

Info

Publication number
JP2947437B2
JP2947437B2 JP5048560A JP4856093A JP2947437B2 JP 2947437 B2 JP2947437 B2 JP 2947437B2 JP 5048560 A JP5048560 A JP 5048560A JP 4856093 A JP4856093 A JP 4856093A JP 2947437 B2 JP2947437 B2 JP 2947437B2
Authority
JP
Japan
Prior art keywords
data
message
acknowledgment
transmission
transmission right
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.)
Expired - Fee Related
Application number
JP5048560A
Other languages
Japanese (ja)
Other versions
JPH06245263A (en
Inventor
寛 橋本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honda Motor Co Ltd
Original Assignee
Honda Motor Co 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
Priority to JP5048560A priority Critical patent/JP2947437B2/en
Application filed by Honda Motor Co Ltd filed Critical Honda Motor Co Ltd
Priority to CA002363980A priority patent/CA2363980C/en
Priority to EP00105838A priority patent/EP1022877B1/en
Priority to CA002226421A priority patent/CA2226421C/en
Priority to EP00105840A priority patent/EP1022879B1/en
Priority to EP00105839A priority patent/EP1022878B1/en
Priority to DE69433098T priority patent/DE69433098T2/en
Priority to CA002226477A priority patent/CA2226477C/en
Priority to EP94102290A priority patent/EP0612169B1/en
Priority to DE69433882T priority patent/DE69433882T2/en
Priority to CA002115730A priority patent/CA2115730C/en
Priority to DE69428930T priority patent/DE69428930T2/en
Priority to DE69433866T priority patent/DE69433866T2/en
Publication of JPH06245263A publication Critical patent/JPH06245263A/en
Priority to US08/455,247 priority patent/US5586118A/en
Priority to US08/454,752 priority patent/US5696904A/en
Priority to US08/455,512 priority patent/US5764919A/en
Priority to US08/527,953 priority patent/US5659702A/en
Application granted granted Critical
Publication of JP2947437B2 publication Critical patent/JP2947437B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、自動車等の車両に搭載
される複数の電子制御装置を相互に接続する共通の通信
線を介してメッセージの送受信を行うデータ伝送方法に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transmission method for transmitting and receiving messages via a common communication line interconnecting a plurality of electronic control units mounted on a vehicle such as an automobile.

【0002】[0002]

【従来の技術】複数の電子制御装置(以下「ECU」と
いう)を共通の通信線(以下「ネットワークバス」とい
う)で接続し、相互にデータの伝送を行う場合、各EC
U間に所定の順序で送信権を循環させ、送信権を得たE
CUのみがネットワークバスにデータを送出可能とする
方式(トークンパッシング方式)が従来より知られてい
る。
2. Description of the Related Art When a plurality of electronic control units (hereinafter, referred to as "ECUs") are connected by a common communication line (hereinafter, referred to as a "network bus") and data are mutually transmitted, each of the ECs is required.
The transmission right is circulated between U in a predetermined order, and the transmission right is obtained.
A method (token passing method) that allows only a CU to send data to a network bus has been conventionally known.

【0003】このようなトークンパッシング方式のデー
タ伝送システムにおいて、送信権委譲のためのメッセー
ジにブロードキャストデータを付加して送出する方式が
知られている(特公平1−58900号公報)。
[0003] In such a data transmission system of the token passing system, there is known a system for adding broadcast data to a message for transmission right transmission and transmitting the message (Japanese Patent Publication No. 1-58900).

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記従
来の方式では、送信権の委譲及びデータの送信のそれぞ
れが正確に行われたか否かを、送信側で直ちに確認でき
るようなメッセージ構成が採用されていないため、送信
処理を迅速に行う上で改善の余地が残されていた。
However, in the above-mentioned conventional system, a message structure is adopted which allows the transmission side to immediately confirm whether the transfer of the transmission right and the transmission of the data have been correctly performed. Therefore, there is still room for improvement in promptly performing the transmission process.

【0005】本発明はこの点を考慮してなされたもので
あり、送信権の委譲及びデータの送信のそれぞれについ
てその成否を迅速に確認でき、送信権の循環を円滑に行
うことができるようにしたデータ伝送方法を提供するこ
とを目的とする。
The present invention has been made in view of this point, so that the success or failure of transmission right transfer and data transmission can be quickly confirmed, and the transmission right can be smoothly circulated. It is an object of the present invention to provide a data transmission method.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
本発明は、車両に搭載され、少なくとも1本の共通の信
号線により接続された複数の制御装置間を送信権を循環
させてメッセージの送受信を行うデータ伝送方法におい
て、前記メッセージは送信権を受領した制御装置が該送
信権の受領を示す第1の肯定応答を書き込む第1の応答
フィールドと、データを受信した制御装置が該データの
受信成功を示す第2の肯定応答を書き込む第2の応答フ
ィールドとを有し、前記第1及び第2の応答フィールド
の内容に応じて、次回送信権を得るまでの待機又は継続
した送信権の委譲処理である、前記第1の肯定応答に対
応する処理を、データの再送信を行う処理である、前記
第2の肯定応答がないときの処理に優先させて実行する
ようにしたものである。
SUMMARY OF THE INVENTION In order to achieve the above object, the present invention circulates a transmission right between a plurality of control devices mounted on a vehicle and connected by at least one common signal line to transmit a message. In the data transmission method for transmitting and receiving, the message includes a first response field in which the control device that has received the transmission right writes a first acknowledgment indicating the reception of the transmission right; A second acknowledgment field for writing a second acknowledgment indicating successful reception, and waiting or continuing until the next transmission right is obtained according to the contents of the first and second acknowledgment fields.
In response to the first acknowledgment,
The corresponding process is a process of retransmitting data,
The processing is executed prior to the processing when there is no second acknowledgment .

【0007】[0007]

【0008】[0008]

【0009】さらに本発明は、車両に搭載され、少なく
とも1本の共通の信号線により接続された複数の制御装
置間を送信権を循環させてメッセージの送受信を行うデ
ータ伝送方法において、前記メッセージは、送信権を受
領した制御装置が出力する第1の肯定応答を書き込む
1の応答フィールドを有する送信権委譲のための第1の
メッセージと、前記第1の応答フィールド及びデータを
受信した制御装置が出力する第2の肯定応答を書き込む
第2の応答フィールドを有する、送信権委譲及びデータ
の伝送を行う為の第2のメッセージとから成り、前記制
御装置のそれぞれは、前記第2のメッセージを送出して
前記第1の肯定応答が得られたときは、前記第2の肯定
応答の有無に拘らず前記送信権の委譲が完了したと判断
して次回送信権を得るまで送信を行わず、前記第1の肯
定応答が得られなかったときは、前記送信権の委譲処理
を継続するために前記第1のメッセージを送出するよう
にしたものである。
Further, the present invention relates to a data transmission method for transmitting / receiving a message by circulating a transmission right between a plurality of control devices mounted on a vehicle and connected by at least one common signal line, wherein the message is A first message for transmission right transfer having a first response field for writing a first acknowledgment output by the control device having received the transmission right, and a control device receiving the first response field and the data There has a <br/> second response field which second writing an acknowledgment to be output consists of a second message for performing transmission of the transmission right transfer and data, each of said control device, said first When the first acknowledgment is obtained by sending the message No. 2, it is determined that the transfer of the transmission right has been completed regardless of the presence or absence of the second acknowledgment, and the next transmission is performed. It does not transmit until a, when said first acknowledgment has not been obtained, is obtained so as to send the first message to continue delegating processing of the transmission right.

【0010】[0010]

【作用】請求項1の方法によれば、送信権を受領した制
御装置により該送信権の受領を示す第1の肯定応答が第
1の応答フィールドに書き込まれ、データを受信した制
御装置により該データの受信成功を示す第2の肯定応答
が第2の応答フィールドに書き込まれ、前記第1及び第
2の応答フィールドの内容に応じて前記制御装置間での
送信権の委譲及びデータの再送信が行われる。すなわ
ち、前記第1の肯定応答に対応する処理を、前記第2の
肯定応答がないときの処理に優先させて実行する。な
お、前記第1の肯定応答に対応する処理は、次回送信権
を得るまでの待機又は継続した送信権の委譲処理であ
り、前記第2の肯定応答がないときの処理は、データの
再送信を行う処理である。
According to the method of the first aspect, a first acknowledgment indicating the reception of the transmission right is written in the first response field by the control device that has received the transmission right, and the control device that has received the data writes the first acknowledgment in the first response field. A second acknowledgment indicating successful data reception is written in a second response field, and the transfer of the transmission right between the control devices and the retransmission of data are performed according to the contents of the first and second response fields. Is performed. Sand
That is, the processing corresponding to the first acknowledgment is performed by the second
The process is executed prior to the process when there is no positive response. What
The processing corresponding to the first acknowledgment is the next transmission right.
In the waiting or continuous delegation of transmission rights
The processing when there is no second acknowledgment is
This is the process of performing retransmission.

【0011】[0011]

【0012】請求項4の方法によれば、第1の応答フィ
ールドを有する、送信権委譲のための第1のメッセージ
と、第1及び第2の応答フィールドを有する、送信権委
譲及びデータの伝送を行うための第2のメッセージとが
使用され、一の制御装置が第2のメッセージを送出して
第1の肯定応答が得られたときは、該一の制御装置は、
第2の肯定応答の有無に拘らず次回送信権を得るまで送
信は行わない。また、一の制御装置が第2のメッセージ
を送出して第1の肯定応答が得られなかったときには、
該一の制御装置は送信権委譲処理を継続するために第1
のメッセージを送出する。
According to the method of claim 4, a first message for delegation of transmission having a first response field and a delegation of transmission and transmission of data having first and second response fields. And a second message is sent by the first controller to send a second message to obtain a first acknowledgment.
Regardless of the presence or absence of the second acknowledgment, transmission is not performed until the next transmission right is obtained. Also, when one controller sends out the second message and fails to obtain the first acknowledgment,
The one control device performs a first operation to continue the transmission right transfer process.
Is sent out.

【0013】[0013]

【実施例】以下、本発明の実施例を図面を参照して説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

【0014】図1は本発明の一実施例に係る車両用制御
システムの全体構成図であり、電子制御装置(以下「E
CU」という)1〜5はネットワークバス6を介して相
互に接続されている。ENG制御ECU1は、車両の運
転者のアクセルペダル操作等に応じてエンジンの作動を
制御するECU,MISS制御ECU2は車両の運転状
態に応じて自動変速機の制御を行うECU,TCS制御
ECU3は、車両の駆動輪のスリップ状態を検出し、エ
ンジンの出力トルクの制御を行うECU,サスペンショ
ン制御ECU4は、車両の運転状態に応じてサスペンシ
ョン(アクティブ サスペンション)の制御を行うEC
U,ブレーキ制御ECU5は車輪のロック状態を検出し
てブレーキ制御を行うECUである。これらのECU1
〜5は、制御パラメータやセンサによって検出される運
転パラメータを相互にモニタする必要があるため、ネッ
トワークバス6を介して接続され、相互に必要なデータ
の送受信を行う。
FIG. 1 is an overall configuration diagram of a vehicle control system according to an embodiment of the present invention.
1 to 5 are mutually connected via a network bus 6. The ENG control ECU 1 controls the operation of the engine according to the accelerator pedal operation of the driver of the vehicle. The MISS control ECU 2 controls the automatic transmission according to the driving state of the vehicle. The TCS control ECU 3 controls the automatic transmission. An ECU that detects the slip state of the driving wheels of the vehicle and controls the output torque of the engine, and a suspension control ECU 4 controls the suspension (active suspension) according to the driving state of the vehicle.
U, the brake control ECU 5 is an ECU that detects the locked state of the wheels and performs brake control. These ECUs 1
5 to 5 need to mutually monitor control parameters and operating parameters detected by sensors, and are connected via a network bus 6 to mutually transmit and receive necessary data.

【0015】図2はENG制御ECU1の構成を示すブ
ロック図であり、中央処理装置(以下「CPU」とい
う)101は入出力インターフェイス104を介して複
数のセンサ11及び燃料噴射弁等のアクチュエータ12
に接続されている。CPU101は、バスライン107
を介してRAM(Random Access Memory)102、RO
M(Read Only Memory)103及び通信制御IC(Inte
grated Circuit)105に接続されている。通信制御I
C105はバスインターフェイス106を介してネット
ワークバス6に接続されている。
FIG. 2 is a block diagram showing the configuration of the ENG control ECU 1. A central processing unit (hereinafter referred to as "CPU") 101 includes a plurality of sensors 11 and actuators 12 such as fuel injection valves via an input / output interface 104.
It is connected to the. The CPU 101 has a bus line 107
(Random Access Memory) 102 via the
M (Read Only Memory) 103 and a communication control IC (Inte
grated Circuit) 105. Communication control I
C105 is connected to the network bus 6 via the bus interface 106.

【0016】CPU101は、ROM103に格納され
たプログラムに従って、センサ11の検出値に基づいて
制御パラメータを決定し、アクチュエータ12を駆動す
る。RAM102は、演算中のデータの一時的な記憶等
に使用される。また通信制御ICは、ネットワークバス
へのメッセージの送信及びネットワークバスからのメッ
セージの受信の制御を行う。
The CPU 101 determines a control parameter based on the value detected by the sensor 11 according to a program stored in the ROM 103, and drives the actuator 12. The RAM 102 is used for, for example, temporarily storing data being calculated. The communication control IC controls transmission of a message to the network bus and reception of a message from the network bus.

【0017】図3は、バスインターフェイス106及び
ネットワークバス6の具体的な構成を示す図であり、ネ
ットワークバス6は終端抵抗6aで終端されたツイスト
ペア線6b,6cから成る。
FIG. 3 is a diagram showing a specific configuration of the bus interface 106 and the network bus 6. The network bus 6 includes twisted pair wires 6b and 6c terminated by a terminating resistor 6a.

【0018】通信制御IC105の第1送信端子は抵抗
115を介してトランジスタ119のベースに接続され
ている。トランジスタ119のエミッタは電源ラインV
SUPに接続され、コレクタは抵抗116を介してコン
パレータ111の反転入力及び一方のツイストペア線6
bに接続されている。
The first transmission terminal of the communication control IC 105 is connected to the base of the transistor 119 via the resistor 115. The emitter of the transistor 119 is connected to the power line V
SUP, and the collector is connected via the resistor 116 to the inverting input of the comparator 111 and one of the twisted pair lines 6.
b.

【0019】通信制御IC105の第2送信端子は抵抗
117を介してトランジスタ120のベースに接続され
ている。トランジスタ120のエミッタはアースに接続
され、コレクタは抵抗118を介してコンパレータ11
1の非反転入力及び他方のツイストペア線6cに接続さ
れている。
The second transmission terminal of the communication control IC 105 is connected to the base of the transistor 120 via the resistor 117. The emitter of the transistor 120 is connected to the ground, and the collector is connected via a resistor 118 to the comparator 11.
One non-inverting input and the other twisted pair line 6c.

【0020】コンパレータ111の非反転入力は抵抗1
12を介して電源ラインVSUPに接続されるととも
に、抵抗113を介してコンパレータ111の反転入力
にも接続されている。コンパレータ111の反転入力は
抵抗114を介してアースに接続され、コンパレータ1
11の出力は通信制御IC105の受信端子に接続され
ている。
The non-inverting input of the comparator 111 is a resistor 1
The power supply line VSUP is connected to the power supply line VSUP via the reference numeral 12 and also connected to the inverting input of the comparator 111 via the resistor 113. The inverting input of the comparator 111 is connected to ground via a resistor 114, and the comparator 1
The output of 11 is connected to the receiving terminal of the communication control IC 105.

【0021】図3の回路において、抵抗116及び11
8は30Ω程度、抵抗112及び114は2kΩ程度、
抵抗113は200Ω程度、終端抵抗6aは100Ω程
度である。
In the circuit of FIG. 3, resistors 116 and 11
8 is about 30Ω, resistors 112 and 114 are about 2 kΩ,
The resistance 113 is about 200Ω, and the termination resistance 6a is about 100Ω.

【0022】通信制御ICの第1及び第2送信端子に
は、位相が互いに逆相のパルス信号を出力され、第1送
信端子が低レベル(ロー)で第2送信端子が高レベル
(ハイ)のとき、トランジスタ119及び120がとも
にオンし、一方のツイストペア線6bがハイ、他方のツ
イストペア線6cがローとなる。第1送信端子がハイで
第2送信端子がローのときには、トランジスタ119及
び120がともにオフし、一方のツイストペア線6bが
ロー、他方のツイストペア線6cがハイとなる。このよ
うにして、ネットワークバス6上に信号が送出される。
Pulse signals having phases opposite to each other are output to the first and second transmission terminals of the communication control IC. The first transmission terminal is at a low level (low) and the second transmission terminal is at a high level (high). At this time, both the transistors 119 and 120 are turned on, one twisted pair line 6b is high, and the other twisted pair line 6c is low. When the first transmission terminal is high and the second transmission terminal is low, the transistors 119 and 120 are both turned off, and one twisted pair line 6b is low and the other twisted pair line 6c is high. In this way, a signal is transmitted on the network bus 6.

【0023】一方のツイストペア線6bのハイ/ローに
対応して、コンパレータ111の出力はロー/ハイに変
化し、ネットワークバス6上の信号が受信される。
The output of the comparator 111 changes to low / high in response to high / low of one twisted pair line 6b, and a signal on the network bus 6 is received.

【0024】ECU2〜5も基本的にはECU1と同様
に構成されている。したがって、一のECUが一方のツ
イストペア線6bがローとなる(6cがハイとなる)信
号を送出しても、他のECUがハイとなる信号を送出す
ると、ツイストペア線6b上の信号はハイとなるので、
本実施例ではツイストペア線6bがハイとなる(6cが
ローとなる)状態がドミナント(優位)であり、逆の状
態がレセシブ(劣位)である。
The ECUs 2 to 5 are basically configured similarly to the ECU 1. Therefore, if one ECU sends out a signal in which one twisted pair line 6b goes low (6c goes high), and the other ECU sends out a signal going high, the signal on the twisted pair line 6b goes high. Because
In this embodiment, the state in which the twisted pair line 6b is high (6c is low) is dominant (dominant), and the opposite state is recessive (inferior).

【0025】次に、各ECU間のデータ伝送の方式につ
いて説明する。本実施例ではトークンパッシング方式を
採用している。この方式は調停可能なCSMA/CD
(Carrier Sense Multiple Access/Collision Detecti
on)方式に比べ、バス上における電気的な遅延に対して
有利であり、また最大のメッセージ遅延時間が簡単に求
められるため、ネットワークシステムの設計が容易であ
る点を考慮したものである。
Next, a method of data transmission between the ECUs will be described. In this embodiment, a token passing method is adopted. This method is arbitrated CSMA / CD
(Carrier Sense Multiple Access / Collision Detecti
This method is advantageous in that it is advantageous in terms of electrical delay on the bus as compared with the (on) method, and that the maximum message delay time is easily obtained, thereby facilitating the design of a network system.

【0026】図4は、本実施例においてデータ伝送に使
用されるメッセージのフォーマットを示す図であり、同
図(a)はトークン及びデータを送信するためのデータ
メッセージ(第2のメッセージ)のフォーマットを示
し、同図(b)はトークンのみを送信するためのトーク
ンメッセージ(第1のメッセージ)のフォーマットを示
す。なお、以下の説明においては、ネットワークシステ
ムを構成するECU1〜5をノードと呼ぶ。
FIG. 4 is a diagram showing the format of a message used for data transmission in this embodiment. FIG. 4A shows the format of a data message (second message) for transmitting a token and data. FIG. 2B shows the format of a token message (first message) for transmitting only the token. In the following description, the ECUs 1 to 5 that constitute the network system are called nodes.

【0027】図4(a)において、フィールドF1(S
OM)はメッセージの開始を示すフィールドであり、1
ビットのドミナントビットから成る。ネットワークシス
テムを構成する全てのノードが同期をとるために使用さ
れる。
In FIG. 4A, the field F1 (S
OM) is a field indicating the start of the message,
The bits consist of dominant bits. All nodes constituting the network system are used for synchronization.

【0028】フィールドF2(TA)は、トークンの宛
先のノードのアドレス(トークンアドレス)を示す4ビ
ットのフィールドである。ノードアドレスは、例えばE
CU1〜5に対応して値0〜4が設定される。
The field F2 (TA) is a 4-bit field indicating the address (token address) of the token destination node. The node address is, for example, E
Values 0 to 4 are set corresponding to CUs 1 to 5, respectively.

【0029】フィールドF3(CTL)は、メッセージ
の種類(トークンメッセージ又はデータメッセージ)を
示すフィールドである。
Field F3 (CTL) is a field indicating the type of message (token message or data message).

【0030】フィールドF4(DATA UNIT)は
データユニットであり、DATAフィールドのデータを
受信すべきノードのアドレスを示すDN(Destination
Node)フィールド、DATAフィールドのバイト長を表
わすDLC(Data Length)フィールド、データの識別
子を構成するID(Identifier)フィールド及び伝送す
べき情報を有するDATAフィールドから成る。
A field F4 (DATA UNIT) is a data unit, and is a DN (Destination) indicating an address of a node to receive data of the DATA field.
It comprises a Node field, a DLC (Data Length) field indicating the byte length of the DATA field, an ID (Identifier) field constituting a data identifier, and a DATA field having information to be transmitted.

【0031】フィールドF5(FCS)は、次式(1)
を生成多項式として用いることにより得られる16ビッ
トの誤り検出用文字列(CRC文字列)から成るCRC
(Cyclic Redundancy Check)フィールドである。フィ
ールドF5とF6との間には1ビットのレセシブビット
のデリミッタ(区切り文字)が挿入されている。
The field F5 (FCS) is given by the following equation (1)
Consisting of a 16-bit error detection character string (CRC character string) obtained by using
(Cyclic Redundancy Check) field. A 1-bit recessive bit delimiter (separator) is inserted between the fields F5 and F6.

【0032】 生成多項式=X16+X12+X5+1 …(1) フィールドF6(DACK)は、データを正常に受信し
たノードが受信確認応答(第2の肯定応答)するための
フィールド(第2の応答フィールド)であり、2ビット
のアクノリッジスロットから成る。送信ノードはアクノ
リッジスロットをレセシブビットとして送信し、受信す
べきノードとして指定され、正常にデータを受信したノ
ードの全ては、2ビットのドミナントビットを上書きす
ることにより、受信確認応答を行う。フィールドF6と
F7との間には2ビットのレセシブビットのデリミッタ
が挿入されている。
Generator polynomial = X 16 + X 12 + X 5 +1 (1) Field F6 (DACK) is a field (second acknowledgment) for a node that has normally received data to make a reception acknowledgment (second acknowledgment). Response field), which consists of a 2-bit acknowledge slot. The transmitting node transmits the acknowledgment slot as a recessive bit, is designated as a node to receive, and all the nodes that have normally received data perform a reception acknowledgment by overwriting the two dominant bits. A two-bit recessive bit delimiter is inserted between the fields F6 and F7.

【0033】フィールドF7(TACK)は、トークン
を正常に受信したノードが受信確認応答(第1の肯定応
答)するためのフィールド(第1の応答フィールド)で
あり、フィールドF6と同様に2ビットのアクノリッジ
スロットから成る。送信ノードは、アクノリッジスロッ
トをレセシブビットとして送信し、トークンを受信した
ノードは、2ビットのドミナントビットを上書きするこ
とにより、受信確認応答を行う。フィールドF7とF8
との間には2ビットのレセシブビットのデリミッタが挿
入されている。
A field F7 (TACK) is a field (first response field) for a node that has normally received the token to make a reception acknowledgment (first acknowledgment), and is a 2-bit field like the field F6. Consists of an acknowledgment slot. The transmitting node transmits the acknowledgment slot as a recessive bit, and the node that has received the token performs a reception acknowledgment by overwriting the two dominant bits. Fields F7 and F8
Between them, a two-bit recessive bit delimiter is inserted.

【0034】フィールドF8(EOM)は、メッセージ
の終了を示すフィールドであり、6ビットのレセシブビ
ットから成る。
The field F8 (EOM) is a field indicating the end of the message, and is composed of 6 recessive bits.

【0035】このように受信確認のためのフィールドと
して、トークン用のフィールドF7とデータ用のフィー
ルドF6を設けることにより、トークンの委譲及びデー
タの送信のそれぞれについてその成否を迅速に確認する
ことが可能となる。
By providing the field F7 for the token and the field F6 for the data as fields for confirming reception, it is possible to quickly confirm the success or failure of each of the transfer of the token and the transmission of the data. Becomes

【0036】図4(b)に示すトークンメッセージは、
データメッセージのフィールドF4〜F6を削除し、フ
ィールドF3とF7との間にデリミッタを挿入した構成
としている。
The token message shown in FIG.
The configuration is such that fields F4 to F6 of the data message are deleted, and a delimiter is inserted between fields F3 and F7.

【0037】次にトークンの循環方法について説明す
る。
Next, a token circulation method will be described.

【0038】トークンを獲得したノードは、送信データ
を有する場合には送信データと共に、また送信データが
ない場合にはトークンのみを、次ノードに委譲しなけれ
ばならない。トークンの委譲を受けるノードは、メッセ
ージのフィールドF2(TA)に示されたトークンアド
レスに対応するノードである。トークンアドレスは通
常、自ノードのアドレスに値1を加算したアドレスを最
初に設定し、アクノリッジ応答が得られるまで、トーク
ンアドレスを増してメッセージの送信を行う。ただし、
本実施例では自ノードのアドレスが値15のときには、
トークンアドレスは0とする。
The node that has acquired the token must transfer the token together with the transmission data if it has transmission data, or only the token if there is no transmission data, to the next node. The node to which the token is transferred is the node corresponding to the token address indicated in the field F2 (TA) of the message. Normally, the token address is initially set to an address obtained by adding the value 1 to the address of the own node, and the message is transmitted by increasing the token address until an acknowledgment response is obtained. However,
In this embodiment, when the address of the own node is the value 15,
The token address is 0.

【0039】トークンアドレスに対応するノードは、ト
ークンを受け取ると、フィールドF7(TACK)のア
クノリッジスロットに2ビットのドミナントビットを上
書きすることにより、確認応答する。確認応答が上書き
され、そのメッセージが正常にフィールドF8(EO
M)まで終了した時点でトークンを送出したノードはト
ークン委譲を完了し、受信したノードがトークンを獲得
する。
When the node corresponding to the token address receives the token, it responds with an acknowledgment by overwriting the acknowledge slot in field F7 (TACK) with two dominant bits. The acknowledgment is overwritten and the message is successfully returned in field F8 (EO
At the point of time up to M), the node that sent the token completes the token transfer, and the receiving node acquires the token.

【0040】次に1つのノードがデータメッセージを送
出して確認応答がなかった場合の処理について説明す
る。なお、以下の説明では、フィールドF7に上書きさ
れる第1の肯定応答をトークンACK,フィールドF6
に上書きされる第2の肯定応答をデータACKという。
Next, the processing when one node sends a data message and there is no acknowledgment will be described. In the following description, the first acknowledgment overwritten in the field F7 is the token ACK, the field F6.
Is referred to as data ACK.

【0041】(1)トークンACKがなく、データAC
Kがあった場合 トークンアドレスを値1だけインクリメントして、トー
クンメッセージを送出する。フィールドF4のデータに
ついては受信確認が得られたので、トークンのみを前回
失敗したノードの次のノードへ委譲するためである。
(1) There is no token ACK and the data AC
If K is found The token address is incremented by 1 and a token message is sent. This is for transferring the token only to the next node after the previous failed node because the reception confirmation was obtained for the data in the field F4.

【0042】(2)トークンACKがあり、データAC
Kがなかった場合 トークンの委譲は完了したので、データの再送信は行わ
ない。次回トークン獲得時に可能であればデータの再送
信を行う。
(2) There is a token ACK and the data AC
When there is no K Since the transfer of the token has been completed, the data is not retransmitted. If possible at the next token acquisition, retransmit the data.

【0043】(3)トークンACK及びデータACKと
もになかった場合 トークンアドレスを値1だけインクリメントして、トー
クンメッセージを送出し、データの再送信は行わない。
これにより、データの伝送よりトークンの循環が優先さ
れ、トークンの循環をより円滑に行うことができる。な
お、次回トークン獲得時に可能であればデータの再送信
を行う。
(3) When neither the token ACK nor the data ACK is present The token address is incremented by 1, the token message is transmitted, and the data is not retransmitted.
Thereby, the circulation of the token is prioritized over the transmission of the data, and the circulation of the token can be performed more smoothly. If possible at the next token acquisition, the data is retransmitted.

【0044】以上のように、データACKがなくてもト
ークンACKがあれば、トークン委譲完了とし、データ
の再送信は行わないようにし、またデータACK及びト
ークンACKがともにない場合はトークンの委譲処理の
み行い、データの再送信は行わないようにしたので、ト
ークンの循環を円滑に行うことができる。このようにト
ークンの委譲を優先させるのは、1つのノードがデータ
の再送信を繰り返す場合には、トークンの委譲を優先さ
せた場合と比べ、システムの最大遅延時間が大きくなっ
てしまうからである。
As described above, if there is a token ACK even if there is no data ACK, it is determined that token transfer has been completed, data retransmission is not performed, and if there is no data ACK and token ACK, token transfer processing Since only the retransmission is performed and the data is not retransmitted, the token can be smoothly circulated. The reason why the transfer of the token is prioritized is that when one node repeats retransmission of data, the maximum delay time of the system becomes longer than when the transfer of the token is prioritized. .

【0045】なお上述した実施例では、トークンACK
及びデータACKがともになかった場合には、直ちにト
ークンメッセージを送出し、データの再送信は行わない
ようにしたが、これに限るものではなく、例えば1〜2
回程度データの再送信を行った後にトークンの委譲処理
を行うようにしてもよい。図5は、この場合の通信制御
IC105による送信終了時(エラーメッセージの発生
による終了時又はメッセージ送出完了時)の制御手順を
示すフローチャートである。
In the above-described embodiment, the token ACK
If the data ACK and the data ACK do not exist, the token message is immediately transmitted and the data is not retransmitted. However, the present invention is not limited to this.
The token transfer process may be performed after retransmitting the data about twice. FIG. 5 is a flowchart showing a control procedure of the communication control IC 105 in this case when transmission is completed (when an error message is generated or when message transmission is completed).

【0046】なお、以下の説明における伝送途中のエラ
ーは、送信側ノード又は受信側ノードで検出され、検出
された時点でエラーメッセージが検出したノードから送
出されて、送信が終了する。
In the following description, an error during transmission is detected by the transmitting node or the receiving node, and when detected, the error message is transmitted from the node where the error message is detected, and the transmission ends.

【0047】図5のステップS1では伝送途中にエラー
が発生したか否かを判別し、発生していないときはトー
クンの委譲が完了したか否か(TACKがあったか否
か)を判別する(ステップS2)。その結果、トークン
の委譲が完了したときには後述する第1及び第2のカウ
ンタCT1,CT2をリセットして(ステップS1
0)、本処理を終了する。伝送途中でエラーが発生しな
かったが、トークンの委譲が完了しなかったときにはス
テップS3に進み、データの送信が成功したか否か(D
ACKがあったか否か)を判別する。その結果、データ
の送信が成功したときには、トークンの委譲処理を行い
(ステップS9)、第1及び第2のカウンタCT1,C
T2をリセットして(ステップS10)、本処理を終了
する。
In step S1 of FIG. 5, it is determined whether or not an error has occurred during transmission, and if not, it is determined whether or not token transfer has been completed (whether or not a TACK has occurred) (step S1). S2). As a result, when the transfer of the token is completed, the first and second counters CT1 and CT2 described later are reset (step S1).
0), this process ends. If no error has occurred during transmission, but the transfer of the token has not been completed, the process proceeds to step S3 to determine whether the data transmission was successful (D
ACK is detected). As a result, when the data transmission is successful, a token transfer process is performed (step S9), and the first and second counters CT1, C1
T2 is reset (step S10), and this processing ends.

【0048】ステップS3の答が否定(NO)、即ち伝
送途中でエラーが発生しなかったがトークンの委譲及び
データの送信に失敗したとき(確認応答TACK,DA
CKともになしのとき)にはステップS4に進み、第1
のカウンタCT1を値1だけインクリメントし、そのカ
ウント値が第1の所定値C1(例えば2)に等しいか否
かを判別する(ステップS5)。最初はCT1<C1で
あるので、送信に失敗したメッセージの再送信処理を行
い(ステップS8)、本処理を終了する。その後も確認
応答がなく、CT1=C1となるとステップS5からス
テップS9に進み、トークンを他のノードに委譲してカ
ウンタCT1,CT2をリセットし(ステップS1
0)、本処理を終了する。
If the answer to step S3 is negative (NO), that is, if no error occurred during transmission, but token transfer and data transmission failed (acknowledgement response TACK, DA
If there is no CK), the process proceeds to step S4, and the first
Is incremented by one, and it is determined whether or not the count value is equal to a first predetermined value C1 (for example, 2) (step S5). At first, since CT1 <C1, retransmission processing of the message for which transmission failed is performed (step S8), and this processing ends. After that, there is no confirmation response, and when CT1 = C1, the process proceeds from step S5 to step S9, where the token is transferred to another node to reset the counters CT1 and CT2 (step S1).
0), this process ends.

【0049】ステップS1の答が肯定(YES)、即ち
伝送中にエラーが発生した場合には、第2のカウンタC
T2を値1だけインクリメントし(ステップS6)、そ
のカウント値が第1の所定値C1より大きい第2の所定
値C2(例えば5)に等しいか否かを判別する(ステッ
プS7)。最初はCT2<C2であるので送信に失敗し
たメッセージの再送信処理を行い(ステップS8)、本
処理を終了する。その後も伝送途中のエラーが発生し、
CT2=C2となると前記ステップS9,S10を実行
して本処理を終了する。
If the answer to step S1 is affirmative (YES), that is, if an error has occurred during transmission, the second counter C
T2 is incremented by 1 (step S6), and it is determined whether or not the count value is equal to a second predetermined value C2 (for example, 5) larger than the first predetermined value C1 (step S7). At first, since CT2 <C2, retransmission processing of a message that failed to be transmitted is performed (step S8), and this processing ends. After that, an error occurred during transmission,
When CT2 = C2, steps S9 and S10 are executed, and the process ends.

【0050】図5の処理によれば、送信に失敗した場合
は確認応答なしのときには最大で(C1−1)回だけ再
送信が行われ、伝送途中のエラーのときには最大で(C
2−1)回だけ再送信が行われ、それでも送信に失敗し
たときにはトークンが他のノードに委譲される。
According to the processing shown in FIG. 5, if transmission fails, retransmission is performed at most (C1-1) times when there is no acknowledgment, and at most (C1-1) when an error occurs during transmission.
2-1) The retransmission is performed only once, and if the transmission still fails, the token is transferred to another node.

【0051】ここで、C2>C1としているので、伝送
途中のエラーのときの方が確認応答なしのときより最大
の再送信回数は多くなる。これは、確認応答がない場合
は、受信すべきノードが存在しない可能性が高く、再送
信してもまた失敗する可能性が高いのに対し、伝送途中
のエラーの場合は、外部環境等の変化により再送信で成
功する可能性が高いことを考慮したからである。
Here, since C2> C1, the maximum number of retransmissions is larger in the case of an error during transmission than in the case of no acknowledgment. This is because if there is no acknowledgment, there is a high possibility that the node to be received does not exist, and it is highly likely that the node will fail even if retransmission is performed. This is because the possibility of success in retransmission due to the change is considered.

【0052】また、失敗が続く場合は、トークンを他の
ノードに委譲することとし、トークンの円滑な循環を図
るようにしている。
If the failure continues, the token is transferred to another node so that the token can be smoothly circulated.

【0053】[0053]

【発明の効果】以上詳述したように請求項1のデータ伝
送方法によれば、送信権を受領した制御装置により送信
権の受領を示す第1の肯定応答が第1の応答フィールド
に書き込まれ、データを受信した制御装置によりデータ
の受信成功を示す第2の肯定応答が第2の応答フィール
ドに書き込まれ、前記第1及び第2の応答フィールドの
内容に応じて、次回送信権を得るまでの待機又は継続し
た送信権の委譲処理である、前記第1の肯定応答に対応
する処理を、データの再送信を行う処理である、前記第
2の肯定応答がないときの処理に優先させて実行する
で、送信権の委譲及びデータの送信のそれぞれについて
その成否を迅速に確認することができるとともに、デー
タの伝送より送信権の循環が優先され、送信権の循環を
より円滑に行うことができる
As described above in detail, according to the data transmission method of the first aspect, the control device that has received the transmission right writes the first acknowledgment indicating the reception of the transmission right in the first response field. A second acknowledgment indicating successful data reception is written in the second response field by the control device that has received the data, and until the next transmission right is obtained according to the contents of the first and second response fields. Wait or continue
Corresponding to the first acknowledgment, which is a transfer right transfer process
The process of retransmitting data.
2 is executed prior to the processing when there is no acknowledgment, so that the success or failure of each of the transfer of the transmission right and the transmission of the data can be quickly confirmed , and the data can be confirmed.
Of transmission rights takes precedence over transmission of data,
It can be performed more smoothly .

【0054】[0054]

【0055】また、請求項4のデータ伝送方法によれ
ば、第1の応答フィールドを有する、送信権委譲のため
の第1のメッセージと、第1及び第2の応答フィールド
を有する、送信権委譲及びデータの伝送を行うための第
2のメッセージとが使用され、一の制御装置が第2のメ
ッセージを送出して第1の肯定応答が得られたときは、
該一の制御装置は、第2の肯定応答の有無に拘らず次回
送信権を得るまで送信は行わず、また、一の制御装置が
第2のメッセージを送出して第1の肯定応答が得られな
かったときには、該一の制御装置は送信権委譲処理を継
続するために第1のメッセージを送出するので、送信権
の循環を円滑に行うことができる。
According to the data transmission method of the present invention, a first message for transmitting a transmission right having a first response field, and a transmission right delegation having first and second response fields. And a second message for transmitting the data is used, and when one controller sends out the second message and obtains the first acknowledgment,
The one control device does not transmit until the next transmission right is obtained, regardless of the presence or absence of the second acknowledgment, and the one control device sends the second message to obtain the first acknowledgment. If not, the one control device sends the first message to continue the transmission right transfer process, so that the transmission right can be smoothly circulated.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例に係る車両用制御システムの
全体構成図である。
FIG. 1 is an overall configuration diagram of a vehicle control system according to an embodiment of the present invention.

【図2】図1のシステムを構成する電子制御装置の構成
を示すブロック図である。
FIG. 2 is a block diagram illustrating a configuration of an electronic control device that configures the system of FIG. 1;

【図3】図2のバスインターフェイスの具体的な構成を
示す図である。
FIG. 3 is a diagram showing a specific configuration of a bus interface of FIG. 2;

【図4】電子制御装置間で送受信されるメッセージの構
成を示す図である。
FIG. 4 is a diagram showing a configuration of a message transmitted and received between electronic control devices.

【図5】データ伝送終了時の処理手順を示すフローチャ
ートである。
FIG. 5 is a flowchart showing a processing procedure when data transmission is completed.

【符号の説明】[Explanation of symbols]

1 エンジン制御電子制御装置 6 ネットワークバス 101 中央処理装置(CPU) 105 通信制御IC 106 バスインターフェイス DESCRIPTION OF SYMBOLS 1 Engine control electronic control unit 6 Network bus 101 Central processing unit (CPU) 105 Communication control IC 106 Bus interface

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 車両に搭載され、少なくとも1本の共通
の信号線により接続された複数の制御装置間を送信権を
循環させてメッセージの送受信を行うデータ伝送方法に
おいて、前記メッセージは送信権を受領した制御装置が
該送信権の受領を示す第1の肯定応答を書き込む第1の
応答フィールドと、データを受信した制御装置が該デー
タの受信成功を示す第2の肯定応答を書き込む第2の応
答フィールドとを有し、前記第1及び第2の応答フィー
ルドの内容に応じて、次回送信権を得るまでの待機又は
継続した送信権の委譲処理である、前記第1の肯定応答
に対応する処理を、データの再送信を行う処理である、
前記第2の肯定応答がないときの処理に優先させて実行
することを特徴とするデータ伝送方法。
1. A data transmission method for transmitting and receiving a message by circulating a transmission right between a plurality of control devices mounted on a vehicle and connected by at least one common signal line, wherein the message has a transmission right. A first response field in which the receiving control device writes a first acknowledgment indicating receipt of the transmission right, and a second response field in which the control device receiving the data writes a second acknowledgment indicating successful reception of the data A response field, and depending on the contents of the first and second response fields , waiting until the next transmission right is obtained or
The first acknowledgment, which is continuous transmission right transfer processing.
Is a process of retransmitting data.
Execute in precedence over processing when there is no second acknowledgment
A data transmission method.
【請求項2】 車両に搭載され、少なくとも1本の共通
の信号線により接続された複数の制御装置間を送信権を
循環させてメッセージの送受信を行うデータ伝送方法に
おいて、前記メッセージは、送信権を受領した制御装置
が出力する第1の肯定応答を書き込む第1の応答フィー
ルドを有する送信権委譲のための第1のメッセージと、
前記第1の応答フィールド及びデータを受信した制御装
置が出力する第2の肯定応答を書き込む第2の応答フィ
ールドを有する、送信権委譲及びデータの伝送を行う為
の第2のメッセージとから成り、前記制御装置のそれぞ
れは、前記第2のメッセージを送出して前記第1の肯定
応答が得られたときは、前記第2の肯定応答の有無に拘
らず前記送信権の委譲が完了したと判断して次回送信権
を得るまで送信を行わず、前記第1の肯定応答が得られ
なかったときは、前記送信権の委譲処理を継続するため
に前記第1のメッセージを送出することを特徴とするデ
ータ伝送方法。
2. A data transmission method for transmitting / receiving a message by circulating a transmission right between a plurality of control devices mounted on a vehicle and connected by at least one common signal line, wherein the message has a transmission right A first message for delegation of transmission having a first response field for writing a first acknowledgment output by the control device receiving the first acknowledgment;
A second message for transferring the transmission right and transmitting data, the second message having a first response field and a second response field for writing a second acknowledgment output by the control device that has received the data; When each of the control devices transmits the second message and obtains the first acknowledgment, it determines that the transfer of the transmission right has been completed regardless of the presence or absence of the second acknowledgment. The transmission is not performed until the next transmission right is obtained, and when the first acknowledgment is not obtained, the first message is transmitted to continue the transmission right delegation process. Data transmission method.
JP5048560A 1993-02-15 1993-02-15 Data transmission method Expired - Fee Related JP2947437B2 (en)

Priority Applications (17)

Application Number Priority Date Filing Date Title
JP5048560A JP2947437B2 (en) 1993-02-15 1993-02-15 Data transmission method
DE69433866T DE69433866T2 (en) 1993-02-15 1994-02-15 Method for transmitting data
CA002226421A CA2226421C (en) 1993-02-15 1994-02-15 Data transmission method and system therefor
EP00105840A EP1022879B1 (en) 1993-02-15 1994-02-15 Data transmission system
EP00105839A EP1022878B1 (en) 1993-02-15 1994-02-15 Data transmission system
DE69433098T DE69433098T2 (en) 1993-02-15 1994-02-15 Data transmission device
CA002226477A CA2226477C (en) 1993-02-15 1994-02-15 Data transmission method and system therefor
EP94102290A EP0612169B1 (en) 1993-02-15 1994-02-15 Data transmission method and system therefor
CA002363980A CA2363980C (en) 1993-02-15 1994-02-15 Data transmission method and system therefor
CA002115730A CA2115730C (en) 1993-02-15 1994-02-15 Data transmission method and system therefor
DE69428930T DE69428930T2 (en) 1993-02-15 1994-02-15 Method and device for transmitting data
EP00105838A EP1022877B1 (en) 1993-02-15 1994-02-15 Data transmission method
DE69433882T DE69433882T2 (en) 1993-02-15 1994-02-15 Device for transmitting data
US08/455,247 US5586118A (en) 1993-02-15 1995-05-31 Data transmission method and system therefor
US08/454,752 US5696904A (en) 1993-02-15 1995-05-31 Data transmission method and system therefor
US08/455,512 US5764919A (en) 1993-02-15 1995-05-31 Data transmission method and system therefor
US08/527,953 US5659702A (en) 1993-02-15 1995-09-14 Data transmission method and system therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5048560A JP2947437B2 (en) 1993-02-15 1993-02-15 Data transmission method

Publications (2)

Publication Number Publication Date
JPH06245263A JPH06245263A (en) 1994-09-02
JP2947437B2 true JP2947437B2 (en) 1999-09-13

Family

ID=12806778

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5048560A Expired - Fee Related JP2947437B2 (en) 1993-02-15 1993-02-15 Data transmission method

Country Status (1)

Country Link
JP (1) JP2947437B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04273736A (en) * 1991-02-28 1992-09-29 Nec Corp Packet communication system and packet re-transmission equipment

Also Published As

Publication number Publication date
JPH06245263A (en) 1994-09-02

Similar Documents

Publication Publication Date Title
US5586118A (en) Data transmission method and system therefor
US5357525A (en) Multiplex transmission system
US6167057A (en) Data communication system and electronic control unit used therein
EP0449304B1 (en) Multiplex transmission system for use in vehicles
JP2770282B2 (en) Vehicle data transmission system
US20210377070A1 (en) User station for a serial bus system, and method for transmitting a message in a serial bus system
JP2857655B2 (en) Vehicle data transmission system
JP2947437B2 (en) Data transmission method
JP2995348B2 (en) Multiplex transmission method
TWI838577B (en) Node station for a serial bus system and method for communicating in a serial bus system
JP2002359625A (en) Control area network
JP2775659B2 (en) Data transmission method
JP2784709B2 (en) Vehicle data transmission system
JP2770281B2 (en) Data transmission method
US5263022A (en) Multiplex transmission method
CA2226421C (en) Data transmission method and system therefor
CA2363980C (en) Data transmission method and system therefor
JPH05122226A (en) Multiplex transmission method
JP2965817B2 (en) Vehicle data transmission system
JP2947496B2 (en) Vehicle data transmission system
JP7728066B2 (en) Communication device and communication method
JP3175202B2 (en) Method of storing received data in communication control circuit
Buchanan Some Studies on CAN Specification
JPH10187598A (en) Vehicle data transmission system
JPH05191415A (en) Multiplex communication system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees