Method for adjusting sound wave, and related apparatus

By adjusting the sound wave power to adapt to the distance between devices and signal strength, the problem of unpleasant volume during device location was solved, improving user experience and location accuracy.

WO2026149143A1PCT designated stage Publication Date: 2026-07-16HUAWEI TECH CO LTD

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2025-12-12
Publication Date
2026-07-16

AI Technical Summary

Technical Problem

During the device search process, if the volume of the sound waves heard by the user is not within a comfortable range, it may be too loud or too soft, affecting the user experience.

Method used

Adjust the power of the sound waves emitted by the second device according to the distance between the first and second devices and the strength of the received signal to keep the volume within a suitable range.

Benefits of technology

It improves the user's auditory experience during device location, avoiding excessively loud or soft volumes, and enhancing the accuracy and comfort of device location.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025142316_16072026_PF_FP_ABST
    Figure CN2025142316_16072026_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application are a method for adjusting a sound wave, and a related apparatus. The present application relates to the technical field of sound waves. In the method, on the basis of the distance between a first device and a second device, and an RSSI of a sound wave which is transmitted by the second device and is received by the first device, the power of the sound wave transmitted by the second device can be adjusted. In this way, the volume of a sound wave which is transmitted by the second device and is heard by a user is neither too high nor too low.
Need to check novelty before this filing date? Find Prior Art

Description

A method and related apparatus for adjusting sound waves

[0001] This application claims priority to Chinese Patent Application No. 202510048096.7, filed on January 10, 2025, entitled "A Method and Related Apparatus for Adjusting Sound Waves", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of acoustic wave technology, and in particular to a method and related apparatus for adjusting acoustic waves. Background Technology

[0003] When the first device locates the second device, the second device can emit sound waves so that the user holding the first device can know the location of the second device. However, the second device typically emits sound waves at a fixed transmission power, and the volume of the sound waves emitted by the second device may not be within the user's comfortable range. How to ensure that the volume of the sound waves emitted by the second device is neither too loud nor too soft when the first device is locating the second device is a problem that those skilled in the art continue to solve. Summary of the Invention

[0004] This application provides a method and related apparatus for adjusting sound waves. In this method, the power of the sound waves emitted by the second device can be adjusted based on the distance between a first device and a second device and the RSSI of the sound waves received by the first device from the second device. This ensures that the volume of the sound waves emitted by the second device heard by the user is neither too loud nor too soft.

[0005] In a first aspect, this application provides a method for adjusting sound waves, the method comprising: determining a first distance between a first device and a second device; and determining the received signal strength (RSSI) of a first sound wave emitted by the second device; determining a first standard distance corresponding to the RSSI of the first sound wave; wherein, after the second device emits the first sound wave, when a user holds the first device and the distance between the first device and the second device is the first standard distance, the volume of the first sound wave heard by the user satisfies a first condition; sending a first message to the second device, the first message indicating the volume or volume change trend of a second sound wave emitted by the second device; wherein if the first distance is less than the first standard distance, the emission power of the second sound wave is less than the emission power of the first sound wave; and if the first distance is greater than the first standard distance, the emission power of the second sound wave is greater than the emission power of the first sound wave; wherein the frequency band of the second sound wave is within the audible range of the human ear.

[0006] By implementing the method described in the first aspect, the first device can determine, based on the RSSI of the received first sound wave and a first distance, whether the volume of the first sound wave heard by the user while holding the first device is appropriate. If the volume of the first sound wave heard by the user is too low, the first device can instruct the second device to subsequently emit a sound wave with a higher volume than the first sound wave; if the volume of the first sound wave heard by the user is too high, the first device can instruct the second device to subsequently emit a sound wave with a lower volume than the first sound wave. This method allows the user to hear a sound wave of an appropriate volume emitted by the device being searched during the device search process, improving the user's device search experience.

[0007] In conjunction with the first aspect, in one possible implementation, if the first distance is less than the first standard distance, the first message is specifically used to instruct the second device to reduce the volume of the sound waves emitted by the second device; if the first distance is greater than the first standard distance, the first message is specifically used to instruct the second device to increase the volume of the sound waves emitted by the second device.

[0008] As can be seen, in this method, if the actual measured first distance is less than the first standard distance, it indicates that the user currently holding the first device hears a sound wave that is too loud, and the second device should reduce the sound wave volume. If the actual measured first distance is greater than the first standard distance, it indicates that the user currently holding the first device hears a sound wave that is too loud, and the second device should increase the sound wave volume. This is to improve the user's auditory experience.

[0009] In conjunction with the first aspect, in one possible implementation, the first message is specifically used to instruct the second device to emit the second sound wave having a first volume. After the second device emits the second sound wave having the first volume, when the user holds the first device and is at the first distance from the second device, the volume of the second sound wave heard by the user satisfies the first condition.

[0010] As can be seen, the first device stores the distance between the first device and the second device, and the corresponding relationship between the sound wave volume. This relationship can be exemplarily referred to in Table 3 below. In this way, the second device can determine the volume of the emitted sound wave based on the first distance, so that the volume heard by the user is neither too loud nor too soft.

[0011] In conjunction with the first aspect, in one possible implementation, the method further includes: determining a first angle between the first device and the second device; wherein, after the second device emits the second sound wave having the first volume, when the user holds the first device, and the distance between the first device and the second device is the first distance, and the angle between the first device and the second device is the first angle, the volume of the second sound wave heard by the user satisfies the first condition.

[0012] As can be seen, the first device stores the distance between the first and second devices, the angle between the first and second devices, and the corresponding relationship of the sound wave volume. This relationship can be exemplarily referred to in Table 4 below. In this way, the second device can determine the volume of the emitted sound wave based on the first distance and the first angle, so that the volume heard by the user is neither too loud nor too soft.

[0013] In conjunction with the first aspect, in one possible implementation, after sending the first message to the second device, the method further includes: determining a second distance between the first device and the second device; and determining the RSSI of the second sound wave emitted by the second device, the second distance being different from the first distance; determining a second standard distance corresponding to the RSSI of the second sound wave; after the second device emits the second sound wave, when the user holds the first device and the distance between the first device and the second device is the second standard distance, the volume of the second sound wave heard by the user satisfies the first condition; sending a third message to the second device, the third message indicating the volume or volume change trend of the third sound wave emitted by the second device; if the second distance is less than the second standard distance, the transmission power of the third sound wave is less than the transmission power of the second sound wave; if the second distance is greater than the second standard distance, the transmission power of the third sound wave is greater than the transmission power of the second sound wave; and the frequency band of the third sound wave is within the audible range of the human ear.

[0014] As can be seen, after determining whether a single sound wave emitted by the second device satisfies the first condition, the second device can continue to emit sound waves, such as a second sound wave. If the distance between the first and second devices changes, the system continues to determine whether the second sound wave satisfies the first condition. If the distance between the first and second devices remains unchanged, since the emission power of the second sound wave and the first distance are sufficient for the user to hear a suitable volume, the system stops determining whether the second sound wave satisfies the first condition and waits for the second device to emit sound waves again before making a judgment. This can reduce power consumption and save resources to some extent.

[0015] Secondly, this application provides a method for adjusting sound waves, the method comprising: determining a first distance between a first device and a second device, and determining the RSSI of a first sound wave emitted by the second device; sending the first distance and the RSSI of the first sound wave to the second device, wherein the RSSI of the first sound wave is used by the second device to determine a corresponding first standard distance; after the second device emits the first sound wave, when a user holds the first device and the distance between the first device and the second device is the first standard distance, the volume of the first sound wave heard by the user satisfies a first condition; if the first distance is less than the first standard distance, the emission power of the second sound wave emitted by the second device is less than the emission power of the first sound wave; if the first distance is greater than the first standard distance, the emission power of the second sound wave emitted by the second device is greater than the emission power of the first sound wave; and the frequency band of the second sound wave is within the audible range of the human ear.

[0016] By implementing the method described in the second aspect, the second device can determine, based on the RSSI of the received first sound wave and a first distance, whether the volume of the first sound wave heard by the user while holding the first device is appropriate. If the volume of the first sound wave heard by the user is too low, the second device subsequently emits sound waves with a higher volume than the first sound wave; if the volume of the first sound wave heard by the user is too high, the second device subsequently emits sound waves with a lower volume than the first sound wave. This method allows the user to hear sound waves of an appropriate volume emitted by the device being searched during the device search process, improving the user's device search experience.

[0017] In conjunction with the second aspect, in one possible implementation, if the first distance is less than the first standard distance, the volume of the second sound wave is less than the volume of the first sound wave; if the first distance is greater than the standard distance, the volume of the second sound wave is greater than the volume of the first sound wave.

[0018] As can be seen, in this method, if the actual measured first distance is less than the first standard distance, it indicates that the user currently holding the first device hears a sound wave that is too loud, and the second device should reduce the sound wave volume. If the actual measured first distance is greater than the first standard distance, it indicates that the user currently holding the first device hears a sound wave that is too loud, and the second device should increase the sound wave volume. This is to improve the user's auditory experience.

[0019] In conjunction with the second aspect, in one possible implementation, the volume of the second sound wave is a first volume. After the second device emits the second sound wave with the first volume, when the user holds the first device and the distance between the first device and the second device is the first distance, the volume of the second sound wave heard by the user satisfies the first condition.

[0020] As can be seen, the second device stores the distance between the first and second devices, and the corresponding relationship between the sound wave volume and the distance between them. This relationship can be exemplarily referred to in Table 3 below. In this way, the second device can determine the volume of the emitted sound wave based on the first distance, ensuring that the volume heard by the user is neither too loud nor too soft.

[0021] In conjunction with the second aspect, in one possible implementation, the method further includes: determining a first angle between the first device and the second device; sending the first angle to the second device; wherein, after the second device emits the second sound wave having the first volume, when the user holds the first device, and the distance between the first device and the second device is the first distance, and the angle between the first device and the second device is the first angle, the volume of the second sound wave heard by the user satisfies the first condition.

[0022] As can be seen, the second device stores the distance between the first and second devices, the angle between the first and second devices, and the corresponding relationship of the sound wave volume. This correspondence can be exemplarily referred to in Table 4 below. In this way, the second device can determine the volume of the emitted sound wave based on the first distance and the first angle, so that the volume heard by the user is neither too loud nor too soft.

[0023] In conjunction with the second aspect, in one possible implementation, after sending the first distance and the RSSI of the first sound wave to the second device, the method further includes: determining a second distance between the first device and the second device, and determining the RSSI of the second sound wave emitted by the second device; sending the second distance and the RSSI of the second sound wave to the second device, wherein the RSSI of the second sound wave is used by the second device to determine a corresponding second standard distance; after the second device emits the second sound wave, when the user holds the first device and the distance between the first device and the second device is the second standard distance, the volume of the second sound wave heard by the user satisfies the first condition; if the second distance is less than the second standard distance, the transmission power of the third sound wave emitted by the second device is less than the transmission power of the second sound wave; if the second distance is greater than the second standard distance, the transmission power of the third sound wave emitted by the second device is greater than the transmission power of the second sound wave; and the frequency band of the third sound wave is within the audible range of the human ear.

[0024] As can be seen, after determining whether a single sound wave emitted by the second device satisfies the first condition, the second device can continue to emit sound waves, such as a second sound wave. If the distance between the first and second devices changes, the system continues to determine whether the second sound wave satisfies the first condition. If the distance between the first and second devices remains unchanged, since the emission power of the second sound wave and the first distance are sufficient for the user to hear a suitable volume, the system stops determining whether the second sound wave satisfies the first condition and waits for the second device to emit sound waves again before making a judgment. This can reduce power consumption and save resources to some extent.

