CN117452340A - Terminal positioning method, device, electronic equipment and readable storage medium - Google Patents

Terminal positioning method, device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN117452340A
CN117452340A CN202311389497.6A CN202311389497A CN117452340A CN 117452340 A CN117452340 A CN 117452340A CN 202311389497 A CN202311389497 A CN 202311389497A CN 117452340 A CN117452340 A CN 117452340A
Authority
CN
China
Prior art keywords
terminal
microphone
audio
distance
audio output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311389497.6A
Other languages
Chinese (zh)
Inventor
艾海强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202311389497.6A priority Critical patent/CN117452340A/en
Publication of CN117452340A publication Critical patent/CN117452340A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/18Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using ultrasonic, sonic, or infrasonic waves
    • G01S5/30Determining absolute distances from a plurality of spaced points of known location
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a terminal positioning method, a terminal positioning device, electronic equipment and a readable storage medium, and belongs to the technical field of terminal application. The terminal positioning method is applied to a first terminal, the first terminal comprises two microphones with different positions, the first terminal is in communication connection with a second terminal, and the method comprises the following steps: transmitting a control signal to the second terminal to cause the second terminal to transmit an audio signal in response to the control signal; determining distance information of each microphone from the second terminal in response to each microphone receiving the audio signal; determining relative position information of the first terminal and the second terminal according to distance information between the two microphones and the second terminal and the distance between the two microphones; and displaying positioning prompt information according to the relative position information, wherein the positioning prompt information comprises a guiding direction and/or a distance between the first terminal and the second terminal.

Description

