| CPC H04W 12/63 (2021.01) [H04W 12/40 (2021.01); H04W 64/00 (2013.01)] | 14 Claims |

|
1. A ranging method, performed using a terminal device comprising a processor and a ranging chip, the processor having a security region, and the security region being communicatively connected to the ranging chip, the ranging method comprising:
acquiring a session parameter generated from an initial communication between the terminal device and a device to be ranged;
generating, in the security region, a ranging security parameter according to the session parameter;
sending the ranging security parameter to the ranging chip via a communication channel between the security region and the ranging chip; and
generating, by the ranging chip, a ranging time parameter according to the ranging security parameter, and performing, by the ranging chip, a ranging communication with the device to be ranged using the ranging time parameter to acquire a ranging result;
wherein the method further comprises:
generating the communication channel between the security region and the ranging chip according to a first security parameter preset in the security region and a second security parameter preset in the ranging chip.
|