[0025] In conjunction with the first or second aspect, in one possible implementation, determining the second distance between the first device and the second device, and determining the RSSI of the second sound wave emitted by the second device, specifically includes: determining the second distance between the first device and the second device after a first duration following the determination of the first distance and the RSSI of the first sound wave, and determining the RSSI of the second sound wave emitted by the second device, wherein the first duration is a single cycle of periodically determining the distance between the first device and the second device, and periodically determining the RSSI of the sound wave emitted by the second device.

[0026] It can be seen that the distance and RSSI of the sound wave can be determined based on the period of the sound wave emitted by the second device. This allows for real-time updates of the distance between the first and second devices, ensuring the user can hear an appropriate volume during the search process and improving the user's search experience.

[0027] In conjunction with the first or second aspect, in one possible implementation, determining the first distance between the first device and the second device, and determining the received signal strength (RSSI) of the first sound wave emitted by the second device, specifically includes: receiving a user operation to locate the second device; receiving the first sound wave; determining the first distance between the first device and the second device; and determining the RSSI of the first sound wave emitted by the second device.

[0028] As can be seen, after the first device activates the search function, it can establish a communication connection with the second device. This allows the second device to emit sound waves, and it can determine when to stop emitting sound waves through this communication connection.

[0029] In conjunction with the first or second aspect, in one possible implementation, determining the first distance between the first device and the second device specifically includes: receiving information about the transmission time of the first sound wave emitted by the second device; and determining the first distance based on the time difference between the transmission time and the reception of the first sound wave.

[0030] In conjunction with the first or second aspect, in one possible implementation, determining the first distance between the first device and the second device specifically includes: sending a fourth message to the second device; receiving a fifth message sent by the second device in response to the fourth message; and determining the first distance based on the time difference between sending the fourth message and receiving the fifth message.

[0031] In some implementations, the first distance is not limited to the two methods mentioned above; other methods may also be used to determine the first distance, and no limitation is imposed on these methods.

[0032] In conjunction with the first or second aspect, in one possible implementation, receiving the first acoustic wave specifically includes: sending a sixth message to the second device; and receiving the first acoustic wave emitted by the second device in response to the sixth message.

[0033] As can be seen, after the search function is activated, the first device sends an indication message to the second device, informing it that the first device is searching for the second device. The second device can respond to this indication message by periodically emitting sound waves.

[0034] Thirdly, this application provides a method for adjusting sound waves, the method comprising: emitting a first sound wave; receiving a first message sent by a first device, the first message indicating the volume or volume change trend of a second sound wave emitted by a second device; emitting a second sound wave, wherein if a first distance is less than a first standard distance, the emission power of the second sound wave is less than the emission power of the first sound wave, and if the first distance is greater than the first standard distance, the emission power of the second sound wave is greater than the emission power of the first sound wave, and the frequency band of the second sound wave is within the audible range of the human ear; wherein the first distance is the distance between the first device and the second device when the first device receives the first sound wave, the first standard distance is the standard distance corresponding to the RSSI of the first sound wave emitted by the second device received by the first device, and after the second device emits the first sound wave, when a user holds the first device and the distance between the first device and the second device is the first standard distance, the volume of the first sound wave heard by the user satisfies a first condition.

[0035] Implementing the method described in the third aspect, the first device can determine, based on the RSSI of the received first sound wave and a first distance, whether the volume of the first sound wave heard by the user while holding the first device is appropriate. If the volume of the first sound wave heard by the user is too low, the first device can instruct the second device to subsequently emit a sound wave with a higher volume than the first sound wave; if the volume of the first sound wave heard by the user is too high, the first device can instruct the second device to subsequently emit a sound wave with a lower volume than the first sound wave. This method allows the user to hear a sound wave of an appropriate volume emitted by the device being searched during the device search process, improving the user's device search experience.

[0036] In conjunction with the third aspect, in one possible implementation, if the first distance is less than the first standard distance, the first message is specifically used to instruct the second device to reduce the volume of the sound waves emitted by the second device; if the first distance is greater than the first standard distance, the first message is specifically used to instruct the second device to increase the volume of the sound waves emitted by the second device.

[0037] As can be seen, in this method, if the actual measured first distance is less than the first standard distance, it indicates that the user currently holding the first device hears a sound wave that is too loud, and the second device should reduce the sound wave volume. If the actual measured first distance is greater than the first standard distance, it indicates that the user currently holding the first device hears a sound wave that is too loud, and the second device should increase the sound wave volume. This is to improve the user's auditory experience.

[0038] In conjunction with the third aspect, in one possible implementation, the first message is specifically used to instruct the second device to emit the second sound wave with a first volume. After the second device emits the second sound wave with the first volume, when the user holds the first device and the distance between the first device and the second device is the first distance, the volume of the second sound wave heard by the user satisfies the first condition.

[0039] As can be seen, the first device stores the distance between the first device and the second device, and the corresponding relationship between the sound wave volume. This relationship can be exemplarily referred to in Table 3 below. In this way, the second device can determine the volume of the emitted sound wave based on the first distance, so that the volume heard by the user is neither too loud nor too soft.

[0040] In conjunction with the third aspect, in one possible implementation, after the second device emits the second sound wave having the first volume, when the user holds the first device, and the distance between the first device and the second device is the first distance, and the angle between the first device and the second device is the first angle, the volume of the second sound wave heard by the user satisfies the first condition, where the first angle is the angle between the first device and the second device.

[0041] As can be seen, the first device stores the distance between the first and second devices, the angle between the first and second devices, and the corresponding relationship of the sound wave volume. This relationship can be exemplarily referred to in Table 4 below. In this way, the second device can determine the volume of the emitted sound wave based on the first distance and the first angle, so that the volume heard by the user is neither too loud nor too soft.

[0042] In conjunction with the third aspect, in one possible implementation, after transmitting the second sound wave, the method further includes: receiving a second message sent by the first device, the second message indicating the volume or volume change trend of the third sound wave transmitted by the second device; transmitting the third sound wave, wherein if the second distance is less than the second standard distance, the transmission power of the third sound wave is less than the transmission power of the second sound wave, and if the second distance is greater than the second standard distance, the transmission power of the third sound wave is greater than the transmission power of the second sound wave, and the frequency band of the third sound wave is within the audible range of the human ear; wherein the second distance is the distance between the first device and the second device when the second sound wave is received, the second standard distance is the standard distance corresponding to the RSSI of the second sound wave transmitted by the second device received by the first device, and after the second device transmits the second sound wave, when the user holds the first device and the distance between the first device and the second device is the second standard distance, the volume of the second sound wave heard by the user satisfies the first condition. This can reduce power consumption and save resources to a certain extent.

[0043] Fourthly, this application provides a method for adjusting sound waves, the method comprising: transmitting a first sound wave; receiving a first distance and the RSSI of the first sound wave transmitted by a first device, the first distance being the distance between the first device and a second device when the first device receives the first sound wave, the RSSI of the first sound wave being the RSSI of the first sound wave received by the first device; determining a first standard distance corresponding to the RSSI of the first sound wave, wherein after the second device transmits the first sound wave, when a user holds the first device and the distance between the first device and the second device is the first standard distance, the volume of the first sound wave heard by the user satisfies a first condition; transmitting a second sound wave, wherein if the first distance is less than the first standard distance, the transmission power of the second sound wave is less than the transmission power of the first sound wave, and if the first distance is greater than the first standard distance, the transmission power of the second sound wave is greater than the transmission power of the first sound wave, and the frequency band of the second sound wave is within the audible range of the human ear.

[0044] Implementing the method described in the fourth aspect, the second device can determine, based on the RSSI of the received first sound wave and a first distance, whether the volume of the first sound wave heard by the user while holding the first device is appropriate. If the volume of the first sound wave heard by the user is too low, the second device subsequently emits sound waves with a higher volume than the first sound wave; if the volume of the first sound wave heard by the user is too high, the second device subsequently emits sound waves with a lower volume than the first sound wave. This method allows the user to hear sound waves of an appropriate volume emitted by the device being searched during the device search process, improving the user's device search experience.

[0045] In conjunction with the fourth aspect, in one possible implementation, before emitting the second sound wave, the method further includes: determining the volume of the second sound wave; if the first distance is less than the first standard distance, the determined volume of the second sound wave is less than the volume of the first sound wave; if the first distance is greater than the first standard distance, the determined volume of the second sound wave is greater than the volume of the first sound wave.

[0046] In conjunction with the fourth aspect, in one possible implementation, before emitting the second sound wave, the method further includes: determining a first volume as the volume of the second sound wave; after the second device emits the second sound wave having the first volume, when the user holds the first device and the distance between the first device and the second device is the first distance, the volume of the second sound wave heard by the user satisfies the first condition. Thus, the second device can determine the volume of the emitted sound wave based on the first distance, ensuring that the volume heard by the user is neither too loud nor too soft.

[0047] In conjunction with the fourth aspect, in one possible implementation, the method further includes: receiving a first angle between the first device and the second device sent by the first device; wherein, after the second device emits the second sound wave with the first volume, when the user holds the first device, and the distance between the first device and the second device is the first distance, and the angle between the first device and the second device is the first angle, the volume of the second sound wave heard by the user satisfies the first condition. Thus, the second device can determine the volume of the emitted sound wave based on the first distance and the first angle, ensuring that the volume heard by the user is neither too loud nor too soft.

[0048] In conjunction with the fourth aspect, in one possible implementation, after transmitting the second sound wave, the method further includes: receiving a second distance and the RSSI of the second sound wave transmitted by the first device, wherein the second distance is the distance between the user and the first device when the second sound wave is received, and the RSSI of the second sound wave is the RSSI of the second sound wave received by the first device; determining a second standard distance corresponding to the RSSI of the second sound wave, wherein when the second device transmits the second sound wave, the user holds the first device, and the volume of the second sound wave heard at a position between the first device and the second device at the second standard distance satisfies the first condition; transmitting a third sound wave, wherein if the second distance is less than the second standard distance, the transmission power of the third sound wave is less than the transmission power of the second sound wave, and if the second distance is greater than the second standard distance, the transmission power of the third sound wave is greater than the transmission power of the second sound wave, and the frequency band of the third sound wave is within the audible range of the human ear. This can reduce power consumption and save resources to a certain extent.

[0049] In conjunction with the third or fourth aspect, in one possible implementation, the determination of the second distance and the RSSI of the second sound wave is spaced apart by a first duration, which is a single cycle of periodically determining the distance between the first device and the second device, and periodically determining the RSSI of the sound wave emitted by the second device.

[0050] In conjunction with the third or fourth aspect, in one possible implementation, before receiving the first distance and the first received signal strength RSSI transmitted by the first device, the method further includes: sending to the first device information about the transmission time of the first sound wave emitted by the second device; the first distance is determined based on the time difference between the transmission time and the first device receiving the first sound wave.

[0051] In conjunction with the third or fourth aspect, in one possible implementation, before receiving the first distance and the first received signal strength RSSI sent by the first device, the method further includes: in response to the fourth message sent by the first device, sending a fifth message to the first device; the first distance is determined based on the time difference between the first device sending the fourth message and receiving the fifth message.

[0052] In conjunction with the third or fourth aspect, in one possible implementation, the transmission of the first sound wave specifically includes: receiving a sixth message sent by the first device; and transmitting the first sound wave in response to the sixth message.

[0053] In one possible implementation, combining the first, second, third, or fourth aspects, the greater the RSSI of the first sound wave, the greater the first standard distance.