Terminal positioning method, device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of terminal application, and particularly relates to a terminal positioning method, a device, electronic equipment and a readable storage medium.
Background
Along with the development of intellectualization and miniaturization of the terminal, the application of the terminal equipment is increasingly integrated into life and entertainment of the user, and great convenience is brought to the user. Because the size of the terminal is smaller and smaller, the terminal is lost to a clothes pocket, a back cushion gap or other inconspicuous corners, and difficulty is brought to a user in searching the terminal.
At present, a mode of controlling the vibration or the sound of the terminal is used for assisting a user to find the terminal, but the user cannot directly position the position of the terminal through the ear, so that effective assistance cannot be provided for the user.
Disclosure of Invention
The embodiment of the application aims to provide a terminal positioning method, a device, electronic equipment and a readable storage medium, which can position a terminal with unknown position, provide accurate positioning prompt information of the terminal for a user and bring convenience for the user to search the terminal.
In a first aspect, an embodiment of the present application provides a terminal positioning method, where the method is applied to a first terminal, the first terminal includes two microphones with different positions, and the first terminal is communicatively connected to a second terminal, and the method includes:
transmitting a control signal to the second terminal to cause the second terminal to transmit an audio signal in response to the control signal;
Determining distance information of the microphones from the second terminal in response to each microphone receiving the audio signal, the distance information including a distance of each microphone from the second terminal;
determining relative position information of the first terminal and the second terminal according to the distance between the two microphones and the second terminal and the distance between the two microphones;
and displaying positioning prompt information according to the relative position information, wherein the positioning prompt information comprises at least one of a guiding direction and a distance between the first terminal and the second terminal.
In a second aspect, embodiments of the present application provide an apparatus for positioning a terminal, where the apparatus includes two microphones with different positions, and the apparatus is communicatively connected to a second terminal, and the apparatus includes:
the sending module is used for sending a control signal to the second terminal so that the second terminal responds to the control signal to send out an audio signal;
the processing module is used for responding to the received audio signals of each microphone and determining distance information of the microphone and the second terminal, wherein the distance information comprises the distance between each microphone and the second terminal;
the processing module is also used for determining the relative position information of the terminal positioning device and the second terminal according to the distance between the two microphones and the second terminal and the distance between the two microphones;
And the display module is used for displaying positioning prompt information according to the relative position information, wherein the positioning prompt information comprises at least one of a guiding direction and the distance between the terminal positioning device and the second terminal.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In this embodiment of the present application, a first terminal sends a control signal to a second terminal to control the first terminal to send an audio signal, after each microphone of the first terminal receives the audio signal sent by the second terminal, the first terminal may determine a distance between each microphone and the second terminal, so as to determine relative position information of the first terminal and the second terminal by combining distances between two microphones and a distance between two microphones, respectively, and therefore, the first terminal may determine at least one of a guiding direction and a distance between the first terminal and the second terminal according to the relative position information. By displaying at least one of the guiding direction and the distance between the first terminal and the second terminal, accurate positioning prompt information is provided for the user, and convenience is brought to the user for searching the target terminal.
Drawings
Fig. 1 is a schematic flow chart of a terminal positioning method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a terminal position according to an embodiment of the present application;
fig. 3 is a schematic diagram of a terminal artifact provided in an embodiment of the present application;
fig. 4 is a schematic diagram of a first terminal position change according to an embodiment of the present application;
Fig. 5 is a schematic structural diagram of a terminal positioning device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic hardware structure of another electronic device according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate, such that embodiments of the present application may be practiced in orders other than those illustrated and described herein, and that the objects identified by "first," "second," etc. are generally of a type and do not limit the number of objects, e.g., the first object may be one or more, where the corresponding number of the plurality may be two or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
Along with the development of intellectualization and miniaturization of the terminal, the application of the terminal equipment is increasingly integrated into life and entertainment of the user, and great convenience is brought to the user. Because the size of the terminal is smaller and smaller, the terminal is lost to a clothes pocket, a back cushion gap or other inconspicuous corners, and difficulty is brought to a user in searching the terminal. In the related art, a mode of controlling the terminal to vibrate or make a sound is used for assisting a user to find the terminal, but the user cannot provide effective help for the user because the user can not directly locate the position of the terminal.
In addition, in the related art, the lost terminal is controlled to emit sound with larger volume so as to assist the user to find the lost terminal, but under a noisy environment or under the condition that the user does not want to make the terminal emit sound with larger volume to disturb other people, the user is not provided with effective help in a mode of reminding the user through the sound.
Therefore, in view of one or more of the above-mentioned problems, the embodiments of the present application provide a terminal positioning method, apparatus, electronic device, and readable storage medium, which can position a terminal whose position is unknown, provide accurate positioning prompt information of the terminal to a user, and bring convenience to the user to find the terminal.
The terminal positioning method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The terminal positioning method provided by the embodiment of the application can be applied to a first terminal, wherein the first terminal comprises two microphones with different positions, and the first terminal is in communication connection with a second terminal.
In an exemplary case where the second terminal is lost or the like and is at a position unknown to the user, the first terminal can be in communication connection with the second terminal to control the second terminal, so that the first terminal can locate the position of the second terminal and generate location prompt information to assist the user in finding the second terminal.
Optionally, the communication connection may be a wireless communication manner such as bluetooth, a wireless local area network, a mobile communication network, and radio frequency identification.
The first terminal comprises two microphones of different locations, it being understood that the total number of microphones comprised in the first terminal may be two or more. For example, the first terminal may be a device with a communication function, such as a mobile phone, a tablet computer, a notebook computer, a palm computer, or an Ultra-Mobile Personal Computer (UMPC) mobile personal computer. The second terminal may be a bluetooth headset, a watch, a bracelet, a mobile phone or the like capable of communicating with the first terminal.
Fig. 1 is a flowchart of a terminal positioning method according to an embodiment of the present application, and in conjunction with the method shown in fig. 1, specifically, in conjunction with the method shown in fig. 1, the method may include steps 110 to 140.
Step 110, sending a control signal to the second terminal so that the second terminal responds to the control signal to send out an audio signal;
step 120, in response to each microphone receiving the audio signal, determining distance information of the microphone from the second terminal, the distance information including a distance of each microphone from the second terminal;
step 130, determining relative position information of the first terminal and the second terminal according to the distance between the two microphones and the second terminal and the distance between the two microphones;
and 140, displaying positioning prompt information according to the relative position information, wherein the positioning prompt information comprises at least one of a guiding direction and a distance between the first terminal and the second terminal.
The above steps are described in detail below, and are specifically described below.
First, referring to the above steps 110 and 120, the first terminal may transmit a control signal to the second terminal, the control signal being used to instruct the second terminal to play the audio signal.
Specifically, the second terminal may include preset audio output parameter information, and in case that the audio play parameter information is not set by the user, the second terminal may select to output the audio signal using the preset audio output parameter information.
The preset audio output parameter information of the second terminal may be determined by combining factors that affect the standby duration of the second terminal, such as audio output power, battery capacity, etc., for example, the battery capacity is smaller, and the power consumption consumed by the second terminal for outputting the audio signal may be made smaller by adopting smaller audio amplitude, audio frequency, etc., where the preset audio output parameter information is not specifically limited.
As a specific example, the preset audio output parameter information may include an audio frequency, optionally, the audio frequency may be set in combination with a frequency band corresponding to the aural capability of the human ear, for example, if the user often uses the second terminal in a quiet space, the audio frequency may be set to be smaller than the frequency band corresponding to the aural capability of the human ear, and since the range of the frequency band receivable by the microphone is larger than the frequency band corresponding to the aural capability of the human ear, the audio frequency is set to be smaller than the frequency band corresponding to the aural capability of the human ear, the microphone may also detect the audio signal, and may not disturb other users in the environment where the user is located. Alternatively, the audio frequency may be set to be larger than the frequency band corresponding to the auditory ability of the human ear, and the microphone may detect the audio signal as well without being heard by the human ear. Based on this, the second terminal can reduce interference with other users when outputting the audio signal.
In addition, the user can set the audio frequency to a frequency band corresponding to the auditory ability of human ears, so that the microphone can receive the audio signals, and meanwhile, the user can hear the audio signals through human ears, so that the user can find the general direction of the second terminal through sound on one hand, and can search the second terminal by using prompt information generated by the first terminal based on the detected audio signals.
In yet another example, the preset audio output parameter information may include audio output power, for example, the audio output power may be set in combination with a battery capacity of the second terminal itself, for example, in a case where the battery capacity is small, the audio signal is preferentially output using the lower audio output power, so that a standby period of the second terminal may be provided, and a power consumption of the second terminal may be avoided.
The second terminal indicates the sounding signal based on the control signal, and after the microphone of the first terminal acquires the environmental sound for acquisition, the audio signal and noise except the audio signal in the environment can be accurately identified.
After each microphone in the first terminal receives the audio signal, distance information between the microphone and the second terminal can be determined, so that the distance between each microphone and the second terminal is obtained.
Next, referring to step 130 above, the positions of the two microphones in the first terminal are known, and thus the spacing between the two microphones is also known. After the distances between the two microphones and the second terminal are obtained, the relative position information of the first terminal and the second terminal can be determined in a triangular positioning mode, and the relative position information can include included angle information and distance information, for example, an included angle formed by a connecting line formed by each microphone and the second terminal and a connecting line formed by the two microphones. Fig. 2 is a schematic diagram of a terminal position provided in the embodiment of the present application, and referring to fig. 2, the first terminal 10 includes a first microphone 11 and a second microphone 12, the first microphone 11 and the second microphone 12 form a connection 100, the first microphone 11 and the second terminal form a connection 101, the second microphone 12 and the second terminal form a connection 102, and by means of triangle positioning, angles corresponding to the included angle α and the included angle θ can be determined.
After determining the relative position information, referring to step 140, the positioning prompt information may be determined according to the relative position information, and the positioning prompt information is displayed through the first terminal, so that the user may find the second terminal conveniently.
The positioning prompt information may include a guiding direction, a distance between the first terminal and the second terminal, and both the guiding direction and the distance. For example, the guiding direction may point to the position of the second terminal, so that the user may be assisted to find the second terminal, and for example, the first terminal may display a distance from the second terminal, and as the terminal moves, the distance between the first terminal and the second terminal changes correspondingly, and in the case that the distance becomes smaller, the closer the positions of the first terminal and the second terminal are indicated.
The guiding direction may be a direction in which the first terminal points to the second terminal, and in some embodiments, alternatively, the preset position may be selected from the first terminal to represent the position of the first terminal, for example, the first microphone may be used as the preset position, the position of the first microphone may be used to represent the position of the first terminal, and in addition, the position of the second microphone may be used to represent the position of the first terminal. After the preset position is determined, the guiding direction can be conveniently determined.
According to the embodiment of the application, the first terminal sends the audio signal by combining the second terminal, and the distance between the two microphones and the second terminal is determined, so that the relative position information of the first terminal and the second terminal can be rapidly and accurately determined, and at least one of the guiding direction and the distance between the first terminal and the second terminal can be determined according to the relative position information. By displaying at least one of the guiding direction and the distance between the first terminal and the second terminal, accurate positioning prompt information is provided for the user, and convenience is brought to the user for searching the target terminal.
In some optional embodiments, the user may adjust an audio output mode of the audio signal, specifically, the audio signal corresponds to at least one audio output mode, the audio output mode corresponds to audio output parameter information one by one, and audio output power or audio output frequency between different audio output parameter information is different;
the step 110 of sending a control signal to the second terminal may specifically include steps 1101 to 1103.
Step 1101, receiving an input selecting a target audio output mode from the at least one audio output mode;
Step 1102, in response to an input for selecting a target audio output mode, determining audio output parameter information corresponding to the target audio output mode as first target audio output parameter information;
and step 1103, a control signal is sent to the second terminal, where the control signal is used to instruct the second terminal to output an audio signal according to the first target audio output parameter information.
In an exemplary process, the user may adjust the audio output parameter information of the audio signal through the first terminal in a process of searching for the second terminal, so as to adjust the audio signal output by the second terminal.
Optionally, in embodiments of the present application, one or more audio output modes are provided for a user to select, where multiple means two or more. For example, the display interface of the first terminal may include a plurality of audio output modes, such as a low power consumption mute mode, a high power consumption mute mode, a low power consumption voiced mode, a high power consumption voiced mode, and the like.
The different power consumption modes can control the transmission distance of the audio signal, for example, when the user gets up in the morning, if the user does not want to disturb the sleep of other people because the earphone emits a larger sound, the low-power consumption mute mode can be adopted, at this time, the second terminal outputs the audio signal in the form of ultrasonic wave, the microphone can effectively receive the audio signal in the frequency band range corresponding to the ultrasonic wave, and most of users cannot hear the audio signal. Optionally, the range that the user needs to look for is bigger, can adopt the silence mode of high-power consumption, and in this way, the second terminal can improve the increase power voltage to for the form of ultrasonic wave, output audio frequency range is higher audio frequency signal, and in this way, audio frequency signal can transmit the farther distance, is favorable to the microphone of first terminal to receive audio frequency signal.
It is understood that the second terminal may sense through hearing the audio signal output based on the low power consumption voiced mode or the high power consumption voiced mode. The sound transmission distance corresponding to the high-power-consumption sound mode is larger than the sound transmission distance corresponding to the low-power-consumption sound mode.
Optionally, the first terminal may also provide a more detailed parameter adjustment control after the user selects one of the audio output modes. The parameter adjustment controls may include frequency adjustment controls, power adjustment controls, and the like. Specifically, in the low power consumption mute mode or the high power consumption mute mode, for example, based on the frequency adjustment control, the user can select the audio frequency in the frequency band range of 6KHz to 10KHz, and in the mute mode, the user can select the audio frequency in the frequency band range of 0 to 100 Hz.
In the low-power-consumption mute mode, for example, based on the power adjustment control, the transmission distance of the audio signal can be adjusted by adjusting the power, wherein the larger the power is, the farther the transmission distance of the audio signal is.
According to the embodiment of the application, the user can adjust the audio output mode at the first terminal, so that the convenience for the user to find the second terminal can be improved. For example, the transmission distance of the audio signal can be increased by adjusting the audio output power, so that the user can find the second terminal conveniently under the condition that the second terminal is far away from the first terminal; for another example, the user may adjust the audio output frequency to be within the range of the human ear hearing, thereby facilitating the user to find the second terminal through hearing.
In some embodiments, the first terminal recognizes the audio signal transmitted from the second terminal by collecting the environmental audio, and determines the distance information from the second terminal according to receiving the audio signal transmitted from the second terminal. Specifically, the audio signal corresponds to the second target audio output parameter information, and in response to each microphone receiving the audio signal, the distance information between the microphone and the second terminal is determined, and steps 1201 to 1203 may be described below.
Step 1201, acquiring environmental audio acquired by each microphone;
step 1202, detecting whether the environmental audio collected by each microphone includes an audio signal corresponding to the second target audio output parameter information;
step 1203, corresponding to each microphone, determining distance information between the microphone and the second terminal when the environmental audio includes the audio signal corresponding to the second target audio output parameter information.
Specifically, the second target audio output parameter information may be preset audio output parameter information, or may be audio output parameter information corresponding to a target audio output mode selected by the user, that is, the first target audio output parameter information.
The first terminal acquires the environmental audio collected by each microphone and detects the environmental audio, so that whether an audio signal sent by the second terminal is received or not can be determined. For example, the first terminal may acquire an audio feature of the audio signal, and determine whether the audio signal transmitted by the second terminal is received by detecting whether the environmental audio includes a signal of the audio feature.
As a specific example, the audio features may include waveforms of the audio signal. For example, detecting whether the environmental audio collected by each microphone includes an audio signal corresponding to the second target audio output parameter information may refer to the following steps: corresponding to each microphone, filtering the environmental audio according to a filtering algorithm corresponding to the second target audio output parameter information to obtain filtered environmental audio; determining whether the environmental audio collected by the microphone comprises an audio signal corresponding to second target audio output parameter information according to whether the audio waveform corresponding to the filtered environmental audio is matched with the waveform corresponding to the audio signal; and under the condition that the filtered audio waveform is matched with the waveform corresponding to the audio signal, the environment audio comprises the audio signal corresponding to the second target audio output parameter information.
The waveform corresponding to the output audio signal of the second terminal may be a preset waveform, and the preset waveform may be a sine waveform, a square waveform, a pulse waveform, or the like, which is not specifically shown here. Different audio output parameter information may correspond to information of parameters such as different waveform phases, periods, waveform amplitudes, and the like, respectively.
After the first terminal sends the control signal through the second terminal, the second terminal responds to the control signal and sends out an audio signal corresponding to the second target audio output parameter information.
The audio signal sent by the second terminal is a signal with a rule and a corresponding frequency band, and the noise does not have the characteristic, so that the environmental audio collected by the microphone is filtered by selecting a filtering algorithm corresponding to the second target audio output parameter information to filter the noise in the environment. And comparing whether the filtered audio waveform is matched with the waveform corresponding to the audio signal, so as to determine whether the environmental audio comprises the audio signal corresponding to the second target audio output parameter information. In the embodiment of the present application, in a case where the filtered audio waveform is matched with a waveform corresponding to the audio signal, the environmental audio includes an audio signal corresponding to the second target audio output parameter information.
Illustratively, in the case of a low power consumption voiced mode, the second target audio output parameter information includes audio frequencies in the range of 6KHz to 10 KHz. After the first terminal collects the environmental audio, a narrow-band filtering can be carried out, and only signals in the range of 6KHz to 10KHz are reserved, so that a lot of noise can be filtered, and the first terminal can conveniently identify whether the filtered environmental audio comprises the audio signals output by the second terminal.
In some embodiments, after determining that the microphone collects the audio information sent by the second terminal, distance information between the microphone and the second terminal may be determined so as to find a positional relationship between the second terminal and the first terminal.
According to the embodiment of the application, whether the environment comprises the audio sent by the second terminal or not is detected, so that high-precision direction and position judgment can be realized, and accurate positioning is provided for a user.
In some embodiments, the two microphones are a first microphone and a second microphone, respectively; referring to the above step 130, the relative position information of the first terminal and the second terminal is determined according to the distance between the two microphones and the second terminal and the distance between the two microphones, and the following steps 1301 to 1303 may be referred to.
Step 1301, acquiring a sending time of a control signal, a first time when a first microphone receives an audio signal, and a second time when a second microphone receives the audio signal;
step 1302, determining a first distance between the first microphone and the second terminal according to a preset audio propagation speed and a time difference between the emission time and the first time; determining a second distance between the second microphone and the second terminal according to a preset audio propagation speed and a time difference between the sending time and the second time;
in step 1303, the relative position information of the first terminal and the second terminal is determined according to the first distance, the second distance, and the distance between the first microphone and the second microphone.
Specifically, after the first terminal transmits the control signal, the transmission time of the control signal may be recorded, and since the transmission medium of the control signal is an electromagnetic wave, the time of transmission between the first terminal and the second terminal through the control signal may be negligible. Alternatively, by taking the emission time of the control signal as the time of the second device emitting the audio signal, the calculation process can be simplified, and the calculation speed can be increased.
Next, a first distance between the first microphone and the second terminal can be determined by combining a preset audio propagation speed and a time difference between the emission time and the first time; and determining a second distance between the second microphone and the second terminal by combining the preset audio propagation speed and a time difference between the emission time and the second time.
In some embodiments, the relative position information may include angle information and distance information, for example, the distance information may include a distance of each microphone from the second terminal, and the angle information may include an angle formed by a line between a line connecting each microphone and the second terminal and the line connecting the microphones.
By taking the example that the position of the first microphone represents the position of the first terminal, and referring to fig. 2, the distance between the first microphone and the second microphone is L0, and by combining the preset audio propagation speed and the time difference between the sending time and the first time, the first distance La between the first microphone and the second terminal and the second distance Lb between the second microphone and the second terminal can be calculated, and then, the included angle θ between the connection line between the first microphone and the second microphone and the connection line between the first microphone and the second terminal can be determined.
As a specific example, the angle θ can be found from the formulas (1) to (5). Referring to fig. 2, an intersection point of the point 12 perpendicular to the connection line between the first microphone and the second terminal is a point 13, where a distance from the point 20 where the second terminal is located to the point 13 is x, where x is an unknown quantity. The magnitude of θ can be expressed in combination with x in combination with equation (1), equation (2) and equation (3). Based on Pythagorean theorem, equation (4) can be obtained, and since L0, la and Lb are all known amounts, the calculation of x can be performed as shown in equation (5). After x is obtained, the magnitude of theta can be rapidly calculated.
cosθ*L b =L b -x (1)
L 0 2 -(L b -x) 2 =L a 2 -x 2 (4)
According to the embodiment of the application, the first terminal sends the audio signal by combining the second terminal, and the distance between the two microphones and the second terminal is determined, so that the relative position information of the first terminal and the second terminal can be rapidly and accurately determined, accurate positioning prompt information can be provided for a user, and convenience is brought to the user to find the target terminal.
In some embodiments, two pieces of relative position information may be determined by means of triangulation, and fig. 3 is a schematic diagram of a terminal artifact provided in the embodiments of the present application, specifically shown in fig. 3, where the second terminal 20 is an actual terminal, and the location of the artifact 21 is a symmetrical location of the terminal 20 based on a line where the first microphone 11 and the second microphone 12 are located. Optionally, when the microphone receives the audio signal, a plane perpendicular to the ground plane may be formed by a connection line between the first microphone and the second microphone, the space is divided into two sides, the microphone is used to detect the approximate azimuth of the sound source, the terminal on the same side as the azimuth of the sound source is the real second terminal, and then the relative position information of the first terminal and the second terminal may be determined by the triangle positioning method, so as to display the positioning guide information.
Alternatively, the second terminal and the artifact may be distinguished in conjunction with infrared distance detection, for example, the infrared distance detects that the side of the first terminal close to the wall, for example, the distance between the first terminal and the wall is less than 0.5 m, the space range corresponding to the other side of the first terminal is larger, and the nearest distance between the other side and the wall is greater than 2 m, and then the included relative position information located at the other side may be determined to be the actual terminal by the second terminal 20.
According to the embodiment of the application, the accurate positioning of the second terminal can be conveniently and rapidly realized.
In some embodiments, in order to flexibly cope with the artifact problem existing in different scenes, the real relative position information between the first terminal 10 and the second terminal 20 is accurately found.
In some embodiments, the second terminal may output a plurality of audio signals, i.e., the number of audio signals collected by each microphone is a plurality; specifically, in response to each microphone receiving an audio signal, distance information of the microphone from the second terminal is determined, and reference may be made to steps 201 and 202.
Step 201, receiving an input for controlling the movement of a first terminal;
step 202, in the moving process of the first terminal, responding to each audio signal received by each microphone, obtaining the distance between each microphone and the second terminal, and obtaining the distance information corresponding to each audio signal;
Accordingly, determining the relative position information of the first terminal and the second terminal according to the first distance, the second distance and the distance between the first microphone and the second microphone may refer to step 203 and step 204.
Step 203, corresponding to each audio signal, determining first candidate position information and second candidate position information of the second terminal according to the first distance, the second distance and the distance between the first microphone and the second microphone;
and step 20, determining relative position information in the first candidate position information and the second candidate position information according to the change trend of the first distances and the second distances, wherein the relative position information is used for indicating the actual position of the second terminal.
In an exemplary case, when the user cannot find the second terminal, the location of the second terminal is usually in a static state, and the user is often in a moving state during the process of searching for the second terminal, positioning information can be provided for the user in combination with the first terminal to assist the user in searching for the second terminal, so that the user can carry the first terminal during the moving process, and the first terminal moves in this time.
In yet another example, if the first terminal is in a stationary state, the first terminal may also output a reminder message to remind the user to move with the first terminal, so that the first terminal identifies an artifact and determines an actual location where the second terminal is located.
During the movement of the first terminal, the second terminal may output at least two audio signals, and after determining that the first terminal microphone is receiving the audio signals, the second terminal may identify a plurality of audio signals sent by the second terminal. For example, the output time interval of two adjacent audio signals may be a preset time length, and the first terminal may distinguish the two audio signals according to the receiving times corresponding to the two audio signals respectively. Based on the output time interval of two adjacent audio signals and the emission time of the control signals, the distance between the microphone and the second terminal can be conveniently calculated when the microphone receives different audio signals. The specific distance calculation method is not described herein.
In some embodiments, the first candidate location information and the second candidate location information may be determined according to the first distance, the second distance, and a distance between the first microphone and the second microphone, where the first candidate location information may describe a relative location relationship between the first location and the first terminal, and the second candidate location information may describe a relative location relationship between the second location and the first terminal.
During the movement of the first terminal, the first distance between the first microphone and the second terminal changes, the second distance between the second microphone and the second terminal also changes, the corresponding direction when the first distance and the second distance are reduced can be determined as the approximate direction of the second terminal,
For example, based on the movement direction of the user, if both the first distance and the second distance become smaller during the movement of the user, the position located on the side pointed by the movement direction among the first position and the second position is the actual position of the second terminal, in other words, the angle formed by the direction in which the first terminal points to the second terminal and the movement direction is an acute angle. Based on this, can convenient and fast's realization location second terminal.
For a clearer description of an embodiment of the present application, fig. 4 is a schematic diagram of a change of a position of a first terminal provided in an embodiment of the present application, and in conjunction with fig. 4, the first terminal is moved from a position 401 to a position 402, where the first terminal is located at the position 401 corresponding to a first audio signal and the first terminal is located at the position 402 corresponding to a second audio signal.
At position 401, a first distance D11 of the first microphone from the second terminal, and a second distance D12 of the second microphone from the second terminal, a location point 20 and a location point 21 may be obtained.
At position 402, a first distance D21 between the first microphone and the second terminal, and a second distance D22 between the second microphone and the second terminal, at which point the anchor point 20 and anchor point 41 may be obtained
After the first terminal moves from the position 401 to the position 402, D11 is greater than D21, and D12 is greater than D22, that is, the distance between the first terminal and the second terminal is further and further, which means that the positioning point 41 and the positioning point 21 included on the side pointed by the current moving direction are both artifacts, and the positioning point 20 is the actual position of the second terminal.
It can be understood that if the distance between the first terminal and the second terminal is getting closer, the first distance and the second distance are both smaller, and the side pointed by the current moving direction and the actual position of the second terminal are the same.
According to the embodiment of the application, the user only needs to simply move the first terminal, the first terminal can quickly determine the actual position of the second terminal from the plurality of candidate position information and display positioning guide information, the operation is simple, and the user can conveniently and quickly search the second terminal.
According to the terminal positioning method provided by the embodiment of the application, the execution main body can be a terminal positioning device. In the embodiment of the present application, a method for executing terminal positioning by using a terminal positioning device is taken as an example, and the terminal positioning device provided in the embodiment of the present application is described.
Fig. 5 is a schematic structural diagram of a terminal positioning device provided in an embodiment of the present application, where the device includes two microphones with different positions, and the device is communicatively connected to a second terminal, and in conjunction with fig. 5, the terminal positioning device may include: a sending module 510, a processing module 520 and a display module 530.
A transmitting module 510, configured to transmit a control signal to the second terminal, so that the second terminal transmits an audio signal in response to the control signal;
a processing module 520, configured to determine, in response to each microphone receiving an audio signal, distance information between the microphone and the second terminal, where the distance information includes a distance between each microphone and the second terminal;
the processing module 520 is further configured to determine relative position information of the terminal positioning device and the second terminal according to a distance between the two microphones and the second terminal and a distance between the two microphones, respectively;
the display module 530 is configured to display positioning prompt information according to the relative position information, where the positioning prompt information includes at least one of a guiding direction and a distance between the terminal positioning device and the second terminal.
In some embodiments, the audio signal corresponds to at least one audio output mode, the audio output modes correspond to the audio output parameter information one by one, and the audio output power or the audio output frequency are different between different audio output parameter information;
the apparatus further comprises:
a receiving module for receiving an input selecting a target audio output mode from the at least one audio output mode;
the processing module 520 is further configured to determine, in response to an input for selecting the target audio output mode, audio output parameter information corresponding to the target audio output mode as first target audio output parameter information;
The sending module 510 is further configured to send a control signal to the second terminal, where the control signal is used to instruct the second terminal to output an audio signal according to the first target audio output parameter information.
According to the embodiment of the application, the terminal positioning device sends the control signal to the second terminal so as to control the terminal positioning device to send the audio signal, after each microphone of the terminal positioning device receives the audio signal sent by the second terminal, the terminal positioning device can determine the distance between each microphone and the second terminal, so that the relative position information of the terminal positioning device and the second terminal can be determined by combining the distance between the two microphones and the second terminal and the distance between the two microphones, and therefore, the terminal positioning device can determine at least one of the guiding direction and the distance between the terminal positioning device and the second terminal according to the relative position information. By displaying at least one of the guiding direction and the distance between the terminal positioning device and the second terminal, accurate positioning prompt information is provided for the user, and convenience is brought to the user for searching the target terminal.
In some embodiments, the two microphones are a first microphone and a second microphone, respectively;
The acquisition module is used for acquiring the sending time of the control signal, the first time when the first microphone receives the audio signal and the second time when the second microphone receives the audio signal;
the processing module 520 is further configured to determine a first distance between the first microphone and the second terminal according to a preset audio propagation speed and a time difference between the emission time and the first time; determining a second distance between the second microphone and the second terminal according to a preset audio propagation speed and a time difference between the sending time and the second time;
the processing module 520 is further configured to determine relative position information of the terminal positioning device and the second terminal according to the first distance, the second distance, and the distance between the first microphone and the second microphone.
According to the embodiment of the application, the user can adjust the audio output mode at the terminal positioning device, so that the convenience of the user in searching the second terminal can be improved. For example, the transmission distance of the audio signal can be increased by adjusting the audio output power, so that the user can find the second terminal conveniently under the condition that the second terminal is far away from the terminal positioning device; for another example, the user may adjust the audio output frequency to be within the range of the human ear hearing, thereby facilitating the user to find the second terminal through hearing.
In some embodiments, the number of audio signals is a plurality;
the receiving module is also used for receiving the input for controlling the movement of the terminal positioning device;
the processing module 520 is further configured to, in a process of moving the terminal positioning device, obtain a distance between each microphone and the second terminal in response to each audio signal received by each microphone, and obtain distance information corresponding to each audio signal;
the processing module 520 is further configured to determine, corresponding to each audio signal, first candidate location information and second candidate location information of the second terminal according to the first distance, the second distance, and a distance between the first microphone and the second microphone;
the processing module 520 is further configured to determine, according to the change trends of the plurality of first distances and the plurality of second distances, relative position information from the first candidate position information and the second candidate position information, where the relative position information is used to indicate an actual position of the second terminal.
According to the embodiment of the application, the terminal positioning device sends the audio signal by combining the second terminal, and the distance between the two microphones and the second terminal is determined, so that the relative position information of the terminal positioning device and the second terminal can be rapidly and accurately determined, accurate positioning prompt information can be provided for a user, and convenience is brought to the user to find a target terminal.
In some embodiments, the audio signal corresponds to second target audio output parameter information; the apparatus further comprises:
the acquisition module is used for acquiring the environmental audio acquired by each microphone;
the processing module 520 is further configured to detect whether the environmental audio collected by each microphone includes an audio signal corresponding to the second target audio output parameter information;
the acquisition module is used for corresponding to each microphone, and acquiring the audio signal acquisition time corresponding to the microphone under the condition that the environmental audio comprises the audio signal corresponding to the second target audio output parameter information;
the processing module 520 is further configured to determine a distance between each microphone and the second terminal according to the audio signal acquisition time corresponding to each microphone, so as to obtain distance information.
According to the embodiment of the application, the user only needs to simply move the terminal positioning device, the terminal positioning device can quickly determine the actual position of the second terminal from the plurality of candidate position information and display positioning guide information, the operation is simple, and the user can conveniently and quickly search for the second terminal.
According to the embodiment of the application, whether the environment comprises the audio sent by the second terminal or not is detected, so that high-precision direction and position judgment can be realized, and accurate positioning is provided for a user.
In some embodiments, the processing module 520 is further configured to, for each microphone, perform filtering processing on the environmental audio according to a filtering algorithm corresponding to the second target audio output parameter information, to obtain filtered environmental audio;
the processing module 520 is further configured to determine whether the environmental audio collected by the microphone includes an audio signal corresponding to the second target audio output parameter information according to whether the audio waveform corresponding to the filtered environmental audio matches the waveform corresponding to the audio signal;
and under the condition that the filtered audio waveform is matched with the waveform corresponding to the audio signal, the environment audio comprises the audio signal corresponding to the second target audio output parameter information.
According to the embodiment of the application, whether the environment comprises the audio sent by the second terminal or not is detected, so that high-precision direction and position judgment can be realized, and accurate positioning is provided for a user.
The terminal positioning device in the embodiment of the application may be an electronic device, or may be a component in the electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The terminal positioning device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The terminal positioning device provided in the embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to 3, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 6, the embodiment of the present application further provides an electronic device 600, including a processor 601 and a memory 602, where the memory 602 stores a program or an instruction that can be executed on the processor 601, and the program or the instruction implements each step of the above embodiment of the terminal positioning method when executed by the processor 601, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 710 via a power management system so as to perform functions such as managing charge, discharge, and power consumption via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
A radio frequency unit 701, configured to send a control signal to the second terminal, so that the second terminal sends out an audio signal in response to the control signal;
a processor 710 for determining distance information of the microphones from the second terminal in response to each microphone receiving the audio signal, the distance information including a distance of each microphone from the second terminal;
the processor 710 is further configured to determine relative position information of the electronic device and the second terminal according to a distance between the two microphones and the second terminal and a distance between the two microphones, respectively;
and the display unit 706 is configured to display positioning prompt information according to the relative position information, where the positioning prompt information includes at least one of a guiding direction and a distance between the electronic device and the second terminal.
In some embodiments, the audio signal corresponds to at least one audio output mode, the audio output modes correspond to the audio output parameter information one by one, and the audio output power or the audio output frequency are different between different audio output parameter information;
a radio frequency unit 701 for receiving an input selecting a target audio output mode from the at least one audio output mode;
the processor 710 is further configured to determine, in response to an input selecting the target audio output mode, audio output parameter information corresponding to the target audio output mode as first target audio output parameter information;
the radio frequency unit 701 is further configured to send a control signal to the second terminal, where the control signal is configured to instruct the second terminal to output an audio signal according to the first target audio output parameter information.
According to the embodiment of the application, the electronic device sends the control signal to the second terminal so as to control the electronic device to send the audio signal, after each microphone of the electronic device receives the audio signal sent by the second terminal, the electronic device can determine the distance between each microphone and the second terminal, so that the distance between the two microphones and the second terminal and the distance between the two microphones can be combined to determine the relative position information of the electronic device and the second terminal, and therefore, the electronic device can determine at least one of the guiding direction and the distance between the electronic device and the second terminal according to the relative position information. By displaying at least one of the guiding direction and the distance between the electronic equipment and the second terminal, accurate positioning prompt information is provided for the user, and convenience is brought to the user for searching the target terminal.
In some embodiments, the two microphones are a first microphone and a second microphone, respectively;
a processor 710 for obtaining an emission time of the control signal, and a first time when the first microphone receives the audio signal, and a second time when the second microphone receives the audio signal;
the processor 710 is further configured to determine a first distance between the first microphone and the second terminal according to a preset audio propagation speed and a time difference between the emission time and the first time; determining a second distance between the second microphone and the second terminal according to a preset audio propagation speed and a time difference between the sending time and the second time;
the processor 710 is further configured to determine relative position information of the electronic device and the second terminal according to the first distance, the second distance, and a distance between the first microphone and the second microphone.
According to the embodiment of the application, the user can adjust the audio output mode in the electronic equipment, so that the convenience for the user to find the second terminal can be improved. For example, the transmission distance of the audio signal can be increased by adjusting the audio output power, so that the user can find the second terminal conveniently under the condition that the second terminal is far away from the electronic equipment; for another example, the user may adjust the audio output frequency to be within the range of the human ear hearing, thereby facilitating the user to find the second terminal through hearing.
In some embodiments, the number of audio signals is a plurality;
the radio frequency unit 701 is further configured to receive an input for controlling movement of the electronic device;
the processor 710 is further configured to, in a process of moving the electronic device, obtain a distance between each microphone and the second terminal in response to each audio signal received by each microphone, and obtain distance information corresponding to each audio signal;
the processor 710 is further configured to determine, for each audio signal, first candidate location information and second candidate location information of the second terminal according to the first distance, the second distance, and a distance between the first microphone and the second microphone;
the processor 710 is further configured to determine, according to a trend of the plurality of first distances and the plurality of second distances, relative position information among the first candidate position information and the second candidate position information, where the relative position information is used to indicate an actual position of the second terminal.
According to the embodiment of the application, the electronic equipment sends the audio signal by combining the second terminal, and the distance between the two microphones and the second terminal is determined, so that the relative position information of the electronic equipment and the second terminal can be rapidly and accurately determined, accurate positioning prompt information can be provided for a user, and convenience is brought to the user to find a target terminal.
In some embodiments, the audio signal corresponds to second target audio output parameter information;
a processor 710 for acquiring environmental audio collected by each microphone;
the processor 710 is further configured to detect whether the environmental audio collected by each microphone includes an audio signal corresponding to the second target audio output parameter information;
a processor 710, configured to, for each microphone, obtain an audio signal acquisition time corresponding to the microphone when the environmental audio includes an audio signal corresponding to the second target audio output parameter information;
the processor 710 is further configured to determine a distance between each microphone and the second terminal according to the audio signal acquisition time corresponding to each microphone, so as to obtain distance information.
According to the embodiment of the application, the user only needs to simply move the electronic equipment, the electronic equipment can quickly determine the actual position of the second terminal from the plurality of candidate position information and display positioning guide information, the operation is simple, and the user can conveniently and quickly search for the second terminal.
According to the embodiment of the application, whether the environment comprises the audio sent by the second terminal or not is detected, so that high-precision direction and position judgment can be realized, and accurate positioning is provided for a user.
In some embodiments, the processor 710 is further configured to, for each microphone, perform filtering processing on the environmental audio according to a filtering algorithm corresponding to the second target audio output parameter information, to obtain filtered environmental audio;
the processor 710 is further configured to determine, according to whether the audio waveform corresponding to the filtered environmental audio matches the waveform corresponding to the audio signal, whether the environmental audio collected by the microphone includes an audio signal corresponding to the second target audio output parameter information;
and under the condition that the filtered audio waveform is matched with the waveform corresponding to the audio signal, the environment audio comprises the audio signal corresponding to the second target audio output parameter information.
According to the embodiment of the application, whether the environment comprises the audio sent by the second terminal or not is detected, so that high-precision direction and position judgment can be realized, and accurate positioning is provided for a user.
It should be appreciated that in embodiments of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, with the graphics processor 7041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7071, and the display panel 7071 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts, a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 709 may include volatile memory or nonvolatile memory, or the memory 709 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 709 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 710 may include one or more processing units; optionally, processor 710 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, where the program or the instruction realizes each process of the embodiment of the terminal positioning method when executed by a processor, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as computer readable memory ROM, random access memory RAM, magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, each process of the embodiment of the terminal positioning method can be realized, the same technical effect can be achieved, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to implement the respective processes of the embodiments of the terminal positioning method, and achieve the same technical effects, so that repetition is avoided, and a detailed description is omitted here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (14)

