[go: up one dir, main page]

JP2006118886A - Distance calculation system, and distance calculation method for the distance calculation system - Google Patents

Distance calculation system, and distance calculation method for the distance calculation system Download PDF

Info

Publication number
JP2006118886A
JP2006118886A JP2004304756A JP2004304756A JP2006118886A JP 2006118886 A JP2006118886 A JP 2006118886A JP 2004304756 A JP2004304756 A JP 2004304756A JP 2004304756 A JP2004304756 A JP 2004304756A JP 2006118886 A JP2006118886 A JP 2006118886A
Authority
JP
Japan
Prior art keywords
signal
distance calculation
distance
communication device
unit
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.)
Withdrawn
Application number
JP2004304756A
Other languages
Japanese (ja)
Inventor
Shizuka Ishimura
静 石村
Akira Iketani
昭 池谷
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2004304756A priority Critical patent/JP2006118886A/en
Priority to US11/245,497 priority patent/US7466219B2/en
Priority to TW094136240A priority patent/TWI267626B/en
Priority to KR1020050098644A priority patent/KR100770524B1/en
Priority to CNA2005101140448A priority patent/CN1801660A/en
Publication of JP2006118886A publication Critical patent/JP2006118886A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Lock And Its Accessories (AREA)
  • Radar Systems Or Details Thereof (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a distance calculation system and a distance calculation method for the distance calculation system, capable of surely calculating the distance between a first communications device and a second communication device to prevent unauthorized communication between the first communications device and the second communications device by a person other than the person concerned. <P>SOLUTION: In this distance calculation system for calculating the distance between a first communications device and a second communications device, the first communications device is provided with a transmission part for transmitting a distance calculating signal for calculating the distance with respect to the second communications device, a detection part for detecting the phase difference between the distance calculating signal when transmitted and the distance calculating signal when received, by receiving the distance calculating signal replied from the second communications device, and a calculation part for calculating the distance with respect to the second communications device, based on the phase difference detected by the detection part, and the second communications device is provided with a reply part for replying the distance calculating signal transmitted from the first communications device. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、距離算出システム、距離算出システムの距離算出方法に関する。   The present invention relates to a distance calculation system and a distance calculation method for the distance calculation system.

近年、所定の処理を実行すべく相互に通信を行う通信装置として、例えばパッシブキーレスエントリーシステムを搭載した自動車における車載機と携帯機がある。   In recent years, as communication devices that communicate with each other to execute predetermined processing, for example, there are an in-vehicle device and a portable device in an automobile equipped with a passive keyless entry system.

以下、パッシブキーレスエントリーシステムを搭載した自動車における車載機と携帯機の通信について詳述する。車載機は、例えば自動車の運転席側のドアに設けられ、携帯機は、当該自動車の所有者(以下、携帯者という)が所持しているものとする。そして、携帯者は、自動車のエンジンを停止し、ドアを開けて車外に出たものとする。   Hereinafter, communication between an in-vehicle device and a portable device in an automobile equipped with a passive keyless entry system will be described in detail. The in-vehicle device is provided, for example, at a door on the driver's seat side of the automobile, and the portable device is possessed by the owner of the automobile (hereinafter referred to as a “carrier”). Then, it is assumed that the wearer stops the engine of the car, opens the door, and goes out of the car.

車載機は、車載機と携帯機の通信可能範囲(エリア)内に携帯機があるか否かを判別するための信号(以下、信号Aという)を送信する。携帯者が通信可能範囲内にいるときは、携帯機は車載機からの信号Aを受信し、当該信号Aに応じた信号Bを送信する。車載機は携帯機からの信号Bを受信すると、通信可能範囲内に携帯機があると判別する。尚、車載機からの信号Aの送信は所定の間隔で繰り返し行われる。   The in-vehicle device transmits a signal (hereinafter referred to as signal A) for determining whether or not the portable device is within the communicable range (area) of the in-vehicle device and the portable device. When the carrier is within the communicable range, the portable device receives the signal A from the in-vehicle device and transmits a signal B corresponding to the signal A. When receiving the signal B from the portable device, the in-vehicle device determines that the portable device is within the communicable range. The transmission of the signal A from the in-vehicle device is repeatedly performed at a predetermined interval.

仮に、携帯者が通信可能範囲外に出てしまった場合、携帯機は車載機からの信号Aを受信できなくなる。そのため、車載機は携帯機からの信号Aに応じた信号Bを受信しなくなる。車載機は、例えば携帯機からの信号Bを予め定められた時間受信しなくなると、自動車内部に別途設けられた制御部に当該自動車のドアをロックさせるための指示信号を送信する。制御部は、車載機からの当該指示信号に基づいて、自動車のドアをロックさせる。よって携帯者が自動車から離れ、携帯機が通信可能範囲外となると、自動車のドアはロックされることとなる。   If the carrier goes out of the communicable range, the portable device cannot receive the signal A from the in-vehicle device. Therefore, the in-vehicle device does not receive the signal B corresponding to the signal A from the portable device. For example, when the vehicle-mounted device does not receive the signal B from the portable device for a predetermined time, the vehicle-mounted device transmits an instruction signal for locking the door of the vehicle to a controller provided separately inside the vehicle. The control unit locks the door of the automobile based on the instruction signal from the in-vehicle device. Therefore, when the carrier leaves the automobile and the portable device is out of the communicable range, the door of the automobile is locked.

次に、一旦は通信可能範囲外に出た携帯者が、再び通信可能範囲内に戻ってきた場合、携帯機は車載機からの信号Aを受信する。そして、携帯機は信号Bを送信することとなる。車載機は携帯機からの信号Bを受信すると、携帯機が当該自動車に対応したものであるか否かを判別するため、例えば携帯機の情報を読み出すための読出信号を送信する。携帯機は、車載機からの読出信号に基づいて、携帯機情報を送信する。車載機は、携帯機からの携帯機情報に基づいて、携帯機が当該自動車に対応したものであるか否かを判別する。そして車載機は、携帯機が当該自動車に対応したものであると判別すると、前述した制御部に当該自動車のドアをアンロックさせるための指示信号を送信する。制御部は、車載機からの当該指示信号に基づいて、自動車のドアをアンロックさせる。   Next, when the carrier who has once gone out of the communicable range returns to the communicable range again, the portable device receives the signal A from the in-vehicle device. Then, the portable device transmits the signal B. When receiving the signal B from the portable device, the in-vehicle device transmits, for example, a read signal for reading information of the portable device in order to determine whether the portable device is compatible with the vehicle. The portable device transmits portable device information based on the readout signal from the in-vehicle device. The in-vehicle device determines whether the portable device is compatible with the vehicle based on the portable device information from the portable device. When the in-vehicle device determines that the portable device is compatible with the vehicle, the vehicle-mounted device transmits an instruction signal for unlocking the door of the vehicle to the control unit described above. The control unit unlocks the door of the automobile based on the instruction signal from the in-vehicle device.

このように、パッシブキーレスエントリーシステムが搭載された自動車においては、自動車のキー(鍵)を鍵穴に差し込むことなく、車載機と携帯機が通信を行うことにより、当該自動車のドアをロック又はアンロックさせることを可能としている。
特開2000−198420号公報
As described above, in a vehicle equipped with a passive keyless entry system, the vehicle door and the portable device communicate with each other without inserting the vehicle key into the keyhole, thereby locking or unlocking the door of the vehicle. It is possible to make it.
JP 2000-198420 A

しかしながら、パッシブキーレスエントリーシステムが搭載された自動車の前述したような車載機と携帯機の通信において、いわゆるリレーアタックが行われた場合、当該自動車が窃盗される可能性があった。このリレーアタックとは、携帯者が通信可能範囲から出てしまうことにより本来であれば車載機と携帯機の通信ができなくなる状態であっても、中継機を用いることによって車載機と携帯機の通信を可能とさせ、自動車のドアをアンロックとさせて当該自動車を盗む窃盗手口のことをいう。   However, when a so-called relay attack is performed in the communication between the vehicle-mounted device and the portable device as described above of a vehicle equipped with a passive keyless entry system, the vehicle may be stolen. This relay attack means that even if the vehicle is originally out of the communicable range and communication between the in-vehicle device and the portable device becomes impossible, the in-vehicle device and the portable device are used by using the relay device. It refers to a thief that enables communication and steals the car by unlocking the door of the car.

以下、図12を用いてリレーアタックについて詳述する。図12は、中継機A、Bを介した車載機101と携帯機102の通信を示す図である。車載機101は、例えば運転席側のドアに設けられており、前述した信号Aを送信する。車載機101は、破線Cで示される通信範囲内において信号の送受信が可能である。携帯機102は、前述したように車載機101からの信号Aを受信すると、当該信号Aに応じた信号Bを送信する。尚、携帯機102は、破線Dで示される通信範囲内において信号の送受信が可能である。   Hereinafter, the relay attack will be described in detail with reference to FIG. FIG. 12 is a diagram illustrating communication between the in-vehicle device 101 and the portable device 102 via the relay devices A and B. The in-vehicle device 101 is provided, for example, in a door on the driver's seat side and transmits the signal A described above. The in-vehicle device 101 can transmit and receive signals within the communication range indicated by the broken line C. When the portable device 102 receives the signal A from the in-vehicle device 101 as described above, the portable device 102 transmits the signal B corresponding to the signal A. Note that the portable device 102 can transmit and receive signals within the communication range indicated by the broken line D.

携帯者が通信可能範囲を出てしまうと、前述したように車載機101には携帯機102からの信号Aに応じた信号Bが送信されなくなり、制御部(不図示)は車載機101からの指示信号に基づいてドアをロックさせる。   When the carrier leaves the communicable range, the signal B corresponding to the signal A from the portable device 102 is not transmitted to the in-vehicle device 101 as described above, and the control unit (not shown) The door is locked based on the instruction signal.

このとき、自動車を窃盗しようとする中継者X、Yがいるとする。中継者Xは、中継機Aを所持して車載機101を通信範囲C内に入れる。また、中継者Yは、中継機Bを所持して携帯者の傍に行き、中継機Bを携帯機102の通信範囲D内に入れる。中継者Xが所持する中継機Aは車載機101の通信範囲C内に入っているため信号Aを受信し、中継機Aは信号Aを検波し、増幅してから送信する。中継機Aは信号Aを増幅させることによって、車載機101の通信範囲Cよりも広い範囲で信号Aを送信可能としている。中継機Aにて増幅された信号Aを中継者Yが所持する中継機Bが受信すると、中継機Bは当該増幅された信号Aを検波して、例えば中継機Aが増幅する前のレベルの信号Aに減衰して送信する。このとき、中継機Bは携帯機102の通信範囲D内に入っているため、中継機Bにて減衰された信号Aを携帯機102が受信する。携帯機102は、車載機101からの信号Aが送信されてきたものとして、当該信号Aに応じた信号Bを送信する。信号Bを中継機Bが受信すると、中継機Bは信号Bを検波し、増幅してから送信する。中継機Bは、信号Bを増幅させることによって、携帯機102の通信範囲Dよりも広い範囲で信号Bを送信可能としている。中継機Bにて増幅された信号Bを中継機Aが受信すると、中継機Aは当該増幅された信号Bを検波して、例えば中継機Bが増幅する前のレベルの信号Bに減衰して送信する。このとき、前述したように中継機Aは車載機101の通信範囲C内に入っているため、中継機Aにて減衰された信号Bを車載機101が受信する。そのため車載機101は、信号Aに応じた信号Bを受信することにより、携帯機102が通信可能範囲内にあるものと判別する。そして、車載機101は、自動車のドアをアンロックさせるための前述した処理を行うこととなる。そして、アンロックされた自動車に例えば中継者Xが乗り込み、当該自動車が盗まれることとなる。   At this time, it is assumed that there are relayers X and Y trying to steal the car. The relay person X possesses the relay device A and puts the in-vehicle device 101 into the communication range C. In addition, the relay person Y possesses the relay machine B and goes to the side of the portable person, and puts the relay machine B within the communication range D of the portable machine 102. The repeater A possessed by the repeater X receives the signal A because it is within the communication range C of the in-vehicle device 101, and the repeater A detects the signal A, amplifies it, and transmits it. The repeater A amplifies the signal A so that the signal A can be transmitted in a wider range than the communication range C of the in-vehicle device 101. When the repeater B possessed by the repeater Y receives the signal A amplified by the repeater A, the repeater B detects the amplified signal A, for example, at a level before the repeater A amplifies. Attenuate to signal A and transmit. At this time, since the repeater B is within the communication range D of the portable device 102, the portable device 102 receives the signal A attenuated by the repeater B. The portable device 102 transmits a signal B corresponding to the signal A, assuming that the signal A from the in-vehicle device 101 has been transmitted. When the relay station B receives the signal B, the relay station B detects the signal B, amplifies it, and transmits it. The repeater B can amplify the signal B to transmit the signal B in a wider range than the communication range D of the portable device 102. When the repeater A receives the signal B amplified by the repeater B, the repeater A detects the amplified signal B and attenuates it to a signal B at a level before the repeater B amplifies, for example. Send. At this time, since the repeater A is within the communication range C of the in-vehicle device 101 as described above, the in-vehicle device 101 receives the signal B attenuated by the repeater A. Therefore, the in-vehicle device 101 determines that the portable device 102 is within the communicable range by receiving the signal B corresponding to the signal A. And the vehicle equipment 101 will perform the process mentioned above for unlocking the door of a motor vehicle. Then, for example, the relay person X gets into the unlocked car, and the car is stolen.

このように、中継機A、Bが介在する車載機101と携帯機102の通信においては、車載機101が中継機A、Bを介して信号Bを受信することにより、携帯機102が通信可能範囲内にあると判別する可能性があった。そのため、車載機101は自動車のドアをアンロックさせるための指示信号を制御部に送信し、制御部は携帯者が通信可能範囲内にいないにもかかわらず、ドアをアンロックしてしまう可能性があった。   As described above, in the communication between the in-vehicle device 101 and the portable device 102 with the relay devices A and B interposed therebetween, the in-vehicle device 101 can communicate with the portable device 102 by receiving the signal B through the relay devices A and B. There was a possibility of determining that it was within the range. Therefore, the in-vehicle device 101 transmits an instruction signal for unlocking the door of the automobile to the control unit, and the control unit may unlock the door even though the carrier is not within the communicable range. was there.

そこで、本発明は、第1通信装置(例えば車載機)と第2通信装置(例えば携帯機)の間における当事者以外による不正通信を防止すべく、第1通信装置と第2通信装置の間の距離を確実に算出することができる距離算出システム、距離算出システムの距離算出方法を提供することを目的とする。   Therefore, the present invention provides a communication between the first communication device and the second communication device in order to prevent unauthorized communication between the first communication device (for example, the in-vehicle device) and the second communication device (for example, the portable device). It is an object of the present invention to provide a distance calculation system capable of reliably calculating a distance and a distance calculation method of the distance calculation system.

前記課題を解決するための発明は、第1通信装置と第2通信装置との間の距離を算出する距離算出システムであって、前記第1通信装置は、前記第2通信装置との間の距離を算出するための距離算出用信号を送信する送信部と、前記第2通信装置から返信された前記距離算出用信号を受信することによって、送信したときの当該距離算出用信号と、受信したときの当該距離算出用信号と、の位相差を検出する検出部と、前記検出部にて検出された前記位相差に基づいて、前記第2通信装置との間の距離を算出する算出部と、を備え、前記第2通信装置は、前記第1通信装置から送信された前記距離算出用信号を返信する返信部を備えた、ことを特徴とする。   The invention for solving the above problem is a distance calculation system for calculating a distance between a first communication device and a second communication device, wherein the first communication device is connected to the second communication device. A transmission unit that transmits a distance calculation signal for calculating a distance, and the distance calculation signal sent back by receiving the distance calculation signal returned from the second communication device, and the received distance calculation signal A detection unit that detects a phase difference between the distance calculation signal and a calculation unit that calculates a distance from the second communication device based on the phase difference detected by the detection unit; , And the second communication device includes a reply unit that returns the distance calculation signal transmitted from the first communication device.

更に、第1通信装置と第2通信装置との間の距離を算出する距離算出システムの距離算出方法であって、前記第1通信装置は、前記第2通信装置との間の距離を算出するための距離算出用信号を送信し、前記第2通信装置は、前記第1通信装置から送信された前記距離算出用信号を返信し、前記第1通信装置は、前記第2通信装置から返信された前記距離算出用信号を受信することによって、送信したときの当該距離算出用信号と受信したときの当該距離算出用信号との位相差を検出し、当該位相差に基づいて前記第2通信装置との間の距離を算出する、ことを特徴とする。   Furthermore, it is the distance calculation method of the distance calculation system which calculates the distance between a 1st communication apparatus and a 2nd communication apparatus, Comprising: The said 1st communication apparatus calculates the distance between the said 2nd communication apparatuses. A distance calculation signal for transmitting, the second communication device returns the distance calculation signal transmitted from the first communication device, and the first communication device is returned from the second communication device. By receiving the distance calculation signal, a phase difference between the distance calculation signal when transmitted and the distance calculation signal when received is detected, and the second communication device is based on the phase difference The distance between is calculated.

本発明によれば、第1通信装置と第2通信装置の間の距離を確実に算出することができ、第1通信装置と第2通信装置の間における当事者以外による不正通信を確実に防止することができる距離算出システム、距離算出システムの距離算出方法を提供することが可能となる。   ADVANTAGE OF THE INVENTION According to this invention, the distance between a 1st communication apparatus and a 2nd communication apparatus can be calculated reliably, and the unauthorized communication by the party other than the party between a 1st communication apparatus and a 2nd communication apparatus is prevented reliably. It is possible to provide a distance calculation system and a distance calculation method for the distance calculation system.

本明細書および添付図面の記載により、少なくとも以下の事項が明らかとなる。   At least the following matters will become apparent from the description of this specification and the accompanying drawings.

<<第1の実施形態>>
===距離算出システムの全体構成例===
図1を参照しつつ、本発明に係る距離算出システムについて説明する。図1は、本発明に係る距離算出システムの全体構成の一例を示す機能ブロック図である。
<< First Embodiment >>
=== Example of Overall Configuration of Distance Calculation System ===
The distance calculation system according to the present invention will be described with reference to FIG. FIG. 1 is a functional block diagram showing an example of the overall configuration of a distance calculation system according to the present invention.

尚、本実施形態では距離算出システムは、例えば自動車のドアをキー操作せずにロック又はアンロックさせることが可能なパッシブキーレスエントリーシステムに用いられるものとして説明する。そして、距離算出システムは、車載機1(第1通信装置)、携帯機2(第2通信装置)から構成される。尚、車載機1は例えば自動車の運転席側ドアの車外ドアノブに設けられ、携帯機2は例えば当該自動車のキー(鍵)に設けられているものとする。   In the present embodiment, the distance calculation system will be described as being used for a passive keyless entry system that can lock or unlock a door of a car without operating a key, for example. The distance calculation system includes an in-vehicle device 1 (first communication device) and a portable device 2 (second communication device). It is assumed that the in-vehicle device 1 is provided, for example, on a door knob outside the driver's side door of an automobile, and the portable device 2 is provided, for example, on a key of the automobile.

尚、本実施形態では、車載機1から携帯機2への信号の通信において、低周波数(例えば125kHz)の搬送波を用いることとする。また携帯機2から車載機1への信号の通信において、高周波数(例えば312MHz)の搬送波を用いることとする。即ち、車載機1から携帯機2への通信においては、低周波数の搬送波で通信が行われるため通信速度が遅くなる。逆に、携帯機2から車載機1への通信においては、高周波数の搬送波で通信が行われるため通信速度が速くなる。通信速度が遅い低周波数を用いているのは、後述するように車載機1から信号を送信させた時間と当該信号が携帯機2を介して返信されてきた時間との信号の位相差(時間差でもよい)を意図的に生じさせるためである。また、携帯機2から車載機1への通信の場合、通信速度が速い高周波数を用いることによって、その間における位相差は車載機1から携帯機2への通信の際生じる位相差に比べ無視できる程度となる。つまり、車載機1から携帯機2への通信における意図的に生じさせた位相差のみをもって、車載機1と携帯機2の間の距離を算出することが可能となる。そのため、意図的な低周波数を車載機1から携帯機2への通信に用い、さらに高周波数を携帯機2から車載機1への通信に用いている。   In the present embodiment, a low-frequency (for example, 125 kHz) carrier wave is used in signal communication from the in-vehicle device 1 to the portable device 2. Further, in the signal communication from the portable device 2 to the vehicle-mounted device 1, a high frequency (for example, 312 MHz) carrier wave is used. That is, in the communication from the in-vehicle device 1 to the portable device 2, the communication speed is slow because communication is performed with a low-frequency carrier wave. Conversely, in communication from the portable device 2 to the vehicle-mounted device 1, the communication speed is increased because communication is performed using a high-frequency carrier wave. The low frequency with low communication speed is used because the signal phase difference (time difference) between the time when the signal is transmitted from the vehicle-mounted device 1 and the time when the signal is returned via the portable device 2 as described later. This may be intentionally generated). Further, in the case of communication from the portable device 2 to the in-vehicle device 1, by using a high frequency with a high communication speed, the phase difference therebetween can be ignored compared to the phase difference generated during communication from the in-vehicle device 1 to the portable device 2. It will be about. That is, the distance between the in-vehicle device 1 and the portable device 2 can be calculated only with the phase difference intentionally generated in the communication from the in-vehicle device 1 to the portable device 2. Therefore, an intentional low frequency is used for communication from the in-vehicle device 1 to the portable device 2, and a higher frequency is used for communication from the portable device 2 to the in-vehicle device 1.

更に、前述したような車載機1から携帯機2への通信においては、ASK変調(振幅偏移変調:Amplitude Shift Keying)がなされた信号によって通信が行われる。何故ならば、車載機1から携帯機2へ信号を送信するための送信部7(送信部、第1変調部)と、車載機1からの信号を受信するための復調部24(第2復調部)の回路構成が容易で、ある程度混信しても車載機1から携帯機2へ送信することが可能となるからである。また、携帯機2から車載機1への通信においては、FSK変調(周波数偏移変調:Frequency Shift Keying)がなされた信号によって通信が行われる。何故ならば、FSK変調がなされた信号は、ノイズによる影響を受けにくく、携帯機2から車載機1への情報を損失することなく確実に送信することが可能となるからである。尚、本実施形態においては、車載機1から携帯機2への通信においてASK変調された信号にて通信を行い、携帯機2から車載機1への通信においてFSK変調された信号にて通信を行っているがこれに限るものではない。例えば、信号の秘匿性を高めることができ、妨害波・干渉波に対する排除能力が著しく高いスペクトラム拡散にて車載機1から携帯機2への通信、及び携帯機2から車載機1への通信を行うことも可能である。   Furthermore, in the communication from the vehicle-mounted device 1 to the portable device 2 as described above, communication is performed using a signal subjected to ASK modulation (amplitude shift keying). This is because a transmission unit 7 (transmission unit, first modulation unit) for transmitting a signal from the in-vehicle device 1 to the portable device 2 and a demodulation unit 24 (second demodulation) for receiving a signal from the in-vehicle device 1. This is because it is possible to transmit from the in-vehicle device 1 to the portable device 2 even if there is some interference. In communication from the portable device 2 to the in-vehicle device 1, communication is performed using a signal subjected to FSK modulation (Frequency Shift Keying). This is because a signal subjected to FSK modulation is not easily affected by noise, and can be reliably transmitted without loss of information from the portable device 2 to the in-vehicle device 1. In the present embodiment, communication is performed using an ASK-modulated signal in communication from the in-vehicle device 1 to the portable device 2, and communication is performed using an FSK-modulated signal in communication from the portable device 2 to the on-vehicle device 1. Yes, but not limited to this. For example, signal confidentiality can be enhanced, and communication from the in-vehicle device 1 to the portable device 2 and communication from the portable device 2 to the in-vehicle device 1 can be performed with a spread spectrum that has a remarkably high ability to eliminate interference waves and interference waves. It is also possible to do this.

