JP3628042B2 - Multiple communication method - Google Patents
Multiple communication method Download PDFInfo
- Publication number
- JP3628042B2 JP3628042B2 JP16806394A JP16806394A JP3628042B2 JP 3628042 B2 JP3628042 B2 JP 3628042B2 JP 16806394 A JP16806394 A JP 16806394A JP 16806394 A JP16806394 A JP 16806394A JP 3628042 B2 JP3628042 B2 JP 3628042B2
- Authority
- JP
- Japan
- Prior art keywords
- slave station
- retransmission
- access
- station
- slave
- 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 - Lifetime
Links
- 238000004891 communication Methods 0.000 title claims description 108
- 238000000034 method Methods 0.000 title claims description 32
- 230000005540 biological transmission Effects 0.000 claims description 18
- 230000005856 abnormality Effects 0.000 description 27
- 230000008569 process Effects 0.000 description 16
- 230000007704 transition Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000008859 change Effects 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 230000006866 deterioration Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000002411 adverse Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000004043 responsiveness Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 231100000989 no adverse effect Toxicity 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Landscapes
- Detection And Prevention Of Errors In Transmission (AREA)
- Small-Scale Networks (AREA)
- Selective Calling Equipment (AREA)
Description
【0001】
【産業上の利用分野】
本発明は、車両電装に多重通信を適用した場合に、通信異常発生時にも其の影響を抑制し、良好な応答性を確保できるようにした多重通信方法に関する。
【0002】
【従来の技術】
従来の車両電装においては、各電子機器間をスイッチ入力、センサ出力、アクチュエータ駆動信号等、それぞれに必要な信号数の配線で接続していた。しかし、車両の高機能化に伴い電装システムが複雑化すると、配線数の増加によるレイアウト性の悪化や、重量増、組み立て時の作業性の悪化などの問題が生じたため、多重通信システムの導入が行われるようになってきた。
図7は多重通信システムによる車両電装の一例を示すものである。マイコン110を持つ通信の親局101を運転席インストルメントの下に1個搭載し、子局は、運転席ドア143および助手席ドア144内にそれぞれ2個の子局102〜105を、後席の左右ドア145、146内にそれぞれ1個の子局106、107を、運転席および助手席シート147、148の下にそれぞれ1個の子局108、109を搭載している。通信線142が、親局101内の通信IC111と各子局に内蔵されている通信IC112相互間を結んでおり、各子局通信IC112の入出力ポートは入出力回路113〜120を介して、モータ131〜141やスイッチ121〜139に接続されている。各子局102〜109は親局101からの出力命令の送信をを受信し、これに従ってモータを駆動し、子局自身のスイッチ入力信号の状態を親局への返信として送信する機能を有している。各電装機能や通信機能の制御は、親局101が通信線142を介して子局102〜109の入出力を制御することにより行っている。
【0003】
通信波形とそのフォーマットの一例を図8に示す。通信信号はその始まりを表す通信開始符号201、親局の送信か子局の送信かを識別するコマンドフレーム202、送信先または送信元を示す子局アドレスフレーム203、入出力データを示すデータフレーム204、205、通信信号の終了を表す通信終了符号206で構成され、通信信号の異常を検出するためのパリティビット207〜209も設けられている。なお、各子局102〜109には重複しない固有のアドレスが設定されており、子局の通信IC112の入出力ポートとデータフレームの各ビットは一対一に対応するように割り付けられている。
図9は通信手順の一例を示すものである。親局101はマイコン110からの制御によりアクセス先子局のアドレスと出力データを送信する(301〜304)。各子局の内、自己アドレスを認識した子局のみが、受信した出力データに従って負荷駆動出力を行い、同時に自己アドレスとその子局の入力データを親局101に対して返信する(305〜308)。一方、子局からの返信を受けた親局の通信IC111はマイコンに子局の入力データを伝達する。親局101は予め定められた順序で各子局へアクセスし、この動作を繰り返す。
実際に、図7において運転席パワーシートスイッチ121を操作してから運転席パワーシートモータ140が作動するまでの経過を説明する。前述の通信手順を行いながら、親局のマイコン110が通信IC111を経由してパワーシートスイッチ子局102からスイッチが操作されたというデータを取り込む。マイコンは制御ロジックに従って演算し、パワーシートモータ140の出力を行うことを決定すると共に次の子局にアクセスする。各子局とのアクセスを繰り返し、やがてパワーシート子局108にアクセスする順番になると親局101はパワーシートモータ出力命令を送信する。これを受けたパワーシート子局108がパワーシートモータ140を駆動する。
【0004】
【発明が解決しようとする課題】
上記のような多重通信システムの車両への導入に際しては、ノイズの混入等による通信信号の破壊の可能性を考慮しなくてはならない。例えば、車両の様々な場所に存在するリレーのオン/オフ時に発生する高周波サージは、数百Vに達することがあり、これが配線間の容量結合により通信線に侵入すると通信信号の波形が歪み、正常な入出力データの授受が妨げられることがある。通常、各通信ユニットにおいては、パリティによるデータのチェックやパルス幅、フォーマットのチェック、アドレスチェック、無応答検知などが通信IC又はマイコンによって行われ、このような通信異常の発生時には、正常な受信が行われるようになるまで入出力データの更新を禁止するという処理を行うのが、従来は普通であった。 このような方法を用いた場合、一度ある子局とのアクセス時に異常が発生すると、通信順序が一巡し、次にその子局とのアクセスの順番になり正常な通信が行われるまでは、モータ等の負荷駆動出力は保持される。従って、スイッチ入力の変化が負荷の動作に反映されるまでの時間が長くなり、応答性の悪化を招く。特に、比較的頻繁に変化するスイッチ入力を持つ子局との通信時に通信異常が発生した場合、応答性の悪化が動作不良の原因となる可能性もある。
このような事態への対策としては、親局から再送信するのが一般的である。すなわち、親局が子局からの返信に異常を検知した場合は、次の子局とのアクセスに移らずに、同一の子局に対して再びデータを送信するというものである。勿論、永久的なユニットの故障や通信線の断線、ショートなども考えられるため、各子局への再送信の回数には制限を設ける必要がある。
上記のような従来の多重通信方法では、再送信の制限回数を大きく設定するほど再送信の効果が出るが、通信順序が一巡する間(以後、通信サイクルと呼ぶ)に何度も通信異常が発生すると、通信サイクルが入力信号の状態遷移サイクルよりも長くなり、正確な入力信号の変化を捉えられなくなったり、状態遷移サイクルの長い入力信号を持つ子局への再送信に時間を取られ、状態遷移サイクルの短い入力信号を持つ子局とのアクセス間隔すなわち入力データの更新周期が長くなり、正確な入力信号の変化を捉えられなくなるなどの問題が発生することがある。
本発明は上記のような従来からの問題が発生しないようにした多重通信方法を提供することを課題とする。
【0005】
【課題を解決するための手段】
上記課題を解決するために本発明においては、一つの親局と複数の子局とが多重通信線により接続され、親局はまず一つの子局へ送信を行い、次いで、この送信を受信した子局からの返信を受信するというアクセス動作を、予め定められたアクセス順序に従って順次各子局に対して行い、アクセス順序の一定のパターンを1通信サイクルとして繰り返す多重通信方法において、親局は、子局からの返信を正常に受信したときは上記アクセス順序に従って次の子局とのアクセス動作に移り、子局からの返信に異常を検知したときに、所定の再送信条件が成立している場合は同一の子局に再送信を行い、再送信条件が成立していない場合は上記アクセス順序に従って次の子局とのアクセス動作に移ることとし、親局には、上記1通信サイクル中に、子局毎に再送信した回数を計数する再送カウンタと、上記1通信サイクル中に、全子局それぞれに再送信した回数を計数する再送合計カウンタ、又は、全子局それぞれに再送信によりアクセスするのに要した時間の合計を計数する再送時間カウンタ、とを備えて、上記再送カウンタの計数値は各子局毎に予め定められた特定値以下であり、かつ、上記再送合計カウンタ又は再送時間カウンタの計数値は所定値以下である場合に、再送信条件が成立していると見做すことにした。
【0006】
【作用】
本発明では、多重通信システムに異常が発生したときに親局から子局に向けて行う再送信動作に対して、従来のように各子局に対する再送信の回数に制限を設けるだけでなく、本発明に係る再送信条件によって、1通信サイクル当りの再送信動作の合計回数または再送信動作に費やす合計時間の上限を設定したので、異常が発生した場合に、再送信動作のためにむやみに長い時間をかけないで済み、1通信サイクルの時間を適度に抑制することができ、通信サイクルが入力信号の状態遷移サイクルより長くなって正確な入力信号の変化を捉えられなくなったり、状態遷移サイクルの長い入力信号を持つ子局への再送信に時間を費やし、状態遷移サイクルの短い入力信号を持つ子局とのアクセス間隔すなわち入力データの更新周期が長くなって、正確な入力信号を捉えられなくなるなどの問題を解消することができる。本発明によれば、通信サイクル中で親局から子局への通信(アクセス)順序が後のものほど、異常検知時に既に再送合計カウンタや再送時間カウンタが、再送信を不可にしている可能性が高い。しかし逆に、この現象を利用して各子局間に優先度を設定することができる。すなわち、入力信号の遷移サイクルが短い子局に対してはアクセス順序を前方に設定すれば良い。このようにすれば、1通信サイクル中で其の子局の正確な入力信号(の変化)を捉える可能性が高くなり、アクセス順序が後の子局との通信で異常が発生したために、アクセス順序が前の子局からの入力データ更新周期に悪影響を及ぼすことはなくなる。
【0007】
【実施例】
図1は本発明の第1実施例に対するフローチャートで、親局の通信制御手順を表している。各子局には番号nが付けられ、親局は子局0から子局7まで全8個の子局へのアクセスを順に繰り返すものとする。ここでの子局番号nは、親局が通信の順序を制御するために便宜的につけた番号で、各々の子局が持つアドレスとは必ずしも一致しない。また、1つの子局に1つの番号のみが設定されているとは限らず、1通信サイクルで複数回アクセスする子局がある場合には、その回数の分だけ異なった番号が付けられることもある。TXNは1つの子局に対して再送信を行った回数を示し、再送信を行う度に加算される再送カウンタの計数値である。TXCは1通信サイクル中に行った再送信の合計回数を示し、再送信を行う度に加算される再送合計カウンタの計数値である。
なお、1つの子局に対する再送信の最大回数は、その子局の重要度に応じてそれぞれ異なった値に設定することもできるが、本実施例においては説明を容易にするため、全子局に対して一律に最大2回までとする。また、全子局に対してそれぞれ最大回数の再送信が行われたとすると、1通信サイクルで2×8=16回となるが、本発明では、これに制限を持たせて16よりも小さい値5を上限値として設定している。
【0008】
まずステップS11で子局nに対して送信を行う。送信終了後ステップS12で受信待機の状態となり、子局返信の正常受信または異常検知を行う。正常受信できた場合はステッS13に移り、通信異常を検知した場合にはステップS16へ移る。
正常受信後のステップS13では再送カウンタTXNをクリア、送信先の子局番号nをインクリメントしてステップS11に戻り、次の子局とのアクセスに移るが、その前にステップS14で子局番号nが7を越えているときは1通信サイクルが終了したことを示すため、ステップS15で子局番号nと再送合計カウンタTXCをクリアして通信サイクルの最初から、すなわち子局0からアクセスが繰り返される。
異常検知後は同一の子局に対して再送信を行うが、ステップS16で再送合計カウンタTXCが最大値の5に達していることを判定した場合には、再送信を行わずにステップS13に移り、正常受信時と同様に次の子局とのアクセスを行う。TXC<5であっても、次のステップS17で当該子局に対する再送カウンタTXNが最大値の2に達していることを判定した場合には、同様にステップS13に移る。TXN<2且つTXC<5であるときにのみステップS18に移り、TXNおよびTXCをインクリメントした上でステップS11に移る。このときは子局番号nがインクリメントされないため、同一の子局に対して再送信が行われることになる。
【0009】
図2は本実施例の具体的な動作の一例を示す図で、各子局とのアクセス順序、親局の再送カウンタTXNおよび再送合計カウンタTXCの値を表している。丸付き数字はアクセスの対象としている子局の番号を示し、斜線を引かれた部分は通信異常の発生したアクセスを示す。なお、図の左から右へ時間が経過して行くものとする。
子局0とのアクセス501が正常に行われた後、子局1とのアクセス502の時に通信異常が発生すると、親局は再送カウンタTXN、再送合計カウンタTXCをインクリメントし、再び子局1とのアクセス503を行う。このアクセスが正常に行われた場合、再送カウンタTXNはクリアされ、続く子局2とのアクセス504に移る。子局3とのアクセス505のときに異常が発生すると、子局1との場合と同様の処理により再び子局3とのアクセス506を行うが、ここでも異常が発生すれば同様の処理により再度子局3とのアクセス507を繰り返す。しかし更に異常が発生しても、再送カウンタTXNは上限の2を示しているため、子局3との再アクセスは行わずに、再送カウンタTXNをクリアして次の子局4とのアクセス508に移る。以下同様の動作ではあるが、子局5とのアクセス509〜511では2回の再アクセスが行われたとすると、この時点で再送合計カウンタTXCは上限の5を示すことになる。従って、図中に示すように子局7とアクセス513をしているときに異常が発生しても、再アクセスは行われずに次の子局とのアクセスに移る。図2に示す場合は通信サイクルが終了するため、再送合計カウンタをクリアして子局0とのアクセスに戻っている。
以上の動作により、本第1実施例によれば1通信サイクルの所要時間が必ずTmax以下に収まることになる。
【0010】
本第1実施例によれば、既述のように、通信順序が後のものほど、異常検知時に既に再送合計カウンタが再送不可であることを示している可能性が高くなる。これを利用して各子局に優先度を設定することができる。図7に示した例について、子局102〜109に優先順位を付けると、1:運転席パワーシートアクチュエータユニット用子局108、2:助手席パワーシートアクチュエータユニット用子局109、3:運転席パワーシートスイッチ用子局、4:助手席パワーシートスイッチ用子局、5:運転席パワーウィンドウ用子局103、6:助手席パワーウィンドウ用子局、7:右後席パワーウィンドウ用子局106、8:左後席パワーウィンドウ用子局107の順になる。
入力信号の遷移サイクルが短い子局ほど通信順序の前方に設定すれば、1通信サイクルで入力信号を捉える可能性が高くなり、通信順序の遅い子局との通信における異常発生が通信順序の早い子局からの入力データ更新周期に悪影響を及ぼすことはない。
また、本第1実施例では1通信サイクル当りの再送信の回数を5回までとしたが、本発明を実際に使用する際には、遷移サイクルの最も短い入力信号を持つ子局とのアクセス間隔が一定時間内に収まるように考慮して、その回数を設定するのが良い。
【0011】
図3は本発明の第2実施例に対するフローチャートであって、上記第1実施例では1通信サイクル当りの再送信合計回数を再送信条件の一つに用いたが、本実施例では、1通信サイクル中に、全子局いずれかへの再送信によるアクセスに要した時間を全て計数する再送時間カウンタの計数値を用いることにした。
そのため、第1実施例のように再送合計カウンタTXCは使用せず、その代りに、再送信が行われる度に、そのアクセスに要した時間を加算する再アクセス時間カウンタTCNTを設置して用いた。1つの子局に対する再送回数は第1実施例の場合と同様に一律に最大2回としている。
また、各子局との1回のアクセスに要する時間は10であるとし、全子局に対してそれぞれ最大回数の再送信が行われたとすると、1通信サイクルのうち再送信によるアクセスに費やされる時間は、2×8×10=160となる。この再送信によるアクセスに費やされる時間に制限を持たせたのが本実施例であって、本実施例では1通信サイクル当りの再送信に使用できる時間を上記160よりも小さい50を上限として設定した。
【0012】
図3において、まずステップ21で子局nに対して送信を行う。送信終了後ステップ22で受信待機の状態となり、子局返信の正常受信または異常検知を行う。正常受信できた場合はステップS23に移り、返信の通信異常を検知した場合にはステップS26へ移る。
正常受信後のステップ23では再送カウンタTXNをクリア、送信先の子局番号nをインクリメントしてステップ21に戻り、次の子局とのアクセスに移るが、その前にステップS24で子局番号nが7を越えているときは1通信サイクルが終了したことを示すため、ステップS25で子局番号nと再アクセス時間カウンタTCNTをクリアして通信サイクルの最初から、すなわち子局0からアクセスが繰り返される。
異常検知後は同一の子局に対して再送信を行うが、ステップS26で再アクセス時間カウンタTCNTが50以上に達していることを判定した場合には、再送信を行わずにステップS23に移り正常受信時と同様に次の子局とのアクセスを行う。TCNT<50であっても、次のステップS27で当該子局に対する再送カウンタTXNが最大値の2に達していることを判定した場合には、同様にステップ23に移る。TXN<2且つTCNT<50である時にのみステップS28に移り、TXNをインクリメント、TCNTにアクセス所要時間を加算した上でステップS21に移る。このときは子局番号nがインクリメントされていないため、同一の子局に対して再送信が行われることになる。
【0013】
図4は第2実施例の具体的な動作の一例を示すものであるが、再送合計カウンタTXCの代りに再アクセス時間カウンタTCNTを用いている点が異なるだけで、図2に示した第1実施例の場合と同様な動作であるため詳細な説明は省略する。
図4に示す動作例では、予め分かっているアクセス所要時間を再アクセス時間カウンタTCNTに加算することにより再送回数を制限しているが、図5に示すように再アクセスの所要時間を、各子局とアクセスする度に計測する再送タイマTIMを用いることもできる。動作については図4の場合と全く同様である。
【0014】
本第2実施例では1通信サイクル当りの再送信に使用できる時間を50としたが、本発明を実際に使用する際には、遷移サイクルの最も短い入力信号を持つ子局とのアクセス間隔が一定時間内に収まるように考慮し、その時間を設定するのが良い。
【0015】
第2実施例では各子局に対して、その通信順序により優先度を設定できるという点では第1実施例同様であるが、本第2実施例と第1実施例との相違は、子局毎に送受信するデータのデータ長が異なる場合に顕著になる。例えば子局0〜7のうち、子局5〜7が他の子局よりも送受信データのデータ長が短く、アクセスに必要な時間が半分の5で済む場合を考え、図2、図4、図5に示すように通信異常が発生したとする。図6に各実施例における動作を比較して示す。
第1実施例の場合、図6(a)に示すように、子局7からの返信に異常を検知したときには既に再送合計カウンタTXCは最大値の5を示しているので、子局7に対する再送信は行われずに子局0とのアクセスに移ってしまうため、子局7からの入力に対する負荷駆動の応答性は悪化する。
これに対して第2実施例の場合、図6(b)に示すように、子局7からの返信に異常を検知したときの再アクセス時間カウンタTCNTの値は40で、未だ最大値の50に達していないため、子局7に対して再送信を行うことができる。再送信の回数を増やし、かつ1通信サイクルの所要時間を一定時間に抑えるという目的を考えた場合、データ長の異なるデータを授受する子局が存在するときには、第2実施例のように時間を用いた再送回数制限を行う方が、許された制限時間を有効に活用して再送信を行うことができると云える。
【0016】
【発明の効果】
以上説明したように本発明によれば、親局から各子局への再送信の回数に制限を設けるだけでなく、1通信サイクル当りの再送信の合計回数または再送信に使用する合計時間に制限を設けることにより、各子局との通信の順序に優先度を設定することができ、優先度の高い子局との入力データ更新周期は優先度の低い子局との通信異常の悪影響を受けずに済み、システム全体として正確な制御が可能になるという効果が得られる。特に再送信に使用する合計時間に制限を設ける方法によれば、送受信データ長が異なる子局が混在する場合に、再送回数制限に対して効率良く再送信が実行できるという効果が得られる。
【図面の簡単な説明】
【図1】本発明の第1実施例に対するフローチャートである。
【図2】本発明第1実施例の具体的な動作例について説明する図である。
【図3】本発明の第2実施例に対するフローチャートである。
【図4】本発明第2実施例の具体的な動作例について説明する図である。
【図5】本発明第2実施例で、アクセス所要時間の監視に、図4に示した動作例のように再アクセス時間カウンタTCNTを用いる代りに、再送タイマTIMを用いた動作例について説明する図である。
【図6】送受信データ長が異なる子局が混在する場合には、時間を用いた再送回数制限を行う第2実施例の方が、単に再送信回数で制限する第1実施例よりも、制限時間を有効活用できることを、図6(a)に第1実施例の動作例を、図6(b)に第2実施例の動作例を示して、具体的に説明する図である。
【図7】多重通信システムによる車両電装の一例を説明する図である。
【図8】車両電装に多重通信システムを適用した場合の、通信波形とそのフォーマットの具体的な例を示す図である。
【図9】車両電装に多重通信システムを適用した場合の通信手順の一例を説明する図である。
【符号の説明】
TXN…親局から特定子局に対して再送信を行った回数
TXC…1通信サイクル中に行った子局への再送信の合計回数
TCNT…1通信サイクル中に子局への再送信によるアクセスに要した合計時間
101…親局
102…運転席パワーシートスイッチ子局
103…運転席ドア子局
104…助手席パワーシートスイッチ子局
105…助手席ドア子局 106…後右席ドア子局
107…後左席ドア子局 108…運転席パワーシート子局
109…助手席パワーシート子局
121、122…パワーシートスイッチ
123〜126…パワーウィンドスイッチ
127〜130…ドアロック検出スイッチ
131〜134…パワーウィンドモータ
135〜138…ドアロックモータ 139…シート位置センサスイッチ
140、141…パワーシートモータ 142…通信線
143…運転席ドア 144…助手席ドア
145…後右席ドア 146…後左席ドア
147…運転席パワーシート 148…助手席パワーシート
201…通信開始符号 202…コマンドフレーム
203…アドレスフレーム 204…データフレーム1
205…データフレーム2 206…通信終了符号
207…コマンドフレーム、アドレスフレームに対するパリティビット
208…データフレーム1に対するパリティビット
209…データフレーム2に対するパリティビット
301〜304…親局の送信 305〜308…子局の送信
501、514、701、714、801、814、901、914、915、929…子局0とのアクセス
502、503、702、703、802、803、902、903、916、917…子局1とのアクセス
504、704、804、904、918…子局2とのアクセス
505〜507、705〜707、805〜807、905〜907、919〜921…子局3とのアクセス
508、708、808、908、922…子局4とのアクセス
509〜511、709〜711、809〜811、909〜911、923〜925…子局5とのアクセス
512、712、812、912、926…子局6とのアクセス
513、713、813、913、927、928…子局7とのアクセス[0001]
[Industrial application fields]
The present invention relates to a multiplex communication method in which, when multiplex communication is applied to vehicle electrical equipment, the influence is suppressed even when a communication abnormality occurs, and good responsiveness can be secured.
[0002]
[Prior art]
In the conventional vehicle electrical equipment, each electronic device is connected by wiring of the number of signals necessary for each of switch inputs, sensor outputs, actuator drive signals, and the like. However, as the electrical system becomes more complex as the vehicle becomes more sophisticated, problems such as deterioration in layout due to an increase in the number of wires, increase in weight, and deterioration in workability during assembly have occurred. Has come to be done.
FIG. 7 shows an example of vehicle electrical equipment using a multiple communication system. One communication master station 101 having the
[0003]
An example of the communication waveform and its format is shown in FIG. The communication signal includes a
FIG. 9 shows an example of a communication procedure. The master station 101 transmits the address and output data of the access slave station under the control of the microcomputer 110 (301 to 304). Of each slave station, only the slave station that has recognized its own address performs load drive output according to the received output data, and simultaneously returns its own address and its input data to the master station 101 (305-308). . On the other hand, the communication IC 111 of the master station that has received a reply from the slave station transmits the input data of the slave station to the microcomputer. The master station 101 accesses each slave station in a predetermined order and repeats this operation.
Actually, the process from the operation of the driver seat power seat switch 121 to the operation of the driver seat power seat motor 140 in FIG. 7 will be described. While performing the communication procedure described above, the
[0004]
[Problems to be solved by the invention]
When introducing the multiplex communication system as described above into a vehicle, it is necessary to consider the possibility of destruction of communication signals due to noise mixing. For example, a high-frequency surge that occurs when a relay that exists in various places in a vehicle is turned on / off may reach several hundred volts, and when this enters the communication line due to capacitive coupling between the wirings, the waveform of the communication signal is distorted, There are cases where normal I / O data transfer is hindered. Normally, in each communication unit, data check by parity, pulse width, format check, address check, no response detection, etc. are performed by the communication IC or microcomputer, and when such communication abnormality occurs, normal reception is performed. Conventionally, the process of prohibiting the update of input / output data until it has been performed is normal. When such a method is used, once an abnormality occurs when accessing a certain slave station, the communication sequence is completed, until the next access order with that slave station and normal communication is performed, etc. The load drive output of is maintained. Therefore, the time until the change of the switch input is reflected in the operation of the load becomes long, and the response is deteriorated. In particular, when communication abnormality occurs during communication with a slave station having a switch input that changes relatively frequently, the deterioration of responsiveness may cause malfunction.
As a countermeasure against such a situation, it is common to retransmit from the master station. That is, when the master station detects an abnormality in the reply from the slave station, data is transmitted again to the same slave station without moving to the next slave station. Of course, a permanent unit failure, a disconnection of a communication line, a short circuit, and the like are also conceivable. Therefore, it is necessary to limit the number of retransmissions to each slave station.
In the conventional multiplex communication method as described above, the larger the retransmission limit, the more effective the retransmission. However, there are many communication anomalies during the entire communication sequence (hereinafter referred to as a communication cycle). When it occurs, the communication cycle becomes longer than the state transition cycle of the input signal, it becomes impossible to capture the change of the accurate input signal, or it takes time to retransmit to the slave station having the input signal with a long state transition cycle, There may be a problem that an access interval with a slave station having an input signal with a short state transition cycle, that is, an update period of input data becomes long and an accurate change of the input signal cannot be captured.
It is an object of the present invention to provide a multiplex communication method that prevents the above-described conventional problems from occurring.
[0005]
[Means for Solving the Problems]
In order to solve the above problems, in the present invention, one master station and a plurality of slave stations are connected by multiple communication lines, and the master station first transmits to one slave station, and then receives this transmission. In the multiplex communication method in which an access operation of receiving a reply from a slave station is sequentially performed on each slave station according to a predetermined access order, and a fixed pattern of the access order is repeated as one communication cycle, the master station When the reply from the slave station is received normally, the access operation with the next slave station is performed according to the above access sequence, and when an abnormality is detected in the reply from the slave station, a predetermined retransmission condition is satisfied. In this case, retransmission is performed to the same slave station, and if the retransmission condition is not satisfied, the access operation with the next slave station is performed in accordance with the above access order. Retransmission counter that counts the number of retransmissions for each slave station, and retransmission total counter that counts the number of retransmissions to all the slave stations during one communication cycle, or accesses each slave station by retransmission A retransmission time counter for counting the total time required for the transmission, the count value of the retransmission counter being equal to or less than a specific value predetermined for each slave station, and the retransmission total counter or the retransmission time When the count value of the counter is equal to or less than a predetermined value, it is assumed that the retransmission condition is satisfied.
[0006]
[Action]
In the present invention, for the retransmission operation performed from the master station toward the slave station when an abnormality occurs in the multiplex communication system, not only provides a limit on the number of retransmissions for each slave station as in the past, According to the retransmission condition according to the present invention, the total number of retransmission operations per communication cycle or the upper limit of the total time spent for the retransmission operation is set. Therefore, when an abnormality occurs, it is unavoidable for the retransmission operation. It does not take a long time, and the time of one communication cycle can be moderately suppressed. The communication cycle is longer than the state transition cycle of the input signal, so that the change of the input signal cannot be captured accurately. Time is spent retransmitting to a slave station with a long input signal, and the access interval with the slave station having an input signal with a short state transition cycle, that is, the update cycle of input data becomes longer. It is possible to solve problems such as not captured accurate input signals. According to the present invention, as the communication (access) order from the master station to the slave station is later in the communication cycle, the retransmission total counter and the retransmission time counter may have already made retransmission impossible when an abnormality is detected. Is expensive. However, on the contrary, priority can be set between each slave station using this phenomenon. That is, the access order may be set forward for a slave station having a short input signal transition cycle. In this way, there is a high possibility that an accurate input signal (change) of that slave station will be captured in one communication cycle, and an access has occurred due to an abnormality in communication with a slave station whose access order is later. The order will not adversely affect the input data update cycle from the previous slave station.
[0007]
【Example】
FIG. 1 is a flowchart for the first embodiment of the present invention and shows the communication control procedure of the master station. Each slave station is numbered n, and the master station repeats access to all eight slave stations from
Note that the maximum number of retransmissions for one slave station can be set to a different value depending on the importance of the slave station, but in this embodiment, for ease of explanation, In contrast, the maximum is twice. If the maximum number of re-transmissions is performed for all the slave stations, 2 × 8 = 16 times in one communication cycle. However, in the present invention, a value smaller than 16 is given with a limitation. 5 is set as the upper limit value.
[0008]
First, in step S11, transmission is performed to the slave station n. In step S12 after the transmission is completed, a reception standby state is entered, and normal reception or abnormality detection of the slave station reply is performed. If normal reception is possible, the process proceeds to step S13, and if a communication abnormality is detected, the process proceeds to step S16.
In step S13 after normal reception, the retransmission counter TXN is cleared, the transmission destination slave station number n is incremented, the process returns to step S11, and access to the next slave station is started. When the number exceeds 7, it indicates that one communication cycle has been completed. In step S15, the slave station number n and the retransmission total counter TXC are cleared, and the access is repeated from the beginning of the communication cycle, that is, from the
After the abnormality is detected, retransmission is performed to the same slave station. However, if it is determined in step S16 that the retransmission total counter TXC has reached the maximum value of 5, the process returns to step S13 without performing retransmission. Then, access to the next slave station is performed in the same way as during normal reception. Even if TXC <5, if it is determined in the next step S17 that the retransmission counter TXN for the child station has reached the maximum value of 2, the process proceeds to step S13 in the same manner. Only when TXN <2 and TXC <5, the process proceeds to step S18, and after incrementing TXN and TXC, the process proceeds to step S11. At this time, since the slave station number n is not incremented, retransmission is performed to the same slave station.
[0009]
FIG. 2 is a diagram showing an example of a specific operation of the present embodiment, showing the access order with each child station, and the values of the retransmission counter TXN and retransmission total counter TXC of the parent station. The numbers with circles indicate the numbers of the slave stations to be accessed, and the hatched portions indicate the access where the communication abnormality occurred. It is assumed that time elapses from left to right in the figure.
After a
With the above operation, according to the first embodiment, the time required for one communication cycle is always kept below Tmax.
[0010]
According to the first embodiment, as described above, the later the communication order, the higher the possibility that the retransmission total counter has already indicated that retransmission is not possible when an abnormality is detected. Using this, priority can be set for each slave station. In the example shown in FIG. 7, when priority is given to the slave stations 102 to 109, 1: the driver seat power seat actuator unit slave station 108, 2: the passenger seat power seat actuator unit slave station 109, 3: the driver seat Power station switch slave station, 4: passenger seat power seat switch slave station, 5: driver seat power
If the slave station with a shorter transition cycle of the input signal is set to the front of the communication order, the possibility of capturing the input signal in one communication cycle becomes higher, and the occurrence of an abnormality in the communication with the slave station with the slower communication order is earlier in the communication order. There is no adverse effect on the input data update cycle from the slave station.
In the first embodiment, the number of retransmissions per communication cycle is limited to five. However, when the present invention is actually used, access to a slave station having an input signal with the shortest transition cycle is possible. The number of times should be set in consideration of the interval falling within a certain time.
[0011]
FIG. 3 is a flowchart for the second embodiment of the present invention. In the first embodiment, the total number of retransmissions per communication cycle is used as one of the retransmission conditions. During the cycle, the count value of the retransmission time counter that counts all the time required for access by re-transmission to any of the slave stations is used.
For this reason, the retransmission total counter TXC is not used as in the first embodiment. Instead, a re-access time counter TCNT that adds the time required for the access every time retransmission is installed is used. . The number of retransmissions for one slave station is uniformly set to a maximum of 2 times as in the case of the first embodiment.
Further, assuming that the time required for one access with each slave station is 10, and assuming that the maximum number of retransmissions is performed for all the slave stations, it is spent for access by retransmission within one communication cycle. The time is 2 × 8 × 10 = 160. In this embodiment, the time spent for access by this retransmission is limited. In this embodiment, the time that can be used for retransmission per communication cycle is set to 50, which is smaller than 160, as the upper limit. did.
[0012]
In FIG. 3, first, in step 21, transmission is performed to the slave station n. After the transmission is completed, a reception standby state is entered at step 22 to perform normal reception or abnormality detection of the slave station reply. If normal reception is possible, the process proceeds to step S23, and if a return communication abnormality is detected, the process proceeds to step S26.
In
After the abnormality is detected, the same slave station is retransmitted. If it is determined in step S26 that the reaccess time counter TCNT has reached 50 or more, the process proceeds to step S23 without performing retransmission. As with normal reception, access to the next slave station is performed. Even if TCNT <50, if it is determined in the next step S27 that the retransmission counter TXN for the child station has reached the maximum value of 2, the process proceeds to step 23 in the same manner. Only when TXN <2 and TCNT <50, the process proceeds to step S28, TXN is incremented, the access required time is added to TCNT, and then the process proceeds to step S21. At this time, since the slave station number n is not incremented, retransmission is performed to the same slave station.
[0013]
FIG. 4 shows an example of a specific operation of the second embodiment, except that the re-access time counter TCNT is used instead of the total retransmission counter TXC, and the first operation shown in FIG. Since the operation is similar to that of the embodiment, detailed description thereof is omitted.
In the operation example shown in FIG. 4, the number of retransmissions is limited by adding the access required time that is known in advance to the reaccess time counter TCNT. However, as shown in FIG. It is also possible to use a retransmission timer TIM that is measured every time a station is accessed. The operation is exactly the same as in FIG.
[0014]
In this second embodiment, the time that can be used for retransmission per communication cycle is set to 50. However, when the present invention is actually used, the access interval with the slave station having the shortest input signal of the transition cycle is set. It is better to set the time in consideration of being within a certain time.
[0015]
The second embodiment is the same as the first embodiment in that priority can be set for each slave station according to its communication order. However, the difference between the second embodiment and the first embodiment is that This becomes conspicuous when the data length of the data to be transmitted / received is different every time. For example, among the
In the case of the first embodiment, as shown in FIG. 6A, when an abnormality is detected in the reply from the
On the other hand, in the second embodiment, as shown in FIG. 6B, the value of the re-access time counter TCNT when an abnormality is detected in the reply from the
[0016]
【The invention's effect】
As described above, according to the present invention, not only the number of retransmissions from the master station to each slave station is limited, but also the total number of retransmissions per communication cycle or the total time used for retransmissions. By providing a restriction, priority can be set for the order of communication with each slave station, and the input data update cycle with a slave station with a high priority will adversely affect communication abnormalities with slave stations with a low priority. It is possible to obtain an effect that accurate control is possible as a whole system. In particular, according to the method of setting a limit on the total time used for retransmission, when slave stations with different transmission / reception data lengths are mixed, there is an effect that retransmission can be executed efficiently with respect to the limit on the number of retransmissions.
[Brief description of the drawings]
FIG. 1 is a flowchart for a first embodiment of the present invention.
FIG. 2 is a diagram for explaining a specific operation example of the first embodiment of the present invention;
FIG. 3 is a flowchart for a second embodiment of the present invention.
FIG. 4 is a diagram for explaining a specific operation example of the second embodiment of the present invention.
5 illustrates an example of operation using a retransmission timer TIM instead of using the re-access time counter TCNT as in the example of operation shown in FIG. 4 for monitoring the access required time in the second embodiment of the present invention. FIG.
FIG. 6 shows that when slave stations with different transmission / reception data lengths are mixed, the second embodiment that limits the number of retransmissions using time is more limited than the first embodiment that simply limits the number of retransmissions. FIG. 6A is a diagram for specifically explaining that the time can be effectively used, with FIG. 6A showing an operation example of the first embodiment and FIG. 6B showing an operation example of the second embodiment.
FIG. 7 is a diagram illustrating an example of vehicle electrical equipment using a multiplex communication system.
FIG. 8 is a diagram showing a specific example of a communication waveform and its format when a multiple communication system is applied to vehicle electrical equipment.
FIG. 9 is a diagram illustrating an example of a communication procedure when a multiple communication system is applied to vehicle electrical equipment.
[Explanation of symbols]
TXN: Number of times of retransmission from the master station to the specific slave station TXC: Total number of retransmissions to the slave station during one communication cycle TCNT: Access by retransmission to the slave station during one communication cycle Total time required for 101 ... Master station 102 ... Driver seat power seat
205 ...
Claims (2)
親局は、上記子局からの返信を正常に受信したときは、アクセス順序に従って次の子局へのアクセス動作に移り、子局からの返信に異常を検知したときに、下記の再送信条件が成立している場合は同一の子局へ再送信を行い、再送信条件が成立していない場合は上記アクセス順序に従って次の子局とのアクセス動作に移ることとし、
親局には、上記1通信サイクル中に、子局毎に再送信した回数を計数する再送カウンタと、上記1通信サイクル中に、全子局それぞれに再送信した回数の合計を計数する再送合計カウンタとを設置し、上記再送カウンタの計数値が各子局毎に予め定められた特定値以下であり、かつ、上記再送合計カウンタの計数値も所定値以下であれば、上記再送信条件が成立しているものとすることを特徴とする多重通信方法。One master station and a plurality of slave stations are connected by a multiplex communication line, the master station first transmits to one slave station, and then receives the reply from the slave station that received this, the access operation, In a multiplex communication method that sequentially performs each slave station in accordance with a predetermined access order and repeats a certain pattern of this access order as one communication cycle,
When the master station successfully receives the reply from the slave station, the master station moves to the access operation to the next slave station according to the access order. If is established, re-send to the same slave station, and if the retransmission condition is not established, move to the access operation with the next slave station according to the above access sequence,
The master station includes a retransmission counter that counts the number of retransmissions for each slave station in the one communication cycle, and a retransmission total that counts the total number of retransmissions to each slave station in the one communication cycle. If the count value of the retransmission counter is equal to or less than a specific value predetermined for each slave station and the count value of the total retransmission counter is equal to or less than a predetermined value, the retransmission condition is A multiplex communication method characterized by being established.
親局は、上記子局からの返信を正常に受信したときは、アクセス順序に従って次の子局へのアクセス動作に移り、子局からの返信に異常を検知したときに、下記の再送信条件が成立している場合は同一の子局へ再送信を行い、再送信条件が成立していない場合は上記アクセス順序に従って次の子局とのアクセス動作に移ることとし、
親局には、上記1通信サイクル中に、子局毎に再送信した回数を計数する再送カウンタと、上記1通信サイクル中に、全子局それぞれへの再送信によるアクセスに要した時間を計数する再送時間カウンタとを設置し、上記再送カウンタの計数値が各子局毎に予め定められた特定値以下であり、かつ、上記再送時間カウンタの計数値も所定値以下であれば、上記再送信条件が成立しているものとすることを特徴とする多重通信方法。One master station and a plurality of slave stations are connected by a multiplex communication line, the master station first transmits to one slave station, and then receives the reply from the slave station that received this, the access operation, In a multiplex communication method that sequentially performs each slave station in accordance with a predetermined access order and repeats a certain pattern of this access order as one communication cycle,
When the master station successfully receives the reply from the slave station, the master station moves to the access operation to the next slave station according to the access order. If is established, re-send to the same slave station, and if the retransmission condition is not established, move to the access operation with the next slave station according to the above access sequence,
The master station counts the retransmission counter for counting the number of retransmissions for each slave station during the one communication cycle, and the time required for access by retransmission to each of the slave stations during the one communication cycle. If the count value of the retransmission counter is equal to or less than a specific value predetermined for each slave station and the count value of the retransmission time counter is also equal to or less than a predetermined value, the retransmission time counter is set. A multiplex communication method characterized in that a transmission condition is satisfied.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP16806394A JP3628042B2 (en) | 1994-07-20 | 1994-07-20 | Multiple communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP16806394A JP3628042B2 (en) | 1994-07-20 | 1994-07-20 | Multiple communication method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH0833070A JPH0833070A (en) | 1996-02-02 |
JP3628042B2 true JP3628042B2 (en) | 2005-03-09 |
Family
ID=15861148
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP16806394A Expired - Lifetime JP3628042B2 (en) | 1994-07-20 | 1994-07-20 | Multiple communication method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3628042B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008078585A1 (en) | 2006-12-27 | 2008-07-03 | Kabushiki Kaisha Yaskawa Denki | Master slave communication system and master slave communication method |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7266608B2 (en) | 2000-01-20 | 2007-09-04 | Mitsubishi Denki Kabushiki Kaisha | System for punctually sending and receiving serial data and a method for sending and receiving the serial data |
JP4068592B2 (en) | 2004-05-28 | 2008-03-26 | 株式会社東芝 | Wireless communication device |
JP4701977B2 (en) | 2005-10-06 | 2011-06-15 | 株式会社デンソー | In-vehicle network diagnosis system and in-vehicle control device |
JP4685610B2 (en) * | 2005-11-29 | 2011-05-18 | 日立オートモティブシステムズ株式会社 | Control devices for vehicles, etc. |
KR100761010B1 (en) * | 2007-04-05 | 2007-09-21 | 김재홍 | Screen information management method and system using access direct of video memory |
JP2010056964A (en) * | 2008-08-28 | 2010-03-11 | Canon Inc | Receiving apparatus and control method thereof, program, and recording medium |
US8934351B2 (en) | 2011-03-24 | 2015-01-13 | Fujitsu Ten Limited | Communication apparatus and communication system |
JP5671390B2 (en) * | 2011-03-24 | 2015-02-18 | 富士通テン株式会社 | Communication apparatus and communication system |
JP2018148337A (en) * | 2017-03-03 | 2018-09-20 | ファナック株式会社 | Communication system |
-
1994
- 1994-07-20 JP JP16806394A patent/JP3628042B2/en not_active Expired - Lifetime
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008078585A1 (en) | 2006-12-27 | 2008-07-03 | Kabushiki Kaisha Yaskawa Denki | Master slave communication system and master slave communication method |
Also Published As
Publication number | Publication date |
---|---|
JPH0833070A (en) | 1996-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2754057B1 (en) | Circuit and electronic module for automatic addressing | |
US5450403A (en) | Method and apparatus for multiplex transmission | |
JP3628042B2 (en) | Multiple communication method | |
US5737335A (en) | Communication system using time division multiplex signal transmission | |
JPH08500707A (en) | Network interface | |
JPH0773270B2 (en) | Data communication method and multiple connection system | |
US7883107B2 (en) | Air bag control apparatus | |
JPH0566079B2 (en) | ||
CN113438139B (en) | Device and method for checking frames from a communication bus | |
JP3303469B2 (en) | Multiplex transmission system | |
US5452308A (en) | Method for monitoring symmetrical two-wire bus lines and two-wire bus interfaces and device for carrying out the method | |
US5299194A (en) | Multiplex transmission system | |
KR960009471B1 (en) | Multiplex transmission method | |
JP2983319B2 (en) | Communication device | |
JPH0530115A (en) | Polling system | |
JPH089471A (en) | Mobile communication system | |
EP0788929A1 (en) | Communication system for data transmission in a control device of a car | |
JPH04347951A (en) | Method for data transmission between plural inverters | |
JP3221259B2 (en) | Bus type duplex transmission equipment | |
KR100272828B1 (en) | Lan system of vehicle using distribution and concentration controlled method | |
JPH0851413A (en) | Data communication equipment | |
JP2988199B2 (en) | Power window drive | |
JP6617091B2 (en) | Electronic control unit for automobile | |
JP3440350B2 (en) | Communication device | |
JPH0498931A (en) | Communication equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20041207 |
|
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: 20071217 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081217 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091217 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101217 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111217 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121217 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121217 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131217 Year of fee payment: 9 |
|
EXPY | Cancellation because of completion of term |