The present disclosure relates to ranging devices. The ranging device is an example of a distance measuring device.
As an example, a ranging device proposed in Japanese Laid-Open Patent Publication No. 2019-128341 includes a first device, a second device, and a calculation device. The first device includes a first transceiver that transmits a first known signal corresponding to a first carrier frequency and a second known signal corresponding to a second carrier frequency different from the first carrier frequency, and receives a third known signal corresponding to the first carrier frequency and a fourth known signal corresponding to the second carrier frequency. The second device includes a second transceiver that transmits the third known signal and the fourth known signal and receives the first and second known signals. The calculation device calculates a distance between the first device and the second device, based on phases of the first through fourth known signals. The first transceiver and the second transceiver make a total of four transmissions and four receptions including one transmission of each of the first and third known signals and one reception of each of the first and third known signals, and one transmission of each of the second and fourth known signals and one reception of each of the second and fourth known signals.
If a multipath occurs in a radio frequency (RF) signal, such as the first through fourth known signals, when measuring the distance, the phase of the radio wave arriving after being reflected on the way is different from the phase of the radio wave directly arriving from a device of a transmission source. In such a case, it may not be possible to accurately measure the distance, because a propagation path of the radio wave arriving after being reflected on the way differs from a propagation path of the radio wave directly arriving from the device of the transmission source.
Accordingly, one object of the present disclosure is to provide a ranging device capable of accurately measuring a distance even in an environment where a multipath occurs.
A ranging device according to one aspect of the present disclosure includes a memory device configured to store a program; and a processor configured to execute the program stored in the memory and perform a process including transmitting a first signal to an other device; receiving a second signal from the other device that receives the first signal; acquiring a plurality of first phases when the other device receives a plurality of first signals having three or more kinds of frequencies transmitted by the transmitting to the other device at different timings; measuring a plurality of second phases when the receiving receives a plurality of second signals having the three ore more kinds of frequencies transmitted from the other device at different timings; acquiring a signal strength of a pair of the first signal and the second signal having identical frequencies, with respect to a plurality of signal pairs of the plurality of first signals and the plurality of second signals; calculating a reciprocating phase by summing the first phase and the second phase of the first signal and the second signal included in each first signal pair of the plurality of first signal pairs, for each signal pair of the plurality of signal pairs; extracting, from the plurality of signal pairs, N signal pairs corresponding to N (N is an integer of 2 or more) signal strengths, excluding one or a plurality of signal strengths less than a predetermined threshold value among signal strengths of the plurality of signal pairs; measuring a distance to the other device, based on the N reciprocating phases and the plurality of frequencies; controlling a transmission and a reception, including causing the transmitting to repeatedly perform a transmission process to transmit the first signal with respect to the other device during a predetermined period, to transmit the first signals having the three or more kinds of frequencies to the other device at the different timings, and causing the receiving to repeatedly perform a reception process to receive the second signal from the other device during the predetermined period, to receive the second signals having the three or more kinds of frequencies from the other device at the different timings; and correcting a change in the reciprocating phase due to a relative movement with respect to the other device, for each reciprocating phase of the N reciprocating phases, wherein the measuring the distance measures the distance to the other device, based on the N reciprocating phases corrected by the correcting, and the plurality of frequencies.
Other objects and further features of the present invention will be apparent from the following detailed description when read in conjunction with the accompanying drawings.
Hereinafter, embodiments applied with a ranging device according to the present invention will be described.
At least one of the ranging device 100A of the vehicle 10 and the ranging device 100B of the smart key measures the distance between the vehicle 10 and the smart key 20, and doors, a trunk lid, or the like of the vehicle 10 can be unlocked when the distance measured by the ranging device 100A or 100B is an appropriate value.
It is assumed in this example that the ranging device 100A of the vehicle 10 performs a distance measurement, and notifies a result of the distance measurement to the ranging device 100B of the smart key 20. The ranging devices 100A and 100B may have the same configuration, for example. For this reason, in the following description, in a case where the ranging devices 100A and 100B are not distinguished from each other, the ranging devices 100A and 100B are simply referred to as ranging devices 100. The ranging device 100B that does not perform the distance measurement, between the ranging device 100A of the vehicle 10 and the ranging device 100B of the smart key 20, is an example of another device. In this example, the ranging device 100B of the smart key 20 may be an example of the other device. The ranging device 100A may be regarded as a master device, and the ranging device 100B may be regarded as a slave device. Alternatively, the ranging device 100B may be regarded as the master device, and the ranging device 100A may be regarded as the slave device. The ranging devices 100A and 100B are not limited to the master and slave devices in the following description.
The ranging device 100A includes the antenna 101, a power amplifier (PA) 110, a low noise amplifier (LNA) 120, an orthogonal modulator (OM) 130, an orthogonal demodulator (ODM) 140, a voltage controlled oscillator (VCO) 150, a phase locked loop (PLL) 155, a codec processor 160, and the control device 170.
The communication between the ranging device 100A of the vehicle 10 and the ranging device 100B of the smart key 20 is performed via the antenna 101 of the ranging device 100A and the antenna 101 of the ranging device 100B. The antenna 101 is connected to the PA 110 and the LNA 120. An illustration of a switch for switching a connecting destination of the antenna 101 to one of the PA 110 and the LNA 120 is omitted for the sake of convenience. The antenna 101 of the ranging device 100A transmits the first signal to the ranging device 100B and receives the second signal from the ranging device 100B.
The PA 110 is provided between the OM 130 and the antenna 101, amplifies a transmitting modulated signal (first signal) input from the OM 130, and outputs the amplified first signal to the antenna 101. The PA 110 is a transmitting amplifier.
The LNA 120 is provided between the antenna 101 and the ODM 140, and amplifies the second signal received by the antenna 101 with low noise, and outputs the amplified second signal to the ODM 140. The LNA 120 is a receiving amplifier.
The OM 130 is an example of a transmission unit, The OM 130 modulates a I/Q signal input from the codec processor 160 using a high-frequency signal input from the VCO 150, and outputs a modulated signal to the PA 110 as the transmitting modulated signal.
The ODM 140 is an example of a reception unit, The ODM 140 demodulates a signal output from the VCO 150 using a high-frequency signal input from the LNA 120 to acquire an I/Q signal, and outputs the I/Q signal to the codec processor 160. The signal output from LNA 120 is the signal received by the ranging device 100A from the ranging device 100B.
The VCO 150 oscillates at a frequency set by the PLL 155. The VCO 150 can oscillate at a plurality of frequencies set by the PLL 155.
The PLL 155 sets the frequency at which the VCO 150 oscillates. The PLL 155 can set a plurality of frequencies to the VCO 150.
The codec processor 160 includes an analog-to-digital converter (ADC) and a digital-to-analog converter (DAC), and performs a codec process. The codec processor 160 performs processes such as detection of a BLE (registered trademark) packet, address determination, or the like. More specifically, the codec processor 160 performs an analog-to-digital conversion (ADC process) on the I/Q signal processed in the ODM 140, and converts the I/Q signal into BLE packet information. In addition, the codec processor 160 generates the I/Q signal (divided into an in-phase component (I signal) and a quadrature component (Q signal)) from the BLE packet (digital signal) input from the control device 170, converts the I/Q signal into an analog signal by a DAC process, and outputs the analog I/Q signal to the OM 130 as a transmission signal.
Hereinafter, a signal having a predetermined frequency, transmitted from the OM 130 of the ranging device 100A to the ranging device 100B, will be referred to as the transmission signal. Further, a signal transmitted by the ranging device 100A as the transmission signal and received by another device will be referred to as a reception signal.
The control device 170 includes a main controller 170A, a transmission-reception controller 171, a switching unit 172, a phase acquisition unit 173, a phase measurement unit 174, a signal strength acquisition unit 175, a reciprocating phase calculation unit 176, an extraction unit 177, a correction unit 178, a distance measurement unit 179, and a memory 170M. The memory 170M is an example of a storage unit. The control device 170 may be implemented by a microcomputer including a central processing unit (CPU), a random access memory (RAM), a read only memory (ROM), an input-output interface, an internal bus, or the like. In other words, the control device 170 may be implemented by a computer including a memory that stores a program, and a processor configured to execute the program and perform processes of the control device 170, that is, perform functions of the main controller 170A, the transmission-reception controller 171, the switching unit 172, the phase acquisition unit 173, the phase measurement unit 174, the signal strength acquisition unit 175, the reciprocating phase calculation unit 176, the extraction unit 177, the correction unit 178, and the distance measurement unit 179. The memory that stores the program may be a non-transitory computer-readable storage medium.
The main controller 170A, the transmission-reception controller 171, the switching unit 172, the phase acquisition unit 173, the phase measurement unit 174, the signal strength acquisition unit 175, the reciprocating phase calculation unit 176, the extraction unit 177, the correction unit 178, and the distance measurement unit 179 in
The main controller 170A is a processing unit that controls the processes of the control device 170, and performs processes other than the processes performed by the transmission-reception controller 171, the switching unit 172, the phase acquisition unit 173, the phase measurement unit 174, the signal strength acquisition unit 175, the reciprocating phase calculation unit 176, the extraction unit 177, the correction unit 178, and the distance measurement unit 179. The main controller 170A notifies a result of the distance measurement to the ranging device 100B of the vehicle 10, for example. A BLE packet communication using a frequency different from that of the communication for the distance measurement is used for the notification of the result of the distance measurement. When making this notification, the result of the distance measurement or the like may be written in a payload of the BLE packet.
The transmission-reception controller 171 performs a control related to transmission and reception of the first signal and the second signal between the ranging device 100A and the ranging device 100B. More specifically, the transmission-reception controller 171 sets the frequency (predetermined frequency) and phase of the signal transmitted from the ranging device 100A to the ranging device 100B. In addition, because the ranging device 100B transmits to the ranging device 100A the signal having the same frequency as the signal transmitted from the ranging device 100A, the transmission-reception controller 171 of the ranging device 100B sets the frequency (predetermined frequency) and phase of the signal transmitted from the ranging device 100B to the ranging device 100A. The same frequency of the signals transmitted between the ranging devices 100A and 100B may be determined in advance between the ranging devices 100A and 100B, and the ranging devices 100A and 100B may share data indicating the frequency by utilizing the BLE packet communication.
Moreover, the transmission-reception controller 171 causes the OM 130 to repeatedly perform a transmission process to transmit the first signal to the ranging device 100B during a predetermined period, and causes the OM 130 to transmit the first signals having a plurality of kinds of frequencies (for example, three or more kinds of frequencies) to the ranging device 100B at different timings. Further, the transmission-reception controller 171 causes the ODM 140 to repeatedly perform a reception process to receive the second signal from the ranging device 100B during the predetermined period, and causes the ODM 140 to receive the second signals having a plurality of kinds of frequencies (for example, three or more kinds of frequencies) from the ranging device 100B at different timings. The predetermined period is a continuous wave transmission period of BLE (registered trademark), and is 2.5 milliseconds (ns). During the predetermined period, the first signal is transmitted from the ranging device 100A to the ranging device 100B, and the second signal is transmitted from the ranging device 100B to the ranging device 100A.
The transmission-reception controller 171 causes the OM 130 to transmit the first signal a plurality of times for each of a plurality of frequencies f1 through fm (m is an integer greater than or equal to two), and causes the ODM 140 to receive the second signal a plurality of times for each of the plurality of frequencies f1 through fm. That is, the OM 130 transmits the first signal a plurality of times at different timings for each of the plurality of frequencies f1 through fm. On the other hand, the ODM 140 receives the second signal a plurality of times for each of the plurality of frequencies f1 through fm. The first signal is transmitted a plurality of times at each of the plurality of frequencies f1 through fm and the second signal is received a plurality of times at each of the plurality of frequencies f1 through fm, in order to obtain a plurality of reciprocating phases at each of the plurality of frequencies f1 through fm.
As an example, a mode in which the transmission-reception controller 171 causes the OM 130 to transmit the first signal twice for each of the plurality of frequencies f1 through fm and causes the ODM 140 to receive the second signal twice for each of the plurality of frequencies f1 through fm will be described. The OM 130 transmits the first signal over two transmission processes, that is, a first transmission process and a second transmission process, for each of the plurality of frequencies f1 through fm. The ODM 140 receives the second signal over two reception processes, that is, a first reception process and a second reception process, for each of the plurality of frequencies f1 through fm.
Accordingly, a description will be given of the mode in which the transmission-reception controller 171 causes the OM 130 to transmit the first signal twice over two transmission processes, that is, the first transmission process and the second transmission process, for each of the plurality of frequencies f1 through fm, and causes the ODM 140 to receive the second signal twice over two reception processes, that is, the first reception process and the second reception process, for each of the plurality of frequencies f1 through fm. The number of times the transmission process is performed (the number of times the first signal is transmitted) and the number of times the reception process is performed (the number of times the second signal is received) for each of the plurality of frequencies f1 through fm may be three or more, as long as the number of times the transmission process is performed and the number of times the reception process is performed are the same.
A time frame in which the OM 130 performs the first transmission process for each of the plurality of frequencies f1 through fm and a time frame in which the ODM 140 performs the first reception process for each of the plurality of frequencies f1 through fm overlap each other. That is, the first transmission process and the first reception process are performed in the same time frame. A time frame in which the OM 130 performs the second transmission process for each of the plurality of frequencies f1 through fm and a time frame in which the ODM 140 performs the second reception process for each of the plurality of frequencies f1 through fm overlap each other. That is, the second transmission process and the second reception process are performed in the same time frame. The time frame in which the first transmission process and the first reception process are performed is different from the time frame in which the second transmission process and the second reception process are performed.
The switching unit 172 switches between a transmission state where the OM 130 transmits the signal and a reception state where the ODM 140 receives the signal. The switching unit 172 enables the PA 110 to amplify the signal in the transmission state, and enables the LNA 120 to amplify the signal in the reception state. The switching unit 172 provides a stabilization time for stabilizing the phase and the frequency when switching between the transmission state and the reception state.
The phase acquisition unit 173 of the ranging device 100A acquires a first phase from the ranging device 100B when the ranging device 100B receives the first signal having the predetermined frequency transmitted by the first transmission process and the second transmission process performed by the ranging device 100A for each of the frequencies f1 through fm. Because the first signal is transmitted twice at each of the frequencies, the phase acquisition unit 173 acquires the first phase twice at each of the frequencies. The phase acquisition unit 173 acquires phase data indicating the first phase from the ranging device 100B by BLE packet communication using a frequency different from that of the communication for the distance measurement. The phase data indicating the first phase may be written in the payload of the BLE packet. In addition, the phase data indicating the first phase may be measured by the phase measurement unit 174 of the ranging device 100B and transmitted to the ranging device 100A.
The phase measurement unit 174 of the ranging device 100A measures the second phase when the ODM 140 receives the second signal during the first reception process and the second reception process performed for each of the frequencies f1 through fm. That is, the phase measurement unit 174 measures the second phase a plurality of times when the ODM 140 of the ranging device 100A receives the second signal for each of the plurality of frequencies (for example, three or more frequencies) from the ranging device 100B at different timings. Because the second signal is transmitted twice from the ranging device 100B for each of the frequencies f1 through fm, the phase measurement unit 174 acquires the second phase twice for each of the frequencies f1 through fm. The second phase is used for measuring the distance.
The signal strength acquisition unit 175 of the ranging device 100A acquires a second signal strength when the ODM 140 receives the second signal a plurality of times by repeatedly performing the first reception process and the second reception process for each of the frequencies f1 through fm. In addition, the signal strength acquisition unit 175 acquires, from the ranging device 100B, a first signal strength when the ranging device 100B receives the first signal a plurality of times. The first signal strength acquired from the ranging device 100B by the signal strength acquisition unit 175 is measured by the signal strength acquisition unit 175 of the ranging device 100B, written in the payload of the BLE packet as signal strength data, and the BLE packet is transmitted to the ranging device 100A as the second signal.
Accordingly, the signal strength acquisition unit 175 acquires the first signal strength from the signal strength data included in the second signal received a plurality of times by the ODM 140 which repeatedly performs the reception process.
A pair of the first signal and the second signal having the same frequency will be referred to as a signal pair. The first signal is transmitted a plurality of times by the first transmission process and these transmitted first signals have mutually different frequencies f1 through fm. In addition, the second signal is received a plurality of times by the first reception process, and these received second signals have mutually different frequencies f1 through fm. Similarly, the first signal is transmitted a plurality of times by the second transmission process, and these transmitted first signals have mutually different frequencies f1 through fm. Further, the second signal is received a plurality of times by the second reception process, and these received second signals have mutually different frequencies f1 through fm.
Hereinafter, a signal pair including the first signal transmitted by the first transmission process and the second signal received by the first reception process will be referred to as a first signal pair, and a signal pair including the first signal transmitted by the second transmission process and the second signal received by the second reception process will be referred to as a second signal pair. Further, the first signal pair and the second signal pair will simply be referred to as signal pairs when the two pairs are not particularly distinguished from each other.
The first signal pair is a signal pair of the first signal and the second signal (signals having the same frequency among a plurality of first signals and a plurality of second signals) transmitted and received by the first transmission process and the first reception process performed in the same time frame (first time frame) and having the same frequency (f1 through fm). The second signal pair is a signal pair of the first signal and the second signal (signals having the same frequency among the plurality of first signals and the plurality of second signals) transmitted and received by the second transmission process and the second reception process performed in the same time frame (second time frame) and having the same frequency (f1 through fm).
Because the number of first signals is equal to the number of second signals, the number of first signal pairs is equal to the number of first signals and the number of second signals in the first transmission process and the first reception process. Similarly, the number of the second signal pairs is equal to the number of the first signals and the number of the second signals in the second transmission process and the second reception process. In addition, the number of first signal pairs is equal to the number of second signal pairs.
The signal strength acquisition unit 175 acquires, as a signal strength of the plurality of first signal pairs and the plurality of second signal pairs, a first signal strength when the ranging device 100B receives the plurality of first signals or a second signal strength when the ODM 140 receives the plurality of second signals by repeatedly performing the reception process. The signal strength acquisition unit 175 acquires the first signal strength when the ranging device 100B receives the plurality of first signals by performing the first transmission process and the first reception process, or the second signal strength when the ODM 140 receives the plurality of second signals by repeatedly performing the reception process. The signal strength acquisition unit 175 acquires the first signal strength when the ranging device 100B receives the plurality of first signals by performing the second transmission process and the second reception process, or the second signal strength when the ODM 140 receives the plurality of second signals by repeatedly performing the reception process.
The signal strength acquisition unit 175 acquires the signal strength of a plurality of first signal pairs of the signals having the same frequency between the plurality of first signals and the plurality of second signals, and acquires the signal strength of a plurality of second signal pairs of the signals having the same frequency between the plurality of first signals and the plurality of second signals.
The reciprocating phase calculation unit 176 of the ranging device 100A calculates a first reciprocating phase by summing a first phase of the first signal and a second phase of the second signal included in each of the plurality of first signal pairs acquired by the signal strength acquisition unit 175. In addition, the reciprocating phase calculation unit 176 calculates a second reciprocating phase by summing the first phase of the first signal and the second phase of the second signal included in each of the plurality of second signal pairs acquired by the signal strength acquisition unit 175. The first reciprocating phase and the second reciprocating phase will simply be referred to as reciprocating phases when the two phases are not particularly distinguished from each other.
The extraction unit 177 of the ranging device 100A extracts, from the plurality of signal pairs, N signal pairs corresponding to N (N is an integer of 2 or more) signal strengths, excluding one or a plurality of signal strengths less than a predetermined threshold value among the signal strengths of the plurality of signal pairs obtained by the first transmission process, the second transmission process, the first reception process, and the second reception process for the frequencies f0 through fm. The N signal pairs are N signal pairs obtained by excluding one or a plurality of signal pairs having the signal strength less than the predetermined threshold value, from all of the signal pairs (the plurality of signal pairs) for which the signal strengths are acquired by the signal strength acquisition unit 175. The threshold value is a value that can exclude the signal pair for which the signal strength decreases due to multipath.
The extraction unit 177 extracts N first signal pairs from the plurality of first signal pairs, excluding one or a plurality of signal pairs in which the signal strength of the first signal or the second signal of the plurality of first signal pairs is less than the predetermined threshold value. In addition, the extraction unit 177 extracts N second signal pairs from the plurality of signal pairs, excluding one or a plurality of signal pairs in which the signal strength of the first signal or the second signal of the plurality of second signal pairs is less than the predetermined threshold value. In order to obtain two reciprocating phases from the first signal pair and the second signal pair, the extraction unit 177 excludes and does not extract the first signal pair and the second signal pair if the signal strength of at least one of the first signal transmitted by the first transmission process, the second signal received by the first reception process, the first signal transmitted by the second transmission process, and the second signal received by the second reception process is less than the predetermined threshold value.
The correction unit 178 of the ranging device 100A corrects a change in phase due to a relative movement with respect to the ranging device 100B for each of the N first reciprocating phases. The correction unit 178 corrects the change in phase due to the relative movement with respect to the ranging device 100B, using a difference between the first reciprocating phase and the second reciprocating phase with respect to the frequencies f1 through fm. In addition, the correction unit 178 obtains a relative speed with respect to the ranging device 100B, from the difference between the first reciprocating phase and the second reciprocating phase with respect to the frequencies f1 through fm, and corrects the N reciprocating phases, based on the relative speed between the ranging devices 100A and 100B and a time difference with which the plurality of first signal pairs and the plurality of second signal pairs are obtained, so that the N reciprocating phases and the N frequencies f1 through fm of the N first signal pairs corresponding to the N first reciprocating phases have a linear relationship. Specific correction contents of the correction unit 178 will be described later with reference to
The distance measurement unit 179 of the ranging device 100A measures a distance to the ranging device 100B, based on the N first reciprocating phases corrected by the correction unit 178 and the plurality of frequencies f1 through fm.
The memory 170M of the ranging device 100A stores one or more programs, data, or the like required for the main controller 170A, the transmission-reception controller 171, the switching unit 172, the phase acquisition unit 173, the phase measurement unit 174, the signal strength acquisition unit 175, the reciprocating phase calculation unit 176, the extraction unit 177, the correction unit 178, and the distance measurement unit 179 of the control device 170 to perform the processes described above. The memory 170M stores the data or the like that sets predetermined frequencies and phases of the signals to be transmitted between the ranging devices 100A and 100B.
First, a communication method and a distance measurement method for a case where the effects of the multipath does not occur will be described.
During the communication for the distance measurement, the ranging devices 100A and 100B transmit signals having the same frequency to each other. More specifically, during the communication for the distance measurement, when one of the ranging devices 100A and 100B transmits a signal (first signal or second signal) having a certain frequency, the other of the ranging devices 100A and 100B transmits a signal (second signal or first signal) having the same certain frequency. Such transmissions from the one and the other of the ranging devices 100A and 100B corresponds to one communication of the communication for the distance measurement.
In
In
During the second communication (2), the ranging device 100B transmits the second signal having the frequency f2 to the ranging device 100A, and the ranging device 100A transmits the first signal having the same frequency f2 to the ranging device 100B. The phase measurement unit 174 of the ranging device 100A measures the phase when the ranging device 100A receives the second signal having the frequency f2 from the ranging device 100B. In addition, the phase acquisition unit 173 of the ranging device 100A acquires, from the ranging device 100B, the phase when the ranging device 100B receives the first signal having the frequency f2 transmitted from the ranging device 100A.
During a third communication (3), the ranging device 100A transmits the first signal having the frequency f3 to the ranging device 100B, and the ranging device 100B transmits the second signal having the same frequency f3 to the ranging device 100A. The phase acquisition unit 173 of the ranging device 100A acquires, from the ranging device 100B, the phase when the ranging device 100B receives the first signal having the frequency f3 transmitted from the ranging device 100A. In addition, the phase measurement unit 174 of the ranging device 100A measures the phase when the ranging device 100A receives the second signal having the frequency f3 from the ranging device 100B.
During the fourth communication (4), the ranging device 100B transmits the second signal having the frequency f4 to the ranging device 100A, and the ranging device 100A transmits the first signal having the same frequency f4 to the ranging device 100B. The phase measurement unit 174 of the ranging device 100A measures the phase when the ranging device 100A receives the second signal having the frequency f4 from the ranging device 100B. In addition, the phase acquisition unit 173 of the ranging device 100A acquires, from the ranging device 100B, the phase when the ranging device 100B receives the first signal having the frequency f4 transmitted from the ranging device 100A.
The ranging devices 100A and 100B continue to perform the communication as illustrated in
In this example, it is assumed that the first communication (1) through the fourth communication (4) are repeatedly performed in a short period, and the distance between the ranging devices 100A and 100B is the same. In this case, it is assumed that a phase when the ranging device 100B receives the first signal having the frequency fm transmitted from the ranging device 100A is denoted by ϕAB, and that the phase acquisition unit 173 of the ranging device 100A acquires the phase ϕAB. Further, it is assumed that a phase when the ranging device 100A receives the second signal having the frequency fm from the ranging device 100B is denoted by ϕBA, and that the phase measurement unit 174 of the ranging device 100A measures the phase BA. The frequency fm may be any one of the frequencies f1 through f4 described above, for example.
ϕAB+ϕBA is a total phase (reciprocating phase) for a case where a two-way communication is performed between the ranging devices 100A and 100B with each of the frequencies f1 through f4. The reciprocating phase at the frequency fm is denoted by ϕ2w, where 2w is an abbreviation for two-way (bi-directional). The reciprocating phase during the first communication (frequency f1) is denoted by ϕ1w1, the reciprocating phase during the second communication (frequency f2) is denoted by ϕ2w2, the reciprocating phase during the third communication (frequency f3) is denoted by ϕ2w3, and the reciprocating phase during the fourth communication (frequency f4) is denoted by ϕ2w4. In addition, wavelengths at the frequencies f1 through f4 are denoted by λ1 through λ4, respectively. The reciprocating phase ϕ2w described above is calculated by the reciprocating phase calculation unit 176.
As described above, when the first communication (1) through the fourth communication (4) are repeatedly performed in a short period, the distance between the ranging devices 100A and 100B during the two-way communication may be regarded as being the same, and for this reason, when the distances between the ranging devices 100A and 100B during the first communication (1) through the fourth communication (4) is denoted by L, the following formulas (1) through (4) stand. 2 L indicates a round-trip distance. n is an integer greater than or equal to one.
When n is eliminated from the formulas (1) and (2), the following formula (5A) is obtained, and when the formula (5A) is transformed into the following formulas (5B) through (5D), the distance L can be obtained. c denotes the speed of light.
Similarly, when n is eliminated from the formulas (1) and (3), these formulas can be transformed into the following formula (6).
Similarly, when n is eliminated from the formulas (1) and (4), these formulas can be transformed into the following formula (7).
The formulas (5D), (6), and (7) indicate that a ratio of a phase difference between the two reciprocating phases ϕ2wm (where m is 1 to 4) to a frequency difference between the two frequencies fm corresponds to a ratio of the distance L to the speed c of light.
For this reason, when the phase difference between the two reciprocating phases ϕ2wm is denoted by Δϕ, and the frequency difference between the two frequencies fm is denoted by Δf, the formulas (5D), (6), and (7) can be expressed by the following formula (8).
The distance L can be obtained from the combination of the frequencies f1 and f2 by multiplying the speed c of light to the slope A. The distance L can be obtained from the combination of the frequencies f1 and f3 by multiplying the speed c of light to the slope B. The distance L can be obtained from the combination of the frequencies f1 and f4 by multiplying the speed c of light to the slope C. The distance L is obtained by the distance measurement unit 179.
When the multipath occurs, the phase of the radio wave arriving after being reflected on the way is different from the phase of the radio wave directly arriving from the device of the transmission source. In such a case, it may not be possible to accurately measure the distance, because a propagation path of the radio wave arriving after being reflected on the way differs from a propagation path of the radio wave directly arriving from the device of the transmission source.
In a case where the multipath does not occur, the reciprocating phase decreases approximately linearly with increasing frequency, such as in a frequency band of approximately 2436 MHz to approximately 2456 MHz, and in a frequency band of approximately 2456 MHz to approximately 2476 MHz. In addition, because the multipath does not occur in the frequency band of approximately 2436 MHz to approximately 2456 MHz, and in the frequency band of approximately 2456 MHz to approximately 2476 MHz, a favorable value of −40 or greater can be obtained for the signal strength (RSSI).
In contrast, in the case where the multipath occurs, there is a frequency band (frequency band in a vicinity of approximately 2416 MHz) in which the reciprocating phase changes (in this case, decreases) sharply with increasing frequency, such as a frequency band of approximately 2436 MHz to approximately 2424 MHz, and the signal strength (RSSI) decreases sharply in such a frequency band. In the frequency band in which the reciprocating phase decreases sharply, the signal strength (RSSI) decreases due to multi-fading. When the reciprocating phase changes nonlinearly in such a manner, the reciprocating phase having an appropriate value cannot be obtained in such a frequency band, and distance measurement cannot be performed appropriately. The nonlinear change in the reciprocating phase can be detected from the signal strength (RSSI).
For this reason, the ranging device 100A detects a frequency band in which the signal strength (RSSI) becomes low, and excludes the reciprocating phases in such a frequency band from the data for the distance measurement. This is to make certain that the distance measurement is performed accurately even in an environment where the multipath occurs.
It is assumed that the relationship between the frequencies f0 through fm and the reciprocating phases θ0 through θm, indicated by a broken line in
In this case, when the user holding the smart key 20 moves away from the vehicle 10 at a constant moving speed v (m/s) in a state where the vehicle 10 is stationary, the relationship between the frequencies f0 through fm and the reciprocating phases θ0 through θm shifts as indicated by a solid line due to the Doppler effect. When the time t is used, θm shifts as expressed by the following formula (9) due to the Doppler effect. As expressed by the formula (9), the higher the frequency fm, the larger the shift of the reciprocating phase θm due to the Doppler effect.
If the moving speed v (m/s) of the user is known, the characteristics indicated by the solid line in
When the user is moving, if the first transmission process and the first reception process are performed for each of the frequencies f0 through fm in a first time frame, and the second transmission process and the second reception process are performed thereafter for each of the frequencies f0 through fm in a second time frame after the first time frame, the differences Δθ0 through Δθm between the first reciprocating phases θ0 through Gm and the second reciprocating phases θa0 through Gam for each of the frequencies f0 through fm become constant values, as illustrated in
When the difference Δθk (k=0 to m) is obtained based on the formula (10), the moving speed v can be obtained using a time difference between the first time frame and the second time frame as the time t. Such a calculation of the moving speed v is performed by the correction unit 178.
Specifically, when the reciprocating phase at an end time tA of the first time frame is denoted by θA, the reciprocating phase at an end time tB of the second time frame is denoted by θB, and the time t (=tB−tA), a difference Δθ (=θB−θA) of the reciprocating phases, and the moving speed v are used, for example, the following formula (11) stands with respect to the Doppler effect.
The reciprocating phase calculation unit 176 calculates the reciprocating phase 8A at the end time tA of the first time frame, and calculates the reciprocating phase GB at the end time tB of the second time frame, and the correction unit 178 can obtain the moving speed v by substituting the difference AG (=θB−θA) of the reciprocating phases at the time t (=tB−tA) into the formula (11).
As described above, the transmission-reception controller 171 performs the first transmission process once in one continuous wave transmission period (2.5 milliseconds) in BLE (registered trademark), performs the first reception process once in another continuous wave transmission period, performs the second transmission process once in still another continuous wave transmission period, and performs the second reception process once in still another continuous wave transmission period.
Accordingly, the ranging device 100A performs the transmission process or the reception process once in each continuous wave transmission period, thereby transmitting the first signal having three or more kinds of frequencies f1 through fm to the ranging device 100B at different timings, and receiving the second signal having the three or more kinds of frequencies f1 through fm from the ranging device 100B at different timings.
Because the continuous wave transmission period is 2.5 milliseconds and extremely short, the transmission process or the reception process is performed once, and the transmission process or the reception process is repeatedly performed in a plurality of continuous wave transmission periods, so as to perform the distance measurement.
Because the BLE (registered trademark) packet communication is also used for other purposes (for example, transmission of an audio signal) other than the distance measurement, the time usable for the distance measurement is extremely limited. For this reason, there are demands to achieve a highly accurate distance measurement in a short a time as possible, and thus, the ranging device 100A performs the transmission process or the reception process once in each continuous wave transmission period. In addition, by adding up results obtained by performing the transmission process or reception process once in a plurality of intermittent continuous wave transmission periods, the relationship between the reciprocating phase with respect to the frequencies f1 through fm can be obtained to perform the distance measurement.
Although the reciprocating phase (on the upper side) with respect to the frequencies, and the signal strength (on the lower side) with respect to the frequencies, obtained by performing the first transmission process and the first reception process for each of the continuous wave transmission periods are illustrated, the same holds true for the reciprocating phase with respect to the frequencies, and the signal strength with respect to the frequencies, obtained by performing the second transmission process and the second reception process for each of the continuous wave transmission periods. Times t0 through t2 illustrated in
In addition, the correction unit 178 obtains the difference AG of the reciprocating phase acquired twice with respect to the same frequency. The difference AG refers to a difference AG between the first reciprocating phase and the second reciprocating phase. The correction unit 178 obtains a difference Δθs1 for the frequency f0 illustrated in
Further, when the signal strength is observed in
In such a case, the extraction unit 177 excludes the signal pair having the signal strength less than the threshold value TH, and extracts the reciprocating phases calculated for the signal pairs having the signal strength greater than or equal to the threshold value TH.
The correction unit 178 corrects the reciprocating phases with respect to the frequencies f0 and f1, by equally allocating the difference Δθs1 for the frequency f0 to the reciprocating phases with respect to the frequencies f1 and f2, for the reciprocating phases obtained with respect to the frequencies f0, f1, and f2. Because the difference Δθs1 of the reciprocating phase acquired twice with respect to the frequency f0 corresponds to an increase in the reciprocating phase for the frequency f0 at the time t3 with respect to the reciprocating phase for the frequency f0 at the time t0, the correction unit 178 subtracts (Δθs1)/2 from the reciprocating phase with respect to the frequency f1 and subtracts Δθs1 from the reciprocating phase with respect to the frequency f2. Because the times t0 through t3 are equally spaced, a value obtained by multiplying a ratio corresponding to an elapsed time from the time t0 to the difference Δθs1 is used as a correction value. That is, the correction value for the reciprocating phase with respect to the frequency f1 is −(Δθs1)/2, and the correction value for the reciprocating phase with respect to the frequency f2 is −Δθs1.
Similarly, because a difference Δθs2 of the reciprocating phase acquired twice with respect to the frequency f3 corresponds to an increase in the reciprocating phase for the frequency f3 at the time t4 with respect to the reciprocating phase for the frequency f3 at the time t7, the correction unit 178 subtracts (Δθs2)/2 from the reciprocating phase with respect to the frequency f4. Because the times t4 through t7 are equally spaced, a value obtained by multiplying a ratio corresponding to an elapsed time from the time t4 to the difference Δθs2 is used as the correction value. That is, the correction value for the reciprocating phase with respect to the frequency f4 is −(Δθs2)/2.
Because a difference Δθs3 of the reciprocating phase acquired twice with respect to the frequency f6 corresponds to an increase in the reciprocating phase for the frequency f6 at the time t8 with respect to the reciprocating phase for the frequency f6 at the time t11, the correction unit 178 subtracts (Δθs3)/2 from the reciprocating phase with respect to the frequency f7. Because the times t8 through t11 are equally spaced, a value obtained by multiplying a ratio corresponding to an elapsed time from the time t8 to the difference Δθs3 is used as the correction value. That is, the correction value for the reciprocating phase with respect to the frequency f7 is −(Δθs3)/2, and the correction value for the reciprocating phase with respect to the frequency f8 is −Δθs3.
Next, the correction unit 178 offsets the reciprocating phase with respect to the frequencies f3 and f4 so that the reciprocating phase with respect to the frequencies f3 and f4 touches a straight line that fits the reciprocating phase with respect to the frequencies f0, f1, and f2, as illustrated in
Next, the correction unit 178 offsets the reciprocating phase with respect to the frequencies f0, f1, f2, f3, and f4 so that the reciprocating phase with respect to the frequencies f6, f7, and f8 touches a straight line that fits the reciprocating phase with respect to the frequencies f0, f1, f2, f3, and f4, as illustrated in
By performing the process described above on the reciprocating phase with respect to the frequencies f0 through fm, N reciprocating phases are corrected with respect to the frequencies f0 through fm, so that the N reciprocating phases, and N frequencies of N signal pairs corresponding to the N reciprocating phases, have a linear relationship. This process corresponds to the linear correction process. Then, the distance measurement unit 179 measures the distance of the ranging device 100B with respect to the ranging device 100A, using the linear relationship between the N reciprocating phases and the N frequencies of the N signal pairs corresponding to the N reciprocating phases (for example, the straight line having the intercept A3 and the slope S3 illustrated in
When the process starts, the signal strength acquisition unit 175 and the reciprocating phase calculation unit 176 perform the first transmission process, the first reception process, the second transmission process, and the second reception process, using three kinds of frequencies for each continuous wave transmission period (step S1). The signal strength acquisition unit 175 and the reciprocating phase calculation unit 176 perform the first transmission process, the first reception process, the second transmission process, and the second reception process in different continuous wave transmission periods.
In step S1 of
The signal strength acquisition unit 175 and the reciprocating phase calculation unit 176 output the reciprocating phases and the signal strengths obtained in the first transmission process, the first reception process, the second transmission process, and the second reception process performed in step S1 (step S2). In step S2, the correction unit 178 obtains the difference AG of the reciprocating phase acquired twice with respect to the same frequency during each process.
The main controller 170A gathers all of the data obtained in step S2 (step S3).
The extraction unit 177 extracts the reciprocating phases calculated for the signal pairs having the signal strength greater than or equal to the threshold value TH (step S4). In step S4, N frequencies of N signal pairs corresponding to N reciprocating phases are extracted.
The correction unit 178 performs a speed correction process (step S5). In order to correct the effects of the Doppler effect due to the relative movement of the ranging devices 100A and 100B, the correction unit 178 performs the speed correction process described with reference to
The correction unit 178 performs a linear correction process (step S6). As described with reference to
The distance measurement unit 179 measures the distance to the ranging device 100B, based on the intercept and the slope of the linear relationship between N first reciprocating phases corrected by the correction unit 178 in step S6 and the plurality of frequencies (step S7).
In the above description, the reciprocating phase with respect to the lowest frequency is acquired twice during the plurality of partial processings including the partial processing 1, the partial processing 2, and the partial processing 3, and the correction unit 178 obtains the difference AG of the reciprocating phase acquired twice with respect to the same frequency during each partial processing in step S2. By obtaining the difference AG of the reciprocating phase obtained twice with respect to the same frequency during each partial processing, the effects of the Doppler effect can be corrected more accurately according to a variation in the relative moving speed of the ranging devices 100A and 100B. In addition, during each partial processing, the reciprocating phase may be acquired twice with respect to frequencies other than the lowest frequency.
However, in at least one partial processing among the plurality of partial processings, the reciprocating phase may be acquired twice with respect to the lowest frequency, and the effects of the Doppler effect may be corrected in step S5, using the moving speed calculated based on the difference AG of the reciprocating phase acquired twice. For example, during the partial processing 1, the effects of the Doppler effect may be corrected for the partial processings other than the partial processing 1, using the moving speed calculated based on the difference AG of the reciprocating phase acquired twice with respect to the lowest frequency f0. In a case where the relative moving speed of the ranging devices 100A and 100B may be regarded as being constant, such an arrangement can simplify the processing.
As described above, the reciprocating phases are obtained and the signal strengths are acquired with respect to the plurality of signal pairs, N signal pairs corresponding to N signal strengths (N is an integer greater than or equal to two) excluding one or a plurality of signal strengths less than the predetermined threshold value among the signal strengths of the plurality of signal pairs are extracted from the plurality of signal pairs, and the distance to the ranging device 100B is measured based on the N reciprocating phases and the plurality of frequencies. For this reason, the effects of multipath can be prevented.
Accordingly, it is possible to provide the ranging device 100 capable of accurately measuring the distance even in an environment in which a multipath occurs.
In addition, because N signal pairs, excluding one or a plurality of signal pairs in which the signal strength of the first signal or the second signal is less than the predetermined threshold value, are extracted from the plurality of signal pairs, it is possible to more positively prevent the effects of the multipath, and to more accurately perform the distance measurement.
Moreover, the transmission-reception controller 171 causes the OM 130 to repeatedly perform a transmission process to transmit the first signal with respect to the ranging device 100B in a predetermined period, so that the OM 130 transmits the first signal having three or more kinds of frequencies with respect to the ranging device 100B at different timings, and causes the ODM 140 to repeatedly perform a reception process to receive the second signal from the ranging device 100B in the predetermined period, so that the ODM 140 receives the second signal having three or more kinds of frequencies from the ranging device 100B at different timings. For this reason, even in a state where the period in which the transmission process and the reception process are performed is limited, it is possible to positively acquire a relationship between the frequency and the reciprocating phase, and to accurately perform the distance measurement.
Because the first phase acquisition unit 173 acquires a plurality of first phases from the plurality of second signals that are received when the ODM 140 repeatedly performs the reception process, it is possible to easily and positively acquire the first phase when the first signal measured by the phase measurement unit 174 of the ranging device 100B is received. As a result, it is possible to accurately perform the distance measurement.
Moreover, the signal strength acquisition unit 175 acquires, as the signal strength of the plurality of signal pairs, the first signal strength when the ranging device 100B receives the plurality of first signals, or the second signal strength when the ODM 140 receives the plurality of second signals by repeatedly performing the reception process. For this reason, it is possible to calculate the reciprocating phase using the phase at the time of signal reception, and to more accurately perform the distance measurement.
Further, the signal strength acquisition unit 175 acquires the first signal strength from the signal strength data included in the plurality of second signals received when the ODM 140 repeatedly performs the reception process. The first signal strength when the ranging device 100B receives the first signal can be acquired from the second signal, and the reciprocating phase can be calculated based on the first signal strength acquired from the second signal, and thus, it is possible to more accurately perform the distance measurement. The ranging device 100B may include the signal strength acquisition unit 175, and the signal strength acquisition unit 175 of the ranging device 100B may acquire the second signal strength by writing the second signal strength in the first signal transmitted from the ranging device 100A.
The correction unit 178 is provided to correct a change in the reciprocating phase due to the relative movement with respect to the ranging device 100B for each of the N reciprocating phases, and the distance measurement unit 179 measures the distance to the ranging device 100B, based on the N reciprocating phases corrected by the correction unit 178 and the plurality of frequencies. Hence, it is possible to correct the effects of the Doppler effect due to the relative movement with the ranging device 100B, and to more accurately perform the distance measurement.
The transmission-reception controller 171 causes the OM 130 to transmit the first signal a plurality of times for each of the plurality of frequencies, and causes the ODM 140 to receive the second signal a plurality of times for each of the plurality of frequencies. The reciprocating phase calculation unit 176 obtains a plurality of reciprocating phases for each of the plurality of frequencies, with respect to each of the N signal pairs. The correction unit 178 corrects a change in the reciprocating phase due to the relative movement with respect to the ranging device 100B, using a difference between the plurality of reciprocating phases obtained for each of the plurality of frequencies by the reciprocating phase calculation unit 176, with respect to each of the N signal pairs. Based on the difference between the plurality of reciprocating phases, it is possible to correct the effects of the Doppler effect according to the change in the relative moving speed with respect to the ranging device 100B, and to more accurately perform the distance measurement.
The correction unit 178 obtains the relative speed with respect to the ranging device 100B from the difference between the plurality of reciprocating phases obtained for each of the N signal pairs, and corrects the N reciprocating phases so that the N reciprocating phases and N frequencies of the N signal pairs corresponding to the N reciprocating phases have a linear relationship, based on the relative speed and a time difference with which each signal pair is obtained. For this reason, the N reciprocating phases and the N frequencies obtained in an intermittent period, such as a continuous wave transmission period of the BLE (registered trademark), can be arranged on a straight line, and it is possible to accurately perform the distance measurement even in a situation where the acquisition of the N reciprocating phases and the N frequencies is divided into a plurality of intermittent periods.
The predetermined period is a continuous wave transmission period. For this reason, it is possible to accurately perform the distance measurement, based on the N reciprocating phases and the N frequencies obtained in the plurality of intermittent continuous wave transmission periods of the BLE (registered trademark).
The continuous wave transmission period is 2.5 milliseconds. For this reason, it is possible to accurately perform the distance measurement, based on the N reciprocating phases and the N frequencies obtained in the plurality of extremely short intermittent periods of 2.5 milliseconds of the BLE (registered trademark).
The predetermined threshold value is a threshold value that can exclude one or a plurality of signal pairs having the signal strength reduced by the multipath. For this reason, it is possible to eliminate the effects of the multipath, and to accurately perform the distance measurement.
According to the embodiments described above, it is possible to provide a ranging device capable of accurately measuring a distance even in an environment where a multipath occurs.
Although the embodiments of the ranging device according to the present invention is described heretofore, the present invention is not limited to the specifically disclosed embodiments, and various variations and modifications can be made without departing from the scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
2022-099835 | Jun 2022 | JP | national |
This application is a continuation application of International Application No. PCT/JP2023/007726 filed on Mar. 2, 2023 and designated the U.S., which is based upon and claims priority to Japanese Patent Application No. 2022-099835, filed on Jun. 21, 2022, the entire contents of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2023/007726 | Mar 2023 | WO |
Child | 18940132 | US |