JP2018141263A - Keyless entry system for vehicle - Google Patents

Keyless entry system for vehicle Download PDF

Info

Publication number
JP2018141263A
JP2018141263A JP2017034117A JP2017034117A JP2018141263A JP 2018141263 A JP2018141263 A JP 2018141263A JP 2017034117 A JP2017034117 A JP 2017034117A JP 2017034117 A JP2017034117 A JP 2017034117A JP 2018141263 A JP2018141263 A JP 2018141263A
Authority
JP
Japan
Prior art keywords
vehicle
portable device
unit
code
update
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2017034117A
Other languages
Japanese (ja)
Inventor
雄樹 森
Yuki Mori
雄樹 森
伸二 斎藤
Shinji Saito
伸二 斎藤
義典 作田
Yoshinori Sakuta
義典 作田
英毅 安部
Hideki Abe
英毅 安部
貴一郎 石田
Kiichirou Ishida
貴一郎 石田
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.)
Marelli Corp
Original Assignee
Calsonic Kansei 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 Calsonic Kansei Corp filed Critical Calsonic Kansei Corp
Priority to JP2017034117A priority Critical patent/JP2018141263A/en
Publication of JP2018141263A publication Critical patent/JP2018141263A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Lock And Its Accessories (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent illegal unlocking of a vehicle door and to improve security.SOLUTION: A keyless system K has a portable machine 10 and an on-vehicle machine 20. The portable machine 10 includes: a storage part 103 for storing counter codes A, B; an RF transmission part 105 for transmitting an operation signal including the counter codes A, B; and an update part 102 for updating the portable machine side counter code A after transmitting the operation signal of locking or unlocking of a vehicle. The on-vehicle machine 20 includes: a storage part 204 for storing counter codes C, D; and an update part 203 which, in the case where the counter codes A, B which the operation signal includes are collated with the counter codes C, D, updates the on-vehicle side counter code C. In passive communication between the portable machine 10 and the on-vehicle machine 20, the update part 102 and the update part 203 update the portable machine side counter code B and the on-vehicle side counter code D.SELECTED DRAWING: Figure 5

Description

本発明は、車両用キーレスエントリーシステムに関する。   The present invention relates to a vehicle keyless entry system.

車両用キーレスエントリーシステムは、車両のユーザが所持する携帯機と、車両に搭載された車載機を備えている。ユーザが携帯機の操作ボタンを押下すると、携帯機は操作信号を携帯機に送信する。操作信号を受信した車載機が車両のドアを施錠または解錠する。操作信号はIDコードを含んでいる。車載機は操作信号に含まれるIDコードが携帯機に付与されたIDコードと一致するかを照合する。これによって、ユーザが所持する携帯機のみによって、車両のドアの施錠および解錠を行えるようになっている。   The vehicle keyless entry system includes a portable device possessed by a user of the vehicle and an in-vehicle device mounted on the vehicle. When the user presses the operation button on the portable device, the portable device transmits an operation signal to the portable device. The in-vehicle device that has received the operation signal locks or unlocks the vehicle door. The operation signal includes an ID code. The in-vehicle device collates whether the ID code included in the operation signal matches the ID code assigned to the portable device. As a result, the vehicle door can be locked and unlocked only by the portable device possessed by the user.

ところが、操作信号を傍受できる中継機を用いれば、第三者であってもドアを不正に解錠できてしまう。このような第三者の不正解錠を防ぐために、車両用キーレスエントリーシステムでは操作信号の送信に応じて変動するカウンタコード(ローリングコードとも称する)を用いている。   However, if a relay device that can intercept operation signals is used, even a third party can unlock the door illegally. In order to prevent such an unauthorized unlocking by a third party, a vehicular keyless entry system uses a counter code (also referred to as a rolling code) that varies in response to transmission of an operation signal.

具体的には、携帯機および車載機のそれぞれが、携帯機側カウンタコード、車載機側カウンタコードを保持する。携帯機は携帯機側カウンタコードを操作信号に含ませて送信した後に、カウンタコードを更新する。操作信号を受信した車載機は、操作信号に含まれる携帯機側カウンタコードを車載機側カウンタコードと比較し、照合結果として操作信号が携帯機からのものと認められた場合、車両のドアの施錠または解錠を行い、車載機側カウンタコードを更新する(例えば、特許文献1参照)。中継機が傍受した操作信号を後から車載機に送信したとしても、すでに車載機側カウンタコードは更新されているため、車両のドアは解錠されない。   Specifically, each of the portable device and the in-vehicle device holds a portable device-side counter code and an in-vehicle device-side counter code. The portable device updates the counter code after transmitting the portable device-side counter code included in the operation signal. The in-vehicle device that has received the operation signal compares the portable device side counter code included in the operation signal with the in-vehicle device side counter code, and if the operation signal is recognized as being from the portable device as a comparison result, Locking or unlocking is performed, and the in-vehicle device side counter code is updated (for example, see Patent Document 1). Even if the operation signal intercepted by the relay device is transmitted to the in-vehicle device later, the in-vehicle device side counter code has already been updated, so the door of the vehicle is not unlocked.

特開2007−224663号公報JP 2007-224663 A

ところが、Rolljamと呼ばれる中継機が開発されている。Rolljamは妨害電波を発生させながら操作信号を複数回傍受することで、不正解錠を行う。具体的には、ユーザが携帯機の操作ボタンを押下したときに、Rolljamは携帯機から送信された操作信号を傍受すると同時に、妨害電波を発生させる。操作信号は妨害電波によって車載機に到達せず、車両のドアは解錠されない。車両のドアが解錠されなかったため、ユーザは再度携帯機の操作ボタンを押下する。これによって、携帯機は2回目の操作信号を送信する。Rolljamは2回目の操作信号も傍受する。妨害電波の発生により2回目の操作信号も車載機に到達しないが、この直後にRolljamは先に傍受した最初の操作信号を車載機に送信する。   However, a repeater called Rolljam has been developed. Rolljam performs unauthorized unlocking by intercepting operation signals multiple times while generating jamming radio waves. Specifically, when the user presses the operation button of the portable device, Rolljam intercepts the operation signal transmitted from the portable device and simultaneously generates jamming radio waves. The operation signal does not reach the in-vehicle device due to the interference wave, and the vehicle door is not unlocked. Since the door of the vehicle has not been unlocked, the user presses the operation button of the portable device again. Thereby, the portable device transmits a second operation signal. Rolljam also intercepts the second operation signal. Although the second operation signal does not reach the in-vehicle device due to the generation of jamming waves, Rolljam immediately sends the first operation signal intercepted first to the in-vehicle device.

最初の操作信号および2回目の操作信号とも車載機に到達していないため、車載機側カウンタコードは更新されていない状態である。そのため、Rolljamが送信した最初の操作信号で車両のドアは解錠する。ユーザには、2回目の操作ボタンの押下によってドアが解錠したように見える。そのため、ユーザは最初の操作でドアが解錠しなかったのは通信状態が一時的に悪かっただけだと思い、中継機の存在に気づかない。その後、ユーザが車両を離れた隙に、第三者は、Rolljamから記憶している2回目の操作信号を車載機に送信すればドアを解錠することができる。すなわち、Rolljamを用いることで、車両窃盗等の不正行為が実施されるおそれがある。   Since neither the first operation signal nor the second operation signal has reached the in-vehicle device, the in-vehicle device side counter code is not updated. Therefore, the vehicle door is unlocked by the first operation signal sent by Rolljam. It seems to the user that the door is unlocked by pressing the operation button for the second time. Therefore, the user thinks that the door was not unlocked in the first operation only because the communication state was temporarily bad, and does not notice the presence of the repeater. Thereafter, when the user leaves the vehicle, the third party can unlock the door by transmitting the second operation signal stored from Rolljam to the in-vehicle device. That is, by using Rolljam, there is a risk that illegal acts such as vehicle theft will be carried out.

車両用キーレスエントリーシステムにおいて、Rolljamによる不正行為を防止し、セキュリティを向上させることが求められている。   In a keyless entry system for vehicles, it is required to prevent fraud by Rolljam and improve security.

本発明は、ユーザにより所持される携帯機と、
車両に搭載され、前記携帯機との通信および車載設備の動作制御を行う車載機と、を有する車両用キーレスエントリーシステムであって、
前記携帯機は、
ユーザによる車両の施錠または解錠の操作要求を受け付ける操作部と、
携帯機側の第1および第2のカウンタコードを記憶する携帯機記憶部と、
前記操作部が前記操作要求を受け付けると、前記携帯機側の第1および第2のカウンタコードを含む操作信号を前記車載機に送信する携帯機送信部と、
前記操作信号の送信時に前記携帯機側の第1のカウンタコードを更新する携帯機更新部と、を備え、
前記車載機は、
車載機側の第1および第2のカウンタコードを記憶する車載機記憶部と、
前記操作信号に含まれる携帯機側の第1および第2のカウンタコードを、前記車載機記憶部に記憶された車載機側の第1および第2のカウンタコードと照合する照合部と、
前記照合部の照合が成立した場合、車両のドアの施錠または解錠の動作を制御する制御部と、
前記照合部の照合が成立した場合、前記車載機側の第1のカウンタコードを更新する車載機更新部と、
車両の所定動作の際に、前記携帯機に応答要求信号を送信する車載機送信部と、
を備え、
前記携帯機更新部と前記車載機更新部は、前記応答要求信号の送信により開始される前記携帯機と前記車載機間のパッシブ通信において、それぞれ前記携帯機側の第2のカウンタコードおよび前記車載機側の第2のカウンタコードの更新を行う構成とした。
The present invention includes a portable device carried by a user;
A vehicle-less keyless entry system having an in-vehicle device mounted on a vehicle and performing communication control with the portable device and controlling operation of the in-vehicle equipment,
The portable device is
An operation unit for accepting an operation request for locking or unlocking the vehicle by a user;
A portable device storage unit for storing the first and second counter codes on the portable device side;
When the operation unit accepts the operation request, a portable device transmission unit that transmits an operation signal including first and second counter codes on the portable device side to the in-vehicle device;
A portable device updating unit that updates the first counter code on the portable device side when transmitting the operation signal,
The in-vehicle device is
An in-vehicle device storage unit for storing the first and second counter codes on the in-vehicle device side;
A collation unit that collates the first and second counter codes on the portable device side included in the operation signal with the first and second counter codes on the vehicle unit stored in the vehicle unit storage unit;
When verification of the verification unit is established, a control unit that controls the operation of locking or unlocking the door of the vehicle;
When the collation of the collation unit is established, the in-vehicle device update unit that updates the first counter code on the on-vehicle device side;
An in-vehicle device transmission unit that transmits a response request signal to the portable device during a predetermined operation of the vehicle;
With
In the passive communication between the portable device and the in-vehicle device that is started by the transmission of the response request signal, the portable device updating unit and the in-vehicle device updating unit are respectively a second counter code on the portable device side and the in-vehicle device. The second counter code on the machine side is updated.

本発明によれば、Rolljamを用いた第三者の車両に対する不正行為を防止することができ、セキュリティを向上させることができる。   ADVANTAGE OF THE INVENTION According to this invention, the fraudulent act with respect to the vehicle of the third party using Rolljam can be prevented, and security can be improved.

実施の形態に係る車両用キーレスエントリーシステムの概略構成を示す図である。It is a figure showing the schematic structure of the keyless entry system for vehicles concerning an embodiment. 携帯機の構成を示すブロック図である。It is a block diagram which shows the structure of a portable device. 操作信号の構成を示す模式図である。It is a schematic diagram which shows the structure of an operation signal. 車載機の構成を示すブロック図である。It is a block diagram which shows the structure of a vehicle equipment. 実施の形態に係る車両用キーレスエントリーシステムの処理の概略を示すフローチャートである。It is a flowchart which shows the outline of a process of the keyless entry system for vehicles which concerns on embodiment. (a)は、RKE処理における携帯機の処理を示すフローチャートであり、(b)は、RKE処理における車載機の処理を示すフローチャートである。(A) is a flowchart which shows the process of the portable device in a RKE process, (b) is a flowchart which shows the process of the vehicle equipment in a RKE process. (a)は、パッシブ通信における携帯機の処理を示すフローチャートであり、(b)は、パッシブ通信における車載機の処理を示すフローチャートである。(A) is a flowchart which shows the process of the portable device in passive communication, (b) is a flowchart which shows the process of the vehicle equipment in passive communication. 車両への不正行為を試みる第三者が存在する場面に、実施の形態に係る車両用キーレスエントリーシステムを適用した例を示す図である。It is a figure which shows the example which applied the keyless entry system for vehicles which concerns on embodiment to the scene where the third party who tries the fraudulent act to a vehicle exists. 比較例における携帯機、車載機およびRolljamの通信を示すシーケンスチャートである。It is a sequence chart which shows communication of the portable device in a comparative example, vehicle equipment, and Rolljam. 適用例における携帯機、車載機およびRolljamの通信を示すシーケンスチャートである。It is a sequence chart which shows the communication of the portable device, vehicle equipment, and Rolljam in an application example. (a)は、変形例1のパッシブ通信における携帯機の処理を示すフローチャートであり、(b)は、変形例1のパッシブ通信における車載機の処理を示すフローチャートである。(A) is a flowchart which shows the process of the portable device in the passive communication of the modification 1, (b) is a flowchart which shows the process of the vehicle equipment in the passive communication of the modification 1. 変形例3のパッシブ通信における携帯機の処理を示すフローチャートである。10 is a flowchart illustrating processing of a portable device in passive communication according to Modification 3. 変形例3のパッシブ通信における車載機の処理を示すフローチャートである。10 is a flowchart illustrating processing of an in-vehicle device in passive communication according to Modification 3; 変形例4の携帯機の構成を示すブロック図である。It is a block diagram which shows the structure of the portable device of the modification 4.

以下、本発明の実施の形態に係る車両用キーレスエントリーシステムを、図面を参照して説明する。
図1は、本発明の実施の形態に係る車両用キーレスエントリーシステム(以下、キーレスシステムKという。)の構成を示すブロック図である。
Hereinafter, a keyless entry system for a vehicle according to an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of a vehicle keyless entry system (hereinafter referred to as a keyless system K) according to an embodiment of the present invention.

[キーレスシステム]
図1に示すように、キーレスシステムKは携帯機10と車載機20を備える。携帯機10は、車両のユーザが所持し、車両の内外に持ち運び可能なものである。車載機20は車両の内部に配置される。キーレスシステムKにおいて、ユーザの操作要求に応じて携帯機10が車載機20と通信を行う。携帯機10と車載機20の通信結果に基づいて、車載機20が車両のドアの施錠または解錠を行う。このドアの施錠または解錠の処理を、以降、RKE(リモートキーレスエントリー)処理という。車載機20はドアのアクチュエータ以外にも様々な車載設備にも接続されており、車載設備の動作制御も行う。車載機20は、ドアの施錠および解錠以外にも、車両が所定動作をする際に携帯機10の所在を確認するため、携帯機10と通信を行う。この携帯機10の所在を確認するための携帯機10と車載機20の通信を、パッシブ通信という。車両の所定動作とは、車載設備の動作と車両のドアの開閉動作を意味する。
[Keyless system]
As shown in FIG. 1, the keyless system K includes a portable device 10 and an in-vehicle device 20. The portable device 10 is carried by a user of the vehicle and can be carried inside and outside the vehicle. The in-vehicle device 20 is disposed inside the vehicle. In the keyless system K, the portable device 10 communicates with the in-vehicle device 20 in response to a user operation request. Based on the communication result between the portable device 10 and the vehicle-mounted device 20, the vehicle-mounted device 20 locks or unlocks the door of the vehicle. This door locking / unlocking process is hereinafter referred to as RKE (Remote Keyless Entry) process. The in-vehicle device 20 is connected to various in-vehicle equipment other than the door actuator, and also controls the operation of the in-vehicle equipment. The in-vehicle device 20 communicates with the portable device 10 to confirm the location of the portable device 10 when the vehicle performs a predetermined operation in addition to locking and unlocking the door. Communication between the portable device 10 and the in-vehicle device 20 for confirming the location of the portable device 10 is referred to as passive communication. The predetermined operation of the vehicle means the operation of the on-vehicle equipment and the opening / closing operation of the vehicle door.

[携帯機]
携帯機10の筐体の一面には、ロックボタン11とアンロックボタン12とが設けられている。ロックボタン11とアンロックボタン12とは、ユーザの操作要求を受け付ける操作部として機能する。ユーザがロックボタン11またはアンロックボタン12を押下することによって、施錠または解錠の操作要求が携帯機10に入力され、携帯機10および車載機20がRKE処理を開始する。
[Portable machine]
A lock button 11 and an unlock button 12 are provided on one surface of the casing of the portable device 10. The lock button 11 and the unlock button 12 function as an operation unit that receives a user operation request. When the user presses the lock button 11 or the unlock button 12, an operation request for locking or unlocking is input to the portable device 10, and the portable device 10 and the vehicle-mounted device 20 start the RKE process.

図2は、携帯機の構成を示すブロック図である。
図2に示すように、携帯機10は、CPU(central processing unit)100、記憶部103(携帯機記憶部)、LF受信部104、RF送信部105および入力I/F106を備えている。CPU100は、機能構成として、制御部101および更新部102(携帯機更新部)を備えている。記憶部103は、不揮発性メモリであるフラッシュメモリおよびROM(read―only memory)ならびに揮発性メモリであるRAM(random―access memory)などの情報記憶媒体で構成される。CPUおよび情報記憶媒体は、携帯機10の筐体の内部に設置されている。記憶部103は、携帯機10の制御プログラムを記憶する。CPU100が記憶部103に記憶された制御プログラムを読み出して実行することで、前記した機能構成を実現する。特に記載しないが、CPU100の各部は、処理結果を一時的に記憶部103に記憶させ、必要なデータや処理対象を記憶部103から読み出し、処理終了後に一時的に記憶させたデータをリセットする。
FIG. 2 is a block diagram illustrating a configuration of the portable device.
As shown in FIG. 2, the portable device 10 includes a CPU (central processing unit) 100, a storage unit 103 (portable device storage unit), an LF receiver 104, an RF transmitter 105, and an input I / F 106. CPU100 is provided with the control part 101 and the update part 102 (mobile device update part) as a function structure. The storage unit 103 includes an information storage medium such as a flash memory and a ROM (read-only memory) which are nonvolatile memories, and a RAM (random-access memory) which is a volatile memory. The CPU and the information storage medium are installed inside the casing of the portable device 10. The storage unit 103 stores a control program for the portable device 10. The CPU 100 reads out and executes the control program stored in the storage unit 103, thereby realizing the functional configuration described above. Although not specifically described, each unit of the CPU 100 temporarily stores a processing result in the storage unit 103, reads necessary data and a processing target from the storage unit 103, and resets the temporarily stored data after the processing is completed.

記憶部103は、また、車載機20との通信に必要な各種の情報を記憶する。本発明の実施の形態では、記憶部103は、例として、IDコード、ファンクションコード、携帯機側カウンタコードA(携帯機側の第1のカウンタコード)、携帯機側カウンタコードB(携帯機側の第2のカウンタコード)、基準値A、基準値B、カウンタ値A、カウンタ値B、暗号化および復号のための鍵等を記憶している。これらの情報については、携帯機10の各部の説明と共に詳説する。   The storage unit 103 also stores various information necessary for communication with the in-vehicle device 20. In the embodiment of the present invention, the storage unit 103 includes, for example, an ID code, a function code, a portable device side counter code A (first counter code on the portable device side), and a portable device side counter code B (on the portable device side). Second counter code), reference value A, reference value B, counter value A, counter value B, keys for encryption and decryption, and the like. These pieces of information will be described in detail together with descriptions of each part of the portable device 10.

