Distance measuring device
Through the ranging device of carrier phase detection and signal power adjustment, the relay attack problem caused by the reduction of ranging accuracy under the influence of multi-path is solved, ensuring safe operation of the engine and the door.
Patent Information
- Application Number
- CN202010847682.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-02-28
- Filing Date
- 2020-08-21
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2040-08-21
AI Technical Summary
When the engine starts, the distance measurement accuracy is reduced due to the influence of multi-path, and the relay attack cannot be effectively prevented, which may lead to the engine being started incorrectly.
Using a range measurement device based on carrier phase detection, by sending and receiving multiple carrier signals between the vehicle and the key, the phase difference is calculated to determine the distance, and the transmission power of the range measurement signal is reduced when the key is in the vehicle to reduce the middle. The possibility of subsequent attacks.
Even in an environment where the distance measurement accuracy is reduced, it can effectively prevent relay attacks, ensuring safe start of the engine and reasonable unlocking of the door.
Smart Images

Figure CN113325402B_ABST
Abstract
Description
[0001] This application claims priority based on Japanese Patent Application No. 2020-32708 (filing date: February 28, 2020), and the entire contents of the basic application are incorporated herein by reference. Technical Field
[0002] Embodiments relate to a distance measuring device. Background Art
[0003] In recent years, keyless entry systems that facilitate locking and unlocking of vehicle doors have been adopted in many cars. According to this technology, the user of the car can lock and unlock the vehicle doors by using the communication between the car key and the car. In addition, in recent years, smart key systems that allow users to lock and unlock vehicle doors or start the engine without touching the key have also become widely popular.
[0004] On the other hand, there are often cases where attackers break into the communication between the key and the car and steal the car or the items inside the car. As a defense measure against this attack, the so-called relay attack, the following countermeasures are being studied: measuring the distance between the key and the car, and prohibiting the door from being unlocked when it is determined that the distance is greater than a specified distance.
[0005] When the engine is started, communication is also carried out between the antenna in the car and the key. When correctly authenticated, the user can start the engine, but relay attacks can also be carried out when the engine is started.
[0006] However, in a vehicle, due to the influence of multipath, the accuracy of the measured distance is reduced. The reduction in distance measurement accuracy may make it impossible to take appropriate countermeasures against relay attacks and start the engine. Summary of the invention
[0007] The embodiment provides a distance measuring device capable of appropriately taking countermeasures against relay attacks even in an environment where the distance measuring accuracy is reduced.
[0008] The distance measuring device of the embodiment is a device for calculating the distance between a vehicle and a key based on carrier phase detection, and the distance measuring device has a calculation unit, and the calculation unit calculates the distance between the first device and the second device based on phase information obtained by at least one of the first device and the second device that are freely movable, and the first device provided in the vehicle has: a first reference signal source; and a first transceiver, using the output of the first reference signal source, sending a plurality of first distance measuring signals that are respectively carrier signals, and receiving a plurality of second distance measuring signals from the second device that are respectively carrier signals, and the second device provided in the key has: a second reference signal source that is independent of the first reference signal source and a second transceiver, which uses the output of the second reference signal source to transmit the plurality of second ranging signals and receive the plurality of first ranging signals, wherein the calculation unit calculates the distance using a detection result of a phase of each carrier signal obtained by receiving the plurality of first ranging signals and the plurality of second ranging signals, and in at least one of the first device and the second device, a second transmission power when the plurality of first ranging signals or the plurality of second ranging signals are transmitted when the key is inside the vehicle is set to be smaller than a first transmission power when the plurality of first ranging signals or the plurality of second ranging signals are transmitted when the key is outside the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 This is a diagram showing the configuration of a wireless communication system including the distance measuring device according to the first embodiment.
[0010] Figure 2 This is a diagram for explaining the configuration of a smart key system to which the wireless communication system according to the first embodiment is applied.
[0011] Figure 3 This is a diagram for explaining the state of authentication and distance measurement when a user holding a key approaches the vicinity of a car according to the first embodiment.
[0012] Figure 4 This is a diagram showing a sequence of transmitting and receiving wireless signals between a vehicle device and a key device according to the first embodiment.
[0013] Figure 5 This is a diagram showing the configuration of a distance measuring device according to the first embodiment.
[0014] Figure 6 This is a circuit diagram of a distance measuring unit of one of the two devices according to the first embodiment.
[0015] Figure 7 This is a circuit diagram of the distance measuring unit of the other of the two devices according to the first embodiment.
[0016] Figure 8 This is a flowchart showing an example of a control flow of the transmission power of the first ranging signal in the processor according to the first embodiment.
[0017] Fig. 9 This is a flowchart showing an example of a control flow of the transmission power of the second ranging signal in the processor according to the modification example of the first embodiment.
[0018] Fig.10 This is a circuit diagram of a distance measuring unit of one of the two devices according to the second embodiment.
[0019] Fig.11 This is a flowchart showing an example of the flow of a stop determination process of a distance measurement process in the processor according to the second embodiment.
[0020] Fig.12 This is a circuit diagram of the distance measuring unit of the other of the two devices according to the modification of the second embodiment. DETAILED DESCRIPTION
[0021] Hereinafter, embodiments will be described with reference to the drawings.
[0022] (First embodiment)
[0023] (constitute)
[0024] Figure 1 1 is a diagram showing the configuration of a wireless communication system including the distance measuring device according to the present embodiment. Figure 2 1 is a diagram for explaining the configuration of a smart key system to which the wireless communication system according to the present embodiment is applied. At least one of the device 1 and the device 2 is movable.
[0025] The smart key system 100 is configured to include a car C as a vehicle and a key K. The key K is used to lock and unlock the doors of the car C and start the engine. More specifically, the smart key system 100 performs wireless communication according to a predetermined protocol between a device 1 mounted on the car C and a device 2 built into the key K, and when the key K is correctly authenticated in the car, the doors can be locked. As described later, in the smart key system 100, the distance between the device 1 and the device 2 is calculated based on carrier phase detection.
[0026] When the door of car C is locked and the key K is outside car C, if the distance between device 1 and device 2 is within the specified distance D1, when the hand touches the door handle, the door lock is unlocked and the user can open the door and enter car C.
[0027] Furthermore, when the engine has been stopped and the key K is in the car C, if the distance between the device 1 and the device 2 is within the prescribed distance D2, the engine starts when the engine start button is pressed.
[0028] When the user enters the LF area, which is a receivable area of the LF (Low Frequency) signal of the device 1 mounted on the car C, authentication is performed.
[0029] like Figure 1 As shown, the device 1 provided in the car C includes a processor 11, an LF transmitter 12, an RF (Radio Frequency) receiver 13, and a distance measuring unit 14. The device 2 provided in the key K includes a processor 21, an LF receiver 22, an RF transmitter 23, and a distance measuring unit 24. The processor 11 monitors and controls the operation of the LF transmitter 12, the RF receiver 13, and the distance measuring unit 14. Similarly, the processor 21 monitors and controls the operation of the LF receiver 22, the RF transmitter 23, and the distance measuring unit 24.
[0030] A plurality of antennas for the LF transmission unit 12 are mounted in the car C. The plurality of antennas include a plurality of LF transmission antennas for transmitting LF signals LF1 to the outside of the car and a plurality of LF transmission antennas for transmitting LF signals LF2 to the inside of the car.
[0031] The LF signal is, for example, a radio wave signal of a 130 kHz frequency band, i.e., a beacon signal. The LF signal includes, for example, LF identification code information for identifying an LF signal LF1 for use outside the vehicle and an LF signal LF2 for use inside the vehicle. When receiving the LF signal, the device 2 can determine whether the received LF signal is the LF signal LF1 or the LF signal LF2 based on the LF identification code information.
[0032] The device 2 built into the key K transmits the key identification code information in response to the reception of the LF signal. The device 1 performs authentication based on the received key identification code information. The transmission of the key identification code information for authentication uses a radio wave signal of the UHF band, for example, the 300MHz band. When authenticated, the devices 1 and 2 perform distance measurement processing respectively, and perform distance measurement between the devices 1 and 2.
[0033] Figure 3 2 is a diagram for explaining the authentication and distance measurement when a user U holding a key K approaches a car C. Figure 3In the figure, the range shown by the dotted line represents the LF area LFO outside the car C. The LF area LFO is the range that the LF signal LF1 can reach from the LF transmitting antenna facing the outside of the car, for example, the area within 1.5m to 2m from the center of the side of the car C. When the device 2 held by the user U enters the LF area, after authentication, more than two carrier signals, i.e., ranging signals, are transmitted and received between the devices 1 and 2 multiple times, and multiple ranging is performed. Each ranging signal as a carrier signal is an unmodulated continuous wave (CW). In addition, here, although multiple ranging is performed, it can also be once. The ranging signal is a carrier signal in a sub-gigahertz band, such as a 920MHz band.
[0034] In addition, Figure 3 In FIG. 1 , the range indicated by the two-dot chain line represents the LF area LFI inside the car C. The LF area LFI is a range that the LF signal LF2 can reach from the transmission antenna facing the inside of the car.
[0035] Figure 4 1 is a diagram showing a sequence of transmitting and receiving wireless signals between the device 1 of the car C and the device 2 of the key K.
[0036] When the doors of the car C are locked, the device 1 always intermittently transmits the LF signal LF1 from the LF transmitter 12. The LF signal LF1 is a signal that can only reach the LF region LFO, so the LF receiver 22 of the device 2 can receive the LF signal LF1 only when it is in the LF region LFO.
[0037] In response to the reception of the LF signal LF1, the device 2 transmits the key identification code information, i.e., the ID information of the key K, from the RF transmission unit 23, and at the same time enters a state of waiting for the distance measurement signal (hereinafter, also referred to as the first distance measurement signal) from the device 1. When the RF reception unit 13 of the device 1 receives the identification code information, the processor 11 performs authentication based on the received identification code information. When the processor 11 correctly performs authentication based on the received identification code information, it transmits the first distance measurement signal, and then also transmits the distance measurement signal (hereinafter, also referred to as the second distance measurement signal) from the device 2, and then also transmits and receives the first and second distance measurement signals to measure the distance between the device 1 and the device 2.
[0038] The distance between device 1 and device 2 is measured by the method disclosed in Japanese Patent Publication No. 2018-155724. The distance between device 1 and device 2 is calculated based on the phases of each ranging signal calculated in device 1 and device 2. According to the method disclosed in Japanese Patent Publication No. 2018-155724, device 1 sends two or more (here two) carrier signals as the first ranging signal, and device 2 sends two or more (here two) carrier signals as the second ranging signal. Device 2 detects the phase difference between the two carrier signals of the received first ranging signal, and device 1 detects the phase difference between the two carrier signals of the received second ranging signal. The difference information of the two phases detected by device 2, that is, the phase difference information, is sent to device 1, and device 1 calculates the distance between device 1 and device 2 through a prescribed operation based on the phase difference detected by device 1 and the phase difference detected by device 2.
[0039] In addition, device 2 may also send information on the phases of the two received carrier signals to device 1 , and device 1 may calculate the phase difference between the two carrier signals received in device 2 based on the information on the two phases received from device 2 .
[0040] The device 1 can determine whether there is a relay attack based on the calculated distance Rm between the device 1 and the device 2 (hereinafter referred to as the measured distance). When the measured distance Rm is a specified distance D1, for example, more than 2m, there is a possibility of a relay attack, so the processor 11, for example, does not output a signal to allow the door to be unlocked to the car C. When the measured distance Rm is less than the specified distance D1, the key K is within the specified distance D1 from the car C, so the processor 11, for example, outputs a signal to allow the door to be unlocked to the car C. The device for controlling the unlocking of the door of the car C is, when receiving the permission signal, outputting a control signal for unlocking the door when a human hand touches the door.
[0041] Furthermore, when the user holding the key K is in the vehicle, the LF signal LF2 is transmitted from the transmission antenna facing the vehicle interior, and authentication is performed between the device 1 and the device 2 based on the key identification code information in the same manner as described above. For example, after the vehicle door is unlocked, the LF signal LF2 is intermittently transmitted from the transmission antenna facing the vehicle interior at a predetermined time interval. After authentication, multiple transmissions and receptions of ranging signals are performed between the device 1 and the device 2, and the distance between the device 1 and the device 2 is measured. When the measured distance Rm is greater than the predetermined distance D2, there is a possibility of a relay attack, so the processor 11, for example, does not output a signal allowing the engine to be started to the vehicle C. When the measured distance Rm is less than the predetermined distance D2, the key K is within the predetermined distance D2 from the vehicle C, so the processor 11, for example, outputs a signal allowing the engine to be started to the vehicle C. When the permission signal is received, for example, the device controlling the engine of the vehicle C outputs a control signal for starting the engine when the engine start button is pressed.
[0042] The processor 11 of the device 1 includes a central processing unit (hereinafter referred to as a CPU), a ROM, a RAM, etc., and the ROM stores a software program for controlling the operation of the LF transmission unit 12, the RF reception unit 13, and the distance measurement unit 14. The processor 11 also performs a phase difference calculation based on the second distance measurement signal received in the distance measurement unit 14. Furthermore, the processor 11 calculates the measurement distance Rm using the phase difference obtained by its phase difference calculation and the two phase differences included in the phase difference information received from the device 2, and performs a prescribed action based on the calculated measurement distance Rm. The prescribed action is to output a signal that allows the unlocking of the above-mentioned door after the LF signal LF1 is authenticated, and to output a signal that allows the start of the above-mentioned engine after the LF signal LF2 is authenticated.
[0043] The processor 21 of the device 2 includes a CPU, a ROM, a RAM, etc., and the ROM stores a software program for controlling the operations of the LF receiving unit 22, the RF transmitting unit 23, and the ranging unit 24. The processor 21 also detects or measures the phase based on each first ranging signal received in the ranging unit 24, calculates the difference between the two detected phases, and transmits the phase difference information.
[0044] Here, the processors 11 and 21 are configured to include a CPU and a ROM for executing software programs that realize each function, but may be configured by electronic circuits such as semiconductor devices and FPGAs (Field Programmable Gate Arrays) to realize each function through circuits or the like.
[0045] Figure 52 is a block diagram of a distance measuring device according to the present embodiment. The distance measuring device 200 is configured to include distance measuring units 14 and 24, and calculate the distance between the device 1 and the device 2 based on carrier phase detection. At least one of the device 1 and the device 2 is movable. The distance measuring unit 14 is included in the device 1, and includes a digital unit 31, a transmitting unit 32, a receiving unit 33, an antenna 34, and an antenna switch 35. The digital unit 31, the transmitting unit 32, the receiving unit 33, and the antenna switch 35 are configured as one or more semiconductor devices.
[0046] The distance measuring unit 24 is included in the device 2, and includes a digital unit 41, a transmitting unit 42, a receiving unit 43, an antenna 44, and an antenna switch 45. The digital unit 41, the transmitting unit 42, the receiving unit 43, and the antenna switch 45 are configured as one or more semiconductor devices.
[0047] The digital unit 31 of the device 1 controls the transmitter 32, the receiver 33 and the antenna switch 35 according to the control signal from the processor 11. The digital unit 41 of the device 2 controls the transmitter 42, the receiver 43 and the antenna switch 45 according to the control signal from the processor 21.
[0048] Figure 6 1 is a circuit diagram of the distance measuring unit 14 of the device 1. The digital unit 31 is composed of a digital circuit on a semiconductor device, for example. The digital unit 31 includes a reference oscillator 50, a control unit 51, a phase measuring unit 52, a key-side phase receiving unit 53, and a distance measuring operation unit 54.
[0049] The reference oscillator 50 is a reference signal source for generating a basic clock signal for the operation in the distance measuring unit 14. When receiving a command signal TR1 (hereinafter referred to as a distance measuring start trigger signal) from the processor 11, the control unit 51 controls the operation timing of each block such as the phase measuring unit 52 so as to perform the operation of a predetermined distance measuring sequence.
[0050] The phase measuring unit 52 measures the phase of each second ranging signal (second carrier signal) from the device 2, and calculates the phase difference PD2 between the two second ranging signals. The phase measuring unit 52 is a circuit that measures the two phases of the two second ranging signals from the device 2 received in the receiving unit 33, calculates the phase difference PD2 between the two phases, and outputs it to the ranging operation unit 54.
[0051] The key-side phase receiving unit 53 is a circuit that receives phase difference information between two second distance measurement signals measured in the device 2 and received from the device 2 .
[0052] The ranging operation unit 54 calculates the distance between the device 1 and the device 2 based on the phase difference PD2 of the two second ranging signals of frequencies f1 and f2 received by the device 1, and the phase difference PD1 received from the device 2. Therefore, the ranging operation unit 54 constitutes a calculation unit that calculates the distance between the device 1 and the device 2 based on the phase information (here, two phase difference information) obtained by the device 1 and the device 2. The ranging operation unit 54 calculates the distance using the detection result of the phase of each carrier signal obtained by receiving a plurality of first ranging signals and a plurality of second ranging signals. In particular, the ranging operation unit 54 uses the phase difference PD2 between the second ranging signal of frequency f1 and the second ranging signal of frequency f2 measured in the phase measurement unit 52, and the phase measurement unit 72 (described later) Figure 7 ) is used to calculate the distance based on the phase difference PD1 between the first ranging signal of frequency f1 and the first ranging signal of frequency f2 measured in the processor 11.
[0053] That is, the distance measurement operation unit 54 uses the two phase differences PD1 and PD2 of the four distance measurement signals of the frequencies f1 and f2 to perform distance measurement. That is, the distance measurement operation unit 54 uses the phase difference PD2 of the two second distance measurement signals of the frequencies f1 and f2 received by the distance measurement unit 14 of the device 1 and the phase difference PD1 of the two first distance measurement signals of the frequencies f1 and f2 received by the distance measurement unit 24 of the device 2 to calculate the distance.
[0054] Next, the transmission unit 32 will be described. The digital unit 31 generates data based on the unmodulated signal (CW) of the reference oscillator 50 and outputs the data to the transmission unit 32.
[0055] The transmission unit 32 is an analog circuit including a digital-to-analog converter (hereinafter referred to as DAC) 61 , a low-pass filter (hereinafter referred to as LPF) 62 , a modulator (MOD) 63 , and an amplifier 64 .
[0056] The DAC 61 receives the digital data for the continuous wave (CW) from the digital section 31 and converts into an analog signal. Thus, the digital section 31 generates the digital data for the continuous wave (CW).
[0057] The analog signal of DAC 61 is input to modulator 63 through LPF 62. Modulator 63 frequency-modulates the output signal of LPF 62 according to the frequency switching signal from control unit 51. Here, the analog signal from LPF 62 is modulated to any one of the above-mentioned frequencies f1 and f2.
[0058] The modulator 63 modulates the input signal according to the frequency switching signal from the control unit 51 , and generates a signal having one of the frequencies f1 and f2 .
[0059] The amplifier 64 is a power amplifier, which amplifies the output signal of the modulator 63 and supplies it to the antenna 34 via the antenna switch 35. The amplifier 64 is connected to the control unit 51, and can change the amplification factor according to the power control signal PC1 from the control unit 51. As described later, the control unit 51 reduces the amplification factor of the amplifier 64 under predetermined conditions, thereby reducing the output power of the first carrier signal, i.e., the first ranging signal, transmitted from the device 1.
[0060] The antenna switch 35 operates to connect the antenna 34 to the transmission unit 32 or the reception unit 33 in accordance with an antenna control signal from the control unit 51 .
[0061] Next, the receiving unit 33 will be described. The receiving unit 33 is an analog circuit including a low noise amplifier (hereinafter referred to as LNA) 65, a demodulator (DEMOD) 66, an LPF 67, and an analog-to-digital converter (hereinafter referred to as ADC) 68.
[0062] The LNA 65 amplifies the reception signal from the antenna 34 received via the antenna switch 35, and outputs the amplified signal to the demodulator 66. The demodulator 66 demodulates the output signal of the LNA 65 according to the frequency switching signal from the control unit 51, and outputs a baseband signal.
[0063] The output signal of the demodulator 66 is supplied to the ADC 68 through the LPF 67 . The ADC 68 converts the output signal of the LPF 67 into a digital signal and outputs it to the digital unit 31 .
[0064] As described above, the sending unit 32 and the receiving unit 33 constitute the following first transceiver: using the output of the reference oscillator 50, two (f1, f2) first carrier signals with different frequencies, i.e., two first ranging signals, are sent, and two second carrier signals with the same frequency as the two first carrier signals, i.e., two second ranging signals, are received from the device 2.
[0065] Figure 7 2 is a circuit diagram of the distance measuring unit 24 of the device 2. The digital unit 41 is composed of a digital circuit on a semiconductor device, for example. The digital unit 41 includes a reference oscillator 70, a control unit 71, a phase measuring unit 72, a storage unit 73, a received signal detection unit 74, a modulation unit 75, and a selector 76.
[0066] The reference oscillator 70 is a reference signal source for generating a basic clock signal for the operation in the distance measuring unit 24. The reference oscillator 70 operates independently of the reference oscillator 50 of the device 1. When receiving the distance measurement start trigger signal TR2 from the processor 21, the control unit 71 controls the operation timing of each block such as the phase measurement unit 72 so as to perform the operation of the prescribed distance measurement sequence. After sending the key identification code information, the processor 21 outputs the distance measurement start trigger signal TR2 to the control unit 71 of the distance measuring unit 24.
[0067] The phase measuring unit 72 measures the phase of each first ranging signal (first carrier signal) from the device 1, and calculates the phase difference PD1 between the two first ranging signals. The phase measuring unit 72 is a circuit that measures the phases of the two first ranging signals from the device 1 received in the receiving unit 43, calculates the phase difference PD1 between the two phases, and outputs it to the storage unit 73. Information on the measured phase difference PD1 between the two first ranging signals is stored in the storage unit 73.
[0068] As described above, the storage unit 73 is a register that stores information on the phase difference PD1 between two carrier signals.
[0069] The reception signal detection unit 74 detects the reception of the first first distance measurement signal from the device 1. When receiving the first first distance measurement signal, the reception signal detection unit 74 notifies the control unit 71 of the reception of the first first distance measurement signal.
[0070] The modulation unit 75 modulates the information of the phase difference PD1 into a signal for transmission. Here, the information of the phase difference PD1 is modulated into an IQ signal corresponding to the digital data of each information. Then, the information of the phase difference PD1 measured by the distance measuring unit 24 is transmitted to the distance measuring unit 14 of the device 1.
[0071] The selector 76 selects the data based on the continuous wave (CW) of the reference oscillator 70 or the output signal of the modulation unit 75 according to the data selection signal from the control unit 71 , and outputs the selected data to the transmission unit 42 .
[0072] The control unit 71 is in a state of waiting for the first distance measurement signal from the device 1 of the car C when receiving the distance start trigger signal TR2 from the processor 21 .
[0073] Next, the transmission unit 42 will be described. The transmission unit 42 is an analog circuit including a DAC 81 , an LPF 82 , a modulator (MOD) 83 , and an amplifier 84 .
[0074] The DAC 81 receives the digital data for the continuous wave (CW) from the digital section 41 and converts into an analog signal. Thus, the digital section 81 generates the digital data for the continuous wave (CW).
[0075] The analog signal of DAC 81 is input to modulator 83 through LPF 82. Modulator 83 frequency-modulates the output signal of LPF 82 according to the frequency switching signal from control unit 71. Here, the analog signal from LPF 82 is modulated to any one of the above-mentioned frequencies f1 and f2.
[0076] The modulator 83 modulates the input signal in accordance with the frequency switching signal from the control unit 71 to generate a signal having one of the frequencies f1 and f2.
[0077] Amplifier 84 is a power amplifier that amplifies the output signal of modulator 83 and supplies the amplified signal to antenna 44 via antenna switch 45. Antenna switch 45 operates in accordance with an antenna control signal from control unit 71 to connect antenna 44 to transmission unit 42 or reception unit 43.
[0078] Next, the receiving unit 43 will be described. The receiving unit 43 is an analog circuit including a low noise amplifier (hereinafter referred to as LNA) 85, a demodulator (DEMOD) 86, an LPF 87, and an analog-to-digital converter (hereinafter referred to as ADC) 88.
[0079] The LNA 85 amplifies the reception signal from the antenna 44 received via the antenna switch 45, and outputs the amplified signal to the demodulator 86. The demodulator 86 demodulates the output signal of the LNA 85 according to the frequency switching signal from the control unit 71, and outputs a baseband signal.
[0080] The output signal of the demodulator 86 is supplied to the ADC 88 through the LPF 87 . The ADC 88 converts the output signal of the LPF 87 into a digital signal and outputs the digital signal to the digital unit 41 .
[0081] As described above, the transmitting unit 42 and the receiving unit 43 constitute a second transceiver that uses the output of the reference oscillator 70 to transmit two second carrier signals, namely two second ranging signals, and receives two first carrier signals, namely two first ranging signals, from the device 1 .
[0082] (effect)
[0083] Next, the operation of the distance measuring device described above will be described.
[0084] (1) When the key K is outside the vehicle C and the unlocking is allowed
[0085] When the processor 11 of the device 1 receives the key identification code information for the transmitted LF signal LF1, the device 1 performs authentication based on the received key identification code information. When the authentication is performed correctly, the transmission and reception of a plurality of ranging signals in a predetermined sequence are started.
[0086] When the key identification code information is transmitted in response to reception of the LF signal LF1, the device 2 waits for the first distance measurement signal from the device 1. When the device 2 receives the first distance measurement signal from the device 1, it starts transmitting and receiving a plurality of distance measurement signals in a predetermined sequence.
[0087] Device 1 and device 2 measure the phase of each received ranging signal. Device 2 transmits information of phase difference PD1 between the measured two phases of the two first ranging signals to device 1. Information of phase difference PD1 is modulated by modulation unit 75 and transmitted from device 2 to device 1.
[0088] The distance measurement operation unit 54 of the device 1 calculates the distance between the device 1 and the device 2 based on the phase difference PD2 of the two second distance measurement signals measured by the device 1 and the phase difference PD1 of the two first distance measurement signals included in the phase difference information received from the device 2, and outputs it to the processor 11. In addition, as described above, multiple distance measurements may be performed.
[0089] When the calculated distance is less than the predetermined distance D1, the processor 11 outputs an unlocking permission signal to the device that controls locking and unlocking of the doors of the car C. The predetermined distance D1 is a distance within a range of, for example, 2 to 8 meters after adding a distance measurement error as a margin.
[0090] When the calculated distance is equal to or greater than the predetermined distance D1, there is a possibility of a relay attack, so the processor 11 does not output an unlock permission signal to the device that controls locking and unlocking of the doors of the automobile C.
[0091] As described above, the unlocking of the door is controlled based on the distance measurement result.
[0092] (2) When the key K is in the vehicle C and the engine start permission is determined
[0093] After the door of the car C is opened by allowing unlocking, the device 1 transmits the LF signal LF2 and an authentication process is performed between the device 1 and the device 2 .
[0094] That is, when the processor 11 of the device 1 receives the key identification code information for the transmitted LF signal LF2, the device 1 performs authentication based on the received key identification code information. When the authentication is performed correctly, the transmission and reception of a plurality of distance measurement signals in a predetermined sequence are started.
[0095] Figure 8 1 is a flowchart showing an example of a control flow of the transmission power of the first ranging signal in the processor 11. The key identification code information transmitted from the RF transmission unit 23 of the device 2 is the ID information of the device 2 ... Figure 8 processing.
[0096] The processor 11 determines whether the key identification code information (i.e., ID information) is received (step (hereinafter referred to as S1) 1). When the key identification code information is received (S1: Yes), the processor 11 outputs a transmission power reduction command signal TXP1 for reducing the transmission power of the first ranging signal to the control unit 51 of the ranging unit 14 (S2). If the key identification code information is not received (S1: No), the processor 11 does not perform any processing.
[0097] When receiving the transmission power reduction command signal TXP1, the control unit 51 outputs the power control signal PC1 to the amplifier 64. Therefore, the transmission power of each first ranging signal transmitted from the device 1 is reduced, and the reachable distance of each first ranging signal is shortened. For example, the transmission power is reduced by 20 dB.
[0098] That is, the transmission power of each first ranging signal when determining the permission of engine start is lower than the transmission power of each first ranging signal when determining the permission of door unlocking. In other words, in the device 1, the transmission power when sending multiple first ranging signals when the key K is outside the car C is set to be smaller than the transmission power when sending multiple first ranging signals when the key K is inside the car C.
[0099] As described above, when device 2 transmits key identification code information in response to reception of LF signal LF2, it waits for the first distance measurement signal from device 1. When device 2 receives the first distance measurement signal from device 1, it starts transmitting and receiving a plurality of distance measurement signals in a predetermined sequence.
[0100] Since the transmission power of the first ranging signal of device 1 is reduced, each first ranging signal from device 1 cannot reach device 2 when it is attacked by a relay. As a result, device 2 cannot receive each first ranging signal from device 1.
[0101] However, even if the transmission power of each first ranging signal of device 1 is reduced, if there is no relay attack, device 2 is in the car C and device 1 is close to device 2, so device 2 can receive each first ranging signal from device 1. Therefore, the phase difference of each received ranging signal is calculated in device 1 and device 2. The information of the phase difference PD1 obtained in device 2 is modulated by the modulation unit 75 and sent from device 2 to device 1.
[0102] The distance measurement operation unit 54 of the device 1 calculates the distance between the device 1 and the device 2 based on the phase difference PD2 of the two second distance measurement signals measured in the device 1 and the phase difference PD1 of the two first distance measurement signals received from the device 2, and outputs it to the processor 11. In addition, multiple distance measurements can also be performed in the vehicle.
[0103] The processor 11 compares the calculated distance with a predetermined distance D2 as a threshold value, and determines whether to output or not output a start permission signal to a device that controls the start of the engine of the car C. At this time, the distance D2 is set in consideration of the reduction in ranging accuracy due to multipath in the car C.
[0104] If there is no influence of multipath, the distance D2 is set to the distance between the position where the key K may be located in the space inside the car C and the position of the device 1, for example, several tens of centimeters to 2 meters. However, in the present embodiment, considering the reduction in ranging accuracy caused by multipath inside the car C, the distance D2 is set to, for example, about 10 meters larger than the distance D1. This means that the margin of the distance D2 is increased in accordance with the increase in the error caused by multipath. In addition, depending on the level of reduction in ranging accuracy caused by multipath, the distance D2 can also be set to, for example, about 2 meters smaller than the distance D1. This means that when the key K is inside the car, it is at a closer distance than when it is outside the car.
[0105] When the calculated distance is smaller than the predetermined distance D2, the processor 11 outputs a start permission signal to a device that controls the start of the engine of the automobile C as a predetermined command.
[0106] When the calculated distance is equal to or greater than the predetermined distance D2, the processor 11 does not output a start permission signal to the device that controls the start of the engine of the automobile C because there is a possibility of a relay attack.
[0107] As described above, according to the above embodiment, since the transmission power of each first ranging signal transmitted from the device 1 in the car C is reduced, when a relay attack occurs, the first ranging signal cannot reach the device 2, and ranging cannot be performed.
[0108] Furthermore, since the prescribed distance D2 serving as a threshold for determining whether to output or not output a start permission signal to a device for controlling the start of the engine of automobile C is set to, for example, a few meters, when there is no relay attack, even if affected by multipath, it is possible to appropriately determine whether to allow or not start the engine.
[0109] In the above embodiment, the transmission power of each first ranging signal from the device 1 is reduced, but as a modification, the transmission power of each second ranging signal from the device 2 may be reduced so as to disable ranging.
[0110] Fig. 9This is a flowchart showing an example of a control flow of the transmission power of the second ranging signal in the processor 21 according to the modification of the first embodiment. When the vehicle door is locked, the LF transmission unit 12 of the slave device 1 always intermittently transmits the LF signal LF2.
[0111] The processor 21 of the device 2 determines whether the LF signal LF2 is received (S11). When the LF signal LF2 is received (S11: Yes), Figure 7 As shown by the middle dotted line, the processor 21 outputs a transmission power reduction command signal TXP2 for reducing the transmission power of the second ranging signal to the control unit 71 of the ranging unit 24 (S12). If the LF signal LF2 is not received (S11: No), the processor 21 does not perform any processing.
[0112] When receiving the transmission power reduction command signal TXP2, the control unit 71 performs the following operations: Figure 7 As shown by the middle dotted line, the power control signal PC2 is output to the amplifier 84. The amplifier 84 is connected to the control unit 71 similarly to the amplifier 64 described above, and has a configuration capable of changing the amplification factor according to the power control signal PC2 from the control unit 71.
[0113] As a result, the transmission power of each second ranging signal transmitted from device 2 becomes lower, and the distance that each second ranging signal can reach becomes shorter. For example, the transmission power is reduced by 20 dB. Device 1 transmits the first ranging signal based on the reception of the key identification code information, but cannot receive the second ranging signal from device 2, and cannot perform ranging.
[0114] That is, the transmission power of each second ranging signal when determining whether the engine is allowed to start is lower than the transmission power of each second ranging signal when determining whether the door is allowed to be unlocked. In other words, in the device 2, the transmission power when sending multiple second ranging signals when the key K is inside the car C is set to be smaller than the transmission power when sending multiple second ranging signals when the key K is outside the car C.
[0115] Therefore, even if the transmission power of each second ranging signal from the device 2 is reduced, the same effect as that of the above-described embodiment can be obtained.
[0116] Furthermore, it is also possible to Figure 8 and Fig. 9 That is, the device 1 may reduce the transmission power of the first ranging signal according to the reception of the key identification code information from the device 2, and the device 2 may also reduce the transmission power of the second ranging signal according to the reception of the LF signal LF2 from the device 1.
[0117] In addition, in the above-mentioned embodiment, the transmission power of the first ranging signal and the second ranging signal is reduced, but weak radio waves permitted by the laws of various countries regarding radio waves, for example, weak radio waves that do not require approval from the Minister of Internal Affairs and Communications in Japan, can also be used as the first ranging signal and the second ranging signal with lower transmission power.
[0118] As described above, according to the above embodiment, even in an environment where the ranging accuracy is reduced, it is possible to realize a ranging device that can appropriately take measures against relay attacks.
[0119] (Second embodiment)
[0120] In the relay attack countermeasure of the first embodiment, when ranging is performed inside the car C, the transmission power of the ranging signal from device 1 or device 2 is reduced, but in the second embodiment, the received power strength of the ranging signal is measured, and based on whether the received power strength is below a specified threshold, a determination is made to allow the engine to be started, and a relay attack countermeasure is taken.
[0121] In addition, the configuration of the wireless communication system of the second embodiment is substantially the same as the configuration of the wireless communication system of the first embodiment, and therefore the description of the same components will be omitted and only the different components will be described.
[0122] (constitute)
[0123] Fig.10 1 is a circuit diagram of the distance measuring unit 14 of the device 1. Fig.10 In, with Figure 6 The different configuration is that the digital unit 31 includes a received signal strength (RSSI) measuring unit 55. The received signal strength (RSSI) measuring unit 55 measures the received signal strength (hereinafter referred to as RSSI) based on the received power of each received second ranging signal, and outputs information on the RSSI of each second ranging signal measured by the device 1 to the control unit 51. Therefore, the RSSI measuring unit 55 constitutes a received signal strength measuring unit that measures the RSSI of each second ranging signal from the device 2.
[0124] The control unit 51 stores information on the RSSI of the second distance measurement signal measured by the RSSI measurement unit 55 (hereinafter referred to as RSSI information), and the processor 11 can read the RSSI information of the control unit 51 .
[0125] (effect)
[0126] Next, the operation of the distance measuring device described above will be described.
[0127] (1) When the key K is outside the vehicle C and the unlocking is allowed
[0128] When the key K is outside the car C and the unlocking permission determination is performed, the processor 11 of the device 1 and the processor 21 of the device 2 perform the same operation as that described in the first embodiment.
[0129] (2) When the key K is in the vehicle C and the engine start permission is determined
[0130] After the unlocking of the door of the car C is permitted and the door is opened, the device 1 transmits the LF signal LF2 and the authentication process between the device 1 and the device 2 is performed.
[0131] That is, when processor 11 of device 1 receives key identification code information for transmitted LF signal LF2, device 1 performs authentication based on the received key identification code information. When authentication is performed correctly, devices 1 and 2 start transmitting and receiving multiple ranging signals at a predetermined timing.
[0132] Fig.11 1 is a flowchart showing an example of the flow of the process for determining whether to stop the distance measurement process in the processor 11. Fig.11 processing.
[0133] The processor 11 of the device 1 transmits the first distance measurement signal after the authentication is correctly performed based on the key identification code information. Thereafter, the processor 11 monitors whether the distance measurement unit 14 receives the second distance measurement signal from the device 2 .
[0134] In the processor 11, after the ranging process is started, the Fig.11 It is determined whether the second distance measurement signal from the device 2 is received in the distance measurement unit 14 (S21). If the second distance measurement signal is not received (S21: No), no processing is performed.
[0135] When the second distance measurement signal is received (S21: YES), the processor 11 reads RSSI information of the received second distance measurement signal from the control unit 51, and determines whether the read RSSI is equal to or less than a predetermined threshold value RSth (S23).
[0136] When the RSSI information exceeds the prescribed threshold RSth (S23: No), no processing is performed. When the RSSI information is below the prescribed threshold RSth (S23: Yes), the processor 11 terminates the distance measurement process (S24). The processor 11 supplies the ranging process termination command ST to the control unit 51 of the ranging unit 14, thereby terminating the ranging process. As a result, the processor 11 does not cause the ranging operation unit 54 to calculate the distance Rm. Therefore, the processor 11 constitutes a determination unit that determines whether the distance Rm can be calculated based on the RSSI information. Then, when the RSSI measured by the RSSI measurement unit 55 is below the prescribed threshold RSth, the processor 11 determines that the distance is not calculated.
[0137] When receiving the stop command, the distance measuring unit 14 stops the distance measuring process. As a result, the distance measuring unit 14 cannot perform distance measurement, and thus the processor 11 cannot obtain the distance measurement result.
[0138] That is, when the RSSI of the second ranging signal is equal to or less than the predetermined threshold value RSth, there is a possibility of a relay attack, and thus ranging is not performed.
[0139] Therefore, according to the second embodiment, when the RSSI of the second ranging signal transmitted from the device 2 in the car C is less than or equal to the predetermined threshold RSth, the ranging process is terminated, so that ranging cannot be performed in the event of a relay attack.
[0140] In addition, in the above-mentioned embodiment, in device 1, it is determined whether the RSSI of the second ranging signal from device 2 is below the prescribed threshold value RSth, and a determination is made to terminate the ranging process. However, in device 2, it is also possible to determine whether the RSSI of the first ranging signal from device 1 is below the prescribed threshold value RSth, and a determination is made to terminate the ranging process, thereby making it impossible to perform ranging.
[0141] In this case, the distance measuring unit 24 of the device 2 is as follows Fig.12 shown. Fig.12 FIG. 2 is a circuit diagram of the distance measuring unit 24 of the device 2 according to a modified example of the second embodiment. Fig.12 In, with Figure 7 The different configuration is that the digital unit 41 includes a received signal strength measuring unit (hereinafter referred to as an RSSI measuring unit) 77. The RSSI measuring unit 77 measures the RSSI based on the received power of each received first ranging signal, and outputs information on the RSSI of each first ranging signal measured by the device 2 to the control unit 71. Therefore, the RSSI measuring unit 77 constitutes a received signal strength measuring unit that measures the RSSI of each first ranging signal from the device 1.
[0142] The control unit 71 stores RSSI information of the first distance measurement signal measured by the RSSI measurement unit 77 , and the processor 21 can read the RSSI information of the control unit 71 .
[0143] The processing for determining whether to stop the distance measurement processing in the processor 21 is the same as that in the Fig.11 The same. That is, after sending the key identification code information, the processor 21 enters a state of waiting for the first ranging signal. In this state, when the first ranging signal is received (S21: Yes), when the RSSI measured in the RSSI measuring unit 77 is below the specified threshold RSth (S23: Yes), the processor 21 terminates the ranging process (S24). The processor 21 supplies the ranging process termination command ST to the control unit 71 of the ranging unit 24, thereby terminating the ranging process. Since the ranging process is terminated, the second ranging signal is not sent, and ranging becomes impossible. Therefore, the processor 21 constitutes a determination unit that determines whether the distance Rm can be calculated based on the RSSI information. Then, when the RSSI measured by the RSSI measuring unit 77 is below the specified threshold RSth, the processor 21 determines that the distance is not calculated.
[0144] In addition, the threshold value RSth in the device 1 of the second embodiment and the threshold value RSth in the device 2 of the modified example may be different.
[0145] In addition, in the above-mentioned second embodiment, in device 1, the RSSI of the first second ranging signal received after the first ranging signal is sent is compared with the threshold RSth, or, in device 2, the RSSI of the first first ranging signal received is compared with the threshold RSth, but it is also possible that in device 1, the sum or average of the two RSSIs of the two second ranging signals is compared with the prescribed threshold RSth, or, in device 2, the sum or average of the two RSSIs of the two first ranging signals is compared with the prescribed threshold RSth.
[0146] As described above, according to the above two embodiments and each modification, it is possible to provide a distance measuring device that can appropriately take countermeasures against relay attacks even in an environment where the distance measuring accuracy is reduced.
[0147] In addition, in the above two embodiments and each modified example, the measured distance Rm between the device 1 and the device 2 obtained as a result of the distance measurement process is compared with the predetermined distances D1 and D2 as thresholds in the determination of whether to allow the door to be unlocked and the engine to be started, but the distances D1 and D2 are set to different values. That is, the distances D1 and D2 as the predetermined thresholds are different when the key K is outside the vehicle C and when the key K is inside the vehicle C.
[0148] As described above, in consideration of the influence of multipath, when determining whether to allow the engine to start, the distance D2 is set to be larger than the threshold value D1 that is usually assumed as the distance between the device 1 and the device 2 that is outside the car C. That is, the distance D2 that is the predetermined threshold value when the key K is inside the car C is larger than the distance D1 that is the predetermined threshold value when the key K is outside the car C. However, in consideration of the structure of the car C, etc., the distance between the device 1 and the device 2 that is inside the car C may be set to be smaller than the distance that is usually assumed.
[0149] Furthermore, in the above-mentioned embodiments, the distance measurement process in the car C is started based on the presence or absence of the LF signal LF2 from the device 1 of the car C, but the distance measurement process in the car C may be started based on whether the door of the car C is open.
[0150] Furthermore, the functions of the processor 11 of the device 1 and the processor 21 of the device 2 are implemented by software programs, but may be configured as circuit blocks in an electronic circuit or an integrated circuit such as a Field Programmable Gate Array (FPGA).
[0151] Several embodiments of the present invention have been described, but these embodiments are presented as examples and are not intended to limit the scope of the invention. These new embodiments can be implemented in various other ways, and various omissions, substitutions, and changes can be made without departing from the scope of the invention. These embodiments and their variations are included in the scope and purpose of the invention, and are included in the invention described in the claims and the scope equivalent thereto.
Claims
1. A distance measuring device, which calculates the distance between a vehicle and a key based on carrier phase detection, wherein: The invention relates to a vehicle having a calculation unit for calculating the distance between the first device and the second device based on phase information obtained by at least one of the first device and the second device which are freely movable. The first device disposed in the vehicle comprises: a first reference signal source; and a first transceiver which uses the output of the first reference signal source to send a plurality of first ranging signals which are carrier signals respectively, and receives a plurality of second ranging signals which are carrier signals respectively from the second device. The second device disposed in the key comprises: a second reference signal source which operates independently of the first reference signal source; and a second transceiver which uses the output of the second reference signal source to send the plurality of second ranging signals and receive the plurality of first ranging signals. The calculation unit uses the first reference signal source to send the plurality of second ranging signals and receive the plurality of first ranging signals. The distance is calculated based on the detection result of the phase of each carrier signal obtained by transmitting the plurality of first ranging signals and the plurality of second ranging signals. In at least one of the first device and the second device, the second transmission power when transmitting the plurality of first ranging signals or the plurality of second ranging signals when the key is inside the vehicle is set to be smaller than the first transmission power when transmitting the plurality of first ranging signals or the plurality of second ranging signals when the key is outside the vehicle. When the received signal strength of at least one of the plurality of first ranging signals or the plurality of second ranging signals measured by the received signal strength measuring unit is less than a predetermined threshold value, a termination command of the ranging process is supplied to the control unit of the ranging device, thereby terminating the ranging process.
2. The distance measuring device according to claim 1, wherein: A processor is provided in the first device, and outputs a start permission signal to the vehicle when the distance calculated by the calculation unit is smaller than a predetermined threshold value.
3. The distance measuring device according to claim 2, wherein: The predetermined threshold value is different between a case where the key is outside the vehicle and a case where the key is inside the vehicle.
4. The distance measuring device according to claim 3, wherein: The predetermined threshold value when the key is in the vehicle is greater than the predetermined threshold value when the key is outside the vehicle.
5. The distance measuring device according to claim 1, wherein: The plurality of first ranging signals or the plurality of second ranging signals transmitted with the second transmission power are weak radio waves.
6. A distance measuring device for calculating the distance between a vehicle and a key based on carrier phase detection, comprising: a calculating unit for calculating the distance between the first device and the second device based on phase information obtained by at least one of the first and second devices that are freely movable; a receiving signal strength measuring unit for measuring the receiving signal strength; and a determining unit for determining whether the distance can be calculated, wherein the first device disposed in the vehicle comprises: a first reference signal source; and a first transceiver for transmitting a plurality of first distance measuring signals that are carrier signals respectively using the output of the first reference signal source, and receiving a plurality of second distance measuring signals that are carrier signals respectively from the second device, wherein the second device disposed in the key comprises: a second reference signal source for transmitting a plurality of first distance measuring signals that are carrier signals respectively relative to the first reference signal source. a signal source that operates independently; and a second transceiver that uses the output of the second reference signal source to transmit the plurality of second ranging signals and receive the plurality of first ranging signals, the received signal strength measuring unit measuring the received signal strength of at least one of the plurality of first ranging signals or the plurality of second ranging signals, the calculation unit calculating the distance using the detection result of the phase of each carrier signal obtained by receiving the plurality of first ranging signals and the plurality of second ranging signals, and when the received signal strength measured by the received signal strength measuring unit is less than a predetermined threshold value, the determination unit determines not to calculate the distance, and supplies a ranging process termination command to the control unit of the ranging device, thereby terminating the ranging process.
7. The distance measuring device according to claim 6, wherein: The received signal strength is the received signal strength of the second ranging signal, and the received signal strength measuring unit is provided in the first device.
8. The distance measuring device according to claim 6, wherein: The received signal strength is the received signal strength of the first ranging signal, and the received signal strength measuring unit is provided in the second device.
