| CPC G01S 15/586 (2013.01) [G01S 7/521 (2013.01)] | 20 Claims |

|
1. A user device comprising:
a microphone;
a loudspeaker;
one or more processors; and
one or more computer-readable media storing computer-executable instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
causing the loudspeaker to emit a continuous ultrasonic signal for a first period of time into an environment of the user device, the continuous ultrasonic signal being usable to detect moving objects in the environment;
receiving a reflected signal corresponding to the continuous ultrasonic signal, the reflected signal originating at an object in the environment;
generating, at least partly using the microphone, audio data representing the reflected signal;
determining, using the audio data, that the object is in motion;
stopping emitting the continuous ultrasonic signal for a second period of time;
causing the loudspeaker to emit a first pulsed ultrasonic signal during the second period of time, the first pulsed ultrasonic signal being usable to determine a distance between the object and the user device;
receiving, at the microphone, a first reflected signal of the first pulsed ultrasonic signal off the object in the environment;
determining first energy of the first reflected signal;
causing the loudspeaker to emit a second pulsed ultrasonic signal into the environment at a first time during the second period of time;
receiving, at the microphone and at a second time, a second reflected signal of the second pulsed ultrasonic signal off the object;
determining second energy of second first reflected signal;
determining, based at least in part on the first energy being different than the second energy, that the object is moving in the environment; and
determining, based at least in part on a difference between the first time and the second time, and a speed of sound value, the distance between the user device and the object.
|