そして、車載機1から携帯機2への通信の場合、前述した低周波数の搬送波を用いることにより、電磁波の強度が距離の3乗に反比例する磁界成分を利用することとなるため、通常通信距離は約1mとなる。一方、携帯機2から車載機1への通信の場合、前述した高周波数の搬送波を用いることにより、通常通信距離は5〜20mとなる。以下、車載機1と携帯機2の通信可能範囲をエリアという。   In the case of communication from the vehicle-mounted device 1 to the portable device 2, the use of the above-described low-frequency carrier wave makes use of a magnetic field component in which the intensity of electromagnetic waves is inversely proportional to the cube of the distance. Is about 1 m. On the other hand, in the case of communication from the portable device 2 to the vehicle-mounted device 1, the normal communication distance is 5 to 20 m by using the above-described high frequency carrier wave. Hereinafter, the communicable range between the in-vehicle device 1 and the portable device 2 is referred to as an area.

車載機1は、CPU(Central Processing Unit)3(検出部、算出部、判別部、生成部)、カウンタ4、タイマ5、Flashメモリ6(記憶部)、送信部7、受信部8(第1復調部)、送信アンテナ9、受信アンテナ10、OSC26(発振回路:Oscillator)を有している。   The in-vehicle device 1 includes a CPU (Central Processing Unit) 3 (detection unit, calculation unit, determination unit, generation unit), counter 4, timer 5, Flash memory 6 (storage unit), transmission unit 7, reception unit 8 (first unit). A demodulation unit), a transmission antenna 9, a reception antenna 10, and an OSC 26 (oscillator circuit: Oscillator).

送信部7は、CPU3からの信号を125kHzの周波数の搬送波でASK変調する。   The transmitter 7 performs ASK modulation on the signal from the CPU 3 with a carrier wave having a frequency of 125 kHz.

送信アンテナ9は、送信部7にてASK変調された信号を送信する。   The transmission antenna 9 transmits the signal subjected to ASK modulation by the transmission unit 7.

受信アンテナ10は、携帯機2からのFSK変調された信号を受信する。   The receiving antenna 10 receives an FSK modulated signal from the portable device 2.

受信部8は、受信アンテナ10が受信した携帯機2からのFSK変調された信号を復調する。   The receiving unit 8 demodulates the FSK-modulated signal from the portable device 2 received by the receiving antenna 10.

CPU3は、車載機1を統括制御するために設けられている。Flashメモリ6には、CPU3が後述する処理を行うためのプログラムデータが予め記憶されている。また、Flashメモリ6には、CPU3が自動車のドアをアンロックするための処理を行う際、受信部8にて復調された携帯機2からのデータと照合を行うためのコード信号、個人データが予め記憶されている。更に、Flashメモリ6には、受信部8にて復調された携帯機2からの暗号化個人データ(CPU3によって前述した個人データと照合されるべく携帯機2のFlashメモリ13に記憶されている暗号化された個人データ)を解読するための暗号化解読プログラムが予め記憶されている。Flashメモリ6は、データを電気消去することによりデータを繰り返し書き込み読み出しできる不揮発性記憶素子で構成される。   The CPU 3 is provided for overall control of the in-vehicle device 1. The flash memory 6 stores in advance program data for the CPU 3 to perform processing to be described later. In addition, when the CPU 3 performs a process for unlocking the door of the automobile, the flash memory 6 has a code signal and personal data for collating with the data from the portable device 2 demodulated by the receiving unit 8. Stored in advance. Further, the flash memory 6 stores the encrypted personal data demodulated by the receiving unit 8 from the portable device 2 (the encryption stored in the flash memory 13 of the portable device 2 to be collated with the personal data described above by the CPU 3). An encryption / decryption program for decrypting the encrypted personal data) is stored in advance. The Flash memory 6 is composed of a nonvolatile memory element that can repeatedly write and read data by electrically erasing the data.

タイマ5は、CPU3からの指示に基づいて時間を計時する。   The timer 5 measures time based on an instruction from the CPU 3.

OSC26は、所定周波数のクロック(CLK0)をCPU3に送信する。   The OSC 26 transmits a clock (CLK0) having a predetermined frequency to the CPU 3.

カウンタ4は、CPU3からの指示に基づいて、CPU3から送信部7に送信される車載機1から携帯機2までの距離を算出するための信号(以下、距離算出用信号という)の立上りから、OSC26からのクロックの例えば立ち上がりをカウントする。そして、カウンタ4は、受信部8にて復調された距離算出用信号の立ち上がりまで、OSC26からのクロックの立ち上がりをカウントする。また、カウンタ4のカウント値は、CPU3からの指示に基づいてリセットされる。   Based on an instruction from the CPU 3, the counter 4 starts from the rise of a signal (hereinafter referred to as a distance calculation signal) for calculating the distance from the in-vehicle device 1 to the portable device 2 transmitted from the CPU 3 to the transmission unit 7. For example, the rising edge of the clock from the OSC 26 is counted. The counter 4 counts the rising edge of the clock from the OSC 26 until the rising edge of the distance calculation signal demodulated by the receiving unit 8. The count value of the counter 4 is reset based on an instruction from the CPU 3.

CPU3は、前述した距離算出用信号を送信部7に送信するとともにカウンタ4をリセットさせてカウントを開始させる。また、CPU3は、タイマ5をリセットさせて計時を開始させる。CPU3は、受信部8にて復調された携帯機2からの距離算出用信号を受信すると、カウンタ4のカウント値を読み出す。CPU3は、当該カウント値を基に車載機1から携帯機2までの距離を算出する。つまり、距離算出用信号を送信部7に送信した時間から、携帯機2を介して距離算出用信号が返信されてきた時間までの両信号の位相差を示すカウント値が得られ、CPU3は車載機1から携帯機2までの距離を算出することができる。例えば、OSC26からのクロックの周波数が15.75kHzである場合、携帯機2を介して距離算出用信号が返信されてきたときのカウンタ4のカウント値が250となっていたとき、このときの位相差は約15.87(msec)となる。そして、位相差が約15.87(msec)のときの車載機1から携帯機2までの距離は約1(m)となることが、例えば実験からもとめられているものとする。この実験からもとめられたカウント値に対応した距離データは、例えばFlashメモリ6にテーブルデータとして予め記憶されている。CPU3は、当該算出された距離が予め定められた距離未満(例えば、1m)であるか否かを判別する。そして、CPU3は、当該算出された距離が前述した予め定められた距離未満であると判別すると、携帯機2のインバータ21(返信部)を不動作状態とするための信号(以下、識別信号という)を送信部7に送信する。また、CPU3は、Flashメモリ6に記憶されているコード信号に応じたコード信号を携帯機2から読み出すための信号(以下、コード読出信号という)を送信部7に送信する。CPU3は、受信部8にて復調された携帯機2からのコード信号が送信される。CPU3は、携帯機2からのコード信号とFlashメモリ6からのコード信号が所定の関係を有していると判別した場合、前述した暗号化個人データを読み出すための信号(以下、暗号化個人データ読出信号という)を送信部7に送信する。CPU3は、受信部8にて復調された携帯機2からの暗号化個人データが送信される。CPU3は、Flashメモリ6に記憶されている暗号化解読プログラムに基づいて、当該暗号化個人データの解読を行う。CPU3は、解読した個人データとFlashメモリ6からの個人データが一致すると判別した場合、自動車の何れのドア(例えば自動車の全てのドア又は運転席のドアの何れか)をアンロックするのかを確認するための信号(以下、入力確認信号という)を送信部7に送信する。CPU3には、受信部8にて復調された携帯機2からの入力確認信号に応じた入力信号が送信される。CPU3は、受信部8にて復調された携帯機2からの入力信号に基づいて、自動車のドアをアンロックするための指示信号を、自動車内に別途設けた制御部(不図示)に送信する。また、CPU3は、携帯機2が通信可能範囲内あるか否かを判別するための信号(以下、エリア内確認信号Aという)を送信部7に送信する。このとき、CPU3は、タイマ5をリセットさせて、計時を開始させる。CPU3は、当該エリア内確認信号Aに対応する信号(以下、エリア内確認信号Bという)が、予め定められた時間内(図4・t1)に携帯機2から送信されてくるか否かを判別する。CPU3は、当該エリア内確認信号Bが予め定められた時間内に、携帯機2から送信されてこないと判別すると、自動車のドアをロックするための指示信号を、前述した制御部に送信する。尚、CPU3のこれらの機能は、前述したFlashメモリ6から読み出されたプログラムデータの解読結果に基づいて、CPU3が当該プログラムを実行することによって実現される。CPU3は、Flashメモリ6のアドレスを指定するアドレスカウンタ(不図示)、Flashメモリ6から読み出されるプログラムデータを解読するプログラムロジックアレイ(不図示)、論理演算を行う演算論理ユニット(不図示)、演算データを一時格納するレジスタ(不図示)等を有する。   The CPU 3 transmits the above-described distance calculation signal to the transmission unit 7 and resets the counter 4 to start counting. Further, the CPU 3 resets the timer 5 to start measuring time. When receiving the distance calculation signal from the portable device 2 demodulated by the receiving unit 8, the CPU 3 reads the count value of the counter 4. The CPU 3 calculates the distance from the in-vehicle device 1 to the portable device 2 based on the count value. That is, the count value indicating the phase difference between the two signals from the time when the distance calculation signal is transmitted to the transmitter 7 to the time when the distance calculation signal is returned via the portable device 2 is obtained. The distance from the machine 1 to the portable machine 2 can be calculated. For example, when the frequency of the clock from the OSC 26 is 15.75 kHz, the count value of the counter 4 when the distance calculation signal is returned via the portable device 2 is 250. The phase difference is about 15.87 (msec). It is assumed that the distance from the vehicle-mounted device 1 to the portable device 2 when the phase difference is about 15.87 (msec) is about 1 (m), for example, from an experiment. The distance data corresponding to the count value obtained from this experiment is stored in advance in the Flash memory 6 as table data, for example. The CPU 3 determines whether or not the calculated distance is less than a predetermined distance (for example, 1 m). When the CPU 3 determines that the calculated distance is less than the predetermined distance described above, the CPU 3 sets a signal for making the inverter 21 (reply unit) of the portable device 2 inoperative (hereinafter referred to as an identification signal). ) To the transmitter 7. Further, the CPU 3 transmits a signal for reading a code signal corresponding to the code signal stored in the Flash memory 6 from the portable device 2 (hereinafter referred to as a code reading signal) to the transmission unit 7. The CPU 3 transmits the code signal from the portable device 2 demodulated by the receiving unit 8. When the CPU 3 determines that the code signal from the portable device 2 and the code signal from the flash memory 6 have a predetermined relationship, the CPU 3 reads the above-described signal for reading the encrypted personal data (hereinafter referred to as encrypted personal data). (Referred to as a read signal). The CPU 3 transmits the encrypted personal data from the portable device 2 demodulated by the receiving unit 8. The CPU 3 decrypts the encrypted personal data based on the decryption program stored in the Flash memory 6. If the CPU 3 determines that the decrypted personal data and the personal data from the Flash memory 6 match, it confirms which door of the car (for example, all the doors of the car or the door of the driver's seat) is to be unlocked. A signal (hereinafter referred to as an input confirmation signal) is transmitted to the transmitter 7. An input signal corresponding to the input confirmation signal from the portable device 2 demodulated by the receiving unit 8 is transmitted to the CPU 3. Based on the input signal from the portable device 2 demodulated by the receiving unit 8, the CPU 3 transmits an instruction signal for unlocking the door of the vehicle to a control unit (not shown) separately provided in the vehicle. . Further, the CPU 3 transmits a signal (hereinafter referred to as an in-area confirmation signal A) for determining whether or not the portable device 2 is within a communicable range to the transmission unit 7. At this time, the CPU 3 resets the timer 5 to start timing. The CPU 3 determines whether or not a signal corresponding to the in-area confirmation signal A (hereinafter referred to as an in-area confirmation signal B) is transmitted from the portable device 2 within a predetermined time (t1 in FIG. 4). Determine. If the CPU 3 determines that the in-area confirmation signal B is not transmitted from the portable device 2 within a predetermined time, the CPU 3 transmits an instruction signal for locking the door of the automobile to the control unit described above. Note that these functions of the CPU 3 are realized by the CPU 3 executing the program based on the result of decoding the program data read from the flash memory 6 described above. The CPU 3 includes an address counter (not shown) that specifies an address of the flash memory 6, a program logic array (not shown) that decodes program data read from the flash memory 6, an arithmetic logic unit (not shown) that performs logical operations, It has a register (not shown) for temporarily storing data.

携帯機2は、CPU11(切替部)、入力部12、Flashメモリ13、復調部24、変調部25(第2変調部)、受信アンテナ18、送信アンテナ19、インバータ20、21、22、フラグ23、タイマ27を有している。   The portable device 2 includes a CPU 11 (switching unit), an input unit 12, a flash memory 13, a demodulation unit 24, a modulation unit 25 (second modulation unit), a reception antenna 18, a transmission antenna 19, inverters 20, 21, 22, and a flag 23. The timer 27 is provided.

受信アンテナ18は、車載機1からのASK変調された信号を受信する。   The receiving antenna 18 receives an ASK-modulated signal from the in-vehicle device 1.

復調部24は、例えばRF16(Radio Frequency)、DET14(Detector)から構成されている。復調部24は、受信アンテナ18からのASK変調された信号を復調する。   The demodulator 24 is composed of, for example, RF 16 (Radio Frequency) and DET 14 (Detector). The demodulator 24 demodulates the ASK-modulated signal from the receiving antenna 18.

変調部25は、例えばRF17、変調器15から構成されている。変調部25は、CPU11からの信号を312MHzの周波数の搬送波でFSK変調する。また、変調部25は、CPU11の指示によってインバータ21が動作状態となっている場合、復調部24からの信号を312MHzの周波数の搬送波でFSK変調する。   The modulation unit 25 includes, for example, an RF 17 and a modulator 15. The modulation unit 25 performs FSK modulation on the signal from the CPU 11 with a carrier wave having a frequency of 312 MHz. Further, the modulation unit 25 performs FSK modulation of the signal from the demodulation unit 24 with a carrier wave having a frequency of 312 MHz when the inverter 21 is in an operation state according to an instruction from the CPU 11.

送信アンテナ19は、変調部25にてFSK変調された信号を送信する。   The transmission antenna 19 transmits the signal that has been FSK modulated by the modulation unit 25.

CPU11は、携帯機2を統括制御するために設けられている。Flashメモリ13には、CPU11が後述する処理を行うためのプログラムデータが予め記憶されている。また、Flashメモリ13には、車載機1からのコード読出信号に基づいて、車載機1に送信するためのコード信号が記憶されている。更に、Flashメモリ13には、車載機1からの暗号化個人データ読出信号に基づいて、車載機1に送信するための暗号化個人データが記憶されている。Flashメモリ13は、データを電気消去することによりデータを繰り返し書き込み読み出しできる不揮発性記憶素子で構成される。   The CPU 11 is provided for overall control of the portable device 2. The flash memory 13 stores in advance program data for the CPU 11 to perform processing to be described later. The flash memory 13 stores a code signal to be transmitted to the in-vehicle device 1 based on the code read signal from the in-vehicle device 1. Further, the flash memory 13 stores encrypted personal data to be transmitted to the in-vehicle device 1 based on the encrypted personal data read signal from the in-vehicle device 1. The flash memory 13 is composed of a nonvolatile memory element that can repeatedly write and read data by electrically erasing the data.

タイマ27は、CPU11からの指示に基づいて計時する。   The timer 27 measures time based on an instruction from the CPU 11.

入力部12は、例えば携帯機2の所持者(以下、携帯者という)からの指示入力に基づく指示信号が入力される。例えば携帯者が運転席側のドアをアンロックしたい場合、運転席側のドアをアンロックするための指示入力を携帯者が行い、当該指示入力に基づく指示信号が入力部12に入力される。そして、入力部12は、当該運転席側のドアをアンロックするための当該指示信号が入力されると、フラグ23に例えば一方の論理値“1”を記憶させる。また、例えば携帯者が自動車の全てのドアをアンロックしたい場合、自動車の全てのドアをアンロックするための指示入力を携帯者が行い、当該指示入力に基づく指示信号が入力部12に入力される。そして、入力部12は、当該全てのドアをアンロックするための指示信号が入力されると、フラグ23に例えば他方の論理値“0”を記憶させる。尚、本実施形態では、例えばキー(鍵)に切替スイッチ(不図示)を設けさせ、携帯者が運転席側のドアをアンロックしたい場合は当該切替スイッチを一方側に切り替え、自動車の全てのドアをアンロックしたい場合は当該切替スイッチを他方側に切り替える。そして、入力部12には当該切替スイッチを一方側に切り替えることによって運転席側のドアをアンロックするための指示信号が入力され、入力部12はフラグ23に“1”を記憶させるものとして説明する。また、入力部12には当該切替スイッチを他方側に切り替えることによって全てのドアをアンロックするための指示信号が入力され、入力部12はフラグ23に“0”を記憶させるものとして説明する。   The input unit 12 receives an instruction signal based on an instruction input from, for example, a holder of the portable device 2 (hereinafter referred to as a “carrier”). For example, when the user wants to unlock the door on the driver's seat, the user inputs an instruction for unlocking the door on the driver's seat, and an instruction signal based on the instruction input is input to the input unit 12. When the instruction signal for unlocking the driver seat side door is input, the input unit 12 stores, for example, one logical value “1” in the flag 23. Further, for example, when the carrier wants to unlock all the doors of the automobile, the carrier inputs an instruction for unlocking all the doors of the automobile, and an instruction signal based on the instruction input is input to the input unit 12. The When the instruction signal for unlocking all the doors is input, the input unit 12 causes the flag 23 to store, for example, the other logical value “0”. In the present embodiment, for example, a changeover switch (not shown) is provided on a key, and when the wearer wants to unlock the door on the driver's seat, the changeover switch is switched to one side, If you want to unlock the door, switch the switch to the other side. An instruction signal for unlocking the door on the driver's seat side is input to the input unit 12 by switching the changeover switch to one side, and the input unit 12 is assumed to store “1” in the flag 23. To do. In addition, it is assumed that an instruction signal for unlocking all doors is input to the input unit 12 by switching the changeover switch to the other side, and the input unit 12 stores “0” in the flag 23.

CPU11は、復調部24にて復調された車載機1からのエリア内確認信号Aが送信され、変調部25にエリア内確認信号Bを送信する。このとき、CPU11は、タイマ27をリセットさせて計時を開始させる。CPU11は、予め定められた時間内(図4・t2)にエリア内確認信号Aが再び車載機1から送信されてくるか否かを判別する。CPU11は、エリア内確認信号Aが予め定められた時間内に送信されてこないと判別すると、インバータ21を動作状態とする。そのため、復調部24にて復調された車載機1からの信号に対して何ら処理が行われることなく、そのまま変調部25にてFSK変調されて送信アンテナ19から送信させることが可能となる。CPU11は、復調部24にて復調された車載機1からの識別信号が送信され、当該識別信号が送信されたと判別すると、インバータ21を不動作状態とする。CPU11は、復調部24にて復調された車載機1からのコード読出信号が送信され、当該コード読出信号が送信されたと判別すると、Flashメモリ13からコード信号を読み出して、変調部25に送信する。CPU11は復調部24にて復調された車載機1からの暗号化個人データ読出信号が送信され、当該個人データ読出信号が送信されたと判別すると、Flashメモリ13から暗号化個人データを読み出して、変調部25に送信する。CPU11は、復調部24にて復調された車載機1からの入力確認信号が送信される。CPU11は、当該入力確認信号に基づいて、このときのフラグ23に記憶されている“1”又は“0”の情報を入力信号として変調部25に送信する。尚、CPU11のこれらの機能は、前述したFlashメモリ13から読み出されたプログラムデータの解読結果に基づいて、CPU11が当該プログラムを実行することによって実現される。CPU11は、Flashメモリ13のアドレスを指定するアドレスカウンタ(不図示)、Flashメモリ13から読み出されるプログラムデータを解読するプログラムロジックアレイ(不図示)、論理演算を行う演算論理ユニット(不図示)、演算データを一時格納するレジスタ(不図示)等を有する。   The CPU 11 transmits the in-area confirmation signal A from the in-vehicle device 1 demodulated by the demodulation unit 24 and transmits the in-area confirmation signal B to the modulation unit 25. At this time, the CPU 11 resets the timer 27 to start timing. The CPU 11 determines whether or not the in-area confirmation signal A is transmitted from the in-vehicle device 1 again within a predetermined time (FIG. 4, t2). When the CPU 11 determines that the in-area confirmation signal A is not transmitted within a predetermined time, the CPU 11 sets the inverter 21 in an operating state. Therefore, the signal from the in-vehicle device 1 demodulated by the demodulator 24 is FSK modulated by the modulator 25 as it is without being processed, and can be transmitted from the transmission antenna 19. When the CPU 11 determines that the identification signal transmitted from the in-vehicle device 1 demodulated by the demodulator 24 is transmitted, the CPU 11 puts the inverter 21 into an inoperative state. When the CPU 11 receives the code read signal from the in-vehicle device 1 demodulated by the demodulator 24 and determines that the code read signal has been transmitted, the CPU 11 reads the code signal from the flash memory 13 and transmits it to the modulator 25. . When the CPU 11 transmits the encrypted personal data read signal from the vehicle-mounted device 1 demodulated by the demodulator 24 and determines that the personal data read signal has been transmitted, the CPU 11 reads the encrypted personal data from the flash memory 13 and modulates it. To the unit 25. The CPU 11 transmits an input confirmation signal from the in-vehicle device 1 demodulated by the demodulator 24. Based on the input confirmation signal, the CPU 11 transmits information of “1” or “0” stored in the flag 23 at this time to the modulation unit 25 as an input signal. Note that these functions of the CPU 11 are realized by the CPU 11 executing the program based on the result of decoding the program data read from the flash memory 13 described above. The CPU 11 includes an address counter (not shown) that specifies an address of the flash memory 13, a program logic array (not shown) that decodes program data read from the flash memory 13, an arithmetic logic unit (not shown) that performs a logical operation, an arithmetic operation It has a register (not shown) for temporarily storing data.

===距離算出システムの動作(リレーアタックが行われない場合)===
図1乃至図5を参照しつつ本発明に係る距離算出システムの動作について説明する。図2、図3は、本発明に係る距離算出システムの動作の一例を示すフローチャートである。図4は、本発明に係る距離算出システムの動作の一例を示すタイミングチャートである。図5は、距離算出用信号の変化を示す図である。尚、図4においては、ハイレベルのとき左欄に記載されている信号が送信されたことを示している。実際においては、車載機1から携帯機2に送信される信号は送信部7にてASK変調された信号であり、携帯機2から車載機1に送信される信号は変調部25にてFSK変調された信号である。また、図4における左欄・車載機1距離算出用信号の1発のハイレベルは便宜上、図5における左欄・距離算出用信号(送信)の波形を示すものとして説明する。更に、図4においては、全て同じ矩形波(例えば、携帯機2コード信号)となっているが、便宜上同じ矩形波で示したに過ぎずこれに限るものではない。例えば、携帯機2コード信号を、ハイレベルである期間に応じたコード情報をもつコード信号としても良い。そうすることによって、より効果的にコード情報を送信することが可能となる。
=== Operation of distance calculation system (when no relay attack is performed) ===
The operation of the distance calculation system according to the present invention will be described with reference to FIGS. 2 and 3 are flowcharts showing an example of the operation of the distance calculation system according to the present invention. FIG. 4 is a timing chart showing an example of the operation of the distance calculation system according to the present invention. FIG. 5 is a diagram illustrating changes in the distance calculation signal. FIG. 4 shows that the signal described in the left column is transmitted when the level is high. In practice, the signal transmitted from the in-vehicle device 1 to the portable device 2 is an ASK-modulated signal in the transmission unit 7, and the signal transmitted from the portable device 2 to the in-vehicle device 1 is FSK modulated in the modulation unit 25. Signal. Further, for the sake of convenience, the description will be made assuming that one high level of the left column / vehicle equipment 1 distance calculation signal in FIG. 4 indicates the waveform of the left column / distance calculation signal (transmission) in FIG. Furthermore, in FIG. 4, all are the same rectangular wave (for example, portable device 2 code signal), but for the sake of convenience, the same rectangular wave is only shown and the present invention is not limited to this. For example, the portable device 2 code signal may be a code signal having code information corresponding to a high level period. By doing so, it becomes possible to transmit code information more effectively.

尚、本実施形態においては、携帯者が自動車のエンジンをストップし、携帯機2を持って自動車を出てドアを閉じた場面から説明する。また、携帯機2のインバータ21は不動作状態であるものとする。   In addition, in this embodiment, it demonstrates from the scene where a carrier stopped the engine of a motor vehicle, took out the motor vehicle with the portable device 2, and closed the door. Further, it is assumed that the inverter 21 of the portable device 2 is in an inoperative state.

自動車内に別途設けられた制御部(不図示)は、自動車のドアが閉じられたことに基づく信号を受信する。制御部は、当該信号に基づいてパッシブキーレスエントリーシステムを開始するための信号をCPU3に送信する。そして、CPU3は、当該パッシブキーレスエントリーシステムを開始するための信号を受信すると、送信部7にエリア内確認信号Aを送信する(S101)。このとき、CPU3はタイマ5をリセットする。リセットされたタイマ5は計時を開始する。そして、CPU3は、受信部8にて復調された携帯機2からのエリア内確認信号Bが、予め定められた時間(t1)内に送信されてくるか否かを判別する(S102)。送信部7は、当該エリア内確認信号Aを125kHzの周波数の搬送波でASK変調する。そして、送信部7からのASK変調されたエリア内確認信号Aは、送信アンテナ9を介して送信される(図4・車載機1エリア内確認信号A)。   A controller (not shown) separately provided in the automobile receives a signal based on the fact that the door of the automobile is closed. A control part transmits the signal for starting a passive keyless entry system to CPU3 based on the said signal. Then, when receiving a signal for starting the passive keyless entry system, the CPU 3 transmits an in-area confirmation signal A to the transmission unit 7 (S101). At this time, the CPU 3 resets the timer 5. The reset timer 5 starts counting time. Then, the CPU 3 determines whether or not the in-area confirmation signal B demodulated by the receiving unit 8 from the portable device 2 is transmitted within a predetermined time (t1) (S102). The transmitter 7 ASK modulates the in-area confirmation signal A with a carrier wave having a frequency of 125 kHz. Then, the ASK-modulated in-area confirmation signal A from the transmission unit 7 is transmitted via the transmission antenna 9 (FIG. 4, in-vehicle device 1 in-area confirmation signal A).

ASK変調されたエリア内確認信号Aを携帯機2の受信アンテナ18が受信すると、復調部24は、ASK変調されたエリア内確認信号Aを復調する。そして、CPU11は、復調部24にて復調されたエリア内確認信号Aが送信されたことを判別すると(S201・YES)、エリア内確認信号Bを変調部25に送信する(S202)。このとき、CPU11はタイマ27をリセットする。リセットされたタイマ27は計時を開始する。そして、CPU11は、復調部24にて復調された車載機1からのエリア内確認信号Aが予め定められた時間(t2)内に再び送信されてくるか否かを判別する(S201)。変調部25は、CPU11からのエリア内確認信号Bを312MHzの周波数の搬送波でFSK変調する。変調部25でFSK変調されたエリア内確認信号Bは、送信アンテナ19を介して送信される(図4・携帯機2エリア内確認信号B)。   When the reception antenna 18 of the portable device 2 receives the ASK-modulated intra-area confirmation signal A, the demodulator 24 demodulates the ASK-modulated intra-area confirmation signal A. When the CPU 11 determines that the intra-area confirmation signal A demodulated by the demodulator 24 is transmitted (S201: YES), the CPU 11 transmits the intra-area confirmation signal B to the modulator 25 (S202). At this time, the CPU 11 resets the timer 27. The reset timer 27 starts counting time. Then, the CPU 11 determines whether or not the in-area confirmation signal A demodulated by the demodulator 24 is transmitted again within a predetermined time (t2) (S201). The modulation unit 25 performs FSK modulation of the in-area confirmation signal B from the CPU 11 with a carrier wave having a frequency of 312 MHz. The in-area confirmation signal B that has been FSK modulated by the modulator 25 is transmitted via the transmission antenna 19 (FIG. 4, portable device 2 in-area confirmation signal B).

FSK変調されたエリア内確認信号Bを車載機1の受信アンテナ10が受信すると、受信部8はFSK変調されたエリア内確認信号Bを復調する。CPU3は、受信部8にて復調された携帯機2からのエリア内確認信号Bが送信されたことを判別すると(S102・YES)、エリア内確認信号Aを再び送信部7に送信する(S101)。   When the reception antenna 10 of the in-vehicle device 1 receives the FSK-modulated in-area confirmation signal B, the receiving unit 8 demodulates the FSK-modulated in-area confirmation signal B. When the CPU 3 determines that the in-area confirmation signal B from the portable device 2 demodulated by the receiving unit 8 has been transmitted (YES in S102), the CPU 3 transmits the in-area confirmation signal A to the transmitting unit 7 again (S101). ).

このように車載機1からのエリア内確認信号Aを携帯機2が受信可能な通信可能範囲に携帯者がいれば、携帯機2からのエリア内確認信号Bを車載機1が受信することが可能となる(図4・エリア内)。そのため車載機1は携帯者が近傍(つまり通信可能範囲内)にいるか否かを判別することが可能となる。   In this way, if there is a carrier in the communicable range where the portable device 2 can receive the in-area confirmation signal A from the in-vehicle device 1, the in-vehicle device 1 may receive the in-area confirmation signal B from the portable device 2. It becomes possible (Fig. 4, in the area). Therefore, the vehicle-mounted device 1 can determine whether or not the carrier is in the vicinity (that is, within the communicable range).

次に、携帯者が、前述した通信可能範囲を出てしまった場合(図4・エリア外)について説明する。   Next, the case where the carrier has left the above-described communicable range (FIG. 4, outside area) will be described.

携帯者が通信可能範囲を出てしまうと、車載機1からのエリア内確認信号Aを携帯機2が受信できなくなり、そのため携帯機2からのエリア内確認信号Bが車載機1に送信されなくなる。CPU3は、エリア内確認信号Aを送信してから予め定められた時間(t1)経過しても携帯機2からのエリア内確認信号Bが送信されてこないと判別すると(S102・NO)、自動車の全てのドアをロックするための指示信号を前述した制御部に送信する(S103。図4・ドア閉)。尚、この場合、CPU3は、複数回(例えば2回)エリア内確認信号Aを送信部7に送信するように設定しても良い(図4参照)。そして、当該複数回のエリア内確認信号Aうちの何れの送信に対しても、携帯機2からエリア内確認信号Bが送信されないとCPU3が判別した場合、自動車の全てのドアをロックするための指示信号を制御部に送信させるようにしても良い。そうすれば、より確実に携帯者が通信可能範囲内にいないことをCPU3が判別することできる。更に、携帯者が一旦は通信可能範囲外に出たが直ぐに通信可能範囲内に戻ってきた場合において、ドアをロックするための処理を行わずに済むことが可能となる。そのため、ドアをアンロックするための処理に要する時間が必要なくなり、ドアがアンロックされるまでの当該処理に要する時間の遅れを解消することが可能となる。次にCPU3は、前述したようにエリア内確認信号Aを送信してから予め定められた時間(t1)経過しても携帯機2からのエリア内確認信号Bが送信されてこないと判別すると(S102・NO)、距離算出用信号(図5・距離算出用信号(送信))を送信部7に送信する(S104)。このとき、CPU3は、カウンタ4をリセットさせ、カウンタ4に当該距離算出用信号の立上りからカウントを開始させる。更に、CPU3は、タイマ5をリセットさせて計時を開始させる。そして、CPU3は、当該距離算出用信号が予め定められた時間(t3)内に携帯機2から返信されてくるか否かを判別する(S105)。送信部7は、当該距離算出用信号を125kHzの周波数の搬送波でASK変調する(図5・ASK)。そして、送信部7にてASK変調された距離算出用信号は、送信アンテナ9を介して送信される(図4・車載機1距離算出用信号)。このときCPU3は、距離算出用信号を送信してから前述した予め定められた時間(t3)内に受信部8にて復調された距離算出用信号が返信されてこないと判別すると、再び距離算出用信号を送信する。また、前述したようにタイマ5をリセットさせて計時を開始させ、カウンタ5をリセットさせてカウントを開始させる。尚、この距離算出用信号は、図5に示す波形(距離算出用信号(送信))に限るものではない。セキュリティーを高めるために、例えばCPU3から送信する都度信号の内容を変えても良いし(つまり距離算出用信号を示す波形が変わる)、一定時間ごとに信号の内容を変えても良い。   If the carrier leaves the communicable range, the portable device 2 cannot receive the in-area confirmation signal A from the in-vehicle device 1, and therefore the in-area confirmation signal B from the portable device 2 is not transmitted to the in-vehicle device 1. . If the CPU 3 determines that the in-area confirmation signal B is not transmitted from the portable device 2 even after a predetermined time (t1) has elapsed since the in-area confirmation signal A is transmitted (NO in S102), the vehicle An instruction signal for locking all the doors is transmitted to the control unit described above (S103, FIG. 4, door closed). In this case, the CPU 3 may be set to transmit the in-area confirmation signal A to the transmission unit 7 a plurality of times (for example, twice) (see FIG. 4). When the CPU 3 determines that the in-area confirmation signal B is not transmitted from the portable device 2 for any of the plurality of in-area confirmation signals A, it locks all the doors of the automobile. The instruction signal may be transmitted to the control unit. If it does so, CPU3 can discriminate | determine that a carrier is not in the communicable range more reliably. Furthermore, when the carrier once goes out of the communicable range but immediately returns to the communicable range, it is possible to eliminate the process for locking the door. Therefore, the time required for the process for unlocking the door is not necessary, and the delay of the time required for the process until the door is unlocked can be eliminated. Next, as described above, the CPU 3 determines that the in-area confirmation signal B from the portable device 2 has not been transmitted even after a predetermined time (t1) has elapsed since the in-area confirmation signal A was transmitted ( (S102, NO), a distance calculation signal (FIG. 5, distance calculation signal (transmission)) is transmitted to the transmitter 7 (S104). At this time, the CPU 3 resets the counter 4 and causes the counter 4 to start counting from the rising edge of the distance calculation signal. Further, the CPU 3 resets the timer 5 to start timing. Then, the CPU 3 determines whether or not the distance calculation signal is returned from the portable device 2 within a predetermined time (t3) (S105). The transmitter 7 ASK-modulates the distance calculation signal with a carrier wave having a frequency of 125 kHz (FIG. 5, ASK). The distance calculation signal ASK-modulated by the transmission unit 7 is transmitted via the transmission antenna 9 (FIG. 4, vehicle-mounted device 1 distance calculation signal). At this time, when the CPU 3 determines that the distance calculation signal demodulated by the receiving unit 8 is not returned within the predetermined time (t3) described above after transmitting the distance calculation signal, the distance calculation is performed again. Send a signal. Further, as described above, the timer 5 is reset to start timing, and the counter 5 is reset to start counting. The distance calculation signal is not limited to the waveform (distance calculation signal (transmission)) shown in FIG. In order to enhance security, for example, the content of the signal may be changed every time the CPU 3 transmits (that is, the waveform indicating the distance calculation signal changes), or the content of the signal may be changed at regular intervals.

このように携帯者が車載機1からのエリア内確認信号Aを受信可能な通信可能範囲から出てしまうと、自動車の全てのドアがロックされることとなる。   As described above, when the user goes out of the communicable range where the in-area confirmation signal A from the in-vehicle device 1 can be received, all the doors of the automobile are locked.

CPU11は、エリア内確認信号Aが予め定められた期間(t2)送信されないと判別すると、インバータ21を動作状態とする(S203。図4・インバータ21)。   When the CPU 11 determines that the in-area confirmation signal A is not transmitted for a predetermined period (t2), the CPU 11 sets the inverter 21 in the operating state (S203, FIG. 4, inverter 21).

次に、携帯者が、通信可能範囲内に戻ってきた場合(図4・右のエリア内)について説明する。   Next, the case where the carrier returns to the communicable range (in the area on the right in FIG. 4) will be described.

携帯者が、通信可能範囲内に戻ってくると、車載機1からのASK変調された距離算出用信号を携帯機2の受信アンテナ18が受信する。復調部24は、ASK変調された距離算出用信号を復調する。このとき復調部24にて復調された車載機1からの距離算出用信号は、インバータ21が動作状態となっているため、そのまま変調部25に送信される(S205)。変調部25は、復調部24からの距離算出用信号を312MHzの周波数の搬送波でFSK変調する(図5・FSK)。変調部25にてFSK変調された距離算出用信号は、送信アンテナ19を介して送信される(図4・携帯機2距離算出用信号)。   When the carrier returns to the communicable range, the receiving antenna 18 of the portable device 2 receives the ASK-modulated distance calculation signal from the in-vehicle device 1. The demodulator 24 demodulates the ASK-modulated distance calculation signal. At this time, the distance calculation signal from the vehicle-mounted device 1 demodulated by the demodulator 24 is transmitted to the modulator 25 as it is because the inverter 21 is in an operating state (S205). The modulation unit 25 performs FSK modulation on the distance calculation signal from the demodulation unit 24 with a carrier wave having a frequency of 312 MHz (FIG. 5, FSK). The distance calculation signal that has been FSK modulated by the modulation unit 25 is transmitted via the transmission antenna 19 (FIG. 4, portable device 2 distance calculation signal).

FSK変調された距離算出用信号を車載機1の受信アンテナ10が受信すると、受信部8はFSK変調された距離算出用信号を復調する(図5・距離算出用信号(受信))。CPU3は、受信部8にて復調された携帯機2からの距離算出用信号が送信されたことを判別すると(S105・YES)、カウンタ4のカウント値を読み出す。そして、当該カウント値に基づいて、車載機1から携帯機2までの距離を算出する(S106)。尚、前述したように車載機1から携帯機2への通信においては、低周波数である125kHzの搬送波が用いられている。また、携帯機2から車載機1への通信においては、高周波である312MHzの搬送波が用いられている。よって携帯機2から車載機1への通信における位相差は、車載機1から携帯機2への通信の際生じる位相差に比べ無視できる程度となる。そのためCPU3から送信部7に送信した距離算出用信号と受信部8にて復調された距離算出用信号とは、125kHzの低周波数を用いたことにより意図的な位相差T1(図5)が生じることとなる。よって、前述したCPU3が読み出した当該カウント値は、当該位相差T1を示していることとなる。そして、CPU3は、Flashメモリ6にテーブルデータとして記憶されている実験からもとめられた当該カウント値に対応する距離を読み出す。よって、CPU3は、当該位相差T1を示す当該カウント値を用いて、車載機1から携帯機2までの距離を算出することが可能となる。そして、CPU3は、携帯機2が車載機1から予め定められた距離(例えば1m)未満にあるか否かを判別する(S108)。尚、本実施形態においては、カウンタ4のカウント値によって、車載機1から携帯機2までの距離が予め定められた距離未満であるか否かを判別しているがこれに限るものではない。例えば、CPU3は、CPU3から送信部7に距離算出用信号を送信させたときにタイマ5を計時させ、受信部8にて復調された携帯機2からの距離算出用信号が送信されたときのタイマ5が計時する時間を読み出す。そして、タイマ5が計時する当該時間を用いて車載機1から携帯機2までの距離が予め定められた距離未満であるか否かを判別することも可能である。また、CPU3による車載機1から携帯機2までの距離の判別は、1回に限るものでもない。例えば、複数回(図4においては3回)車載機1から携帯機2までの距離の判別を行って、全ての判別において当該距離が予め定められた距離未満であると判別した場合、次の処理にCPU3が進むようにしても良い。そうすることによって、より確実に車載機1から携帯機2までの距離を判別することが可能となる。CPU3は、算出した車載機1から携帯機2までの距離が予め定められた距離未満であると判別すると(S108・YES)、送信部7に識別信号を送信する(S109)。送信部7は、当該識別信号を125kHzの周波数の搬送波でASK変調する。そして、送信部7からのASK変調された識別信号は、送信アンテナ9を介して送信される(図4・車載機1識別信号)。   When the receiving antenna 10 of the vehicle-mounted device 1 receives the FSK-modulated distance calculation signal, the receiving unit 8 demodulates the FSK-modulated distance calculation signal (FIG. 5, distance calculation signal (reception)). When the CPU 3 determines that the distance calculation signal from the portable device 2 demodulated by the receiving unit 8 is transmitted (YES in S105), the CPU 3 reads the count value of the counter 4. Based on the count value, the distance from the in-vehicle device 1 to the portable device 2 is calculated (S106). As described above, in communication from the in-vehicle device 1 to the portable device 2, a low-frequency 125 kHz carrier wave is used. In communication from the portable device 2 to the vehicle-mounted device 1, a carrier wave of 312 MHz, which is a high frequency, is used. Therefore, the phase difference in communication from the portable device 2 to the in-vehicle device 1 is negligible compared to the phase difference generated during communication from the in-vehicle device 1 to the portable device 2. Therefore, an intentional phase difference T1 (FIG. 5) is generated between the distance calculation signal transmitted from the CPU 3 to the transmission unit 7 and the distance calculation signal demodulated by the reception unit 8 by using a low frequency of 125 kHz. It will be. Therefore, the count value read by the CPU 3 described above indicates the phase difference T1. Then, the CPU 3 reads the distance corresponding to the count value obtained from the experiment stored as table data in the Flash memory 6. Therefore, the CPU 3 can calculate the distance from the in-vehicle device 1 to the portable device 2 using the count value indicating the phase difference T1. Then, the CPU 3 determines whether or not the portable device 2 is less than a predetermined distance (for example, 1 m) from the in-vehicle device 1 (S108). In the present embodiment, whether or not the distance from the in-vehicle device 1 to the portable device 2 is less than a predetermined distance is determined based on the count value of the counter 4, but is not limited thereto. For example, when the CPU 3 causes the transmission unit 7 to transmit a distance calculation signal from the CPU 3, the timer 5 measures the time, and when the distance calculation signal from the portable device 2 demodulated by the reception unit 8 is transmitted. Read the time counted by the timer 5. It is also possible to determine whether or not the distance from the in-vehicle device 1 to the portable device 2 is less than a predetermined distance using the time measured by the timer 5. Further, the determination of the distance from the in-vehicle device 1 to the portable device 2 by the CPU 3 is not limited to one time. For example, when the distance from the in-vehicle device 1 to the portable device 2 is determined a plurality of times (three times in FIG. 4) and it is determined that the distance is less than a predetermined distance in all the determinations, The CPU 3 may proceed to the process. By doing so, it becomes possible to determine the distance from the in-vehicle device 1 to the portable device 2 more reliably. When the CPU 3 determines that the calculated distance from the in-vehicle device 1 to the portable device 2 is less than a predetermined distance (YES in S108), the CPU 3 transmits an identification signal to the transmission unit 7 (S109). The transmitter 7 ASK modulates the identification signal with a carrier wave having a frequency of 125 kHz. Then, the ASK-modulated identification signal from the transmission unit 7 is transmitted via the transmission antenna 9 (FIG. 4, vehicle-mounted device 1 identification signal).

ASK変調された識別信号を携帯機2の受信アンテナ18が受信すると、復調部24は、ASK変調された識別信号を復調する。CPU11は、復調部24にて復調された車載機1からの識別信号が送信されたことを判別すると(S206・YES)、インバータ21を不動作状態とする(S207。図4・インバータ21)。   When the reception antenna 18 of the portable device 2 receives the ASK-modulated identification signal, the demodulator 24 demodulates the ASK-modulated identification signal. When the CPU 11 determines that the identification signal demodulated by the demodulator 24 is transmitted from the vehicle-mounted device 1 (YES in S206), it makes the inverter 21 inoperative (S207, FIG. 4, inverter 21).

次に、車載機1のCPU3は、送信部7にコード読出信号を送信する(S110)。そして、CPU3は、受信部8にて復調された携帯機2からのコード信号が送信されてくるか否かを判別する(S111)。送信部7は、当該コード読出信号を125kHzの周波数の搬送波でASK変調する。そして、送信部7からのASK変調されたコード読出信号は、送信アンテナ9を介して送信される(図4・車載機1コード読出信号)。   Next, the CPU 3 of the in-vehicle device 1 transmits a code reading signal to the transmission unit 7 (S110). Then, the CPU 3 determines whether or not the code signal from the portable device 2 demodulated by the receiving unit 8 is transmitted (S111). The transmitter 7 ASK modulates the code read signal with a carrier wave having a frequency of 125 kHz. Then, the ASK-modulated code read signal from the transmission unit 7 is transmitted through the transmission antenna 9 (FIG. 4, onboard unit 1 code read signal).

ASK変調されたコード読出信号を携帯機2の受信アンテナ18が受信すると、復調部24は、ASK変調されたコード読出信号を復調する。CPU11は、復調部24にて復調された車載機1からのコード読出信号が送信されたことを判別すると(S208・YES)、Flashメモリ13からコード信号を読み出す。そして、CPU11は、変調部25に当該コード信号を送信する(S209)。変調部25は、CPU11からのコード信号を312MHzの周波数の搬送波でFSK変調する。変調部25にてFSK変調されたコード信号は、送信アンテナ19を介して送信される(図4・携帯機2コード信号)。   When the receiving antenna 18 of the portable device 2 receives the ASK modulated code read signal, the demodulator 24 demodulates the ASK modulated code read signal. When determining that the code read signal from the vehicle-mounted device 1 demodulated by the demodulator 24 is transmitted (YES in S208), the CPU 11 reads the code signal from the flash memory 13. Then, the CPU 11 transmits the code signal to the modulation unit 25 (S209). The modulation unit 25 performs FSK modulation of the code signal from the CPU 11 with a carrier wave having a frequency of 312 MHz. The code signal subjected to FSK modulation by the modulation unit 25 is transmitted via the transmission antenna 19 (FIG. 4, portable device 2 code signal).

FSK変調されたコード信号を車載機1の受信アンテナ10が受信すると、受信部8はFSK変調されたコード信号を復調する。CPU3は、受信部8にて復調された携帯機2からのコード信号が送信されたことを判別すると(S111・YES)、携帯機2からのコード信号と照合すべくFlashメモリ6からコード信号を読み出す。そして、CPU3は、携帯機2からのコード信号とFlashメモリ6からのコード信号が所定の関係を有しているか否かを判別する(S112)。そして、CPU3は、携帯機2からのコード信号とFlashメモリ6からのコード信号が所定の関係を有していると判別すると(S112・YES)、暗号化個人データ読出信号を送信部7に送信する(S113)。そして、CPU3は、受信部8にて復調された携帯機2からの暗号化個人データが送信されてくるか否かを判別する(S114)。送信部7は、当該暗号化個人データ読出信号を125kHzの周波数の搬送波でASK変調する。そして、送信部7からのASK変調された暗号化個人データ読出信号は、送信アンテナ9を介して送信される(図4・車載機1暗号化個人データ読出信号)。   When the receiving antenna 10 of the vehicle-mounted device 1 receives the FSK modulated code signal, the receiving unit 8 demodulates the FSK modulated code signal. When the CPU 3 determines that the code signal from the portable device 2 demodulated by the receiving unit 8 has been transmitted (YES in S111), the CPU 3 sends the code signal from the flash memory 6 to be compared with the code signal from the portable device 2. read out. Then, the CPU 3 determines whether or not the code signal from the portable device 2 and the code signal from the Flash memory 6 have a predetermined relationship (S112). When the CPU 3 determines that the code signal from the portable device 2 and the code signal from the flash memory 6 have a predetermined relationship (YES in S112), the CPU 3 transmits the encrypted personal data read signal to the transmission unit 7. (S113). Then, the CPU 3 determines whether or not the encrypted personal data demodulated by the receiving unit 8 is transmitted from the portable device 2 (S114). The transmitter 7 ASK modulates the encrypted personal data read signal with a carrier wave having a frequency of 125 kHz. Then, the ASK-modulated encrypted personal data read signal from the transmitter 7 is transmitted via the transmission antenna 9 (FIG. 4, on-vehicle device 1 encrypted personal data read signal).

ASK変調された暗号化個人データ読出信号を携帯機2の受信アンテナ18が受信すると、復調部24は、ASK変調された暗号化個人データ読出信号を復調する。CPU11は、復調部24にて復調された暗号化個人データ読出信号が送信されたことを判別すると(S210・YES)、Flashメモリ13から暗号化個人データを読み出す。そして、CPU11は、変調部25に当該暗号化個人データを送信する(S211)。変調部25は、CPU11からの暗号化個人データを312MHzの周波数の搬送波でFSK変調する。変調部25にてFSK変調された暗号化個人データは、送信アンテナ19を介して送信される(図4・携帯機2暗号化個人データ)。   When the receiving antenna 18 of the portable device 2 receives the ASK-modulated encrypted personal data read signal, the demodulator 24 demodulates the ASK-modulated encrypted personal data read signal. When the CPU 11 determines that the encrypted personal data read signal demodulated by the demodulator 24 has been transmitted (YES in S210), the CPU 11 reads the encrypted personal data from the Flash memory 13. Then, the CPU 11 transmits the encrypted personal data to the modulation unit 25 (S211). The modulation unit 25 performs FSK modulation of the encrypted personal data from the CPU 11 with a carrier wave having a frequency of 312 MHz. The encrypted personal data that has been FSK modulated by the modulator 25 is transmitted via the transmission antenna 19 (FIG. 4, portable device 2 encrypted personal data).

FSK変調された暗号化個人データを車載機1の受信アンテナ10が受信すると、受信部8はFSK変調された暗号化個人データを復調する。CPU3は、受信部8にて復調された携帯機2からの暗号化個人データが送信されたことを判別すると(S114・YES)、Flashメモリ6に記憶されている暗号化解読プログラムに基づいて、当該暗号化個人データの解読を行う(S115)。そして、CPU3は、携帯機2からの暗号化個人データの解読を終えると(以下、解読後の暗号化個人データを解読後個人データという)、Flashメモリ6に記憶されている個人データを読み出す。CPU3は、解読後個人データとFlashメモリ6からの個人データとが一致しているか否か判別する(S116)。そして、CPU3は、解読後個人データとFlashメモリ6からの個人データが一致すると判別すると(S116・YES)、入力確認信号を送信部7に送信する(S117)。そして、CPU3は、受信部8にて復調された携帯機2からの入力信号が送信されてくるか否かを判別する(S118)。送信部7は、当該入力確認信号を125kHzの周波数の搬送波でASK変調する。そして、送信部7からのASK変調された入力確認信号は、送信アンテナ9を介して送信される(図4・車載機1入力確認信号)。   When the receiving antenna 10 of the vehicle-mounted device 1 receives the FSK-modulated encrypted personal data, the receiving unit 8 demodulates the FSK-modulated encrypted personal data. When the CPU 3 determines that the encrypted personal data demodulated by the receiving unit 8 is transmitted from the portable device 2 (YES in S114), the CPU 3 determines, based on the decryption program stored in the Flash memory 6, The encrypted personal data is decrypted (S115). When the decryption of the encrypted personal data from the portable device 2 is completed (hereinafter, the decrypted encrypted personal data is referred to as the decrypted personal data), the CPU 3 reads the personal data stored in the flash memory 6. The CPU 3 determines whether or not the decrypted personal data matches the personal data from the Flash memory 6 (S116). If the CPU 3 determines that the decrypted personal data matches the personal data from the Flash memory 6 (YES in S116), the CPU 3 transmits an input confirmation signal to the transmitter 7 (S117). Then, the CPU 3 determines whether or not the input signal from the portable device 2 demodulated by the receiving unit 8 is transmitted (S118). The transmitter 7 ASK modulates the input confirmation signal with a carrier wave having a frequency of 125 kHz. Then, the ASK-modulated input confirmation signal from the transmission unit 7 is transmitted via the transmission antenna 9 (FIG. 4, in-vehicle device 1 input confirmation signal).

ASK変調された入力確認信号を携帯機2の受信アンテナ18が受信すると、復調部24は、ASK変調された入力確認信号を復調する。CPU11は、復調部24にて復調された入力確認信号が送信されたことを判別すると(S212・YES)、フラグ23に記憶されている情報を読み出す。このときのフラグ23に記憶されている情報とは、前述したように携帯者が運転席側のドアをアンロックしたい場合、携帯者が切替スイッチ(不図示)を一方側に切り替えることによって指示信号が入力部12に入力され、入力部12が当該指示信号に基づいてフラグ23に記憶した情報“1”である。或いは、前述したように携帯者が自動車の全てのドアをアンロックしたい場合、携帯者が切替スイッチ(不図示)を他方側に切り替えることによって指示信号が入力部12に入力され、入力部12が当該指示信号に基づいてフラグ23に記憶した情報“0”である。本実施形態では、フラグ23には例えば“1”が記憶されているものとして以下説明する。CPU11は、フラグ23に記憶されている“1”に応じた入力信号を変調部25に送信する(S213)。変調部25は、CPU11からの入力信号を312MHzの周波数の搬送波でFSK変調する。変調部25でFSK変調された入力信号は、送信アンテナ19を介して送信される(図4・携帯機2入力信号)。   When the receiving antenna 18 of the portable device 2 receives the ASK modulated input confirmation signal, the demodulator 24 demodulates the ASK modulated input confirmation signal. When the CPU 11 determines that the input confirmation signal demodulated by the demodulator 24 has been transmitted (YES in S212), the CPU 11 reads the information stored in the flag 23. The information stored in the flag 23 at this time is an instruction signal by switching the changeover switch (not shown) to one side when the carrier wants to unlock the door on the driver's seat as described above. Is input to the input unit 12, and the information “1” stored in the flag 23 by the input unit 12 based on the instruction signal. Alternatively, as described above, when the carrier wants to unlock all the doors of the automobile, the carrier switches the changeover switch (not shown) to the other side so that the instruction signal is inputted to the input unit 12 and the input unit 12 Information “0” stored in the flag 23 based on the instruction signal. In the present embodiment, the following description will be made assuming that “1” is stored in the flag 23, for example. The CPU 11 transmits an input signal corresponding to “1” stored in the flag 23 to the modulation unit 25 (S213). The modulation unit 25 performs FSK modulation of the input signal from the CPU 11 with a carrier wave having a frequency of 312 MHz. The input signal that has been FSK modulated by the modulation unit 25 is transmitted via the transmission antenna 19 (FIG. 4, portable device 2 input signal).

FSK変調された入力信号を車載機1の受信アンテナ10が受信すると、受信部8はFSK変調された入力信号を復調する。CPU3は、受信部8にて復調された携帯機2からの入力信号が送信されたことを判別すると(S118・YES)、当該入力信号が“1”に応じた入力信号であるか否かを判別する(S119)。そして、CPU3は、当該入力信号が“1”に応じた入力信号であることを判別すると(S119・YES)、自動車の運転席側のドアのみをアンロックすべく、前述した制御部(不図示)に指示信号を送信する(S120)。また、CPU3は、入力信号が“1”に応じた入力信号でないと判別すると(S119・NO)、自動車の全てのドアをアンロックすべく前述した制御部に指示信号を送信する(S121)。   When the receiving antenna 10 of the vehicle-mounted device 1 receives the FSK-modulated input signal, the receiving unit 8 demodulates the FSK-modulated input signal. When the CPU 3 determines that the input signal from the portable device 2 demodulated by the receiving unit 8 has been transmitted (YES in S118), the CPU 3 determines whether or not the input signal is an input signal corresponding to “1”. It discriminate | determines (S119). When the CPU 3 determines that the input signal is an input signal corresponding to “1” (YES in S119), the control unit (not shown) is used to unlock only the door on the driver's side of the automobile. ) Is transmitted (S120). If the CPU 3 determines that the input signal is not an input signal corresponding to “1” (NO in S119), the CPU 3 transmits an instruction signal to the control unit described above to unlock all the doors of the automobile (S121).

このように、通信可能範囲内に携帯機2があり、且つ、CPU3が送信部7に送信する距離算出用信号と受信部8にて復調された携帯機2からの距離算出用信号から、車載機1から携帯機2までの距離を算出し、当該距離が予め定められた距離未満であると判別すると、制御部よって自動車の全てのドア又は運転席のドアがアンロックされることとなる。   In this way, the portable device 2 is within the communicable range, and the distance calculation signal transmitted from the CPU 3 to the transmission unit 7 and the distance calculation signal from the portable device 2 demodulated by the reception unit 8 are mounted on the vehicle. When the distance from the device 1 to the portable device 2 is calculated and it is determined that the distance is less than a predetermined distance, all the doors of the automobile or the doors of the driver's seat are unlocked by the control unit.

===距離算出システムの動作(リレーアタックが行われる場合)===
図1乃至図3、図6、図7を参照しつつ前述したリレーアタックが行われた場合における、本発明に係る距離算出システムの動作について説明する。図6は、本発明に係る距離算出システムの動作の一例を示すタイミングチャートである。図7は、距離算出用信号の変化を示す図である。尚、図6は前述した図4と同様に便宜上、ハイレベルのとき左欄に記載されている信号が送信されたことを示している。実際においては、車載機1から携帯機2に送信される信号は送信部7にてASK変調された信号であり、携帯機2から車載機1に送信される信号は変調部25にてFSK変調された信号である。また、図6における左欄・車載機1距離算出用信号の1発のハイレベルは便宜上、図7における左欄・距離算出用信号(送信)の波形を示すものとして説明する。尚、本実施形態においても、携帯者が自動車のエンジンをストップし、携帯機2を持って自動車を出てドアを閉じた場面から説明する。また、携帯機2のインバータ21は不動作状態であるものとする。
=== Operation of distance calculation system (when relay attack is performed) ===
The operation of the distance calculation system according to the present invention when the above-described relay attack is performed will be described with reference to FIGS. 1 to 3, 6, and 7. FIG. 6 is a timing chart showing an example of the operation of the distance calculation system according to the present invention. FIG. 7 is a diagram illustrating changes in the distance calculation signal. Note that FIG. 6 shows that the signal described in the left column is transmitted when the level is high, for convenience, as in FIG. 4 described above. In practice, the signal transmitted from the in-vehicle device 1 to the portable device 2 is an ASK-modulated signal in the transmission unit 7, and the signal transmitted from the portable device 2 to the in-vehicle device 1 is FSK modulated in the modulation unit 25. Signal. Further, for the sake of convenience, the description of the left column / in-vehicle device 1 distance calculation signal high level in FIG. 6 indicates the waveform of the left column / distance calculation signal (transmission) in FIG. In the present embodiment, the explanation will be made from the scene in which the user stops the engine of the automobile, leaves the automobile with the portable device 2 and closes the door. Further, it is assumed that the inverter 21 of the portable device 2 is in an inoperative state.

更に、本実施形態は、車載機1の通信圏内にいる中継機A(不図示)の所持者(以下、中継者Xという)と、携帯機2の通信圏内に前述した中継機Aと通信可能な中継機B(不図示)の所持者(以下、中継者Yという)によって、リレーアタックが行われる場合について説明する。   Furthermore, this embodiment can communicate with the owner (hereinafter referred to as “relayer X”) of the relay device A (not shown) in the communication range of the in-vehicle device 1 and the above-described relay device A in the communication range of the portable device 2. A case where a relay attack is performed by the owner (hereinafter referred to as a relay person Y) of the relay machine B (not shown) will be described.

携帯者が、通信可能範囲内にいるときは、前述したリレーアタックがない場合と同様である。   When the carrier is within the communicable range, it is the same as the case where there is no relay attack described above.

携帯者が通信可能範囲を出てしまうと、車載機1からのエリア内確認信号Aを携帯機2が受信できなくなり、そのため携帯機2からのエリア内確認信号Bが車載機1に送信されなくなる。そのためCPU3は、エリア内確認信号Aを送信してから予め定められた時間(t1)経過しても携帯機2からのエリア内確認信号Bが送信されてこないと判別する(S102・NO)。そして、CPU3は、自動車の全てのドアをロックするための指示信号を、自動車内に別途設けられた制御部(不図示)に送信する(S103。図6・ドア閉)。尚、前述したリレーアタックがない場合おいて述べたように、CPU3は複数回(例えば2回)エリア内確認信号Aを送信部7に送信するように設定しても良い(図6参照)。CPU3は、前述した指示信号を制御部に送信するとともに、距離算出用信号(図7・距離算出用信号(送信))を送信部7に送信する。このとき、CPU3は、カウンタ4をリセットさせ、カウンタ4に当該距離算出用信号の立上りからカウントを開始させる。更に、CPU3は、タイマ5をリセットさせて計時を開始させる。そして、CPU3は、当該距離算出用信号が予め定められた時間(t3)内に携帯機2から返信されてくるか否かを判別する(S105)。送信部7は、当該距離算出用信号を125kHzの周波数の搬送波でASK変調する(図7・ASK(1))。そして、送信部7にてASK変調された距離算出用信号ASK(1)は、送信アンテナ9を介して送信される(図6・車載機1距離算出用信号)。このときCPU3は、距離算出用信号を送信してから前述した予め定められた時間(t3)内に受信部8にて復調された距離算出用信号が返信されてこないと判別すると、再び距離算出用信号を送信する。また、前述したようにタイマ5をリセットさせて計時を開始させ、カウンタ5をリセットさせてカウントを開始させる。   If the carrier leaves the communicable range, the portable device 2 cannot receive the in-area confirmation signal A from the in-vehicle device 1, and therefore the in-area confirmation signal B from the portable device 2 is not transmitted to the in-vehicle device 1. . Therefore, the CPU 3 determines that the in-area confirmation signal B from the portable device 2 is not transmitted even after a predetermined time (t1) has elapsed since the in-area confirmation signal A was transmitted (NO in S102). And CPU3 transmits the instruction | indication signal for locking all the doors of a motor vehicle to the control part (not shown) separately provided in the motor vehicle (S103. FIG. 6, door closing). Note that, as described in the case where there is no relay attack, the CPU 3 may be set to transmit the in-area confirmation signal A to the transmitter 7 a plurality of times (for example, twice) (see FIG. 6). The CPU 3 transmits the above-described instruction signal to the control unit and transmits a distance calculation signal (FIG. 7, distance calculation signal (transmission)) to the transmission unit 7. At this time, the CPU 3 resets the counter 4 and causes the counter 4 to start counting from the rising edge of the distance calculation signal. Further, the CPU 3 resets the timer 5 to start timing. Then, the CPU 3 determines whether or not the distance calculation signal is returned from the portable device 2 within a predetermined time (t3) (S105). The transmitter 7 ASK-modulates the distance calculation signal with a carrier wave having a frequency of 125 kHz (FIG. 7, ASK (1)). Then, the distance calculation signal ASK (1) ASK-modulated by the transmission unit 7 is transmitted via the transmission antenna 9 (FIG. 6, vehicle-mounted device 1 distance calculation signal). At this time, when the CPU 3 determines that the distance calculation signal demodulated by the receiving unit 8 is not returned within the predetermined time (t3) described above after transmitting the distance calculation signal, the distance calculation is performed again. Send a signal. Further, as described above, the timer 5 is reset to start timing, and the counter 5 is reset to start counting.

このように携帯者が車載機1からのエリア内確認信号Aを受信可能な通信可能範囲から出てしまうと、自動車の全てのドアがロックされることとなる。   As described above, when the user goes out of the communicable range where the in-area confirmation signal A from the in-vehicle device 1 can be received, all the doors of the automobile are locked.

CPU11は、エリア内確認信号Aが予め定められた期間(t2)送信されないと判別すると、インバータ21を動作状態とする(S203。図6・インバータ21)。   When the CPU 11 determines that the in-area confirmation signal A is not transmitted for a predetermined period (t2), the CPU 11 sets the inverter 21 in an operating state (S203, FIG. 6, inverter 21).

例えば携帯者が通信可能範囲を出て、自動車を視認できない距離まで離れたとき、中継者Xが自動車の近くに行き、中継機Aを車載機1の通信圏内に入るようにする。また、中継者Yが携帯者の近くに行き中継機Bを携帯機2の通信圏内に入るようにして、当該自動車の盗難を企むとする(リレーアタックが行われる)。   For example, when the carrier leaves the communicable range and moves away to a distance where the vehicle cannot be visually recognized, the relay person X goes near the vehicle so that the relay device A enters the communication range of the in-vehicle device 1. Further, it is assumed that the relay person Y approaches the mobile phone person and tries to steal the car by causing the relay machine B to enter the communication range of the mobile device 2 (relay attack is performed).

車載機1の通信圏内にある中継機Aは、車載機1からの距離算出用信号を受信すると、当該距離算出用信号を検波して増幅する(図7・ASK(2))。そして、中継機Aは、距離算出用信号ASK(2)を送信する。このとき中継機Aから送信された距離算出用信号ASK(2)の通信距離は、車載機1からの距離算出用信号ASK(1)の通常通信距離に比べ、中継機Aにて増幅されているため、より遠距離までの通信が可能となっている。尚、このときの距離算出用信号ASK(2)の通信距離は、中継機Bが受信可能な距離であるものとして以下説明する。   When receiving the distance calculation signal from the in-vehicle device 1, the repeater A within the communication range of the in-vehicle device 1 detects and amplifies the distance calculation signal (FIG. 7, ASK (2)). Then, the relay A transmits a distance calculation signal ASK (2). At this time, the communication distance of the distance calculation signal ASK (2) transmitted from the repeater A is amplified by the repeater A compared to the normal communication distance of the distance calculation signal ASK (1) from the in-vehicle device 1. Therefore, communication over a longer distance is possible. Note that the communication distance of the distance calculation signal ASK (2) at this time will be described below assuming that it is a distance that the repeater B can receive.

中継機Bは、中継機Aからの距離算出用信号ASK(2)を受信すると、当該距離算出用信号ASK(2)を検波して、例えば車載機1が送信した距離算出用信号のレベルまで減衰する。そして、中継機Bは、減衰した距離算出用信号ASK(3)を送信する。   When the repeater B receives the distance calculation signal ASK (2) from the repeater A, the repeater B detects the distance calculation signal ASK (2), for example, up to the level of the distance calculation signal transmitted by the in-vehicle device 1. Attenuates. Then, the repeater B transmits the attenuated distance calculation signal ASK (3).

このとき、前述したように中継者Yが携帯者の近くにいるため、携帯機2の通信圏内に中継機Bがあることになり、そのため受信アンテナ18が距離算出用信号ASK(3)を受信する。復調部24は、距離算出用信号ASK(3)を復調する。このとき復調部24にて復調された中継機Bからの距離算出用信号は、インバータ21が動作状態となっているため、そのまま変調部25に送信される(S205)。変調部25は、復調部24からの距離算出用信号を312MHzの周波数の搬送波でFSK変調する(図5・FSK(1))。変調部25にてFSK変調された距離算出用信号FSK(1)は、送信アンテナ19を介して送信される(図6・携帯機2距離算出用信号)。   At this time, since the repeater Y is near the carrier as described above, the repeater B is in the communication range of the portable device 2, so that the receiving antenna 18 receives the distance calculation signal ASK (3). To do. The demodulator 24 demodulates the distance calculation signal ASK (3). At this time, the distance calculation signal from the repeater B demodulated by the demodulator 24 is transmitted to the modulator 25 as it is because the inverter 21 is in an operating state (S205). The modulation unit 25 performs FSK modulation of the distance calculation signal from the demodulation unit 24 with a carrier wave having a frequency of 312 MHz (FIG. 5, FSK (1)). The distance calculation signal FSK (1) FSK-modulated by the modulation unit 25 is transmitted through the transmission antenna 19 (FIG. 6, portable device 2 distance calculation signal).

そして、前述したように携帯機2の通信圏内に中継機2があるため、FSK変調された携帯機2からの距離算出用信号FSK(1)を中継機Bが受信する。中継機BはFSK変調された距離算出用信号FSK(1)を検波して増幅する(図7・FSK(2))。そして、中継機Bは、距離算出用信号FSK(2)を送信する。このとき中継機Bから送信された距離算出用信号FSK(2)の通信距離は、携帯機2からの距離算出用信号FSK(1)の通常通信距離に比べ、中継機Bにて増幅されているため、より遠距離までの通信が可能となっている。尚、このときの距離算出用信号FSK(2)の通信距離は、中継機Aが受信可能な距離であるものとして以下説明する。   Since the repeater 2 is within the communication range of the portable device 2 as described above, the repeater B receives the FSK-modulated distance calculation signal FSK (1) from the portable device 2. The repeater B detects and amplifies the FSK-modulated distance calculation signal FSK (1) (FIG. 7, FSK (2)). Then, the relay station B transmits a distance calculation signal FSK (2). At this time, the communication distance of the distance calculation signal FSK (2) transmitted from the repeater B is amplified by the repeater B compared to the normal communication distance of the distance calculation signal FSK (1) from the portable device 2. Therefore, communication over a longer distance is possible. Note that the communication distance of the distance calculation signal FSK (2) at this time will be described below assuming that it is a distance that the repeater A can receive.

中継機Aは、中継機Bからの距離算出用信号FSK(2)を受信すると、当該距離算出用信号FSK(2)を検波して、例えば携帯機2が送信した距離算出用信号のレベルまで減衰する。そして、中継機Aは、減衰した距離算出用信号FSK(3)を送信する。   When the relay device A receives the distance calculation signal FSK (2) from the relay device B, the relay device A detects the distance calculation signal FSK (2), for example, to the level of the distance calculation signal transmitted by the portable device 2. Attenuates. Then, the repeater A transmits the attenuated distance calculation signal FSK (3).

このとき、前述したように中継者Xが自動車の近くにいるため、車載機1の通信圏内に中継機Aがあることになり、そのため受信アンテナ10が距離算出用信号FSK(3)を受信する。受信部8は、距離算出用信号FSK(3)を復調する(図7・距離算出用信号(受信))。CPU3は、受信部8にて復調された距離算出用信号が送信されたことを判別すると(S105・YES)、カウンタ4のカウント値を読み出す。そして、当該カウント値に基づいて、車載機1から携帯機2までの距離を算出する(S106)。   At this time, since the relay person X is near the vehicle as described above, the relay apparatus A is in the communication range of the in-vehicle apparatus 1, and therefore the receiving antenna 10 receives the distance calculation signal FSK (3). . The receiving unit 8 demodulates the distance calculation signal FSK (3) (FIG. 7, distance calculation signal (reception)). When the CPU 3 determines that the distance calculation signal demodulated by the receiving unit 8 has been transmitted (YES in S105), the CPU 3 reads the count value of the counter 4. Based on the count value, the distance from the in-vehicle device 1 to the portable device 2 is calculated (S106).

このときのCPU3による車載機1から携帯機2までの距離の算出方法については、前述したリレーアタックがない場合と同様である。しかしながら、前述したように中継機Aは車載機1から送信された距離算出用信号ASK(1)を増幅して距離算出用信号ASK(2)を送信している。このとき、中継機Aは距離算出用信号ASK(1)を増幅するために、距離算出用信号ASK(1)を一旦検波してから増幅を行わなければならない。さらに、前述したように車載機1から携帯機2への通信においては、125kHzの低周波数の搬送波でASK変調して通信を行っている。そのため距離算出用信号ASK(1)の1周期は、携帯機2から送信される距離算出用信号FSK(1)と比べて長くなっている。つまり、中継機Aは1周期が長い距離算出用信号ASK(1)を一旦検波してから増幅するため、距離算出用信号ASK(1)と距離算出用信号ASK(2)には位相差T2が生じることとなる。また、中継機2における距離算出用信号ASK(2)の距離算出用信号ASK(3)への減衰においても、前述した理由による位相差T3が生じることとなる。つまり、CPU3が送信部7に送信した距離算出用信号(送信)と、受信部8にて復調された距離算出用信号(受信)との位相差はT4(T2+T3)となる。そして、CPU3が読み出したカウンタ4のカウント値は、当該位相差T4を示していることとなる。当該位相差T4を示す当該カウント値を用いて、CPU3は、車載機1から携帯機2までの距離を算出することとなる。このときのCPU3が車載機1から携帯機2までの距離を算出するために用いる位相差T4を示すカウント値は、中継機A、Bが介在しないリレーアタックがない場合の位相差T1(図5)を示すカウント値に比べ多い値となっている。つまり、CPU3が位相差T4を示すカウント値に基づいて算出した車載機1から携帯機2までの距離は、位相差T1を示すカウント値に基づいて算出した距離に比べ長い距離となる。   The calculation method of the distance from the vehicle-mounted device 1 to the portable device 2 by the CPU 3 at this time is the same as the case where there is no relay attack described above. However, as described above, the repeater A amplifies the distance calculation signal ASK (1) transmitted from the in-vehicle device 1 and transmits the distance calculation signal ASK (2). At this time, in order to amplify the distance calculation signal ASK (1), the repeater A must first detect the distance calculation signal ASK (1) and then perform amplification. Furthermore, as described above, in communication from the in-vehicle device 1 to the portable device 2, communication is performed by ASK modulation with a low-frequency carrier of 125 kHz. Therefore, one cycle of the distance calculation signal ASK (1) is longer than the distance calculation signal FSK (1) transmitted from the portable device 2. In other words, since the repeater A detects and amplifies the distance calculation signal ASK (1) having a long cycle once, the phase difference T2 between the distance calculation signal ASK (1) and the distance calculation signal ASK (2). Will occur. Further, in the attenuation of the distance calculation signal ASK (2) to the distance calculation signal ASK (3) in the repeater 2, the phase difference T3 due to the above-described reason also occurs. That is, the phase difference between the distance calculation signal (transmission) transmitted from the CPU 3 to the transmission unit 7 and the distance calculation signal (reception) demodulated by the reception unit 8 is T4 (T2 + T3). The count value of the counter 4 read by the CPU 3 indicates the phase difference T4. Using the count value indicating the phase difference T4, the CPU 3 calculates the distance from the in-vehicle device 1 to the portable device 2. At this time, the count value indicating the phase difference T4 used by the CPU 3 to calculate the distance from the in-vehicle device 1 to the portable device 2 is the phase difference T1 when there is no relay attack in which the relay devices A and B are not interposed (FIG. 5). ) Is larger than the count value indicating). That is, the distance from the in-vehicle device 1 to the portable device 2 calculated based on the count value indicating the phase difference T4 by the CPU 3 is longer than the distance calculated based on the count value indicating the phase difference T1.