入力I/F106は、ロックボタン11およびアンロックボタン12に接続する。ユーザがロックボタン11を押下すると、入力I/F106は、制御部101に車両の施錠の操作要求を入力する。ユーザがアンロックボタン12を押下すると、入力I/F106は、制御部101に車両の解錠の操作要求を入力する。
なお、ロックボタン11とアンロックボタン12とは、必ずしも別体のボタンから構成される必要は無く、一体のボタンで構成しても良い。その場合は、例えば、制御部101が、ボタンの押下回数に応じて解錠と施錠の操作要求を判別するようにしても良い。具体的には、例えば、制御部101は、ボタンの押下回数が奇数であれば解錠の操作要求であり、ボタンの押下回数が偶数であれば施錠の操作要求であると判別しても良い。
The input I / F 106 is connected to the lock button 11 and the unlock button 12. When the user presses the lock button 11, the input I / F 106 inputs an operation request for locking the vehicle to the control unit 101. When the user presses the unlock button 12, the input I / F 106 inputs an operation request for unlocking the vehicle to the control unit 101.
Note that the lock button 11 and the unlock button 12 do not necessarily need to be configured as separate buttons, and may be configured as an integral button. In that case, for example, the control unit 101 may determine an operation request for unlocking and locking according to the number of times the button is pressed. Specifically, for example, the control unit 101 may determine that the request is an unlocking operation request when the number of times the button is pressed is an odd number, and the locking operation request is when the number of button presses is an even number. .

LF受信部104はLF受信アンテナ104aに接続する。LF受信アンテナ104aは、車載機20が送信したLF信号を受信する。LF受信部104は、受信したLF信号を制御部101に入力する。   The LF receiving unit 104 is connected to the LF receiving antenna 104a. The LF reception antenna 104a receives the LF signal transmitted by the in-vehicle device 20. The LF receiving unit 104 inputs the received LF signal to the control unit 101.

制御部101は、携帯機10の全体的な動作の制御を行う。詳しくは後述するが、制御部101は、LF受信部104および入力I/F106からの入力に応じて、携帯機10の各部に入力するコマンドの生成と、車載機20に送信する信号の生成を行う。
入力I/F106が操作要求を入力すると、制御部101は、操作信号生成部として、車載機20に送信するための操作信号を生成する。
図3は、操作信号の構成を示す模式図である。図3に示すように、操作信号は、携帯機側カウンタコードA、ファンクションコードおよびIDコードを含む。
IDコードは、ユーザが所持する携帯機10に付与された固有の識別コードである。
ファンクションコードは、車載機20に指示する操作の内容を規定するコードである。実施の形態の例では、車両のドアの施錠と解錠それぞれを車載機20に指示するために、施錠と解錠に対してそれぞれ固有のファンクションコードが割り当てられている。
携帯機側カウンタコードAは、固定の基準値Aにカウンタ値Aを付加したものを、鍵を用いて暗号化したコードである。携帯機側カウンタコードBは、固定の基準値Bにカウンタ値Bを付加したものを、鍵を用いて暗号化したコードである。カウンタ値A、Bをカウントアップアップさせることにより、携帯機側カウンタコードA、Bもカウントアップして更新される。携帯機側カウンタコードA、Bに対して、それぞれ別個の基準値A、Bとカウンタ値A、Bを設ける。カウンタ値A、Bは、初期状態では、例えばいずれも1に設定するが、それぞれ異なるタイミングでカウントアップを行う。すなわち、携帯機側カウンタコードA、Bは異なるタイミングでカウントアップし、更新される。携帯機側カウンタコードAについては、操作信号の送信の際、すなわちRKE処理の際に更新を行う。携帯機側カウンタコードBについては、パッシブ通信の際に更新を行う。
The control unit 101 controls the overall operation of the portable device 10. As will be described in detail later, the control unit 101 generates a command to be input to each unit of the portable device 10 and a signal to be transmitted to the in-vehicle device 20 in accordance with inputs from the LF receiving unit 104 and the input I / F 106. Do.
When the input I / F 106 inputs an operation request, the control unit 101 generates an operation signal to be transmitted to the in-vehicle device 20 as an operation signal generation unit.
FIG. 3 is a schematic diagram showing the configuration of the operation signal. As shown in FIG. 3, the operation signal includes a portable device counter code A, a function code, and an ID code.
The ID code is a unique identification code given to the portable device 10 possessed by the user.
The function code is a code that defines the content of the operation instructed to the in-vehicle device 20. In the example of the embodiment, in order to instruct the vehicle-mounted device 20 to lock and unlock the door of the vehicle, unique function codes are assigned to the locking and unlocking, respectively.
The portable device side counter code A is a code obtained by encrypting a reference value A added with a counter value A using a key. The portable device side counter code B is a code obtained by encrypting a fixed reference value B with the counter value B added thereto using a key. By counting up the counter values A and B, the counter codes A and B on the portable device side are also counted up and updated. Separate reference values A and B and counter values A and B are provided for the portable device side counter codes A and B, respectively. The counter values A and B are both set to 1, for example, in the initial state, but are counted up at different timings. That is, the portable device side counter codes A and B are counted up and updated at different timings. The portable device side counter code A is updated when the operation signal is transmitted, that is, when the RKE process is performed. The portable device side counter code B is updated during passive communication.

入力I/F106が施錠または解錠の操作要求を入力すると、制御部101は、それぞれに対応するファンクションコード、IDコードおよび携帯機側カウンタコードA、Bを、記憶部103から取得して、操作信号を生成する。制御部101は生成した操作信号をRF送信部105に出力する。操作信号の出力後に、制御部101は、携帯機側カウンタコードAの更新を指示する更新コマンドを生成して更新部102に出力する。   When the input I / F 106 inputs an operation request for locking or unlocking, the control unit 101 acquires the corresponding function code, ID code, and portable device side counter codes A and B from the storage unit 103, and performs operations. Generate a signal. The control unit 101 outputs the generated operation signal to the RF transmission unit 105. After outputting the operation signal, the control unit 101 generates an update command for instructing update of the portable device side counter code A and outputs the update command to the update unit 102.

RF送信部105は、携帯機10に信号を送信するためのRF送信アンテナ105bに接続している。RF送信部105は、制御部101が入力した操作信号を変調し、RF信号として車載機20に送信する。   The RF transmission unit 105 is connected to an RF transmission antenna 105 b for transmitting a signal to the portable device 10. The RF transmission unit 105 modulates the operation signal input by the control unit 101 and transmits it to the in-vehicle device 20 as an RF signal.

制御部101が更新コマンドを入力すると、更新部102は、携帯機側カウンタコードAをカウントアップさせることにより、更新する。具体的な処理としては、更新部102は、まず、記憶部103からカウンタ値Aを取得してカウントアップさせる。例えば、更新部102は、初期状態で1であったカウンタ値Aを2にカウントアップさせる。更新部102はカウントアップしたカウンタ値Aで既存のカウンタ値Aを上書きする。更新部102はさらに、基準値Aに上書きしたカウンタ値Aを加算したものを、鍵を用いて暗号化し、新たな携帯機側カウンタコードAを生成する。カウンタ値Aをカウントアップさせたことにより、新たに生成した携帯機側カウンタコードAは、結果的に既存の携帯機側カウンタコードAをカウントアップさせたものとなっている。すなわち、本実施の形態において、携帯機側カウンタコードAの更新とは、携帯機側カウンタコードAのカウントアップ処理を意味する。更新部102は、新たに生成した携帯機側カウンタコードAを、既存の携帯機側カウンタコードAに上書きする形で記憶部103に保存する。
なお、ここでは、制御部101は、操作信号の出力後に更新コマンドを更新部102に出力する場合を説明したが、操作信号の出力前に更新コマンドを出力しても良い。すなわち、携帯機側カウンタコードAの更新は、操作信号の送信時に行えば良く、操作信号の送信の前後は問わない。
When the control unit 101 inputs an update command, the update unit 102 updates the mobile device side counter code A by counting it up. As a specific process, the update unit 102 first acquires the counter value A from the storage unit 103 and increments it. For example, the updating unit 102 increments the counter value A, which was 1 in the initial state, to 2. The updating unit 102 overwrites the existing counter value A with the counted up counter value A. Further, the updating unit 102 encrypts a value obtained by adding the overwritten counter value A to the reference value A using a key, and generates a new portable device side counter code A. As a result of counting up the counter value A, the newly generated portable device side counter code A is a result of counting up the existing portable device side counter code A as a result. That is, in the present embodiment, updating of the portable device side counter code A means a count-up process of the portable device side counter code A. The update unit 102 stores the newly generated portable device side counter code A in the storage unit 103 in the form of overwriting the existing portable device side counter code A.
Here, the case where the control unit 101 outputs the update command to the update unit 102 after outputting the operation signal has been described, but the update command may be output before the operation signal is output. That is, the update of the portable device side counter code A may be performed at the time of transmission of the operation signal, and it does not matter before and after the transmission of the operation signal.

LF受信部104が制御部101にLF信号を入力した場合の、制御部101の処理については、LF信号の種類に応じて異なる。車載機20が送信するLF信号は、応答要求信号と認証信号がある。詳細は車載機20の説明と共に後述するが、車載機20は応答要求信号と認証信号を前記したパッシブ通信において送信する。   The processing of the control unit 101 when the LF receiving unit 104 inputs an LF signal to the control unit 101 differs depending on the type of the LF signal. The LF signal transmitted by the in-vehicle device 20 includes a response request signal and an authentication signal. Although details will be described later together with the description of the in-vehicle device 20, the in-vehicle device 20 transmits a response request signal and an authentication signal in the passive communication described above.

パッシブ通信は、車載機20からの応答要求信号の送信により開始し、携帯機10が車載機20からの認証信号を受信することで成立する。応答要求信号は、携帯機10に応答信号の送信を求める内容である。認証信号は、携帯機10が送信した応答信号を認証したことを通知する信号である。本発明の実施の形態では、認証信号はカウンタコード更新要求(以下、単に「更新要求」ともいう)を含む。更新要求は、携帯機10の更新部102に対して携帯機側カウンタコードBを更新させる要求である。前記した携帯機側カウンタコードAの更新と同様に、携帯機側カウンタコードBの更新とは携帯機側カウンタコードBのカウントアップ処理である。したがって、更新要求とは、具体的には、携帯機10の更新部102に携帯機側カウンタコードBのカウントアップ処理を行わせるカウントアップ要求である。   Passive communication starts when a response request signal is transmitted from the in-vehicle device 20, and is established when the portable device 10 receives an authentication signal from the in-vehicle device 20. The response request signal is a content for requesting the portable device 10 to transmit a response signal. The authentication signal is a signal for notifying that the response signal transmitted by the portable device 10 has been authenticated. In the embodiment of the present invention, the authentication signal includes a counter code update request (hereinafter also simply referred to as “update request”). The update request is a request for causing the update unit 102 of the mobile device 10 to update the mobile device side counter code B. Similar to the updating of the portable device side counter code A, the updating of the portable device side counter code B is a count-up process of the portable device side counter code B. Therefore, the update request is specifically a count-up request that causes the update unit 102 of the portable device 10 to perform the count-up process of the portable device-side counter code B.

LF受信部104が応答要求信号を入力すると、制御部101は記憶部103からIDコードを取得し、IDコードを含む応答信号を生成する。制御部101は生成した応答信号をRF送信部105に出力する。RF送信部105は応答信号を変調して、RF信号として車載機20に送信する。   When the LF receiving unit 104 receives a response request signal, the control unit 101 acquires an ID code from the storage unit 103 and generates a response signal including the ID code. The control unit 101 outputs the generated response signal to the RF transmission unit 105. The RF transmitter 105 modulates the response signal and transmits it to the in-vehicle device 20 as an RF signal.

LF受信部104が更新要求を含む認証信号を入力すると、制御部101は、操作信号の出力後と同様に、更新コマンドを生成して更新部102に出力する。更新部102は、携帯機側カウンタコードAの更新と同様の処理を行って、携帯機側カウンタコードBを更新する。具体的には、更新部102は、記憶部103からカウンタ値Bを取得して、例えば、初期状態で1であったカウンタ値Bを、2にカウントアップさせ、カウントアップしたカウンタ値Bで既存のカウンタ値Bを上書きする。更新部102はさらに、基準値Bに上書きしたカウンタ値Bを加算したものを、鍵を用いて暗号化し、新たな携帯機側カウンタコードBを生成する。更新部102は、記憶部103が記憶している携帯機側カウンタコードBを、新たに生成した携帯機側カウンタコードBで上書きする。   When the LF reception unit 104 receives an authentication signal including an update request, the control unit 101 generates an update command and outputs the update command to the update unit 102 in the same manner as after the operation signal is output. The update unit 102 performs the same process as the update of the mobile device side counter code A to update the mobile device side counter code B. Specifically, the update unit 102 acquires the counter value B from the storage unit 103, for example, increments the counter value B that was 1 in the initial state to 2, and uses the counted up counter value B as an existing value. The counter value B is overwritten. Further, the update unit 102 encrypts a value obtained by adding the counter value B overwritten on the reference value B using a key, and generates a new portable device side counter code B. The update unit 102 overwrites the portable device counter code B stored in the storage unit 103 with the newly generated portable device counter code B.

更新部102による携帯機側カウンタコードBの更新が完了すると、制御部101は更新完了通知を生成して、RF送信部105に入力する。RF送信部105は、更新完了通知を変調してRF信号とし、RF送信アンテナ105bを介して車載機20に送信する。   When the update of the portable device side counter code B by the update unit 102 is completed, the control unit 101 generates an update completion notification and inputs it to the RF transmission unit 105. The RF transmission unit 105 modulates the update completion notification into an RF signal, and transmits the RF signal to the in-vehicle device 20 via the RF transmission antenna 105b.

[車載機]
図4は、車載機の構成を示すブロック図である。
図4に示すように、車載機20は、CPU200、記憶部204(車載機記憶部)、RF受信部205、入力I/F206、LF送信部209、ドアロックI/F210、ホーンI/F211、ハザードI/F212および通信I/F213を備える。CPU200は機能構成として、制御部201と、照合部202および更新部203(車載機更新部)を備えている。制御部201、照合部202および更新部203は、演算装置であるCPU、タイマ等を含んで構成される。記憶部204は、不揮発性メモリであるフラッシュメモリおよびROMならびに揮発性メモリであるRAMなどの情報記憶媒体で構成される。記憶部204は、車載機20の制御プログラムを記憶する。CPU200が記憶部204に記憶された制御プログラムを読み出して実行することで、前記した機能構成を実現する。特に記載しないが、CPU200の各部は、処理結果を一時的に記憶部204に記憶させ、必要なデータや処理対象を記憶部204から読み出し、処理終了後に一時的に記憶させたデータをリセットする。
[In-vehicle device]
FIG. 4 is a block diagram showing the configuration of the in-vehicle device.
As shown in FIG. 4, the in-vehicle device 20 includes a CPU 200, a storage unit 204 (on-vehicle device storage unit), an RF reception unit 205, an input I / F 206, an LF transmission unit 209, a door lock I / F 210, a horn I / F 211, A hazard I / F 212 and a communication I / F 213 are provided. CPU200 is provided with the control part 201, the collation part 202, and the update part 203 (vehicle equipment update part) as a function structure. The control part 201, the collation part 202, and the update part 203 are comprised including CPU, a timer, etc. which are arithmetic devices. The storage unit 204 is configured by an information storage medium such as a flash memory and a ROM that are nonvolatile memories, and a RAM that is a volatile memory. The storage unit 204 stores a control program for the in-vehicle device 20. The CPU 200 reads and executes the control program stored in the storage unit 204, thereby realizing the functional configuration described above. Although not particularly described, each unit of the CPU 200 temporarily stores the processing result in the storage unit 204, reads out necessary data and a processing target from the storage unit 204, and resets the temporarily stored data after the processing is completed.

記憶部204は、また、携帯機10との通信に必要な情報および車載設備の制御に必要な情報を記憶する。本発明の実施の形態では、記憶部204は、例として、IDコード、ファンクションコード、車載機側カウンタコードC(車載機側の第1のカウンタコード)、車載機側カウンタコードD(車載機側の第2のカウンタコード)基準値C、基準値D、カウンタ値C、カウンタ値D、暗号化および復号のための鍵等を記憶している。IDコード、ファンクションコード、暗号化および復号のための鍵は、携帯機10の記憶部103が記憶するものと同じである。   The storage unit 204 also stores information necessary for communication with the portable device 10 and information necessary for controlling the on-vehicle equipment. In the embodiment of the present invention, the storage unit 204 includes, for example, an ID code, a function code, an on-vehicle device side counter code C (first counter code on the on-vehicle device side), an on-vehicle device side counter code D (on-vehicle device side). The second counter code) stores a reference value C, a reference value D, a counter value C, a counter value D, a key for encryption and decryption, and the like. The ID code, function code, and encryption / decryption key are the same as those stored in the storage unit 103 of the portable device 10.

カウンタ値Cは、携帯機10の記憶部103が記憶するカウンタ値Aより小さい数になるように設定する。初期状態では、例えば、カウンタ値Cは0に設定する。カウンタ値Dは、携帯機10の記憶部103が記憶するカウンタ値Bと同じ数になるように設定する。初期状態では、例えば、カウンタD値は1に設定する。   The counter value C is set to be smaller than the counter value A stored in the storage unit 103 of the portable device 10. In the initial state, for example, the counter value C is set to 0. The counter value D is set to be the same number as the counter value B stored in the storage unit 103 of the portable device 10. In the initial state, for example, the counter D value is set to 1.

車載機側カウンタコードCは、固定の基準値Cにカウンタ値Cを付加したものを、鍵を用いて暗号化したコードである。車載機側カウンタコードDは、それぞれ固定の基準値Dにカウンタ値Dを付加したものを、鍵を用いて暗号化したコードである。車載機20の基準値Cは携帯機10の基準値Aと同じものであり、車載機側カウンタコードCは携帯機側カウンタコードAと対になるものである。車載機20の基準値Dは携帯機10の基準値Bと同じものであり、車載機側カウンタコードDは携帯機側カウンタコードBと対になるものである。   The on-vehicle device side counter code C is a code obtained by encrypting a reference value C added with a counter value C using a key. The in-vehicle device side counter code D is a code obtained by encrypting a reference value D added with a counter value D using a key. The reference value C of the in-vehicle device 20 is the same as the reference value A of the portable device 10, and the in-vehicle device side counter code C is paired with the portable device side counter code A. The reference value D of the in-vehicle device 20 is the same as the reference value B of the portable device 10, and the in-vehicle device side counter code D is paired with the portable device side counter code B.

カウンタ値C、Dをカウントアップさせると、車載機側カウンタコードC、Dもカウントアップする。車載機20のカウンタ値Cは携帯機10のカウンタ値Aより小さい数になるように設定されている。よって、車載機側カウンタコードCは、携帯機側カウンタコードAより小さい数になる。一方、車載機20のカウンタ値Cは携帯機10のカウンタ値Bと同じ数になるように設定されている。よって、車載機側カウンタコードDは、携帯機側カウンタコードBと同じ数になる。   When the counter values C and D are counted up, the on-vehicle device side counter codes C and D are also counted up. The counter value C of the in-vehicle device 20 is set to be smaller than the counter value A of the portable device 10. Therefore, the in-vehicle device side counter code C is smaller than the portable device side counter code A. On the other hand, the counter value C of the in-vehicle device 20 is set to be the same number as the counter value B of the portable device 10. Therefore, the in-vehicle device side counter code D is the same number as the portable device side counter code B.

なお、ここで述べたカウンタ値A、B、C、Dの数の設定はあくまで一例である。例えば、カウンタ値Cとカウンタ値Aが同じ数になるように設定してもよく、カウンタ値Dがカウンタ値Bより小さい数になるように設定しても良い。   The setting of the number of counter values A, B, C, and D described here is merely an example. For example, the counter value C and the counter value A may be set to the same number, or the counter value D may be set to a number smaller than the counter value B.

携帯機側カウンタコードA、Bと同様に、車載機側カウンタコードC、Dも異なるタイミングで更新を行う。車載機側カウンタコードCは、対となる携帯機側カウンタコードAと同様に、RKE処理の際に更新を行う。ただし、更新の処理として、車載機側カウンタコードCをカウントアップさせるのではなく、車載機側カウンタコードCを携帯機側カウンタコードAで上書きする処理を行う。一方、車載機側カウンタコードDは、対となる携帯機側カウンタコードBと同様に、パッシブ通信の際に更新を行う。車載機側カウンタコードDは、携帯機側カウンタコードBと同様に、カウントアップさせることにより更新を行う。更新の具体的な処理の内容は、制御部201の処理の説明と共に後述する。   Similarly to the portable device side counter codes A and B, the onboard device side counter codes C and D are also updated at different timings. The in-vehicle device side counter code C is updated during the RKE process, like the paired portable device side counter code A. However, as the update process, the on-vehicle device side counter code C is not counted up, but the on-vehicle device side counter code C is overwritten with the portable device side counter code A. On the other hand, the in-vehicle device side counter code D is updated in the case of passive communication in the same manner as the paired portable device side counter code B. As with the portable device side counter code B, the onboard device side counter code D is updated by counting up. Details of the update process will be described later together with a description of the process of the control unit 201.

LF送信部209はLF送信アンテナ209aに接続する。ドアロックI/F210はドアロックアクチュエータ214に接続する。ホーンI/F211はホーン215に接続する。ハザードI/F212はハザードランプ216に接続する。通信I/F213はその他各種車載設備217に接続する。各種車載設備217は、例えば、エアコンユニット、オーディオ装置、エンジンコントローラ等である。   The LF transmission unit 209 is connected to the LF transmission antenna 209a. The door lock I / F 210 is connected to the door lock actuator 214. The horn I / F 211 is connected to the horn 215. The hazard I / F 212 is connected to the hazard lamp 216. The communication I / F 213 is connected to various other in-vehicle facilities 217. The various in-vehicle facilities 217 are, for example, an air conditioner unit, an audio device, an engine controller, and the like.

RF受信部205はRF受信アンテナ205aに接続する。RF受信部205は、RF受信アンテナ205aを介して、携帯機10が送信したRF信号を受信する。RF受信部205は受信したRF信号の、増幅、変換および復調を実行し、復調後の信号を、制御部201に出力する。前記したように、携帯機10が送信するRF信号は、RKE処理におけるドアの解錠または施錠の操作信号と、パッシブ通信における応答信号および更新完了通知である。   The RF receiving unit 205 is connected to the RF receiving antenna 205a. The RF receiving unit 205 receives the RF signal transmitted from the portable device 10 via the RF receiving antenna 205a. The RF receiving unit 205 performs amplification, conversion, and demodulation of the received RF signal, and outputs the demodulated signal to the control unit 201. As described above, the RF signal transmitted by the portable device 10 is the door unlocking or locking operation signal in the RKE process, the response signal in the passive communication, and the update completion notification.

入力I/F206は各種スイッチ207とドア開閉センサ208に接続する。入力I/F206に接続する各種スイッチ207は、例えば、エンジンスイッチ、オーディオ操作スイッチ、エアコン操作スイッチである。ユーザが各種スイッチ207を操作すると、入力I/F206は各種スイッチ207に対応する操作信号を生成して、制御部201に出力する。また、入力I/F206は、ドア開閉センサ208がドアの開閉を検出すると、検出信号を生成して制御部201に出力する。   The input I / F 206 is connected to various switches 207 and a door opening / closing sensor 208. Various switches 207 connected to the input I / F 206 are, for example, an engine switch, an audio operation switch, and an air conditioner operation switch. When the user operates various switches 207, the input I / F 206 generates operation signals corresponding to the various switches 207 and outputs them to the control unit 201. The input I / F 206 generates a detection signal and outputs the detection signal to the control unit 201 when the door opening / closing sensor 208 detects opening / closing of the door.

制御部201は、車載機20の全体的な動作の制御を行う。制御部201は、例えば、RF受信部205および入力I/F206からの入力に応じて、車載機20の各部に入力するコマンドの生成と、携帯機10へ送信する信号の生成を行う。
RF受信部205が操作信号を入力すると、制御部201は、操作信号が含むIDコードと携帯機側カウンタコードA、Bを取得して照合部202に出力する。照合部202は、記憶部204からIDコードと車載機側カウンタコードC、Dを取得する。照合部202は、まず、操作信号のIDコードを記憶部のIDコードと照合し、照合が成立するか否かを判定する。具体的には、制御部201は、操作信号に含まれるIDコードが記憶部204のIDコードと一致した場合は照合が成立すると判定し、一致しなかった場合は照合が成立しないと判定する。
The control unit 201 controls the overall operation of the in-vehicle device 20. For example, the control unit 201 generates a command to be input to each unit of the in-vehicle device 20 and a signal to be transmitted to the portable device 10 in accordance with inputs from the RF receiving unit 205 and the input I / F 206.
When the RF reception unit 205 inputs an operation signal, the control unit 201 acquires the ID code and the portable device side counter codes A and B included in the operation signal and outputs them to the verification unit 202. The collation unit 202 acquires the ID code and the in-vehicle device side counter codes C and D from the storage unit 204. The collation unit 202 first collates the ID code of the operation signal with the ID code of the storage unit, and determines whether or not the collation is established. Specifically, the control unit 201 determines that the verification is established when the ID code included in the operation signal matches the ID code of the storage unit 204, and determines that the verification is not established when the ID code does not match.

照合部202は、IDコードの照合が成立した場合には、カウンタコードの照合を行う。照合部202は、カウンタコードの照合を二段階に分けて行う。照合部202は、i)携帯機側カウンタコードAが、車載機側カウンタコードCよりも大きいか否かを判断し、次にii)携帯機側カウンタコードBが車載機側カウンタコードと一致するか否かを判断する。照合部202は、i)の判断において、携帯機側カウンタコードAが車載機側カウンタコードCよりも大きかった場合のみ、ii)の判断を行う。携帯機側カウンタコードAが車載機側カウンタコードCと同じかそれより小さい場合は、ii)に進まずに照合の処理を終了する。そして、ii)の判断において、携帯機側カウンタコードBが車載機側カウンタコードDと一致した場合に、照合部202はカウンタコードの照合が成立したと判定する。照合の成立は、操作信号が車両のドアの施錠または解錠を許容できるものであることを意味する。   The collation unit 202 performs counter code collation when ID code collation is established. The verification unit 202 performs counter code verification in two stages. The collation unit 202 determines whether i) the mobile device side counter code A is larger than the in-vehicle device side counter code C, and then ii) the mobile device side counter code B matches the in-vehicle device side counter code. Determine whether or not. The collation unit 202 performs the determination of ii) only when the portable device side counter code A is larger than the in-vehicle device side counter code C in the determination of i). If the portable device side counter code A is equal to or smaller than the in-vehicle device side counter code C, the verification process is terminated without proceeding to ii). When the portable device side counter code B matches the in-vehicle device side counter code D in the determination of ii), the collation unit 202 determines that the counter code has been collated. The establishment of the collation means that the operation signal can permit the locking or unlocking of the vehicle door.

i)の判断において、携帯機側カウンタコードAが車載機側カウンタコードCより大きい場合でも、両者の差が予め設定した許容値より大きい場合には、照合部202は照合の処理を終了しても良い。例えば携帯機10と車載機20が通信できない状態では、ドアの施錠または解錠がされないため、ユーザが携帯機10のロックボタン11またはアンロックボタン12を何度も押下することがある。この場合は携帯機側カウンタコードAのみが更新されることになり、携帯機側カウンタコードAと車載機側カウンタコードCの差が大きくなる傾向がある。そのような場合を考慮して、携帯機側カウンタコードAと車載機側カウンタコードCの乖離はある程度許容しても良い。ただし、携帯機側カウンタコードAと車載機側カウンタコードCの乖離を無制限に許容してしまうと、セキュリティに影響を与える可能性がある。許容値は、ユーザの空押しの回数の傾向と、セキュリティの観点等から適宜設定することができる。   In the determination of i), even when the portable device side counter code A is larger than the in-vehicle device side counter code C, if the difference between the two is larger than the preset allowable value, the collation unit 202 ends the collation process. Also good. For example, when the portable device 10 and the vehicle-mounted device 20 cannot communicate with each other, the door may not be locked or unlocked, and the user may press the lock button 11 or the unlock button 12 of the portable device 10 many times. In this case, only the portable device side counter code A is updated, and the difference between the portable device side counter code A and the in-vehicle device side counter code C tends to increase. In consideration of such a case, the difference between the portable device side counter code A and the in-vehicle device side counter code C may be allowed to some extent. However, if the divergence between the portable device side counter code A and the in-vehicle device side counter code C is allowed without limitation, there is a possibility of affecting security. The allowable value can be set as appropriate from the viewpoint of the number of times the user presses and the security point of view.

なお、前記i)およびii)の判断の基準は、ここで述べた例に限定されるものではなく、カウンタ値の設定等に応じて適宜変更することができる。ここでは、カウンタ値Cはカウンタ値Aより小さくなるように設定し、カウンタ値Dはカウンタ値Bと同じになるように設定していることから、二つの判断の基準を異なるものとしている。例えば、カウンタ値A、Cとカウンタ値B、Dの関係を同じにした場合には、二つの判断の基準を同じにしても良い。   The criteria for the determinations in i) and ii) are not limited to the examples described here, and can be changed as appropriate according to the setting of the counter value. Here, since the counter value C is set to be smaller than the counter value A, and the counter value D is set to be the same as the counter value B, the two judgment criteria are different. For example, when the relationship between the counter values A and C and the counter values B and D is the same, the two determination criteria may be the same.

照合部202のカウンタコードの照合が成立した場合、制御部201は、操作信号に含まれる施錠または解錠を示すファンクションコードに従って、ドアの施錠または解錠の指令であるロックコマンドまたはアンロックコマンドを生成する。制御部201は生成したロックコマンドまたはアンロックコマンドをドアロックI/F210に入力する。ドアロックI/F210は、入力されたコマンドに従ってドアロックアクチュエータ214を駆動して、車両ドアの施錠または解錠を行う。   When verification of the counter code of the verification unit 202 is established, the control unit 201 sends a lock command or unlock command that is a command for locking or unlocking the door according to a function code indicating locking or unlocking included in the operation signal. Generate. The control unit 201 inputs the generated lock command or unlock command to the door lock I / F 210. The door lock I / F 210 drives the door lock actuator 214 in accordance with the input command to lock or unlock the vehicle door.

照合部202のカウンタコードの照合が成立した場合、制御部201は、更新部203に車載機側カウンタコードCの更新を指示する更新コマンドを出力する。更新コマンドは、携帯機側カウンタコードAで車載機側カウンタコードCを上書きする処理を指示するものである。制御部201は、更新コマンドに操作信号の携帯機側カウンタコードAを含めて出力する。   When collation of the counter code of the collation unit 202 is established, the control unit 201 outputs an update command that instructs the update unit 203 to update the on-vehicle device side counter code C. The update command is an instruction to overwrite the on-vehicle device side counter code C with the portable device side counter code A. The control unit 201 outputs the update command including the portable device side counter code A of the operation signal.

制御部201が更新コマンドを入力すると、更新部203は車載機側カウンタコードCの更新を行う。具体的には、更新部203はまず、記憶部204から鍵を取得し、その鍵を用いて携帯機側カウンタコードAを復号する。更新部203は復号した携帯機側カウンタコードAからカウンタ値Aを取得する。更新部203は、記憶部204に記憶されている既存のカウンタ値Cを取得したカウンタ値Aで上書きする。更新部203は、例えば、初期状態で0であったカウンタ値Cを、携帯機側カウンタコードのカウンタ値Aである1に上書きする。   When the control unit 201 inputs an update command, the update unit 203 updates the in-vehicle device side counter code C. Specifically, the update unit 203 first obtains a key from the storage unit 204, and decrypts the portable device side counter code A using the key. The update unit 203 acquires the counter value A from the decrypted mobile device side counter code A. The update unit 203 overwrites the existing counter value C stored in the storage unit 204 with the acquired counter value A. For example, the updating unit 203 overwrites the counter value C, which is 0 in the initial state, with 1 which is the counter value A of the portable device side counter code.

更新部203は、記憶部204から取得した基準値Cに上書きしたカウンタ値Cを加算したものを、鍵を用いて暗号化し、新たな車載機側カウンタコードCを生成する。更新部203は、記憶部204が記憶する車載機側カウンタコードCを、新たに生成した車載機側カウンタコードCで上書きする。車載機20のカウンタ値Cを、携帯機側カウンタコードAを構成するカウンタ値Aで上書きしているため、結果的に新たに生成した車載機側カウンタコードCは、携帯機側カウンタコードAと同じものである。すなわち、この新たに生成した車載機側カウンタコードCを既存の車載機側カウンタコードCに上書きすることは、携帯機側カウンタコードAで車載機側カウンタコードCを上書きすることを意味する。   The updating unit 203 encrypts a value obtained by adding the overwritten counter value C to the reference value C acquired from the storage unit 204 using a key, and generates a new on-vehicle device side counter code C. The update unit 203 overwrites the in-vehicle device side counter code C stored in the storage unit 204 with the newly generated in-vehicle device side counter code C. Since the counter value C of the in-vehicle device 20 is overwritten with the counter value A constituting the mobile device-side counter code A, the newly generated in-vehicle device-side counter code C is the same as the mobile device-side counter code A. The same thing. That is, overwriting the newly generated in-vehicle device side counter code C with the existing in-vehicle device side counter code C means overwriting the in-vehicle device side counter code C with the portable device side counter code A.

なお、前記したように、携帯機10の記憶部103が記憶するカウンタ値Aは操作信号の送信後の更新処理で、例えば2にカウントアップしているため、更新後も、車載機側カウンタコードCは携帯機側カウンタコードAよりも小さい数となる。   As described above, the counter value A stored in the storage unit 103 of the portable device 10 is counted up to 2, for example, in the update process after transmission of the operation signal. C is smaller than the counter code A on the portable device side.

照合部202のIDコードの照合が成立しない場合と、カウンタコードの照合が成立しない場合には、制御部201は車両のドアの施錠または解錠を行わない。さらに、カウンタコードの照合が成立しない場合は、制御部201は、警告の報知指令であるアラームコマンドを、ホーンI/F211とハザードI/F212とに出力する。携帯機側および車載機側カウンタコードA、B、C、Dの照合が成立しない場合は、Rolljam等の解錠を試みる中継機が操作信号を送信した可能性があるためである。具体的には、前記したi)の判断において、携帯機側カウンタコードAが車載機側カウンタコードCと同じかそれより小さい場合は、ii)に進まずにアラームコマンドを出力する。また、携帯機側カウンタコードAが車載機側カウンタコードCよりも大きく、ii)の判断に進んだときであっても、携帯機側カウンタコードBが車載機側カウンタコードDと一致しない場合は、アラームコマンドを出力する。   When the ID code verification of the verification unit 202 is not established and when the counter code verification is not established, the control unit 201 does not lock or unlock the door of the vehicle. Further, when the counter code verification is not established, the control unit 201 outputs an alarm command, which is a warning notification command, to the horn I / F 211 and the hazard I / F 212. This is because if the collation of the counter codes A, B, C, and D on the portable device side and the on-vehicle device side is not established, a relay device that attempts to unlock such as Rolljam may have transmitted an operation signal. Specifically, when the portable device side counter code A is equal to or smaller than the on-vehicle device side counter code C in the determination of i), the alarm command is output without proceeding to ii). In addition, even when the portable device side counter code A is larger than the in-vehicle device side counter code C and the determination proceeds to ii), the portable device side counter code B does not match the in-vehicle device side counter code D. , Output an alarm command.

ホーンI/F211は、アラームコマンドに従って、ホーン215を鳴らす駆動信号を生成し、ホーン215に出力する。これにより、ホーン215は、入力した駆動信号に基づいて鳴動音を出力する。ハザードI/F212は、アラームコマンドが入力されると、ハザードランプ216を明滅させる明滅信号を生成し、ハザードランプ216に出力する。ハザードランプ216は、入力した明滅信号に基づいて明滅する。すなわち、本発明の実施の形態において、ホーンI/F211とホーン215、ハザードI/F212とハザードランプ216は、警告を報知する車載機報知部として機能する。   The horn I / F 211 generates a drive signal for sounding the horn 215 according to the alarm command, and outputs it to the horn 215. Thereby, the horn 215 outputs a ringing sound based on the input drive signal. When an alarm command is input, the hazard I / F 212 generates a blink signal that causes the hazard lamp 216 to blink, and outputs the blink signal to the hazard lamp 216. The hazard lamp 216 blinks based on the inputted blink signal. That is, in the embodiment of the present invention, the horn I / F 211 and the horn 215, and the hazard I / F 212 and the hazard lamp 216 function as an in-vehicle device notification unit that notifies a warning.

入力I/F206からの各種スイッチ207の操作信号およびドア開閉センサ208の検出信号が入力されると、制御部201は、パッシブ通信を開始するため応答要求信号を生成する。応答要求信号は、携帯機10に対して応答信号の送信を要求する内容である。前記したように、車両の所定動作は、車載設備の動作とドアの開閉動作を意味する。各種スイッチ207の操作信号の入力は車載設備の動作が行われることを意味し、ドア開閉センサ208の検出信号の入力はドアの開閉動作が行われたことを意味する。よって、操作信号および検出信号が入力されたタイミングで、パッシブ通信が行われる。   When the operation signals of the various switches 207 and the detection signals of the door opening / closing sensor 208 are input from the input I / F 206, the control unit 201 generates a response request signal to start passive communication. The response request signal is a content for requesting the portable device 10 to transmit a response signal. As described above, the predetermined operation of the vehicle means the operation of the on-vehicle equipment and the opening / closing operation of the door. Input of operation signals of various switches 207 means that the on-vehicle equipment is operated, and input of detection signals of the door open / close sensor 208 means that the door is opened / closed. Therefore, passive communication is performed at the timing when the operation signal and the detection signal are input.

制御部201は、生成した応答要求信号をLF送信部209に出力する。LF送信部209は制御部201から入力された応答要求信号を変調してLF信号とし、LF送信アンテナ209aを介して携帯機10に送信する。   The control unit 201 outputs the generated response request signal to the LF transmission unit 209. The LF transmission unit 209 modulates the response request signal input from the control unit 201 into an LF signal, and transmits the LF signal to the portable device 10 via the LF transmission antenna 209a.