1. A terminal positioning method, wherein the method is applied to a first terminal, the first terminal comprises two microphones with different positions, and the first terminal is in communication connection with a second terminal, and the method comprises:
transmitting a control signal to the second terminal so that the second terminal transmits an audio signal in response to the control signal;
determining distance information of each microphone from the second terminal in response to each microphone receiving the audio signal, the distance information including a distance of each microphone from the second terminal;
determining relative position information of the first terminal and the second terminal according to the distance between the two microphones and the second terminal and the distance between the two microphones;
and displaying positioning prompt information according to the relative position information, wherein the positioning prompt information comprises at least one of a guiding direction and a distance between the first terminal and the second terminal.
2. The method of claim 1, wherein the audio signal corresponds to at least one audio output mode, the audio output mode corresponds to audio output parameter information one-to-one, and audio output power or audio output frequency is different between different audio output parameter information;
The sending a control signal to the second terminal includes:
receiving an input selecting a target audio output mode from the at least one audio output mode;
responding to the input of selecting the target audio output mode, and determining the audio output parameter information corresponding to the target audio output mode as first target audio output parameter information;
and sending the control signal to the second terminal, wherein the control signal is used for indicating the second terminal to output the audio signal according to the first target audio output parameter information.
3. The method of claim 1, wherein the two microphones are a first microphone and a second microphone, respectively; the determining the relative position information of the first terminal and the second terminal according to the distance between the two microphones and the second terminal and the distance between the two microphones, respectively, includes:
acquiring the sending time of the control signal, and acquiring the first time of the audio signal received by the first microphone and the second time of the audio signal received by the second microphone;
determining a first distance between the first microphone and the second terminal according to a preset audio propagation speed and a time difference between the sending time and the first time; and determining a second distance between the second microphone and the second terminal according to the preset audio propagation speed and a time difference between the emission time and the second time;
And determining the relative position information of the first terminal and the second terminal according to the first distance, the second distance and the distance between the first microphone and the second microphone.
4. A method according to claim 3, wherein the number of audio signals is a plurality; the determining distance information of the microphone from the second terminal in response to each of the microphones receiving the audio signal includes:
receiving an input controlling movement of the first terminal;
in the moving process of the first terminal, responding to each audio signal received by each microphone, and acquiring the distance between each microphone and the second terminal to obtain distance information corresponding to each audio signal;
correspondingly, the determining the relative position information of the first terminal and the second terminal according to the first distance, the second distance and the distance between the first microphone and the second microphone includes:
corresponding to each audio signal, determining first candidate position information and second candidate position information of the second terminal according to the first distance, the second distance and the distance between the first microphone and the second microphone;
And determining the relative position information in the first candidate position information and the second candidate position information according to the change trend of the first distances and the second distances, wherein the relative position information is used for indicating the actual position of the second terminal.
5. The method of claim 1, wherein the audio signal corresponds to second target audio output parameter information, and wherein the determining distance information of the microphone from the second terminal in response to each of the microphones receiving the audio signal comprises:
acquiring environmental audio acquired by each microphone;
detecting whether the environmental audio acquired by each microphone comprises an audio signal corresponding to the second target audio output parameter information;
and corresponding to each microphone, determining distance information between the microphone and the second terminal under the condition that the environmental audio comprises an audio signal corresponding to the second target audio output parameter information.
6. The method of claim 5, wherein detecting whether the environmental audio collected by each microphone includes an audio signal corresponding to the second target audio output parameter information comprises:
Corresponding to each microphone, performing filtering processing on the environmental audio according to a filtering algorithm corresponding to the second target audio output parameter information to obtain filtered environmental audio;
determining whether the environmental audio collected by the microphone comprises the audio signal corresponding to the second target audio output parameter information according to whether the audio waveform corresponding to each filtered environmental audio is matched with the waveform corresponding to the audio signal;
and under the condition that the filtered audio waveform is matched with the waveform corresponding to the audio signal, the environment audio comprises the audio signal corresponding to the second target audio output parameter information.
7. A terminal positioning device, the device comprising two microphones of different locations, the device being in communication connection with a second terminal, the device comprising:
a transmitting module, configured to transmit a control signal to the second terminal, so that the second terminal transmits an audio signal in response to the control signal;
a processing module configured to determine, in response to each of the microphones receiving the audio signal, distance information of the microphone from the second terminal, the distance information including a distance of each of the microphones from the second terminal;
The processing module is further used for determining relative position information of the terminal positioning device and the second terminal according to the distance between the two microphones and the second terminal and the distance between the two microphones;
and the display module is used for displaying positioning prompt information according to the relative position information, wherein the positioning prompt information comprises at least one of a guiding direction and the distance between the terminal positioning device and the second terminal.
8. The apparatus of claim 7, wherein the audio signal corresponds to at least one audio output mode, the audio output mode corresponds to audio output parameter information one-to-one, and audio output power or audio output frequency is different between different audio output parameter information;
the apparatus further comprises:
a receiving module for receiving an input selecting a target audio output mode from the at least one audio output mode;
the processing module is further configured to determine, in response to the input for selecting the target audio output mode, audio output parameter information corresponding to the target audio output mode as first target audio output parameter information;
The sending module is further configured to send the control signal to the second terminal, where the control signal is used to instruct the second terminal to output the audio signal according to the first target audio output parameter information.
9. The apparatus of claim 7, wherein the two microphones are a first microphone and a second microphone, respectively, the apparatus further comprising;
the acquisition module is used for acquiring the sending time of the control signal, the first time when the first microphone receives the audio signal and the second time when the second microphone receives the audio signal;
the processing module is further configured to determine a first distance between the first microphone and the second terminal according to a preset audio propagation speed and a time difference between the emission time and the first time; and determining a second distance between the second microphone and the second terminal according to the preset audio propagation speed and a time difference between the emission time and the second time;
the processing module is further configured to determine relative position information of the terminal positioning device and the second terminal according to the first distance, the second distance, and a distance between the first microphone and the second microphone.
10. The apparatus of claim 9, wherein the number of audio signals is a plurality;
the receiving module is also used for receiving an input for controlling the movement of the terminal positioning device;
the processing module is further configured to, in a moving process of the terminal positioning device, obtain a distance between each microphone and the second terminal in response to each audio signal received by each microphone, and obtain distance information corresponding to each audio signal;
the processing module is further configured to determine, corresponding to each of the audio signals, first candidate location information and second candidate location information of the second terminal according to the first distance, the second distance, and a distance between the first microphone and the second microphone;
the processing module is further configured to determine the relative position information from the first candidate position information and the second candidate position information according to a trend of variation of the plurality of first distances and the plurality of second distances, where the relative position information is used to indicate an actual position of the second terminal.
11. The apparatus of claim 7, wherein the audio signal corresponds to second target audio output parameter information; the apparatus further comprises:
The acquisition module is used for acquiring the environmental audio acquired by each microphone;
the processing module is further configured to detect whether the environmental audio collected by each microphone includes an audio signal corresponding to the second target audio output parameter information;
the acquisition module is configured to acquire, corresponding to each microphone, an audio signal acquisition time corresponding to the microphone when the environmental audio includes an audio signal corresponding to the second target audio output parameter information;
the processing module is further configured to determine a distance between each microphone and the second terminal according to the audio signal acquisition time corresponding to each microphone, so as to obtain the distance information.
12. The apparatus of claim 11, wherein the device comprises a plurality of sensors,
the processing module is further configured to perform filtering processing on the environmental audio according to a filtering algorithm corresponding to the second target audio output parameter information, and obtain filtered environmental audio;
the processing module is further configured to determine, according to whether the audio waveform corresponding to the filtered environmental audio matches the waveform corresponding to the audio signal, whether the environmental audio collected by the microphone includes the audio signal corresponding to the second target audio output parameter information;
And under the condition that the filtered audio waveform is matched with the waveform corresponding to the audio signal, the environment audio comprises the audio signal corresponding to the second target audio output parameter information.
13. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the terminal positioning method according to any of claims 1-6.
14. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the terminal positioning method according to any of claims 1-6.
CN202311389497.6A 2023-10-24 2023-10-24 Terminal positioning method, device, electronic equipment and readable storage medium Pending CN117452340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311389497.6A CN117452340A (en) 2023-10-24 2023-10-24 Terminal positioning method, device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311389497.6A CN117452340A (en) 2023-10-24 2023-10-24 Terminal positioning method, device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117452340A true CN117452340A (en) 2024-01-26

