A method for measuring a velocity based on wireless communication, applied to a communication system, the communication system comprising a transmitting device and a receiving device communicated with the transmitting device, and the transmitting device being configured to transmit a first reference signal and a second reference signal to the receiving device at an interval of a preset duration;
- the method for measuring the velocity based on wireless communication comprising:
- obtaining a first observation signal and a second observation signal, wherein the first observation signal and the second observation signal are signals actually received by the receiving device when the first reference signal and the second reference signal are transmitted to the receiving device via a channel;
- obtaining a first channel estimate and a second channel estimate according to the first observation signal and the second observation signal respectively;
- obtaining a first path gain corresponding to the first reference signal and a second path gain corresponding to the second reference signal based on the first channel estimate and the second channel estimate respectively;
- obtaining a path phase difference experienced by the first reference signal and the second reference signal when transmitted to the receiving device according to the first path gain and the second path gain;
- and
- obtaining a Doppler shift based on the path phase difference and the preset duration, and obtaining a moving velocity of the transmitting device relative to the receiving device based on the Doppler shift.