JP4071450B2 - Rolling code generation method and vehicle control apparatus using rolling code - Google Patents

Rolling code generation method and vehicle control apparatus using rolling code Download PDF

Info

Publication number
JP4071450B2
JP4071450B2 JP2001103767A JP2001103767A JP4071450B2 JP 4071450 B2 JP4071450 B2 JP 4071450B2 JP 2001103767 A JP2001103767 A JP 2001103767A JP 2001103767 A JP2001103767 A JP 2001103767A JP 4071450 B2 JP4071450 B2 JP 4071450B2
Authority
JP
Japan
Prior art keywords
vehicle
code
data
travel distance
rolling code
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
JP2001103767A
Other languages
Japanese (ja)
Other versions
JP2002295085A (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.)
Yazaki Corp
Original Assignee
Yazaki Corp
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 Yazaki Corp filed Critical Yazaki Corp
Priority to JP2001103767A priority Critical patent/JP4071450B2/en
Publication of JP2002295085A publication Critical patent/JP2002295085A/en
Application granted granted Critical
Publication of JP4071450B2 publication Critical patent/JP4071450B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Lock And Its Accessories (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、車両のキーレスエントリー等の暗号に用いられるローリングコードの生成方法及びローリングコードを用いた車両制御装置に関する。
【0002】
【従来の技術】
例えば、車両のドアを施錠、解錠する際に、その都度キーシリンダー内にキーを挿入して回転操作することは面倒であり、より簡単に車両用ドアの施解錠を行うことができるキーレスエントリーシステムが実用に供されている。
【0003】
キーレスエントリーシステムでは、運転者が携行するキー側からIDコードを送信し、車両側にてこのIDコードを受信し、受信されたIDコードが当該車両のIDと一致することが確認された際に、電動操作で車両用ドアを施錠、或いは解錠する。この際、IDコードはキー側から車両側へ無線信号で送信されるため、当該IDコードが他者にモニターされることがあり、モニターされた場合には、車両用ドアを容易に解錠されてしまう。
【0004】
従って、このような問題を解決するため、従来より、ローリングコードを用いることにより、IDコードを他者に知られないように構成されたものが種々提案されている。
【0005】
図10は、ローリングコードを用いたキーレスエントリシステムの第1の従来例の構成を示すブロック図であり、同図に示すように、このキーレスエントリシステム101は、運転者が携行する遠隔ユニット102と、車両112に搭載され遠隔ユニット102との間でコード通信を行う車載ユニット103とを有している。
【0006】
遠隔ユニット102は、IDコードが記憶されるIDコードメモリ104と、送信カウンタ105と、IDコード及び送信カウンタのカウント値に基づいてローリングコードを生成するコード生成部106と、送信部107と、を具備している。また、車載ユニット103は、遠隔ユニット102から送信されたローリングコードを受信する受信部108と、受信されたローリングコードを解読するコード解読部109と、送信カウンタ110と、IDコードメモリ111と、を具備している。
【0007】
そして、運転者は、遠隔ユニット102にて操作スイッチ(図示省略)を押すと、ローリングコードが送信データとして車載ユニット103へ送信される。該車載ユニット103では、遠隔ユニット102から送信されたローリングコードを解読し、解読の結果読み取られるIDコードが、車載ユニット103のIDコードメモリ111内に記憶されているIDコードと一致したことが確認された場合に、車両112のドアの施錠、或いは解錠を行うようにしている。また、ローリングコードは、送信の都度変更されるので、秘匿性が確保される。
【0008】
ところが、このような従来におけるキーレスエントリーシステムに用いられるローリングコードの生成方法では、ローリングコードがその都度切り換えられる方式を採用することにより、他者にドアを開けられるという危険性を極めて低くすることができるものの、遠隔ユニット102の操作スイッチが、コード送信とは無関係に押された場合には、ローリングコードの照合ができなくなる場合がある。
【0009】
即ち、車両を運転しないときには、通常、運転者は遠隔ユニット102を携行しており、遠隔ユニット102の操作スイッチが無意味に押されると、遠隔ユニット102の送信カウンタ105がインクリメントされ、ローリングコードが更新される。これに対して、車載ユニット103の送信カウンタ110におけるカウント値は更新されないので、このような状態で、遠隔ユニット102から車載ユニット103へローリングコードを送信すると、車載ユニット103にてローリングコードを解読して得られるIDコードが予め設定されているIDコードと一致せず、ドア解錠等の操作を行うことができなくなってしまうというトラブルが発生する。
【0010】
操作スイッチが無意味に押される回数が少ない場合には、ソフト的な処理で対応し、ローリングコードを照合することができるものの、操作スイッチの押される回数が多い場合には、IDコードの照合ができなくなってしまい、このような場合には、再度ローリングコードの設定をやり直さなければならず、操作が面倒である。
【0011】
また、第2の従来例として、図11に示すように、時計回路を用いてローリングコードを生成するキーレスエントリシステム121が知られている。即ち、このキーレスエントリシステム121では、車載ユニット123に複数のアドレス、及び各アドレスに対応した初期値が記録された初期値メモリ125が設けられており、更に、時計回路124が設置されている。そして、時計回路124より得られる時間データに基づいて初期値メモリ125のアドレスを決定して初期値データを取り出し、この初期値データに基づいてローリングコードを生成することにより、より秘匿性の高いコード通信を可能としている。
【0012】
ところが、このような構成を有するキーレスエントリシステム121においても、前述した図10に示したキーレスエントリシステム101と同様に、遠隔ユニット122にて無意味に操作スイッチを押した場合には、IDコードの照合ができなくなってしまうという問題が生じる。
【0013】
更に、第3の従来例として、特開平9−177397号公報には、初期値及び補助コードが予め記録された初期値カードを用意し、該初期値、及び補助コードを用いてスクランブル演算することにより、解読が極めて困難なローリングコードを生成し、このローリングコードが遠隔ユニット側と車載ユニット側との間で一致することを確認してドアの施錠、解錠を行うようにする内容が記載されている。
【0014】
しかし、このような構成においても、前述した第1の従来例、第2の従来例と同様に、遠隔ユニットにて無意味に操作スイッチが押された場合には、IDコードの照合ができなくなるという問題が発生する。
【0015】
【発明が解決しようとする課題】
前述したように、従来におけるローリングコードの生成方法では、遠隔ユニットの操作スイッチが、無意味に押された場合(コード送信とは関係なく押された場合)には、遠隔ユニットより送信されるローリングコードと、車載ユニットで照合を行うためのローリングコードとが一致しなくなることがあり、遠隔操作ができなくなってしまうという問題が発生していた。
【0016】
この発明は、このような従来の課題を解決するためになされたものであり、その目的とするところは、遠隔ユニットの操作スイッチの無意味な操作が行われた場合においても確実にコード通信を行うことのできるローリングコードの生成方法及びローリングコードを用いた車両制御装置を提供することにある。
【0017】
【課題を解決するための手段】
上記目的を達成するため、本願請求項1に記載の発明は、遠隔ユニットから車両に搭載される車載ユニットへ送信し、車載機器の動作の可否を判断する際に使用するローリングコードを生成する方法であって、エンジンが停止された際に、前記車両の走行距離データを前記遠隔ユニットに送信し、前記遠隔ユニットは、この走行距離データを記憶し、前記遠隔ユニットは、車両固有の基本コードと、前記走行距離データに基づいて、使用する度にそれぞれ異なるデータとなるローリングコードを生成することを特徴とする。
【0018】
請求項2に記載の発明は、遠隔ユニットから車両に搭載される車載ユニットへ送信し、車載機器の動作の可否を判断する際に使用するローリングコードを生成する方法であって、エンジンが停止された際に、前記車両の走行距離データを前記遠隔ユニットに送信し、前記遠隔ユニットは、時系列的に得られる走行距離データを複数記憶し、前記車両固有の第1の基本コード、及び第2の基本コードと、前記複数の走行距離データのうちの第1の走行距離データ、及び第2の走行距離データとに基づいて、使用する度にそれぞれ異なるデータとなるローリングコードを生成することを特徴とする。
【0019】
請求項3に記載の発明は、前記第1の基本コード及び第2の基本コードの少なくとも一方と、前記第1の走行距離データ及び第2の走行距離データの少なくとも一方と、の組み合わせに基づいて前記車両のドアの開閉を許可する際に使用する第1のローリングコードを生成し、前記第1の基本コード及び第2の基本コードの少なくとも一方と、前記第1の走行距離データ及び第2の走行距離データの少なくとも一方と、の組み合わせのうち、前記第1のローリングコード生成時に使用した組み合わせとは異なる組み合わせに基づいて前記車両のエンジン始動を許可する際に使用する第2のローリングコードを生成することを特徴とする。
【0020】
請求項4に記載の発明は、今回車両に搭乗する際に用いる前記第1の走行距離データ、及び第2の走行距離データは、それぞれ、前々回のエンジン停止時における走行距離データ、及び前回エンジン停止時における走行距離データであることを特徴とする。
【0021】
請求項5に記載の発明は、遠隔ユニットと、車両に搭載される車載ユニットとの間でデータ伝送を行い、遠隔ユニットより車載ユニットへ送られるローリングコードが適正であることを確認して、車載機器の動作を許可し、車両の盗難を防止する車両制御装置において、前記車載ユニットは、エンジンが停止された際に、前記車両の走行距離データを前記遠隔ユニットに送信する送信手段(16)を有し、前記遠隔ユニットは、車両固有の基本コード、及び当該車両の走行距離データに基づいて前記ローリングコードを生成するコード生成手段(8)を具備したことを特徴とする。
【0022】
請求項6に記載の発明は、遠隔ユニットと、車両に搭載される車載ユニットとの間でデータ伝送を行い、遠隔ユニットより車載ユニットへ送られるローリングコードが適正であることを確認して、車載機器の動作を許可し、車両の盗難を防止する車両制御装置において、前記車載ユニットは、エンジンが停止された際に、前記車両の走行距離データを、前記遠隔ユニットに送信する送信手段(16)を有し、前記遠隔ユニットは、前記車載ユニットより送信される前記走行距離データを受信する受信手段(6)と、前記車両固有の第1の基本コード及び第2の基本コードの少なくとも一方と、前記受信手段で受信された第1の走行距離データ及び第2の走行距離データの少なくとも一方と、の組み合わせに基づいて第1のローリングコードを生成し、前記第1の基本コード及び第2の基本コードの少なくとも一方と、前記第1の走行距離データ及び第2の走行距離データの少なくとも一方と、の組み合わせのうち、前記第1のローリングコードの生成時に使用した組み合わせとは異なる組み合わせに基づいて第2のローリングコードを生成するコード生成手段(8)を有し、前記車載ユニットは更に、前記第1のローリングコード、及び第2のローリングコードを用いて、前記車載機器の動作の許可判断を行うコード解読手段(17)を具備したことを特徴とする。
【0023】
請求項7に記載の発明は、遠隔ユニットと、車両に搭載される車載ユニットとの間でデータ伝送を行い、遠隔ユニットより車載ユニットへ送られるローリングコードが適正であることを確認して、車載機器の動作を許可し、車両の盗難を防止する車両制御装置において、前記車載ユニットは、エンジンが停止された際に、前記車両の走行距離データを、前記遠隔ユニットに送信する送信手段(16)を有し、前記遠隔ユニットは、前記車載ユニットより送信される第1の走行距離データ、及び第2の走行距離データを記憶する遠隔側記憶手段と、車両固有の第1の基本コードと、前記第1の走行距離データ及び第2の走行距離データの少なくとも一方と、に基づいて第1のローリングコードを生成し、且つ、車両固有の第2の基本コードと、前記第1の走行距離データ及び第2の走行距離データの少なくとも一方と、に基づいて第2のローリングコードを生成するローリングコード生成手段と、を具備し、前記車載ユニットは更に、前記車両の第1の走行距離データ、及び第2の走行距離データを記憶する車載側記憶手段と、前記遠隔ユニットより送信される第1のローリングコード、及び前記第1の基本コードに基づいて、第1の走行距離データ及び第2の走行距離データの少なくとも一方を解読し、且つ、前記遠隔ユニットより送信される第2のローリングコード、及び前記第2の基本コードに基づいて、第1の走行距離データ及び第2の走行距離データの少なくとも一方を解読するローリングコード解読手段と、前記ローリングコード解読手段で解読された第1の走行距離データ、及び第2の走行距離データが、前記車載側記憶手段に記憶されている第1の走行距離データ、及び第2の走行距離データと一致するかどうかを照合する照合手段と、前記第1のローリングコードを解読して得られる第1の走行距離データ及び第2の走行距離データの少なくとも一方の照合が確認された際に、車両のドアの施錠、解錠を行い、前記第2のローリングコードを解読して得られる第1の走行距離データ及び第2の走行距離データの少なくとも一方の照合が確認された際に、車両のエンジンの始動を許可する手段と、を有することを特徴とする。
【0024】
請求項8に記載の発明は、今回車両に搭乗する際に用いる前記第1の走行距離データ、及び第2の走行距離データは、それぞれ、前々回のエンジン停止時における走行距離データ、及び前回エンジン停止時における走行距離データであることを特徴とする。
【0025】
【発明の実施の形態】
以下、本発明の実施形態を図面に基づいて説明する。図1は、本発明の一実施形態に係る車両制御装置の構成を示すブロック図である。同図に示すように、該車両制御装置1は、運転者が携行可能な遠隔ユニット2と、車両4に搭載され遠隔ユニット2との間でコード通信が可能とさた車載ユニット3と、を具備している。
【0026】
遠隔ユニット2は、当該車両4固有の基本コードが記憶されるIDコードメモリ5と、車載ユニット3から送信される走行距離データを受信する受信部6と、受信された走行距離データを記憶する走行距離メモリ7と、基本コードと走行距離データとに基づいて、後述する手順でローリングコードを生成するコード生成部8と、生成されたローリングコードを車載ユニット3へ送信する送信部9と、を具備している。
【0027】
車載ユニット3は、遠隔ユニット2から送信されるローリングコードを受信する受信部10と、マイコン11と、車両4に搭載される走行距離メータ(累積走行距離を示すメータ)12の出力信号を入力するインターフェース13と、当該車両4のスタータリレー14と連動し、該スタータリレー14より与えられるイグニッション信号を入力するインターフェース15と、走行距離メータ12より与えられる走行距離データを遠隔ユニット2へ送信する送信部16と、を具備している。
【0028】
マイコン11は、受信されたローリングコードを解読するコード解読部17と、当該車両4固有の基本コードが記憶されるIDコードメモリ18と、走行距離メータ12より与えられる走行距離データを記憶する走行距離メモリ19と、コードの照合を行うコード照合部20と、を有している。
【0029】
遠隔ユニット2のIDコードメモリ5、及び車載ユニット3のIDコードメモリ18には、それぞれ2つの基本コード(第1の基本コード、第2の基本コード)が記憶されている。
【0030】
図2は、ローリングコードの生成に用いる走行距離データを車載ユニット3に取り込む処理の流れを示すフローチャート、図3は、走行距離データを遠隔ユニット2に取り込む処理の流れを示すフローチャート、図4は、ドアロックを施錠、解錠させる際の遠隔ユニット2における処理手順を示すフローチャート、図5は、ドアロックを施錠、解錠させる際の車載ユニット3における処理手順を示すフローチャート、図6は、エンジンを始動させる際の遠隔ユニット2における処理手順を示すフローチャート、そして、図7は、エンジンを始動させる際の車載ユニット3における処理手順を示すフローチャートであり、以下、各フローチャートを参照しながら、本実施形態の作用について説明する。
【0031】
まず、車両4のエンジンを停止する際に(図2の、ステップST1でYES)、走行距離メータ12より出力される走行距離データが、インターフェース13を介してマイコン11にて読み取られる(ステップST2)。そして、今回エンジンを停止した際に得られる走行距離データDnと、前回エンジンを停止した際に得られた走行距離データDn-1(走行距離メモリ19に記憶されている)とを比較し(ステップST3)、Dn≧Dn-1の場合には(ステップST3でYES)、ステップST5へ進む。
【0032】
また、Dn≧Dn-1でない場合には(ステップST3でNO)、「走行距離メータがリセットされる走行距離」から「1回の給油による最高走行距離」を減じた値Daと、前回エンジン停止時の走行距離データDn-1とが比較され(ステップST4)、Dn-1>Daの場合には(ステップST4でYES)、ステップST5へ進む。即ち、Dn-1>Daが成立する場合には、走行距離メータの示す数値が最大表示可能距離を超え、ゼロにリセットされたものと判断し、ステップST5の処理へ進む。
【0033】
次いで、走行距離メータ12より検出された走行距離データを2進数データに変換し(ステップST5)、更に、この2進数データを走行距離メモリ19内に格納する。そして、この2進数データを走行距離データDnとし、前回エンジン停止時に該走行距離メモリ19内に格納された走行距離データDnを、データDn-1に書き換える(ステップST6)。つまり、走行距離メモリ19内には、今回エンジン停止時の走行距離データDnと、前回エンジン停止時の走行距離データDn-1とが記憶され、エンジンが停止される度に、このデータは逐次書き換えられる。
【0034】
また、2進数に変換された走行距離データは、送信部16を介して遠隔ユニット2へ送信される(ステップST7)。
【0035】
他方、ステップST4の処理で、Dn-1>Daが成立しない場合には(ステップST4でNO)、走行距離メモリ11内のデータを書き換えずに、走行距離データを送信する。
【0036】
遠隔ユニット2では、車載ユニット3より送信された2進数の走行距離データを受信部6にて受信し(図3の、ステップST11)、該走行距離データを読み取る(ステップST12)。そして、前記した走行距離メモリ19の場合と同様に、新たに読み取られた走行距離データDnを、遠隔ユニット2の走行距離メモリ7内に格納し、該走行距離メモリ7内に既に格納されている前回エンジン停止時の走行距離データDnを、データDn-1に書き換える処理を行う(ステップST13)。
【0037】
次いで、運転者が車両4のドアを解錠するため、遠隔ユニット2の操作スイッチ(図示省略)を押すと(図4の、ステップST21でYES)、遠隔ユニット2のコード生成部8では、IDコードメモリ5内に記憶されている第1の基本コード、及び走行距離メモリ7内に記憶されている前々回エンジン停止時における走行距離データDn-1を読み出し(ステップST22)、これらのデータに基づき、第1の暗号化アルゴリズムにより、第1のローリングコードを生成する(ステップST23)。なお、ここでは運転者が一旦車両から降りた後、再度乗車して運転を開始する場合であるので、前回エンジン停止時の走行距離データがDn、前々回エンジン停止時の走行距離データがDn-1となる。また、ローリングコードを生成するための暗号化アルゴリズムについての具体的な説明は後述する。
【0038】
そして、送信部9は、生成された第1のローリングコードを、車載ユニット3へ送信する(ステップST24)。
【0039】
車載ユニット3では、遠隔ユニット2より送信された第1のローリングコードを、受信部10にて受信し、更に、コード解読部17が有する記憶部(図示省略)に一旦記憶する(図5の、ステップST31)。
【0040】
次いで、コード解読部17では、記憶された第1のローリングコードと、IDコードメモリ18に記憶されている第1の基本コードに基づき、コード生成部8で用いた第1の暗号化アルゴリズムと反対の手順となるアルゴリズム(解読アルゴリズム)により、走行距離データDn-1を求める(ステップST32)。
【0041】
そして、コード照合部20では、求められた走行距離データDn-1と、走行距離メモリ19に記憶されている走行距離データDn-1とを比較し(ステップST33)、これらの一致が確認された際には(ステップST33でYES)、車両4のドアロックを自動で解錠する操作を行う(ステップST34)。なお、ここでは、運転を開始する場合についての例を挙げているので「解錠」としているが、ドアロックを施錠する場合についても同様に行うことができる。
【0042】
走行距離データDn-1の一致が確認されない場合には(ステップST33でNO)、ドアの施錠、解錠は行われない。こうして、運転者は、遠隔ユニット2を操作することにより、車両4のドアロックを施錠、或いは解錠させることができる。
【0043】
次に、前述の処理により、運転者が車両4のドアロックを解錠した後、エンジンを始動させる操作について説明する。
【0044】
運転者により、車両4のキーシリンダ内にキーが挿入されたことがスタータリレー14により検出されると(図6の、ステップST41でYES)、遠隔ユニット2のコード生成部8では、走行距離メモリ7に記憶されている走行距離データDn、Dn-1を読み出す(ステップST42)。そして、IDコードメモリ5に記憶されている第1の基本コード、第2の基本コードと、2つの走行距離データDn、Dn-1に基づき、第2の暗号化アルゴリズムを用いて第2のローリングコードを生成する(ステップST43)。
【0045】
その後、生成された第2のローリングコードは、送信部9より車載ユニット3へ送信される(ステップST44)。
【0046】
また、車載ユニット3の受信部10では、遠隔ユニット2より送信された第2のローリングコードを受信し、更に、コード解読部17が有する記憶部に、この第2のローリングコードを一旦記憶する(図7の、ステップST51)。
【0047】
そして、コード解読部17では、第2のローリングコードと、IDコードメモリ18に記憶されている第1の基本コード及び第2の基本コードとに基づき、前述した第2の暗号化アルゴリズムとは反対となるアルゴリズム(解読アルゴリズム)を用いて、走行距離データDn、Dn-1を求める(ステップST52)。
【0048】
次いで、求められた走行距離データDn、Dn-1と、走行距離メモリ19に記憶されている走行距離データDn、Dn-1とが一致するかどうかが判断され(ステップST53)、一致する場合には(ステップST53でYES)、エンジンECUにエンジン始動許可信号を送信する(ステップST54)。これにより、エンジンを始動させることができる。また、走行距離データDn、Dn-1の一致が確認されない場合には(ステップST53でNO)、エンジンの始動は許可されない。つまり、遠隔ユニット2を携行している人のみがエンジンを始動させることができる。
【0049】
次に、基本コード、及び走行距離データを用いて、ローリングコードを生成する具体的な処理について説明する。
【0050】
図8は、第1の暗号化アルゴリズムを用いて、第1のローリングコードを生成する手順を示す説明図である。
【0051】
いま、第1の基本コードが「211059(10進)」で、走行距離データDn-1が「003038(10進表示)」である場合について説明する。第1の基本コードを、2進表示に変換すると、上3桁の「211(10進)」は、「11010011(2進)」となり、下3桁の「059(10進)」は「00111011(2進)」となる。これを16進表示すると「D3(16進)」、「3B(16進)」となる。
【0052】
同様に、走行距離データDn-1を2進表示に変換すると、上3桁の「003(10進)」は、「00000011(2進)」となり、下3桁の「038(10進)」は、「00100110(2進)」となる。これを16進表示すると「03(16進)」、「26(16進)」となる。
【0053】
そして、第1の暗号化アルゴリズムでは、第1の基本コードの2進表示データと、走行距離データDn-1の2進表示データとの、排他的論理和を演算し、これを第1のローリングコードとする。この場合には、第1のローリングコードは、「D01D(16進)」となる。
【0054】
また、解読アルゴリズムは、上記の処理手順とは反対の手順となる。
【0055】
図9は、第2の暗号化アルゴリズムを用いて、第2のローリングコードを生成する手順を示す説明図である。
【0056】
いま、第1の基本コードが「211059(10進)」、第2の基本コードが「080184(10進)」で、走行距離データDn-1が「003038(10進)」、走行距離データDnが「007164(10進)」である場合について説明する。
【0057】
まず、第1の基本コード及び走行距離データDn-1に基づき、前述した第1の暗号化アルゴリズムと同様の手順で、コードデータを生成する。即ち、ここで得られるコードデータは、前述したように「D01D(16進)」となる。これを第1のコードデータとする。
【0058】
同様に、第2の基本コード及び走行距離データDnに基づき、第1の暗号化アルゴリズムと同様の手順で、コードデータ(第2のコードデータ)を生成する。その結果、第2のコードデータとして「571C(16進)」が得られる。
【0059】
そして、第1のコードデータと、第2のコードデータとの排他的論理和を演算することにより、第2のローリングコード「8701(16進)」を得る。
【0060】
また、解読アルゴリズムは、第2のローリングコードを生成する手順とは反対の手順となる。
【0061】
このようにして、本実施形態に係る車両制御装置1では、車両の走行距離メータ12より得られる走行距離データに基づいて、ローリングコードを生成し、該ローリングコードの照合が確認された際に、車両4のドアロックの施錠、解錠を許可し、且つ、エンジンの始動を許可するように構成されている。
【0062】
従って、常時ランダムな(規則性のない)ローリングコードを生成することができるので、秘匿性を向上させることができる。また、運転者が遠隔ユニット2の操作スイッチ(図示省略)を無意味に(遠隔操作とは関係なく)押した場合においても、遠隔ユニット2に記憶されている走行距離データDn、Dn-1と、車載ユニット3に記憶されている走行距離データDn、Dn-1とは一致するので、遠隔ユニット2と車載ユニット3との間のデータの整合性が取れなくなるといった問題が生じることはなく、確実な遠隔操作が可能となる。
【0063】
以上、本発明のローリングコードの生成方法及びローリングコードを用いた車両制御装置を図示の実施形態に基づいて説明したが、本発明はこれに限定されるものではなく、各部の構成は、同様の機能を有する任意の構成のものに置き換えることができる。
【0064】
例えば、本実施形態では、第1の暗号化アルゴリズムにて、第1の基本コード、及び走行距離データDn-1を用い、第2の暗号化アルゴリズムにて、第1、第2の基本コード、及び走行距離データDn-1、Dnを用いる例について説明したが、本発明は、これに限定されるものではなく、第1の基本コード、第2の基本コードと、2つの走行距離データDn-1、Dnを任意に組み合わせてローリングコードを生成するようにすることも可能である。
【0065】
また、上記実施形態では、前々回エンジン停止時の走行距離データDn-1、及び前回エンジン停止時の走行距離データDnの2つの走行距離データを用いてローリングコードを生成する例について説明したが、1つ、或いは3以上の走行距離データを用いてローリングコードを生成するように構成することも可能である。
【0066】
更に、上記実施形態では、ローリングコードを用いて車両のドアロックの施錠、解錠の切り換え、及びエンジン始動の許可を制御する例について説明したが、本発明はこれに限定されるものではなく、車両内に搭載されるその他の機器を制御するように構成することも可能である。
【0067】
また、上記実施形態では、遠隔ユニット2より送信されたローリングコードを車載ユニット3にて受信し、受信されたローリングコードを解読アルゴリズムを用いて解読し、走行距離データの一致を確認する方法を採用しているが、これ以外の方法として、車載ユニット3にて、遠隔ユニット2で用いられる暗号化アルゴリズムと同様の方法でローリングコードを生成し、遠隔ユニット2より送信されたローリングコードと、車載ユニット3で生成されたローリングコードとの一致、不一致を確認するように構成することも可能である。
【0068】
更に、上記実施形態では、暗号化アルゴリズムで、排他的論理和を用いる例について説明したが、本発明はこれに限定されるものではなく、その他の論理演算を用いることもできる。
【0069】
【発明の効果】
以上説明したように、本発明に係るローリングコード生成方法、及びローリングコードを用いた車両制御装置では、車両に搭載される走行距離メータより得られる走行距離データを用いてローリングコードを生成し、ドアロックの施錠、解錠、エンジン始動の許可等の、車両に搭載される各種機器を制御するようにしているので、秘匿性に優れ、且つ、遠隔ユニットの操作ボタンが無意味に押された場合においても、確実に車載機器を制御することができる。
【図面の簡単な説明】
【図1】本発明の一実施形態に係る車両制御装置の構成を示すブロック図である。
【図2】ローリングコードの生成に用いる走行距離データを、車載ユニットに取り込む処理の流れを示すフローチャートである。
【図3】走行距離データを遠隔ユニットに取り込む処理の流れを示すフローチャートである。
【図4】ドアロックを施錠、解錠させる際の遠隔ユニットにおける処理手順を示すフローチャートである。
【図5】ドアロックを施錠、解錠させる際の車載ユニットにおける処理手順を示すフローチャートである。
【図6】エンジンを始動させる際の遠隔ユニットにおける処理手順を示すフローチャートである。
【図7】エンジンを始動させる際の車載ユニットにおける処理手順を示すフローチャートである。
【図8】第1の暗号化アルゴリズムを用いて、第1のローリングコードを生成する手順を示す説明図である。
【図9】第2の暗号化アルゴリズムを用いて、第2のローリングコードを生成する手順を示す説明図である。
【図10】第1の従来例に係るキーレスエントリシステムの構成を示す説明図である。
【図11】第2の従来例に係るキーレスエントリシステムの構成を示す説明図である。
【符号の説明】
1 車両制御装置
2 遠隔ユニット
3 車載ユニット
4 車両
5 IDコードメモリ
6 受信部
7 走行距離メモリ
8 コード生成部
9 送信部
10 受信部
11 マイコン
12 走行距離メータ
13 インターフェース
14 スタータリレー
15 インターフェース
16 送信部
17 コード解読部
18 IDコードメモリ
19 走行距離メモリ
20 コード照合部
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a method for generating a rolling code used for encryption such as a keyless entry of a vehicle, and a vehicle control device using the rolling code.
[0002]
[Prior art]
For example, when locking and unlocking a vehicle door, it is troublesome to insert a key into the key cylinder and rotate it each time, making it easier to lock and unlock the vehicle door. The system is in practical use.
[0003]
In the keyless entry system, an ID code is transmitted from the key carried by the driver, this ID code is received on the vehicle side, and it is confirmed that the received ID code matches the ID of the vehicle. The vehicle door is locked or unlocked by electric operation. At this time, since the ID code is transmitted by radio signal from the key side to the vehicle side, the ID code may be monitored by another person. When monitored, the vehicle door is easily unlocked. End up.
[0004]
Therefore, in order to solve such a problem, various types have been conventionally proposed in which a rolling code is used so that the ID code is not known to others.
[0005]
FIG. 10 is a block diagram showing a configuration of a first conventional example of a keyless entry system using a rolling code. As shown in FIG. 10, this keyless entry system 101 includes a remote unit 102 carried by a driver. And an in-vehicle unit 103 which is mounted on the vehicle 112 and performs code communication with the remote unit 102.
[0006]
The remote unit 102 includes an ID code memory 104 in which an ID code is stored, a transmission counter 105, a code generation unit 106 that generates a rolling code based on the ID code and the count value of the transmission counter, and a transmission unit 107. It has. The in-vehicle unit 103 includes a receiving unit 108 that receives the rolling code transmitted from the remote unit 102, a code decoding unit 109 that decodes the received rolling code, a transmission counter 110, and an ID code memory 111. It has.
[0007]
When the driver presses an operation switch (not shown) on the remote unit 102, the rolling code is transmitted to the in-vehicle unit 103 as transmission data. The in-vehicle unit 103 decrypts the rolling code transmitted from the remote unit 102 and confirms that the ID code read as a result of the decryption matches the ID code stored in the ID code memory 111 of the in-vehicle unit 103. In this case, the door of the vehicle 112 is locked or unlocked. Also, since the rolling code is changed every time it is transmitted, confidentiality is ensured.
[0008]
However, in such a conventional method for generating a rolling code used in a keyless entry system, the risk that the door can be opened by another person can be extremely reduced by adopting a method in which the rolling code is switched each time. Although possible, if the operation switch of the remote unit 102 is pressed regardless of the code transmission, the rolling code may not be verified.
[0009]
That is, when the vehicle is not driven, the driver usually carries the remote unit 102, and when the operation switch of the remote unit 102 is pushed meaninglessly, the transmission counter 105 of the remote unit 102 is incremented and the rolling code is Updated. On the other hand, since the count value in the transmission counter 110 of the in-vehicle unit 103 is not updated, when the rolling code is transmitted from the remote unit 102 to the in-vehicle unit 103 in this state, the in-vehicle unit 103 decodes the rolling code. The ID code obtained in this way does not match the ID code set in advance, and a trouble that the door unlocking operation cannot be performed occurs.
[0010]
If the number of times that the operation switch is pressed is meaningless is small, it can be handled by software processing, and the rolling code can be verified. However, if the number of times that the operation switch is pressed is large, ID code verification can be performed. In such a case, the rolling code must be set again, and the operation is troublesome.
[0011]
As a second conventional example, a keyless entry system 121 that generates a rolling code by using a clock circuit is known as shown in FIG. That is, in this keyless entry system 121, the in-vehicle unit 123 is provided with an initial value memory 125 in which a plurality of addresses and initial values corresponding to the addresses are recorded, and a clock circuit 124 is further provided. Then, the address of the initial value memory 125 is determined based on the time data obtained from the clock circuit 124, the initial value data is taken out, and a rolling code is generated based on the initial value data, so that a more confidential code Communication is possible.
[0012]
However, in the keyless entry system 121 having such a configuration as well, as in the case of the keyless entry system 101 shown in FIG. There arises a problem that collation cannot be performed.
[0013]
Further, as a third conventional example, Japanese Patent Laid-Open No. Hei 9-17797 prepares an initial value card in which an initial value and an auxiliary code are recorded in advance, and scrambles using the initial value and the auxiliary code. Describes how to generate a rolling code that is extremely difficult to decipher, lock the door and unlock the door after confirming that the rolling code matches between the remote unit and the in-vehicle unit. ing.
[0014]
However, even in such a configuration, as in the first and second conventional examples, the ID code cannot be verified when the operation switch is meaninglessly pressed on the remote unit. The problem occurs.
[0015]
[Problems to be solved by the invention]
As described above, in the conventional method for generating a rolling code, when the operation switch of the remote unit is pressed meaninglessly (when pressed regardless of the code transmission), the rolling code transmitted from the remote unit is transmitted. There has been a problem that the code and the rolling code for collation with the in-vehicle unit may not match, which makes remote control impossible.
[0016]
The present invention has been made to solve such a conventional problem, and the object of the present invention is to reliably perform code communication even when a meaningless operation of an operation switch of a remote unit is performed. An object of the present invention is to provide a rolling code generation method that can be performed and a vehicle control device using the rolling code.
[0017]
[Means for Solving the Problems]
In order to achieve the above object, the invention according to claim 1 of the present application is a method for generating a rolling code that is transmitted from a remote unit to an in-vehicle unit mounted on a vehicle and used to determine whether or not the in-vehicle device can be operated. Because When the engine is stopped, the vehicle mileage data is transmitted to the remote unit, and the remote unit stores the mileage data, The remote unit generates a rolling code that becomes different data each time it is used, based on a basic code unique to a vehicle and the travel distance data.
[0018]
The invention according to claim 2 is a method for generating a rolling code to be used when transmitting from a remote unit to an in-vehicle unit mounted on a vehicle and determining whether the operation of the in-vehicle device can be performed. When the engine is stopped, the travel distance data of the vehicle is transmitted to the remote unit, and the remote unit stores a plurality of travel distance data obtained in time series, A first basic code unique to the vehicle and a second basic code; Of the plurality of mileage data Based on the first mileage data and the second mileage data, a rolling code that is different for each use is generated.
[0019]
The invention according to claim 3 is based on a combination of at least one of the first basic code and the second basic code and at least one of the first travel distance data and the second travel distance data. Generating a first rolling code for use in permitting opening and closing of the door of the vehicle, and at least one of the first basic code and the second basic code; the first mileage data; and the second Generating a second rolling code used when permitting engine start of the vehicle based on a combination different from the combination used at the time of generating the first rolling code out of a combination with at least one of mileage data It is characterized by doing.
[0020]
According to a fourth aspect of the present invention, the first travel distance data and the second travel distance data used when boarding the vehicle this time are the travel distance data at the time of the previous engine stop and the previous engine stop, respectively. It is the mileage data at the time.
[0021]
The invention according to claim 5 performs data transmission between the remote unit and the in-vehicle unit mounted on the vehicle, confirms that the rolling code sent from the remote unit to the in-vehicle unit is appropriate, In the vehicle control device that permits the operation of the device and prevents the vehicle from being stolen, The in-vehicle unit has transmission means (16) for transmitting mileage data of the vehicle to the remote unit when the engine is stopped. Based on vehicle-specific basic code and mileage data of the vehicle The rolling code Generate Code generation means (8) It is characterized by comprising.
[0022]
The invention according to claim 6 performs data transmission between the remote unit and the in-vehicle unit mounted on the vehicle, confirms that the rolling code sent from the remote unit to the in-vehicle unit is appropriate, In the vehicle control device that permits the operation of the device and prevents the vehicle from being stolen, The in-vehicle unit has transmission means (16) for transmitting the travel distance data of the vehicle to the remote unit when the engine is stopped, and the remote unit transmits the travel transmitted from the in-vehicle unit. Receiving means (6) for receiving distance data; At least one of the first basic code and the second basic code unique to the vehicle; Received by the receiving means Generating a first rolling code based on a combination of at least one of the first mileage data and the second mileage data, and at least one of the first basic code and the second basic code; A second rolling code is generated based on a combination different from the combination used when generating the first rolling code among the combinations of at least one of the first mileage data and the second mileage data. Code generating means (8), and the in-vehicle unit further includes: Using the first rolling code and the second rolling code, the permission determination of the operation of the in-vehicle device is performed. Code decoding means (17) It is characterized by comprising.
[0023]
The invention according to claim 7 performs data transmission between the remote unit and the vehicle-mounted unit mounted on the vehicle, confirms that the rolling code sent from the remote unit to the vehicle-mounted unit is appropriate, In the vehicle control device that permits the operation of the device and prevents the vehicle from being stolen, The in-vehicle unit has transmission means (16) for transmitting the mileage data of the vehicle to the remote unit when the engine is stopped. The remote unit includes remote storage means for storing first mileage data and second mileage data transmitted from the in-vehicle unit, a first basic code unique to the vehicle, and the first mileage. A first rolling code is generated based on at least one of the distance data and the second travel distance data, and the second basic code unique to the vehicle, the first travel distance data, and the second travel Rolling code generating means for generating a second rolling code based on at least one of the distance data, and the in-vehicle unit includes: More Based on the vehicle-side storage means for storing the first travel distance data and the second travel distance data of the vehicle, the first rolling code transmitted from the remote unit, and the first basic code , Decoding at least one of the first mileage data and the second mileage data, and based on the second rolling code transmitted from the remote unit and the second basic code, Rolling code decoding means for decoding at least one of mileage data and second mileage data, the first mileage data decoded by the rolling code decoding means, and the second mileage data are Collation means for collating whether or not the first mileage data and the second mileage data stored in the storage means match, and the first roll When the collation of at least one of the first mileage data and the second mileage data obtained by decoding the code is confirmed, the vehicle door is locked and unlocked, and the second rolling code is And a means for permitting the start of the engine of the vehicle when verification of at least one of the first travel distance data and the second travel distance data obtained by decoding is confirmed.
[0024]
In the invention according to claim 8, the first travel distance data and the second travel distance data used when boarding the vehicle this time are the travel distance data at the time of the previous engine stop and the previous engine stop, respectively. It is the mileage data at the time.
[0025]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a vehicle control apparatus according to an embodiment of the present invention. As shown in the figure, the vehicle control device 1 includes a remote unit 2 that can be carried by a driver, and an in-vehicle unit 3 that is mounted on a vehicle 4 and that can perform code communication with the remote unit 2. It has.
[0026]
The remote unit 2 includes an ID code memory 5 in which a basic code unique to the vehicle 4 is stored, a receiving unit 6 that receives travel distance data transmitted from the in-vehicle unit 3, and a travel that stores received travel distance data. Based on the distance memory 7, based on the basic code and mileage data, a code generation unit 8 that generates a rolling code in a procedure to be described later, and a transmission unit 9 that transmits the generated rolling code to the in-vehicle unit 3 is doing.
[0027]
The in-vehicle unit 3 inputs output signals of a receiving unit 10 that receives a rolling code transmitted from the remote unit 2, a microcomputer 11, and a mileage meter (meter that indicates a cumulative mileage) 12 mounted on the vehicle 4. An interface 15 that inputs the ignition signal given from the starter relay 14 in conjunction with the interface 13 and the starter relay 14 of the vehicle 4, and a transmission unit that sends the travel distance data given from the travel distance meter 12 to the remote unit 2. 16.
[0028]
The microcomputer 11 includes a code decoding unit 17 that decodes the received rolling code, an ID code memory 18 that stores a basic code unique to the vehicle 4, and a travel distance that stores travel distance data provided by the travel distance meter 12. A memory 19 and a code verification unit 20 that performs code verification are included.
[0029]
Two basic codes (a first basic code and a second basic code) are stored in the ID code memory 5 of the remote unit 2 and the ID code memory 18 of the in-vehicle unit 3, respectively.
[0030]
FIG. 2 is a flowchart showing a flow of a process for fetching mileage data used for generating a rolling code into the in-vehicle unit 3, FIG. 3 is a flowchart showing a flow of a process for taking the mileage data into the remote unit 2, FIG. 5 is a flowchart showing a processing procedure in the in-vehicle unit 3 when locking and unlocking the door lock, and FIG. 6 is a flowchart showing the processing procedure in the in-vehicle unit 3 when locking and unlocking the door lock. FIG. 7 is a flowchart showing a processing procedure in the in-vehicle unit 3 when starting the engine. FIG. 7 is a flowchart showing a processing procedure in the remote unit 2 when starting the engine. The operation of will be described.
[0031]
First, when the engine of the vehicle 4 is stopped (YES in step ST1 in FIG. 2), the travel distance data output from the travel distance meter 12 is read by the microcomputer 11 via the interface 13 (step ST2). . Then, the travel distance data Dn obtained when the engine is stopped this time and the travel distance data Dn-1 (stored in the travel distance memory 19) obtained when the engine was stopped the previous time are compared (steps). ST3) If Dn ≧ Dn−1 (YES in step ST3), the process proceeds to step ST5.
[0032]
If Dn ≧ Dn−1 is not satisfied (NO in step ST3), a value Da obtained by subtracting “maximum travel distance by one refueling” from “travel distance when the travel distance meter is reset” and the previous engine stop. Time travel distance data Dn-1 is compared (step ST4), and if Dn-1> Da (YES in step ST4), the process proceeds to step ST5. That is, when Dn-1> Da is established, it is determined that the numerical value indicated by the travel distance meter exceeds the maximum displayable distance and is reset to zero, and the process proceeds to step ST5.
[0033]
Next, the travel distance data detected by the travel distance meter 12 is converted into binary data (step ST5), and this binary data is stored in the travel distance memory 19. Then, this binary number data is used as travel distance data Dn, and the travel distance data Dn stored in the travel distance memory 19 at the previous engine stop is rewritten to data Dn-1 (step ST6). In other words, the travel distance memory 19 stores the travel distance data Dn when the engine is stopped this time and the travel distance data Dn-1 when the engine is stopped last time. It is done.
[0034]
The travel distance data converted into binary numbers is transmitted to the remote unit 2 via the transmitter 16 (step ST7).
[0035]
On the other hand, if Dn-1> Da is not satisfied in the process of step ST4 (NO in step ST4), the travel distance data is transmitted without rewriting the data in the travel distance memory 11.
[0036]
In the remote unit 2, the binary travel distance data transmitted from the in-vehicle unit 3 is received by the receiver 6 (step ST11 in FIG. 3), and the travel distance data is read (step ST12). As in the case of the travel distance memory 19, the newly read travel distance data Dn is stored in the travel distance memory 7 of the remote unit 2 and already stored in the travel distance memory 7. A process of rewriting the travel distance data Dn at the previous engine stop to the data Dn-1 is performed (step ST13).
[0037]
Next, when the driver depresses an operation switch (not shown) of the remote unit 2 to unlock the door of the vehicle 4 (YES in step ST21 in FIG. 4), the code generator 8 of the remote unit 2 The first basic code stored in the code memory 5 and the mileage data Dn-1 at the time of the previous engine stop stored in the mileage memory 7 are read (step ST22), and based on these data, A first rolling code is generated by the first encryption algorithm (step ST23). Here, since the driver once gets off the vehicle and then gets on again to start driving, the driving distance data at the previous engine stop is Dn, and the driving distance data at the previous engine stop is Dn−1. It becomes. A specific description of the encryption algorithm for generating the rolling code will be described later.
[0038]
And the transmission part 9 transmits the produced | generated 1st rolling code to the vehicle-mounted unit 3 (step ST24).
[0039]
In the in-vehicle unit 3, the first rolling code transmitted from the remote unit 2 is received by the receiving unit 10 and further temporarily stored in a storage unit (not shown) of the code decoding unit 17 (in FIG. 5, Step ST31).
[0040]
Next, the code decrypting unit 17 is opposite to the first encryption algorithm used in the code generating unit 8 based on the stored first rolling code and the first basic code stored in the ID code memory 18. The travel distance data Dn-1 is obtained by the algorithm (decoding algorithm) which becomes the procedure of (step ST32).
[0041]
Then, the code verification unit 20 compares the calculated travel distance data Dn-1 with the travel distance data Dn-1 stored in the travel distance memory 19 (step ST33), and confirms a match between them. In this case (YES in step ST33), an operation of automatically unlocking the door lock of the vehicle 4 is performed (step ST34). In addition, since the example about the case where a driving | operation starts is given here, it is set as "unlocking", However, It can carry out similarly about the case where a door lock is locked.
[0042]
When the coincidence of the travel distance data Dn-1 is not confirmed (NO in step ST33), the door is not locked or unlocked. In this way, the driver can lock or unlock the door lock of the vehicle 4 by operating the remote unit 2.
[0043]
Next, an operation for starting the engine after the driver unlocks the door lock of the vehicle 4 by the above-described processing will be described.
[0044]
When the driver detects that the key is inserted into the key cylinder of the vehicle 4 by the starter relay 14 (YES in step ST41 in FIG. 6), the code generation unit 8 of the remote unit 2 uses the mileage memory. 7 is read out (step ST42). Then, based on the first basic code and the second basic code stored in the ID code memory 5 and the two travel distance data Dn and Dn-1, the second rolling algorithm is used to perform the second rolling. A code is generated (step ST43).
[0045]
Thereafter, the generated second rolling code is transmitted from the transmission unit 9 to the in-vehicle unit 3 (step ST44).
[0046]
Further, the receiving unit 10 of the in-vehicle unit 3 receives the second rolling code transmitted from the remote unit 2, and further stores the second rolling code in the storage unit of the code decoding unit 17 once ( Step ST51 in FIG.
[0047]
The code decrypting unit 17 is opposite to the second encryption algorithm based on the second rolling code and the first basic code and the second basic code stored in the ID code memory 18. Travel distance data Dn and Dn-1 are obtained using an algorithm (decoding algorithm) as follows (step ST52).
[0048]
Next, it is determined whether or not the obtained travel distance data Dn and Dn-1 match the travel distance data Dn and Dn-1 stored in the travel distance memory 19 (step ST53). (YES in step ST53), an engine start permission signal is transmitted to the engine ECU (step ST54). Thereby, the engine can be started. Further, when the coincidence between the travel distance data Dn and Dn-1 is not confirmed (NO in step ST53), the engine start is not permitted. That is, only the person carrying the remote unit 2 can start the engine.
[0049]
Next, specific processing for generating a rolling code using the basic code and the travel distance data will be described.
[0050]
FIG. 8 is an explanatory diagram showing a procedure for generating the first rolling code by using the first encryption algorithm.
[0051]
Now, a case where the first basic code is “211059 (decimal)” and the travel distance data Dn−1 is “003038 (decimal display)” will be described. When the first basic code is converted into binary display, the upper 3 digits “211 (decimal)” becomes “11010011 (binary)” and the lower 3 digits “059 (decimal)” becomes “00111011”. (Binary) ”. When this is displayed in hexadecimal, it becomes “D3 (hexadecimal)” and “3B (hexadecimal)”.
[0052]
Similarly, when the travel distance data Dn-1 is converted into a binary display, the upper three digits “003 (decimal)” becomes “00000011 (binary)” and the lower three digits “038 (decimal)”. Becomes “00100110 (binary)”. When this is displayed in hexadecimal, it becomes “03 (hexadecimal)” and “26 (hexadecimal)”.
[0053]
In the first encryption algorithm, an exclusive OR of the binary display data of the first basic code and the binary display data of the mileage data Dn-1 is calculated, and this is calculated as the first rolling algorithm. Code. In this case, the first rolling code is “D01D (hexadecimal)”.
[0054]
The decryption algorithm is a procedure opposite to the above processing procedure.
[0055]
FIG. 9 is an explanatory diagram showing a procedure for generating the second rolling code using the second encryption algorithm.
[0056]
Now, the first basic code is “211059 (decimal)”, the second basic code is “080184 (decimal)”, the travel distance data Dn−1 is “003038 (decimal)”, and the travel distance data Dn. Will be described as “007164 (decimal)”.
[0057]
First, based on the first basic code and the travel distance data Dn-1, code data is generated in the same procedure as the first encryption algorithm described above. That is, the code data obtained here is “D01D (hexadecimal)” as described above. This is the first code data.
[0058]
Similarly, based on the second basic code and travel distance data Dn, code data (second code data) is generated in the same procedure as the first encryption algorithm. As a result, “571C (hexadecimal)” is obtained as the second code data.
[0059]
Then, the second rolling code “8701 (hexadecimal)” is obtained by calculating the exclusive OR of the first code data and the second code data.
[0060]
The decryption algorithm is a procedure opposite to the procedure for generating the second rolling code.
[0061]
Thus, in the vehicle control device 1 according to the present embodiment, when the rolling code is generated based on the travel distance data obtained from the travel distance meter 12 of the vehicle and the collation of the rolling code is confirmed, It is configured to permit locking and unlocking of the door lock of the vehicle 4 and to allow starting of the engine.
[0062]
Therefore, since a random (no regularity) rolling code can be generated at all times, confidentiality can be improved. Even when the driver presses an operation switch (not shown) of the remote unit 2 meaninglessly (regardless of the remote operation), the travel distance data Dn and Dn-1 stored in the remote unit 2 Since the mileage data Dn and Dn-1 stored in the in-vehicle unit 3 coincide with each other, there is no problem that data consistency between the remote unit 2 and the in-vehicle unit 3 cannot be obtained. Remote operation is possible.
[0063]
The rolling code generation method and the vehicle control apparatus using the rolling code according to the present invention have been described based on the illustrated embodiment. However, the present invention is not limited to this, and the configuration of each part is the same. Any configuration having a function can be replaced.
[0064]
For example, in the present embodiment, the first encryption algorithm uses the first basic code and the mileage data Dn-1, and the second encryption algorithm uses the first and second basic codes. Although the example using the travel distance data Dn-1 and Dn has been described, the present invention is not limited to this, and the first basic code, the second basic code, and the two travel distance data Dn- It is also possible to generate a rolling code by arbitrarily combining 1 and Dn.
[0065]
Moreover, although the said embodiment demonstrated the example which produces | generates a rolling code using two mileage data of the mileage data Dn-1 at the time of an engine stop the last time, and the mileage data Dn at the time of the last engine stop, 1 It is also possible to generate a rolling code using three or more mileage data.
[0066]
Furthermore, in the above embodiment, an example of controlling the locking of the door lock of the vehicle, the switching of the unlocking, and the permission to start the engine using the rolling cord has been described, but the present invention is not limited to this, It is also possible to configure to control other equipment mounted in the vehicle.
[0067]
Moreover, in the said embodiment, the rolling code transmitted from the remote unit 2 is received in the vehicle-mounted unit 3, the received rolling code is decoded using a decoding algorithm, and the method of confirming the coincidence of mileage data is employ | adopted. However, as a method other than this, the rolling code generated by the in-vehicle unit 3 by the same method as the encryption algorithm used in the remote unit 2, and the rolling code transmitted from the remote unit 2 and the in-vehicle unit It is also possible to configure so as to confirm a match or mismatch with the rolling code generated in step 3.
[0068]
Furthermore, in the above-described embodiment, an example in which exclusive OR is used in the encryption algorithm has been described. However, the present invention is not limited to this, and other logical operations can also be used.
[0069]
【The invention's effect】
As described above, in the rolling code generation method and the vehicle control apparatus using the rolling code according to the present invention, the rolling code is generated using the travel distance data obtained from the travel distance meter mounted on the vehicle, and the door Controls various devices mounted on the vehicle, such as locking / unlocking, permission to start the engine, etc., so it has excellent secrecy and the remote unit's operation button is pressed meaninglessly In this case, it is possible to reliably control the in-vehicle device.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a vehicle control device according to an embodiment of the present invention.
FIG. 2 is a flowchart showing a flow of processing for taking in mileage data used for generating a rolling code into an in-vehicle unit.
FIG. 3 is a flowchart showing a flow of processing for taking travel distance data into a remote unit.
FIG. 4 is a flowchart showing a processing procedure in the remote unit when the door lock is locked and unlocked.
FIG. 5 is a flowchart showing a processing procedure in the in-vehicle unit when the door lock is locked and unlocked.
FIG. 6 is a flowchart showing a processing procedure in the remote unit when starting the engine.
FIG. 7 is a flowchart showing a processing procedure in the in-vehicle unit when starting the engine.
FIG. 8 is an explanatory diagram showing a procedure for generating a first rolling code using a first encryption algorithm;
FIG. 9 is an explanatory diagram showing a procedure for generating a second rolling code using the second encryption algorithm;
FIG. 10 is an explanatory diagram showing a configuration of a keyless entry system according to a first conventional example.
FIG. 11 is an explanatory diagram showing a configuration of a keyless entry system according to a second conventional example.
[Explanation of symbols]
1 Vehicle control device
2 Remote unit
3 In-vehicle unit
4 Vehicle
5 ID code memory
6 Receiver
7 Mileage memory
8 Code generator
9 Transmitter
10 Receiver
11 Microcomputer
12 Mileage meter
13 Interface
14 Starter relay
15 interface
16 Transmitter
17 Code decoding part
18 ID code memory
19 Mileage memory
20 Code verification part

Claims (8)

遠隔ユニットから車両に搭載される車載ユニットへ送信し、車載機器の動作の可否を判断する際に使用するローリングコードを生成する方法であって、
エンジンが停止された際に、前記車両の走行距離データを前記遠隔ユニットに送信し、前記遠隔ユニットは、この走行距離データを記憶し、
前記遠隔ユニットは、車両固有の基本コードと、前記走行距離データに基づいて、使用する度にそれぞれ異なるデータとなるローリングコードを生成することを特徴とするローリングコードの生成方法。
A method for generating a rolling code to be used when transmitting from a remote unit to an in-vehicle unit mounted on a vehicle and determining whether or not the in-vehicle device can be operated.
When the engine is stopped, the vehicle mileage data is transmitted to the remote unit, and the remote unit stores the mileage data,
The remote unit generates a rolling code that becomes different data each time it is used based on a basic code unique to a vehicle and the travel distance data.
遠隔ユニットから車両に搭載される車載ユニットへ送信し、車載機器の動作の可否を判断する際に使用するローリングコードを生成する方法であって、
エンジンが停止された際に、前記車両の走行距離データを前記遠隔ユニットに送信し、前記遠隔ユニットは、時系列的に得られる走行距離データを複数記憶し、
前記車両固有の第1の基本コード、及び第2の基本コードと、前記複数の走行距離データのうちの第1の走行距離データ、及び第2の走行距離データとに基づいて、使用する度にそれぞれ異なるデータとなるローリングコードを生成することを特徴とするローリングコードの生成方法。
A method for generating a rolling code to be used when transmitting from a remote unit to an in-vehicle unit mounted on a vehicle and determining whether or not the in-vehicle device can be operated.
When the engine is stopped, the travel distance data of the vehicle is transmitted to the remote unit, and the remote unit stores a plurality of travel distance data obtained in time series,
Each time the vehicle is used based on the first basic code and the second basic code unique to the vehicle, and the first mileage data and the second mileage data among the plurality of mileage data. A method for generating a rolling code, characterized by generating a rolling code for different data.
前記第1の基本コード及び第2の基本コードの少なくとも一方と、前記第1の走行距離データ及び第2の走行距離データの少なくとも一方と、の組み合わせに基づいて前記車両のドアの開閉を許可する際に使用する第1のローリングコードを生成し、
前記第1の基本コード及び第2の基本コードの少なくとも一方と、前記第1の走行距離データ及び第2の走行距離データの少なくとも一方と、の組み合わせのうち、前記第1のローリングコード生成時に使用した組み合わせとは異なる組み合わせに基づいて前記車両のエンジン始動を許可する際に使用する第2のローリングコードを生成することを特徴とする請求項2に記載のローリングコードの生成方法。
Opening and closing of the door of the vehicle is permitted based on a combination of at least one of the first basic code and the second basic code and at least one of the first travel distance data and the second travel distance data. Generate the first rolling code to use
Of the combinations of at least one of the first basic code and the second basic code and at least one of the first travel distance data and the second travel distance data, used when generating the first rolling code. The method of generating a rolling code according to claim 2, wherein a second rolling code used for permitting engine start of the vehicle is generated based on a combination different from the combination.
今回車両に搭乗する際に用いる前記第1の走行距離データ、及び第2の走行距離データは、それぞれ、前々回のエンジン停止時における走行距離データ、及び前回エンジン停止時における走行距離データであることを特徴とする請求項2または請求項3のいずれかに記載のローリングコードの生成方法。  The first travel distance data and the second travel distance data used when boarding the vehicle this time are travel distance data at the time of the last engine stop and travel distance data at the time of the previous engine stop, respectively. The method for generating a rolling code according to claim 2, wherein the rolling code is generated. 遠隔ユニットと、車両に搭載される車載ユニットとの間でデータ伝送を行い、遠隔ユニットより車載ユニットへ送られるローリングコードが適正であることを確認して、車載機器の動作を許可し、車両の盗難を防止する車両制御装置において、
前記車載ユニットは、エンジンが停止された際に、前記車両の走行距離データを前記遠隔ユニットに送信する送信手段(16)を有し、
前記遠隔ユニットは、車両固有の基本コード、及び当該車両の走行距離データに基づいて前記ローリングコードを生成するコード生成手段(8)を具備したことを特徴とするローリングコードを用いた車両制御装置。
Data transmission is performed between the remote unit and the vehicle-mounted unit mounted on the vehicle, and the rolling code sent from the remote unit to the vehicle-mounted unit is confirmed to be appropriate. In the vehicle control device for preventing theft,
The in-vehicle unit has transmission means (16) for transmitting the mileage data of the vehicle to the remote unit when the engine is stopped,
The vehicle control apparatus using a rolling code, wherein the remote unit includes code generation means (8) for generating the rolling code based on a vehicle-specific basic code and travel distance data of the vehicle.
遠隔ユニットと、車両に搭載される車載ユニットとの間でデータ伝送を行い、遠隔ユニットより車載ユニットへ送られるローリングコードが適正であることを確認して、車載機器の動作を許可し、車両の盗難を防止する車両制御装置において、
前記車載ユニットは、エンジンが停止された際に、前記車両の走行距離データを、前記遠隔ユニットに送信する送信手段(16)を有し、
前記遠隔ユニットは、
前記車載ユニットより送信される前記走行距離データを受信する受信手段(6)と、
前記車両固有の第1の基本コード及び第2の基本コードの少なくとも一方と、前記受信 手段で受信された第1の走行距離データ及び第2の走行距離データの少なくとも一方と、の組み合わせに基づいて第1のローリングコードを生成し、
前記第1の基本コード及び第2の基本コードの少なくとも一方と、前記第1の走行距離データ及び第2の走行距離データの少なくとも一方と、の組み合わせのうち、前記第1のローリングコードの生成時に使用した組み合わせとは異なる組み合わせに基づいて第2のローリングコードを生成するコード生成手段(8)を有し
前記車載ユニットは更に、
前記第1のローリングコード、及び第2のローリングコードを用いて、前記車載機器の動作の許可判断を行うコード解読手段(17)を具備したことを特徴とするローリングコードを用いた車両制御装置。
Data transmission is performed between the remote unit and the vehicle-mounted unit mounted on the vehicle, and the rolling code sent from the remote unit to the vehicle-mounted unit is confirmed to be appropriate. In the vehicle control device for preventing theft,
The in-vehicle unit has transmission means (16) for transmitting the mileage data of the vehicle to the remote unit when the engine is stopped.
The remote unit is
Receiving means (6) for receiving the travel distance data transmitted from the in-vehicle unit;
Based on a combination of at least one of the first basic code and the second basic code unique to the vehicle and at least one of the first travel distance data and the second travel distance data received by the receiving means. Generate a first rolling code,
Of the combinations of at least one of the first basic code and the second basic code, and at least one of the first mileage data and the second mileage data, when the first rolling code is generated has a code generating means that generates a second rolling code based on the different combinations (8) of the combination used,
The in-vehicle unit further includes
A vehicle control apparatus using a rolling code, comprising code decoding means (17) for performing permission judgment of the operation of the in-vehicle device using the first rolling code and the second rolling code.
遠隔ユニットと、車両に搭載される車載ユニットとの間でデータ伝送を行い、遠隔ユニットより車載ユニットへ送られるローリングコードが適正であることを確認して、車載機器の動作を許可し、車両の盗難を防止する車両制御装置において、
前記車載ユニットは、エンジンが停止された際に、前記車両の走行距離データを、前記遠隔ユニットに送信する送信手段(16)を有し、
前記遠隔ユニットは、
前記車載ユニットより送信される第1の走行距離データ、及び第2の走行距離データを記憶する遠隔側記憶手段と、
車両固有の第1の基本コードと、前記第1の走行距離データ及び第2の走行距離データの少なくとも一方と、に基づいて第1のローリングコードを生成し、且つ、車両固有の第2の基本コードと、前記第1の走行距離データ及び第2の走行距離データの少なくとも一方と、に基づいて第2のローリングコードを生成するローリングコード生成手段と、を具備し、
前記車載ユニットは更に
前記車両の第1の走行距離データ、及び第2の走行距離データを記憶する車載側記憶手段と、
前記遠隔ユニットより送信される第1のローリングコード、及び前記第1の基本コードに基づいて、第1の走行距離データ及び第2の走行距離データの少なくとも一方を解読し、且つ、前記遠隔ユニットより送信される第2のローリングコード、及び前記第2の基本コードに基づいて、第1の走行距離データ及び第2の走行距離データの少なくとも一方を解読するローリングコード解読手段と、
前記ローリングコード解読手段で解読された第1の走行距離データ、及び第2の走行距離データが、前記車載側記憶手段に記憶されている第1の走行距離データ、及び第2の走行距離データと一致するかどうかを照合する照合手段と、
前記第1のローリングコードを解読して得られる第1の走行距離データ及び第2の走行距離データの少なくとも一方の照合が確認された際に、車両のドアの施錠、解錠を行い、 前記第2のローリングコードを解読して得られる第1の走行距離データ及び第2の走行距離データの少なくとも一方の照合が確認された際に、車両のエンジンの始動を許可する手段と、
を有することを特徴とするローリングコードを用いた車両制御装置。
Data transmission is performed between the remote unit and the vehicle-mounted unit mounted on the vehicle, and the rolling code sent from the remote unit to the vehicle-mounted unit is confirmed to be appropriate. In the vehicle control device for preventing theft,
The in-vehicle unit has transmission means (16) for transmitting the mileage data of the vehicle to the remote unit when the engine is stopped.
The remote unit is
Remote side storage means for storing the first travel distance data and the second travel distance data transmitted from the in-vehicle unit;
A first rolling code is generated based on the first basic code unique to the vehicle and at least one of the first mileage data and the second mileage data, and the second basic unique to the vehicle A rolling code generating means for generating a second rolling code based on the code and at least one of the first mileage data and the second mileage data;
The in-vehicle unit further includes
Vehicle-side storage means for storing the first travel distance data and the second travel distance data of the vehicle;
Decoding at least one of the first mileage data and the second mileage data based on the first rolling code and the first basic code transmitted from the remote unit, and from the remote unit A rolling code decoding means for decoding at least one of the first mileage data and the second mileage data based on the transmitted second rolling code and the second basic code;
The first mileage data and the second mileage data decoded by the rolling code decoding means are the first mileage data and the second mileage data stored in the in-vehicle storage means; A matching means for checking whether they match,
When the collation of at least one of the first mileage data and the second mileage data obtained by decoding the first rolling code is confirmed, the vehicle door is locked and unlocked, Means for permitting start of the engine of the vehicle when verification of at least one of the first mileage data and the second mileage data obtained by decoding the rolling code of 2 is confirmed;
A vehicle control apparatus using a rolling cord, comprising:
今回車両に搭乗する際に用いる前記第1の走行距離データ、及び第2の走行距離データは、それぞれ、前々回のエンジン停止時における走行距離データ、及び前回エンジン停止時における走行距離データであることを特徴とする請求項6または請求項7のいずれかに記載のローリングコードを用いた車両制御装置。  The first travel distance data and the second travel distance data used when boarding the vehicle this time are travel distance data at the time of the last engine stop and travel distance data at the time of the previous engine stop, respectively. A vehicle control apparatus using the rolling cord according to any one of claims 6 and 7.
JP2001103767A 2001-04-02 2001-04-02 Rolling code generation method and vehicle control apparatus using rolling code Expired - Fee Related JP4071450B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001103767A JP4071450B2 (en) 2001-04-02 2001-04-02 Rolling code generation method and vehicle control apparatus using rolling code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001103767A JP4071450B2 (en) 2001-04-02 2001-04-02 Rolling code generation method and vehicle control apparatus using rolling code

Publications (2)

Publication Number Publication Date
JP2002295085A JP2002295085A (en) 2002-10-09
JP4071450B2 true JP4071450B2 (en) 2008-04-02

Family

ID=18956770

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001103767A Expired - Fee Related JP4071450B2 (en) 2001-04-02 2001-04-02 Rolling code generation method and vehicle control apparatus using rolling code

Country Status (1)

Country Link
JP (1) JP4071450B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4156493B2 (en) 2003-11-04 2008-09-24 株式会社東海理化電機製作所 Vehicle security device and ID code management device
JP5894879B2 (en) * 2012-07-25 2016-03-30 カルソニックカンセイ株式会社 Engine start control system
WO2014065052A1 (en) * 2012-10-22 2014-05-01 エイディシーテクノロジー株式会社 Terminal device and movable body
JP6301712B2 (en) * 2014-04-11 2018-03-28 株式会社東海理化電機製作所 Authentication system
DE102017200380A1 (en) 2017-01-11 2018-07-12 Ford Global Technologies, Llc Method for locking, unlocking and starting a vehicle

Also Published As

Publication number Publication date
JP2002295085A (en) 2002-10-09

Similar Documents

Publication Publication Date Title
US10668896B2 (en) Car sharing system and car sharing method
EP0870889B1 (en) Keyless motor vehicle entry and ignition system
EP2663018B1 (en) Electronic key registration system
CN105976466B (en) Automobile entrance guard door opening method
JP4153283B2 (en) Security related data handling apparatus and handling method
US5774550A (en) Vehicle security device with electronic use authorization coding
JP2673941B2 (en) Vehicle security device with usage rights electronically encoded
US7961076B2 (en) Methods and apparatuses for remote control of vehicle devices and vehicle lock-out notification
US7432796B2 (en) Security control system for managing registration of ID codes for portable devices
US7227446B2 (en) Electronic key system for entry objects
US7129816B2 (en) Remote control system
US6469616B1 (en) Method for initializing an anti-theft system of a motor vehicle
JP4841950B2 (en) Security system using electronic keys
JP4071450B2 (en) Rolling code generation method and vehicle control apparatus using rolling code
EP0774673B1 (en) Transmission-reception system
JP2003064920A (en) Vehicle key system, vehicle side key device and electronic key
US20230142262A1 (en) Method and system for vehicle anti-theft authentication, storage medium, and vehicle
US20050268088A1 (en) Vehicle control system, and in-vehicle control apparatus and mobile device used therefor
CN112455386B (en) Automobile anti-theft system and method
JPH08149127A (en) Transmitter and reception unit
KR20060036210A (en) Control method of immobilizer system
JP2002038779A (en) Keyless entry system
JPH08218699A (en) Unlocking control device for vehicle locking mechanism and its portable unit
MXPA98007044A (en) Procedure to initialize a system contrarobo for a vehicle automo
JP2017152918A (en) Wireless communication system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040924

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070302

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070403

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070601

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080117

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110125

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120125

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120125

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130125

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140125

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees