Distance measurement apparatus and setting method of transmission condition
A distance measurement apparatus executes transmitting and receiving a signal with another device; acquiring first and second phases when the other device receives signals of first and second frequencies from the distance measurement apparatus; measuring third and fourth phases when the signals of first and second frequencies are received from the other device; measuring a distance to the other device based on the acquired first and second phases, the first and second frequencies, and the measured third and fourth phases; and setting randomly a transmission order, and the first and second frequencies. The transmission order indicates an order of transmitting the signal of the first frequency by the other device, transmitting the signal of the first frequency by the distance measurement apparatus, transmitting the signal of the second frequency by the other device, and transmitting the signal of the second frequency by the distance measurement apparatus.
1 . A distance measurement apparatus comprising:
a processor;
a memory storing one or more programs, which when executed, cause the processor to execute:
controlling a transmitter to transmit a signal to a device;
controlling a receiver to receive a signal from the device;
acquiring a first phase when the device receives a signal of a first frequency transmitted to the device by the distance measurement apparatus, and a second phase when the device receives a signal of a second frequency transmitted to the device by the distance measurement apparatus;
measuring a third phase when the signal of the first frequency is received from the device by the distance measurement apparatus, and a fourth phase when the signal of the second frequency is received from the device by the distance measurement apparatus;
measuring a distance to the device based on the acquired first phase and the acquired second phase, the first frequency, the measured third phase and the measured fourth phase, and the second frequency; and
setting, in a random manner, a transmission order, the first frequency, and the second frequency, the transmission order indicating an order of transmitting the signal of the first frequency by the device, transmitting the signal of the first frequency by the distance measurement apparatus, transmitting the signal of the second frequency by the device, and transmitting the signal of the second frequency by the distance measurement apparatus.
2 . The distance measurement apparatus according to claim 1 , wherein the processor is further caused to execute:
transmitting and receiving a signal with the device according to the transmission order, the first frequency, and the second frequency that are set in the random manner.
3 . The distance measurement apparatus according to claim 1 , wherein the processor is further caused to execute:
switching between a transmitting state and a receiving state, according to the transmission order set in the random manner.
4 . The distance measurement apparatus according to claim 1 , wherein the processor is further caused to execute:
reporting, to the device, the transmission order, the first frequency, and the second frequency that are set in the random manner.
5 . The distance measurement apparatus according to claim 1 , wherein the processor is further caused to execute:
storing, in a storage, setting data in which the transmission order, the first frequency, and the second frequency are set in the random manner, wherein
the setting includes setting the transmission order, the first frequency, and the second frequency by reading the setting data from the storage.
6 . The distance measurement apparatus according to claim 1 , wherein the processor is further caused to execute:
transmitting a signal to a plurality of devices including the device,
receiving a signal from the plurality of devices,
acquiring a plurality of first phases when the plurality of devices receive the signal of the first frequency transmitted to the plurality of devices by the distance measurement apparatus, and a plurality of second phases when the plurality of devices receive the signal of the second frequency transmitted to the plurality of devices by the distance measurement apparatus,
measuring a plurality of third phases when the signal of the first frequency is received from the plurality of devices by the distance measurement apparatus, and a plurality of fourth phases when the signal of the second frequency is received from the plurality of devices by the distance measurement apparatus, and
measuring the distance to the plurality of devices based on the acquired plurality of first phases and the acquired plurality of second phases, the first frequency, the measured plurality of third phases and the measured plurality of fourth phases, and the second frequency.
7 . A setting method of a transmission condition performed in a distance measurement apparatus, the setting method comprising:
transmitting, by a transmitter, a signal to a device;
receiving, by a receiver, a signal from the device;
acquiring a first phase when the device receives a signal of a first frequency transmitted to the device by the distance measurement apparatus, and a second phase when the device receives a signal of a second frequency transmitted to the device by the distance measurement apparatus;
measuring a third phase when the signal of the first frequency is received from the device by the distance measurement apparatus, and a fourth phase when the signal of the second frequency is received from the device by the distance measurement apparatus;
measuring a distance to the device based on the acquired first phase and the acquired second phase, the first frequency, the measured third phase and the measured fourth phase, and the second frequency; and
setting, in a random manner, a transmission order, the first frequency, and the second frequency, the transmission order indicating an order of transmitting the signal of the first frequency by the device, transmitting the signal of the first frequency by the distance measurement apparatus, transmitting the signal of the second frequency by the device, and transmitting the signal of the second frequency by the distance measurement apparatus.