[0054] It can be seen that, ideally, the greater the distance between the first and second devices within a certain range, the louder the corresponding volume within that range; conversely, the closer the distance between the first and second devices within a certain range, the quieter the corresponding volume within that range. It's worth noting that "a certain range" for distance means the distance will not be infinitely large, but rather within the measurable range of the first device; similarly, "a certain range" for volume means the volume will not be infinitely large or small, but rather within the normal volume range for everyday use of the second device.

[0055] In one possible implementation, combining the first, second, third, or fourth aspects, the RSSI of the first sound wave is greater than a preset RSSI. Furthermore, when the RSSI of the first sound wave is less than the preset RSSI, the first device can directly instruct the second device to emit sound waves at maximum transmission power so that the user can hear the sound waves emitted by the second device even if the second device is obstructed, thus improving the user's search experience.

[0056] In conjunction with the first, second, third, or fourth aspect, in one possible implementation, the first volume is a multiple of the maximum volume provided by the second device, the multiple being in the range of 0 to 1.

[0057] Fifthly, embodiments of this application provide a communication device, including functional modules for implementing the methods described in the first, second, third, and fourth aspects, as well as any one of the embodiments above. The communication device may be a terminal device, or a module within a terminal device (e.g., a processor, chip, or chip system), or a logical node, logical module, or software capable of implementing all or part of the functions of the terminal device.

[0058] Sixthly, embodiments of this application provide a communication device, which includes a processor and an interface circuit. The interface circuit is used to receive signals from other communication devices and transmit them to the processor, or to send signals from the processor to other communication devices. The processor, through logic circuits or executable code instructions, implements the methods described in the first, second, third, and fourth aspects, as well as any one of the embodiments above. The communication device may be a terminal device, or a module within a terminal device (e.g., a processor, chip, or chip system), or a logic node, logic module, or software capable of implementing all or part of the functions of the terminal device. Furthermore, the communication device may also include a memory, which can be used to store instructions executed by the processor, input data required for the processor to execute instructions, or data generated after the processor executes instructions.

[0059] In a seventh aspect, embodiments of this application provide a computer-readable storage medium storing computer instructions or programs that, when executed by a communication device, implement the methods described in the first, second, third, and fourth aspects, as well as any one of the aforementioned embodiments.

[0060] Eighthly, embodiments of this application provide a computer program product, which includes a computer program or program that, when executed by a communication device, implements the methods described in the first, second, third, and fourth aspects, as well as any one of the aforementioned embodiments. The communication device may be a terminal device, or a module within a terminal device (e.g., a processor, chip, or chip system), or a logical node, logical module, or software capable of implementing all or part of the functions of the terminal device.

[0061] In a ninth aspect, embodiments of this application provide a communication system, including a first device for performing a method as described in the first aspect, the second aspect, and any one of the above aspects, and a second device for performing a method as described in the third aspect, the fourth aspect, and any one of the above aspects.

[0062] The beneficial effects of aspects five through nine can be found in the beneficial effects of aspects one, two, three, and four, and will not be repeated here. Attached Figure Description

[0063] Figure 1 is a schematic diagram of the architecture of a communication system 10 provided in an embodiment of this application;

[0064] Figure 2 is a schematic flowchart of a method for adjusting sound waves provided in an embodiment of this application;

[0065] Figure 3 is a schematic diagram of the angle between the first device and the second device provided in the embodiment of this application;

[0066] Figure 4 is a schematic flowchart of another method for adjusting sound waves provided in an embodiment of this application;

[0067] Figures 5A-6B are schematic diagrams of the structures of several communication devices provided in the embodiments of this application. Detailed Implementation

[0068] The technical solutions of the embodiments of this application are described below with reference to the accompanying drawings. In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one or more (including two). The term "and / or" is used to describe the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0069] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.

[0070] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0071] With the rapid development of digitalization, users are owning more and more devices. The more devices a user owns, the easier it is to forget where they are located. In this case, a user can use a certain device (e.g., device 1) to find the device whose location they forgot (e.g., device 2) while still having that device.

[0072] The following describes the communication system for the first device to locate the second device.

[0073] Figure 1 illustrates an exemplary schematic diagram of the architecture of a communication system 10 provided in an embodiment of this application.

[0074] As shown in Figure 1, the communication system 10 includes a first device and a second device. The first device is a device held by the user. The second device is the device being searched.

[0075] The first or second device can be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device, and / or smart city device. This application does not impose special restrictions on the specific types of the first and second devices. For example, the first device can be a watch, and the second device can be a mobile phone.

[0076] In some implementations, the first and second devices can establish a wireless connection, such as Bluetooth, Starlink, Ultra Wide Band (UWB), Wi-Fi, etc. Then, the first device initiates a search function and sends a message initiating the search. Upon receiving this message, the second device emits sound waves. The first device can receive the sound waves emitted by the second device and determine the distance and angle between them. Next, the first device can display indication information, including the distance and angle between the second and first devices. The user can determine the location of the second device using this indication information. For example, the first device displays indication information including the text "Searching for second device," the distance information "8.7 meters," and an arrow pointing to the second device. In this embodiment, the above indication information is merely illustrative and may include other content or forms of indication information, which are not limited thereto.

[0077] When using a sound wave locator, the maximum supported distance range is positively correlated with the sound wave intensity used by the second device. That is, in order for the first device to measure the distance between itself and the second device as far as possible (for example, the distance between the second and first devices can be measured even when the second device is within a 30m range of the first device), the second device is configured to emit a relatively high-intensity sound wave. In the embodiments of this application, the sound wave intensity, the emitted sound wave power, and the sound wave volume are positively correlated.

[0078] However, during the search process, the intensity of the sound waves emitted by the second device remains at a fixed, high level. Furthermore, the user holding the first device will move during the search. Ideally, the user would move closer to the second device during the search. This leads to several problems: when the user is far from the second device, the volume of the sound waves emitted by the second device is too low for the user to detect; when the user is close to the second device, the volume of the sound waves emitted by the second device is too high for the user to perceive as noise. Moreover, when the distance between the first and second devices is large, or when there is an obstruction between them, the RSSI of the sound waves received by the first device is low, making it impossible to accurately determine the distance and angle between the first and second devices based on the sound waves, thus affecting the accuracy of the device search.

[0079] To address the aforementioned problems, this application provides a method for adjusting sound waves. In this method, the power of the sound waves emitted by the second device can be adjusted based on the distance between the first and second devices and the Received Signal Strength Indication (RSSI) of the sound waves received by the first device from the second device. This ensures that the volume of the sound waves emitted by the second device heard by the user is neither too loud nor too soft. Furthermore, because the volume of the sound waves is appropriate, it also avoids the user experiencing auditory noise, thus improving the user's search experience.

[0080] The following describes the method flow for adjusting sound waves provided in the embodiments of this application.

[0081] Figure 2 illustrates a schematic flowchart of a method for adjusting sound waves according to an embodiment of this application. The method includes:

[0082] S201, The second device emits the first sound wave.

[0083] In some implementations, before executing S201, the first device can first establish a communication connection with the second device (e.g., a Bluetooth connection). The first device receives a user operation to locate the second device and activates the device search function. After activating the device search function, the first device can send a activation message to the second device, informing it that the first device has activated the device search function. Next, the second device can respond to the activation message by transmitting a first sound wave.

[0084] In some implementations, the first device periodically emits sound waves in response to the aforementioned start message. For example, the period for the first device emitting sound waves is 300ms or 600ms. Optionally, the first device may also continuously emit sound waves in response to the aforementioned message.

[0085] In the embodiments of this application, the sound waves emitted by the second device may serve one or more of the following purposes: measuring the distance between the first device and the second device, measuring the angle between the first device and the second device, determining whether the intensity of the sound waves emitted by the second device needs to be adjusted, and indicating the specific location of the second device to the user.

[0086] In some implementations, S202 can be executed after S201.

[0087] S202, the first device determines a first distance between the first device and the second device, and the first device receives the RSSI of the first sound wave emitted by the second device.

[0088] In some implementations, the first device can determine a first distance based on the first sound wave, that is, the distance between the first device and the second device when the first device receives the first sound wave. Specifically, the first device can receive the first sound wave and information about the transmission time of the first sound wave sent by the second device. The first device can determine the first distance based on the time difference between the transmission time and the time of receiving the first sound wave, as well as the propagation speed of the first sound wave.

[0089] In this embodiment of the application, the method for determining the first distance described above is merely illustrative, and the first distance can also be determined in other ways, which are not limited thereto. For example, after receiving the first sound wave, the second device can send message a to the first device. Message a is used to instruct the second device to reply to the first device. The second device can respond to message a by sending message b to the first device. The first device can receive message b and determine the first distance based on the time difference between sending message a and receiving message b.

[0090] In this embodiment of the application, after the first device activates the device search function, it can periodically determine the distance between the first device and the second device, and it can also periodically determine the RSSI of the sound waves emitted by the second device. The period for determining the distance between the first device and the second device and the period for determining the RSSI of the sound waves emitted by the second device can be consistent with the period of the sound waves emitted by the second device, or they can be different from the period of the sound waves emitted by the second device.

[0091] In one possible implementation, after determining the RSSI of the first sound wave, the first device can further determine whether the RSSI of the first sound wave is greater than a preset RSSI. If the RSSI of the first sound wave is greater than the preset RSSI, it indicates that there is no strong obstruction between the first and second devices, and the first device can continue to execute subsequent processes. If the RSSI of the first sound wave is less than the preset RSSI, it indicates that there is a strong obstruction between the first and second devices, and the first device can directly instruct the second device to emit sound waves at maximum transmission power so that the user can hear the sound waves emitted by the second device even if the second device is obstructed, improving the user's search experience. Furthermore, this avoids the first device measuring an undervalued RSSI of the first sound wave, improving the accuracy of measuring the distance and angle between the first and second devices.

[0092] In one possible implementation, S202 may further include the first device determining a first angle between itself and the second device, i.e., the angle between the first device and the second device when the first device receives the first sound wave. For example, when determining the angle between the first device and the second device, the orientation of the second device may not need to be considered. That is, for the first device, the second device can be regarded as a sound source emission point, for example, the center point of the second device or the position of the speaker can be regarded as the sound source emission point. Thus, the angle between the first device and the second device can refer to the angle between the upward central axis of the first device when the user uses the first device and the line connecting the center point of the first device and the center point of the second device or the position of the speaker. In this case, the angle between the first device and the second device ranges from -180 degrees to 180 degrees.

[0093] The angle between the first and second devices is described below with reference to Figure 3.

[0094] Figure 3 exemplarily illustrates multiple angles between the first device and the second device. In Figure 3, the second device is considered a sound source emission point. Figure 3 illustrates multiple angles using the example of the first and second devices being on the same horizontal plane. In this embodiment, during actual measurement, the first and second devices may not be on the same horizontal plane, but this does not affect the determination of the angles between them, and is not a limitation.