そして、CPU3は、算出した距離に基づいて携帯機2が車載機1から予め定められた距離未満にあるか否かを判別する(S108)。しかし、CPU3が算出した距離は、前述したようにリレーアタックがない場合において算出した距離よりも長い距離となっているため、CPU3は、予め定められた距離未満にはないと判別する(S108・NO)。そのとき、CPU3は、タイマ5の計時が所定時間(t4)に達しているか否かを判別する(S122)。   Then, the CPU 3 determines whether or not the portable device 2 is less than a predetermined distance from the in-vehicle device 1 based on the calculated distance (S108). However, since the distance calculated by the CPU 3 is longer than the distance calculated when there is no relay attack as described above, the CPU 3 determines that the distance is not less than a predetermined distance (S108 • NO). At that time, the CPU 3 determines whether or not the time measured by the timer 5 has reached a predetermined time (t4) (S122).

CPU3は、所定時間(t4)達していないと判別した場合(S122・NO)、再び距離算出用信号を送信部7に送信する(図7・距離算出用信号(送信)右側)。このとき、CPU3は、カウンタ4をリセットさせ、カウンタ4に当該距離算出用信号の立上りからカウントを開始させる。尚、CPU3が再び距離算出用信号を送信部7に送信しているのは、CPU3による車載機1から携帯機2までの距離の算出をより確実にするためである。そして、CPU3は、予め定められた距離未満であると判別することなく(S108・NO)所定時間(t4)が達したと判別すると(S122・YES)、携帯機2との通信をストップする(S123)。尚、本実施形態においては、CPU3が予め定められた距離未満でないでと判別した場合、携帯機2との通信をストップしているがこれに限るものではない。例えば、携帯機2に警報を発するための警報部(不図示)を設ける。そして、CPU3は、予め定められた距離未満でないと判別した場合、送信部7に当該警報部が警報を発するための警報信号を送信する。そして、中継機A、Bを介して携帯機2に送信された当該警報信号に基づいて、警報部が警報を発するようにしても良い。そうすれば、携帯者は中継者X、Yが介在していることを知ることができ、セキュリティー面を向上させることが可能となる。   When it is determined that the predetermined time (t4) has not been reached (S122, NO), the CPU 3 transmits the distance calculation signal to the transmission unit 7 again (FIG. 7, right side of the distance calculation signal (transmission)). At this time, the CPU 3 resets the counter 4 and causes the counter 4 to start counting from the rising edge of the distance calculation signal. The reason why the CPU 3 transmits the distance calculation signal to the transmission unit 7 again is to make the calculation of the distance from the in-vehicle device 1 to the portable device 2 by the CPU 3 more reliable. If the CPU 3 determines that the predetermined time (t4) has been reached without determining that the distance is less than the predetermined distance (NO at S108), the CPU 3 stops communication with the portable device 2 (YES at S122). S123). In the present embodiment, when the CPU 3 determines that the distance is not less than a predetermined distance, the communication with the portable device 2 is stopped, but the present invention is not limited to this. For example, an alarm unit (not shown) for issuing an alarm to the portable device 2 is provided. When the CPU 3 determines that the distance is not less than the predetermined distance, the CPU 3 transmits an alarm signal for the alarm unit to issue an alarm to the transmission unit 7. And based on the said warning signal transmitted to the portable device 2 via the relay machines A and B, you may make it an alarm part emit a warning. By doing so, the carrier can know that the relayers X and Y are present, and the security can be improved.

このように、リレーアタックが行われた場合、車載機1から携帯機2への通信において前述したように中継機A、中継機Bが介在することによって距離算出用信号の位相差が大きくなる。そのため、CPU3は携帯機2が車載機1から予め定められた距離未満にはないと判別し、また所定時間(t4)が達すると携帯機2との通信をストップすることとなる。よって、中継者X、Yのリレーアタックによって自動車のドアがアンロックされず、自動車の盗難を防止することが可能となる。   As described above, when relay attack is performed, the phase difference of the distance calculation signal is increased by the relay A and the relay B being interposed in the communication from the in-vehicle device 1 to the portable device 2 as described above. For this reason, the CPU 3 determines that the portable device 2 is not less than a predetermined distance from the in-vehicle device 1, and stops communication with the portable device 2 when a predetermined time (t4) is reached. Therefore, the car door is not unlocked by the relay attack of the relay persons X and Y, and the car can be prevented from being stolen.

尚、携帯者が再び通信可能範囲に戻ってきても、前述したように車載機1は携帯機2との通信をストップしているためドアはアンロックされない。この場合、携帯者はキーを鍵穴に差し込むことによりドアをアンロックする。その際、制御部(不図示)は、キーが鍵穴に差し込まれたことによりドアがアンロックされたことに基づく信号を受信する。制御部は、当該信号に基づいて、車載機1が携帯機2との通信を開始するための通信開始信号をCPU3に送信する。CPU3は、通信開始信号を受信すると(S124・YES)、再び携帯機2との通信を開始する。   Even if the carrier returns to the communicable range again, the door is not unlocked because the vehicle-mounted device 1 stops communication with the portable device 2 as described above. In this case, the carrier unlocks the door by inserting the key into the keyhole. At that time, a control unit (not shown) receives a signal based on the door being unlocked due to the key being inserted into the keyhole. Based on the signal, the control unit transmits to the CPU 3 a communication start signal for the in-vehicle device 1 to start communication with the portable device 2. When the CPU 3 receives the communication start signal (S124, YES), it starts communication with the portable device 2 again.

<<第2の実施形態>>
===距離算出システムの全体構成===
図8、図10を参照しつつ、本発明に係る距離算出システムについて説明する。図8は、本発明に係る距離算出システムの全体構成の一例を示す機能ブロック図である。尚、本実施形態は、第1の実施形態における距離算出システムの車載機1を自動車内に4つ設け(車載機1A、1B、1C、1D)、自動車内の何処かにある携帯機2の検出に距離算出システムを用いる場合について説明する。そのため、距離算出システムは、車載機1A、1B、1C、1D、携帯機2、CPU90から構成される。また、図8において前述した図1と同様の構成であるものは、同じ番号を付して説明を省略するものとする。更に、図8において車載機1A、1B、1C、1Dは、図1における車載機1と同様の構成のものであり、便宜上同じ番号に記号を付加して説明を省略するものとする。図10は、車載機1A、1B、1C、1Dによる携帯機2の検出を示す図である。尚、図10における+X方向を自動車の前方方向とすると、例えば、車載機1Aは前方左側に設けられ、車載機1Bは前方右側に設けられ、車載機1Cは後方左側に設けられ、車載機1Dは後方右側に設けられるものとする。また、CPU90は、車載機1A、1B、1C、1Dが設けられた自動車内部に設けられるものとする。携帯機2は自動車のキー(鍵)に設けられているものとする。
<< Second Embodiment >>
=== Overall Configuration of Distance Calculation System ===
The distance calculation system according to the present invention will be described with reference to FIGS. FIG. 8 is a functional block diagram showing an example of the overall configuration of the distance calculation system according to the present invention. In the present embodiment, four in-vehicle devices 1 of the distance calculation system in the first embodiment are provided in the vehicle (on-vehicle devices 1A, 1B, 1C, and 1D), and the portable device 2 somewhere in the vehicle A case where a distance calculation system is used for detection will be described. Therefore, the distance calculation system is composed of the in-vehicle devices 1A, 1B, 1C, 1D, the portable device 2, and the CPU 90. Also, in FIG. 8, the same components as those in FIG. 1 described above are denoted by the same reference numerals and description thereof is omitted. Further, in FIG. 8, the in-vehicle devices 1 </ b> A, 1 </ b> B, 1 </ b> C, and 1 </ b> D have the same configuration as that of the in-vehicle device 1 in FIG. 1. FIG. 10 is a diagram illustrating detection of the portable device 2 by the in-vehicle devices 1A, 1B, 1C, and 1D. If the + X direction in FIG. 10 is the front direction of the vehicle, for example, the in-vehicle device 1A is provided on the front left side, the in-vehicle device 1B is provided on the front right side, and the in-vehicle device 1C is provided on the rear left side. Is provided on the rear right side. Moreover, CPU90 shall be provided in the motor vehicle provided with vehicle equipment 1A, 1B, 1C, 1D. It is assumed that the portable device 2 is provided on a car key.

CPU90は、車載機1A、1B、1C、1Dを統括制御する。   The CPU 90 performs overall control of the in-vehicle devices 1A, 1B, 1C, and 1D.

車載機1Aは、CPU3A、カウンタ4A、タイマ5A、Flashメモリ6A、送信部7A、受信部8A、送信アンテナ9A、受信アンテナ10A、OSC26Aを有している。   The in-vehicle device 1A includes a CPU 3A, a counter 4A, a timer 5A, a flash memory 6A, a transmission unit 7A, a reception unit 8A, a transmission antenna 9A, a reception antenna 10A, and an OSC 26A.

CPU3Aは、CPU90からの指示信号に基づいて、携帯機2が自動車内にあるか否かを確認するための信号(以下、車内確認信号Aという)を送信部7Aに送信する。CPU3Aは、受信部8Aにて復調された携帯機2からの車内確認信号Bが送信される。CPU3Aは、車内確認信号Bが送信されたことに基づく信号(以下、確認信号という)をCPU90に送信する。CPU3Aは、車内確認信号Bが送信されてこなかったことに基づく信号(以下、未確認信号という)をCPU90に送信する。また、CPU3Aは、CPU90からの指示信号に基づいてインバータ21を動作状態とするための信号(以下、インバータ動作指示信号)を送信部7Aに送信する。CPU3Aは、インバータ21を不動作状態とするための信号(以下、インバータ不動作指示信号という)を送信部7Aに送信する。また、CPU3Aは、第1の実施形態のとおりカウンタ4Aのカウント値に基づいて、車載機1Aから携帯機2までの距離を算出する。CPU3Aは、算出した車載機1Aから携帯機2までの距離情報をCPU90に送信する。   Based on the instruction signal from the CPU 90, the CPU 3A transmits a signal (hereinafter referred to as an in-vehicle confirmation signal A) for confirming whether or not the portable device 2 is in the automobile to the transmission unit 7A. The CPU 3A transmits the in-vehicle confirmation signal B from the portable device 2 demodulated by the receiving unit 8A. The CPU 3A transmits a signal (hereinafter referred to as a confirmation signal) based on the transmission of the in-vehicle confirmation signal B to the CPU 90. The CPU 3A transmits a signal (hereinafter referred to as an unconfirmed signal) based on the fact that the in-vehicle confirmation signal B has not been transmitted to the CPU 90. The CPU 3A transmits a signal (hereinafter referred to as an inverter operation instruction signal) for setting the inverter 21 to an operation state based on the instruction signal from the CPU 90 to the transmission unit 7A. The CPU 3A transmits a signal (hereinafter referred to as an inverter non-operation instruction signal) for making the inverter 21 non-operational to the transmission unit 7A. Further, the CPU 3A calculates the distance from the in-vehicle device 1A to the portable device 2 based on the count value of the counter 4A as in the first embodiment. The CPU 3A transmits the calculated distance information from the in-vehicle device 1A to the portable device 2 to the CPU 90.

車載機1B、1C、1Dの構成は、前述した車載機1Aと同様の構成である。尚、車載機1A、1B、1C、1Dは、同時にCPU90からの指示に基づいて前述した処理を行っても良いし、順次前述した処理を行っても良い。   The configuration of the in-vehicle devices 1B, 1C, and 1D is the same as that of the in-vehicle device 1A described above. The vehicle-mounted devices 1A, 1B, 1C, and 1D may simultaneously perform the above-described processing based on an instruction from the CPU 90, or may sequentially perform the above-described processing.

CPU90は、自動車内に設けられた制御部(不図示)からの指示信号に基づいて、CPU3A、3B、3C、3Dが前述した車内確認信号Aを送信するための指示信号を車載機1A、1B、1C、1Dに送信する。CPU90は、車載機1A、1B、1C、1Dからの前述した確認信号に基づいて、自動車のエンジン始動を許可する信号(以下、エンジン始動許可信号という)を制御部に送信する。また、CPU90は、車載機1A、1B、1C、1Dからの前述した未確認信号に基づいて、自動車のエンジン始動を許可しないための信号(以下、エンジン始動不許可信号という)を制御部に送信する。CPU90は、制御部からの携帯機2を検出するための信号(以下、検出信号という)が送信される。CPU90は、当該検出信号に基づいて、CPU3A、3B、3C、3Dが前述したインバータ動作指示信号を送信するための指示信号を車載機1A、1B、1C、1Dに送信する。そして、CPU90は、CPU3A、3B、3C、3Dに車載機1A、1B、1C、1Dから携帯機2までの距離を算出させるための指示信号を車載機1A、1B、1C、1Dに送信する。CPU90は、CPU3A、3B、3C、3Dが算出した車載機1A、1B、1C、1Dから携帯機2までの距離情報が送信される。CPU90は、CPU3A、3B、3C、3Dが算出した距離情報に基づいて、携帯機2が自動車内の何処にあるかを算出する。この携帯機2がある場所の算出において、CPU90はメモリ(不図示)に記憶された携帯機2がある場所を算出するためのプログラムデータを読み出す。そして、CPU90による当該プログラムの演算処理において、車載機1A、1B、1C、1Dからの距離情報から読み出される各距離の一致点を用いることによって、携帯機2がある場所を算出することができる。例えば、車載機1Aが算出した携帯機2までの距離が120cm、車載機1Bが算出した携帯機2までの距離が212cm、車載機1Cが算出した携帯機2までの距離が20cm、車載機1Dから携帯機2までの距離が117cmであったとする。そのとき、CPU90は、車載機1Aからの距離が120cmとなる点と、車載機1Bからの距離が212cmとなる点と、車載機1Cからの距離が20cmとなる点と、車載機1Dからの距離が117cmとなる点が一致する点を算出し、当該一致点上に携帯機2があるものと判別する。   Based on an instruction signal from a control unit (not shown) provided in the automobile, the CPU 90 transmits an instruction signal for the CPU 3A, 3B, 3C, 3D to transmit the above-described in-vehicle confirmation signal A. Send to 1C, 1D. The CPU 90 transmits a signal for permitting the engine start of the vehicle (hereinafter referred to as an engine start permission signal) to the control unit based on the above-described confirmation signals from the in-vehicle devices 1A, 1B, 1C, and 1D. Further, the CPU 90 transmits a signal for not permitting the engine start of the vehicle (hereinafter referred to as an engine start non-permission signal) to the control unit based on the above-described unconfirmed signals from the in-vehicle devices 1A, 1B, 1C, and 1D. . The CPU 90 transmits a signal (hereinafter referred to as a detection signal) for detecting the portable device 2 from the control unit. Based on the detection signal, the CPU 90 transmits an instruction signal for the CPU 3A, 3B, 3C, 3D to transmit the inverter operation instruction signal described above to the in-vehicle devices 1A, 1B, 1C, 1D. And CPU90 transmits the instruction | indication signal for making CPU3A, 3B, 3C, 3D calculate the distance from vehicle equipment 1A, 1B, 1C, 1D to the portable device 2 to vehicle equipment 1A, 1B, 1C, 1D. The CPU 90 transmits distance information from the in-vehicle devices 1A, 1B, 1C, 1D to the portable device 2 calculated by the CPUs 3A, 3B, 3C, 3D. The CPU 90 calculates where the portable device 2 is in the vehicle based on the distance information calculated by the CPUs 3A, 3B, 3C, and 3D. In calculating the location where the portable device 2 is located, the CPU 90 reads program data for calculating the location where the portable device 2 is stored, which is stored in a memory (not shown). Then, in the arithmetic processing of the program by the CPU 90, the location where the portable device 2 is located can be calculated by using the coincidence point of each distance read from the distance information from the in-vehicle devices 1A, 1B, 1C, 1D. For example, the distance to the portable device 2 calculated by the vehicle-mounted device 1A is 120 cm, the distance to the portable device 2 calculated by the vehicle-mounted device 1B is 212 cm, the distance to the portable device 2 calculated by the vehicle-mounted device 1C is 20 cm, and the vehicle-mounted device 1D. Assume that the distance from the mobile device 2 to the portable device 2 is 117 cm. At that time, the CPU 90 has a point where the distance from the vehicle-mounted device 1A is 120 cm, a point where the distance from the vehicle-mounted device 1B is 212 cm, a point where the distance from the vehicle-mounted device 1C is 20 cm, and a point from the vehicle-mounted device 1D. A point at which the distance of 117 cm coincides is calculated, and it is determined that the portable device 2 is on the coincidence point.

携帯機2は、CPU11、Flashメモリ13、復調部24、変調部25、受信アンテナ18、送信アンテナ19、インバータ20、21、22を有している。   The portable device 2 includes a CPU 11, a Flash memory 13, a demodulation unit 24, a modulation unit 25, a reception antenna 18, a transmission antenna 19, and inverters 20, 21, and 22.

CPU11は、復調部24にて復調された車載機1A、1B、1C、1Dからの車内確認信号Aが送信される。CPU11は当該車内確認信号Aに基づいて、変調部25に車内確認信号Bを送信する。CPU11は、復調部24にて復調された車載機1A、1B、1C、1Dからのインバータ動作指示信号が送信される。CPU11は、当該インバータ動作指示信号に基づいて、インバータ21を動作状態とする。そのため、復調部24にて復調された車載機1A、1B、1C、1Dからの信号に対して何ら処理が行われることがなく、そのまま変調部25にてFSK変調されて送信アンテナ19から送信させることが可能となる。CPU11は、復調部24にて復調された車載機1A、1B、1C、1Dからのインバータ不動作指示信号が送信され、当該インバータ不動作指示信号に基づいてインバータ21を不動作状態とする。   The CPU 11 transmits an in-vehicle confirmation signal A from the in-vehicle devices 1A, 1B, 1C, 1D demodulated by the demodulator 24. Based on the vehicle interior confirmation signal A, the CPU 11 transmits the vehicle interior confirmation signal B to the modulation unit 25. The CPU 11 transmits inverter operation instruction signals from the vehicle-mounted devices 1A, 1B, 1C, and 1D demodulated by the demodulator 24. The CPU 11 puts the inverter 21 into an operating state based on the inverter operation instruction signal. Therefore, no processing is performed on the signals from the vehicle-mounted devices 1A, 1B, 1C, and 1D demodulated by the demodulator 24, and the signals are directly FSK modulated by the modulator 25 and transmitted from the transmission antenna 19. It becomes possible. The CPU 11 transmits the inverter non-operation instruction signal from the vehicle-mounted devices 1A, 1B, 1C, and 1D demodulated by the demodulator 24, and makes the inverter 21 non-operation based on the inverter non-operation instruction signal.