前記したように、携帯機10は応答要求信号に対する返信として応答信号を送信する。RF受信部205が携帯機からの応答信号を制御部201に入力すると、制御部201は、応答信号が含むIDコードを取得して照合部202に出力する。照合部202は、記憶部204からIDコードを取得し、応答信号のIDコードと照合する。IDコードが一致する場合には、制御部201は更新要求を含む認証信号を生成して、LF送信部209に出力する。   As described above, the portable device 10 transmits a response signal as a response to the response request signal. When the RF reception unit 205 inputs a response signal from the portable device to the control unit 201, the control unit 201 acquires the ID code included in the response signal and outputs the ID code included in the response unit 202. The collation unit 202 acquires the ID code from the storage unit 204 and collates it with the ID code of the response signal. If the ID codes match, the control unit 201 generates an authentication signal including an update request and outputs the authentication signal to the LF transmission unit 209.

制御部201が応答信号を入力すると、LF送信部209は認証信号を変調してLF信号とし、LF送信アンテナ209aを介して携帯機10に送信する。   When the control unit 201 inputs a response signal, the LF transmission unit 209 modulates the authentication signal into an LF signal and transmits the LF signal to the portable device 10 via the LF transmission antenna 209a.

前記したように、更新要求に応じて携帯機10の更新部102が携帯機側カウンタコードBを更新すると、携帯機10から更新完了通知が送信される。RF受信部205から更新完了通知が入力されると、制御部201は、更新部203に対して更新コマンドを出力する。パッシブ通信において出力される更新コマンドは、車載機側カウンタコードDをカウントアップさせる処理を指示するものである。   As described above, when the update unit 102 of the portable device 10 updates the portable device side counter code B in response to the update request, an update completion notification is transmitted from the portable device 10. When an update completion notification is input from the RF reception unit 205, the control unit 201 outputs an update command to the update unit 203. The update command output in the passive communication instructs a process for counting up the in-vehicle device side counter code D.

制御部201が更新コマンドを入力すると、更新部203は、記憶部204が記憶している車載機側カウンタコードDを、カウントアップ処理により更新する。具体的な処理としては、更新部203は、記憶部204からカウンタ値Dを取得してカウントアップさせる。例えば、更新部203は、初期状態で1であったカウンタ値Dを2にカウントアップさせる。更新部203はカウントアップしたカウンタ値Dで既存のカウンタ値Dを上書きする。更新部203はさらに、基準値Dに上書きしたカウンタ値Dを加算したものを、鍵を用いて暗号化し、新たな車載機側カウンタコードDを生成する。更新部203は、記憶部204に記憶されている車載機側カウンタコードDを、新たに生成した車載機側カウンタコードDで上書きする。   When the control unit 201 inputs an update command, the update unit 203 updates the in-vehicle device side counter code D stored in the storage unit 204 by a count-up process. As a specific process, the update unit 203 acquires the counter value D from the storage unit 204 and counts up. For example, the updating unit 203 increments the counter value D, which was 1 in the initial state, to 2. The update unit 203 overwrites the existing counter value D with the counter value D counted up. Further, the update unit 203 encrypts a value obtained by adding the overwritten counter value D to the reference value D using a key, and generates a new on-vehicle device side counter code D. The update unit 203 overwrites the in-vehicle device side counter code D stored in the storage unit 204 with the newly generated in-vehicle device side counter code D.

前記したように、携帯機10の更新部102は、更新完了通知の送信前に、携帯機10のカウンタ値Bを、例えば2にカウントアップさせている。よって、車載機側カウンタコードDの更新によって、車載機側カウンタコードDは携帯機側カウンタコードBと同じ数になる。   As described above, the update unit 102 of the portable device 10 increments the counter value B of the portable device 10 to 2, for example, before transmitting the update completion notification. Therefore, by updating the in-vehicle device side counter code D, the in-vehicle device side counter code D becomes the same number as the portable device side counter code B.

通信I/Fが各種スイッチ207の操作による操作信号を制御部201に入力した場合、制御部201は応答要求信号を生成するだけでなく、操作信号に応じて、車載設備の動作を制御する。例えば、エアコン操作スイッチの操作による操作信号に応じて、通信I/F213を介してエアコンユニットに対して制御信号を送信する。エアコンユニットは制御信号に基づいて、エアコンの各種設定を変更し空調を行う。   When communication I / F inputs the operation signal by operation of various switches 207 to the control part 201, the control part 201 not only produces | generates a response request signal, but controls operation | movement of vehicle equipment according to an operation signal. For example, a control signal is transmitted to the air conditioner unit via the communication I / F 213 in response to an operation signal generated by operating the air conditioner operation switch. The air conditioner unit performs air conditioning by changing various settings of the air conditioner based on the control signal.

また、例えば、オーディオ操作スイッチの操作による操作信号に応じて、制御部201は、オーディオ装置に対して制御信号を送信する。オーディオ装置は、制御信号に基づいて作動する。   For example, the control unit 201 transmits a control signal to the audio device in response to an operation signal generated by operating an audio operation switch. The audio device operates based on the control signal.

さらに、例えば、エンジンスイッチの操作による操作信号に応じて、制御部201はエンジンコントローラに対して制御信号を送信する。エンジンコントローラは、制御信号に従ってエンジンを制御する。   Further, for example, the control unit 201 transmits a control signal to the engine controller in response to an operation signal generated by operating an engine switch. The engine controller controls the engine according to the control signal.

以下、キーレスシステムKで実行される処理を説明する。
車載機20および携帯機10に電源が供給されると、初期処理が実行される。初期処理では、携帯機10および車載機20それぞれの制御部101、201での処理に用いられるパラメータの初期化処理が実施される。例えば、車載機20のカウンタ値は1に、携帯機10のカウンタ値は0に初期化される。
Hereinafter, processing executed in the keyless system K will be described.
When power is supplied to the in-vehicle device 20 and the portable device 10, initial processing is executed. In the initial process, an initialization process of parameters used for the processes in the control units 101 and 201 of the portable device 10 and the in-vehicle device 20 is performed. For example, the counter value of the in-vehicle device 20 is initialized to 1, and the counter value of the portable device 10 is initialized to 0.

図5は、初期処理後のキーレスシステムKにおける処理の概略を示すフローチャートである。
図5に示すように、ユーザにより、携帯機10のロックボタン11またはアンロックボタン12が押下されると(ステップS01:Yes)、キーレスシステムKはRKE処理を行う(ステップS02)。このRKE処理において、キーレスシステムKは携帯機側カウンタコードAと車載機側カウンタコードCを更新する。
FIG. 5 is a flowchart showing an outline of processing in the keyless system K after the initial processing.
As shown in FIG. 5, when the user presses the lock button 11 or the unlock button 12 of the portable device 10 (step S01: Yes), the keyless system K performs the RKE process (step S02). In this RKE process, the keyless system K updates the portable device side counter code A and the in-vehicle device side counter code C.

車両の所定動作の際には(ステップS01:No、ステップS03:Yes)、キーレスシステムKはパッシブ通信を行う(ステップS04)。このパッシブ通信において、キーレスシステムKは携帯機側カウンタコードBと車載機側カウンタコードDを更新する。   During the predetermined operation of the vehicle (step S01: No, step S03: Yes), the keyless system K performs passive communication (step S04). In this passive communication, the keyless system K updates the portable device side counter code B and the in-vehicle device side counter code D.

このように、キーレスシステムKは、携帯機側カウンタコードAと車載機側カウンタコードC、携帯機側カウンタコードBと車載機側カウンタコードDという、二組のカウンタコードを、RKE処理とパッシブ通信という異なるタイミングで更新する。   As described above, the keyless system K has two sets of counter codes, the portable device side counter code A and the onboard device side counter code C, and the portable device side counter code B and the onboard device side counter code D, RKE processing and passive communication. Update at different timings.

なお、ロックボタン11またはアンロックボタン12が押下されず(ステップS01:No)、かつ車両の所定動作も行われない(ステップS03:No)状態では、携帯機10および車載機20は省電力のためスリープモードに移行する。ただし、スリープモードにおいても、携帯機10および車載機20は間欠的にスリープ状態を解除して、相互に信号を受信可能となっている。   In addition, in the state where the lock button 11 or the unlock button 12 is not pressed (step S01: No) and the predetermined operation of the vehicle is not performed (step S03: No), the portable device 10 and the vehicle-mounted device 20 save power. Therefore, it shifts to the sleep mode. However, even in the sleep mode, the portable device 10 and the vehicle-mounted device 20 can intermittently cancel the sleep state and receive signals from each other.

次に、図5のステップS02のRKE処理の詳細を説明する。
図6の(a)は、RKE処理における携帯機10の処理を示すフローチャートであり、図6の(b)は、RKE処理における車載機20の処理を示すフローチャートである。
Next, details of the RKE process in step S02 of FIG. 5 will be described.
6A is a flowchart showing the process of the portable device 10 in the RKE process, and FIG. 6B is a flowchart showing the process of the in-vehicle device 20 in the RKE process.

図6の(a)に示すように、携帯機10のロックボタン11またはアンロックボタン12が押下されると、制御部101が施錠または解錠の操作信号を生成して、RF送信部105に操作信号を送信させる(ステップS211)。操作信号の送信後、更新部102が携帯機側カウンタコードAをカウントアップ処理により更新する(ステップS212)。   As shown in FIG. 6A, when the lock button 11 or the unlock button 12 of the portable device 10 is pressed, the control unit 101 generates an operation signal for locking or unlocking, and sends it to the RF transmission unit 105. An operation signal is transmitted (step S211). After the operation signal is transmitted, the update unit 102 updates the portable device side counter code A by a count-up process (step S212).

図6の(b)に示すように、車載機20は携帯機10から施錠または解錠の操作信号を受信すると(ステップS251:Yes)、照合部202はIDコードの照合とカウンタコードの照合を行う(ステップS252)。照合部202は、操作信号に含まれるIDコードと記憶部204に記憶されているIDコードが一致した場合(ステップS253:Yes)、カウンタコードの照合に進む。照合部202は、カウンタコードの照合において、携帯機側カウンタコードAが車載機側カウンタコードBよりも大きく(ステップS254:Yes)、携帯機側カウンタコードBが車載機側カウンタコードDと一致した(ステップS255:Yes)場合は、制御部201はドアロックアクチュエータ214を駆動して、ドアの施錠または解錠を行う(ステップS256)。また、更新部203は車載機側カウンタコードCを上書き処理により更新する(ステップS257)。   As shown in FIG. 6B, when the in-vehicle device 20 receives the operation signal for locking or unlocking from the portable device 10 (step S251: Yes), the verification unit 202 performs ID code verification and counter code verification. This is performed (step S252). When the ID code included in the operation signal matches the ID code stored in the storage unit 204 (step S253: Yes), the verification unit 202 proceeds to verification of the counter code. In the verification of the counter code, the collation unit 202 has the portable device side counter code A larger than the in-vehicle device side counter code B (step S254: Yes), and the portable device side counter code B matches the in-vehicle device side counter code D. In the case of (Step S255: Yes), the control unit 201 drives the door lock actuator 214 to lock or unlock the door (Step S256). In addition, the update unit 203 updates the in-vehicle device side counter code C by overwriting processing (step S257).

照合部202の照合において、IDコードが一致しない場合(ステップS253:No)、制御部201はドアの施錠または解錠は行わずに処理を終了する。照合部202の照合において、携帯機側カウンタコードAが車載機側カウンタコードCと同じかそれより小さい場合(ステップS254:No)と、携帯機側カウンタコードBが車載機側カウンタコードDと一致しない場合(ステップS255:No)制御部201は、ドアの施錠または解錠は行わず、さらにホーン215に鳴動音を出力させ、かつハザードランプ216を明滅させることで警告を報知する(ステップS258)。   In the collation performed by the collation unit 202, if the ID codes do not match (step S253: No), the control unit 201 ends the process without locking or unlocking the door. When the portable unit side counter code A is equal to or smaller than the vehicle unit counter code C (No in step S254), the portable unit counter code B matches the vehicle unit counter code D. If not (step S255: No), the controller 201 does not lock or unlock the door, outputs a ringing sound to the horn 215, and blinks the hazard lamp 216 to notify the warning (step S258). .

次に、図5のステップS04のパッシブ通信の処理の詳細を説明する。
図7の(a)は、パッシブ通信における携帯機10の処理を示すフローチャートであり、図7の(b)は、パッシブ通信における車載機20の処理を示すフローチャートである。
Next, details of the passive communication process in step S04 of FIG. 5 will be described.
FIG. 7A is a flowchart showing processing of the portable device 10 in passive communication, and FIG. 7B is a flowchart showing processing of the in-vehicle device 20 in passive communication.

図7の(b)に示すように、車両の所定動作の際、すなわち、車載機20の入力I/F206から各種スイッチ207の操作信号またはドア開閉センサ208の検出信号が入力されると、制御部201は応答要求信号を生成して、LF送信部209に送信させる(ステップS451)。   As shown in FIG. 7B, when a predetermined operation of the vehicle, that is, when an operation signal of various switches 207 or a detection signal of the door opening / closing sensor 208 is input from the input I / F 206 of the in-vehicle device 20, the control is performed. The unit 201 generates a response request signal and causes the LF transmission unit 209 to transmit the response request signal (step S451).

図7の(a)に示すように、車載機20から応答要求信号を受信すると(ステップS411:Yes)、携帯機10の制御部101は応答信号を生成し、RF送信部105に送信させる(ステップS412)。   As shown in FIG. 7A, when a response request signal is received from the in-vehicle device 20 (step S411: Yes), the control unit 101 of the portable device 10 generates a response signal and transmits it to the RF transmission unit 105 ( Step S412).

図7の(b)に示すように、携帯機10から応答信号を受信すると(ステップS452:Yes)、車載機20の照合部202が応答信号に含まれるIDコードを、記憶部204に記憶されたIDコードと照合する(ステップS453)。照合部202の照合結果として、IDコードが一致する場合(ステップS454:Yes)、制御部201は認証信号を生成して、LF送信部209に送信させる(ステップS455)。この認証信号は、携帯機側カウンタコードBの更新要求を含んでいる。   As shown in FIG. 7B, when the response signal is received from the portable device 10 (step S452: Yes), the collation unit 202 of the in-vehicle device 20 stores the ID code included in the response signal in the storage unit 204. The ID code is collated (step S453). When the ID codes match as a collation result of the collation unit 202 (step S454: Yes), the control unit 201 generates an authentication signal and transmits the authentication signal to the LF transmission unit 209 (step S455). This authentication signal includes a request for updating the portable device side counter code B.

図7の(a)に示すように、車載機20からの認証信号を受信すると(ステップS413:Yes)、携帯機10の更新部102は携帯機側カウンタコードBをカウントアップ処理により更新する(ステップS414)。更新部102が更新を完了すると、制御部101は更新完了通知を生成してRF送信部105に送信させる(ステップS415)。   As shown in FIG. 7A, when the authentication signal is received from the in-vehicle device 20 (step S413: Yes), the update unit 102 of the portable device 10 updates the portable device-side counter code B by the count-up process ( Step S414). When the update unit 102 completes the update, the control unit 101 generates an update completion notification and causes the RF transmission unit 105 to transmit the notification (step S415).

図7の(b)に示すように、携帯機10からの更新完了通知を受信すると(ステップS456:Yes)、車載機20の更新部203は車載機側カウンタコードDをカウントアップ処理により更新する(ステップS457)。   As shown in FIG. 7B, when the update completion notification is received from the portable device 10 (step S456: Yes), the update unit 203 of the in-vehicle device 20 updates the in-vehicle device side counter code D by the count-up process. (Step S457).

ステップS452において、携帯機10から応答信号を一定時間経過しても受信できなかった場合は(ステップS452:No)、ステップS451に戻り、車載機20の制御部201は応答要求信号を再送信する。ステップS454において、IDコードが一致しない場合(ステップS454:No)も、ステップS451に戻り、車載機20の制御部201は応答要求信号を再送信する。   In step S452, when the response signal cannot be received from the portable device 10 even after a predetermined time has elapsed (step S452: No), the process returns to step S451, and the control unit 201 of the in-vehicle device 20 retransmits the response request signal. . If the ID codes do not match in step S454 (step S454: No), the process returns to step S451, and the control unit 201 of the in-vehicle device 20 retransmits the response request signal.

ステップS413において、車載機20から認証信号を一定時間経過しても受信できなかった場合は(ステップS413:No)、ステップS412に戻り、携帯機10の制御部101は応答信号を再送信する。   In step S413, if the authentication signal is not received from the in-vehicle device 20 even after a predetermined time has elapsed (step S413: No), the process returns to step S412 and the control unit 101 of the portable device 10 retransmits the response signal.

ステップS456において、携帯機10から更新完了通知を一定時間経過しても受信できなかった場合は(ステップS456:No)、ステップS455に戻り、車載機20の制御部201は認証信号を再送信する。   In step S456, when the update completion notification is not received from the portable device 10 even after a predetermined time has passed (step S456: No), the process returns to step S455, and the control unit 201 of the in-vehicle device 20 retransmits the authentication signal. .

なお、各信号の再送信を一定回数繰り返しても、相手方から信号を受信できなかった場合には、携帯機10および車載機20の制御部201は処理を終了するようにしても良い。   Note that if the signal cannot be received from the other party even if the re-transmission of each signal is repeated a certain number of times, the control unit 201 of the portable device 10 and the in-vehicle device 20 may end the process.

また、図示は省略しているが、各種スイッチ207の操作によってパッシブ通信が開始された場合には、車載機20の制御部201はステップS457の後に、操作信号に対応する車載設備の動作制御を行う。   Although illustration is omitted, when passive communication is started by operation of various switches 207, the control unit 201 of the in-vehicle device 20 performs operation control of the in-vehicle equipment corresponding to the operation signal after step S457. Do.

[適用例]
本発明の実施の形態に係るキーレスシステムKの適用例を説明する。
図8は、車両窃盗等の不正行為を試みる第三者が存在する場面に、キーレスシステムKを適用した例を示す図である。図8に示すように、第三者は中継機であるRolljamを所持している。RolljamはRF信号を傍受する機能と、強い妨害電波を発生させる機能を有する。例えば、駐車場等の不特定多数が出入り可能な場所において、第三者はユーザの車両の側に潜んでいる。ユーザが車両に近づき、ドアを解錠するために携帯機10のアンロックボタン12を押下するときに、第三者はRolljamを動作させる。これによって、Rolljamは携帯機10が送信する解錠の操作信号を傍受すると共に、妨害電波により操作信号が車載機20に到達することを阻害することができる。
[Application example]
An application example of the keyless system K according to the embodiment of the present invention will be described.
FIG. 8 is a diagram illustrating an example in which the keyless system K is applied to a scene where there is a third party who attempts an illegal act such as vehicle theft. As shown in FIG. 8, the third party has Rolljam as a repeater. Rolljam has a function of intercepting RF signals and a function of generating strong interference radio waves. For example, in a place where an unspecified number such as a parking lot can go in and out, a third party is lurking on the user's vehicle side. When the user approaches the vehicle and presses the unlock button 12 of the portable device 10 to unlock the door, the third party operates Rolljam. As a result, Rolljam can intercept the unlocking operation signal transmitted by the portable device 10 and inhibit the operation signal from reaching the in-vehicle device 20 due to the jamming radio wave.

ここで、先に比較例を示して、Rolljamによって不正行為が可能となる状況を説明する。比較例と実施の形態の相違点は、比較例のキーレスシステムは、カウンタコードを一組(携帯機側カウンタコードAおよび車載機側カウンタコードC)のみを有することである。すなわち、比較例は携帯機側カウンタコードBおよび車載機側カウンタコードDを有さず、またパッシブ通信におけるカウンタコードの更新も行わない。RKE処理においては、実施の形態と同様に携帯機側カウンタコードAおよび車載機側カウンタコードCの更新を行う。   Here, a comparative example is shown first, and the situation where fraud is possible by Rolljam is explained. The difference between the comparative example and the embodiment is that the keyless system of the comparative example has only one set of counter codes (the portable device side counter code A and the in-vehicle device side counter code C). That is, the comparative example does not have the portable device side counter code B and the in-vehicle device side counter code D, and does not update the counter code in passive communication. In the RKE process, the portable device side counter code A and the in-vehicle device side counter code C are updated as in the embodiment.

図9は、比較例における携帯機10、車載機20およびRolljamの通信を示すシーケンスチャートである。図9に示すように、携帯機側カウンタコードAおよび車載機側カウンタコードCを構成する基準値A、CをXとし、カウンタ値A、Cの初期値をそれぞれ1、0とする。前記したように、携帯機側および車載機側カウンタコードA、Cは暗号化されているが、図9の例では、便宜的に、基準値A、Cとカウンタ値A、Cを単純に加算したものを携帯機側および車載機側カウンタコードA、Cとして取り扱う。すなわち、携帯機側カウンタコードAの初期値はX+1、車載機側カウンタコードCの初期値はX+0である。   FIG. 9 is a sequence chart showing communication between the portable device 10, the vehicle-mounted device 20, and the Rolljam in the comparative example. As shown in FIG. 9, the reference values A and C constituting the portable device side counter code A and the in-vehicle device side counter code C are X, and the initial values of the counter values A and C are 1 and 0, respectively. As described above, the counter codes A and C on the portable device side and on-vehicle device side are encrypted, but in the example of FIG. 9, the reference values A and C and the counter values A and C are simply added for convenience. Are handled as portable device side and on-vehicle device side counter codes A and C. That is, the initial value of the mobile device side counter code A is X + 1, and the initial value of the on-vehicle device side counter code C is X + 0.

第三者はユーザが車両に近づくのを見て、Rolljamを動作させて妨害電波を発生させる。ユーザがアンロックボタン12を押下すると、携帯機10は最初の操作信号を送信する。この最初の操作信号は、携帯機側カウンタコードA(X+1)を含む。最初の操作信号の送信後、携帯機10は携帯機側カウンタコードAをX+1からX+2に更新する。   The third party sees the user approaching the vehicle and activates Rolljam to generate jamming. When the user presses the unlock button 12, the portable device 10 transmits an initial operation signal. This first operation signal includes the portable device side counter code A (X + 1). After transmitting the first operation signal, the portable device 10 updates the portable device side counter code A from X + 1 to X + 2.

Rolljamは、携帯機10が送信した最初の操作信号を傍受してメモリに記憶する。妨害電波により、最初の操作信号は車載機20に到達せず、車両のドアは解錠されない。そのため、ユーザは再度アンロックボタン12を押下する。アンロックボタン12の押下により、携帯機10は2回目の操作信号を送信する。2回目の操作信号は、携帯機側カウンタコードA(X+2)を含む。2回目の操作信号の送信後、携帯機10は携帯機側カウンタコードAをX+2からX+3に更新する。   Rolljam intercepts the first operation signal transmitted by the portable device 10 and stores it in the memory. Due to the jamming wave, the first operation signal does not reach the vehicle-mounted device 20 and the vehicle door is not unlocked. Therefore, the user presses the unlock button 12 again. When the unlock button 12 is pressed, the portable device 10 transmits a second operation signal. The second operation signal includes the portable device side counter code A (X + 2). After transmitting the second operation signal, the portable device 10 updates the portable device side counter code A from X + 2 to X + 3.

Rolljamは、2回目の操作信号も傍受してメモリに記憶する。1回目の操作信号と同様に、2回目の操作信号も妨害電波により車載機20に到達しない。しかしながら、Rolljamは2回目の操作信号をメモリに記憶後、妨害電波の発生を停止して、先に記憶した1回目の操作信号を、車載機20に送信する。   Rolljam intercepts the second operation signal and stores it in memory. Similarly to the first operation signal, the second operation signal does not reach the vehicle-mounted device 20 due to the jamming radio wave. However, Rolljam stores the second operation signal in the memory, stops the generation of the jamming electric wave, and transmits the first operation signal stored previously to the in-vehicle device 20.

車載機20は受信した1回目の操作信号のカウンタコードの照合を行う。比較例では携帯機側カウンタコードAと車載機側カウンタコードCの一組のみ照合を行う。Rolljamが送信した1回目の操作信号の携帯機側カウンタコードAが、車載機側カウンタコードCより大きいかを判断する。なお、車載機20はIDコードの照合も行っているが、IDコードが一致している前提であるため、記載は省略する。照合の結果、携帯機側カウンタコードAは車載機側カウンタコードCより大きい(X+1>X+0)ため、車載機20は車両のドアを解錠させる。解錠後、車載機は車載機側カウンタコードA+0を、操作信号に含まれる携帯機側カウンタコードA+1で上書きして更新する。   The in-vehicle device 20 collates the counter code of the received first operation signal. In the comparative example, only one set of the portable device side counter code A and the in-vehicle device side counter code C is collated. It is determined whether the portable device side counter code A of the first operation signal transmitted by Rolljam is larger than the in-vehicle device side counter code C. In addition, although the vehicle equipment 20 is collating ID code, since it is a premise that ID code corresponds, description is abbreviate | omitted. As a result of the collation, since the portable device side counter code A is larger than the onboard device side counter code C (X + 1> X + 0), the onboard device 20 unlocks the door of the vehicle. After unlocking, the in-vehicle device overwrites and updates the in-vehicle device side counter code A + 0 with the portable device side counter code A + 1 included in the operation signal.

このように、Rolljamによって車両のドアが解錠されるが、このときはユーザが車両の傍にいるため、第三者が車両窃盗等の不正行為を行うことはできない。ただし、ユーザが2回目にアンロックボタン12を押下した後に車両のドアが解錠するため、第三者によって操作信号を傍受されたことを、ユーザが気づく可能性は高くない。ユーザはそのまま車両のドアを開閉させたり、各種スイッチを操作したりする。すなわち、車両の所定動作が行われる。車両の所定動作の際に、車載機20と携帯機10の間でパッシブ通信が行われる。パッシブ通信は複数回行われることもあるが、ここでは一回のみ行われる例を示している。車載機20が応答要求信号を送信したとき、すでに妨害電波の発生はないため、応答要求信号は携帯機10に到達する。携帯機10は応答信号を車載機20に送信し、車載機20は応答信号に含まれるIDコードを照合して、認証信号を携帯機10に送信する。比較例では、認証信号は更新要求を含まない。そのため、認証信号の送信によってパッシブ通信の処理は終了する。   In this way, the door of the vehicle is unlocked by Rolljam. At this time, since the user is near the vehicle, a third party cannot perform illegal acts such as vehicle theft. However, since the door of the vehicle is unlocked after the user presses the unlock button 12 for the second time, the possibility that the user notices that the operation signal has been intercepted by a third party is not high. The user simply opens and closes the door of the vehicle and operates various switches. That is, a predetermined operation of the vehicle is performed. Passive communication is performed between the in-vehicle device 20 and the portable device 10 during a predetermined operation of the vehicle. Although passive communication may be performed a plurality of times, an example in which the passive communication is performed only once is shown here. When the in-vehicle device 20 transmits a response request signal, the response request signal reaches the portable device 10 because no interference wave has already been generated. The portable device 10 transmits a response signal to the in-vehicle device 20, and the in-vehicle device 20 collates the ID code included in the response signal and transmits an authentication signal to the portable device 10. In the comparative example, the authentication signal does not include an update request. Therefore, the passive communication process is terminated by transmitting the authentication signal.

パッシブ通信の後、ユーザが車両から離れた隙に、第三者はRolljamに記憶させた2回目の操作信号を車載機20に送信する。車載機20は2回目の操作信号のカウンタコードの照合を行う。携帯機側カウンタコードAは車載機側カウンタコードCより大きい(X+2>X+1)ため、車載機20は車両のドアを解錠させてしまう。最初の解錠と異なり、このときユーザは車両から離れているため、第三者が車両窃盗等の不正行為を働くことが可能となる。   After the passive communication, the third party transmits a second operation signal stored in Rolljam to the in-vehicle device 20 when the user leaves the vehicle. The in-vehicle device 20 collates the counter code of the second operation signal. Since the portable device side counter code A is larger than the onboard device side counter code C (X + 2> X + 1), the onboard device 20 unlocks the door of the vehicle. Unlike the initial unlocking, since the user is away from the vehicle at this time, it becomes possible for a third party to perform an illegal act such as vehicle theft.

この比較例のように、一組のカウンタコードのみを備え、かつRKE処理でカウンタコードを更新する場合は、Rolljamのような妨害電波を発生させながら操作信号を傍受する中継機を用いることで、第三者の車両に対する不正行為を防げないおそれがある。   As in this comparative example, when only a set of counter codes is provided and the counter codes are updated by RKE processing, by using a repeater that intercepts operation signals while generating jamming radio waves such as Rolljam, There is a risk that fraud against third-party vehicles cannot be prevented.

次に、実施の形態の適用例を説明する。図10は、実施の形態の適用例における携帯機10、車載機20およびRolljamの通信を示すシーケンスチャートである。
前記したように、実施の形態の適用例は、もう一組のカウンタコード(携帯機側カウンタコードBと車載機側カウンタコードD)を備え、かつそのもう一組のカウンタコードの更新をパッシブ通信において行う点で、比較例と相違する。
Next, an application example of the embodiment will be described. FIG. 10 is a sequence chart showing communication between the portable device 10, the in-vehicle device 20, and the Rolljam in the application example of the embodiment.
As described above, the application example of the embodiment includes another set of counter codes (the portable device side counter code B and the in-vehicle device side counter code D), and the update of the other set of counter codes is passively communicated. This is different from the comparative example in that

図10に示すように、携帯機側カウンタコードBおよび車載機側カウンタコードDを構成する基準値B、DをYとし、カウンタ値B、Dの初期値をそれぞれ1とする。携帯機側および車載機側カウンタコードB、Dは暗号化されているが、図10の例では、便宜的に、基準値B、Dとカウンタ値B、Dを単純に加算したものを携帯機側および車載機側カウンタコードB、Dとして取り扱う。すなわち、携帯機側カウンタコードBの初期値はY+1、車載機側カウンタコードDの初期値はY+1である。携帯機側および車載機側カウンタコードA、Cについては比較例と同じであるため、詳細な説明は省略する。   As shown in FIG. 10, the reference values B and D constituting the portable device side counter code B and the in-vehicle device side counter code D are Y, and the initial values of the counter values B and D are 1, respectively. Although the portable device side and in-vehicle device side counter codes B and D are encrypted, in the example of FIG. 10, for convenience, the reference values B and D and the counter values B and D are simply added to the portable device. Side and in-vehicle device side counter codes B and D. That is, the initial value of the portable device side counter code B is Y + 1, and the initial value of the onboard device side counter code D is Y + 1. Since the portable device side and on-vehicle device side counter codes A and C are the same as those in the comparative example, detailed description thereof is omitted.

RKE処理における携帯機10、Rolljamおよび車載機20の通信の大まかな流れは、適用例と比較例に違いはない。ただし、適用例において、携帯機10の送信する操作信号は、携帯機側カウンタコードAだけでなく携帯機カウンタコードBも含む。最初の操作信号は、携帯機側カウンタコードA(X+1)、B(Y+1)を含む。最初の操作信号の送信後、携帯機10は携帯機側カウンタコードAのみをX+1→X+2に更新する。2回目の操作信号は、携帯機側カウンタコードA(X+2)、B(Y+1)を含む。Rolljamは、比較例と同様に、携帯機10が送信した最初の操作信号および2回目の操作信号を傍受しつつ、妨害電波により車載機20への到達を妨害する。その後、Rolljamが、1回目の操作信号を車載機20に送信する。車載機20は、1回目の操作信号が含むカウンタコードの照合を行う。適用例でのカウンタコードの照合は、携帯機側カウンタコードA(X+1)と車載機側カウンタコードC(X+0)、携帯機側カウンタコードB(Y+1)と、車載機側カウンタコードD(Y+1)の二組について行う。携帯機側カウンタコードAは車載機側カウンタコードCより大きく(X+1>X+0)、携帯機側カウンタコードBと車載機側カウンタコードDは一致する(Y+1=Y+1)ため、照合が成立する。車載機20は車両のドアを解錠させる。車載機20は、車載機側カウンタコードC(X+0)を、1回目の操作信号に含まれる携帯機側カウンタコードA(X+1)で上書きすることにより更新する。   The general flow of communication between the portable device 10, the Rolljam, and the in-vehicle device 20 in the RKE process is the same between the application example and the comparative example. However, in the application example, the operation signal transmitted by the portable device 10 includes not only the portable device side counter code A but also the portable device counter code B. The first operation signal includes a portable device side counter code A (X + 1), B (Y + 1). After transmitting the first operation signal, the portable device 10 updates only the portable device side counter code A from X + 1 to X + 2. The second operation signal includes the portable device side counter code A (X + 2), B (Y + 1). Similarly to the comparative example, Rolljam intercepts the first operation signal and the second operation signal transmitted by the portable device 10 and obstructs arrival at the in-vehicle device 20 by the jamming radio wave. Thereafter, Rolljam transmits the first operation signal to the in-vehicle device 20. The in-vehicle device 20 collates the counter code included in the first operation signal. In the application example, the counter code is collated by the portable device side counter code A (X + 1), the onboard device side counter code C (X + 0), the portable device side counter code B (Y + 1), and the onboard device side counter code D (Y + 1). The two sets are performed. Since the portable device side counter code A is larger than the in-vehicle device side counter code C (X + 1> X + 0) and the portable device side counter code B and the in-vehicle device side counter code D match (Y + 1 = Y + 1), the verification is established. The in-vehicle device 20 unlocks the vehicle door. The in-vehicle device 20 updates the in-vehicle device side counter code C (X + 0) by overwriting with the portable device side counter code A (X + 1) included in the first operation signal.

その後、車両の所定動作により車載機20と携帯機10の間でパッシブ通信が行われる。車載機20が応答要求信号を携帯機10に送信し、携帯機10は応答信号を車載機20に送信する。車載機20は応答信号に含まれるIDコードを照合して、認証信号を携帯機10に送信する。適用例では、この認証信号が更新要求を含む。そのため、認証信号を受信した携帯機10は、携帯機側カウンタコードBをY+1からY+2に更新する。更新の完了後、携帯機10は更新完了通知を車載機20に送信する。車載機20は更新完了通知を受信すると、車載機側カウンタコードDをY+1からY+2に更新する。   Thereafter, passive communication is performed between the in-vehicle device 20 and the portable device 10 by a predetermined operation of the vehicle. The in-vehicle device 20 transmits a response request signal to the portable device 10, and the portable device 10 transmits a response signal to the in-vehicle device 20. The in-vehicle device 20 collates the ID code included in the response signal and transmits an authentication signal to the portable device 10. In the application example, the authentication signal includes an update request. Therefore, the portable device 10 that has received the authentication signal updates the portable device-side counter code B from Y + 1 to Y + 2. After completion of the update, the portable device 10 transmits an update completion notification to the in-vehicle device 20. When receiving the update completion notification, the in-vehicle device 20 updates the in-vehicle device side counter code D from Y + 1 to Y + 2.

パッシブ通信の後、ユーザが車両から離れた隙に、第三者はRolljamに記憶させた2回目の操作信号を車載機20に送信する。車載機20は2回目の操作信号に含まれるカウンタコードの照合を行う。一組目の携帯機側カウンタコードAは車載機側カウンタコードCより大きいは(X+2>X+1)が、二組目の携帯機側カウンタコードBと車載機側カウンタコードDは一致しない(Y+1<Y+2)ため、カウンタコードの照合が成立しない。   After the passive communication, the third party transmits a second operation signal stored in Rolljam to the in-vehicle device 20 when the user leaves the vehicle. The in-vehicle device 20 collates the counter code included in the second operation signal. The first set of the portable device side counter code A is larger than the in-vehicle device side counter code C (X + 2> X + 1), but the second set of the portable device side counter code B and the in-vehicle device side counter code D do not match (Y + 1 < Y + 2) Therefore, counter code verification is not established.

照合が成立しないため、車載機20は車両のドアを解錠させない。車載機20はさらに、ホーン215に鳴動音を出力させるおよびハザードランプ216を明滅させることにより警告を報知する。このように、本実施形態の適用例では、RKE処理に加えてその後のパッシブ通信でも携帯機側および車載機側カウンタコードを更新することによって、Rolljamを用いた第三者の不正行為を防止する。さらに、車載機20によって警告が報知されるため、車両を離れたユーザが、不正行為を試みる第三者の存在の気づく可能性が高まる。   Since the verification is not established, the in-vehicle device 20 does not unlock the vehicle door. The in-vehicle device 20 further issues a warning by causing the horn 215 to output a ringing sound and causing the hazard lamp 216 to blink. As described above, in the application example of the present embodiment, in addition to the RKE process, the counter code of the third party using Rolljam is prevented by updating the counter code on the mobile device side and the in-vehicle device side even in the subsequent passive communication. . Furthermore, since the warning is notified by the in-vehicle device 20, the possibility that the user who has left the vehicle notices the existence of a third party who attempts to cheat is increased.

以上の通り、実施の形態に係るキーレスシステムKは、
(1)ユーザにより所持される携帯機10と、車両に搭載され、携帯機10との通信および車載設備の動作制御を行う車載機20と、を有し、
携帯機10は、ユーザによる車両の施錠または解錠の操作要求を受け付けるロックボタン11またはアンロックボタン12(操作部)と、携帯機側カウンタコードA、B(携帯機側の第1および第2のカウンタコード)を記憶する記憶部103(携帯機記憶部)と、操作部が操作要求を受け付けると、携帯機側カウンタコードA、Bを含む操作信号を車載機20に送信するRF送信部105(携帯機送信部)と、操作信号の送信時に携帯機側カウンタコードAを更新する更新部102(携帯機更新部)と、を備え、
車載機20は、車載機側カウンタコードC、D(車載機側の第1および第2のカウンタコード)を記憶する記憶部204(車載機記憶部)と、操作信号に含まれる携帯機側カウンタコードA、Bを、記憶部204に記憶された車載機側カウンタコードC、Dと照合する照合部202と、照合部202の照合が成立した場合、車両のドアの施錠または解錠の動作を制御する制御部201と、照合部202の照合が成立した場合、車載機側カウンタコードAを更新する更新部203(車載機更新部)と、車両の所定動作の際に、携帯機10に応答要求信号を送信するLF送信部209(車載機送信部)と、を備え、
更新部102と更新部203は、応答要求信号の送信により開始される携帯機10と車載機20間のパッシブ通信において、それぞれ携帯機側カウンタコードBおよび車載機側カウンタコードDを更新する構成とした。
As described above, the keyless system K according to the embodiment is
(1) a portable device 10 possessed by a user, and an in-vehicle device 20 that is mounted on a vehicle and performs communication with the portable device 10 and operation control of in-vehicle equipment,
The portable device 10 includes a lock button 11 or an unlock button 12 (operation unit) that accepts an operation request for locking or unlocking the vehicle by a user, and portable device side counter codes A and B (first and second on the portable device side). Storage unit 103 (portable device storage unit) that stores the operation code and the RF transmission unit 105 that transmits an operation signal including the mobile device side counter codes A and B to the in-vehicle device 20 when the operation unit accepts the operation request. (Mobile device transmission unit) and an update unit 102 (mobile device update unit) that updates the mobile device side counter code A when the operation signal is transmitted,
The in-vehicle device 20 includes a storage unit 204 (on-vehicle device storage unit) that stores on-vehicle device side counter codes C and D (first and second counter codes on the on-vehicle device side), and a portable device-side counter included in the operation signal. When the collation by the collation unit 202 for collating the codes A and B with the vehicle-mounted device side counter codes C and D stored in the storage unit 204 and the collation by the collation unit 202 are established, the operation of locking or unlocking the door of the vehicle is performed. When the control unit 201 to be controlled and the collation of the collation unit 202 are established, an update unit 203 (on-vehicle unit update unit) that updates the on-vehicle device side counter code A and a response to the portable device 10 during a predetermined operation of the vehicle LF transmission unit 209 (on-vehicle device transmission unit) for transmitting a request signal,
The updating unit 102 and the updating unit 203 are configured to update the portable device side counter code B and the onboard device side counter code D, respectively, in the passive communication between the portable device 10 and the onboard device 20 that is started by transmission of a response request signal. did.

中継機であるRolljamは、携帯機10から送信された操作信号を傍受すると同時に、妨害電波を発生させて操作信号の車載機20へ到達をブロックし、ドアの解錠を妨害する。Rolljamがドアの解錠を妨害することによって、ユーザに携帯機10の操作ボタンを2回以上押下させ、携帯機10から送信された最初の操作信号と2回目の操作信号をそれぞれ記憶する。Rolljamは2回目の操作信号を記録したところで最初の操作信号を車載機20に送信して、ドアを解錠させることにより、ユーザに中継機の存在を疑わせない。ユーザが車両から離れた際に、第三者はRolljamから2回目の操作信号を送信し、ドアを解錠しようとする。   Rolljam, which is a relay machine, intercepts the operation signal transmitted from the portable device 10 and simultaneously generates an interference radio wave to block the operation signal from reaching the in-vehicle device 20 and prevent the door from being unlocked. When Rolljam prevents the door from being unlocked, the user presses the operation button of the portable device 10 twice or more, and the first operation signal and the second operation signal transmitted from the portable device 10 are stored. Rolljam records the second operation signal and transmits the first operation signal to the in-vehicle device 20 to unlock the door so that the user does not doubt the presence of the relay device. When the user leaves the vehicle, the third party sends a second operation signal from Rolljam and tries to unlock the door.

本発明の実施の形態に係るキーレスシステムKにおいては、RKE処理の際に2組のカウンタコードを照合するようにし、かつ2組のカウンタコードの更新のタイミングをそれぞれ異ならせた。1組目のカウンタコード(携帯機側カウンタコードA、車載機側カウンタコードC)はRKE処理の際に更新する。2組目のカウンタコード(携帯機側カウンタコードB、車載機側カウンタコードD)は、車両のドアの施錠または解錠後のパッシブ通信において更新する。そのため、パッシブ通信後にユーザが車両から離れた隙にRolljamから2回目の操作信号を受信しても、2組目のカウンタコードを更新しているため、照合が成立せず、ドアが解錠されることはない。すなわち、Rolljamにより、更新後の1組目のカウンタコードを傍受して解錠行為を行おうとしても、更新後の2組目のカウンタコードも並行して傍受していない限り、ドアが解錠されることはない。これによって、Rolljamを用いた第三者の不正行為を防止し、車両のセキュリティを向上させることができる。   In the keyless system K according to the embodiment of the present invention, two sets of counter codes are collated at the time of RKE processing, and the update timings of the two sets of counter codes are different. The first set of counter codes (portable device side counter code A, in-vehicle device side counter code C) is updated during the RKE process. The second set of counter codes (portable device side counter code B, in-vehicle device side counter code D) is updated in passive communication after locking or unlocking the door of the vehicle. Therefore, even if the user receives a second operation signal from Rolljam after the passive communication, the second counter code is updated, so verification is not established and the door is unlocked. Never happen. That is, even if Rolljam intercepts the first set of updated counter codes and performs an unlocking action, the door will unlock unless the second updated counter code is also intercepted in parallel. It will never be done. This can prevent third party fraud using Rolljam and improve vehicle security.

(2)照合部202は、携帯機側カウンタコードBが車載機側カウンタコードDと一致するか否かの判断に基づいて、照合が成立したと判定する。 (2) The collation unit 202 determines that the collation has been established based on the determination as to whether the portable device side counter code B matches the in-vehicle device side counter code D.

RKE処理で更新を行わない2組目のカウンタコードは、ロックボタン11またはアンロックボタン12の空押しによって更新されることはない。そのため、携帯機側カウンタコードBと車載機側カウンタコードDが一致する場合のみ、照合が成立するように設定することができる。一致する場合のみドアの施錠または解錠が許容されるようにすることで、セキュリティを向上させることができる。
(3)照合部202は、携帯機側カウンタコードAが車載機側カウンタコードCよりも大きい場合に、2組目のカウンタコードが一致するかの判断を実行する。
The second set of counter codes that are not updated in the RKE process is not updated by the idle pressing of the lock button 11 or the unlock button 12. Therefore, it is possible to set so that the collation is established only when the portable device side counter code B and the in-vehicle device side counter code D match. Security can be improved by allowing the door to be locked or unlocked only when they match.
(3) When the portable device side counter code A is larger than the in-vehicle device side counter code C, the collation unit 202 determines whether the second set of counter codes matches.

携帯機10と車載機20の通信不良等によって、携帯機10のロックボタン11またはアンロックボタン12が空押しされると、携帯機側カウンタコードAと車載機側カウンタコードCが乖離することがある。よって、1組目のカウンタコードについては、携帯機側カウンタコードAが車載機側カウンタコードCより大きければ許容することで、空押しがあった場合でも、ドアの施錠または解錠が行うことができる。   When the lock button 11 or the unlock button 12 of the portable device 10 is idled due to communication failure between the portable device 10 and the vehicle-mounted device 20, the portable device-side counter code A and the vehicle-mounted device-side counter code C may be separated. is there. Therefore, with respect to the first set of counter codes, if the portable device side counter code A is larger than the on-vehicle device side counter code C, the door can be locked or unlocked even when there is an empty push. it can.

(4)記憶部103および記憶部204は、携帯機10に付与されたIDコードを記憶する。パッシブ通信において、RF送信部105は、車載機20から送信された応答要求信号に応じて、IDコードを含む応答信号を送信し、車載機20の照合部202は、応答信号に含まれるIDコードを、記憶部204に記憶されたIDコードと照合し、応答信号に含まれるIDコードが記憶部204に記憶されたIDコードと一致する場合に、LF送信部209は携帯機10に認証信号を送信する。パッシブ通信において、LF送信部209は、認証信号に更新部102に対するカウンタコード更新要求を含める。更新部102は、このカウンタコード更新要求に基づいて、携帯機側カウンタコードBの更新を行う。RF送信部105は、携帯機側カウンタコードBの更新後、車載機20に更新完了通知を送信し、車載機20の更新部203は、更新完了通知を受信すると、車載機側カウンタコードDの更新を行う。 (4) The storage unit 103 and the storage unit 204 store the ID code assigned to the portable device 10. In passive communication, the RF transmission unit 105 transmits a response signal including an ID code in response to the response request signal transmitted from the in-vehicle device 20, and the verification unit 202 of the in-vehicle device 20 includes an ID code included in the response signal. Is compared with the ID code stored in the storage unit 204, and if the ID code included in the response signal matches the ID code stored in the storage unit 204, the LF transmission unit 209 sends an authentication signal to the portable device 10. Send. In the passive communication, the LF transmission unit 209 includes a counter code update request for the update unit 102 in the authentication signal. The updating unit 102 updates the portable device side counter code B based on the counter code update request. After the update of the mobile device side counter code B, the RF transmission unit 105 transmits an update completion notification to the in-vehicle device 20, and when the update unit 203 of the in-vehicle device 20 receives the update completion notification, the RF transmission unit 105 receives the in-vehicle device side counter code D. Update.

パッシブ通信において携帯機10と車載機20との間で交わされる信号にカウンタコード更新要求を含ませることで、カウンタコード更新要求のみが送信されることがなく、カウンタコードを更新するタイミングを第三者に把握されにくい。   By including the counter code update request in the signal exchanged between the portable device 10 and the in-vehicle device 20 in the passive communication, only the counter code update request is not transmitted, and the timing for updating the counter code is set to the third timing. Hard to grasp.

(5)LF送信部209は、カウンタコード更新要求として、更新部102に携帯機側カウンタコードをカウントアップさせるカウントアップ要求を送信する構成とした。また、RF送信部105は、更新部102が携帯機側カウンタコードBを更新した後、更新完了通知を車載機20に対して送信する。更新部203は、更新完了通知を受信すると、車載機側カウンタコードDをカウントアップさせることにより更新を行う。 (5) The LF transmission unit 209 is configured to transmit a count-up request that causes the update unit 102 to count up the counter code on the portable device side as a counter code update request. Further, the RF transmission unit 105 transmits an update completion notification to the in-vehicle device 20 after the update unit 102 updates the portable device side counter code B. When receiving the update completion notification, the update unit 203 updates the vehicle-mounted device side counter code D by counting it up.

携帯機側または車載機側カウンタコードB、D自体を送信せず、更新要求の受信と更新完了通知の受信に応じて、携帯機側および車載機側の更新部102、203がそれぞれカウントアップにより更新を行う。これによって、携帯機側または車載機側カウンタコードB、Dを傍受される可能性が低減され、セキュリティが向上する。また、パッシブ通信において、送信データ量が増加すると、送信完了までに時間がかかる。これによって、例えば、エンジン始動ボタンの操作等の車両の動作によっては、ユーザが操作に対する応答性に影響を与える可能性がある。携帯機側または車載機側カウンタコードB、D自体を送信しないことによって、送信データ量を低減し、応答性への影響を低減することができる。   The mobile unit side or the in-vehicle device side counter codes B and D themselves are not transmitted, and the update units 102 and 203 on the mobile device side and the in-vehicle device side count up by receiving the update request and receiving the update completion notification, respectively. Update. As a result, the possibility of intercepting the portable device side or on-vehicle device side counter codes B and D is reduced, and security is improved. In passive communication, if the amount of transmission data increases, it takes time to complete transmission. Accordingly, for example, depending on the operation of the vehicle such as operation of the engine start button, the user may affect the responsiveness to the operation. By not transmitting the mobile device side or on-vehicle device side counter codes B and D themselves, it is possible to reduce the amount of transmission data and reduce the influence on responsiveness.

なお、実施の形態では、認証信号に更新要求を含ませる例を説明したが、パッシブ通信を開始する際に車載機20から携帯機10に送信する応答要求信号に更新要求を含ませるようにしても良い。その場合も、携帯機10はパッシブ通信が成立する認証信号の受信後に、携帯機側カウンタコードBを更新する。   In the embodiment, the example in which the update request is included in the authentication signal has been described. However, when the passive communication is started, the update request is included in the response request signal transmitted from the in-vehicle device 20 to the portable device 10. Also good. Also in this case, the portable device 10 updates the portable device side counter code B after receiving the authentication signal for establishing the passive communication.

(6)車載機20は、警告を報知する車載機報知部として、ホーンI/F211とホーン215またはハザードI/F212とハザードランプ216を備える。照合部202の照合が成立しない場合、すなわち携帯機側カウンタコードAが車載機側カウンタコードCと同じかそれより小さい場合または携帯機側カウンタコードBが車載機側カウンタコードDと一致しない場合、ホーン215またはハザードランプ216が警告を報知する。 (6) The in-vehicle device 20 includes a horn I / F 211 and a horn 215 or a hazard I / F 212 and a hazard lamp 216 as an in-vehicle device notification unit that notifies a warning. When the collation of the collation unit 202 is not established, that is, when the portable device side counter code A is the same as or smaller than the in-vehicle device side counter code C or when the portable device side counter code B does not coincide with the in-vehicle device side counter code D, The horn 215 or the hazard lamp 216 notifies the warning.

照合部202の照合が成立しない場合、中継機を用いて操作信号を傍受した第三者が車両への不正行為を図ろうとしている可能性が高い。その場合は、警告を報知することでユーザや車両の周囲にいる人々に不正行為の可能性を知らせることで、セキュリティを向上させることができる。   When the collation of the collation unit 202 is not established, there is a high possibility that a third party who intercepts the operation signal using the relay machine is trying to cheat on the vehicle. In that case, it is possible to improve security by notifying the user or people around the vehicle of the possibility of fraud by notifying the warning.

(7)ホーンI/F211またはハザードI/F212は、警告の報知として、ハザードランプ216を明滅させ、またはホーン215に警報音を出力させる。警告の報知として、視覚に訴えるハザードランプ216の点灯や、聴覚に訴える警報音を用いることで、速やかに不正行為の可能性を知らせることができる。 (7) The horn I / F 211 or the hazard I / F 212 blinks the hazard lamp 216 or causes the horn 215 to output an alarm sound as a warning notification. As a warning notification, the use of a hazard lamp 216 that appeals visually or a warning sound that appeals to auditory sense can promptly notify the possibility of fraud.

[変形例1]
前記した実施の形態では、車載機20から携帯機10に送信する認証信号に更新要求を含ませていた。すなわち、車載機20が携帯機10に携帯機側カウンタコードの更新を要求し、車載機20は携帯機10から更新完了通知を受けた後に、車載機側カウンタコードを更新していた。しかしながら、更新要求は車載機20から携帯機10に対して行うものに限られず、携帯機10から車載機20に対して行っても良い。変形例1では、パッシブ通信において、携帯機10から車載機20に送信する応答信号に、更新要求を含ませる例を説明する。
[Modification 1]
In the above-described embodiment, the update request is included in the authentication signal transmitted from the in-vehicle device 20 to the portable device 10. That is, the vehicle-mounted device 20 requests the portable device 10 to update the portable device-side counter code, and the vehicle-mounted device 20 updates the vehicle-mounted device-side counter code after receiving an update completion notification from the portable device 10. However, the update request is not limited to the request made from the in-vehicle device 20 to the portable device 10, and may be made from the portable device 10 to the in-vehicle device 20. In Modification 1, an example in which an update request is included in a response signal transmitted from the portable device 10 to the in-vehicle device 20 in passive communication will be described.

図11の(a)は、変形例1のパッシブ通信における携帯機10の処理を示すフローチャートであり、図11の(b)は、変形例1のパッシブ通信における車載機20の処理を示すフローチャートである。図7の(a)および(b)の処理と同じ部分については、説明は省略または簡略化する。   FIG. 11A is a flowchart showing processing of the portable device 10 in the passive communication of the first modification, and FIG. 11B is a flowchart showing processing of the in-vehicle device 20 in the passive communication of the first modification. is there. The description of the same parts as those in FIGS. 7A and 7B is omitted or simplified.

図11の(b)に示すように、車載機20の制御部201が応答要求信号を生成して、LF送信部209に送信させる(ステップS461)。図11の(a)に示すように、車載機20からの応答要求信号を受信すると(ステップS421:Yes)、携帯機10の制御部101は応答信号を生成し、RF送信部105に送信させる(ステップS422)。この応答信号は更新要求を含んでいる。変形例1において、更新要求は、車載機20の更新部203に対して車載機側カウンタコードDを更新させる要求である。さらに具体的には、更新要求は、車載機20の更新部203に対して、車載機側カウンタコードDを構成するカウンタ値Dをカウントアップさせて、新たな車載機側カウンタコードDを生成させる要求である。   As illustrated in FIG. 11B, the control unit 201 of the in-vehicle device 20 generates a response request signal and transmits the response request signal to the LF transmission unit 209 (step S461). As illustrated in FIG. 11A, when a response request signal from the in-vehicle device 20 is received (step S <b> 421: Yes), the control unit 101 of the portable device 10 generates a response signal and transmits the response signal to the RF transmission unit 105. (Step S422). This response signal includes an update request. In Modification 1, the update request is a request for updating the in-vehicle device side counter code D to the update unit 203 of the in-vehicle device 20. More specifically, the update request causes the update unit 203 of the in-vehicle device 20 to increment the counter value D constituting the in-vehicle device side counter code D and generate a new in-vehicle device side counter code D. It is a request.

図11の(b)の応答信号を受信してから認証信号を送信するまでのステップS462〜S465は、図7の(b)のステップS452〜S455と同様の処理なので、説明は省略する。ただし、ステップS465において携帯機10の制御部101が送信する認証信号には、更新要求は含まれていない。認証信号を送信すると、車載機20の更新部203は車載機側カウンタコードDを、カウントアップ処理により更新する(ステップS466)。更新部203が更新を完了すると、車載機20の制御部201は更新完了通知を生成して、LF送信部209に送信させる(ステップS467)。   Steps S462 to S465 from when the response signal in FIG. 11B is received until the authentication signal is transmitted are the same as steps S452 to S455 in FIG. However, the update request is not included in the authentication signal transmitted by the control unit 101 of the portable device 10 in step S465. When the authentication signal is transmitted, the updating unit 203 of the in-vehicle device 20 updates the in-vehicle device side counter code D by the count-up process (step S466). When the update unit 203 completes the update, the control unit 201 of the in-vehicle device 20 generates an update completion notification and causes the LF transmission unit 209 to transmit the notification (step S467).

図11の(a)に示すように、携帯機10が車載機20からの認証信号を受信(ステップS423)した後、さらに更新完了通知を受信すると(ステップS424:Yes)、携帯機10の更新部102は携帯機側カウンタコードBを、カウントアップ処理により更新する(ステップS425)。   As shown in FIG. 11A, when the portable device 10 receives the authentication signal from the in-vehicle device 20 (step S423) and further receives an update completion notification (step S424: Yes), the portable device 10 is updated. The unit 102 updates the portable device side counter code B by the count-up process (step S425).

ステップS424において、携帯機10は車載機20からの更新完了通知を待ち受けるが、一定時間経過しても受信できなかった場合は(ステップS424:No、ステップS426:Yes)、ステップS425に進み、更新部102が携帯機側カウンタコードBを更新して、処理を終了する。   In step S424, the portable device 10 waits for an update completion notification from the in-vehicle device 20, but if it has not been received even after a predetermined time has elapsed (step S424: No, step S426: Yes), the process proceeds to step S425 and updated. The unit 102 updates the portable device side counter code B and ends the process.