[0095] Referring to Figure 3, the straight line a1 with the arrow in Figure 3 is the upward central axis of the first device a. Straight line b1 is the line connecting the midpoints of the first device a and the second device b. The angle between the first device a and the second device b is the angle between straight lines a1 and b1, which is -150 degrees. Straight line c1 is the line connecting the midpoints of the first device a and the second device c. The angle between the first device a and the second device c is the angle between straight lines a1 and c1, which is -90 degrees. Straight line d1 is the line connecting the midpoints of the first device a and the second device d. The angle between the first device a and the second device d is the angle between straight lines a1 and d1, which is -30 degrees. Straight line e1 is the line connecting the midpoints of the first device a and the second device e. The angle between the first device a and the second device e is the angle between straight lines a1 and e1, which is 150 degrees. Straight line f1 is the line connecting the midpoints of the first device a and the second device f. The angle between the first device a and the second device f is the angle between straight lines a1 and f1, which is 90 degrees. Line g1 is the line connecting the midpoints of the first device a and the second device g. The angle between the first device a and the second device g is the angle between line a1 and line g1, which is 30 degrees. The angle between the first and second devices being 180 degrees and the angle between the first and second devices being -180 degrees represent the same angle of the second device relative to the first device.

[0096] As can be seen from Figure 3, each second device is at the same distance from the first device. For example, when the angle is between -30 degrees and 30 degrees, the second device b is farther from the ear; when the angle is between 30 degrees and 150 degrees, or between -150 degrees and -30 degrees, the second device is at a moderate distance from the ear; and when the angle is between 150 degrees and -150 degrees, the second device is closer to the ear.

[0097] In the embodiments of this application, the angle range shown in FIG3 is only for illustrative purposes. Other standards can also be used to define the angle between the first device and the second device. Furthermore, the multiple angles between the first device and the second device shown in FIG3 are only for illustrative purposes and are not intended to limit the scope of the application.

[0098] In some implementations, the first device can determine the angle between the first and second devices based on the sound waves received from the second device. Specifically, microphones for receiving sound waves can be installed at the top and bottom of the first device, and the first device can determine the angle between the first and second devices based on the time difference between the sound waves received by the top microphone and the sound waves received by the bottom microphone. In the embodiments of this application, more methods may be included to determine the angle between the first and second devices, such as determining the angle using a gyroscope sensor, and this is not limited.

[0099] S203. The first device determines the first standard distance corresponding to the RSSI of the first sound wave. Wherein, when the first device is at the first standard distance from the second device, the volume of the first sound wave emitted by the second device heard by the user holding the first device satisfies the first condition.

[0100] In some implementations, before executing the method shown in Figure 2, the first device can determine and store the RSSI ranges of multiple sound waves and their corresponding standard distances. Specifically, the RSSI ranges of multiple sound waves and their corresponding standard distances can be determined through multiple preliminary experiments.

[0101] The following example illustrates how to determine the correspondence between the RSSI range x1 of a sound wave and its corresponding standard distance x2.

[0102] For example, firstly, the device measuring the RSSI of a sound wave (hereinafter referred to as the receiving device) can be placed at a standard distance x2 from the device emitting the sound wave a (hereinafter referred to as the transmitting device). Then, the transmitting device repeatedly adjusts the power of the emitted sound wave, and the receiving device correspondingly determines the RSSI of the sound wave multiple times and checks whether the volume of the received sound wave satisfies a first condition. Finally, the range x1 of the RSSI of the sound wave satisfying the first condition is established as a correspondence with the standard distance x2. Similarly, after adjusting the distance between the receiving device and the transmitting device, the above steps can be repeated multiple times to determine the correspondence between multiple sound wave RSSI ranges and multiple standard distances.

[0103] In the embodiments of this application, the above-described method for determining the correspondence between the RSSI ranges of multiple sound waves and multiple standard distances is merely illustrative. Other methods may also be used to determine the correspondence between the RSSI ranges of multiple sound waves and multiple standard distances, and no limitation is imposed on them.

[0104] In some implementations, the first device can determine the first standard distance corresponding to the RSSI of the first sound wave from a stored range of RSSIs for multiple sound waves and their corresponding standard distances. Here, the RSSI of the first sound wave is a specific value belonging to one of the RSSI ranges of the stored multiple sound waves, and the first standard distance corresponds to the RSSI of the first sound wave. The first standard distance corresponding to the RSSI of the first sound wave can be understood as follows: after the second device emits the first sound wave, when the user holds the first device and the distance between the user and the second device is the first standard distance, the volume of the first sound wave heard by the user satisfies the first condition. The specific understanding of the RSSI range of each sound wave stored in the electronic device and its corresponding standard distance can be similar to the specific understanding of the first standard distance corresponding to the RSSI of the first sound wave described above, and will not be elaborated upon here.

[0105] In this embodiment of the application, the first condition being met by the volume of the first sound wave heard by the user can mean that the volume heard by the user is appropriate, that is, a volume that is comfortable for the human ear. For example, in a quiet setting, a user can hear sound waves of 20 to 40 decibels relatively clearly. In everyday life, a volume that is considered comfortable for the human ear is approximately 45 decibels. When a user hears a sound wave of 45 decibels, they will neither find the volume too loud nor too soft.

[0106] For example, the RSSI ranges and corresponding standard distances of multiple sound waves stored in the first device can be referred to Table 1 below.

[0107] Table 1

[0108] Referring to Table 1, which exemplarily illustrates the correspondence between the RSSI range of a sound wave and a standard distance D, for example, when the first device determines that the RSSI of the received first sound wave is within the range greater than X1 and less than or equal to X2, the first standard distance corresponding to the RSSI of the first sound wave can be determined to be 30m according to Table 1. That is, when the first device determines the RSSI of the first sound wave at a first distance from the second device, and the RSSI of the first sound wave falls within the range greater than X1 and less than or equal to X2, the volume of the first sound wave heard by the user holding the first device is appropriate when the distance between the user holding the first device and the second device is 30m.

[0109] It is worth noting that the RSSI of the first sound wave mentioned above is the RSSI of the first sound wave measured by the first device at a first distance from the second device. Furthermore, the first device determines which RSSI range the first sound wave's RSSI belongs to, as shown in Table 1. If the distance between the first and second devices changes, the correspondence in Table 1 used by the first device to determine the standard distance corresponding to the sound wave's RSSI will also change adaptively. In other words, Table 1 shows the relationship between the measured RSSI range of the sound wave stored by the first device at the first distance and the standard distance.

[0110] In the embodiments of this application, the RSSI ranges of multiple sound waves and the values ​​of multiple standard distances D in Table 1 are only illustrative examples. Other specific values ​​can also be set based on the different distances between the first device and the second device, and there is no limitation on this.

[0111] In one possible implementation, before executing the method shown in Figure 2, the first device can determine and store the RSSI ranges of multiple sound waves and their corresponding standard distance ranges. Specifically, the RSSI ranges of multiple sound waves and their corresponding standard distance ranges can be determined through multiple preliminary experiments. The method for determining the RSSI ranges of sound waves and their corresponding standard distance ranges can be similarly described above and will not be repeated here.

[0112] In one possible implementation, S203 may specifically refer to the first electronic device determining the first standard distance range corresponding to the RSSI of the first sound wave from the stored RSSI ranges of multiple sound waves and their corresponding standard distance ranges. Here, the RSSI of the first sound wave is a specific value belonging to the RSSI range of one of the stored multiple sound wave RSSI ranges, and the first standard distance range corresponds to the RSSI of the first sound wave. The first standard distance range corresponding to the RSSI of the first sound wave indicates that after the second device emits the first sound wave, when the user holds the first device and the distance between the user and the second device is within the first standard distance range, the volume of the first sound wave heard by the user satisfies the first condition. The specific representation of the RSSI range of each sound wave stored in the electronic device and its corresponding standard distance range can be similar to the specific representation of the first standard distance range corresponding to the RSSI of the first sound wave described above, and will not be elaborated further here.

[0113] For example, the RSSI ranges and corresponding standard distance ranges of multiple sound waves stored in the first device can also be referred to Table 2 below.

[0114] Table 2

[0115] Referring to Table 2, which exemplarily illustrates the correspondence between the RSSI range of a sound wave and the standard distance D range, for example, when the first device determines that the RSSI of the received first sound wave is within the range greater than X1 and less than or equal to X2, it can determine, according to Table 2, that the first standard distance corresponding to the RSSI of the first sound wave is within the range greater than 25m and less than or equal to 30m. In other words, when the first device determines the RSSI of the first sound wave for a first distance from the second device, and the RSSI of the first sound wave falls within the range greater than X1 and less than or equal to X2, the volume of the first sound wave heard by the user is appropriate when the distance between the user holding the first device and the second device is greater than 25m and less than or equal to 30m.

[0116] It is worth noting that the RSSI of the first sound wave mentioned above is the RSSI of the first sound wave measured by the first device at a first distance from the second device. Furthermore, the first device determines which RSSI range the first sound wave's RSSI belongs to, as shown in Table 2. If the distance between the first and second devices changes, the correspondence in Table 2 used by the first device to determine the standard distance corresponding to the sound wave's RSSI will also change adaptively. In other words, Table 2 shows the relationship between the measured RSSI range of the sound wave stored by the first device at the first distance and the standard distance range.

[0117] In the embodiments of this application, the values ​​of the RSSI range of multiple sound waves and the range of multiple standard distances D in Table 2 are only illustrative examples. They can also be set to other specific values ​​based on the different distances between the first device and the second device, and there is no limitation on this.

[0118] In some implementations, S204-1 or S204-2 can be executed after S203 is executed.

[0119] S204-1, The first device determines the relationship between the first standard distance and the first distance.

[0120] In some implementations, after determining the first standard distance corresponding to the RSSI of the first sound wave, the first device can determine the relationship between the first distance actually measured by the first device when receiving the first sound wave and the first standard distance.

[0121] For example, when the first device determines the first standard distance using the above Table 1, the first device can determine whether the first distance is consistent with the first standard distance.

[0122] If the first distance matches the first standard distance, it means that the first distance actually measured by the first device is sufficient to ensure that the volume of the first sound wave heard by the user holding the first device meets the first condition. In other words, the first sound wave emitted by the second device is sufficient to ensure that the user hears the sound wave at a suitable volume, and the second device does not need to adjust the power of the emitted sound wave.

[0123] If the first distance is inconsistent with the first standard distance, it means that the first distance actually measured by the first device cannot make the volume of the first sound wave heard by the user holding the first device meet the first condition. In other words, the first sound wave emitted by the second device cannot make the volume of the first sound wave heard by the user appropriate, and the second device needs to adjust the power of the emitted sound wave. Furthermore, the first device can determine whether the first distance is greater than or less than the first standard distance.

[0124] For example, when the first device determines the first standard distance range through the above Table 2, the first device can determine whether the first distance belongs to the first standard distance range.

[0125] If the first distance falls within the first standard distance range, it means that the first distance actually measured by the first device is sufficient to ensure that the volume of the first sound wave heard by the user holding the first device meets the first condition. In other words, the first sound wave emitted by the second device is sufficient to ensure that the user hears the sound wave at a suitable volume, and the second device does not need to adjust the power of the emitted sound wave.

[0126] If the first distance is not within the first standard distance range, it means that the first distance actually measured by the first device cannot make the volume of the first sound wave heard by the user holding the first device meet the first condition. In other words, the first sound wave emitted by the second device cannot make the volume of the first sound wave heard by the user appropriate, and the second device needs to adjust the power of the emitted sound wave. Furthermore, the first device can determine whether the first distance is greater than or less than the first standard distance range.

[0127] In some implementations, after executing S204-1 above, if the first distance is inconsistent with the first standard distance, or if the first distance is not within the range of the first standard distance, then S205-1 can be executed. If the first distance is consistent with the first standard distance, or if the first distance is within the range of the first standard distance, then the current process ends, and the method flow for adjusting the sound wave shown in Figure 2 is executed again.

[0128] S205-1, The first device sends a first message to the second device, the first message being used to indicate the volume change trend of the second sound wave emitted by the second device.

