Method for directing a user and electronic device
By combining ultrasonic signal measurement with the user's rotation angle, guidance signals are provided to help users find lost electronic devices, solving the problems of difficult and costly positioning of small devices, and achieving accurate positioning and cost reduction.
Patent Information
- Application Number
- CN202210516542.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-09-30
- Filing Date
- 2022-05-12
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2042-05-12
AI Technical Summary
In existing technologies, the small size of electronic devices makes it impossible to install UWB chips after they are lost, leading to difficulties in locating them and high costs.
The first electronic device uses ultrasonic signals to measure the angle information with the second electronic device. Combined with the angle of the user rotating the first electronic device, a guiding signal is output to help the user find the second electronic device, thus avoiding dependence on the UWB chip.
This technology enables precise location of lost electronic devices without installing UWB chips, reducing costs and improving location accuracy.
Smart Images

Figure CN115914988B_ABST
Abstract
Description
[0001] This application claims priority to the Chinese patent application No. 202111162119.5, filed on September 30, 2021, with the Chinese Patent Office, the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the field of electronic technology, and more particularly to a method for guiding a user and an electronic device in the field of electronic technology. BACKGROUND
[0003] In daily life, if a certain electronic device is lost, the user can not find the electronic device, and the user can find the lost electronic device through other electronic devices of the user. For example, in some schemes, the other electronic devices of the user can use ultra wide band (UWB) technology to locate the lost electronic device, so that the lost electronic device can be found, but this requires that both the lost electronic device and the other electronic devices of the user have a UWB chip, and therefore the cost is high, especially for some electronic devices which can be relatively small in size, and due to the size, the UWB chip cannot be installed, so the lost electronic device cannot be found. SUMMARY
[0004] Embodiments of the present application provide a method for guiding a user and an electronic device, which can reduce the cost.
[0005] In a first aspect, a method for guiding a user is provided, the method is applicable to a first electronic device, and includes: determining first angle information of a second electronic device relative to the first electronic device according to a first ultrasonic signal sent by the second electronic device; outputting a first prompt signal, the first prompt signal being used to prompt a user to rotate the first electronic device; determining second angle information of the second electronic device relative to the first electronic device according to a second ultrasonic signal sent by the second electronic device; and outputting a first guidance signal according to the first angle information, the second angle information, and a rotation angle of the first electronic device, the first guidance signal being used to guide the user to find the second electronic device.
[0006] In the above scheme, the second electronic device can send the first ultrasonic signal, the first electronic device can determine the first angle information with the second electronic device according to the first ultrasonic signal, the first electronic device outputs the first prompt signal to prompt the user to rotate the first electronic device. After the user rotates the first electronic device, the second electronic device can send the second ultrasonic signal again, and the first electronic device can determine the second angle information with the second electronic device according to the second ultrasonic signal. The first electronic device can output the first guide signal by using the first angle information, the second angle information, and the rotation angle of the first electronic device to guide the user to find the second electronic device. The user can find the second electronic device according to the first guide signal, and the first electronic device and the second electronic device do not need to install a UWB chip, which can reduce the cost. In addition, during the rotation of the user on the first electronic device, the straight line where the two microphones of the first electronic device are located will also rotate, so the coordinate system of the first electronic device will also change accordingly. By using the first angle information before rotation, the second angle information after rotation, and the rotation angle of the first electronic device, the angle of the second electronic device relative to the first electronic device can be determined, thereby avoiding the problem that the angle of the second electronic device relative to the first electronic device cannot be determined by one-time measurement.
[0007] Optionally, after the first electronic device outputs the first prompt signal, the first electronic device can detect the rotation angle of the first electronic device. Optionally, after the first electronic device outputs the first prompt signal for a preset time, the first electronic device can detect the rotation angle of the first electronic device. Optionally, the gyroscope of the first electronic device can detect the rotation angle of the first electronic device.
[0008] Optionally, the first prompt signal is displayed on the display screen of the first electronic device.
[0009] Optionally, the first electronic device can also output the first prompt signal in the form of voice, so that the user can also obtain the first prompt signal without watching the display screen of the first electronic device.
[0010] Optionally, the first angle information is used to indicate the possible angle of the second electronic device relative to the first electronic device, for example, the first angle information is used to indicate the first angle and the second angle, the second angle is the angle opposite to the first angle, and the first angle and the second angle are the possible angles of the second electronic device relative to the first electronic device.
[0011] Optionally, the second angle information is used to indicate the possible angle of the second electronic device relative to the first electronic device, for example, the second angle information is used to indicate the fifth angle and the sixth angle, the sixth angle is the angle opposite to the fifth angle, and the fifth angle and the sixth angle are the possible angles of the second electronic device relative to the first electronic device.
[0012] Optionally, the first electronic device comprises two microphones, and the first electronic device can receive the first ultrasonic signal and the second ultrasonic signal through the two microphones respectively. Optionally, the distance between the two microphones comprised by the first electronic device is greater than or equal to a preset distance.
[0013] Optionally, the first guide signal can indicate the approximate position of the second electronic device, for example, the first guide signal indicates that the second electronic device is in the front right of the first device. In other words, the first guide signal can indicate the specific position of the second electronic device, or can indicate the approximate position of the second electronic device.
[0014] In some possible implementation manners, the outputting of the first guide signal according to the first angle information, the second angle information and the rotation angle of the first electronic device comprises:
[0015] determining a target angle of the second electronic device relative to the first electronic device according to the first angle information, the second angle information and the rotation angle of the first electronic device;
[0016] outputting the first guide signal according to the target angle, and the first guide signal is specifically used for guiding a user to find the second electronic device according to the target angle.
[0017] In the above scheme, the first electronic device can determine a target angle of the second electronic device relative to the first electronic device according to the first angle information, the second angle information and the rotation angle of the first electronic device, and the first guide signal can specifically guide a user to find the second electronic device according to the target angle, so that accurate positioning of the second electronic device can be implemented.
[0018] In some possible implementation manners, the determining of the target angle of the second electronic device relative to the first electronic device according to the first angle information, the second angle information and the rotation angle of the first electronic device comprises:
[0019] determining third angle information according to the rotation angle of the first electronic device and the first angle information;
[0020] determining the target angle according to the second angle information and the third angle information.
[0021] In some possible implementation manners, the first angle information is used for indicating a first angle and a second angle, and the second angle is an angle opposite to the first angle.
[0022] The determining of the third angle information according to the rotation angle of the first electronic device and the first angle information comprises:
[0023] subtract the rotation angle of the first electronic device from the first angle indicated by the first angle information to obtain a third angle;
[0024] subtract the rotation angle of the first electronic device from the second angle indicated by the first angle information to obtain a fourth angle, wherein the third angle information is used to indicate the third angle and the fourth angle.
[0025] In the above scheme, since the user rotates the first electronic device, it is equivalent that the coordinate system of the first electronic device when determining the first angle information is also rotated. For example, if the first electronic device detects that the rotation angle of the first electronic device is α degrees, it is equivalent that the coordinate system of the first electronic device when determining the first angle information is also rotated by α degrees. Therefore, it is equivalent that the angle indicated by the first angle information needs to be transformed after the coordinate system is rotated, and then the target angle is determined by using the angle after transformation, so that the accuracy of determining the target angle can be improved.
[0026] In some possible implementation manners, the second angle information is used to indicate a fifth angle and a sixth angle, the sixth angle being an angle opposite to the fifth angle; and the determining the target angle according to the second angle information and the third angle information includes: determining two closest angles from the third angle, the fourth angle, the fifth angle and the sixth angle; and determining the target angle according to the two closest angles.
[0027] In the above scheme, since the second electronic device basically does not move, if there are two angles that are relatively close from the four angles determined by the first electronic device through twice measurement, it indicates that the two angles are the angle of the second electronic device relative to the first electronic device. In other words, if the specific angle of the second electronic device relative to the first electronic device cannot be determined by one measurement, since the position of the second electronic device does not change basically before and after the rotation of the first electronic device, the target angle of the second electronic device relative to the first electronic device can be determined by comparing the results of the two measurements before and after the rotation. Thus, the positioning of the second electronic device can be implemented.
[0028] Optionally, the determining the target angle according to the two closest angles includes: determining any one of the two closest angles as the target angle by the first electronic device; or the determining the target angle according to the two closest angles includes: determining the average of the two closest angles as the target angle by the first electronic device.
[0029] In some possible implementation manners, the method further includes: in response to the first operation instruction, sending a first notification message to the second electronic device, the first notification message being used to notify the second electronic device to send the ultrasonic signal; and receiving the first ultrasonic signal from the second electronic device.
[0030] In the foregoing solution, the user can input the first operation instruction, and after the first electronic device receives the first operation instruction, the first electronic device triggers sending of the first notification message to the second electronic device. The second electronic device can send the first ultrasonic signal based on the first notification message, so that the second electronic device cannot fail to send the first ultrasonic signal.
[0031] Optionally, the first electronic device sending the first notification message to the second electronic device includes: the first electronic device sending the first notification message to the second electronic device through a Bluetooth connection. Optionally, before the first electronic device sends the first notification message to the second electronic device, the first electronic device establishes a Bluetooth connection with the second electronic device.
[0032] Optionally, the first electronic device sending the first notification message to the second electronic device includes: the first electronic device sending the first notification message to the second electronic device through a WiFi connection. Optionally, before the first electronic device sends the first notification message to the second electronic device, the first electronic device establishes a WiFi connection with the second electronic device.
[0033] In some possible implementation manners, after the first prompt signal is output, the method further includes:
[0034] sending a second notification message to the second electronic device, the second notification message being used to notify the second electronic device to send an ultrasonic signal;
[0035] receiving the second ultrasonic signal from the second electronic device.
[0036] In the foregoing solution, the second electronic device can send the second ultrasonic signal based on the second notification message, so that the second electronic device cannot fail to send the second ultrasonic signal.
[0037] Optionally, the first electronic device sending the second notification message to the second electronic device includes: the first electronic device sending the second notification message to the second electronic device through a Bluetooth connection. Optionally, before the first electronic device sends the second notification message to the second electronic device, the first electronic device establishes a Bluetooth connection with the second electronic device.
[0038] Optionally, the first electronic device sends the second notification message to the second electronic device, including: the first electronic device sends the second notification message to the second electronic device through a WiFi connection. Optionally, before the first electronic device sends the second notification message to the second electronic device, the first electronic device establishes a WiFi connection with the second electronic device.
[0039] Optionally, the first electronic device triggers the first electronic device to send the second notification message to the second electronic device after detecting that the user rotates the first electronic device by a rotation angle.
[0040] In some possible implementation manners, the method further includes: in response to the first operation instruction, sending a third notification message to the second electronic device, the third notification message being used to notify the second electronic device to periodically send an ultrasonic signal, the ultrasonic signal periodically sent by the second electronic device including the first ultrasonic signal and the second ultrasonic signal.
[0041] In the above solution, the second electronic device can periodically send the ultrasonic signal based on the third notification message, so that the second electronic device can avoid being unable to send the ultrasonic signal.
[0042] Optionally, the first electronic device sends the third notification message to the second electronic device, including: the first electronic device sends the third notification message to the second electronic device through a Bluetooth connection. Optionally, before the first electronic device sends the third notification message to the second electronic device, the first electronic device establishes a Bluetooth connection with the second electronic device.
[0043] Optionally, the first electronic device sends the third notification message to the second electronic device, including: the first electronic device sends the third notification message to the second electronic device through a WiFi connection. Optionally, before the first electronic device sends the third notification message to the second electronic device, the first electronic device establishes a WiFi connection with the second electronic device.
[0044] In some possible implementation manners, the method further includes: determining a signal strength of the received third ultrasonic signal; and outputting a second guidance signal, the second guidance signal being used to indicate the signal strength.
[0045] In the above scheme, in the process of searching for the second electronic device, the user can hold the first electronic device and move, and in the process of moving, the second electronic device continues to send the third ultrasonic signal. The first electronic device can determine whether the user is approaching or moving away from the second electronic device according to the signal strength of the third ultrasonic signal sent by the second electronic device. If the signal strength of the third ultrasonic signal sent by the second electronic device is large, it indicates that the first electronic device is approaching the second electronic device. If the signal strength of the third ultrasonic signal sent by the second electronic device is small, it indicates that the first electronic device is moving away from the second electronic device.
[0046] Optionally, the third ultrasonic signal can be the first ultrasonic signal, or can be the second ultrasonic signal, or can be an ultrasonic signal different from the first ultrasonic signal and the second ultrasonic signal.
[0047] In some possible implementation manners, the first electronic device includes a first microphone and a second microphone, and a distance between the first microphone and the second microphone is greater than a preset distance.
[0048] In some possible implementation manners, the determining the first angle information of the second electronic device relative to the first electronic device according to the first ultrasonic signal sent by the second electronic device includes:
[0049] determining, according to the first ultrasonic signal, a first distance difference between a loudspeaker of the second electronic device sending the first ultrasonic signal and the first microphone and the second microphone;
[0050] determining, according to the first distance difference and the distance between the first microphone and the second microphone, the second angle information of the second electronic device relative to the first angle information.
[0051] In the above scheme, the first electronic device can determine the second angle information of the second electronic device relative to the first angle information by using the first distance difference between the loudspeaker of the second electronic device sending the first ultrasonic signal and the first microphone and the second microphone and the distance between the first microphone and the second microphone, so as to realize the determination of the first angle information by using the first ultrasonic signal.
[0052] In some possible implementation manners, the determining the second angle information of the second electronic device relative to the first electronic device according to the second ultrasonic signal sent by the second electronic device includes:
[0053] determining, according to the second ultrasonic signal, a second distance difference between the loudspeaker of the second electronic device sending the second ultrasonic signal and the first microphone and the second microphone;
[0054] According to the second distance difference and the distance between the first microphone and the second microphone, the second angle information is determined.
[0055] In the above scheme, the first electronic device can determine the second electronic device relative to the second angle information by using the second distance difference between the second microphone and the second microphone of the second electronic device sending the second ultrasonic signal and the distance between the first microphone and the second microphone, so as to realize the determination of the second angle information by using the second ultrasonic signal.
[0056] Optionally, if the speaker sending the first ultrasonic signal and the speaker sending the second ultrasonic signal are the same speaker, the first distance difference is equal to the second distance difference.
[0057] In some possible implementations, the first electronic device is a mobile phone, and the second electronic device is a tag (TAG) device.
[0058] In the above scheme, the user puts the TAG device in the article in advance, and the user can find the article by using the mobile phone, so as to avoid the user from blindly searching for the article.
[0059] In some embodiments, during the movement of the first electronic device by the user, the first electronic device can rotate, and the first electronic device can detect the rotation angle of the first electronic device, and determine the angle for guiding the user according to the rotation angle of the first electronic device and the target angle. That is, the first electronic device can detect whether the first electronic device deviates from the target angle in real time, and if the first electronic device deviates from the target angle, the first electronic device can guide the user to find the second electronic device according to the deviated angle and the target angle.
[0060] In a second aspect, the present application provides a device, which is included in an electronic device, and the device has functions of realizing the behaviors of the first electronic device in the above first aspect and possible implementation manners of the above first aspect. The functions can be realized by hardware, or realized by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions. For example, a determination module or unit, a transmission module or unit, etc.
[0061] Optionally, the device can be the first electronic device described above.
[0062] In a third aspect, the present application provides a device, which includes a processor and a memory coupled to the processor. The memory is configured to store computer programs or instructions, and the processor is configured to execute the computer programs or instructions stored in the memory, so that the method in the above first aspect and possible implementation manners of the above first aspect are executed.
[0063] For example, the processor is configured to execute the computer program or instructions stored in the memory, so that the apparatus executes the method in the first aspect and possible implementation manners of the first aspect.
[0064] Optionally, the processor included in the apparatus is one or more.
[0065] Optionally, the apparatus can further include a memory coupled to the processor.
[0066] Optionally, the memory included in the apparatus is one or more.
[0067] Optionally, the memory can be integrated with the processor or separately arranged.
[0068] Optionally, the apparatus can further include a transceiver.
[0069] Optionally, the apparatus can be the first electronic device described above.
[0070] In a fourth aspect, the present application provides an electronic device, comprising: one or more processors; a memory; a plurality of application programs; and one or more computer programs. Wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instructions are executed by the electronic device, the electronic device executes the method for guiding a user in the first aspect or any possible implementation of the first aspect, or the method for guiding a user introduced in any embodiment of the present application.
[0071] Optionally, the electronic device can further include a touch display screen and / or a camera, wherein the touch display screen includes a touch-sensitive surface and a display.
[0072] In a fifth aspect, the present application provides a computer readable storage medium, comprising computer instructions, when the computer instructions are run on an electronic device, the electronic device executes the method for guiding a user in the first aspect or any possible implementation of the first aspect, or the method for guiding a user introduced in any embodiment of the present application.
[0073] In a sixth aspect, the present application provides a computer program product, when the computer program product is run on an electronic device, the electronic device executes the method for guiding a user in the first aspect or any possible implementation of the first aspect, or the method for guiding a user introduced in any embodiment of the present application.
[0074] In a seventh aspect, the present application provides an apparatus, comprising a unit for executing the method introduced in any embodiment of the present application. BRIEF DESCRIPTION OF DRAWINGS
[0075] Figure 1FIG. 1 is a structural schematic block diagram of an electronic device provided by an embodiment of the present application.
[0076] Figure 2 FIG. 2 is a software architecture schematic of an electronic device provided by an embodiment of the present application.
[0077] Figures 3-5 FIG. 3 is a schematic diagram of a principle that a first electronic device determines an angle of a second electronic device relative to the first electronic device by using an ultrasonic signal sent by the second electronic device, provided by an embodiment of the present application.
[0078] Figure 6 FIG. 4 is a schematic diagram of a possible angle of a second electronic device relative to a first electronic device calculated by the first electronic device, provided by an embodiment of the present application.
[0079] Figure 7 FIG. 5 is a schematic diagram of a possible angle of a second electronic device relative to a first electronic device calculated by the first electronic device, provided by an embodiment of the present application.
[0080] Figure 8 FIG. 6 is a schematic diagram of a method for guiding a user, provided by an embodiment of the present application.
[0081] Figure 9 FIG. 7 is a schematic diagram of a display interface of a first electronic device, provided by an embodiment of the present application.
[0082] Figure 10 FIG. 8 is a schematic diagram of first angle information, provided by an embodiment of the present application.
[0083] Figure 11 FIG. 9 is a schematic diagram of a first prompt signal displayed on a display screen of a first electronic device, provided by an embodiment of the present application.
[0084] Figure 12 FIG. 10 is a schematic diagram of a rotation angle of a first electronic device, provided by an embodiment of the present application.
[0085] Figure 13 FIG. 11 is a schematic diagram of a first guide signal displayed on a display screen of a first electronic device, provided by an embodiment of the present application.
[0086] Figure 14 FIG. 12 is a schematic diagram of another method for guiding a user, provided by an embodiment of the present application.
[0087] Figure 15 FIG. 13 is a schematic diagram of a first guide signal and a second guide signal displayed on a display screen of a first electronic device, provided by an embodiment of the present application.
[0088] Figure 16 FIG. 14 is a schematic diagram of a first guide signal and a second guide signal displayed on a display screen of another first electronic device, provided by an embodiment of the present application.
[0089] Figure 17 is another method for guiding a user provided by an embodiment of the present application.
[0090] Figure 18 is a schematic diagram of a first guiding signal displayed on a display screen of a first electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0091] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
[0092] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, “ / ” represents the meaning of or, for example, A / B can represent A or B; the “and / or” in the text only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, “multiple” means two or more than two.
[0093] Hereinafter, the terms “first” and “second” are only used for descriptive purposes, and cannot be understood as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” can explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, the meaning of “multiple” is two or more than two.
[0094] Exemplary, Figure 1A structural diagram of the electronic device 100 is shown. The electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 can include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0095] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0096] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices, or can be integrated in one or more processors.
[0097] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals to complete the control of fetching instructions and executing instructions.
[0098] The processor 110 can also have a memory that stores instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can hold instructions or data that the processor 110 has just used or is using repeatedly. If the processor 110 needs to use the instructions or data again, it can call them directly from the memory. This avoids repeated access and reduces the latency of the processor 110, thus improving the efficiency of the system.
[0099] In some embodiments, the processor 110 can include one or more interfaces. The interfaces can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0100] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 can include multiple sets of I2C buses. The processor 110 can be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100.
[0101] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple sets of I2S buses. The processor 110 can be coupled with the audio module 170 through the I2S buses to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can deliver audio signals to the wireless communication module 160 through the I2S interface to enable the function of answering a phone call through a Bluetooth earphone.
[0102] The PCM interface can also be used for audio communication to sample, quantize, and encode analog signals. In some embodiments, the audio module 170 can be coupled with the wireless communication module 160 through a PCM bus interface. In some embodiments, the audio module 170 can also deliver audio signals to the wireless communication module 160 through the PCM interface to enable the function of playing music through a Bluetooth earphone. Both the I2S interface and the PCM interface can be used for audio communication.
[0103] The UART interface is a universal serial bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is usually used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to enable Bluetooth functionality. In some embodiments, the audio module 170 can deliver audio signals to the wireless communication module 160 through the UART interface to enable the function of playing music through a Bluetooth earphone.
[0104] The MIPI interface can be used to connect the processor 110 and peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), and the like. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to enable the camera function of the electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to enable the display function of the electronic device 100.
[0105] The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 and the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
[0106] The USB interface 130 is an interface conforming to the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect a headset to play audio through the headset. The interface can also be used to connect other electronic devices, such as an augmented reality (AR) device, etc.
[0107] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation of the electronic device 100. In other embodiments of the present application, the electronic device 100 can also use different interface connection methods or combinations of multiple interface connection methods in the above embodiments.
[0108] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 can charge the battery 142 while also supplying power to the electronic device 100 through the power management module 141.
[0109] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to supply power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160, etc. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, battery health status (leakage, impedance), etc. In other embodiments, the power management module 141 can also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be provided in the same device.
[0110] The wireless communication function of the electronic device 100 can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.
[0111] Antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of antennas. For example, antenna 1 can be multiplexed as a diversity antenna for wireless local area networks. In some other embodiments, antennas can be used in combination with tuning switches.
[0112] Mobile communication module 150 can provide solutions for wireless communication including 2G / 3G / 4G / 5G, etc. applied on electronic device 100. Mobile communication module 150 can include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. Mobile communication module 150 can receive electromagnetic waves by antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit the processed electromagnetic waves to a modem processor for demodulation. Mobile communication module 150 can also amplify signals modulated by the modem processor, and convert the amplified signals into electromagnetic waves radiated by antenna 1. In some embodiments, at least part of the functional modules of mobile communication module 150 can be arranged in processor 110. In some embodiments, at least part of the functional modules of mobile communication module 150 can be arranged in the same device as at least part of the modules of processor 110.
[0113] The modem processor can include a modulator and a demodulator. The modulator is used to modulate low-frequency baseband signals to be transmitted into medium-high frequency signals. The demodulator is used to demodulate received electromagnetic wave signals into low-frequency baseband signals. The demodulator then transmits the demodulated low-frequency baseband signals to a baseband processor for processing. After the low-frequency baseband signals are processed by the baseband processor, the signals are transmitted to an application processor. The application processor outputs sound signals through an audio device (not limited to loudspeaker 170A, microphone 170B, etc.), or displays images or videos through display screen 194. In some embodiments, the modem processor can be a separate device. In some other embodiments, the modem processor can be independent of processor 110, and arranged in the same device as mobile communication module 150 or other functional modules.
[0114] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives an electromagnetic wave via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 can also receive a signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and radiate it as an electromagnetic wave via the antenna 2.
[0115] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), the 5th generation of wireless communication system (5G), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), beidu navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).
[0116] The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs, which execute program instructions to generate or change display information.
[0117] The display screen 194 is configured to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diodes (QLED), or the like. In some embodiments, the electronic device 100 can include one or N display screens 194, where N is a positive integer greater than 1.
[0118] The electronic device 100 can implement the photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor.
[0119] The ISP is configured to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing to convert it into an image visible to the naked eye. The ISP can also optimize the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature, and other parameters of the shooting scene. In some embodiments, the ISP can be disposed in the camera 193.
[0120] The camera 193 is configured to capture still images or videos. An object generates an optical image through a lens and projects it onto a photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then transmitted to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the electronic device 100 can include one or N cameras 193, where N is a positive integer greater than 1.
[0121] The digital signal processor is used to process digital signals, in addition to being able to process digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
[0122] The video codec is used to compress or decompress digital video. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.
[0123] The NPU is a neural-network (NN) calculation processor, which can quickly process input information by drawing on the structure of a biological neural network, such as drawing on the transmission mode between human brain neurons, and can also constantly self-learn. Through the NPU, the electronic device 100 can realize intelligent cognition applications such as image recognition, face recognition, voice recognition, text understanding, etc.
[0124] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize data storage functions. For example, music, video, etc. Files are saved in the external memory card.
[0125] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various function applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0126] The electronic device 100 can realize audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. For example, music playing, recording, etc.
[0127] The audio module 170 is configured to convert digital audio information into an analog audio signal output, and to convert an analog audio input into a digital audio signal. The audio module 170 can also be configured to encode and decode audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or some of the functions of the audio module 170 can be disposed in the processor 110.
[0128] The speaker 170A, also referred to as a "loudspeaker", is configured to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or a hands-free call through the speaker 170A. In some embodiments, the speaker 170A is configured to send an ultrasonic signal.
[0129] The receiver 170B, also referred to as a "earpiece", is configured to convert an audio electrical signal into a sound signal. When the electronic device 100 receives a call or a voice message, the receiver 170B can be held close to a person's ear to listen to the voice.
[0130] The microphone 170C, also referred to as a "microphone", "transducer", is configured to convert a sound signal into an electrical signal. When making a call or sending a voice message, a user can speak into the microphone 170C close to the person's mouth to input a sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, in addition to collecting sound signals, noise reduction functions can also be achieved. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C, in addition to collecting sound signals, noise reduction, and can also identify the source of the sound, and implement directional recording functions, etc. In some embodiments, the two microphones 170C provided by the electronic device 100 can receive ultrasonic signals sent by the speaker of another electronic device. Optionally, the distance between the two microphones 170C of the electronic device 100 is greater than a predetermined distance, for example, the predetermined distance is 2cm, 4cm, 6cm or 8cm or 10cm.
[0131] The earphone interface 170D is configured to connect a wired earphone. The earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0132] The pressure sensor 180A is used to sense a pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194. There are many types of pressure sensors 180A, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, etc. A capacitive pressure sensor can include at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation is applied to the display screen 194, the electronic device 100 detects the intensity of the touch operation based on the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A.
[0133] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the angle of rotation of the electronic device 100 can be detected by the gyroscope sensor 180B. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for shooting anti-shake. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of shaking of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and lets the lens offset the shaking of the electronic device 100 by reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and motion sensing game scenarios.
[0134] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude, assists in positioning and navigation based on the air pressure value measured by the barometric pressure sensor 180C.
[0135] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can detect the opening and closing of a flip cover with the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover based on the magnetic sensor 180D. Further, based on the detected opening and closing state of the cover or the opening and closing state of the flip cover, the electronic device 100 can set features such as automatic unlocking of the flip cover.
[0136] The acceleration sensor 180E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the acceleration sensor 180E can detect the magnitude and direction of gravity. The acceleration sensor 180E can also be used to identify the attitude of the electronic device, and can be applied to landscape / portrait screen switching, pedometers, etc.
[0137] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance by infrared or laser. In some embodiments, in a shooting scenario, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.
[0138] The proximity light sensor 180G can include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode can be an infrared light emitting diode. The electronic device 100 emits infrared light outwardly through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using the photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can detect that a user is holding the electronic device 100 close to the ear for a call using the proximity light sensor 180G, so as to automatically turn off the screen for the purpose of power saving. The proximity light sensor 180G can also be used for automatic unlocking and locking of the screen in a case mode or a pocket mode.
[0139] The ambient light sensor 180L is used to sense ambient light brightness. The electronic device 100 can adaptively adjust the display screen 194 brightness according to the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust white balance when taking a picture. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touch.
[0140] The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application lock, fingerprint photographing, fingerprint answering a call, and the like.
[0141] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 implements performance reduction of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold value, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by low temperature. In other embodiments, when the temperature is lower than yet another threshold value, the electronic device 100 implements voltage boosting of an output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0142] Touch sensor 180K, also referred to as "touch panel". Touch sensor 180K can be disposed on display screen 194, and touch sensor 180K and display screen 194 together form a touch screen, also referred to as "touch panel". Touch sensor 180K is configured to detect touch operations applied to or near the touch sensor 180K. The touch sensor 180K can transmit the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K can also be disposed on the surface of electronic device 100, which is different from the position of display screen 194.
[0143] Bone conduction sensor 180M can obtain vibration signals. In some embodiments, bone conduction sensor 180M can obtain vibration signals of the human body's vocal vibration bone block. Bone conduction sensor 180M can also contact the human body pulse to receive blood pressure pulsation signals. In some embodiments, bone conduction sensor 180M can also be disposed in a headset to form a bone conduction headset. Audio module 170 can analyze voice signals based on the vibration signals of the vocal vibration bone block obtained by the bone conduction sensor 180M to realize voice functions. The application processor can analyze heart rate information based on the blood pressure pulsation signals obtained by the bone conduction sensor 180M to realize heart rate detection functions.
[0144] Keys 190 include power on / off keys, volume keys, and the like. Keys 190 can be mechanical keys. They can also be touch keys. Electronic device 100 can receive key input and generate key signal input related to user settings and function control of electronic device 100.
[0145] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts and also for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. Touch operations applied to different regions of display screen 194 can also correspond to different vibration feedback effects. Different application scenarios (such as time reminders, received messages, alarms, games, etc.) can also correspond to different vibration feedback effects. Touch vibration feedback effects can also be customizable.
[0146] Indicator 192 can be an indicator light, which can be used to indicate charging status, power changes, and also to indicate messages, missed calls, notifications, and the like.
[0147] The SIM card interface 195 is configured to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external storage cards. The electronic device 100 interacts with a network through the SIM card to achieve functions such as call and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0148] It should be noted that any electronic device mentioned in the embodiments of the present application can include more or fewer modules in the electronic device 100.
[0149] The software system of the electronic device 100 can use a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present application take the Android system with a layered architecture as an example to exemplarily illustrate the software structure of the electronic device 100.
[0150] Figure 2 FIG. 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application. The layered architecture divides the software into several layers, each of which has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Android runtime and system library, and a kernel layer. The application layer can include a series of application packages.
[0151] As shown in FIG. 1, the application packages can include camera, gallery, calendar, call, map, navigation, WLAN, find, music, video, short message, and the like. Figure 2
[0152] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications of the application layer. The application framework layer includes some pre-defined functions.
[0153] As shown in FIG. 1, the application framework layer can include a window manager, a resource manager, a view system, a package manager, an activity manager, a telephony manager, a location manager, a connectivity manager, a notification manager, a security manager, a content provider, and the like. Figure 2 As shown, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.
[0154] The window manager is used to manage windows. The window manager can acquire the size of the display screen, determine whether there is a status bar, lock the screen, and intercept the screen, etc.
[0155] The content provider is used to store and acquire data, and make the data accessible to the application program. The data can include videos, images, audios, dialed and received calls, browsing history and bookmarks, phonebook, etc.
[0156] The view system includes visual controls, such as a control for displaying text, a control for displaying pictures, etc. The view system can be used to build an application program. A display interface can be composed of one or more views. For example, a display interface including a short message notification icon can include a view for displaying text and a view for displaying pictures.
[0157] The phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call state (including connection, hang-up, etc.).
[0158] The resource manager provides various resources for the application program, such as localized strings, icons, pictures, layout files, video files, etc.
[0159] The notification manager makes the application program display notification information in the status bar, which can be used to convey a type of message that can automatically disappear after a short stay without user interaction. For example, the notification manager is used to inform the completion of downloading, message reminders, etc. The notification manager can also be a notification in the form of a chart or a scroll bar text appearing in the top status bar of the system, such as a notification of an application program running in the background, and can also be a notification in the form of a dialogue window appearing on the screen. For example, prompting text information in the status bar, issuing a prompt sound, the electronic device vibrating, the indicator light flashing, etc.
[0160] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
[0161] The core library contains two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
[0162] The application program layer and the application framework layer run in the virtual machine. The virtual machine executes the java files of the application program layer and the application framework layer into binary files. The virtual machine is used to perform the management of the object life cycle, the management of the stack, the management of the thread, the management of the security and the exception, and the garbage collection, etc.
[0163] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0164] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0165] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0166] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0167] A 2D graphics engine is a graphics engine for 2D drawing.
[0168] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0169] In daily life, it's difficult to find lost items. Therefore, tag devices can be introduced. These devices can be placed inside items, allowing users to locate them using other electronic devices such as phones, tablets, or computers. In some embodiments, these devices can use UWB technology to locate the tag device, but this requires both the tag device and the electronic device to have UWB chips, leading to higher costs. Furthermore, some tag devices are small and may not be able to accommodate UWB chips due to size constraints, thus preventing the item location function from being implemented. Figure 1 and Figure 2 The electronic device 100 can be a mobile phone, tablet, or computer. It can also be a TAG device.
[0170] In this embodiment, the second electronic device can be a TAG device, and the first electronic device can be a device for locating the TAG device, such as a mobile phone, tablet, or computer. The first electronic device and the second electronic device can be the same type of device or different types of devices. Figure 1 The electronic device 100 can be a first electronic device or a second electronic device.
[0171] In the embodiments of the present application, the first electronic device can determine the angle of the second electronic device relative to the first electronic device by using the ultrasonic signal sent by the second electronic device, so that the first electronic device and the second electronic device do not need to be equipped with UWB chips, thereby reducing the cost.
[0172] The principle of determining the angle of the second electronic device relative to the first electronic device by the first electronic device using the ultrasonic signal sent by the second electronic device is described below. As shown in Figure 3 , the second electronic device can send an ultrasonic signal through the loudspeaker of the second electronic device, and the two microphones of the first electronic device can receive the ultrasonic signal sent by the loudspeaker of the second electronic device, and the first electronic device can measure the angle of the second electronic device relative to the first electronic device by using the time difference of the signals received by the two microphones. For example, the time difference of the signals received by the two microphones corresponds to a sampling point number τ * , the distance between the two microphones of the first electronic device is D, and assuming that the distance from the loudspeaker of the second electronic device to the two microphones of the first electronic device is D1 and D2 respectively, then the time difference of the signals received by the two microphones corresponds to a sampling point number f s of the second electronic device, and υ is the speed of sound. Wherein the speed of sound υ can be a fixed value, for example, the speed of sound at 15℃ is 340m / s, which can be stored in the first electronic device. Alternatively, the speed of sound υ can also be determined according to the temperature of the current environment, for example: υ = 331 + 0.607c m / s, where c is the temperature. The temperature c can be obtained by the first electronic device itself, for example, measured by the temperature sensor on the first electronic device; or the temperature c can be obtained by the first electronic device from other devices, for example, the second electronic device can send the temperature to the first electronic device after obtaining the temperature. For example, the second electronic device can inform the first electronic device of the temperature measured by the temperature sensor of the second electronic device, or the second electronic device can inform the first electronic device of the temperature obtained by other means. The first electronic device can obtain τ * , f s and υ, so the first electronic device can determine the angle θ of the second electronic device relative to the first electronic device according to .
[0173] The principle of determining the angle θ of the second electronic device relative to the first electronic device according to Figure 4 is described below. As shown in , the first electronic device can determine the angle θ of the second electronic device relative to the first electronic device according to Figure 4As shown, D1 > D2, AC = D1, AB = D2, EC = D1 - D2, AE = D2. That is to say, triangle ABE is an isosceles triangle. Therefore, ∠AEB = ∠ABE = β. When D1 and D2 are much larger than D, that is to say, ω ≈ 0. Therefore, ∠AEB = ∠ABE = β = 90°, then θ + γ ≈ 90°. According to the triangle side relationship, So That is to say, if the speaker of the second electronic device and the two microphones of the first electronic device are on the same straight line, and the speaker of the second electronic device is above the two microphones of the first electronic device, then D1 - D2 = D. Therefore, θ = 0.
[0174] The following describes in combination with Figure 5 the principle of determining the angle θ of the second electronic device relative to the first electronic device. As shown, in the case of D1 < D2, AC = D1, AB = D2, EB = D2 - D1, AE = D1. That is to say, triangle ACE is an isosceles triangle. Therefore, ∠AEC = ∠ACE = β. When D1 and D2 are much larger than D, that is to say, ω ≈ 0. Therefore, ∠AEC = ∠ACE = β = 90°, then θ = 90° + γ. According to the triangle angle relationship, So That is to say, if the speaker of the second electronic device and the two microphones of the first electronic device are on the same straight line, and the speaker of the second electronic device is below the two microphones of the first electronic device, then D1 - D2 = -D. Therefore, θ = 180°.
[0175] It should be noted that the angle of the second electronic device relative to the first electronic device can be the angle formed by the speaker of the second electronic device and any one of the two microphones of the first electronic device. As Figure 4 shown, the angle of the second electronic device relative to the first electronic device can be θ. Optionally, the angle of the second electronic device relative to the first electronic device can also be ∠ACB. The calculation method of ∠ACB is similar to that of θ, and will not be described in detail to avoid repetition. As Figure 5 shown, the angle of the second electronic device relative to the first electronic device can be θ. Optionally, the angle of the second electronic device relative to the first electronic device can also be ∠ACB. The calculation method of ∠ACB is similar to that of θ, and will not be described in detail to avoid repetition.
[0176] It should be noted that the angle of the second electronic device relative to the first electronic device can be understood as: the angle of the speaker of the second electronic device relative to the straight line where the two microphones of the first electronic device are located, that is, asFigures 3-5 θ is shown.
[0177] In use Figure 4 or Figure 5 When determining the angle of the second electronic device relative to the first electronic device using the principle shown, the two microphones of the first electronic device are on the same straight line, that is, the two microphones of the first electronic device are symmetrically positioned. Figure 6 As shown, the angle of the second electronic device relative to the first electronic device, calculated by the first electronic device, is uncertain whether it is above or below the line containing the two microphones. In other words, the angle of the second electronic device relative to the first electronic device is θ. The first electronic device cannot determine whether the speaker of the second electronic device is above or below the line containing the two microphones by θ, and therefore cannot determine a unique angle between the second electronic device and the first electronic device. For example, as... Figure 7 As shown, the angle of the second electronic device relative to the first electronic device calculated by the first electronic device is uncertain as to whether it is to the left or to the right of the line where the two microphones are located. In other words, the angle of the second electronic device relative to the first electronic device is θ. The first electronic device cannot determine whether the speaker of the second electronic device is to the left or to the right of the line where the two microphones are located by θ degrees. Therefore, it cannot determine the unique angle of the second electronic device relative to the first electronic device.
[0178] In view of the above problems, in this embodiment of the application, the second electronic device can transmit a first ultrasonic signal through a speaker. The first electronic device can determine a first angle information relative to the second electronic device based on the first ultrasonic signal, and then the user can rotate the first electronic device. After the user rotates the first electronic device, the second electronic device can transmit a second ultrasonic signal again through the speaker. The first electronic device can determine a second angle information relative to the second electronic device based on the second ultrasonic signal. The first electronic device can use the first angle information, the second angle information, and the rotation angle of the first electronic device to determine the target angle of the second electronic device relative to the first electronic device, and output a first guidance signal to guide the user to find the second electronic device. That is, during the user's rotation of the first electronic device, the line where the two microphones of the first electronic device are located will also rotate accordingly, so the coordinate system will also change accordingly. By using the first angle information before rotation, the second angle information after rotation, and the rotation angle of the first electronic device, the angle of the second electronic device relative to the first electronic device can be determined, avoiding the problem of being unable to determine the angle of the second electronic device relative to the first electronic device by using a single measurement.
[0179] under Figures 8-18 The embodiments of this application are described in detail.
[0180] like Figure 8As shown, a method 800 for guiding a user in an embodiment of the present application is shown. The first electronic device in the method 800 includes at least two microphones, and the distance between the two microphones is greater than a preset distance. As shown in Figure 8 The method 800 includes the following steps.
[0181] S801, the first electronic device receives a first operation instruction input by the user.
[0182] Optionally, the first electronic device can receive the first operation instruction input by the user through an application program.
[0183] Specifically, if the user wants to find the second electronic device based on the first electronic device, the first operation instruction can be input on the display interface of the first electronic device or the first operation instruction can be a voice instruction.
[0184] Optionally, before S801, the second electronic device can be registered to the first electronic device, and the user can set the name of the second electronic device on the first electronic device. For example, the user puts the second electronic device in a wallet, so as to find the wallet through the second electronic device in the wallet when the wallet is lost. Before S801, the user can set the second electronic device as a wallet device on the first electronic device, and when the user wants to find the wallet, the user opens the "find" application program in the first electronic device Figure 2 and clicks "wallet device" on the display interface of the "find" application program as shown in Figure 9 , thereby completing S801. For another example, after the user opens the "find" application program, the user issues a voice instruction "please help me find the wallet device", thereby completing S801. For another example, the user can issue a voice instruction "Xiaoyi, please help me find the device", and the voice assistant can dispatch the "find" application program to start the function of finding the wallet device.
[0185] S802, in response to the first operation instruction, the first electronic device sends a first notification message to the second electronic device, and the second electronic device receives the first notification message from the first electronic device, and the first notification message is used to notify the second electronic device to send an ultrasonic signal.
[0186] Optionally, S802 includes: the first electronic device sends the first notification message to the second electronic device through a Bluetooth connection. Optionally, before S802, the first electronic device establishes a Bluetooth connection with the second electronic device.
[0187] Optionally, S802 includes: the first electronic device sends the first notification message to the second electronic device through a WiFi connection. Optionally, before S802, the first electronic device establishes a WiFi connection with the second electronic device.
[0188] In response to S801, the second electronic device performs S802.
[0189] S803, the second electronic device sends the first ultrasonic signal to the first electronic device through the loudspeaker, and the first electronic device receives the first ultrasonic signal through the two microphones.
[0190] Optionally, the two microphones receiving the first ultrasonic signal of the first electronic device can be the first microphone and the second microphone.
[0191] It can be understood that the first electronic device receiving the first ultrasonic signal through the two microphones can be understood as that both the two microphones can receive the first ultrasonic signal sent by the first electronic device, or both the two microphones can sample the audio signal of the first ultrasonic signal sent by the loudspeaker of the second electronic device.
[0192] Optionally, the transmission distance of the first ultrasonic signal can be a set distance, for example, 20 meters, that is, the first electronic device can determine the angle of the device within 20 meters relative to the first electronic device.
[0193] Optionally, the first electronic device can set multiple microphones, and the multiple microphones include the two microphones receiving the first ultrasonic signal.
[0194] Optionally, if the first electronic device includes multiple microphones, the two microphones receiving the first ultrasonic signal can be any two microphones of the multiple microphones. For example, the first electronic device is a mobile phone, one microphone is arranged at the top of the mobile phone, one microphone is arranged at the bottom of the mobile phone, and one microphone is arranged at the center of the mobile phone. The two microphones receiving the first ultrasonic signal can be any two microphones of the three microphones.
[0195] Optionally, if the first electronic device includes multiple microphones, the two microphones receiving the first ultrasonic signal can be the two microphones farthest apart in the multiple microphones. Optionally, if the number of microphones farthest apart in the multiple microphones is more than two, the two microphones receiving the first ultrasonic signal can be any two microphones of the two or more microphones. For example, the first electronic device is a mobile phone, one microphone is arranged at the top of the mobile phone, one microphone is arranged at the bottom of the mobile phone, and one microphone is arranged at the center of the mobile phone. The two microphones receiving the first ultrasonic signal can be the microphones arranged at the top and bottom of the mobile phone. In this way, the relative distance of the two microphones is far, and when calculating the angle of the second electronic device relative to the first electronic device, Figures 3-5 D is relatively large, because In the case that D is relatively large, the error caused by the sampling point τ * can be avoided. A large error in τ leads to a large error in θ. In other words, when D is large, the error will not be due to τ. * Even a slight change in θ can lead to a large change in θ, which can improve the accuracy of determining θ.
[0196] S804, the first electronic device determines the first angle information based on the first ultrasonic signal received from the two microphones.
[0197] Optionally, the first angle information is used to indicate the possible angle of the second electronic device relative to the first electronic device. For example, the first angle information is used to indicate a first angle and a second angle, where the second angle is the opposite of the first angle. The first angle and the second angle represent the possible angles of the second electronic device relative to the first electronic device. For example, if the first angle is 30 degrees and the second angle is -30 degrees, it means that the angle of the second electronic device relative to the first electronic device may be either 30 degrees or -30 degrees.
[0198] For example, the first angle information indicates that and like Figure 10 As shown
[0199] Optionally, the first electronic device can be based on Figure 4 or Figure 5 The principle shown determines the first angle information.
[0200] S805, the first electronic device outputs a first prompt signal, which is used to prompt the user to rotate the first electronic device.
[0201] Optionally, the first electronic device may display a first prompt signal on its display screen. For example, the first prompt signal may be as follows: Figure 11 The message "Please rotate your phone" appears on the screen, prompting the user to rotate their phone. Alternatively, the first electronic device can play an animation on its screen instructing the user to rotate their phone.
[0202] Optionally, the first electronic device may also output a voice-based first prompt signal, allowing the user to receive the prompt signal even without looking at the screen of the first electronic device. For example, if the first electronic device is a mobile phone, the first prompt signal could be "Please rotate your phone," and after hearing "Please rotate your phone," the user would rotate the phone.
[0203] Optionally, the first prompt signal can also indicate to the user the rotation angle or angle range, for example, such as Figure 11The content shown can be replaced by "please rotate your phone 30-150 degrees", or can be replaced by "please rotate your phone 50 degrees", or can be replaced by "please rotate your phone any angle, but do not rotate 180 degrees". It can be understood that if the first prompt signal does not prompt the angle or the angle range of the rotation, the user can rotate any angle.
[0204] Optionally, the first prompt signal can also prompt the direction of the rotation, for example, as shown in Figure 11 The content shown can be replaced by "please rotate your phone clockwise", or "please rotate your phone counterclockwise". Optionally, the first prompt signal can also prompt the direction and angle of the rotation, or prompt the direction and angle range of the rotation, for example, as shown in Figure 11 The content shown can be replaced by "please rotate your phone clockwise 30-150 degrees", or can be replaced by "please rotate your phone clockwise 50 degrees". It can be understood that if the first prompt signal does not prompt the direction of the rotation, the user can rotate in any direction.
[0205] It can be understood that the execution order of S805 and S804 has no any limitation, S805 can be performed before or after S804 or simultaneously.
[0206] S806, the first electronic device detects the rotation angle of the first electronic device rotated by the user.
[0207] Optionally, the gyroscope sensor of the first electronic device can detect the rotation angle of the first electronic device rotated by the user. For example, the first electronic device is Figure 1 As shown in the electronic device 100, the gyroscope sensor 180B of the electronic device 100 can detect the rotation angle of the first electronic device rotated by the user.
[0208] Optionally, the rotation angle of the first electronic device rotated by the user can be any angle.
[0209] Optionally, the rotation angle of the first electronic device rotated by the user can not be equal to 180 degrees, so as to avoid that after the user rotates the first electronic device, the straight line where the two microphones of the first electronic device are located does not change, thereby causing the angle indicated by the second angle information determined after the rotation to be equal to the angle indicated by the first angle information determined before the rotation.
[0210] Optionally, the angle of the clockwise rotation can be a positive value, and the angle of the counterclockwise rotation can be a negative value, if the user rotates the first electronic device clockwise, the first electronic device detects the rotation angle of the first electronic device rotated by the user as a positive value, if the user rotates the first electronic device counterclockwise, the first electronic device detects the rotation angle of the first electronic device rotated by the user as a negative value.
[0211] Optionally, if the first prompt signal prompts the user to rotate the angle and / or direction of rotation in S805, the first electronic device still needs to detect the rotation angle of the user rotating the first electronic device in S806 in order to verify the specific angle of rotation of the user, even if the user does not rotate the angle or direction prompted by the first prompt signal. The rotation angle of the user rotating the first electronic device detected by the first electronic device is used as the standard.
[0212] S807, the first electronic device sends a second notification message to the second electronic device, and the second electronic device receives the second notification message from the first electronic device, and the second notification message is used to notify the second electronic device to send an ultrasonic signal.
[0213] Wherein, S806 can trigger S807, that is, after the first electronic device detects the rotation angle of the user rotating the first electronic device, the first electronic device triggers the first electronic device to send the second notification message to the second electronic device.
[0214] Optionally, S807 includes: the first electronic device sends the second notification message to the second electronic device through a Bluetooth connection. Optionally, before S802, the first electronic device establishes a Bluetooth connection with the second electronic device.
[0215] Optionally, S807 includes: the first electronic device sends the second notification message to the second electronic device through a WiFi connection. Optionally, before S807, the first electronic device establishes a WiFi connection with the second electronic device.
[0216] In response to S807, the second electronic device performs S808.
[0217] S808, the loudspeaker of the second electronic device sends a second ultrasonic signal to the first electronic device, and the first electronic device receives the second ultrasonic signal through two microphones.
[0218] Optionally, the transmission distance of the second ultrasonic signal can be a set distance, for example, 20 meters, that is, the first electronic device can determine the angle of the device within 20 meters relative to the first electronic device.
[0219] S809, the first electronic device determines second angle information according to the second ultrasonic signal received by the two microphones.
[0220] It can be understood that the first electronic device receiving the second ultrasonic signal through the two microphones can be understood as: both microphones can receive the second ultrasonic signal sent by the first electronic device, or both microphones can sample the audio signal of the second ultrasonic signal sent by the loudspeaker of the second electronic device.
[0221] Optionally, the two microphones that receive the second ultrasonic signal in S809 are the same as the two microphones that receive the first ultrasonic signal in S803. That is, the first electronic device receives the first ultrasonic signal and the second ultrasonic signal through the two microphones.
[0222] Optionally, the second angle information is used to indicate possible angles of the second electronic device relative to the first electronic device, for example, the second angle information is used to indicate a fifth angle and a sixth angle, the sixth angle is an angle opposite to the fifth angle, and the fifth angle and the sixth angle are possible angles of the second electronic device relative to the first electronic device. For example, the fifth angle is 50 degrees, and the sixth angle is -50 degrees, indicating that the angle of the second electronic device relative to the first electronic device can be 50 degrees or -50 degrees.
[0223] For example, the fifth angle indicated by the second angle information is the sixth angle is As Figure 12 indicated For example, the fifth angle is 50 degrees, and the sixth angle is -50 degrees, indicating that the angle of the second electronic device relative to the first electronic device can be 50 degrees or -50 degrees. As Figure 12 indicated, α is the rotation angle of the first electronic device detected by the first electronic device. Wherein, as Figure 10 and Figure 12 indicated, the position of the speaker of the second electronic device that sends the first ultrasonic signal and the second ultrasonic signal does not change or changes little in a short time, for example, both are position 1, of course Figure 10 and Figure 12 The position 1 indicated in and
[0224] is for easy understanding, and the first electronic device does not know the position 1. Figure 4 Figure 5 Optionally, the first electronic device can determine the second angle information according to the principle shown in or
[0225] S810, the first electronic device determines a target angle of the second electronic device relative to the first electronic device according to the first angle information, the second angle information, and a rotation angle of the first electronic device.
[0226] Optionally, S810 includes: the first electronic device determines third angle information according to the rotation angle of the first electronic device and the first angle information; and the first electronic device determines the target angle according to the third angle information and the second angle information.
[0227] Optionally, the first electronic device determines third angle information according to the rotation angle of the first electronic device and the first angle information, including: subtracting the rotation angle of the first electronic device from the first angle indicated by the first angle information to obtain a third angle; subtracting the rotation angle of the first electronic device from the second angle indicated by the first angle information to obtain a fourth angle, wherein the third angle information is used to indicate the third angle and the fourth angle. That is, since the user rotates the first electronic device, it is equivalent to that the coordinate system of the first electronic device when determining the first angle information is also rotated, for example, if the first electronic device detects that the rotation angle of the first electronic device is α degrees, it is equivalent to that the coordinate system of the first electronic device when determining the first angle information is also rotated by α degrees, so it is equivalent to that the angle indicated by the first angle information also needs to be transformed after the coordinate system is rotated.
[0228] For example, Figure 9 The first angle in the first angle information is The second angle is The rotation angle of the first electronic device is α degrees as shown in Figure 12 The third angle is The fourth angle is
[0229] Optionally, the first electronic device determines the target angle according to the third angle information and the second angle information, including: the first electronic device determines the two closest angles from the third angle, the fourth angle, the fifth angle and the sixth angle; the first electronic device determines the target angle according to the two closest angles. Optionally, the first electronic device determines the target angle according to the two closest angles, including: the first electronic device determines any one of the two closest angles as the target angle, or the first electronic device determines the average of the two closest angles as the target angle.
[0230] That is, in combination with Figure 10 and Figure 12 , the target angle is the two closest angles from and , for example, by comparing and , the two angles corresponding to the smallest one of and are determined as the two closest angles, for example, If the rotation angle of the first electronic device is α = 60°, then If then Therefore, the target angle is determined according to and The two angles are determined, i.e., the target angle is -30° after the user rotates, i.e., the angle of the second electronic device relative to the first electronic device is -30°. That is, since the second electronic device does not substantially move, among the four angles determined by the first electronic device through two measurements, if there are two angles that are close to each other, it means that the two angles are the angle of the second electronic device relative to the first electronic device, in other words, if one measurement cannot determine the specific angle of the second electronic device relative to the first electronic device, since the position of the second electronic device does not change substantially before and after the rotation of the first electronic device, the specific position of the second electronic device relative to the first electronic device can be determined by comparing the results of the two measurements before and after the rotation.
[0231] S811, the first electronic device outputs a first guidance signal, and the first guidance signal is used to guide the user to find the second electronic device according to the target angle.
[0232] Optionally, the first guidance signal can be a signal displayed on the display interface of the first electronic device, for example, in combination with the above example, the target angle is -30°, and the first electronic device displays the guidance as shown in Figure 13
[0233] Optionally, the first guidance signal can be a voice signal, for example, the first electronic device plays "the second electronic device is in the -30° direction".
[0234] Optionally, the above method 800 describes that the first electronic device determines the first angle information by using the first ultrasonic signal and determines the second angle information by using the second ultrasonic signal, and the first electronic device can also determine the signal strength of the first ultrasonic signal and / or determine the signal strength of the second ultrasonic signal, so that the first electronic device can display the signal strength on the display interface of the first electronic device, for example, as shown in Figure 15 If the user sees that the signal strength on the display interface of the first electronic device is relatively strong, it indicates that the second electronic device is near the first electronic device, and the user can find the second electronic device around the first electronic device in combination with the first guidance signal. If the user sees that the signal strength on the display interface of the first electronic device is relatively weak, it indicates that the second electronic device is relatively far away from the first electronic device, and therefore, the user finds the second electronic device far away from the first electronic device in combination with the first guidance signal. That is, the ultrasonic signal used by the first electronic device to determine the signal strength can be referred to as a third ultrasonic signal, and if the first ultrasonic signal and / or the second ultrasonic signal is used to determine the signal strength, the first ultrasonic signal can be referred to as the third ultrasonic signal, or the second ultrasonic signal can be referred to as the third ultrasonic signal.
[0235] Optionally, after method 800, the first electronic device may continue to send a third notification message to the second electronic device to notify the second electronic device to continue sending a third ultrasonic signal according to the third notification message. The first electronic device can then guide the user to locate the second electronic device based on the signal strength of the third ultrasonic signal sent by the second electronic device. The following is in conjunction with... Figure 14 Specifically, the method 1400 describes how the first electronic device guides the user to find the second electronic device. It is understandable that... Figure 14 Method embodiments may be implemented in Figure 8 Following the method implementation, that is, after the first electronic device determines the target angle of the second electronic device relative to the first electronic device, it can utilize... Figure 14 The method implementation guides the user to find a second electronic device. For example... Figure 14 As shown, method 1400 may include:
[0236] S1401, the first electronic device sends a third notification message to the second electronic device, and the second electronic device receives the third notification message from the first electronic device. The third notification message is used to notify the second electronic device to send an ultrasonic signal.
[0237] Optionally, any step in S809-S811 can trigger the execution of S1401.
[0238] Optionally, S1401 is triggered after the first electronic device detects that the first electronic device has moved.
[0239] Optionally, step S1401 includes: the first electronic device sending a third notification message to the second electronic device via Bluetooth connection. Optionally, prior to step S1401, the first electronic device and the second electronic device have established a Bluetooth connection.
[0240] Optionally, step S1401 includes: the first electronic device sending a third notification message to the second electronic device via a WiFi connection. Optionally, prior to step S1401, the first electronic device and the second electronic device have established a WiFi connection.
[0241] In response to S1401, the second electronic device executes S1402.
[0242] S1402, the second electronic device sends a third ultrasonic signal to the first electronic device through a speaker, and the first electronic device receives the third ultrasonic signal from the second electronic device.
[0243] Optionally, the first electronic device may receive a third ultrasonic signal from the second electronic device via a third microphone.
[0244] It can be understood that in the process of combining the method 800 with the method 1400, the third microphone of the first electronic device receiving the third ultrasonic signal can be different from the first microphone and the second microphone of the first electronic device receiving the first ultrasonic signal and the second ultrasonic signal, or can be the same microphone, in other words, the method 800 determines the first angle information according to the first ultrasonic signal received by the two different microphones, and determines the second angle information according to the second ultrasonic signal received by the two different microphones. The third ultrasonic signal in S1402 is used to determine the signal strength, so the third microphone receiving the third ultrasonic signal can be related to or unrelated to the first microphone and the second microphone.
[0245] S1403, the first electronic device determines the signal strength of receiving the third ultrasonic signal.
[0246] Optionally, the signal strength of the third ultrasonic signal can be the average signal strength corresponding to the sampling points of the third ultrasonic signal.
[0247] Optionally, S1401-S1403 can be repeatedly executed, so that the first electronic device determines a plurality of signal strengths, and the first electronic device can update the signal strength in real time. That is, in the process of finding the second electronic device, the user can hold the first electronic device and move, in the process of moving, the second electronic device continues to send the third ultrasonic signal, and the first electronic device can determine whether the user is approaching or moving away from the second electronic device according to the signal strength of the third ultrasonic signal sent by the second electronic device. If the signal strength of the third ultrasonic signal sent by the second electronic device is large, it indicates that the first electronic device is approaching the second electronic device, and if the signal strength of the third ultrasonic signal sent by the second electronic device is small, it indicates that the first electronic device is moving away from the second electronic device.
[0248] S1404, the first electronic device outputs a second guidance signal, and the second guidance signal is used to indicate the signal strength.
[0249] Optionally, the second guidance signal can be a signal displayed on the display interface of the first electronic device. For example, the second guidance signal can indicate whether the signal strength is getting weaker or stronger, as shown in Figure 15 the second guidance signal can indicate that the signal strength is getting weaker. For another example, the second guidance signal can indicate whether the first electronic device is moving away from or approaching the second electronic device, and the signal strength is reflected by whether the first electronic device is moving away from or approaching the second electronic device, as shown in Figure 16 the display interface of the first electronic device can display that you are moving away from the second electronic device, and after the user sees "you are moving away from the second electronic device", the user can change the direction to try to approach the second electronic device.
[0250] Optionally, the second guiding signal can be a voice signal, for example, the first electronic device plays "you are away from the wallet device" or "you are close to the wallet device".
[0251] Optionally, step S1402 can also not be executed, and the first electronic device directly determines the corresponding signal strength through the first ultrasonic signal sent by the second electronic device in step S803 or the second ultrasonic signal sent by the second electronic device in step S808, for example, determines the signal strength of the first ultrasonic signal or determines the signal strength of the second ultrasonic signal, and then indicates the signal strength, or indicates the distance between the first electronic device and the second electronic device based on the signal strength, or indicates whether the first electronic device is close to or away from the second electronic device based on the signal strength. This scheme is equivalent to determining both the angle of the second electronic device relative to the second electronic device and the relative position change information of the second electronic device and the first electronic device through the same signal, which can save the signaling overhead of the first electronic device and the second electronic device and reduce the processing burden.
[0252] In the specific implementation process, the first electronic device can also determine the distance between the first electronic device and the second electronic device according to the first ultrasonic signal, the second ultrasonic signal, or the third ultrasonic signal, for example, determine the distance based on the signal strength of the first ultrasonic signal, the second ultrasonic signal, or the third ultrasonic signal, so as to not only prompt the angle but also prompt the distance, and more accurately determine the position of the second electronic device. For another example, the first electronic device can determine the distance based on the reception time of the first ultrasonic signal, the reception time of the second ultrasonic signal, or the reception time of the third ultrasonic signal.
[0253] The principle of the first electronic device determining the distance between the first electronic device and the second electronic device according to the third ultrasonic signal is described below in three cases. The principle of the first electronic device determining the distance between the first electronic device and the second electronic device according to the first ultrasonic signal or the second ultrasonic signal is similar to the principle of the first electronic device determining the distance between the first electronic device and the second electronic device according to the third ultrasonic signal. In order to avoid repetition, it is not described in detail.
[0254] Case one, the first electronic device determines the distance between the first electronic device and the second electronic device according to the signal strength of the received third ultrasonic signal. For example, the first electronic device determines the distance between the second electronic device and the first electronic device according to the average signal strength of the received third ultrasonic measurement signal. Assuming that the distance between the second electronic device and the first electronic device is d, and the average signal strength of the third ultrasonic signal is p, then a is a constant, for example, a is related to the ultrasonic emission power, or a is related to the ultrasonic emission power and the shielding between the first electronic device and the second electronic device.
[0255] In case two, if there is a Bluetooth connection between the first electronic device and the second electronic device, the second electronic device sends the first Bluetooth signal at the same time as sending the third ultrasonic signal, and the first electronic device receives the third ultrasonic signal and the first Bluetooth signal. The first electronic device determines the distance between the first electronic device and the second electronic device according to the difference between the time of receiving the third ultrasonic signal and the time of receiving the first Bluetooth signal. Assuming that the distance between the first electronic device and the second electronic device is d, the second electronic device sends the first Bluetooth signal and the third ultrasonic signal at time T0, the first electronic device receives the first Bluetooth signal at time T1, and receives the third ultrasonic signal at time T2, that is, T1 and T2 are known values for the first electronic device, and T0 is an unknown value. That is, the transmission time of the first Bluetooth signal is T1-T0=d / c, where c is the speed of light, c=3x10^8m / s; the transmission time of the third ultrasonic signal is T2-T0=d / v, where v is the speed of sound, and the speed of sound v is usually around 340m / s. Therefore, the time difference between the transmission of the third ultrasonic signal and the first Bluetooth signal is (T2-T0)-(T1-T0)=T2-T1=d / v-d / c, therefore, d=(T2-T1)cv / (c-v). Or, since c is relatively large, d / c is approximately 0, therefore, T2-T1≈d / v, d≈(T2-T1)v.
[0256] In case three, if there is a Bluetooth connection between the first electronic device and the second electronic device, the first electronic device can send a second Bluetooth signal to the second electronic device, and the first electronic device determines the distance between the first electronic device and the second electronic device by using the time sum of the transmission time of the third ultrasonic signal and the transmission time of the second Bluetooth signal. Alternatively, the first electronic device determines the distance between the first electronic device and the second electronic device by using the difference between the time of receiving the third ultrasonic signal and the time of receiving the second Bluetooth signal. Assuming that the distance between the first electronic device and the second electronic device is d, the first electronic device sends the second Bluetooth signal at T3, the second electronic device receives the second Bluetooth signal at T4, the second electronic device sends the third ultrasonic signal after a preset time interval T, and the first electronic device receives the third ultrasonic signal at T5. The transmission time of the second Bluetooth signal is T4-T3=d / c, where c is the speed of light, c=3×10^8 m / s; the transmission time of the third ultrasonic signal is T5-(T4+T)=d / v, where v is the speed of sound, and the speed of sound v is usually about 340 m / s. That is, the preset time interval T is known, for the first electronic device, T3, T, and T5 are known, and T4 is unknown, the time sum of the transmission time of the third ultrasonic signal and the transmission time of the second Bluetooth signal is (T5-(T4+T))+(T4-T3)=d / v+d / c, therefore, d=vc(T5-T-T3) / (c+v). Alternatively, since c is relatively large, d / c is approximately 0, therefore, T4-T3 is approximately 0, that is, T4 is approximately equal to T3, therefore, d / v=T5-(T4+T)≈T5-(T3+T). Therefore, d≈(T5-T3-T))v=(T5-T3-T))v, where T5-T3 is the difference between the time of receiving the third ultrasonic signal and the time of receiving the second Bluetooth signal of the first electronic device.
[0257] Optionally, after the first electronic device determines the distance between the first electronic device and the second electronic device according to any one of the above cases, the first electronic device can also display the distance between the first electronic device and the second electronic device on the display screen of the first electronic device to prompt the user to find the second electronic device. That is, the first electronic device can display the first guide signal and the distance on the display screen of the first electronic device, can display the first guide signal and the signal strength, or can display the first guide signal, the distance, and the signal strength, and the embodiments of the present application are not limited thereto.
[0258] Optionally, after the first electronic device determines the distance between the first electronic device and the second electronic device, the first electronic device can detect the angle and / or distance of the movement of the first electronic device, and the first electronic device prompts the user according to the angle and / or distance of the movement of the first electronic device, the distance between the second electronic device and the first electronic device, and the target angle, that is, the first electronic device can prompt the user at any time according to the change of the real-time position of the first electronic device and the position of the second electronic device.
[0259] Optionally, in the case where the first guidance signal and the second guidance signal are both voice, the first electronic device can output the first guidance signal and the second guidance signal at the same time, for example, the first electronic device plays "You are moving away from the wallet device in the -30° direction" or "You are moving closer to the wallet device in the -30° direction".
[0260] Optionally, during the process of the user holding the first electronic device to move to find the second electronic device, the first electronic device may deviate from the second electronic device, therefore, the first electronic device can also continue to determine the target angle of the second electronic device relative to the first electronic device by using the third ultrasonic signal in method 1400, and the way of determining the target angle of the second electronic device relative to the first electronic device according to the third ultrasonic signal is similar to the way of method 800, and is not described in detail to avoid redundancy. That is, the first electronic device can determine the target angle of the second electronic device relative to the first electronic device by using the third ultrasonic signal, or determine the signal strength by using the third ultrasonic signal.
[0261] In the above method 800, it is described that the second electronic device can send the first ultrasonic signal based on the first notification message sent by the first electronic device, and send the second ultrasonic signal based on the second notification message sent by the first electronic device, that is, the method 800 describes that the first electronic device needs to send a notification message to trigger the second electronic device to send an ultrasonic signal. In method 1400, the second electronic device can send the third ultrasonic signal based on the third notification message sent by the first electronic device. Optionally, the second electronic device can also periodically send ultrasonic signals. The following describes the periodic sending of ultrasonic signals by the second electronic device. Figure 17 It is described that the second electronic device periodically sends ultrasonic signals, and the ultrasonic signals periodically sent by the second electronic device include the first ultrasonic signal and the second ultrasonic signal.
[0262] As shown in FIG. 17, Figure 17 a method 1700 for guiding a user is shown, the method 1700 can include:
[0263] S1701, the first electronic device receives a first operation instruction input by a user.
[0264] It can be understood that S1701 is the same as S801, and details are not described herein to avoid redundancy.
[0265] S1702, in response to the first operation instruction, the first electronic device sends a third notification message to the second electronic device, and the second electronic device receives the third notification message, the third notification message being used to notify the second electronic device to periodically send ultrasonic signals.
[0266] Optionally, S1702 comprises: the first electronic device sends the third notification message to the second electronic device through a Bluetooth connection. Optionally, before S1702, the first electronic device establishes a Bluetooth connection with the second electronic device.
[0267] Optionally, S1702 comprises: the first electronic device sends the third notification message to the second electronic device through a WiFi connection. Optionally, before S1702, the first electronic device establishes a WiFi connection with the second electronic device.
[0268] In response to S1701, the second electronic device performs S1702.
[0269] S1703, the second electronic device sends a first ultrasonic signal to the first electronic device through a loudspeaker, and the first electronic device receives the first ultrasonic signal through two microphones.
[0270] That is, the third notification message can trigger the second electronic device to periodically send ultrasonic signals, and the first ultrasonic signal can be one of the ultrasonic signals periodically sent by the second electronic device.
[0271] Optionally, the period of the second electronic device sending ultrasonic signals can be determined by a protocol or negotiated by the first electronic device and the second electronic device, and the embodiments of the present application are not limited thereto.
[0272] Optionally, in response to the third notification message, the second electronic device can send a preset number of ultrasonic signals. For example, after receiving the third notification message, the second electronic device can send P ultrasonic signals, and after sending P ultrasonic signals, stop sending, P being a positive integer greater than or equal to 2. In this way, the second electronic device can avoid sending ultrasonic signals all the time, and the power consumption of the second electronic device can be reduced. Optionally, after receiving the third notification message, the second electronic device can periodically send P ultrasonic signals, and after periodically sending P ultrasonic signals, stop sending. The P ultrasonic signals can include the first ultrasonic signal and the second ultrasonic signal.
[0273] The two microphones of the first electronic device are described in S803.
[0274] S1704-S1706 are the same as S804-S806 respectively.
[0275] S1707, the second electronic device sends a second ultrasonic signal to the first electronic device through a speaker, and the first electronic device receives the second ultrasonic signal through two microphones.
[0276] Optionally, between S1703 and S1707, the second electronic device can also send other ultrasonic signals according to the period of sending ultrasonic signals, but since the first electronic device has not detected the rotation angle of the first electronic device, the first electronic device can not receive the ultrasonic signal or receive the ultrasonic signal which can be discarded without processing. The second ultrasonic signal can be an ultrasonic signal received after the first electronic device detects the rotation angle of the first electronic device.
[0277] S1708-S1710 are the same as S809-S811 respectively.
[0278] Optionally, similar to method 1400, the first electronic device can determine the signal strength by using the third ultrasonic signal periodically sent by the second electronic device, so as to output the second guide signal to guide the user to find the second electronic device, and different from method 1400 is that, similar to method 1700, the second electronic device periodically sends the third ultrasonic signal, and the first electronic device does not need to send the third notification message to trigger the second electronic device to send the third ultrasonic signal.
[0279] Therefore, in the above method embodiment, the first electronic device can determine the first angle information according to the first ultrasonic signal sent by the second electronic device, and after the user rotates the first electronic device, the first electronic device can determine the second angle information according to the second ultrasonic signal sent by the second electronic device. The first electronic device determines the target angle of the first electronic device relative to the second electronic device according to the first angle information, the second angle information and the rotation angle of the rotation of the first electronic device, and the user finds the second electronic device according to the target angle guided by the first guide signal, which can avoid the problem that the unique angle of the second electronic device relative to the first electronic device cannot be determined, so that the positioning or tracking of the second electronic device can be realized.
[0280] In some embodiments, during the process that the user moves the first electronic device, the first electronic device can rotate, and the first electronic device can detect the rotation angle of the first electronic device, and determine the angle for guiding the user according to the rotation angle of the first electronic device and the target angle. That is, the first electronic device can detect in real time whether the first electronic device deviates from the target angle, and if the first electronic device deviates from the target angle, the first electronic device can guide the user to find the second electronic device according to the deviated angle and the target angle. For example, for the target angle of 90 degrees, if the first electronic device deviates from the target angle and the deviated angle is 10 degrees, the first electronic device can guide the user to find the second electronic device by rotating the first electronic device by 80 degrees. Figure 13the first electronic device detects that the first electronic device deviates from -60°, and thus the first electronic device calculates the 30° ((-30°)-(-60°)=30°) direction of the second electronic device relative to the first electronic device according to the deviated -60° and -30°, and displays, as shown in Figure 18
[0281] In some embodiments, in the above method embodiments, the first electronic device can determine a target angle, and the target angle determined by the first electronic device in the above method embodiments is referred to as a last determined target angle. After the first electronic device determines the last target angle, the first electronic device can further rotate, and the gyroscope of the first electronic device detects a rotation angle of the first electronic device and sends a fourth notification message to the second electronic device; or after a preset time period after the first electronic device determines the last target angle, the first electronic device can send a fourth notification message to the second electronic device, and the fourth notification message is used to trigger the second electronic device to send a fourth ultrasonic signal. The first electronic device measures an angle of the second electronic device relative to the first electronic device according to the fourth ultrasonic signal, and the first electronic device Figure 4 or Figure 5 The principle shown in the above formula measures the angle of the second electronic device relative to the first electronic device according to the fourth ultrasonic signal. The first electronic device can determine a current target angle of the first electronic device relative to the second electronic device according to the last target angle, the rotation angle, and the angle of the second electronic device relative to the first electronic device measured according to the fourth ultrasonic signal. Optionally, since the angle of the second electronic device relative to the first electronic device measured by the first electronic device according to the fourth ultrasonic signal can be a positive value or a negative value, if the value obtained by subtracting the rotation angle from the last target angle is close to a positive value, the current target angle is a positive value, and if the value obtained by subtracting the rotation angle from the last target angle is close to a negative value, the current target angle is a negative value. In other words, in the process in which the first electronic device determines the current target angle according to the fourth ultrasonic signal, since the angle obtained according to the fourth ultrasonic signal can be two candidate values, the first electronic device can determine the current target angle from the two candidate values by using the last determined target angle and the rotation angle of the first electronic device. That is, the first electronic device can determine the local target angle by using the last determined target angle, the rotation angle of the first electronic device, and the ultrasonic measurement signal sent by the second electronic device. For example, in the above method embodiments, the last determined target angle is the rotation angle of the first electronic device is θ k , the first electronic device measures the angle of the second electronic device relative to the first electronic device according to the fourth ultrasonic signal as Then, the new target angle of the first electronic device relative to the second electronic device is Wherein, if the first electronic device does not rotate, then k = 0.
[0282] In some embodiments, if the second electronic device moves, the user does not find the second electronic device according to the first instruction signal, the user can input a second operation instruction, and in response to the second operation instruction, the above method process is triggered to start. For example, the user clicks the wallet device as shown in Figure 9 , and then does not find the wallet device (the second electronic device is the wallet device), the user can click the "wallet device" again as shown in Figure 9 , and initiate the finding process again.
[0283] It can be understood that the display interface in the above method embodiment can be replaced by a display screen, and the display screen can be replaced by a display interface.
[0284] The above method embodiment describes that the first electronic device determines the target angle of the second electronic device relative to the first electronic device according to the first angle information before the user rotates the first electronic device, the second angle information after the user rotates the first electronic device, and the rotation angle of the first electronic device. In some embodiments, the user can rotate the first electronic device multiple times, and the first electronic device can determine the target angle of the second electronic device relative to the first electronic device by using the angle information of the second electronic device relative to the first electronic device after multiple rotations and the angles of multiple rotations, so that the accuracy of determining the target angle can be increased by rotating the first electronic device multiple times. Specifically, the first electronic device can display multiple prompt signals to prompt the user to rotate, and then rotate the first electronic device multiple times.
[0285] It can be understood that each electronic device contains hardware and / or software modules corresponding to each function in order to realize the above functions. The algorithm steps of each example described in conjunction with the embodiments disclosed herein can be realized in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of the present application.
[0286] The embodiment can divide the function modules of the electronic device according to the method examples described above. For example, each function module, such as a determination unit and a transmission unit, can be divided according to each function. Alternatively, two or more functions can be integrated in one processing module. The integrated module can be implemented in the form of hardware. It should be noted that the division of the modules in the embodiment is illustrative, and is only a logical function division. In actual implementation, another division manner can be used.
[0287] It should be noted that all related contents of each step involved in the method embodiments described above can be cited in the function description of the corresponding function module, and will not be described herein.
[0288] The electronic device provided in the embodiment is used to execute the method for guiding the user described above, and thus the same effect as the implementation method described above can be achieved.
[0289] In the case of using the integrated unit, each electronic device can further include a processing module, a storage module and a communication module. The processing module can be used to control and manage the actions of the electronic device. The storage module can be used to support the electronic device to execute the storage of program codes and data. The communication module can be used to support the communication between the electronic device and other devices.
[0290] The processing module can be a processor or a controller. The processing module can implement or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure of the present application. The processor can also be a combination for implementing the computing function, such as a combination of one or more microprocessors, a combination of a digital signal processing (DSP) and a microprocessor, and the like. The storage module can be a memory. The communication module can be a device for interacting with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, and the like.
[0291] In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device involved in the embodiment can be a device with the structure as shown in the figure. Figure 1
[0292] The embodiment further provides a computer storage medium, which stores computer instructions. When the computer instructions are executed on the electronic device, the electronic device executes the related method steps described above to implement the method for guiding the user in the embodiment.
[0293] The embodiment further provides a computer program product. When the computer program product is executed on the computer, the computer executes the related steps described above to implement the method for guiding the user in the embodiment.
[0294] In addition, the embodiment of the present application further provides a device, which can be a chip, a component or a module, and the device can include a processor and a memory connected to each other; the memory is used to store computer-executed instructions; when the device is running, the processor can execute the computer-executed instructions stored in the memory, so that the chip executes the method for guiding the user in the above-mentioned method embodiments.
[0295] The electronic device, the computer storage medium, the computer program product or the chip provided in the embodiment can be used to execute the corresponding method provided above, and thus the beneficial effects achieved by the electronic device, the computer storage medium, the computer program product or the chip can refer to the beneficial effects of the corresponding method provided above, which will not be repeated here.
[0296] Through the above description of the implementation mode, those skilled in the art can understand that, for the convenience and brevity of description, only the division of the above-mentioned functional modules is taken as an example for illustration, and in actual application, the above-mentioned functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0297] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, and the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0298] The units described as separate components can or can not be physically separate, and the components shown as units can be one physical unit or multiple physical units, that is, can be located in one place or distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0299] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically independently, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0300] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium, including a plurality of instructions to make a device (which can be a single-chip microcomputer, a chip, etc.) or a processor execute all or part of the steps of the various embodiments of the method of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0301] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method for directing a user, the method being applicable to a first electronic device, characterized in that, The method comprises: determining first angle information of a second electronic device relative to the first electronic device according to a first ultrasonic signal sent by the second electronic device; outputting a first prompt signal, the first prompt signal being used to prompt a user to rotate the first electronic device; determining second angle information of the second electronic device relative to the first electronic device according to a second ultrasonic signal sent by the second electronic device; outputting a first guide signal according to the first angle information, the second angle information and a rotation angle of the first electronic device, the first guide signal being used to guide the user to find the second electronic device; wherein the outputting of the first guide signal according to the first angle information, the second angle information and the rotation angle of the first electronic device comprises: determining a target angle of the second electronic device relative to the first electronic device according to the first angle information, the second angle information and the rotation angle of the first electronic device; outputting the first guide signal according to the target angle, the first guide signal being specifically used to guide the user to find the second electronic device according to the target angle.
2. The method of claim 1, wherein, The determining of the target angle of the second electronic device relative to the first electronic device according to the first angle information, the second angle information and the rotation angle of the first electronic device comprises: determining third angle information according to the rotation angle of the first electronic device and the first angle information; determining the target angle according to the second angle information and the third angle information.
3. The method of claim 2, wherein, The first angle information is used to indicate a first angle and a second angle, the second angle being an angle opposite to the first angle; The third angle information is used to indicate a third angle and a fourth angle, the third angle being an angle obtained by subtracting the rotation angle of the first electronic device from the first angle, and the fourth angle being an angle obtained by subtracting the rotation angle of the first electronic device from the second angle.
4. The method of claim 3, wherein, The second angle information is used to indicate a fifth angle and a sixth angle, the sixth angle being an angle opposite to the fifth angle; wherein the determining of the target angle according to the second angle information and the third angle information comprises: determining two closest angles among the third angle, the fourth angle, the fifth angle and the sixth angle; determining the target angle according to the two closest angles.
5. The method according to any one of claims 1 to 4, characterized in that, The method further comprises: in response to a first operation instruction, sending a first notification message to the second electronic device, the first notification message being used to notify the second electronic device to send an ultrasonic signal; receiving the first ultrasonic signal from the second electronic device.
6. The method according to any one of claims 1 to 4, characterized in that, After the outputting of the first prompt signal, the method further comprises: sending a second notification message to the second electronic device, the second notification message being used to notify the second electronic device to send an ultrasonic signal; receiving the second ultrasonic signal from the second electronic device.
7. The method according to any one of claims 1 to 4, characterized in that, The method further comprises: In response to the first operation instruction, a third notification message is sent to the second electronic device, the third notification message being used to notify the second electronic device to periodically send ultrasonic signals, the ultrasonic signals periodically sent by the second electronic device including the first ultrasonic signal and the second ultrasonic signal.
8. The method according to any one of claims 1 to 4, characterized in that, The method further includes: determining a signal strength of the third ultrasonic signal received; outputting a second guidance signal, the second guidance signal being used to indicate the signal strength.
9. The method according to any one of claims 1 to 4, characterized in that, The first electronic device includes a first microphone and a second microphone, a distance between the first microphone and the second microphone being greater than a preset distance.
10. The method of claim 9, wherein The determining of the first angle information of the second electronic device relative to the first electronic device according to the first ultrasonic signal sent by the second electronic device includes: determining, according to the first ultrasonic signal, a first distance difference between a loudspeaker of the second electronic device sending the first ultrasonic signal and the first microphone and the second microphone; determining the first angle information according to the first distance difference and the distance between the first microphone and the second microphone; and / or The determining of the second angle information of the second electronic device relative to the first electronic device according to the second ultrasonic signal sent by the second electronic device includes: determining, according to the second ultrasonic signal, a second distance difference between the loudspeaker of the second electronic device sending the second ultrasonic signal and the first microphone and the second microphone; determining the second angle information according to the second distance difference and the distance between the first microphone and the second microphone.
11. The method of claim 10, wherein The determining of the first distance difference between the loudspeaker of the second electronic device sending the first ultrasonic signal and the first microphone and the second microphone according to the first ultrasonic signal includes: determining the first distance difference between the loudspeaker of the second electronic device and the first microphone and the second microphone according to the first ultrasonic signal and a speed of sound; and / or The determining of the second distance difference between the loudspeaker of the second electronic device sending the second ultrasonic signal and the first microphone and the second microphone according to the second ultrasonic signal includes: determining the second distance difference between the loudspeaker of the second electronic device and the first microphone and the second microphone according to the second ultrasonic signal and the speed of sound; The speed of sound is a fixed value; or the speed of sound is determined according to a temperature, the temperature being detected and acquired by the first electronic device, or the temperature being received by the first electronic device from the second electronic device.
12. The method according to any one of claims 1 to 4, characterized in that, The first electronic device is a mobile phone, and the second electronic device is a tag (TAG) device.
13. An electronic device, comprising: The electronic device includes a processor coupled with a memory, the processor being used to execute a computer program or instructions stored in the memory, so that the electronic device implements the method of any one of claims 1 to 12. The electronic device includes a processor coupled with a memory, the processor being used to execute a computer program or instructions stored in the memory, so that the electronic device implements the method of any one of claims 1 to 12.
14. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions, when the computer instructions run on the electronic device, make the electronic device execute the method as any one of claims 1 to 12.
Citation Information
Patent Citations
Methods, devices, and computer program products for determining relative direction of remote RF signal source
CN107810426A
Intelligent equipment positioning method and intelligent equipment
CN112098937A
Cited By
Method for guiding user, and electronic device
WO2023051274A1