===距離算出システムの動作===
図8乃至図11を参照しつつ本発明に係る距離算出システムの動作について説明する。図9は、本発明に係る距離算出システムの動作の一例を示すフローチャートである。図11は、モニタ92の表示画面の一例を示す図である。
=== Operation of Distance Calculation System ===
The operation of the distance calculation system according to the present invention will be described with reference to FIGS. FIG. 9 is a flowchart showing an example of the operation of the distance calculation system according to the present invention. FIG. 11 is a diagram illustrating an example of the display screen of the monitor 92.

尚、本実施形態においては、携帯者が自動車のドアをアンロックして自動車に乗り込み携帯者が携帯機2を自動車内の何処かに置き、携帯者が携帯機2を置いた場所を失念してしまった場合について説明する。また、インバータ21は不動作状態であるものとする。   In this embodiment, the carrier unlocks the door of the automobile, gets into the automobile, places the portable device 2 somewhere in the automobile, and forgets where the portable person places the portable device 2. The case where it has been described will be described. Further, it is assumed that the inverter 21 is in an inoperative state.

自動車内に別途設けられた制御部(不図示)は、自動車のドアが閉じられたことに基づく信号を受信する(S301)。制御部は、当該信号に基づいてエンジン始動を開始するか否かを確認するための信号をCPU90に送信する。   A control unit (not shown) separately provided in the automobile receives a signal based on the closure of the automobile door (S301). The control unit transmits a signal for confirming whether to start the engine based on the signal to the CPU 90.

そして、CPU90は、制御部からの当該信号に基づいて、CPU3A、3B、3C、3Dが車内確認信号Aを送信するための指示信号を車載機1A、1B、1C、1Dに送信する。   And CPU90 transmits the instruction | indication signal for CPU3A, 3B, 3C, 3D to transmit the vehicle interior confirmation signal A to vehicle equipment 1A, 1B, 1C, 1D based on the said signal from a control part.

以下、車載機1Aの動作について説明するが車載機1B、1C、1Dについても同様の動作であるものとする。   Hereinafter, although the operation of the in-vehicle device 1A will be described, the same operation is performed for the in-vehicle devices 1B, 1C, and 1D.

CPU3Aは、CPU90からの前述した指示信号を受信すると、車内確認信号Aを送信部7Aに送信する(S302)。このとき、CPU3Aは、タイマ5Aをリセットする。リセットされたタイマ5Aは計時を開始する。そして、CPU3Aは、受信部8Aにて復調された携帯機2からの車内確認信号Bが、予め定められた時間内に送信されてくるか否かを判別する(S303)。送信部7Aは、当該車内確認信号Aを125kHzの周波数の搬送波でASK変調する。そして、送信部7AからのASK変調された車内確認信号Aは送信アンテナ9Aを介して送信される。   CPU3A will transmit the vehicle interior confirmation signal A to the transmission part 7A, if the instruction | indication signal mentioned above from CPU90 is received (S302). At this time, the CPU 3A resets the timer 5A. The reset timer 5A starts measuring time. Then, the CPU 3A determines whether or not the in-vehicle confirmation signal B from the portable device 2 demodulated by the receiving unit 8A is transmitted within a predetermined time (S303). The transmitter 7A ASK modulates the in-vehicle confirmation signal A with a carrier wave having a frequency of 125 kHz. Then, the ASK-modulated in-vehicle confirmation signal A from the transmission unit 7A is transmitted via the transmission antenna 9A.

ASK変調された車内確認信号Aを携帯機2の受信アンテナ18が受信すると、復調部24は、ASK変調された車内確認信号Aを復調する。そして、CPU11は、復調部24にて復調された車内確認信号Aが送信されたことを判別すると(S401・YES)、車内確認信号Bを変調部25に送信する(S402)。変調部25は、CPU11からの車内確認信号Bを312MHzの周波数の搬送波でFSK変調する。変調部25にてFSK変調された車内確認信号Bは、送信アンテナ19を介して送信される。   When the reception antenna 18 of the portable device 2 receives the ASK-modulated in-vehicle confirmation signal A, the demodulator 24 demodulates the ASK-modulated in-vehicle confirmation signal A. If the CPU 11 determines that the vehicle interior confirmation signal A demodulated by the demodulator 24 is transmitted (S401: YES), the CPU 11 transmits the vehicle interior confirmation signal B to the modulator 25 (S402). The modulation unit 25 performs FSK modulation on the vehicle interior confirmation signal B from the CPU 11 with a carrier wave having a frequency of 312 MHz. The vehicle interior confirmation signal B that has been FSK modulated by the modulator 25 is transmitted via the transmission antenna 19.

FSK変調された車内確認信号Bを車載機1Aの受信アンテナ10Aが受信すると、受信部8AはFSK変調された車内確認信号Bを復調する。CPU3Aは、受信部8Aにて復調された携帯機2からの車内確認信号Bが送信されたことを判別すると(S303・YES)、CPU90に確認信号を送信する(S320)。同様に、車載機1B、1C、1DのCPU3B、3C、3Dは、携帯機2からの車内確認信号Bが送信されたことを判別すると、確認信号をCPU90に送信する。尚、CPU3A、3B、3C、3Dは、車内確認信号Aを送信してから予め定められた時間内に受信部8A、8B、8C、8Dにて復調された車内確認信号Bが送信されてこないと判別した場合(S303・NO)、未確認信号をCPU90に送信する(S321)。   When the reception antenna 10A of the vehicle-mounted device 1A receives the FSK-modulated in-vehicle confirmation signal B, the receiving unit 8A demodulates the FSK-modulated in-vehicle confirmation signal B. When determining that the in-vehicle confirmation signal B from the portable device 2 demodulated by the receiving unit 8A has been transmitted (S303: YES), the CPU 3A transmits a confirmation signal to the CPU 90 (S320). Similarly, CPU3B, 3C, 3D of vehicle equipment 1B, 1C, 1D will transmit a confirmation signal to CPU90, if it determines that the vehicle interior confirmation signal B from the portable device 2 was transmitted. The CPUs 3A, 3B, 3C, and 3D do not transmit the vehicle interior confirmation signal B demodulated by the receiving units 8A, 8B, 8C, and 8D within a predetermined time after the vehicle interior confirmation signal A is transmitted. (S303, NO), an unconfirmed signal is transmitted to the CPU 90 (S321).

CPU90は、車載機1A、1B、1C、1Dからの確認信号に基づいて、制御部(不図示)にエンジン始動許可信号を送信する(S304)。CPU90からの当該エンジン始動許可信号によって、例えば制御部は自動車のエンジンの駆動を開始させる。尚、CPU90は、車載機1A、1B、1C、1Dからの未確認信号に基づいて、制御部にエンジン始動不許可信号を制御部に送信する(S318)。そして、制御部は、キーが鍵穴に差し込まれるまで、自動車のエンジンの駆動を開始させないこととなる(S319)。   CPU90 transmits an engine start permission signal to a control part (not shown) based on the confirmation signal from vehicle equipment 1A, 1B, 1C, 1D (S304). In response to the engine start permission signal from the CPU 90, for example, the control unit starts driving the engine of the automobile. The CPU 90 transmits an engine start non-permission signal to the control unit based on the unconfirmed signals from the in-vehicle devices 1A, 1B, 1C, and 1D (S318). Then, the control unit does not start driving the automobile engine until the key is inserted into the keyhole (S319).

例えば携帯者が携帯機2を自動車内の何処かに置き、携帯機2がある場所を失念してしまった場合、携帯者は自動車内に設けられた入力部(不図示)に携帯機2を検出するための指示入力をする。制御部は、入力部に指示入力されたことに基づく指示信号を受信する。そして、制御部は、当該指示信号に基づいて検出信号をCPU90に送信する。CPU90は、制御部からの検出信号を受信すると(S305・YES)、CPU3A、3B、3C、3Dがインバータ動作指示信号を送信するための指示信号を車載機1A、1B、1C、1Dに送信する。   For example, when the portable person places the portable device 2 somewhere in the vehicle and forgets where the portable device 2 is, the portable person places the portable device 2 in an input unit (not shown) provided in the vehicle. Input instructions for detection. The control unit receives an instruction signal based on an instruction input to the input unit. Then, the control unit transmits a detection signal to the CPU 90 based on the instruction signal. When the CPU 90 receives the detection signal from the control unit (YES in S305), the CPU 3A, 3B, 3C, 3D transmits an instruction signal for transmitting the inverter operation instruction signal to the vehicle-mounted devices 1A, 1B, 1C, 1D. .

CPU3Aは、CPU90からの前述した指示信号を受信すると、インバータ動作指示信号を送信部7Aに送信する(S306)。送信部7Aは、当該インバータ動作指示信号を125kHzの周波数の搬送波でASK変調する。そして、送信部7AからのASK変調されたインバータ動作指示信号は送信アンテナ9Aを介して送信される。   CPU3A will transmit an inverter operation instruction signal to the transmission part 7A, if the instruction | indication signal mentioned above from CPU90 is received (S306). The transmitter 7A ASK-modulates the inverter operation instruction signal with a carrier wave having a frequency of 125 kHz. Then, the ASK-modulated inverter operation instruction signal from the transmission unit 7A is transmitted via the transmission antenna 9A.

ASK変調されたインバータ動作指示信号を携帯機2の受信アンテナ18が受信すると、復調部24は、ASK変調されたインバータ動作指示信号を復調する。そして、CPU11は、復調部24にて復調されたインバータ動作指示信号が送信されたことを判別すると(S403・YES)、インバータ21を動作状態とする(S404)。   When the receiving antenna 18 of the portable device 2 receives the ASK-modulated inverter operation instruction signal, the demodulator 24 demodulates the ASK-modulated inverter operation instruction signal. When the CPU 11 determines that the inverter operation instruction signal demodulated by the demodulator 24 has been transmitted (YES in S403), the CPU 11 sets the inverter 21 in an operating state (S404).

また、CPU3Aは前述したインバータ動作指示信号を送信すると、距離算出用信号を送信部7Aに送信する(S307)。このときCPU3Aは、カウンタ4Aをリセットさせ、カウンタ4Aに当該距離算出用信号の立上りからカウントを開始させる。更に、CPU3Aは、タイマ5Aをリセットさせて計時を開始させる。そして、CPU3Aは、当該距離算出用信号が予め定められた時間内に携帯機2から返信されてくるか否かを判別する(S308)。送信部7Aは、当該距離算出用信号を125kHzの周波数の搬送波でASK変調する。そして、送信部7AからのASK変調された距離算出用信号は送信アンテナ9Aを介して送信される。   When the CPU 3A transmits the inverter operation instruction signal described above, the CPU 3A transmits a distance calculation signal to the transmitter 7A (S307). At this time, the CPU 3A resets the counter 4A, and causes the counter 4A to start counting from the rise of the distance calculation signal. Further, the CPU 3A resets the timer 5A to start timing. Then, the CPU 3A determines whether or not the distance calculation signal is returned from the portable device 2 within a predetermined time (S308). The transmitter 7A ASK modulates the distance calculation signal with a carrier wave having a frequency of 125 kHz. Then, the ASK-modulated distance calculation signal from the transmitter 7A is transmitted via the transmission antenna 9A.

ASK変調された距離算出用信号を携帯機2の受信アンテナ18が受信すると、復調部24は、ASK変調された距離算出用信号を復調する。このとき復調部24にて復調された車載機1Aからの距離算出用信号は、インバータ21が動作状態となっているため、そのまま変調部25に送信される(S406)。変調部25は、復調部24からの距離算出用信号を312MHzの周波数の搬送波でFSK変調する。変調部25にてFSK変調された距離算出用信号は、送信アンテナ19を介して送信される。   When the reception antenna 18 of the portable device 2 receives the ASK-modulated distance calculation signal, the demodulation unit 24 demodulates the ASK-modulated distance calculation signal. At this time, the distance calculation signal from the in-vehicle device 1A demodulated by the demodulator 24 is transmitted to the modulator 25 as it is because the inverter 21 is in an operating state (S406). The modulation unit 25 performs FSK modulation on the distance calculation signal from the demodulation unit 24 with a carrier wave having a frequency of 312 MHz. The distance calculation signal that has been FSK modulated by the modulator 25 is transmitted via the transmission antenna 19.

FSK変調された距離算出用信号を車載機1Aの受信アンテナ10Aが受信すると、受信部8AはFSK変調された距離算出用信号を復調する。CPU3Aは、受信部8Aにて復調された携帯機2からの距離算出用信号が送信されたことを判別すると(S308・YES)、カウンタ4Aのカウント値を読み出す。そして、CPU3Aは当該カウント値に基づいて、車載機1Aから携帯機2までの距離を算出する。尚、このときのCPU3Aによる車載機1Aから携帯機2までの距離の算出方法は、第1の実施形態と同様である。そして、CPU3Aは算出した車載機1Aから携帯機2までの距離情報をCPU90に送信する(S310)。同様に、車載機1BのCPU3Bは、車載機1Bから携帯機2までの距離情報をCPU90に送信する(S311)。また、車載機1CのCPU3Cは、車載機1Cから携帯機2までの距離情報をCPU90に送信する(S312)。更に、車載機1DのCPU3Dは、車載機1Dから携帯機2までの距離情報をCPU90に送信する(S313)。また、CPU3Aは、車載機1Aから携帯機2までの距離を算出するとともにインバータ不動作指示信号を送信部7Aに送信する(S309)。送信部7Aは、当該インバータ不動作指示信号を125kHzの周波数の搬送波でASK変調する。そして、送信部7AからのASK変調されたインバータ不動作指示信号は送信アンテナ9Aを介して送信される。尚、CPU3Aは、距離算出用信号を送信してから予め定められた時間内に受信部8Aにて復調された距離算出用信号が返信されてこないと判別すると(S308・NO)、距離算出用信号が返信されてこないと判別した情報を、例えばFlashメモリ6Aのアドレス1から順に記憶させる。このときCPU3Aは、当該距離算出用信号が返信されてこないと判別した当該情報がアドレス2に記憶されている否かを判別する(S316)。そして、CPU3Aは、アドレス2に当該情報が記憶されていないと判別すると(S316・NO)、インバータ動作指示信号を再び送信部7Aに送信する(S306)。また、CPU3Aは前述したようにタイマ5Aをリセットさせて計時を開始させ、カウンタ4Aをリセットさせてカウントを開始させる。そして、CPU3Aは再び距離算出用信号が返信されてこないと判別すると(S308・NO)、距離算出用信号が返信されてこないと判別した情報を、例えばFlashメモリ6Aのアドレス2に記憶させる(S316)。そして、CPU3Aは、距離算出用信号が返信されてこないと判別した情報がアドレス2に記憶されていると判別すると(S316・YES)、当該判別に基づいた信号をCPU90に送信する。CPU90は、車載機1Aのみならず車載機1B、1C、1Dからの当該信号を受信すると、携帯機2が自動車内にないと判別する(S317)。そして、CPU90は、モニタ92に携帯機2が自動車内にないと表示させるべく指示信号を制御部(不図示)に送信する。制御部は、CPU90からの当該指示信号に基づいて、モニタ92に携帯機2が自動車内にないことを表示させる(S315)。   When the receiving antenna 10A of the vehicle-mounted device 1A receives the FSK-modulated distance calculation signal, the receiving unit 8A demodulates the FSK-modulated distance calculation signal. When determining that the distance calculation signal from the portable device 2 demodulated by the receiving unit 8A has been transmitted (YES in S308), the CPU 3A reads the count value of the counter 4A. Then, the CPU 3A calculates the distance from the in-vehicle device 1A to the portable device 2 based on the count value. Note that the calculation method of the distance from the in-vehicle device 1A to the portable device 2 by the CPU 3A at this time is the same as that in the first embodiment. Then, the CPU 3A transmits the calculated distance information from the in-vehicle device 1A to the portable device 2 to the CPU 90 (S310). Similarly, the CPU 3B of the in-vehicle device 1B transmits distance information from the in-vehicle device 1B to the portable device 2 to the CPU 90 (S311). Further, the CPU 3C of the in-vehicle device 1C transmits distance information from the in-vehicle device 1C to the portable device 2 to the CPU 90 (S312). Further, the CPU 3D of the in-vehicle device 1D transmits distance information from the in-vehicle device 1D to the portable device 2 to the CPU 90 (S313). Further, the CPU 3A calculates the distance from the in-vehicle device 1A to the portable device 2 and transmits an inverter non-operation instruction signal to the transmission unit 7A (S309). The transmitter 7A ASK-modulates the inverter non-operation instruction signal with a carrier wave having a frequency of 125 kHz. Then, the ASK-modulated inverter non-operation instruction signal from the transmission unit 7A is transmitted via the transmission antenna 9A. If the CPU 3A determines that the distance calculation signal demodulated by the receiving unit 8A is not returned within a predetermined time after transmitting the distance calculation signal (NO in S308), the CPU 3A performs distance calculation. Information determined that no signal is returned is stored in order, for example, from address 1 of the Flash memory 6A. At this time, the CPU 3A determines whether or not the information determined that the distance calculation signal is not returned is stored in the address 2 (S316). If the CPU 3A determines that the information is not stored at the address 2 (NO in S316), the CPU 3A transmits the inverter operation instruction signal to the transmitter 7A again (S306). Further, as described above, the CPU 3A resets the timer 5A to start timing, and resets the counter 4A to start counting. If the CPU 3A determines that the distance calculation signal is not returned again (NO in S308), the CPU 3A stores the information determined that the distance calculation signal is not returned, for example, at address 2 of the Flash memory 6A (S316). ). If the CPU 3A determines that the information determined that the distance calculation signal has not been returned is stored in the address 2 (YES in S316), the CPU 3A transmits a signal based on the determination to the CPU 90. CPU90 will discriminate | determine that the portable device 2 is not in a motor vehicle, if the said signal from not only the vehicle equipment 1A but the vehicle equipment 1B, 1C, 1D is received (S317). Then, the CPU 90 transmits an instruction signal to a control unit (not shown) to display on the monitor 92 that the portable device 2 is not in the automobile. Based on the instruction signal from the CPU 90, the control unit causes the monitor 92 to display that the portable device 2 is not in the vehicle (S315).

前述したようにCPU90は、車載機1A、1B、1C、1Dからの前述した距離情報を受信すると、当該距離情報に基づいて携帯機2が自動車内の何処にあるかを算出する(S314)。尚、このときのCPU90による携帯機2がある場所の算出は、前述したように車載機1Aを始点として当該始点からCPU3Aが算出した距離の点(図10・一点鎖線A)と、車載機1Bを始点として当該始点からCPU3Bが算出した距離の点(図10・二点鎖線B)と、車載機1Cを始点として当該始点からCPU3Cが算出した距離の点(図10・破線C)と、車載機1Dを始点として当該始点からCPU3Dが算出した距離の点(図10・実線D)とが一致する点から求められる。そして、CPU90は、算出した携帯機2がある場所をモニタ92に表示させるべく指示信号を制御部に送信する。制御部は、CPU90からの指示信号に基づいてモニタ92に携帯機2がある場所を表示させる(S315、図11)。   As described above, when receiving the above-described distance information from the in-vehicle devices 1A, 1B, 1C, and 1D, the CPU 90 calculates where the portable device 2 is in the vehicle based on the distance information (S314). At this time, the CPU 90 calculates the location where the portable device 2 is located, as described above, with the on-vehicle device 1A as the starting point, the distance point calculated by the CPU 3A from the starting point (FIG. 10, one-dot chain line A), and the on-vehicle device 1B. The starting point is a distance point calculated by the CPU 3B from the starting point (FIG. 10, two-dot chain line B), the in-vehicle device 1C is the starting point, and the distance point calculated by the CPU 3C from the starting point (FIG. 10, broken line C) is It is obtained from the point where the machine 1D is the starting point and the distance point (solid line D in FIG. 10) calculated by the CPU 3D from the starting point coincides. Then, the CPU 90 transmits an instruction signal to the control unit so as to display the calculated location of the portable device 2 on the monitor 92. Based on the instruction signal from the CPU 90, the control unit displays the location where the portable device 2 is on the monitor 92 (S315, FIG. 11).

このように、携帯者が携帯機2がある場所を失念した場合、距離算出用信号によって各車載機1A、1B、1C、1Dから携帯機2までの距離を各CPU3A、3B、3C、3Dが算出することによって、携帯機2がある場所をCPU90が算出することが可能となる。   As described above, when the portable person forgets where the portable device 2 is located, the CPU 3A, 3B, 3C, 3D determines the distance from each onboard device 1A, 1B, 1C, 1D to the portable device 2 by the distance calculation signal. By calculating, the CPU 90 can calculate the location where the portable device 2 is located.

上述した実施形態によれば、車載機1から送信したときの距離算出用信号と、携帯機2から返信されたときの距離算出用信号との位相差から、CPU3は、車載機1と携帯機2の間の距離を算出することが可能となる。また、CPU3から送信した距離算出用信号と、携帯機2から返信された前記CPU3から送信した距離算出用信号と同じ距離算出用信号と、から車載機1と携帯機2との間の距離を算出しているので、正確な距離を確実に算出することが可能となる。   According to the above-described embodiment, from the phase difference between the distance calculation signal transmitted from the vehicle-mounted device 1 and the distance calculation signal returned from the portable device 2, the CPU 3 performs the following operations. The distance between the two can be calculated. Further, the distance between the in-vehicle device 1 and the portable device 2 is calculated from the distance calculation signal transmitted from the CPU 3 and the same distance calculation signal transmitted from the CPU 3 as returned from the portable device 2. Since the calculation is performed, it is possible to reliably calculate an accurate distance.

また、車載機1から携帯機2への通信において、低周波数の搬送波で通信を行うことによって位相差を意図的に生じさせられる。また、携帯機2から車載機1への通信において、高周波の搬送波で通信を行うことによって、車載機1から携帯機2への通信により生じた位相差に比べ無視できる程度の位相差とすることができる。つまり、車載機1から携帯機2への通信において意図的に生じさせた位相差によって、車載機1から携帯機2までの距離を算出することができる。   Further, in communication from the in-vehicle device 1 to the portable device 2, a phase difference can be intentionally generated by performing communication using a low-frequency carrier wave. Further, in the communication from the portable device 2 to the in-vehicle device 1, the phase difference is negligible compared to the phase difference caused by the communication from the in-vehicle device 1 to the portable device 2 by performing communication with a high frequency carrier wave. Can do. That is, the distance from the in-vehicle device 1 to the portable device 2 can be calculated from the phase difference intentionally generated in the communication from the in-vehicle device 1 to the portable device 2.

また、CPU3が算出した車載機1と携帯機2との間の距離が予め定められた距離以上であると判別した場合、携帯機2との通信を行わなくすることが可能となる。そのため、例えば中継機が車載機1と携帯機2との間に介在することによって通信が行われたとしても、携帯機2との通信を行わなくすることができる。   Further, when it is determined that the distance between the in-vehicle device 1 and the portable device 2 calculated by the CPU 3 is equal to or greater than a predetermined distance, it is possible to disable communication with the portable device 2. Therefore, for example, even if communication is performed by a relay device interposed between the in-vehicle device 1 and the portable device 2, communication with the portable device 2 can be omitted.

また、インバータ21を動作状態とすることによって、距離算出用信号を車載機1に返信することが可能となり、CPU3が車載機1と携帯機2との間の距離を算出することが可能となる。更に、インバータ21を不動作状態とすることによって、以後車載機1から送信される例えばコード読出信号が、携帯機2からそのまま返信されることがなくなる。   Further, by setting the inverter 21 to the operating state, it is possible to return a distance calculation signal to the in-vehicle device 1, and the CPU 3 can calculate the distance between the in-vehicle device 1 and the portable device 2. . Furthermore, by making the inverter 21 inoperative, for example, a code read signal transmitted from the vehicle-mounted device 1 is not returned from the portable device 2 as it is.

また、CPU3は、所定数ごとに生成する距離算出用信号のパターンを変えるため、例えば読出機などによって距離算出用信号を読み出す者に対するセキュリティー面を向上することが可能となる。また、CPU3は、携帯機2からの距離算出用信号が返信されるまで距離算出用信号を送信するため、車載機1と携帯機2との間の距離を算出することを確実に行うことができる。   Further, since the CPU 3 changes the pattern of the distance calculation signal generated for each predetermined number, for example, it is possible to improve the security for a person who reads the distance calculation signal with a reader or the like. In addition, since the CPU 3 transmits the distance calculation signal until the distance calculation signal from the portable device 2 is returned, the CPU 3 can reliably calculate the distance between the in-vehicle device 1 and the portable device 2. it can.

また、低周波数の搬送波で通信を行う車載機1から携帯機2への通信においては、低周波数の搬送波による変調に適したASK変調を用いることによって、回路構成が容易となり、ある程度混信しても車載機1から携帯機2へ送信することが可能となる。高周波数の搬送波で通信を行う携帯機2から車載機1への通信においては、高周波数の搬送波による変調に適したFSK変調を用いることによって、ノイズによる影響を受けにくくなり、携帯機2から車載機1への情報を損失することなく確実に送信することが可能となる。   In addition, in communication from the vehicle-mounted device 1 that performs communication using a low-frequency carrier wave to the portable device 2, the circuit configuration is facilitated by using ASK modulation suitable for modulation using the low-frequency carrier wave, and interference may occur to some extent. Transmission from the in-vehicle device 1 to the portable device 2 becomes possible. In the communication from the portable device 2 that communicates with the high frequency carrier wave to the in-vehicle device 1, the FSK modulation suitable for the modulation with the high frequency carrier wave is used, so that it is less affected by noise, and the portable device 2 is mounted on the vehicle It is possible to reliably transmit information to the machine 1 without loss.

また、車載機1から携帯機2への通信、及び携帯機2から車載機1への通信においてスペクトラム拡散にて通信を行うことにより、当該スペクトラム拡散にて送信された信号の秘匿性を高めることができ、また、妨害波・干渉波等に対する排除能力を著しく高めることができる。   Further, by performing communication by spread spectrum in communication from the in-vehicle device 1 to the portable device 2 and communication from the portable device 2 to the in-vehicle device 1, the confidentiality of the signal transmitted by the spread spectrum is increased. In addition, the ability to eliminate interference waves, interference waves, etc. can be significantly increased.

また、位相差を検出するためのタイマ5と、所定周波数のクロックでカウントするカウンタ4と、カウント値に基づいてCPU3が車載機1と携帯機2との間の距離を算出する基となる情報が記憶されているFlashメモリ6とを用いて、CPU3が車載機1と携帯機2との距離を算出することを確実に行うことが可能となる。また、タイマ5及びカウンタ4が、CPU3が距離算出用信号を送信するごとにリセットされることにより、CPU3が誤って同一パターンである2つの距離算出用信号から車載機1と携帯機2の間の距離を算出してしまうことを防止することが可能となる。したがって、CPU3はより確実に車載機1と携帯機2の間の距離を算出することができる。 In addition, a timer 5 for detecting a phase difference, a counter 4 that counts with a clock having a predetermined frequency, and information on which the CPU 3 calculates a distance between the in-vehicle device 1 and the portable device 2 based on the count value. It is possible for the CPU 3 to reliably calculate the distance between the in-vehicle device 1 and the portable device 2 using the Flash memory 6 in which is stored. In addition, the timer 5 and the counter 4 are reset every time the CPU 3 transmits a distance calculation signal, so that the CPU 3 erroneously detects the distance between the vehicle-mounted device 1 and the portable device 2 from the two distance calculation signals having the same pattern. It is possible to prevent the distance from being calculated. Therefore, the CPU 3 can calculate the distance between the in-vehicle device 1 and the portable device 2 more reliably.

また、CPU3は、車載機1と携帯機2との間の距離を算出することができ、当該距離が予め定められた距離未満であると判別したとき、自動車のドアをアンロックさせることが可能となる。また、当該距離が予め定められた距離以上であると判別したとき、自動車のドアをロックさせることができる。つまり、キー(自動車の鍵)を鍵穴に差し込むことなく、自動車のドアのアンロック又はロックを行うことが可能となる。   Further, the CPU 3 can calculate the distance between the in-vehicle device 1 and the portable device 2 and can unlock the door of the automobile when it is determined that the distance is less than a predetermined distance. It becomes. Further, when it is determined that the distance is equal to or greater than a predetermined distance, the door of the automobile can be locked. That is, it is possible to unlock or lock the door of the automobile without inserting a key (automobile key) into the keyhole.

更に、CPU3が車載機1と携帯機2との間の距離が予め定められた距離以上であると判別したとき、警報部(不図示)を動作させることができる。したがって、例えば中継機が介することにより判別部が前述した判別をしたとき、中継機を介して通信が行われていることを知らせることが可能となる。   Furthermore, when the CPU 3 determines that the distance between the in-vehicle device 1 and the portable device 2 is equal to or greater than a predetermined distance, an alarm unit (not shown) can be operated. Therefore, for example, when the determination unit makes the above-described determination through the relay device, it is possible to notify that communication is being performed through the relay device.

===その他の実施の形態===
以上、本発明に係る距離算出システムにおいて、車載機から携帯機までの距離の算出について説明したが、上記の説明は、本発明の理解を容易とするためのものであり、本発明を限定するものではない。本発明は、その趣旨を逸脱することなく、変更、改良され得る。
=== Other Embodiments ===
The distance calculation system according to the present invention has been described with respect to the calculation of the distance from the in-vehicle device to the portable device. However, the above description is for facilitating the understanding of the present invention, and the present invention is limited. It is not a thing. The present invention can be changed and improved without departing from the gist thereof.

<<自動車のドアのアンロック>>
本実施形態では、携帯者が切替スイッチ(不図示)を切り替えることによって、携帯者が選択した運転席側のドアのアンロック又は全てのドアのアンロックが行われているがこれに限るものではない。例えば、前述した車載機1A、1B、1C、1Dにおいて、携帯者がエリア内に入ってきた場合、前述したように車載機1Aと携帯機2との距離をCPU3Aが算出し、車載機1Bと携帯機2との距離をCPU3Bが算出し、車載機1Cと携帯機2との距離をCPU3Cが算出し、車載機1Dと携帯機2との距離をCPU3Dが算出する。そして、CPU90は、CPU3A、3B、3C、3Dからの距離情報に基づいて、携帯機2即ち携帯者が運転席側から車両に近づいているのか否かを判別することができる。例えば図10において、車載機32のCPU3Bが算出した距離情報が、車載機31のCPU3Aが算出した距離情報より長い距離である場合、携帯者は助手席側から近づいていることをCPU90が判別することができる。その場合、例えば携帯者が切り替えスイッチで運転席側のドアのアンロックを選択しているとき、CPU90は助手席側のドアをアンロックさせるように制御部(不図示)に指示してするように設けても良い。
<< Automobile door unlock >>
In the present embodiment, the driver switches the selector switch (not shown) to unlock the door on the driver's seat or all the doors selected by the carrier. However, the present invention is not limited to this. Absent. For example, in the above-described in-vehicle devices 1A, 1B, 1C, and 1D, when the user enters the area, the CPU 3A calculates the distance between the in-vehicle device 1A and the portable device 2 as described above, and the in-vehicle device 1B The CPU 3B calculates the distance from the portable device 2, the CPU 3C calculates the distance between the in-vehicle device 1C and the portable device 2, and the CPU 3D calculates the distance between the in-vehicle device 1D and the portable device 2. And CPU90 can discriminate | determine whether the portable device 2, ie, a carrier, is approaching the vehicle from the driver's seat side based on the distance information from CPU3A, 3B, 3C, 3D. For example, in FIG. 10, when the distance information calculated by the CPU 3 </ b> B of the in-vehicle device 32 is longer than the distance information calculated by the CPU 3 </ b> A of the in-vehicle device 31, the CPU 90 determines that the wearer is approaching from the passenger seat side. be able to. In this case, for example, when the carrier selects the unlocking of the driver's seat side door with the changeover switch, the CPU 90 instructs the control unit (not shown) to unlock the passenger's seat side door. May be provided.

<<距離算出システムの適用>>
本実施形態では、距離算出システムを自動車のドアをキー操作せずにロック又はアンロックするパッシブキーレスエントリーシステムに用いているが、本発明の適用対象はこれに限るものではない。
<< Application of distance calculation system >>
In the present embodiment, the distance calculation system is used in a passive keyless entry system that locks or unlocks a car door without operating a key, but the application target of the present invention is not limited to this.

居場所を特定する必要がある人(例えば園児又は老人。以下、被監視者という)に携帯機2を持たせ、車載機1と同一の機能を有する監視装置を被監視者を監視する者(以下、監視者という)が管理する。そして、監視者は、監視装置からのエリア内確認信号Aに基づいて、携帯機2からエリア内確認信号Bが送信されてくるか否かを監視装置が判別することによって、被監視者が通信可能範囲内にいるか否を判断することができる。そして、被監視者が所持する携帯機2からのエリア内確認信号Bが携帯機2から送信されてこないと監視装置が判別したとき、例えば監視装置は警報(アラーム)を鳴らして監視者に被監視者が通信可能範囲から出たことを知らせる。よって、監視者による被監視者の迅速な保護を図ることが可能となる。また、各被監視者の持つ携帯機2のFlashメモリ13に識別コードを記憶させ、エリア内確認信号Bとともに当該識別コードを携帯機2から送信させるように設けても良い。そうすることによって、監視者は、被監視者のうち誰が通信可能範囲から出たのかを把握することが可能となる。更に、第2の実施形態のように監視装置を複数設けさせる。そして、当該複数の監視装置からエリア内確認信号Aを送信させる。仮に被監視者が通信可能範囲を出てしまった場合、当該被監視者が通信可能範囲を出る直前の複数の監視装置が受信したエリア内確認信号Bに基づいて、被監視者が通信可能範囲を出た方向を監視者が容易に知ることが可能となる。なぜならば、監視装置は、エリア内確認信号Aを送信してから予め定められた時間t1内にエリア内確認信号Bが送信されてくるか否かを判別する。そのため、被監視者の最も近傍にある監視装置には、エリア内確認信号Bが最も早く送信されてくることとなる。よって、被監視者が通信可能範囲を出た方向が、当該被監視者の最も近傍にある監視装置によって判別することができる。そのため、監視者による被監視者の探索がより確実なものとなる。よって被監視者が通信可能範囲を出てしまったことによる事故を未然に防ぐことが可能となる。更に、被監視者が通信可能範囲を出てしまった場合、監視装置は携帯機2からのエリア内確認信号Bが送信されてこないと判別し、距離算出用信号を送信する。そして、仮に携帯機2と監視装置との間に中継機がある場合、中継機を介して当該距離算出用信号が監視装置に返信される。監視装置は、送信したときの距離算出用信号と携帯機2からの距離算出用信号との位相差から携帯機2と監視装置との距離を算出する。そのとき監視装置において算出した携帯機2と監視装置との距離が予め定められた距離未満でないと監視装置は判別する。よって監視者は、被監視者が通信可能範囲から出てしまったままであることを容易に判断することが可能となる。そのため、中継機を所持する者による被監視者の例えば誘拐等を未然に防ぐことが可能となる。   A person who needs to specify a whereabouts (for example, a kindergarten or an elderly person; hereinafter referred to as a monitored person) has the portable device 2 and monitors a monitored person having a monitoring device having the same function as the in-vehicle device 1 (hereinafter referred to as a monitored person) Managed by a supervisor). Then, the monitoring device determines whether or not the in-area confirmation signal B is transmitted from the portable device 2 based on the in-area confirmation signal A from the monitoring device, so that the monitored person communicates. It can be determined whether or not it is within a possible range. Then, when the monitoring device determines that the in-area confirmation signal B from the portable device 2 possessed by the monitored person is not transmitted from the portable device 2, for example, the monitoring device sounds an alarm (alarm) to the monitored person. Inform the observer that he / she has left the communicable range. Therefore, it is possible to quickly protect the monitored person by the monitoring person. Further, an identification code may be stored in the flash memory 13 of the portable device 2 of each monitored person, and the identification code may be transmitted from the portable device 2 together with the in-area confirmation signal B. By doing so, it becomes possible for the supervisor to know who is out of the communicable range among the monitored persons. Further, a plurality of monitoring devices are provided as in the second embodiment. Then, the in-area confirmation signal A is transmitted from the plurality of monitoring devices. If the monitored person leaves the communicable range, the monitored person can communicate based on the in-area confirmation signal B received by a plurality of monitoring devices immediately before the monitored person leaves the communicable range. The supervisor can easily know the direction of exiting. This is because the monitoring apparatus determines whether or not the intra-area confirmation signal B is transmitted within a predetermined time t1 after the intra-area confirmation signal A is transmitted. Therefore, the in-area confirmation signal B is transmitted earliest to the monitoring device closest to the monitored person. Therefore, the direction in which the monitored person leaves the communicable range can be determined by the monitoring device closest to the monitored person. Therefore, the search for the monitored person by the monitoring person becomes more reliable. Therefore, it is possible to prevent an accident due to the monitored person leaving the communicable range. Further, when the monitored person leaves the communicable range, the monitoring apparatus determines that the in-area confirmation signal B from the portable device 2 has not been transmitted, and transmits a distance calculation signal. If there is a relay device between the portable device 2 and the monitoring device, the distance calculation signal is returned to the monitoring device via the relay device. The monitoring device calculates the distance between the portable device 2 and the monitoring device from the phase difference between the distance calculation signal when transmitted and the distance calculation signal from the portable device 2. At that time, the monitoring device determines that the distance between the portable device 2 and the monitoring device calculated by the monitoring device is not less than a predetermined distance. Therefore, the monitoring person can easily determine that the monitored person remains out of the communicable range. Therefore, for example, kidnapping or the like of a monitored person by a person possessing a relay device can be prevented.

また、例えば携帯機2を自宅のキーとして用いても良い。この場合、車載機1と同一の機能を有する管理装置を自宅のドアに設け、第1の実施形態のとおりに自宅のドアをキー操作せずにロック又はアンロックするように用いることが可能となる。また、仮に携帯機2と管理装置との間に中継機がある場合、管理装置において算出した携帯機2と管理装置との距離が予め定められた距離未満ではないと管理装置は判別する。そのため、管理装置は携帯機2との通信をストップさせる。よって、セキュリティー面が向上し、中継機を介して自宅への侵入を図る窃盗者等による被害を防ぐことが可能となる。同様に自宅以外の建物等へ入るときなどにも用いることが可能である。   Further, for example, the portable device 2 may be used as a home key. In this case, a management device having the same function as the vehicle-mounted device 1 can be provided on the door of the home, and the home door can be used to lock or unlock the key without operating the key as in the first embodiment. Become. If there is a relay device between the portable device 2 and the management device, the management device determines that the distance between the portable device 2 calculated by the management device and the management device is not less than a predetermined distance. Therefore, the management device stops communication with the portable device 2. Therefore, security is improved, and it is possible to prevent damage caused by a thief or the like who attempts to enter a home via a relay device. Similarly, it can be used when entering a building other than the home.

また、例えば携帯機2を貴重品に設けても良い。携帯機2が設けられた貴重品を失くした場合、車載機1と同一の機能を有する探索機から距離算出用信号を送信させる。そして、貴重品に設けた携帯機2に探索機が近づくことによって、探索機からの距離算出用信号を携帯機2が返信する。携帯機2からの距離算出用信号が探索機に送信されてくることによって、探索機が携帯機2までの距離を算出することができる。そして、探索機が算出した携帯機2までの距離が予め定められた距離となったとき、例えば警報(アラーム)を鳴らすことによって、探索機を所持する者が、貴重品が近辺にあることを判断することが可能となる。   For example, the portable device 2 may be provided as a valuable item. When the valuables provided with the portable device 2 are lost, a distance calculation signal is transmitted from a searcher having the same function as the in-vehicle device 1. Then, when the searcher approaches the portable device 2 provided for the valuables, the portable device 2 returns a distance calculation signal from the searcher. When the distance calculation signal from the portable device 2 is transmitted to the searcher, the searcher can calculate the distance to the portable device 2. When the distance to the portable device 2 calculated by the searcher becomes a predetermined distance, for example, by sounding an alarm (alarm), the person who owns the searcher confirms that valuables are in the vicinity. It becomes possible to judge.

また、例えば電力メータ等に車載機1と同一の機能を設けても良い。この場合、電力メータ等の計測者に携帯機2を所持させる。そして、電力メータ等は、携帯機2が予め定められた距離未満にあるか否かを判別するために距離算出用信号を送信する。そして、携帯機2が予め定められた距離未満にあると電力メータ等が判別した場合、電力メータ等の計測するデータ値を計測者の所持する計測機に送信するように設けても良い。そうすることによって、電力メータ等が計測するデータ値の収集において、電力メータ等に非接触で当該データ値を収集することが可能となる。更に、近年においては電力メータ等が計測するデータ値の収集は、インターネット等によって収集することが可能となっているが、第三者によって当該データ値を読まれる可能性がある。しかしながら前述したような電力メータ、携帯機2を用いて電力メータ等の計測するデータ値の収集を行えば、第三者によって当該データ値を読まれる恐れが少なくなりセキュリティー面を向上することが可能となる。また、仮に携帯機2と電力メータ等との間に中継機がある場合、電力メータ等において算出した携帯機2と電力メータ等との距離が予め定められた距離未満ではないと電力メータ等は判別する。そのため、電力メータ等は携帯機2との通信をストップさせる。よって、中継機を介して電力メータが計測するデータ値を読み取られることを防止することが可能となる。   Further, for example, a power meter or the like may be provided with the same function as the in-vehicle device 1. In this case, a measurer such as a power meter is allowed to carry the portable device 2. And an electric power meter etc. transmit the signal for distance calculation, in order to discriminate | determine whether the portable device 2 is less than the predetermined distance. And when a power meter etc. discriminate | determine that the portable device 2 is less than a predetermined distance, you may provide so that the data value which a power meter etc. measures may be transmitted to the measuring device which a measurer has. By doing so, it is possible to collect the data values without contact with the power meter or the like in collecting the data values measured by the power meter or the like. Furthermore, in recent years, data values measured by a power meter or the like can be collected via the Internet or the like, but the data values may be read by a third party. However, if the data value measured by the power meter or the like is collected using the power meter or the portable device 2 as described above, the risk of reading the data value by a third party is reduced and security can be improved. It becomes. Also, if there is a relay device between the portable device 2 and the power meter or the like, the power meter or the like unless the distance between the portable device 2 and the power meter or the like calculated in the power meter or the like is less than a predetermined distance Determine. Therefore, the power meter or the like stops communication with the portable device 2. Therefore, it is possible to prevent the data value measured by the power meter from being read via the relay device.

更に、保護者による保護を必要とする人、例えば子供に携帯機2を所持させ、電柱に車載機1と同一の機能を有する捜索機を設ける。そして、当該携帯機2を所持する子供が、例えば誘拐等にあった場合、子供を追跡するための情報として役立てることも可能となる。この場合、電柱に設けられた捜索機は距離算出用信号を送信する。携帯機2を所持した子供が、当該捜索機が設けられた電柱の近傍を通過すると、携帯機2からの距離算出用信号が捜索機に送信される。このとき、捜索機は携帯機2までの距離を算出するとともに、携帯機2から距離算出用信号が送信されてきた時刻情報を例えばFlashメモリ6に記憶させる。そして、例えば警察などが捜索機のFlashメモリ6に記憶された当該時刻情報を読み出すことによって、子供が何時、捜索機からどの位離れた場所を通過したのかを判断することが可能となる。また、捜索機による前述した時刻情報を、通信網を通じて当該子供の保護者等に配信することにより子供がいる場所を把握することも可能となる。更に、仮に携帯機2と捜索機との間に中継機がある場合、携帯機2の例えば警報部(不図示)に警報を発せさせることが可能である。そのため、保護者等が中継機を持つ何者かによって子供が例えば誘拐される可能性があることを素早く知ることができる。よって保護者等が子供の誘拐等を未然に防ぐことが可能となる。   Further, a person who needs protection by a guardian, for example, a child, carries the portable device 2, and a searcher having the same function as the in-vehicle device 1 is provided on the utility pole. And when the child who possesses the said portable device 2 is in kidnapping etc., it can also serve as information for tracking a child. In this case, the searcher provided on the utility pole transmits a distance calculation signal. When the child carrying the portable device 2 passes near the utility pole provided with the search device, a distance calculation signal from the portable device 2 is transmitted to the search device. At this time, the searcher calculates the distance to the portable device 2 and stores the time information when the distance calculation signal is transmitted from the portable device 2 in, for example, the Flash memory 6. Then, for example, by reading the time information stored in the flash memory 6 of the search machine by the police or the like, it becomes possible to determine when and how far the child has passed from the search machine. It is also possible to grasp the place where the child is present by distributing the above-mentioned time information by the searcher to the guardian of the child through the communication network. Furthermore, if there is a relay device between the portable device 2 and the search device, for example, an alarm unit (not shown) of the portable device 2 can be alerted. Therefore, it is possible to quickly know that a child may be kidnapped, for example, by someone whose guardian or the like has a repeater. Therefore, parents or the like can prevent children from being kidnapped.