Family

ID=89594149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311389497.6A Pending CN117452340A (en) 2023-10-24 2023-10-24 Terminal positioning method, device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117452340A (en)

Similar Documents

Publication Publication Date Title
EP3192072B1 (en) Dynamic thresholds for always listening speech trigger
US9389690B2 (en) Gesture detection based on information from multiple types of sensors
US9274744B2 (en) Relative position-inclusive device interfaces
US8471868B1 (en) Projector and ultrasonic gesture-controlled communicator
CN106093950B (en) Mobile terminal positioning device and method
EP3624120A1 (en) Method and device for determining karaoke score
US11482237B2 (en) Method and terminal for reconstructing speech signal, and computer storage medium
CN105874408A (en) Gesture interactive wearable spatial audio system
CN111917489B (en) Audio signal processing method and device and electronic equipment
CN103631375B (en) According to the method and apparatus of the Situation Awareness control oscillation intensity in electronic equipment
US10540015B2 (en) Presenting location related information and implementing a task based on gaze and voice detection
CN110060680B (en) Electronic equipment interaction method and device, electronic equipment and storage medium
CN110691300B (en) Audio playing device and method for providing information
CN112423175B (en) Earphone noise reduction method and device, storage medium and electronic equipment
CN109616135A (en) Audio-frequency processing method, device and storage medium
CN110798327B (en) Message processing method, device and storage medium
CN111681655A (en) Voice control method and device, electronic equipment and storage medium
CN113542963B (en) Sound mode control method, device, electronic equipment and storage medium
CN108614263B (en) Mobile terminal, position detection method and related product
CN110719545B (en) Audio playing device and method for playing audio
CN117452340A (en) Terminal positioning method, device, electronic equipment and readable storage medium
CN111081283A (en) Music playing method and device, storage medium and terminal equipment
US11650700B2 (en) Information handling system stylus having an ultrasonic location aid
CN115035187A (en) Sound source direction determining method, device, terminal, storage medium and product
CN110377208B (en) Audio playing method, device, terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination