| CPC H04R 1/1041 (2013.01) [G01S 11/14 (2013.01); G06F 3/165 (2013.01); H04S 7/304 (2013.01); H04R 2420/07 (2013.01); H04R 2460/01 (2013.01)] | 6 Claims |

|
1. A sonic ranging method for a mobile phone and a wireless earphone, comprising:
the mobile phone performing an acoustic response test on the wireless earphone, comprising:
the mobile phone generating a first audio sequence at a first time slot and plays an audible sound comprising the first audio sequence;
when the wireless earphone recognizes the first audio sequence, the wireless earphone generating a second audio sequence to be played in ambience; and
when the mobile phone recognizes the second audio sequence from the ambience, the mobile phone estimates a length of elapsed time according to a time difference between a current time slot and the first time slot; and
when the mobile phone obtains the length of elapsed time, the mobile phone determining a distance between the wireless earphone and the mobile phone according to a delay compensation parameter and the length of elapsed time; wherein the delay compensation parameter comprises a length of time required by the mobile phone and the wireless earphone to process the first audio sequence and the second audio sequence.
|