以上の通り、変形例1では、
(8)パッシブ通信において、携帯機10のRF送信部105(携帯機送信部)が、車載機20に送信する応答信号にカウンタコード更新要求を含め、車載機20の更新部203(車載機更新部)は、そのカウンタコード更新要求に基づいて車載機側カウンタコードDを更新する。車載機20のLF送信部209は、車載機側カウンタコードDの更新後、携帯機10に更新完了通知を送信する。携帯機10の更新部102(携帯機更新部)は、更新完了通知を受信すると、携帯機側カウンタコードBの更新を行う。
As described above, in the first modification,
(8) In passive communication, the RF transmitter 105 (portable device transmitter) of the portable device 10 includes a counter code update request in the response signal transmitted to the vehicle-mounted device 20, and the update unit 203 (vehicle device update) of the vehicle-mounted device 20 Part) updates the on-vehicle device side counter code D based on the counter code update request. The LF transmission unit 209 of the in-vehicle device 20 transmits an update completion notification to the portable device 10 after the in-vehicle device side counter code D is updated. When receiving the update completion notification, the update unit 102 (mobile device update unit) of the mobile device 10 updates the mobile device side counter code B.

実施の形態と同様に、パッシブ通信において送信する信号に更新要求を含ませることで、更新要求が単体で送信されることがなく、カウンタコードを更新するタイミングを第三者に把握されにくい。   As in the embodiment, by including an update request in a signal transmitted in passive communication, the update request is not transmitted alone, and it is difficult for a third party to grasp the timing for updating the counter code.

[変形例2]
前記した実施の形態では、パッシブ通信の際に、車載機20は、更新完了通知の受信後に、車載機側カウンタコードDをカウントアップ処理により更新していた。しかしながら、これに限られず、RKE処理の際の更新と同様に、携帯機側カウンタコードBで車載機側カウンタコードDを上書きすることにより更新しても良い。この場合、携帯機10の制御部101は、更新完了通知に更新後の携帯機側カウンタコードBを含めてRF送信部105に送信させる。車載機20の更新部203は、更新完了通知に含まれる携帯機側カウンタコードBで、車載機側カウンタコードDを上書きすることにより更新を行う。
[Modification 2]
In the above-described embodiment, in the passive communication, the in-vehicle device 20 updates the in-vehicle device side counter code D by the count-up process after receiving the update completion notification. However, the present invention is not limited to this, and the update may be performed by overwriting the in-vehicle device side counter code D with the portable device side counter code B, similarly to the update in the RKE process. In this case, the control unit 101 of the portable device 10 includes the updated portable device-side counter code B in the update completion notification and causes the RF transmission unit 105 to transmit the update completion notification. The update unit 203 of the in-vehicle device 20 performs the update by overwriting the in-vehicle device side counter code D with the portable device side counter code B included in the update completion notification.

以上の通り、変形例2では、
(9)RF送信部105(携帯機送信部)は、携帯機10の更新部102(携帯機更新部)が携帯機側カウンタコードBを更新した後、更新後の携帯機側カウンタコードBを含む更新完了通知を、車載機20の更新部203に対して送信する。車載機20の更新部203は、更新完了通知を受信すると、更新完了通知に含まれる更新後の携帯機側カウンタコードBで、車載機側カウンタコードDを上書きする。
As described above, in Modification 2,
(9) The RF transmitting unit 105 (portable device transmitting unit) updates the updated portable device side counter code B after the updating unit 102 (portable device updating unit) of the portable device 10 updates the portable device side counter code B. The update completion notification including this is transmitted to the update unit 203 of the in-vehicle device 20. When receiving the update completion notification, the update unit 203 of the in-vehicle device 20 overwrites the in-vehicle device side counter code D with the updated mobile device side counter code B included in the update completion notification.

RKE処理の照合部202の照合において、携帯機側カウンタコードBが車載機側カウンタコードDと一致することを照合成立の基準としている場合に、携帯機側カウンタコードBで車載機側カウンタコードDを上書きして更新することによって、携帯機側カウンタコードBと車載機側カウンタコードDを確実に一致させることができる。   When the collation by the collation unit 202 of the RKE process is based on the fact that the portable device side counter code B matches the in-vehicle device side counter code D, the in-vehicle device side counter code D is used as the in-vehicle device side counter code D. By overwriting and updating, the portable device side counter code B and the in-vehicle device side counter code D can be reliably matched.

なお、この変形例2は、変形例1にも適用することができる。変形例1に適用する場合は、車載機20の制御部201が車載機側カウンタコードDの更新後、携帯機10に送信する更新完了通知に、更新後の車載機側カウンタコードDを含ませる。携帯機10の更新部102は、更新完了通知を受信すると、更新完了通知に含まれる更新後の車載機側カウンタコードDで、携帯機側カウンタコードBを上書きして更新する。   The second modification can also be applied to the first modification. When applied to the first modification, the control unit 201 of the in-vehicle device 20 includes the updated in-vehicle device side counter code D in the update completion notification transmitted to the portable device 10 after the in-vehicle device side counter code D is updated. . When receiving the update completion notification, the update unit 102 of the portable device 10 overwrites and updates the portable device side counter code B with the updated onboard device side counter code D included in the update completion notification.

[変形例3]
前記の実施の形態では、パッシブ通信の際に常に携帯機側および車載機側カウンタコードB、Dの更新を行う例を説明したが、更新を行う場合を限定しても良い。変形例3では、車両のドアの施錠または解錠後、すなわちRKE処理の後であって、車両の所定動作としてドアを閉める動作が行われた際のパッシブ通信においてのみ、携帯機側および車載機側カウンタコードB、Dの更新を行う。言い換えると、ドア開閉センサ208からのドア閉の検出信号の入力に応じてパッシブ通信を行った際のみ、更新を行う。
[Modification 3]
In the above-described embodiment, the example in which the mobile device side and the vehicle-mounted device side counter codes B and D are always updated in the passive communication has been described, but the case where the update is performed may be limited. In the third modification example, after the locking or unlocking of the door of the vehicle, that is, after the RKE process, only in the passive communication when the door closing operation is performed as the predetermined operation of the vehicle, the portable device side and the in-vehicle device The side counter codes B and D are updated. In other words, updating is performed only when passive communication is performed in response to the input of the door closing detection signal from the door opening / closing sensor 208.

変形例3では、車載機20の記憶部204が更新フラグを記憶している。更新フラグは、携帯機側および車載機側カウンタコードの更新の要否を示すフラグであり。更新フラグが1であれば更新要、更新フラグが0であれば更新不要を示す。更新フラグは、初期状態は0である。   In the third modification, the storage unit 204 of the in-vehicle device 20 stores an update flag. The update flag is a flag that indicates whether or not the mobile device side and the in-vehicle device side counter codes need to be updated. If the update flag is 1, an update is required, and if the update flag is 0, an update is not necessary. The initial state of the update flag is 0.

RKE処理の後、すなわち、ドアロックアクチュエータ214を駆動してドアの施錠または解錠を行い(図6の(b)のステップS256)、更新部203が車載機側カウンタコードを更新した(図6の(b)のステップS255)後に、車載機20の制御部201は、更新フラグを1に変更する。車両の所定動作としてドアを閉める動作が行われたとき、車載機20の制御部201は、この更新フラグを参照して、更新フラグが1であれば、パッシブ通信において更新を行う。また、更新の完了後は、更新フラグを0に戻す。   After the RKE process, that is, the door lock actuator 214 is driven to lock or unlock the door (step S256 in FIG. 6B), and the updating unit 203 updates the on-vehicle device side counter code (FIG. 6). After step S255) of (b), the control unit 201 of the in-vehicle device 20 changes the update flag to 1. When the operation of closing the door is performed as a predetermined operation of the vehicle, the control unit 201 of the in-vehicle device 20 refers to the update flag, and performs update in passive communication if the update flag is 1. Further, after the update is completed, the update flag is returned to 0.

以下、変形例3におけるパッシブ通信の際の処理を、フローチャートを用いて説明する。
図12は、変形例3のパッシブ通信における携帯機10の処理を示すフローチャートであり、
図13は、変形例3のパッシブ通信における車載機20の処理を示すフローチャートである。
Hereinafter, the process in the case of the passive communication in the modification 3 is demonstrated using a flowchart.
FIG. 12 is a flowchart showing the processing of the portable device 10 in the passive communication of the third modification.
FIG. 13 is a flowchart showing processing of the in-vehicle device 20 in the passive communication of the third modification.

図12のステップS441〜S443、S445〜S446は、図7の(a)のステップS411〜S413、S414〜S415と同様である。図13のステップS491〜ステップS494、S499〜S500は、図7の(b)のステップのS451〜S454、S456〜S457と同様であるため、説明は省略または簡略化する。   Steps S441 to S443 and S445 to S446 in FIG. 12 are the same as steps S411 to S413 and S414 to S415 in FIG. Steps S491 to S494 and S499 to S500 in FIG. 13 are the same as steps S451 to S454 and S456 to S457 in FIG.

まず、車載機20の処理を説明する。図13に示すように、応答信号のIDコードの照合(ステップS494)後、制御部201は記憶部204の更新フラグを参照する。更新フラグが1であり(ステップS495:Yes)、かつ車両のドアの閉める動作によりパッシブ通信が開始した場合(ステップS496:Yes)、制御部201は、実施の形態と同様に、更新要求を含む認証信号を生成し、LF送信部209に送信させる(ステップS498)。携帯機10からの更新完了通知を受信すると(ステップS499:Yes)、車載機20の更新部203は車載機側カウンタコードDを更新する(ステップS500)。更新の完了後に、車載機20の制御部201は更新フラグを0に変更する(ステップS501)。   First, the processing of the in-vehicle device 20 will be described. As shown in FIG. 13, after collating the ID code of the response signal (step S494), the control unit 201 refers to the update flag in the storage unit 204. When the update flag is 1 (step S495: Yes) and the passive communication is started by the operation of closing the vehicle door (step S496: Yes), the control unit 201 includes an update request as in the embodiment. An authentication signal is generated and transmitted to the LF transmission unit 209 (step S498). When the update completion notification is received from the portable device 10 (step S499: Yes), the update unit 203 of the in-vehicle device 20 updates the in-vehicle device side counter code D (step S500). After completion of the update, the control unit 201 of the in-vehicle device 20 changes the update flag to 0 (step S501).

一方、ステップS495またはステップS496においてNoであれば、携帯機側および車載機側カウンタコードの更新は行わない。ステップS497に進み、車載機20の制御部201は、更新要求を含まない認証信号を生成して、LF送信部209に送信させ、処理を終了する。   On the other hand, if the answer is No in step S495 or step S496, the mobile device side and the in-vehicle device side counter codes are not updated. In step S497, the control unit 201 of the in-vehicle device 20 generates an authentication signal that does not include an update request, transmits the authentication signal to the LF transmission unit 209, and ends the process.

次に、携帯機10の処理を説明する。図12に示すように、車載機20から受信した認証信号に更新要求が含まれている場合(ステップS444:Yes)、携帯機10の更新部102は携帯機側カウンタコードBを更新する(ステップS445)。更新部102が更新を完了すると、制御部101は更新完了通知を生成してRF送信部105に送信させる(ステップS446)。一方、認証信号に更新要求が含まれていなければ(ステップS444:No)、携帯機10の更新部102は更新を行わずに処理を終了する。   Next, processing of the portable device 10 will be described. As shown in FIG. 12, when the update request is included in the authentication signal received from the in-vehicle device 20 (step S444: Yes), the update unit 102 of the portable device 10 updates the portable device side counter code B (step). S445). When the update unit 102 completes the update, the control unit 101 generates an update completion notification and causes the RF transmission unit 105 to transmit it (step S446). On the other hand, if an update request is not included in the authentication signal (step S444: No), the update unit 102 of the portable device 10 ends the process without updating.

なお、ステップS500の車載機側カウンタコードDの更新は、実施の形態で説明したカウントアップ処理によるものでも良く、変形例2で説明した上書き処理によるものでも良い。上書き処理を行う場合は、携帯機10が送信する更新完了通知に、更新後の携帯機側カウンタコードBを含める。   Note that the update of the on-vehicle device side counter code D in step S500 may be performed by the count-up process described in the embodiment, or may be performed by the overwrite process described in the second modification. When overwriting is performed, the updated portable device counter code B is included in the update completion notification transmitted by the portable device 10.

以上の通り、変形例3では、
(10)携帯機10の更新部102(携帯機更新部)と車載機20の更新部203(車載機更新部)は、車両のドアの施錠または解錠後、車両の所定動作としてドアを閉める動作が行われた際のパッシブ通信において、それぞれ携帯機側カウンタコードBおよび車載機側カウンタコードDの更新を行う。
As described above, in Modification 3,
(10) The update unit 102 (portable device update unit) of the portable device 10 and the update unit 203 (vehicle device update unit) of the in-vehicle device 20 close the door as a predetermined operation of the vehicle after locking or unlocking the door of the vehicle. In the passive communication when the operation is performed, the mobile device side counter code B and the in-vehicle device side counter code D are updated.

パッシブ通信においてカウンタコード更新要求を送信すると、送信データ量が増加する。パッシブ通信の起因となった車両の所定動作が、例えばエンジン始動ボタンの操作等である場合には、送信データ量の増加によって、ユーザの操作に対する応答性に影響を与える可能性もある。また、全体的な送信データ量の増加により、携帯機10のメモリ寿命にも影響を与える可能性がある。更新を行うタイミングを限定することで、送信データ量を低減し、応答性への影響と、メモリの寿命への影響も低減することができる。   When a counter code update request is transmitted in passive communication, the amount of transmission data increases. When the predetermined operation of the vehicle causing the passive communication is, for example, an operation of an engine start button or the like, there is a possibility that the response to the user's operation may be affected by an increase in the amount of transmission data. In addition, an increase in the total amount of transmission data may affect the memory life of the portable device 10. By limiting the timing of updating, the amount of transmission data can be reduced, and the influence on the responsiveness and the influence on the memory life can be reduced.

また、車両の所定動作として、ドアを閉める動作はユーザの各種スイッチ207の操作に起因するものでないため、送信データ量が増加したとしても、ユーザの操作への応答性への影響が少ない。よって、更新を行うタイミングを、ドアを閉める動作の際のパッシブ通信に限定することで、応答性への影響をさらに低減することができる。   In addition, as the predetermined operation of the vehicle, the operation of closing the door is not caused by the operation of the various switches 207 by the user, so even if the transmission data amount increases, the responsiveness to the operation of the user is small. Therefore, it is possible to further reduce the influence on the responsiveness by limiting the update timing to the passive communication in the operation of closing the door.

変形例3では、更新を行うタイミングを、車両の所定動作としてドアを閉める動作に限定する例を説明したが、もちろんこれに限られず、ユーザの操作に対する応答性に与える影響が少ない、他の所定動作に限定しても良い。例えば、ドアを開ける動作の際に、更新を行うタイミングを限定しても良い。   In Modification 3, the example in which the timing of updating is limited to the operation of closing the door as the predetermined operation of the vehicle has been described. However, the present invention is not limited to this, and other predetermined operations that have little influence on the responsiveness to the user's operation. It may be limited to operation. For example, the timing for updating may be limited in the operation of opening the door.

ここでは、変形例3を実施の形態に適用した例を説明したが、変形例1に適用しても良い。変形例1に適用する場合には、携帯機10の記憶部103に更新フラグを記憶させる。携帯機10の制御部101は、RKE処理において、車載機20に操作信号を送信した後に、更新フラグを1に変更する。また、パッシブ通信において更新を行った後に、更新フラグを0に戻す。   Here, the example in which the third modification is applied to the embodiment has been described. However, the third modification may be applied to the first modification. When applied to the first modification, the update flag is stored in the storage unit 103 of the portable device 10. The control unit 101 of the portable device 10 changes the update flag to 1 after transmitting an operation signal to the in-vehicle device 20 in the RKE process. In addition, after updating in passive communication, the update flag is returned to 0.

[変形例4]
前記した実施の形態では、車載機20の照合部202において携帯機側および車載機側カウンタコードA、B、C、Dの照合が成立しない場合、ホーン215とハザードランプ216が、警告の報知として鳴動音を出力し、ハザードランプ216を明滅させる例を説明した。これにより、ユーザに不正な操作信号を送信したRolljam等の中継機の存在を知らせる。
[Modification 4]
In the above-described embodiment, when the collation unit 202 of the in-vehicle device 20 does not collate the mobile device side and the in-vehicle device side counter codes A, B, C, D, the horn 215 and the hazard lamp 216 serve as a warning notification. An example in which a sound is output and the hazard lamp 216 is blinked has been described. This notifies the user of the presence of a relay device such as Rolljam that has transmitted an unauthorized operation signal.

変形例4では、車載機20だけでなく、ユーザの所持する携帯機10にも、警告を報知させる例を説明する。図14は、変形例4の携帯機10の構成を示すブロック図である。図14に示すように、携帯機10は、実施の形態で説明した構成に加えて、携帯機報知部として出力I/F107と警報ランプ13を備える。警報ランプ13は、例えば、携帯機10の筐体のロックボタン11およびアンロックボタン12が設けられている面に設置されている。警報ランプ13は、出力I/F107を介して制御部101に接続する。制御部101は警報ランプ13の点灯および消灯を制御する。制御部101は、警告を報知する際に警報ランプ13を明滅させる。   In Modification 4, an example will be described in which the warning is notified not only to the in-vehicle device 20 but also to the portable device 10 possessed by the user. FIG. 14 is a block diagram illustrating a configuration of the mobile device 10 according to the fourth modification. As shown in FIG. 14, the portable device 10 includes an output I / F 107 and an alarm lamp 13 as a portable device notification unit in addition to the configuration described in the embodiment. For example, the alarm lamp 13 is installed on the surface of the casing of the portable device 10 on which the lock button 11 and the unlock button 12 are provided. The alarm lamp 13 is connected to the control unit 101 via the output I / F 107. The control unit 101 controls turning on and off of the alarm lamp 13. The control unit 101 blinks the alarm lamp 13 when notifying the warning.

車載機20の構成については実施の形態から変更は無いため、図4を用いて説明する。車載機20の照合部202は、受信した操作信号に含まれる携帯機側カウンタコードを、記憶部204が記憶する車載機側カウンタコードと照合する。照合部202の照合が成立しなかった場合、すなわち携帯機側カウンタコードが車載機側カウンタコードと同じかそれより小さい場合、制御部201は、警報信号を生成してLF送信部209から携帯機10に送信する。   Since the configuration of the in-vehicle device 20 is not changed from the embodiment, it will be described with reference to FIG. The collation unit 202 of the in-vehicle device 20 collates the portable device-side counter code included in the received operation signal with the in-vehicle device-side counter code stored in the storage unit 204. When the collation of the collation unit 202 is not established, that is, when the portable device side counter code is equal to or smaller than the in-vehicle device side counter code, the control unit 201 generates an alarm signal and transmits the alarm signal from the LF transmission unit 209 to the portable device. 10 to send.

警報信号を受信すると、携帯機10の制御部101は、警告の報知指令であるアラームコマンドを生成して、出力I/F107を介して警報ランプ13に出力する。警報ランプ13は入力されたアラームコマンドにしたがって、警報ランプ13を明滅させる。   When the warning signal is received, the control unit 101 of the portable device 10 generates an alarm command that is a warning notification command and outputs the alarm command to the warning lamp 13 via the output I / F 107. The warning lamp 13 blinks the warning lamp 13 in accordance with the inputted alarm command.

ここでは、携帯機報知部として警報ランプ13の例を説明したが、これに限られない。例えば、警報音を発生させるブザーを携帯機10に備え、これを携帯機報知部としても良い。また、例えば、ユーザが所持するスマートフォン等の、携帯機10と通信可能な別の端末を、携帯機報知部としても良い。その場合は、制御部101は生成したアラームコマンドを、RF送信部105を介して端末に送信する。アラームコマンドを受信した端末は、例えば表示画面に中継機の存在を通知する警報を文字で表示させても良い。   Here, an example of the alarm lamp 13 has been described as the portable device notification unit, but the present invention is not limited to this. For example, the portable device 10 may be provided with a buzzer that generates an alarm sound, and this may be used as a portable device notification unit. Further, for example, another terminal capable of communicating with the portable device 10 such as a smartphone owned by the user may be used as the portable device notification unit. In that case, the control unit 101 transmits the generated alarm command to the terminal via the RF transmission unit 105. The terminal that has received the alarm command may display, for example, an alarm that notifies the presence of the relay device on the display screen in characters.

以上の通り、変形例4では、
(11)照合部202の照合が成立しない場合、すなわち携帯機側カウンタコードが車載機側カウンタコードと同じかそれより小さい場合または携帯機側カウンタコードBが車載機側カウンタコードDと一致しない場合、LF送信部209(車載機送信部)は、ユーザにより所持される携帯機10に対して、警報信号を送信する。携帯機10は、車載機20から送信された警報信号に応じて、携帯機10を所持するユーザに警告を報知する警報ランプ13(携帯機報知部)を備える。
As described above, in Modification 4,
(11) When the collation of the collation unit 202 is not established, that is, when the portable device side counter code is the same as or smaller than the in-vehicle device side counter code or when the portable device side counter code B does not coincide with the in-vehicle device side counter code D The LF transmission unit 209 (on-vehicle device transmission unit) transmits an alarm signal to the portable device 10 possessed by the user. The portable device 10 includes an alarm lamp 13 (portable device notification unit) that notifies a user who has the portable device 10 of a warning in response to an alarm signal transmitted from the in-vehicle device 20.

Rolljam等の中継機から不正な操作信号が送信されているとき、ユーザが車両から離れている可能性もある。そのような場合にも、携帯機10から警告を報知することで、ユーザが第三者の不正行為に気づく可能性を高めることができる。   When an unauthorized operation signal is transmitted from a relay machine such as Rolljam, the user may be away from the vehicle. Even in such a case, by notifying the warning from the portable device 10, it is possible to increase the possibility that the user will notice a third party's fraud.

K 車両用キーレスエントリーシステム(キーレスシステム)
10 携帯機
20 車載機
11 ロックボタン(操作部)
12 アンロックボタン(操作部)
13 警報ランプ(携帯機報知部)
100 CPU
101 制御部
102 更新部(携帯機更新部)
103 記憶部(携帯機記憶部)
104 LF受信部
104a LF受信アンテナ
105 RF送信部(携帯機送信部)
105b RF送信アンテナ
106 入力I/F
107 出力I/F(携帯機報知部)
200 CPU
201 制御部
202 照合部
203 更新部(車載機更新部)
204 記憶部(車載機記憶部)
205 RF受信部
205a RF受信アンテナ
206 入力I/F
207 各種スイッチ
208 ドア開閉センサ
209 LF送信部(車載機送信部)
209a LF送信アンテナ
210 ドアロックI/F
211 ホーンI/F(車載機報知部)
212 ハザードI/F(車載機報知部)
213 通信I/F
214 ドアロックアクチュエータ
215 ホーン(車載機報知部)
216 ハザードランプ(車載機報知部)
217 各種車載設備
K keyless entry system for vehicles (keyless system)
10 Mobile device 20 On-vehicle device 11 Lock button (operation part)
12 Unlock button (operation unit)
13 Alarm lamp (portable device alarm section)
100 CPU
101 Control unit 102 Update unit (portable device update unit)
103 storage unit (mobile device storage unit)
104 LF reception unit 104a LF reception antenna 105 RF transmission unit (portable device transmission unit)
105b RF transmitting antenna 106 Input I / F
107 Output I / F (portable device notification unit)
200 CPU
201 Control Unit 202 Verification Unit 203 Update Unit (In-vehicle Device Update Unit)
204 Storage unit (onboard unit storage unit)
205 RF receiving unit 205a RF receiving antenna 206 Input I / F
207 Various switches 208 Door open / close sensor 209 LF transmitter (on-vehicle device transmitter)
209a LF transmitting antenna 210 Door lock I / F
211 Horn I / F (in-vehicle device notification unit)
212 Hazard I / F (in-vehicle device notification unit)
213 Communication I / F
214 Door lock actuator 215 horn (in-vehicle device notification unit)
216 Hazard lamp (in-vehicle device notification unit)
217 Various in-vehicle equipment

Claims (13)

ユーザにより所持される携帯機と、
車両に搭載され、前記携帯機との通信および車載設備の動作制御を行う車載機と、を有する車両用キーレスエントリーシステムであって、
前記携帯機は、
ユーザによる車両の施錠または解錠の操作要求を受け付ける操作部と、
携帯機側の第1および第2のカウンタコードを記憶する携帯機記憶部と、
前記操作部が前記操作要求を受け付けると、前記携帯機側の第1および第2のカウンタコードを含む操作信号を前記車載機に送信する携帯機送信部と、
前記操作信号の送信時に前記携帯機側の第1のカウンタコードを更新する携帯機更新部と、を備え、
前記車載機は、
車載機側の第1および第2のカウンタコードを記憶する車載機記憶部と、
前記操作信号に含まれる携帯機側の第1および第2のカウンタコードを、前記車載機記憶部に記憶された車載機側の第1および第2のカウンタコードと照合する照合部と、
前記照合部の照合が成立した場合、車両のドアの施錠または解錠の動作を制御する制御部と、
前記照合部の照合が成立した場合、前記車載機側の第1のカウンタコードを更新する車載機更新部と、
車両の所定動作の際に、前記携帯機に応答要求信号を送信する車載機送信部と、
を備え、
前記携帯機更新部と前記車載機更新部は、前記応答要求信号の送信により開始される前記携帯機と前記車載機間のパッシブ通信において、それぞれ前記携帯機側の第2のカウンタコードおよび前記車載機側の第2のカウンタコードの更新を行うことを特徴とする車両用キーレスエントリーシステム。
A portable device owned by the user;
A vehicle-less keyless entry system having an in-vehicle device mounted on a vehicle and performing communication control with the portable device and controlling operation of the in-vehicle equipment,
The portable device is
An operation unit for accepting an operation request for locking or unlocking the vehicle by a user;
A portable device storage unit for storing the first and second counter codes on the portable device side;
When the operation unit accepts the operation request, a portable device transmission unit that transmits an operation signal including first and second counter codes on the portable device side to the in-vehicle device;
A portable device updating unit that updates the first counter code on the portable device side when transmitting the operation signal,
The in-vehicle device is
An in-vehicle device storage unit for storing the first and second counter codes on the in-vehicle device side;
A collation unit that collates the first and second counter codes on the portable device side included in the operation signal with the first and second counter codes on the vehicle unit stored in the vehicle unit storage unit;
When verification of the verification unit is established, a control unit that controls the operation of locking or unlocking the door of the vehicle;
When the collation of the collation unit is established, the in-vehicle device update unit that updates the first counter code on the on-vehicle device side;
An in-vehicle device transmission unit that transmits a response request signal to the portable device during a predetermined operation of the vehicle;
With
In the passive communication between the portable device and the in-vehicle device that is started by the transmission of the response request signal, the portable device updating unit and the in-vehicle device updating unit are respectively a second counter code on the portable device side and the in-vehicle device. A keyless entry system for a vehicle, wherein the second counter code on the aircraft side is updated.
前記照合部は、前記携帯機側の第2のカウンタコードが前記車載機側の第2のカウンタコードと一致するか否かの判断に基づいて、照合が成立したと判定することを特徴とする請求項1記載の車両用キーレスエントリーシステム。   The collation unit determines that collation has been established based on a determination as to whether or not the second counter code on the portable device side matches the second counter code on the vehicle-mounted device side. The keyless entry system for vehicles according to claim 1. 前記照合部は、前記携帯機側の第1のカウンタコードが前記車載機側の第1のカウンタコードよりも大きい場合に、前記判断を実行することを特徴とする請求項2記載の車両用キーレスエントリーシステム。   3. The vehicle keyless according to claim 2, wherein the collating unit executes the determination when the first counter code on the portable device side is larger than the first counter code on the vehicle-mounted device side. Entry system. 前記携帯機および前記車載機のいずれか一方の送信部は、他方の更新部に対するカウンタコード更新要求を前記パッシブ通信において送信する信号に含め、前記他方の更新部は、当該カウンタコード更新要求に基づいて前記更新を行うことを特徴とする請求項1〜3のいずれか一項に記載の車両用キーレスエントリーシステム。   Either one of the portable device and the vehicle-mounted device includes a counter code update request for the other update unit in a signal transmitted in the passive communication, and the other update unit is based on the counter code update request. The keyless entry system for vehicles according to any one of claims 1 to 3, wherein the updating is performed. 前記一方の送信部は、前記カウンタコード更新要求として、前記他方の更新部に前記他方の第2のカウンタコードをカウントアップさせるカウントアップ要求を送信する請求項4記載の車両用キーレスエントリーシステム。   5. The vehicle keyless entry system according to claim 4, wherein the one transmission unit transmits a count-up request for counting up the other second counter code to the other update unit as the counter code update request. 前記他方の送信部は、前記他方の更新部が前記他方の第2のカウンタコードを更新した後、更新完了通知を前記一方に対して送信し、
前記一方の更新部は、前記更新完了通知を受信すると、前記一方の第2のカウンタコードをカウントアップさせることにより前記更新を行うことを特徴とする請求項4記載の車両用キーレスエントリーシステム。
The other transmission unit transmits an update completion notification to the one after the other update unit updates the other second counter code,
5. The vehicle keyless entry system according to claim 4, wherein when the one update unit receives the update completion notification, the one update unit performs the update by counting up the one second counter code.
前記他方の送信部は、前記他方の更新部が前記他方の第2のカウンタコードを更新した後、更新後の前記他方の第2のカウンタコードを含む更新完了通知を前記一方の更新部に対して送信し、
前記一方の更新部は、前記更新完了通知を受信すると、前記更新完了通知に含まれる更新後の前記他方の第2のカウンタコードで、前記一方の第2のカウンタコードを上書きすることを特徴とする請求項4記載の車両用キーレスエントリーシステム。
The other transmitter transmits an update completion notification including the updated second counter code to the one update unit after the other update unit has updated the other second counter code. Send
When the one update unit receives the update completion notification, the one update unit overwrites the one second counter code with the updated second counter code included in the update completion notification. The vehicle keyless entry system according to claim 4.
前記携帯機更新部および前記車載機更新部は、前記車両のドアの施錠または解錠後、前記車両の所定動作として前記ドアを閉める動作が行われた際のパッシブ通信において、それぞれ前記携帯機側の第2のカウンタコードおよび前記車載機側の第2のカウンタコードの更新を行うことを特徴とする1〜7のいずれか一項に記載の車両用キーレスエントリーシステム。   The portable device update unit and the in-vehicle device update unit are respectively connected to the portable device side in passive communication when an operation of closing the door as a predetermined operation of the vehicle is performed after locking or unlocking the door of the vehicle. The keyless entry system for vehicles according to any one of claims 1 to 7, wherein the second counter code and the second counter code on the in-vehicle device side are updated. 前記携帯機記憶部および前記車載機記憶部は、前記携帯機に付与されたIDコードを記憶し、
前記パッシブ通信において、
前記携帯機送信部は、前記車載機から送信された前記応答要求信号に応じて、前記IDコードを含む応答信号を送信し、
前記車載機の照合部は、前記応答信号に含まれるIDコードを前記車載機記憶部に記憶されたIDコードと照合し、
前記車載機送信部は、前記応答信号に含まれるIDコードが前記車載機記憶部に記憶されたIDコードと一致する場合に、前記携帯機に認証信号を送信し、
前記パッシブ通信において、
前記車載機送信部は、前記応答要求信号または前記認証信号にカウンタコード更新要求を含め、
前記携帯機更新部は、当該カウンタコード更新要求に基づいて前記携帯機側の第2のカウンタコードの更新を行い、
前記携帯機送信部は、前記携帯機側の第2のカウンタコードの更新後、前記車載機に更新完了通知を送信し、
前記車載機更新部は、前記更新完了通知を受信すると、前記車載機側の第2のカウンタコードの更新を行うことを特徴とする請求項1または2記載の車両用キーレスエントリーシステム。
The portable device storage unit and the in-vehicle device storage unit store an ID code given to the portable device,
In the passive communication,
The portable device transmission unit transmits a response signal including the ID code in response to the response request signal transmitted from the in-vehicle device,
The collation unit of the in-vehicle device collates the ID code included in the response signal with the ID code stored in the in-vehicle device storage unit,
When the ID code included in the response signal matches the ID code stored in the in-vehicle device storage unit, the in-vehicle device transmission unit transmits an authentication signal to the portable device,
In the passive communication,
The in-vehicle device transmission unit includes a counter code update request in the response request signal or the authentication signal,
The portable device update unit updates the second counter code on the portable device side based on the counter code update request,
The portable device transmission unit transmits an update completion notification to the in-vehicle device after updating the second counter code on the portable device side,
3. The keyless entry system for a vehicle according to claim 1, wherein the in-vehicle device update unit updates the second counter code on the in-vehicle device side when receiving the update completion notification.
前記携帯機記憶部および前記車載機記憶部は、前記携帯機に付与されたIDコードを記憶し、
前記パッシブ通信において、
前記携帯機送信部は、前記車載機から送信された応答要求信号に応じて、前記IDコードを含む応答信号を送信し、
前記車載機の照合部は、前記応答信号に含まれるIDコードを、前記車載機記憶部に記憶されたIDコードと照合し、
前記車載機送信部は、前記応答信号に含まれるIDコードが前記車載機記憶部に記憶されたIDコードと一致する場合に、前記携帯機に認証信号を送信し、
前記パッシブ通信において、
前記携帯機送信部が、前記応答信号にカウンタコード更新要求を含め、前記車載機更新部は、当該カウンタコード更新要求に基づいて前記車載機側の第2のカウンタコードの更新を行い、
前記車載機送信部は、前記車載機側の第2のカウンタコードの更新後、前記携帯機に更新完了通知を送信し、
前記携帯機更新部は、前記更新完了通知を受信すると、前記携帯機側の第2のカウンタコードの更新を行うことを特徴とする請求項1または2記載の車両用キーレスエントリーシステム。
The portable device storage unit and the in-vehicle device storage unit store an ID code given to the portable device,
In the passive communication,
The portable device transmitting unit transmits a response signal including the ID code in response to a response request signal transmitted from the in-vehicle device,
The collation unit of the in-vehicle device collates the ID code included in the response signal with the ID code stored in the in-vehicle device storage unit,
When the ID code included in the response signal matches the ID code stored in the in-vehicle device storage unit, the in-vehicle device transmission unit transmits an authentication signal to the portable device,
In the passive communication,
The portable device transmitter includes a counter code update request in the response signal, and the in-vehicle device update unit updates the second counter code on the in-vehicle device side based on the counter code update request,
The in-vehicle device transmission unit transmits an update completion notification to the portable device after updating the second counter code on the in-vehicle device side,
3. The keyless entry system for a vehicle according to claim 1, wherein the portable device updating unit updates the second counter code on the portable device side when receiving the update completion notification. 4.
前記車載機は、警告を報知する車載機報知部を備え、
前記車載機報知部は、前記照合部の照合が成立しない場合、警告を報知することを特徴とする請求項1〜10のいずれか一項に記載の車両用キーレスエントリーシステム。
The in-vehicle device includes an in-vehicle device notification unit that notifies a warning,
11. The vehicle keyless entry system according to claim 1, wherein the in-vehicle device notification unit issues a warning when the verification of the verification unit is not established.
前記車載機報知部は、前記警告の報知として、ハザードランプを明滅させまたはホーンに警報音を出力させることを特徴とする請求項11記載の車両用キーレスエントリーシステム。   12. The vehicle keyless entry system according to claim 11, wherein the in-vehicle device notification unit blinks a hazard lamp or outputs a warning sound to a horn as the warning notification. 前記照合部の照合が成立しない場合、前記車載機送信部は、ユーザにより所持される携帯機に対して、警報信号を送信し、
前記携帯機は、
前記車載機から送信された警報信号に応じて、前記携帯機を所持するユーザに警告を報知する携帯機報知部を備えることを特徴とする請求項1〜12のいずれか一項に記載の車両用キーレスエントリーシステム。
When the verification of the verification unit is not established, the in-vehicle device transmission unit transmits an alarm signal to the portable device possessed by the user,
The portable device is
The vehicle according to any one of claims 1 to 12, further comprising a portable device notifying unit that notifies a user having the portable device of a warning in response to an alarm signal transmitted from the in-vehicle device. Keyless entry system.
JP2017034117A 2017-02-24 2017-02-24 Keyless entry system for vehicle Pending JP2018141263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017034117A JP2018141263A (en) 2017-02-24 2017-02-24 Keyless entry system for vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017034117A JP2018141263A (en) 2017-02-24 2017-02-24 Keyless entry system for vehicle

Publications (1)

Publication Number Publication Date
JP2018141263A true JP2018141263A (en) 2018-09-13

Family

ID=63527725

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017034117A Pending JP2018141263A (en) 2017-02-24 2017-02-24 Keyless entry system for vehicle

Country Status (1)

Country Link
JP (1) JP2018141263A (en)

Similar Documents

Publication Publication Date Title
JP6447610B2 (en) Vehicle control system and vehicle control device
KR102422326B1 (en) Control system and control mehtod for vehicle
KR101190486B1 (en) Method for Transmitting Information Between Bidirectional Objects
CN103380445B (en) Use the method that motor vehicles block sytem handled by mobile communication equipment
JP4153283B2 (en) Security related data handling apparatus and handling method
JP7343740B2 (en) One-way key fob and vehicle pairing authentication, retention, and deactivation
CN109586915A (en) Automobile no-key controls authentication method, user terminal, car-mounted device and server
JP6693448B2 (en) Vehicle control system, vehicle control method in vehicle control system, portable device, portable device control method, vehicle-side control unit, and vehicle-side control unit control method
JP5248930B2 (en) Cryptographic communication system and cryptographic key update method
JP6054773B2 (en) Communications system
JP2012082653A (en) Electronic key system
US10943416B2 (en) Secured communication in passive entry passive start (PEPS) systems
WO2019098020A1 (en) Car sharing system
WO2020213475A1 (en) Communication control system and communication control method
JP2018141264A (en) Keyless entry system for vehicle
JP2020033707A (en) Electronic key system, authentication device and portable device
JP2018141263A (en) Keyless entry system for vehicle
JP2018141265A (en) Keyless entry system for vehicle
WO2018070401A1 (en) Electronic key system
JP2018141262A (en) Keyless entry system for vehicle
US11292431B2 (en) Use of interpretive meta-instructions to implement various RKE protocols
JP2010180596A (en) Electronic key system and key authentication method
WO2019136332A1 (en) Multilane message counters to ensure order
JP6253003B1 (en) Electronic key system, security unit used in the system, and electronic key
JP2018040133A (en) Authentication system and mobile unit