[0129] In some implementations, if the first distance is less than the first standard distance, it means that after the second device emits the first sound wave, when the user holds the first device and the distance between the first and second devices is the first distance, the volume of the first sound wave heard by the user is too high. To ensure the user hears a sound wave of appropriate volume, the first device can send a first message to the second device. Specifically, the first message instructs the second device to reduce the volume of subsequent emitted second sound waves.

[0130] If the first distance is greater than the first standard distance, it means that after the second device emits the first sound wave, when the user holds the first device and the distance between the first device and the second device is the first distance, the volume of the first sound wave heard by the user is too low. In order to make the user hear a sound wave of appropriate volume, the first device can send a first message to the second device. The first message is specifically used to instruct the second device to increase the volume of the subsequent second sound wave emission.

[0131] In one possible implementation, if the first distance is less than a first standard distance range, it means that after the second device emits the first sound wave, when the user holds the first device and the distance between the first and second devices is the first distance, the volume of the first sound wave heard by the user is too high. To ensure the user hears a sound wave of appropriate volume, the first device can send a first message to the second device. Specifically, the first message instructs the second device to reduce the volume of subsequent emitted second sound waves.

[0132] If the first distance is greater than the first standard distance range, it means that after the second device emits the first sound wave, when the user holds the first device and the distance between the first device and the second device is the first distance, the volume of the first sound wave heard by the user is too low. In order to enable the user to hear a sound wave of appropriate volume, the first device can send a first message to the second device. The first message is specifically used to instruct the second device to increase the volume of the subsequent second sound wave emission.

[0133] S204-2, When the first distance differs from the first standard distance, the first device determines the first volume corresponding to the first distance. Specifically, when the first device is at the first distance from the second device, the user holding the first device hears the volume of the sound wave with the first volume emitted by the second device satisfying the first condition.

[0134] In some implementations, before executing the method flow shown in Figure 2, the first device can determine and store multiple distance ranges and their corresponding volume levels. Specifically, multiple distance ranges and their corresponding volume levels can be determined through multiple preliminary experiments.

[0135] The following example illustrates how to determine the correspondence between the distance range x3 and the corresponding volume x4.

[0136] For example, first, the transmitting device emits a sound wave with a volume of x4. Then, it adjusts the distance between the receiving device and the transmitting device multiple times and determines whether the volume of the sound wave received by the receiving device after multiple distance adjustments meets a first condition. Finally, it sets a correspondence between the distance range x3 that meets the first condition and the volume x4. Similarly, the transmitting device can repeat the above steps multiple times after adjusting the volume of the emitted sound wave to determine the correspondence between multiple distance ranges and multiple volume levels.

[0137] In the embodiments of this application, the above-described method for determining the correspondence between multiple distance ranges and multiple volume levels is only an example. Other methods for determining the correspondence between multiple distance ranges and multiple volume levels may also be included, and no limitation is made thereto.

[0138] In some implementations, the first device can determine the first volume corresponding to a first distance from a stored set of multiple distance ranges and their corresponding volume values. Here, the first distance is a specific numerical value belonging to one of the stored distance ranges, and the first volume corresponds to the first distance. The first volume corresponding to the first distance can be understood as follows: after the second device emits a sound wave with a first volume, when the user holds the first device and is at the first distance from the second device, the volume of the sound wave heard by the user satisfies a first condition. The specific representation of each distance range and its corresponding volume stored in the electronic device can be similarly referenced to the specific representation of the first volume corresponding to the first distance described above, and will not be elaborated upon here.

[0139] For example, the multiple distance ranges and corresponding volume distances stored in the first device can be referred to Table 3 below.

[0140] Table 3

[0141] Referring to Table 3, which exemplarily illustrates the correspondence between distance range d and volume, the volume is indicated by a multiple 'a' of the maximum volume. For example, a = 0.8 means that the current volume T is 0.8 times the maximum volume Tmax that the second device can provide. For instance, when the first device determines that the first distance is 22m, and this first distance is within the range of greater than 20m and less than or equal to 25m, Table 3 can determine that the first volume corresponding to the first distance is 0.8 times the maximum volume. That is, after the second device emits a sound wave with a volume 0.8 times the maximum volume, when the user holds the first device and is 22m away from the second device, the volume of the sound wave heard by the user is appropriate.

[0142] In one possible implementation, since the maximum volume that different models of the second device can provide may differ, the correspondence between multiple distance ranges and multiple volume levels determined based on different models of the second device may also differ. Therefore, the first device can store multiple tables as shown in Table 3. One model of the second device corresponds to one table as shown in Table 3. Before executing S204-2, the first device can determine the corresponding table as shown in Table 3 based on the model of the second device, and then determine the first volume level corresponding to the first distance from Table 3.

[0143] In this embodiment of the application, the values ​​of the multiple distance ranges d and the multiple multiple maximum volume multiples a in Table 3 above are only illustrative examples. Depending on the pre-set experiment, other specific values ​​may also be used, and this is not limited. Optionally, the maximum volume multiples a in Table 3 above can also be directly expressed as specific volume decibel values, and this is not limited.

[0144] In some implementations, before executing the method flow shown in Figure 2, the first device can determine and store the correspondence between multiple distance ranges, multiple angle ranges, and volume levels. Specifically, this can be achieved through multiple pre-experimentations of the correspondence between multiple distance ranges, multiple angle ranges, and volume levels.

[0145] The following example illustrates how to determine the correspondence between distance range x5, volume range x6, and the corresponding volume x7.

[0146] For example, first, the transmitting device emits a sound wave with a volume of x7. Then, the distance and angle between the receiving device and the transmitting device are adjusted multiple times, and it is determined whether the volume of the sound wave received by the receiving device after multiple adjustments of distance and angle meets a first condition. Finally, the distance range x5, the volume range x6 that meet the first condition, and the volume x7 are set as corresponding relationships. Similarly, the transmitting device can repeat the above steps multiple times after adjusting the volume of the emitted sound wave to determine the correspondence between multiple distance ranges, multiple angle ranges, and multiple volume levels.

[0147] In the embodiments of this application, the above-described methods for determining the correspondence between multiple distance ranges, multiple angle ranges, and multiple volume levels are merely illustrative examples. Other methods may also be used to determine the correspondence between multiple distance ranges, multiple angle ranges, and multiple volume levels, and no limitation is imposed on these methods.

[0148] In some implementations, the first device can determine the first volume corresponding to a first distance and a first angle from a stored set of multiple distance ranges, multiple angle ranges, and multiple volume correspondences. Here, the first distance is a specific numerical value belonging to one of the stored multiple distance ranges; the first angle is a specific numerical value belonging to one of the stored multiple angle ranges; and the first volume corresponds to the first distance and the first angle. The first volume corresponding to the first distance and the first angle can be understood as follows: after the second device emits a sound wave with a first volume, when the user holds the first device at a distance of the first distance and at an angle of the first angle to the second device, the volume of the sound wave heard by the user satisfies the first condition. The specific representation of each distance range, each angle range, and its corresponding volume stored in the electronic device can be similarly referenced to the specific representation of the first volume corresponding to the first distance and the first angle described above, and will not be elaborated upon here.

[0149] For example, the correspondence between multiple distance ranges, multiple angle ranges, and multiple volume levels stored in the first device can be referred to Table 4 below.

[0150] Table 4

[0151] Referring to Table 4, which exemplarily illustrates the relationship between the distance range d, the angle range A, and the volume, the angles within the angle range A can be referenced from those in Figure 3 above. The volume is indicated by a multiple of the maximum volume 'a'. For example, a = 0.8 means that the current volume T is 0.8 times the maximum volume Tmax that the second device can provide.

[0152] For example, when the first device determines that the first distance is 22m and the first angle is 20 degrees, the first distance is within the range of greater than 20m and less than or equal to 25m, and the first angle is within the range of greater than -30 degrees and less than or equal to 30 degrees. The first device can determine, according to Table 4, that the first volume corresponding to the first distance is 0.7 times the maximum volume. That is, after the second device emits a sound wave with a volume of 0.8 times the maximum volume, when the user holds the first device and is 22m away from the second device at an angle of 20 degrees, the volume of the sound wave heard by the user is appropriate.

[0153] In one possible implementation, since different models of the second device may have different appearances and different maximum volume levels, the correspondence between multiple distance ranges and multiple volume levels determined based on different models of the second device may differ. Therefore, the first device can store multiple tables as shown in Table 4. One model of the second device corresponds to one table as shown in Table 4. Before executing S204-2, the first device can determine the corresponding table as shown in Table 4 based on the model of the second device, and then determine the first volume level corresponding to the first distance from Table 4.

[0154] In this embodiment of the application, the values ​​of multiple distance d ranges, multiple angle A ranges, and multiple maximum volume multiples a in Table 4 above are only illustrative examples. Depending on the pre-set experiment, they can be other specific values, and this is not limited. Optionally, the maximum volume multiples a in Table 3 above can also be directly expressed as specific volume decibel values, and this is not limited.

[0155] As can be seen from Tables 3 and 4 above, the greater the distance between the first and second devices within a certain range, the louder the corresponding volume within that range; conversely, the closer the distance between the first and second devices within a certain range, the quieter the corresponding volume within that range. It is worth noting that "a certain range" for distance means the distance will not be infinitely large, but rather within the measurable range of the first device; similarly, "a certain range" for volume means the volume will not be infinitely large or small, but rather within the normal volume range for everyday use of the second device.

[0156] In some implementations, S205-2 can be executed after S204-2 is completed.

[0157] S205-2, The first device sends a first message to the second device, the first message being used to indicate the volume of the second sound wave emitted by the second device.

[0158] In some implementations, after determining the first volume corresponding to the first distance, the first device can send a first message to the second device. Specifically, the first message instructs the second device to emit a second sound wave with the first volume. For example, if the first volume is determined based on Table 3 above, after the second device emits the second sound wave with the first volume, when the user holds the first device and the distance between the first device and the second device is the first distance, the volume of the second sound wave heard by the user satisfies the first condition.

[0159] In one possible implementation, after determining the first volume corresponding to the first distance and the first angle, the first device can send a first message to the second device. For example, if the first volume is determined based on Table 4 above, after the second device emits a second sound wave with the first volume, when the user holds the first device, and the distance between the first device and the second device is the first distance, and the angle between the first device and the second device is the first angle, the volume of the second sound wave heard by the user satisfies the first condition.

[0160] Among them, S204-1 and S204-2 are optional steps.

[0161] S206. The second device receives the first message and transmits a second sound wave according to the first message.

[0162] In some implementations, S206 can be executed after executing S205-1 or S205-2 above.

[0163] When the first message specifically instructs the second device to decrease or increase the volume of the emitted sound wave, the second device can determine the emission power of the second sound wave based on the first message. Specifically, when the first message instructs the second device to decrease the volume of the emitted sound wave, the second device determines that the emission power of the second sound wave is less than the emission power of the first sound wave, and then emits the second sound wave; when the first message instructs the second device to increase the volume of the emitted sound wave, the second device determines that the emission power of the second sound wave is greater than the emission power of the first sound wave, and then emits the second sound wave.

[0164] In the case where the first message indicates the specific volume of the sound wave emitted by the second device, for example, in the case of emitting a sound wave with a first volume, the second device can determine the emission power of the second sound wave based on the first message. Specifically, the second device determines the emission power W1 required to emit the sound wave with the first volume, and then emits the second sound wave at the emission power W1.

[0165] By implementing the above method, the volume of the sound waves emitted by the second device that the user hears can be appropriate, that is, the volume is neither too loud nor too soft.

[0166] In some implementations, after executing S206, the following process can be executed. Optionally, the following process can also be executed after the first device determines that the distance between the first device and the second device has changed:

[0167] Specifically, firstly, the first device determines a second distance between the first device and the second device, and secondly, determines the RSSI of the second sound wave emitted by the second device, wherein the second distance is different from the first distance.

[0168] Then, the first device determines the second standard distance corresponding to the RSSI of the second sound wave. After the second device emits the second sound wave, when the user holds the first device and the distance between the first device and the second device is the second standard distance, the volume of the second sound wave heard by the user satisfies the first condition.

[0169] Finally, the first device sends a third message to the second device. The third message is used to indicate the volume or volume change trend of the third sound wave emitted by the second device. If the second distance is less than the second standard distance, the emission power of the third sound wave is less than the emission power of the second sound wave. If the second distance is greater than the second standard distance, the emission power of the third sound wave is greater than the emission power of the second sound wave. The frequency band of the third sound wave is within the range of human hearing.

[0170] The above process is similar to that shown in Figure 2. That is, during the search for the second device, the first and second devices can repeatedly or periodically execute the method shown in Figure 2. Optionally, if the distance between the first and second devices remains unchanged (e.g., the second distance is the same as the first distance), the above process is not executed, and the second device can simply periodically emit sound waves. This avoids the first and second devices repeatedly executing the same steps to reach the same conclusion, thus reducing power consumption to some extent.

[0171] In some implementations, the first device can respond to a user operation and disable the function of finding the second device. Specifically, the first device can respond to this operation by sending a disable message to the second device. Upon receiving the disable message, the second device stops emitting the sound waves used to find the second device. This terminates the periodic execution of the method flow shown in Figure 2.

[0172] The second device can also respond to user input, confirm that the user has found the second device, and then disable the function to find the second device. Specifically, in response to this confirmation, the second device can stop emitting sound waves used to locate the second device and send an acknowledgment message to the first device. Upon receiving this acknowledgment message, the first device disables the function to find the second device. This concludes the periodic execution of the method flow shown in Figure 2.

[0173] Figure 4 illustrates a schematic flowchart of a method for adjusting sound waves according to an embodiment of this application. The method includes:

[0174] S301, the second device emits the first sound wave.

[0175] For a detailed description of S301, please refer to the detailed description of S201 above, which will not be repeated here.

[0176] In some implementations, S302 can be executed after S301.

[0177] S302, the first device determines a first distance between the first device and the second device, and the first device receives the RSSI of the first sound wave emitted by the second device.

[0178] In one possible implementation, after determining the RSSI of the first sound wave, the first device can further determine whether the RSSI of the first sound wave is greater than a preset RSSI. If the RSSI of the first sound wave is greater than the preset RSSI, step S303 is executed.

[0179] In some implementations, S302 may further include the first device determining a first angle between the first device and the second device, that is, the angle between the first device and the second device when the first device receives the first sound wave.

[0180] For other related descriptions of S302, please refer to the detailed description of S202 above, which will not be repeated here.

[0181] In some implementations, S303 can be executed after S302.

[0182] S303, The first device sends the RSSI of the first distance and the first sound wave to the second device.

[0183] In some implementations, S303 may also include the first device sending a first angle to the second device.

[0184] In some implementations, S304 can be executed after S303.

[0185] S304. The second device determines the first standard distance corresponding to the RSSI of the first sound wave. Wherein, when the first device is at the first standard distance from the second device, the volume of the first sound wave emitted by the second device heard by the user holding the first device satisfies the first condition.

[0186] In some implementations, before executing the method shown in Figure 3, the second device can determine and store the RSSI ranges of multiple sound waves and their corresponding standard distances. For details on how to determine the RSSI ranges of multiple sound waves and their corresponding standard distances, please refer to the relevant description in S203 above, which will not be repeated here.

[0187] In some implementations, the second device can determine the first standard distance corresponding to the RSSI of the first sound wave from the stored RSSI ranges of multiple sound waves and their corresponding standard distances. For details on how to determine the first standard distance corresponding to the RSSI of the first sound wave, please refer to the relevant description in S203 above, which will not be repeated here.

[0188] For example, the RSSI ranges and corresponding standard distances of multiple sound waves stored in the second device can be referred to Table 1 above.

[0189] In one possible implementation, before executing the method shown in Figure 3, the second device can determine and store the RSSI ranges of multiple sound waves and their corresponding standard distance ranges. For details on how to determine the RSSI ranges of multiple sound waves and their corresponding standard distance ranges, please refer to the relevant description in S203 above, which will not be repeated here.

[0190] In one possible implementation, S304 above can specifically refer to the second device determining the first standard distance range corresponding to the RSSI of the first sound wave from the stored RSSI ranges of multiple sound waves and their corresponding standard distance ranges. For details on how to determine the first standard distance range corresponding to the RSSI of the first sound wave, please refer to the relevant description in S203 above, which will not be repeated here.

[0191] For example, the RSSI ranges and corresponding standard distance ranges of multiple sound waves stored in the second device can be referred to Table 2 above.

[0192] In some implementations, S305-1 or S305-2 can be executed after S304 is executed.

[0193] S305-1, The second device determines the relationship between the first standard distance and the first distance.

[0194] In some implementations, after determining the first standard distance corresponding to the RSSI of the first sound wave, the second device can determine the relationship between the first distance actually measured by the first device when receiving the first sound wave and the first standard distance.

[0195] For a detailed description of S305-1, please refer to the detailed description of S204-1 above, which will not be repeated here. The difference is that the executing entity of S204-1 is the first device, while the executing entity of S305-1 is the second device.

[0196] In some implementations, after executing S305-1 above, if the first distance is inconsistent with the first standard distance, or if the first distance is not within the range of the first standard distance, then S306-1 can be executed. If the first distance is consistent with the first standard distance, or if the first distance is within the range of the first standard distance, then the current process ends, and the method flow for adjusting the sound wave shown in Figure 3 is executed again.

[0197] S306-1, The second device determines the volume change trend of the second sound wave emitted by the second device.

[0198] In some implementations, if the first distance is less than the first standard distance, it means that after the second device emits the first sound wave, when the user holds the first device and the distance between the first and second devices is the first distance, the volume of the first sound wave heard by the user is too loud. In order to make the user hear a sound wave of appropriate volume, the second device can reduce the volume of the subsequent emitted second sound waves.

[0199] If the first distance is greater than the first standard distance, it means that after the second device emits the first sound wave, when the user holds the first device and the distance between the first device and the second device is the first distance, the volume of the first sound wave heard by the user is too low. In order to make the user hear a sound wave of appropriate volume, the second device can increase the volume of the subsequent emitted second sound wave.

[0200] In one possible implementation, if the first distance is less than a first standard distance range, it means that after the second device emits the first sound wave, when the user holds the first device and the distance between the first and second devices is the first distance, the volume of the first sound wave heard by the user is too high. In order to make the user hear a sound wave of appropriate volume, the second device can reduce the volume of the subsequently emitted second sound wave.

[0201] If the first distance is greater than the first standard distance range, it means that after the second device emits the first sound wave, when the user holds the first device and the distance between the first device and the second device is the first distance, the volume of the first sound wave heard by the user is too low. In order to make the user hear a sound wave of appropriate volume, the second device can increase the volume of the subsequent emitted second sound wave.

[0202] S305-2, When the first distance is different from the first standard distance, the second device determines the first volume corresponding to the first distance. Specifically, when the first device is at the first distance from the second device, the user holding the first device hears the volume of the sound wave emitted by the second device with the first volume, satisfying the first condition.

[0203] In some implementations, before executing the method flow shown in Figure 3, the second device can determine and store multiple distance ranges and their corresponding volume levels. For details on how to determine the multiple distance ranges and their corresponding volume levels, please refer to the relevant description in S204-2 above; it will not be repeated here.

[0204] In some implementations, the second device can determine the first volume corresponding to the first distance from a stored set of multiple distance ranges and their corresponding volume levels. For details on how to determine the first volume corresponding to the first distance, please refer to the relevant description in S204-2 above; it will not be repeated here.

[0205] For example, the multiple distance ranges and corresponding volume levels stored in the second device can be referred to Table 3 above.

[0206] In some implementations, before executing the method flow shown in Figure 3, the second device can determine and store the correspondence between multiple distance ranges, multiple angle ranges, and volume. For details on how to determine the correspondence between multiple distance ranges, multiple angle ranges, and volume, please refer to the relevant description in S204-2 above, which will not be repeated here.

[0207] In some implementations, the second device can determine the first volume corresponding to the first distance and the first angle from multiple stored distance ranges, multiple angle ranges, and multiple volume correspondences. For details on how to determine the first volume corresponding to the first distance and the first angle, please refer to the relevant description in S204-2 above, which will not be repeated here.

[0208] For example, the correspondence between multiple distance ranges, multiple angle ranges, and multiple volume levels stored in the second device can be referred to Table 4 above.

[0209] In some implementations, S306-2 can be executed after S305-2 is executed.

[0210] S306-2, The second device determines that the volume of the second sound wave emitted by the second device is the first volume.

[0211] In some implementations, after determining the first volume corresponding to the first distance, the second device can determine that the volume of the subsequently emitted second sound wave is the first volume. For example, when the first volume is determined based on Table 3 above, after the second device emits a second sound wave with the first volume, when the user holds the first device and the distance between the first device and the second device is the first distance, the volume of the second sound wave heard by the user satisfies the first condition.

[0212] In some implementations, after determining the first volume corresponding to the first distance and the first angle, the second device can determine that the volume of the subsequently emitted second sound wave is the first volume. For example, when the first volume is determined based on Table 4 above, after the second device emits a second sound wave with the first volume, when the user holds the first device, and the distance between the first device and the second device is the first distance, and the angle between the first device and the second device is the first angle, the volume of the second sound wave heard by the user satisfies the first condition.

[0213] Among them, S305-1 and S305-2 are optional steps.

[0214] S307, The second device emits a second sound wave.

[0215] In some implementations, S206 can be executed after S306-1 or S306-2 is executed.

[0216] If S307 is executed after S306-1, the second device can determine the transmission power of the second sound wave based on the volume change trend determined in S306-1. Specifically, when the second device determines that the volume of the transmitted sound wave needs to be reduced, it determines that the transmission power of the second sound wave is less than the transmission power of the first sound wave, and then transmits the second sound wave; when the second device determines that the volume of the transmitted sound wave needs to be increased, it determines that the transmission power of the second sound wave is greater than the transmission power of the first sound wave, and then transmits the second sound wave.

[0217] If S306-2 is executed followed by S307, the second device can determine the transmission power of the second sound wave based on the first volume determined in S306-2. Specifically, the second device determines the transmission power W1 required to transmit a sound wave with the first volume, and then transmits the second sound wave at the transmission power W1.

[0218] By implementing the above method, the volume of the sound waves emitted by the second device that the user hears can be appropriate, that is, the volume is neither too loud nor too soft.

[0219] In one possible implementation, the frequency range of the sound waves involved in Figures 2 and 3 above is audible to the human ear.

[0220] In another possible implementation, the sound waves involved in Figures 2 and 3 above can also be ultrasonic waves. This is because excessive intensity of sound waves in certain non-inaudible frequency bands can also cause auditory discomfort to users, such as hearing obvious and loud piercing sounds. Therefore, even when the sound waves emitted by the second device are ultrasonic waves, the emission power of the sound waves of the second device can be adjusted based on the sound wave adjustment method provided in the embodiments of this application. This can improve the user's auditory experience in certain situations. Furthermore, regardless of whether the sound waves emitted by the second device are ultrasonic waves, during the process of locating the second device, the closer the user holding the first device is to the second device, the lower the emission power of the sound waves emitted by the second device, which can save power to a certain extent.