本発明に係る距離算出システムの全体構成の一例を示す機能ブロック図である。It is a functional block diagram which shows an example of the whole structure of the distance calculation system which concerns on this invention. 本発明に係る距離算出システムの動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of the distance calculation system which concerns on this invention. 本発明に係る距離算出システムの動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of the distance calculation system which concerns on this invention. 本発明に係る距離算出システムの動作の一例を示すタイミングチャートである。It is a timing chart which shows an example of operation | movement of the distance calculation system which concerns on this invention. 距離算出用信号の変化を示す図である。It is a figure which shows the change of the signal for distance calculation. 本発明に係る距離算出システムの動作の一例を示すタイミングチャートである。It is a timing chart which shows an example of operation | movement of the distance calculation system which concerns on this invention. 距離算出用信号の変化を示す図である。It is a figure which shows the change of the signal for distance calculation. 本発明に係る距離算出システムの全体構成の一例を示す図である。It is a figure which shows an example of the whole structure of the distance calculation system which concerns on this invention. 本発明に係る距離算出システムの動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of the distance calculation system which concerns on this invention. 車載機1A、1B、1C、1Dによる携帯機2の検出を示す図である。It is a figure which shows the detection of the portable device 2 by vehicle equipment 1A, 1B, 1C, 1D. モニタ92の表示画面の一例を示す図である。It is a figure which shows an example of the display screen of the monitor. 中継機A、Bを介した車載機101と携帯機102の通信を示す図である。It is a figure which shows communication of the vehicle equipment 101 and the portable device 102 via the relay machines A and B. FIG.

符号の説明Explanation of symbols

1、101 車載機
2、102 携帯機
3、11、90 CPU
4 カウンタ
5、27 タイマ
6、13 Flashメモリ
7 送信部
8 受信部
9、19 送信アンテナ
10、18 受信アンテナ
12 入力部
14 DET
15 変調器
16、17 RF
20、21、22 インバータ
23 フラグ
24 復調部
25 変調部
26 OSC
92 モニタ
DESCRIPTION OF SYMBOLS 1,101 In-vehicle machine 2,102 Portable machine 3, 11, 90 CPU
4 Counter 5, 27 Timer 6, 13 Flash memory 7 Transmitting unit 8 Receiving unit 9, 19 Transmitting antenna 10, 18 Receiving antenna 12 Input unit 14 DET
15 Modulator 16, 17 RF
20, 21, 22 Inverter 23 Flag 24 Demodulator 25 Modulator 26 OSC
92 Monitor

Claims (11)

第1通信装置と第2通信装置との間の距離を算出する距離算出システムであって、
前記第1通信装置は、
前記第2通信装置との間の距離を算出するための距離算出用信号を送信する送信部と、
前記第2通信装置から返信された前記距離算出用信号を受信することによって、送信したときの当該距離算出用信号と、受信したときの当該距離算出用信号と、の位相差を検出する検出部と、
前記検出部にて検出された前記位相差に基づいて、前記第2通信装置との間の距離を算出する算出部と、を備え、
前記第2通信装置は、
前記第1通信装置から送信された前記距離算出用信号を返信する返信部を備えた、
ことを特徴とする距離算出システム。
A distance calculation system for calculating a distance between a first communication device and a second communication device,
The first communication device is
A transmitter for transmitting a distance calculation signal for calculating a distance to the second communication device;
By detecting the distance calculation signal returned from the second communication device, a detection unit that detects a phase difference between the distance calculation signal when transmitted and the distance calculation signal when received When,
A calculation unit that calculates a distance to the second communication device based on the phase difference detected by the detection unit;
The second communication device is
A reply unit for returning the distance calculation signal transmitted from the first communication device;
A distance calculation system characterized by that.
前記第1通信装置は、
前記距離算出用信号を第1の周波数の搬送波で変調する第1変調部と、前記第2通信装置からの前記第1の周波数よりも高い第2の周波数の搬送波で変調された前記距離算出用信号を復調する第1復調部と、を有し、
前記第2通信装置は、
前記第1通信装置からの前記第1変調部にて変調された前記距離算出用信号を復調する第2復調部と、前記第2復調部にて復調された前記距離算出用信号を前記第2の周波数の搬送波で変調する第2変調部と、を有する、
ことを特徴とする請求項1に記載の距離算出システム。
The first communication device is
A first modulation unit that modulates the distance calculation signal with a carrier of a first frequency; and the distance calculation modulated by a carrier of a second frequency higher than the first frequency from the second communication device. A first demodulator that demodulates the signal,
The second communication device is
A second demodulation unit that demodulates the distance calculation signal modulated by the first modulation unit from the first communication device; and a second demodulation unit that demodulates the distance calculation signal demodulated by the second demodulation unit. A second modulation unit that modulates with a carrier wave having a frequency of
The distance calculation system according to claim 1.
前記第1通信装置は、
前記算出部にて算出された前記第1通信装置と前記第2通信装置との間の距離が、予め定められた距離未満であるか否かを判別する判別部を有し、
前記算出部にて算出された前記第1通信装置と前記第2通信装置との間の距離が、前記予め定められた距離以上であると前記判別部が判別したときの判別結果に基づいて、前記第2通信装置との通信を停止する、
ことを特徴とする請求項1又は請求項2に記載の距離算出システム。
The first communication device is
A determination unit that determines whether a distance between the first communication device and the second communication device calculated by the calculation unit is less than a predetermined distance;
Based on the determination result when the determination unit determines that the distance between the first communication device and the second communication device calculated by the calculation unit is equal to or greater than the predetermined distance, Stopping communication with the second communication device;
The distance calculation system according to claim 1 or 2, characterized by the above.
前記第2通信装置は、
前記距離算出用信号を返信すべく前記返信部を動作状態とする切替部を有し、
前記第1通信装置は、
前記第2通信装置との間の距離を前記算出部にて算出すべく前記返信部を動作状態とするための切替信号を送信し、
前記切替部は、前記第1通信装置からの前記切替信号に基づいて前記返信部を動作状態とする、
ことを特徴とする請求項1乃至請求項3の何れかに記載の距離算出システム。
The second communication device is
A switching unit that puts the reply unit into an operating state to send back the distance calculation signal;
The first communication device is
Transmitting a switching signal for setting the return unit in an operating state so that the calculation unit calculates a distance to the second communication device;
The switching unit sets the reply unit to an operating state based on the switching signal from the first communication device.
The distance calculation system according to any one of claims 1 to 3, wherein:
前記第1通信装置は、
前記距離算出用信号を生成する生成部を有し、
前記送信部は、
前記第2通信装置から返信された前記距離算出用信号を前記第1通信装置が受信するまで、前記生成部が生成する前記距離算出用信号を繰り返し送信し、
前記生成部は、
所定数の前記距離算出用信号を生成するごとに、当該距離算出用信号のパターンを変える、
ことを特徴とする請求項1乃至請求項4の何れかに記載の距離算出システム。
The first communication device is
A generator for generating the distance calculation signal;
The transmitter is
Until the first communication device receives the distance calculation signal sent back from the second communication device, repeatedly transmits the distance calculation signal generated by the generation unit,
The generator is
Each time a predetermined number of the distance calculation signals are generated, the pattern of the distance calculation signal is changed.
The distance calculation system according to any one of claims 1 to 4, wherein:
前記第1変調部は、前記距離算出用信号を前記第1の周波数の搬送波でASK変調し、
前記第2復調部は、前記第1通信装置からの前記第1変調部にてASK変調された前記距離算出用信号を復調し、
前記第2変調部は、前記第2復調部にて復調された前記距離算出用信号を前記第2の周波数の搬送波でFSK変調し、
前記第1復調部は、前記第2通信装置からの前記第2変調部にてFSK変調された前記距離算出用信号を復調する、
ことを特徴とする請求項2乃至請求項5の何れかに記載の距離算出システム。
The first modulation unit performs ASK modulation on the distance calculation signal with a carrier wave of the first frequency,
The second demodulator demodulates the distance calculation signal ASK-modulated by the first modulator from the first communication device,
The second modulation unit FSK-modulates the distance calculation signal demodulated by the second demodulation unit with a carrier wave of the second frequency,
The first demodulator demodulates the distance calculation signal FSK-modulated by the second modulator from the second communication device.
The distance calculation system according to any one of claims 2 to 5, wherein
前記第1通信装置と前記第2通信装置との通信をスペクトラム拡散を用いて行うべく、
前記第1変調部は、前記距離算出用信号を前記第1の周波数の搬送波で1次変調した後、前記第1の周波数の搬送波で1次変調された前記距離算出用信号を2次(拡散)変調し、
前記第2復調部は、前記第1通信装置からの前記第1変調部にて2次(拡散)変調された前記距離算出用信号を逆拡散して復調し、
前記第2変調部は、前記第2復調部にて逆拡散して復調された前記距離算出用信号を前記第2の周波数の搬送波で1次変調した後、前記第2の周波数の搬送波で1次変調された前記距離算出用信号を2次(拡散)変調し、
前記第1復調部は、前記第2通信装置からの前記第2変調部にて2次(拡散)変調された前記距離算出用信号を逆拡散して復調する、
ことを特徴とする請求項2乃至請求項5の何れかに記載の距離算出システム。
To perform communication between the first communication device and the second communication device using spread spectrum,
The first modulation unit first-modulates the distance calculation signal with a carrier wave having the first frequency, and then second-orders (spreads) the distance calculation signal first-order modulated with the carrier wave having the first frequency. ) Modulate and
The second demodulator despreads and demodulates the distance calculation signal that is second-order (spread) modulated by the first modulator from the first communication device,
The second modulation unit first modulates the distance calculation signal despread and demodulated by the second demodulation unit with the carrier wave of the second frequency, and then 1 with the carrier wave of the second frequency. Second-order (spreading) modulation of the distance-modulated signal for distance calculation,
The first demodulator despreads and demodulates the distance calculation signal that is second-order (spread) modulated by the second modulator from the second communication device.
The distance calculation system according to any one of claims 2 to 5, wherein
前記第1通信装置は、
前記送信部が前記距離算出用信号を送信するごとにリセットされ、前記第2通信装置から返信された前記距離算出用信号を前記第1通信装置が受信するまでの時間を計時するタイマと、
前記タイマがリセットされるごとにリセットされ、前記検出部にて検出された前記位相差を所定周波数のクロックでカウントするカウンタと、
前記カウンタのカウント値に基づいて、前記算出部が前記第1通信装置と前記第2通信装置の間の距離を算出する基となる情報が記憶された記憶部と、を有し、
前記検出部は、
前記タイマが計時する前記時間を、送信したときの前記距離算出用信号と受信したときの前記距離算出用信号との前記位相差として検出し、
前記算出部は、
前記カウンタが前記位相差を前記所定周波数のクロックでカウントしたときのカウント値と、前記記憶部に記憶された情報とに基づいて、前記第1通信装置と前記第2通信装置との間の距離を算出する、
ことを特徴とする請求項1乃至請求項7の何れかに記載の距離算出システム。
The first communication device is
A timer that counts the time until the first communication device receives the distance calculation signal that is reset each time the transmission unit transmits the distance calculation signal and is returned from the second communication device;
A counter that is reset every time the timer is reset, and that counts the phase difference detected by the detection unit with a clock having a predetermined frequency;
A storage unit storing information on which the calculation unit calculates a distance between the first communication device and the second communication device based on a count value of the counter;
The detector is
Detecting the time counted by the timer as the phase difference between the distance calculation signal when transmitted and the distance calculation signal when received;
The calculation unit includes:
A distance between the first communication device and the second communication device based on a count value obtained when the counter counts the phase difference with the clock having the predetermined frequency and information stored in the storage unit. To calculate,
The distance calculation system according to claim 1, wherein:
前記第1通信装置は自動車に設けられ、
前記自動車のドアのアンロック又はロックを制御する制御部に対し、
前記算出部にて算出された前記第1通信装置と前記第2通信装置との間の距離が前記予め定められた距離未満であると前記判別部が判別したときの判別結果を、前記ドアをアンロックするための信号として供給し、
前記算出部にて算出された前記第1通信装置と前記第2通信装置との間の距離が前記予め定められた距離以上であると前記判別部が判別したときの判別結果を、前記ドアをロックするための信号として供給する、
ことを特徴とする請求項3乃至請求項8の何れかに記載の距離算出システム。
The first communication device is provided in an automobile;
For the control unit that controls the unlocking or locking of the door of the automobile,
The determination result when the determination unit determines that the distance between the first communication device and the second communication device calculated by the calculation unit is less than the predetermined distance is displayed on the door. As a signal to unlock,
When the determination unit determines that the distance between the first communication device and the second communication device calculated by the calculation unit is equal to or greater than the predetermined distance, Supply as a signal to lock,
The distance calculation system according to any one of claims 3 to 8, wherein
前記第2通信装置は、警報を発するための警報部を有し、
前記第1通信装置は、
前記算出部にて算出された前記第1通信装置と前記第2通信装置との間の距離が、前記予め定められた距離以上であると前記判別部が判別したときの判別結果に基づいて、前記警報部が警報を発するための警報信号を送信し、
前記警報部は、
前記第1通信装置からの前記警報信号に基づいて警報を発する、
ことを特徴とする請求項3乃至請求項9の何れかに記載の距離算出システム。
The second communication device has an alarm unit for issuing an alarm,
The first communication device is
Based on the determination result when the determination unit determines that the distance between the first communication device and the second communication device calculated by the calculation unit is equal to or greater than the predetermined distance, The alarm unit transmits an alarm signal for issuing an alarm,
The alarm unit is
Issuing an alarm based on the alarm signal from the first communication device;
The distance calculation system according to claim 3, wherein the distance calculation system includes:
第1通信装置と第2通信装置との間の距離を算出する距離算出システムの距離算出方法であって、
前記第1通信装置は、前記第2通信装置との間の距離を算出するための距離算出用信号を送信し、
前記第2通信装置は、前記第1通信装置から送信された前記距離算出用信号を返信し、
前記第1通信装置は、前記第2通信装置から返信された前記距離算出用信号を受信することによって、送信したときの当該距離算出用信号と受信したときの当該距離算出用信号との位相差を検出し、当該位相差に基づいて前記第2通信装置との間の距離を算出する、
ことを特徴とする距離算出システムの距離算出方法。

A distance calculation method of a distance calculation system for calculating a distance between a first communication device and a second communication device,
The first communication device transmits a distance calculation signal for calculating a distance to the second communication device,
The second communication device returns the distance calculation signal transmitted from the first communication device,
The first communication device receives the distance calculation signal returned from the second communication device, so that the phase difference between the distance calculation signal when transmitted and the distance calculation signal when received is received. And calculating a distance to the second communication device based on the phase difference.
The distance calculation method of the distance calculation system characterized by the above-mentioned.

JP2004304756A 2004-10-19 2004-10-19 Distance calculation system, and distance calculation method for the distance calculation system Withdrawn JP2006118886A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2004304756A JP2006118886A (en) 2004-10-19 2004-10-19 Distance calculation system, and distance calculation method for the distance calculation system
US11/245,497 US7466219B2 (en) 2004-10-19 2005-10-07 Communication device and distance calculation system
TW094136240A TWI267626B (en) 2004-10-19 2005-10-17 Communication device and distance calculation system
KR1020050098644A KR100770524B1 (en) 2004-10-19 2005-10-19 Communication device and distance calculation system
CNA2005101140448A CN1801660A (en) 2004-10-19 2005-10-19 Communication device and distance calculation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004304756A JP2006118886A (en) 2004-10-19 2004-10-19 Distance calculation system, and distance calculation method for the distance calculation system

Publications (1)

Publication Number Publication Date
JP2006118886A true JP2006118886A (en) 2006-05-11

Family

ID=36536923

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004304756A Withdrawn JP2006118886A (en) 2004-10-19 2004-10-19 Distance calculation system, and distance calculation method for the distance calculation system

Country Status (2)

Country Link
JP (1) JP2006118886A (en)
CN (1) CN1801660A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011052412A (en) * 2009-08-31 2011-03-17 Tokai Rika Co Ltd Electronic key system of vehicle
JP2013032648A (en) * 2011-08-02 2013-02-14 Nippon Soken Inc Radio communication system and method of manufacturing in-vehicle system in radio communication system
WO2013118454A1 (en) * 2012-02-09 2013-08-15 北陸日本電気ソフトウェア株式会社 Information processing system
WO2014119225A1 (en) * 2013-02-01 2014-08-07 株式会社デンソー Control system
KR20170089260A (en) * 2016-01-26 2017-08-03 한국전자통신연구원 Apparatus and Method for Generating 3D Face Model using Mobile Device
KR20190005309A (en) * 2017-07-06 2019-01-16 엘지이노텍 주식회사 Depth information acquiring method for three dimensional object
KR20190029095A (en) * 2017-09-11 2019-03-20 삼성전자주식회사 Apparatus and method for processing image received through a plurality of cameras
JP2020046321A (en) * 2018-09-19 2020-03-26 株式会社東芝 Distance measuring system, distance measuring device, and distance measurement method
WO2021192598A1 (en) * 2020-03-26 2021-09-30 株式会社デンソー Distance estimation device
WO2021192597A1 (en) * 2020-03-26 2021-09-30 株式会社デンソー Security system
JP2021188925A (en) * 2020-05-26 2021-12-13 株式会社東海理化電機製作所 Control device and program
JP2022524644A (en) * 2019-03-25 2022-05-09 株式会社デンソー Upsampling and cross-correlation for arrival time determination in passive entry / passive start systems

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520508B (en) * 2008-02-27 2011-08-24 田永茂 Measuring method of casting angle of caster
CN103858149A (en) * 2011-10-07 2014-06-11 阿萨阿布洛伊捷克斯洛伐克有限责任公司Fab汽车安防分公司 Solutions for relay attacks on passive keyless entry and go
US9065689B2 (en) * 2011-12-22 2015-06-23 Continental Automotive Systems, Inc. Apparatus and method for receiving signals in a vehicle
JP6405639B2 (en) * 2014-02-06 2018-10-17 アイシン精機株式会社 Control device and vehicle control system
CN106605034B (en) * 2014-08-29 2019-08-16 阿尔卑斯阿尔派株式会社 Keyless entry device
FR3040498B1 (en) * 2015-08-31 2018-02-09 Valeo Comfort And Driving Assistance METHOD FOR DETERMINING A DISTANCE BETWEEN A VEHICLE AND A VEHICLE ACCESS AND STARTING IDENTIFIER
CN107328354B (en) * 2016-04-29 2019-05-31 美国西北仪器公司 A kind of phase type Electronic tape measure and its measurement of length method
JP6699610B2 (en) * 2016-12-20 2020-05-27 株式会社オートネットワーク技術研究所 Inter-vehicle communication system, roadside communication device, and inter-vehicle communication method
KR102668442B1 (en) * 2016-12-29 2024-05-24 현대자동차주식회사 Vehicle and control method thereof
CN110706496A (en) * 2018-07-10 2020-01-17 北京耘科科技有限公司 Acoustic-based environment sensing method and system
JP7199391B2 (en) * 2020-02-28 2023-01-05 株式会社東芝 rangefinder

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011052412A (en) * 2009-08-31 2011-03-17 Tokai Rika Co Ltd Electronic key system of vehicle
JP2013032648A (en) * 2011-08-02 2013-02-14 Nippon Soken Inc Radio communication system and method of manufacturing in-vehicle system in radio communication system
WO2013118454A1 (en) * 2012-02-09 2013-08-15 北陸日本電気ソフトウェア株式会社 Information processing system
JPWO2013118454A1 (en) * 2012-02-09 2015-05-11 Necソリューションイノベータ株式会社 Information processing system
WO2014119225A1 (en) * 2013-02-01 2014-08-07 株式会社デンソー Control system
JP2014150425A (en) * 2013-02-01 2014-08-21 Denso Corp Control system
KR20170089260A (en) * 2016-01-26 2017-08-03 한국전자통신연구원 Apparatus and Method for Generating 3D Face Model using Mobile Device
KR102365721B1 (en) 2016-01-26 2022-02-22 한국전자통신연구원 Apparatus and Method for Generating 3D Face Model using Mobile Device
KR102317278B1 (en) 2017-07-06 2021-10-26 엘지이노텍 주식회사 Depth information acquiring method for three dimensional object
KR20190005309A (en) * 2017-07-06 2019-01-16 엘지이노텍 주식회사 Depth information acquiring method for three dimensional object
KR102324702B1 (en) 2017-09-11 2021-11-10 삼성전자주식회사 Apparatus and method for processing image received through a plurality of cameras
KR20190029095A (en) * 2017-09-11 2019-03-20 삼성전자주식회사 Apparatus and method for processing image received through a plurality of cameras
JP2020046321A (en) * 2018-09-19 2020-03-26 株式会社東芝 Distance measuring system, distance measuring device, and distance measurement method
JP2022524644A (en) * 2019-03-25 2022-05-09 株式会社デンソー Upsampling and cross-correlation for arrival time determination in passive entry / passive start systems
JP7380706B2 (en) 2019-03-25 2023-11-15 株式会社デンソー Upsampling and cross-correlation for arrival time determination in passive entry/passive start systems
WO2021192597A1 (en) * 2020-03-26 2021-09-30 株式会社デンソー Security system
JP2021156704A (en) * 2020-03-26 2021-10-07 株式会社デンソー Security system
JP2021156705A (en) * 2020-03-26 2021-10-07 株式会社デンソー Distance estimation device
WO2021192598A1 (en) * 2020-03-26 2021-09-30 株式会社デンソー Distance estimation device
JP7359054B2 (en) 2020-03-26 2023-10-11 株式会社デンソー distance estimation device
JP7424160B2 (en) 2020-03-26 2024-01-30 株式会社デンソー security system
JP2021188925A (en) * 2020-05-26 2021-12-13 株式会社東海理化電機製作所 Control device and program
JP7441116B2 (en) 2020-05-26 2024-02-29 株式会社東海理化電機製作所 Control unit and program

Also Published As

Publication number Publication date
CN1801660A (en) 2006-07-12

Similar Documents

Publication Publication Date Title
KR100770524B1 (en) Communication device and distance calculation system
KR100697147B1 (en) Position detection system, position detection method of position detection system, position detection communication device
JP2006118886A (en) Distance calculation system, and distance calculation method for the distance calculation system
KR100929134B1 (en) Electronic key system and method
CN111201165B (en) Intelligent control method and device for vehicle for defending against relay station attack by utilizing mobile equipment
Mukhopadhyay et al. An attempt to develop an IOT based vehicle security system
JPWO2004086294A1 (en) Authentication card and wireless authentication system for mutual authentication using the authentication card
CN105339989A (en) Method for performing automatic opening of a vehicle or a payment process, and associated apparatus
WO2018100783A1 (en) Detector, detection method and detection program
JP2010215001A (en) Communication device and communication method
CN109118613A (en) Operate the method and passive locking device of the passive locking device based on radio
JP2009166550A (en) On-vehicle equipment remote control system and on-vehicle equipment remote control method
JP5784780B1 (en) Wireless remote control device
JP3721145B2 (en) In-vehicle device remote control system
JP2008255750A (en) In-vehicle wireless communication device and in-vehicle wireless communication system
JP2006118887A (en) Distance calculation communications system, and distance calculation program used in the distance calculation communications system
JP7348787B2 (en) Control device, smart key system, control method, and portable device
JP2008092267A (en) Vehicle-mounted device remote control system and method
JP2006121226A (en) Communication apparatus, and program used for communication apparatus
JP2007191870A (en) Remote control system for vehicle-mounted equipment
JP4357515B2 (en) Electronic key system
JP2006118148A (en) Communication management system, communication management method for communication management system, communication management device, and communication device
JP4720143B2 (en) Cardless ETC in-vehicle device and in-vehicle system
JP2006118888A (en) Position detecting system, position detection method for position detecting system, position detection communications device, and the communications device
JP2000145224A (en) Keyless entry system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071004

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20090706