The present invention discloses a vehicle
ranging method, device, vehicle-mounted terminal, vehicle and medium, wherein the vehicle includes at least one UWB communication module, and the method includes: controlling the UWB communication module to send a first
ranging frame, and controlling the UWB communication module to receive a second
ranging frame and a data frame sent by a mobile terminal, wherein the first time of sending the first ranging frame is earlier than the second time of sending the second ranging frame, and the third time of sending the data frame is later than the second time, and the
clock compensation value of the UWB communication module is determined according to the first time, the second time, the third time, the fourth time of receiving the second ranging frame, and the fifth time of receiving the data frame, and the ranging information of the UWB communication module is determined according to the
clock compensation value, the first time, the second time, the fourth time, and the sixth time of the mobile terminal receiving the first ranging frame. On the basis of not increasing the hardware cost, the synchronization of data is effectively guaranteed, the error caused by the
clock non-synchronization between the UWB communication module and the mobile terminal is reduced, and the ranging accuracy is improved.