[0221] It is understood that, in order to achieve the functions in the above embodiments, the first device and the second device include hardware structures and / or software modules corresponding to perform each function. Those skilled in the art should readily recognize that, based on the units and method steps of the various examples described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

[0222] The following is a schematic diagram of the structure of the communication device provided in the embodiments of this application.

[0223] Figures 5A and 5B are schematic diagrams of possible communication devices provided in embodiments of this application. These communication devices can be used to implement the functions of the first device in the above method embodiments, and thus can also achieve the beneficial effects of the above method embodiments. In the embodiments of this application, the communication device can be the first device shown in Figure 2 or Figure 3, or it can be a module (such as a chip) applied to the first device.

[0224] As shown in Figure 5A, the communication device 500 includes a processing unit 510 and a transceiver unit 520. The communication device 500 is used to implement the functions of the first device in the method shown in Figure 2 or Figure 3. For example, the transceiver unit 520 may include a Bluetooth module.

[0225] When the communication device 500 is used to implement the function of the first device in the method embodiment shown in FIG2: the transceiver unit 520 is used to receive the first sound wave; the transceiver unit 520 is also used to receive information on the transmission time of the first sound wave emitted by the second device; the transceiver unit 520 is also used to send a sixth message, the sixth message being used to instruct the second device to emit the sound wave; the transceiver unit 520 is also used to send a first message, the first message being used to instruct the volume or volume change trend of the sound wave emitted by the second device; the processing unit 510 is used to determine the RSSI of the first distance and the first sound wave; the processing unit 510 is used to determine the first standard distance corresponding to the RSSI of the first sound wave; the processing unit 510 is also used to determine the first volume corresponding to the first distance.

[0226] When the communication device 500 is used to implement the function of the first device in the method embodiment shown in FIG3: the transceiver unit 520 is used to receive the first sound wave; the transceiver unit 520 is also used to receive information on the transmission time of the second device transmitting the first sound wave; the transceiver unit 520 is also used to send a sixth message, the sixth message being used to instruct the second device to transmit the sound wave; the transceiver unit 520 is also used to send the RSSI of the first distance and the first sound wave; the processing unit 510 is used to determine the RSSI of the first distance and the first sound wave.

[0227] For a more detailed description of the processing unit 510 and the transceiver unit 520, please refer to the relevant descriptions in the method embodiments shown in Figure 2 or Figure 3.

[0228] As shown in Figure 5B, the communication device 600 includes a processor 610, an interface circuit 620, and a microphone 630. The processor 610 and the interface circuit 620 are coupled to each other. It is understood that the interface circuit 620 can be a transceiver or an input / output interface. For example, the communication device 600 may only have a receiver, or it may integrate a receiver and a transmitter. The transmitter is used to transmit signals, and the receiver is used to receive signals.

[0229] Optionally, the communication device 600 may further include a memory 640 for storing instructions executed by the processor 610, or input data required for the processor 610 to execute instructions, or data generated after the processor 610 executes instructions; and a speaker 650. The processor 610, microphone 630, speaker 650, and memory 640 are connected via a bus to enable data exchange. Sometimes, the interface circuit 620 can also be understood as part of the processor 610, in which case the communication device 600 includes the processor 610.

[0230] When the communication device 600 is used to implement the method shown in FIG2 or FIG3, the processor 610 is used to implement the function of the processing unit 510, and the interface circuit 620 is used to implement the function of the transceiver unit 520.

[0231] When the communication device 500 or 600 is a chip applied to the first device, the chip of the first device implements the functions of the first device in the above method embodiments. The chip of the first device receiving information from the second device can be understood as the information being first received by other modules (such as an RF module or antenna) in the first device, and then sent to the chip of the first device by these modules. The chip of the first device sending information to the second device can be understood as the information being first sent to other modules (such as an RF module or antenna) in the first device, and then sent to the second device by these modules.

[0232] Figures 6A and 6B are schematic diagrams of possible communication devices provided in embodiments of this application. These communication devices can be used to implement the functions of the second device in the above method embodiments, and thus can also achieve the beneficial effects of the above method embodiments. In the embodiments of this application, the communication device can be the second device shown in Figure 2 or Figure 3, or it can be a module (such as a chip) applied to the second device.

[0233] As shown in Figure 6A, the communication device 700 includes a processing unit 710 and a transceiver unit 720. The communication device 700 is used to implement the functions of the second device in the method shown in Figure 2 or Figure 3. For example, the transceiver unit 720 may include a Bluetooth module.

[0234] When the communication device 700 is used to implement the function of the second device in the method embodiment shown in FIG2: the transceiver unit 720 is used to transmit a first sound wave; the transceiver unit 720 is also used to send information about the transmission time of the first sound wave transmitted by the second device; the transceiver unit 720 is also used to receive a sixth message, the sixth message being used to instruct the second device to transmit a sound wave; the transceiver unit 720 is also used to receive a first message, the first message being used to instruct the volume or volume change trend of the sound wave transmitted by the second device; the processing unit 710 is used to determine the transmission power of the subsequently transmitted sound wave.

[0235] When the communication device 700 is used to implement the function of the second device in the method embodiment shown in FIG3: the transceiver unit 720 is used to transmit a first sound wave; the transceiver unit 720 is also used to send information about the transmission time of the second device transmitting the first sound wave; the transceiver unit 720 is also used to receive a sixth message, the sixth message being used to instruct the second device to transmit a sound wave; the transceiver unit 720 is also used to receive the RSSI of a first distance and the first sound wave; the processing unit 710 is used to determine a first standard distance corresponding to the RSSI of the first sound wave; the processing unit 710 is also used to determine a first volume corresponding to the first distance; the processing unit 710 is used to determine the transmission power of the subsequently transmitted sound wave.

[0236] For a more detailed description of the processing unit 710 and the transceiver unit 720 described above, please refer to the relevant descriptions in the method embodiments shown in Figure 2 or Figure 3.

[0237] As shown in Figure 6B, the communication device 800 includes a processor 810, an interface circuit 820, and a speaker 850. The processor 810 and the interface circuit 820 are coupled to each other. It is understood that the interface circuit 820 can be a transceiver or an input / output interface. For example, the communication device 800 may only have a receiver, or it may integrate a receiver and a transmitter. The transmitter is used to transmit signals, and the receiver is used to receive signals.

[0238] Optionally, the communication device 800 may further include a memory 840 for storing instructions executed by the processor 810, or input data required for the processor 810 to execute instructions, or data generated after the processor 810 executes instructions; and a microphone 830. The processor 810, microphone 830, speaker 850, and memory 840 are connected via a bus to enable data exchange. Sometimes, the interface circuit 820 can also be understood as part of the processor 810, in which case the communication device 800 includes the processor 810.

[0239] When the communication device 800 is used to implement the method shown in FIG2 or FIG3, the processor 810 is used to implement the function of the processing unit 710, and the interface circuit 820 is used to implement the function of the transceiver unit 720.

[0240] When the communication device 700 or 800 is a chip applied to the second device, the chip of the second device implements the functions of the second device in the above method embodiments. The chip of the second device receiving information from the first device can be understood as the information being first received by other modules (such as an RF module or antenna) in the second device, and then sent to the chip of the second device by these modules. The chip of the second device sending information to the first device can be understood as the information being first sent to other modules (such as an RF module or antenna) in the second device, and then sent to the first device by these modules.

[0241] In this application, entity A sends information to entity B, either directly or indirectly through other entities. Similarly, entity B receives information from entity A, either directly or indirectly through other entities. Entities A and B can be RAN nodes or terminals, or modules within RAN nodes or terminals. Information transmission and reception can be between RAN nodes and terminals, such as between a base station and a terminal; between two RAN nodes, such as between a CU and a DU; or between different modules within a single device, such as between a terminal chip and other modules of the terminal, or between a base station chip and other modules of the base station.

[0242] It is understood that the processor in the embodiments of this application can be a central processing unit, or other general-purpose processors, digital signal processors, application-specific integrated circuits, field-programmable gate arrays, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. A general-purpose processor can be a microprocessor or any conventional processor.

[0243] The method steps in the embodiments of this application can be implemented in hardware or in software instructions executable by a processor. The software instructions can consist of corresponding software modules, which can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory, registers, hard disks, portable hard disks, optical discs, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. The storage medium can also be a component of the processor. The processor and the storage medium can reside in an application-specific integrated circuit (ASIC). Alternatively, the ASIC can reside in a base station or terminal. The processor and the storage medium can also exist as discrete components in the base station or terminal.

[0244] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this application are performed entirely or partially. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user equipment, or other programmable device. The computer program or instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; it can also be an optical medium, such as a digital video optical disc; or it can be a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both types of storage media.

[0245] In the various embodiments of this application, unless otherwise specified or in case of logical conflict, the terminology and / or descriptions of different embodiments are consistent and can be referenced by each other. The technical features of different embodiments can be combined to form new embodiments according to their inherent logical relationship.

[0246] It is understood that the various numerical designations used in the embodiments of this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application. The order of the process numbers described above does not imply the order of execution; the execution order of each process should be determined by its function and internal logic.

Claims

1. A method for adjusting sound waves, characterized in that, The method includes: Determine a first distance between the first device and the second device, and determine the received signal strength (RSSI) of the first acoustic wave emitted by the second device. The first standard distance corresponding to the RSSI of the first sound wave is determined. After the second device emits the first sound wave, when the user holds the first device and the distance between the first device and the second device is the first standard distance, the volume of the first sound wave heard by the user satisfies the first condition. A first message is sent to the second device, the first message being used to indicate the volume or volume change trend of the second sound wave emitted by the second device. If the first distance is less than the first standard distance, the emission power of the second sound wave is less than the emission power of the first sound wave. If the first distance is greater than the first standard distance, the emission power of the second sound wave is greater than the emission power of the first sound wave. The frequency band of the second sound wave is within the audible range of the human ear.

2. The method according to claim 1, characterized in that, If the first distance is less than the first standard distance, then the first message is specifically used to instruct the second device to reduce the volume of the sound waves emitted by the second device; If the first distance is greater than the first standard distance, then the first message is specifically used to instruct the second device to increase the volume of the sound waves emitted by the second device.

3. The method according to claim 1, characterized in that, The first message is specifically used to instruct the second device to emit a second sound wave with a first volume. After the second device emits the second sound wave with the first volume, when the user holds the first device and is at the first distance from the second device, the volume of the second sound wave heard by the user satisfies the first condition.

4. The method according to claim 3, characterized in that, The method further includes: Determine the first angle between the first device and the second device; Wherein, after the second device emits the second sound wave with the first volume, when the user holds the first device, and the distance between the first device and the second device is the first distance, and the angle between the first device and the second device is the first angle, the volume of the second sound wave heard by the user satisfies the first condition.

5. The method according to any one of claims 1-4, characterized in that, After sending the first message to the second device, the method further includes: Determine a second distance between the first device and the second device, and determine the RSSI of the second sound wave emitted by the second device, wherein the second distance is different from the first distance; The second standard distance corresponding to the RSSI of the second sound wave is determined. After the second device emits the second sound wave, when the user holds the first device and the distance between the first device and the second device is the second standard distance, the volume of the second sound wave heard by the user satisfies the first condition. A third message is sent to the second device, the third message being used to indicate the volume or volume change trend of the third sound wave emitted by the second device. If the second distance is less than the second standard distance, the emission power of the third sound wave is less than the emission power of the second sound wave. If the second distance is greater than the second standard distance, the emission power of the third sound wave is greater than the emission power of the second sound wave. The frequency band of the third sound wave is within the audible range of the human ear.

6. A method for adjusting sound waves, characterized in that, The method includes: Determine a first distance between the first device and the second device, and determine the RSSI of the first sound wave received from the second device; The second device sends the first distance and the RSSI of the first sound wave. The RSSI of the first sound wave is used by the second device to determine the corresponding first standard distance. After the second device emits the first sound wave, when the user holds the first device and the distance between the first device and the second device is the first standard distance, the volume of the first sound wave heard by the user satisfies the first condition. If the first distance is less than the first standard distance, the transmission power of the second sound wave emitted by the second device is less than the transmission power of the first sound wave. If the first distance is greater than the first standard distance, the transmission power of the second sound wave emitted by the second device is greater than the transmission power of the first sound wave. The frequency band of the second sound wave is within the audible range of the human ear.

7. The method according to claim 6, characterized in that, If the first distance is less than the first standard distance, the volume of the second sound wave is less than the volume of the first sound wave; if the first distance is greater than the standard distance, the volume of the second sound wave is greater than the volume of the first sound wave.

8. The method according to claim 6, characterized in that, The volume of the second sound wave is the first volume. After the second device emits the second sound wave with the first volume, when the user holds the first device and the distance between the first device and the second device is the first distance, the volume of the second sound wave heard by the user satisfies the first condition.

9. The method according to claim 8, characterized in that, The method further includes: Determine the first angle between the first device and the second device; Send the first angle to the second device; Wherein, after the second device emits the second sound wave with the first volume, when the user holds the first device, and the distance between the first device and the second device is the first distance, and the angle between the first device and the second device is the first angle, the volume of the second sound wave heard by the user satisfies the first condition.

10. The method according to any one of claims 6-9, characterized in that, After sending the RSSI of the first distance and the first acoustic wave to the second device, the method further includes: Determine a second distance between the first device and the second device, and determine the RSSI of the second sound wave received from the second device; The second device sends the second distance and the RSSI of the second sound wave. The RSSI of the second sound wave is used by the second device to determine the corresponding second standard distance. After the second device emits the second sound wave, when the user holds the first device and the distance between the first device and the second device is the second standard distance, the volume of the second sound wave heard by the user satisfies the first condition. If the second distance is less than the second standard distance, the transmission power of the third sound wave emitted by the second device is less than the transmission power of the second sound wave; if the second distance is greater than the second standard distance, the transmission power of the third sound wave emitted by the second device is greater than the transmission power of the second sound wave, and the frequency band of the third sound wave is within the audible range of the human ear.

11. The method according to claim 5 or 10, characterized in that, Determining the second distance between the first device and the second device, and determining the RSSI of the second sound wave emitted by the second device, specifically includes: After determining the first distance and the RSSI of the first sound wave for a first duration, a second distance between the first device and the second device is determined, and the RSSI of the second sound wave emitted by the second device is determined, wherein the first duration is a single period of periodically determining the distance between the first device and the second device, and periodically determining the RSSI of the sound wave emitted by the second device.

12. The method according to any one of claims 1-11, characterized in that, The determination of the first distance between the first device and the second device, and the determination of the received signal strength (RSSI) of the first sound wave emitted by the second device, specifically include: Received user operation to locate the second device; Receive the first sound wave; Determine the first distance between the first device and the second device, and determine the RSSI of the first sound wave emitted by the second device.

13. The method according to any one of claims 1-12, characterized in that, Determining the first distance between the first device and the second device specifically includes: Receive information about the time when the second device transmits the first sound wave; The first distance is determined based on the time difference between the transmission time and the reception of the first sound wave.

14. The method according to any one of claims 1-12, characterized in that, Determining the first distance between the first device and the second device specifically includes: Send a fourth message to the second device; The second device receives a fifth message in response to the fourth message; The first distance is determined based on the time difference between sending the fourth message and receiving the fifth message.

15. The method according to any one of claims 12-14, characterized in that, The specific steps of receiving the first sound wave include: Send a sixth message to the second device; The first acoustic wave emitted by the second device in response to the sixth message is received.

16. A method for adjusting sound waves, characterized in that, The method includes: The first sound wave was emitted; Receive a first message sent by the first device, the first message being used to indicate the volume or volume change trend of the second sound wave emitted by the second device; If the first distance is less than the first standard distance, the transmission power of the second sound wave is less than that of the first sound wave; if the first distance is greater than the first standard distance, the transmission power of the second sound wave is greater than that of the first sound wave. The frequency band of the second sound wave is within the range of human hearing. Wherein, the first distance is the distance between the first device and the second device when the first device receives the first sound wave, the first standard distance is the standard distance corresponding to the RSSI of the first sound wave emitted by the second device when the first device receives the first sound wave emitted by the second device, and after the second device emits the first sound wave, when the user holds the first device and the distance between the first device and the second device is the first standard distance, the volume of the first sound wave heard by the user satisfies the first condition.

17. The method according to claim 16, characterized in that, If the first distance is less than the first standard distance, then the first message is specifically used to instruct the second device to reduce the volume of the sound waves emitted by the second device; If the first distance is greater than the first standard distance, then the first message is specifically used to instruct the second device to increase the volume of the sound waves emitted by the second device.

18. The method according to claim 16, characterized in that, The first message is specifically used to instruct the second device to emit a second sound wave with a first volume. After the second device emits the second sound wave with the first volume, when the user holds the first device and the distance between the first device and the second device is the first distance, the volume of the second sound wave heard by the user satisfies the first condition.

19. The method according to claim 18, characterized in that, After the second device emits the second sound wave with the first volume, when the user holds the first device, and the distance between the first device and the second device is the first distance, and the angle between the first device and the second device is the first angle, the volume of the second sound wave heard by the user satisfies the first condition, where the first angle is the angle between the first device and the second device.

20. The method according to any one of claims 16-19, characterized in that, After transmitting the second sound wave, the method further includes: Receive a second message sent by the first device, the second message being used to indicate the volume or volume change trend of a third sound wave emitted by the second device; The third sound wave is emitted. If the second distance is less than the second standard distance, the emission power of the third sound wave is less than the emission power of the second sound wave. If the second distance is greater than the second standard distance, the emission power of the third sound wave is greater than the emission power of the second sound wave. The frequency band of the third sound wave is within the audible range of the human ear. Wherein, the second distance is the distance between the first device and the second device when the first device receives the second sound wave, the second standard distance is the standard distance corresponding to the RSSI of the second sound wave emitted by the second device received by the first device, and after the second device emits the second sound wave, when the user holds the first device and the distance between the first device and the second device is the second standard distance, the volume of the second sound wave heard by the user satisfies the first condition.

21. A method for adjusting sound waves, characterized in that, The method includes: The first sound wave was emitted; The device receives a first distance and the RSSI of the first sound wave sent by the first device, wherein the first distance is the distance between the first device and the second device when the first device receives the first sound wave, and the RSSI of the first sound wave is the RSSI of the first device when the first sound wave is received. The first standard distance corresponding to the RSSI of the first sound wave is determined. After the second device emits the first sound wave, when the user holds the first device and the distance between the first device and the second device is the first standard distance, the volume of the first sound wave heard by the user satisfies the first condition. The second sound wave is emitted. If the first distance is less than the first standard distance, the emission power of the second sound wave is less than the emission power of the first sound wave. If the first distance is greater than the first standard distance, the emission power of the second sound wave is greater than the emission power of the first sound wave. The frequency band of the second sound wave is within the audible range of the human ear.

22. The method according to claim 21, characterized in that, Before emitting the second sound wave, the method further includes: The volume of the second sound wave is determined. If the first distance is less than the first standard distance, the determined volume of the second sound wave is less than the volume of the first sound wave. If the first distance is greater than the first standard distance, the determined volume of the second sound wave is greater than the volume of the first sound wave.

23. The method according to claim 21, characterized in that, Before emitting the second sound wave, the method further includes: The first volume is determined as the volume of the second sound wave. After the second device emits the second sound wave with the first volume, when the user holds the first device and the distance between the first device and the second device is the first distance, the volume of the second sound wave heard by the user satisfies the first condition.

24. The method according to claim 23, characterized in that, The method further includes: Receive the first angle between the first device and the second device sent by the first device; Wherein, after the second device emits the second sound wave with the first volume, when the user holds the first device, and the distance between the first device and the second device is the first distance, and the angle between the first device and the second device is the first angle, the volume of the second sound wave heard by the user satisfies the first condition.

25. The method according to any one of claims 21-24, characterized in that, After emitting the second sound wave, the method further includes: The device receives a second distance and the RSSI of the second sound wave sent by the first device, wherein the second distance is the distance between the first device and the second device when the first device receives the second sound wave, and the RSSI of the second sound wave is the RSSI of the second sound wave received by the first device; Determine the second standard distance corresponding to the RSSI of the second sound wave. When the second device emits the second sound wave, the user holds the first device, and the volume of the second sound wave heard by the user at a position where the first device and the second device are at a distance of the second standard distance from each other satisfies the first condition. The third sound wave is emitted. If the second distance is less than the second standard distance, the emission power of the third sound wave is less than the emission power of the second sound wave. If the second distance is greater than the second standard distance, the emission power of the third sound wave is greater than the emission power of the second sound wave. The frequency band of the third sound wave is within the audible range of the human ear.

26. The method according to claim 20 or 25, characterized in that, The second distance and the RSSI of the second sound wave are determined, and a first time interval is set between determining the first distance and the RSSI of the first sound wave, wherein the first time interval is a single period of periodically determining the distance between the first device and the second device, and periodically determining the RSSI of the sound wave emitted by the second device.

27. The method according to any one of claims 16-26, characterized in that, Before receiving the first distance and the first received signal strength (RSSI) transmitted by the first device, the method further includes: Send information about the transmission time of the first sound wave emitted by the second device to the first device; The first distance is determined based on the time difference between the transmission time and the first device receiving the first sound wave.

28. The method according to any one of claims 16-27, characterized in that, Before receiving the first distance and the first received signal strength (RSSI) transmitted by the first device, the method further includes: In response to the fourth message sent by the first device, a fifth message is sent to the first device; The first distance is determined based on the time difference between the first device sending the fourth message and receiving the fifth message.

29. The method according to claim 27 or 28, characterized in that, The transmission of the first sound wave specifically includes: The sixth message sent by the first device has been received; The first sound wave is emitted in response to the sixth message.

30. The method according to any one of claims 1-29, characterized in that, The larger the RSSI of the first sound wave, the larger the first standard distance.

31. The method according to any one of claims 1-30, characterized in that, The RSSI of the first sound wave is greater than the preset RSSI.

32. The method according to claim 3, 8, 18, or 23, characterized in that, The first volume is a multiple of the maximum volume provided by the second device, and the multiple ranges from 0 to 1.

33. A communication device, characterized in that, include: One or more functional modules for performing the method as described in any one of claims 1-32.

34. A communication device, characterized in that, The device includes a processor and an interface circuit, wherein the interface circuit is used to receive signals from other communication devices and transmit them to the processor or to send signals from the processor to other communication devices, and the processor is used to implement the method as described in any one of claims 1-32 through logic circuits or executing code instructions.

35. A computer-readable storage medium, characterized in that, The storage medium stores a computer program or instructions, which, when executed by a communication device, implement the method as described in any one of claims 1-32.

36. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by the communication device, they implement the method as described in claims 1-32.