Ultrasonic wave-based device connecting method and related apparatus
By using multi-band ultrasonic signals and frequency band adjustment technology in device connection, the problem of connection failure between terminal equipment and conference tablets is solved, and stable conference access and screen projection are achieved.
Patent Information
- Application Number
- PCT/CN2023/138772
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-07
- Filing Date
- 2023-12-14
- Publication Date
- 2024-10-31
AI Technical Summary
In ultrasonic-based device connection, the connection between the terminal device and the conference tablet often cannot be successfully established, resulting in failure of conference access and screencasting.
The first electronic device sends multiple ultrasonic signals carrying detection information, and the second electronic device feeds back decoding information, determines the target frequency band, and sends connection information through the frequency band to establish a connection. The method includes superimposed transmission of detection signals to improve efficiency, consideration of environmental reverberation time to reduce interference, and adjustment of gradual changes in frequency bands to ensure correct decoding.
It effectively solves the problem of device connection failure, improves connection efficiency and accuracy, and ensures that terminal devices can normally join meetings or implement screencasting.
Smart Images

Figure CN2023138772_31102024_PF_FP_ABST
Abstract
Description
Ultrasonic device connection method and related device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 25, 2023, with application number 202310475028.X and invention name “A method for device pairing”, and the Chinese patent application filed with the State Intellectual Property Office on June 7, 2023, with application number CN202310672093.1 and invention name “A method for device connection based on ultrasound and related devices”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to an ultrasonic-based device connection method and related apparatus. Background Art
[0003] Ultrasound is a sound wave with a frequency above the upper limit of average human hearing. It is essentially a mechanical wave with an extremely short wavelength. Ultrasound has a wide range of applications in everyday life, such as distance measurement, object detection, and data transmission. Specifically, ultrasonic sensors can detect the presence of an object by measuring changes in the echo of the sound wave. In data transmission, ultrasound can be used as a carrier to wirelessly transmit information over short distances, resulting in applications such as wireless payment systems, mobile messaging, and location-based services. Overall, ultrasound has a wide range of applications in modern communication systems and has become a vital tool in modern communication technology.
[0004] In traditional conference scenarios, users typically connect to the conference tablet in the meeting room by manually entering the conference number on their terminal devices, allowing them to join the meeting held on the tablet. In related technologies, based on the fact that ultrasound cannot penetrate walls, the conference tablet uses ultrasound to transmit the conference number. This prevents terminal devices outside the meeting room from obtaining the conference number and thus from establishing a connection with the tablet, thus ensuring the security of the meeting.
[0005] However, in the related art of establishing a connection between a conference tablet and a terminal device based on ultrasound, there is often a problem of failure in establishing a connection between the terminal device and the conference tablet.
[0006] Summary of the Invention
[0007] The present application provides an ultrasonic-based device connection method that can ensure that connections can be established normally between devices.
[0008] The first aspect of the present application provides an ultrasonic-based device connection method, which is applied to a first electronic device that serves as an ultrasonic signal transmitter. The method includes: when it is necessary to establish a connection with a second electronic device, the first electronic device sends a detection signal, and the detection signal includes multiple ultrasonic signals, each of the multiple ultrasonic signals is in a different frequency band, that is, the multiple ultrasonic signals correspond one to one to multiple different frequency bands, and each ultrasonic signal also carries corresponding detection information. Among them, the method of carrying detection information through ultrasonic signals can be to first determine the detection information corresponding to each frequency band, and then modulate the detection information onto the ultrasonic signal of the corresponding frequency band, so as to realize that the corresponding detection information is carried on the ultrasonic signal of each frequency band.
[0009] The first electronic device then receives the feedback message sent by the second electronic device and determines a target frequency band from a plurality of different frequency bands. The feedback message indicates the decoding information obtained by the second electronic device from decoding the ultrasonic signals in each frequency band. That is, the feedback message indicates the decoding information obtained by the second electronic device for each ultrasonic signal in the detection signal. The detection information corresponding to the target frequency band is identical to the decoding information corresponding to the target frequency band. In other words, the second electronic device is able to correctly decode the ultrasonic signals in the target frequency band.
[0010] Finally, the first electronic device sends a target ultrasonic signal, and the frequency band corresponding to the target ultrasonic signal includes the target frequency band. The target ultrasonic signal carries connection information, and the connection information is used to establish a connection between the second electronic device and the first electronic device. The connection information includes, for example, a screen projection code, a pairing key, a conference number, or the Internet Protocol (IP) address of the first electronic device.
[0011] In this solution, a first electronic device transmits multiple ultrasonic signals in different frequency bands, each carrying detection information, and receives decoded information from a second electronic device, which is fed back by the second electronic device. By comparing the detection information and decoded information corresponding to each of these multiple ultrasonic signals, the second electronic device determines the target frequency band in which it can correctly decode the ultrasonic waves. The second electronic device then transmits connection information using ultrasonic waves in the target frequency band, allowing the second electronic device to establish a connection with the first electronic device based on the connection information. This effectively ensures that devices with different frequency responses can establish connections based on ultrasonic signals.
[0012] In a possible implementation, the detection signal is obtained by superimposing multiple ultrasonic signals with different frequency bands. In other words, the detection signal carries multiple ultrasonic signals with different frequency bands simultaneously during the same period of time.
[0013] In this solution, by superimposing multiple ultrasonic signals with different frequency bands to obtain a detection signal, multiple ultrasonic signals can be transmitted simultaneously, thereby improving the transmission efficiency of the detection information and shortening the time required to determine the target frequency band in which the second electronic device can correctly decode the ultrasonic signal.
[0014] In one possible implementation, the target frequency band includes multiple sub-frequency bands, and each sub-frequency band within the target frequency band is a frequency band within which the second electronic device can correctly decode the ultrasonic signal. The target ultrasonic signal is obtained by superimposing multiple ultrasonic signals in different sub-frequency bands, and the ultrasonic signal in each sub-frequency band carries a portion of the connection information.
[0015] In this solution, the target ultrasonic signal is obtained by superimposing ultrasonic signals in multiple sub-bands, and the ultrasonic signal in each sub-band carries a part of the content of the connection information, which can increase the transmission rate of the connection information exponentially and effectively shorten the transmission time of the connection information.
[0016] In one possible implementation, before the first electronic device sends the detection signal, the first electronic device may also receive a broadcast message and trigger the transmission of the detection signal based on the received broadcast message, where the broadcast message is used to instruct the first electronic device to transmit the ultrasonic signal. In other words, the first electronic device triggers the detection signal only upon receiving the broadcast message, rather than continuously transmitting the detection signal.
[0017] In this solution, by having the second electronic device send a broadcast message to trigger the first electronic device to send a detection signal, the first electronic device can be prevented from continuously sending the detection signal, effectively avoiding interference to the human ear caused by the first electronic device sending ultrasonic signals for a long time, and reducing the energy consumption of the first electronic device.
[0018] In one possible implementation, the broadcast message also includes device information of the second electronic device. After determining the target frequency band corresponding to the second electronic device, the first electronic device stores a mapping relationship between the device information of the second electronic device and the target frequency band. In this way, the next time the second electronic device wishes to connect to the first electronic device, the first electronic device can determine the target frequency band in which the second electronic device can correctly decode the ultrasonic signal based on the stored mapping relationship, thereby directly sending the connection information via the ultrasonic signal in the target frequency band, thereby omitting the process of sending a detection signal to determine the frequency band.
[0019] In this solution, the second electronic device sends device information in a broadcast message, and the first electronic device records the mapping relationship between the device information of the second electronic device and the target frequency band at which the second electronic device can correctly decode the ultrasonic signal. This allows the first electronic device to quickly send an ultrasonic signal on the target frequency band when the second electronic device is connected again, without having to detect the frequency band at which the second electronic device can correctly decode the ultrasonic signal, thereby improving the efficiency of establishing a connection between the first electronic device and the second electronic device.
[0020] In one possible implementation, after obtaining the mapping relationship between the device information of the second electronic device and the target frequency band, the first electronic device sends the mapping relationship to the server. In this way, the server can synchronize the mapping relationship with other electronic devices, so that when the second electronic device establishes a connection with other electronic devices, the other electronic devices can also quickly determine the frequency band in which the second electronic device can correctly decode ultrasonic signals.
[0021] In this solution, by having the first electronic device send the mapping relationship between the device information of the second electronic device and the target frequency band to the server, it is possible to synchronize the frequency band in which the second electronic device can correctly decode the ultrasonic signal among multiple devices, thereby improving the efficiency of establishing connection between the second electronic device and each electronic device.
[0022] In one possible implementation, before sending the detection signal, the first electronic device obtains the reverberation time of the environment in which it is located, and determines the duration of the waveform used to represent each character in the detection information in the detection signal based on the reverberation time. The longer the reverberation time of the environment in which the first electronic device is located, the longer the duration of the waveform used to represent each character in the target ultrasonic signal; the shorter the reverberation time of the environment in which the first electronic device is located, the shorter the duration of the waveform used to represent each character in the target ultrasonic signal.
[0023] In this solution, the duration of the waveform representing each character in the ultrasonic signal is determined based on the reverberation time of the environment in which the first electronic device is located. The duration of the wavelength can be extended accordingly in the reverberation time environment, thereby reducing the interference of reverberation in the environment and ensuring that the second electronic device can decode the ultrasonic signal normally.
[0024] In one possible implementation, when the detection information in the detection signal is different from the decoding information sent by the second electronic device, it means that the second electronic device cannot correctly decode the ultrasonic signals in multiple frequency bands corresponding to the detection signal. The first electronic device sequentially sends ultrasonic signals carrying the detection information and with gradually changing frequency bands, and receives decoding information for the ultrasonic signals with gradually changing frequency bands sent by the second electronic device, until the decoding information sent by the second electronic device is the same as the detection information in the corresponding ultrasonic signal.
[0025] In this solution, by gradually adjusting the frequency band of the ultrasonic signal sent by the first electronic device, a comprehensive search can be conducted for the frequency band in which the second electronic device can correctly decode the ultrasonic signal, thereby ensuring that the second electronic device can correctly decode and obtain the connection information.
[0026] In one possible implementation, the connection established between the second electronic device and the first electronic device is used to implement screen projection or conference access, and the connection established between the second electronic device and the first electronic device is, for example, a Wi-Fi connection.
[0027] In one possible implementation, to ensure that multiple ultrasonic signals with different frequency bands do not crosstalk with each other, the frequency bands corresponding to different ultrasonic signals in the multiple ultrasonic signals transmitted by the first electronic device do not overlap. In other words, the frequency bands corresponding to the different ultrasonic signals are independent of each other and do not overlap.
[0028] The second aspect of the present application provides an ultrasonic-based device connection method, which is applied to a second electronic device that serves as an ultrasonic signal receiving end. The method includes: the second electronic device receives a detection signal sent by the first electronic device, the detection signal includes multiple ultrasonic signals, the multiple ultrasonic signals correspond to multiple different frequency bands one by one, and each ultrasonic signal in the multiple ultrasonic signals carries corresponding detection information; the second electronic device sends a feedback message to the first electronic device, the feedback message is used to indicate the decoding information obtained by the second electronic device by decoding each ultrasonic signal; the second electronic device receives a target ultrasonic signal sent by the first electronic device, the frequency band corresponding to the target ultrasonic signal includes a target frequency band, the target frequency band is determined from multiple different frequency bands, and the detection information corresponding to the target frequency band is the same as the decoding information corresponding to the target frequency band, and the target ultrasonic signal carries connection information; based on the connection information, the second electronic device establishes a connection with the first electronic device.
[0029] In a possible implementation, the detection signal is obtained by superimposing multiple ultrasonic signals with different frequency bands.
[0030] In one possible implementation, the target frequency band includes multiple sub-frequency bands, and the target ultrasonic signal is obtained by superimposing multiple ultrasonic signals in different sub-frequency bands. The ultrasonic signal in each sub-frequency band carries a portion of the connection information. After receiving the target ultrasonic signal, the second electronic device decodes the ultrasonic signal in each sub-frequency band and combines the decoded information obtained to obtain the connection information.
[0031] In one possible implementation, before the second electronic device receives the detection signal sent by the first electronic device, the second electronic device obtains a first instruction, where the first instruction is used to instruct the second electronic device to establish a connection with the first electronic device; in response to the first instruction, the second electronic device sends a broadcast message, where the broadcast message is used to instruct the first electronic device to send an ultrasonic signal.
[0032] In a possible implementation, the broadcast message includes device information of the second electronic device.
[0033] In a possible implementation, the duration of the waveform in the detection signal used to represent each character in the detection information is related to the reverberation time of the environment in which the first electronic device is located.
[0034] In one possible implementation, when the detection information in the detection signal is different from the decoding information sent by the second electronic device, the second electronic device sequentially receives the ultrasonic signal carrying the detection information and with a gradually changing frequency band sent by the first electronic device, and sequentially sends the decoding information for the ultrasonic signal with a gradually changing frequency band to the first electronic device until the decoding information sent by the second electronic device is the same as the detection information in the corresponding ultrasonic signal.
[0035] In one possible implementation, the connection established between the second electronic device and the first electronic device is used to implement screen projection or conference access.
[0036] In a possible implementation, frequency bands corresponding to different ultrasonic signals in the multiple ultrasonic signals do not overlap.
[0037] In one possible implementation, the connection information includes a projection code, a conference number, or an IP address of the first electronic device.
[0038] The third aspect of the present application provides an ultrasound-based device connection device, which is deployed on a first electronic device and includes: a sending module for sending a detection signal, the detection signal including multiple ultrasonic signals, the multiple ultrasonic signals corresponding one-to-one to multiple different frequency bands, and each of the multiple ultrasonic signals carries corresponding detection information; a receiving module for receiving a feedback message sent by a second electronic device, the feedback message is used to indicate the decoding information obtained by the second electronic device by decoding each ultrasonic signal; a processing module for determining a target frequency band from multiple different frequency bands, the detection information corresponding to the target frequency band is the same as the decoding information corresponding to the target frequency band; the sending module is also used to send a target ultrasonic signal, the frequency band corresponding to the target ultrasonic signal includes the target frequency band, the detection information corresponding to the target frequency band is the same as the decoding information corresponding to the target frequency band, the target ultrasonic signal carries connection information, and the connection information is used to establish a connection between the second electronic device and the first electronic device.
[0039] In a possible implementation, the detection signal is obtained by superimposing multiple ultrasonic signals with different frequency bands.
[0040] In a possible implementation, the target frequency band includes multiple sub-frequency bands, the target ultrasonic signal is obtained by superimposing multiple ultrasonic signals in different sub-frequency bands, and the ultrasonic signal in each sub-frequency band carries a portion of the connection information.
[0041] In a possible implementation, before the sending module sends the detection signal, the receiving module is further configured to receive a broadcast message, where the broadcast message is configured to instruct the first electronic device to send an ultrasonic signal.
[0042] In a possible implementation, the broadcast message includes device information of the second electronic device; the apparatus further includes a processing module configured to store a mapping relationship between the device information of the second electronic device and the target frequency band.
[0043] In a possible implementation, the sending module is further configured to send the mapping relationship to the server.
[0044] In a possible implementation, the device further includes a processing module configured to obtain a reverberation time of an environment and determine, based on the reverberation time, a duration of a waveform in the detection signal used to represent each character in the detection information.
[0045] In one possible implementation, when the detection information in the detection signal is different from the decoding information sent by the second electronic device, the sending module is also used to sequentially send ultrasonic signals carrying the detection information and with gradually changing frequency bands, and the receiving module is also used to receive the decoding information of the ultrasonic signals with gradually changing frequency bands sent by the second electronic device, until the decoding information sent by the second electronic device is the same as the detection information in the corresponding ultrasonic signal.
[0046] In one possible implementation, the connection established between the second electronic device and the first electronic device is used to implement screen projection or conference access.
[0047] In a possible implementation, frequency bands corresponding to different ultrasonic signals in the multiple ultrasonic signals do not overlap.
[0048] In one possible implementation, the connection information includes a projection code, a pairing key, a conference number, or an IP address of the first electronic device.
[0049] In a fourth aspect, the present application provides an ultrasonic-based device connection apparatus, which is deployed on a second electronic device and includes: a receiving module for receiving a detection signal sent by a first electronic device, the detection signal including multiple ultrasonic signals, the multiple ultrasonic signals corresponding one-to-one to multiple different frequency bands, and each of the multiple ultrasonic signals carries corresponding detection information; a sending module for sending a feedback message to the first electronic device, the feedback message being used to indicate decoding information obtained by the second electronic device by decoding each ultrasonic signal; the receiving module is also used to receive a target ultrasonic signal sent by the first electronic device, the target frequency band is determined from multiple different frequency bands, and the frequency band corresponding to the target ultrasonic signal includes the target frequency band, the detection information corresponding to the target frequency band is the same as the decoding information corresponding to the target frequency band, and the target ultrasonic signal carries connection information; the sending module is also used to establish a connection between the second electronic device and the first electronic device based on the connection information.
[0050] In a possible implementation, the detection signal is obtained by superimposing multiple ultrasonic signals with different frequency bands.
[0051] In one possible implementation, the target frequency band includes multiple sub-frequency bands, the target ultrasonic signal is obtained by superimposing multiple ultrasonic signals in different sub-frequency bands, and the ultrasonic signals in each sub-frequency band carry a portion of the connection information. The device also includes a processing module for combining decoded information obtained from decoding the ultrasonic signals in each sub-frequency band to obtain the connection information.
[0052] In one possible implementation, the device also includes an acquisition module; before the receiving module receives the detection signal sent by the first electronic device, the acquisition module is also used to obtain a first instruction, and the first instruction is used to instruct the second electronic device to establish a connection with the first electronic device; the sending module is also used to send a broadcast message in response to the first instruction, and the broadcast message is used to instruct the first electronic device to send an ultrasonic signal.
[0053] In a possible implementation, the broadcast message includes device information of the second electronic device.
[0054] In a possible implementation, the duration of the waveform in the detection signal used to represent each character in the detection information is related to the reverberation time of the environment in which the first electronic device is located.
[0055] In one possible implementation, when the detection information in the detection signal is different from the decoding information sent by the second electronic device, the receiving module is also used to sequentially receive the ultrasonic signal carrying the detection information and with a gradually changing frequency band sent by the first electronic device, and the sending module is also used to sequentially send the decoding information for the ultrasonic signal with a gradually changing frequency band to the first electronic device until the decoding information sent by the second electronic device is the same as the detection information in the corresponding ultrasonic signal.
[0056] In one possible implementation, the connection established between the second electronic device and the first electronic device is used to implement screen projection or conference access.
[0057] In a possible implementation, frequency bands corresponding to different ultrasonic signals in the multiple ultrasonic signals do not overlap.
[0058] In one possible implementation, the connection information includes a projection code, a pairing key, a conference number, or an IP address of the first electronic device.
[0059] In a fifth aspect, the present application provides an electronic device comprising: a processor and a memory; the memory is configured to store computer instructions, and when the processor executes the instructions, the electronic device performs any of the methods described above. The electronic device may include the apparatus described in the third or fourth aspect.
[0060] A sixth aspect of the present application provides a conference system, comprising the device in any implementation of the third aspect and the device in any implementation of the fourth aspect.
[0061] In a seventh aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on an electronic device, the electronic device can execute any of the methods described above.
[0062] In an eighth aspect, the present application provides a computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute any of the methods described above.
[0063] In the ninth aspect of the present application, a chip is provided, which includes a processor and a communication interface, the communication interface is used to communicate with modules outside the chip shown, and the processor is used to run computer programs or instructions so that the device installed with the chip can execute any of the methods in the above aspects.
[0064] Among them, the technical effects brought about by any design method in the second to ninth aspects can refer to the technical effects brought about by different implementation methods in the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] FIG1 is a schematic diagram of an application scenario architecture provided by an embodiment of the present application;
[0066] FIG2 is a schematic diagram of an application scenario architecture provided by an embodiment of the present application;
[0067] FIG3 is a schematic structural diagram of an electronic device 300 provided in an embodiment of the present application;
[0068] FIG4 is a schematic structural diagram of an electronic device 401 provided in an embodiment of the present application;
[0069] FIG5 is a schematic diagram of a flow chart of an ultrasonic-based device connection method provided in an embodiment of the present application;
[0070] FIG6A is a schematic diagram of a detection signal provided in an embodiment of the present application;
[0071] FIG6B is a schematic diagram of another detection signal provided in an embodiment of the present application;
[0072] FIG7A is a schematic diagram of a method of triggering a first electronic device to send a detection signal by issuing an instruction to the first electronic device according to an embodiment of the present application;
[0073] FIG7B is a schematic diagram of an embodiment of the present application providing a method of triggering a first electronic device to send a detection signal by sending a broadcast message by a second electronic device;
[0074] FIG8 is a schematic diagram of an interaction process between a second electronic device and a first electronic device according to an embodiment of the present application;
[0075] FIG9 is a schematic diagram of a flow chart of interaction between a laptop computer and a conference tablet provided in an embodiment of the present application;
[0076] FIG10 is a schematic diagram of a waveform of an ultrasonic signal carrying connection information provided by an embodiment of the present application;
[0077] FIG11 is a schematic diagram of a decoding result of an ultrasonic signal provided in an embodiment of the present application;
[0078] FIG12 is a schematic diagram of determining the duration of a waveform in an ultrasonic signal based on reverberation time according to an embodiment of the present application;
[0079] FIG13 is a comparative schematic diagram of an ultrasonic signal provided in an embodiment of the present application;
[0080] FIG14 is a schematic diagram of a result of receiving connection information provided in an embodiment of the present application;
[0081] FIG15 is a flow chart illustrating a method of determining a target frequency band in which a laptop computer can correctly decode ultrasonic signals by scanning frequency bands according to an embodiment of the present application;
[0082] FIG16 is a schematic diagram of an audio waveform actually collected during a frequency band search process according to an embodiment of the present application;
[0083] FIG17 is a schematic diagram of a result of transferring an IP address of a target frequency band obtained based on a frequency band search according to an embodiment of the present application;
[0084] FIG18 is a schematic structural diagram of an ultrasonic-based device connection apparatus provided in an embodiment of the present application;
[0085] FIG19 is a schematic structural diagram of an ultrasonic-based device connection apparatus provided in an embodiment of the present application. DETAILED DESCRIPTION
[0086] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of the present application, rather than all the embodiments. Those skilled in the art will appreciate that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0087] The terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, such that the embodiments described herein can be practiced in an order other than that shown or described herein.
[0088] In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules that are not explicitly listed or that are inherent to the process, method, product, or device. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The named or numbered process steps can be executed in a different order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.
[0089] For ease of understanding, the technical terms involved in the embodiments of this application are introduced below.
[0090] (1) Ultrasound
[0091] Ultrasound is a mechanical wave with an extremely short wavelength, typically less than 2 centimeters in air. Ultrasound requires a medium for propagation and cannot exist in a vacuum. Ultrasound travels farther in water than in air, but due to its short wavelength, it is highly susceptible to loss and scattering in air, making it less likely to travel as far as audible sound and infrasound. However, its short wavelength makes it easier for ultrasound to generate anisotropic sound energy, making it useful for cleaning, stone crushing, sterilization, and disinfection.
[0092] The "ultra" in ultrasonic wave comes from the fact that the lower limit of the frequency band of ultrasonic wave exceeds the human hearing. That is, ultrasonic wave generally refers to sound waves with a frequency higher than the upper limit of the average human hearing. In most cases, the ultrasonic wave frequency band used by humans is above 20 kilohertz (kHz). In daily life, ultrasonic wave has a large number of applications, such as distance measurement, object detection and data transmission. Specifically, ultrasonic sensors can detect the presence of an object by measuring the changes in the sound wave echo. In data transmission, ultrasonic wave can be used as a carrier to transmit information wirelessly over a short distance, thus being applied to wireless payment systems, mobile messaging and location-based services. In general, ultrasonic wave is a versatile technology with a large number of applications in modern communication systems and has become an important tool in modern communication technology.
[0093] (2) Frequency response
[0094] Frequency response is often referred to as FRF for short. In electronics, it is used to describe the difference in a device's ability to process signals of different frequencies.
[0095] (3) Reverberation
[0096] Reverberation is an acoustic property that refers to the phenomenon in which multiple sound waves continue to mix for a period of time. Specifically, when sound waves propagate indoors, they are reflected by obstacles such as walls, ceilings, and floors. Each time the sound wave is reflected, it is absorbed by the obstacle. Therefore, after the sound source stops emitting sound, the sound wave undergoes multiple reflections and absorptions in the room before finally disappearing. Therefore, the phenomenon in which several sound waves continue to mix for a period of time after the sound source stops emitting sound (i.e., the phenomenon in which sound persists after the sound source in the room stops emitting sound) is called reverberation, and the period of time during which these multiple sound waves mix is called the reverberation time.
[0097] (4) Screen projection
[0098] Screen casting refers to transferring the content displayed on the display screen of electronic device A to electronic device B via data transmission, and then displaying the content displayed on the display screen of electronic device A on the display screen of electronic device B simultaneously. For example, the content displayed on a mobile device such as a mobile phone, tablet computer, or laptop computer can be transmitted wirelessly or wired to a device with a larger display screen such as a television, projector, or splicing screen, and the content transmitted by the mobile device can be displayed on the television, projector, or splicing screen.
[0099] (5) Modulation
[0100] Modulation is a technique for converting signals generated by a source into a form suitable for wireless transmission. Modulation involves sampling and quantizing the analog signal, then switching the optical carrier wave on and off with a binary digital signal of "1" or "0," and performing pulse coding.
[0101] Specifically, a baseband signal is the original electrical signal, generally referring to the basic signal waveform, and in digital communications, the corresponding electrical pulse. In wireless telemetry and remote control systems and radio technology, modulation uses the baseband signal to control the parameters (amplitude, frequency, and phase) of a high-frequency carrier, causing these parameters to vary with the baseband signal. The baseband signal used to control the high-frequency carrier parameters is called the modulating signal. The unmodulated high-frequency electrical oscillation is called the carrier (which can be a sinusoidal wave or a non-sinusoidal wave, such as a square wave or pulse train).
[0102] (6) Frequency-shift keying (FSK)
[0103] FSK is a modulation method that uses digital signals to control carrier frequency. Its main advantages are ease of implementation and good noise and attenuation resistance, making it widely used in low- and medium-speed data transmission.
[0104] (7) Linear frequency modulation spread spectrum (Long Range, LoRa)
[0105] LoRa is a linear frequency modulation (LFM) spread spectrum modulation technology for the Internet of Things (IoT), also known as wideband frequency modulation (FSK). Compared to traditional FSK technology, LoRa has a longer transmission distance and stronger anti-interference capabilities at the same power consumption.
[0106] (8) Spectrogram
[0107] A spectrogram is a graph of the speech spectrum, typically generated by processing received time-domain signals. Therefore, any time-domain signal of sufficient length will suffice. Simply put, a spectrogram is a spectral analysis view, with time plotted on the horizontal axis and frequency plotted on the vertical axis. The value at each coordinate represents the energy of the speech data. Because it uses a two-dimensional plane to represent three-dimensional information, the energy value is represented by color: darker colors indicate stronger speech energy at that point.
[0108] The applicant's research has found that different terminal devices often have different types of microphones, and the frequency responses of these different microphones often vary significantly, resulting in different frequency responses for different terminal devices. Furthermore, even if the terminal devices have the same type of microphone, their frequency responses may differ significantly due to differences in how the microphones are installed or in the reverberation conditions of the conference rooms in which they are located.
[0109] However, in current related technologies, conference tablets in conference rooms typically continuously transmit ultrasonic waves at a fixed frequency band, thereby transmitting information such as the meeting number to terminal devices waiting to join the meeting. In this case, because different terminal devices have different frequency responses, it is easy for terminal devices with poor frequency response at this fixed frequency band to have difficulty correctly decoding the ultrasonic waves, thus being unable to obtain the meeting number and connect to the conference tablet, ultimately affecting the terminal device's ability to join the meeting.
[0110] In view of this, an embodiment of the present application provides a device connection method based on ultrasound, in which a first electronic device sends multiple ultrasonic signals in different frequency bands, each carrying detection information, and obtains decoding information obtained by decoding each ultrasonic signal fed back by a second electronic device. By comparing the detection information and decoding information corresponding to each ultrasonic signal, the target frequency band in which the second electronic device can correctly decode the ultrasound is determined, and then connection information is sent to the second electronic device via ultrasound in the target frequency band, so that the second electronic device can establish a connection with the first electronic device based on the connection information, thereby ensuring that the second electronic device can subsequently join the meeting or achieve screen projection normally.
[0111] For ease of understanding, the following first introduces the application scenarios of the ultrasonic-based device connection method provided in the embodiments of the present application.
[0112] Please refer to Figure 1, which is a schematic diagram of an application scenario architecture provided by an embodiment of the present application.
[0113] As shown in Figure 1, a connection (e.g., a Wi-Fi connection) needs to be established between electronic device 100 and electronic device 200 so that electronic device 200 can join a meeting held by electronic device 100 or send projection content to electronic device 100. Before electronic device 100 and electronic device 200 establish a connection, electronic device 100 often needs to provide connection information (e.g., a projection code, a meeting number, or the IP address of electronic device 100) to electronic device 200 so that electronic device 200 can establish a connection with electronic device 100 based on the connection information.
[0114] To ensure the transmission security of the connection information and prevent other devices outside the conference room from obtaining the connection information, the electronic device 100 carries the connection information via an ultrasonic signal. The electronic device 200 can obtain the connection information by decoding the ultrasonic signal.
[0115] Furthermore, in order to ensure that the electronic device 200 can correctly decode the connection information sent by the electronic device 100, the electronic device 100 may first send multiple ultrasonic signals in different frequency bands carrying detection information to the electronic device 200. After receiving the multiple ultrasonic signals in different frequency bands, the electronic device 200 decodes each ultrasonic signal to obtain the decoding information corresponding to each ultrasonic signal, and feeds back the decoding information corresponding to each ultrasonic signal to the electronic device 100. In this way, the electronic device 100 can determine the frequency band in which the electronic device 200 can correctly decode the ultrasonic signal by comparing the detection information corresponding to the ultrasonic signal in each frequency band and the decoding information fed back by the electronic device 200. Finally, the electronic device 100 sends the ultrasonic signal carrying the connection information in the frequency band in which the electronic device 200 can correctly decode the ultrasonic signal, so that the electronic device 200 can establish a connection with the electronic device 100 based on the connection information.
[0116] In the application scenario shown in Figure 1, electronic device 100 can be, for example, a conference device such as a conference tablet, smart TV, or splicing screen, and electronic device 200 can be, for example, a terminal device such as a smartphone, laptop, tablet, or personal computer. In some embodiments, electronic device 100 can also be a terminal device such as a smartphone, laptop, tablet, or personal computer, and electronic device 200 can be a device such as a conference tablet, smart TV, splicing screen, smartphone, laptop, tablet, or personal computer.
[0117] In general, the electronic device 100 may be a device responsible for holding a meeting and waiting for other devices to access, while the electronic device 200 is a device that needs to establish a connection with the electronic device 100 to achieve meeting access or screen projection.
[0118] Please refer to Figure 2, which is a schematic diagram of an application scenario architecture provided by an embodiment of the present application. As shown in Figure 2, the electronic device 100 is connected to the electronic device 300 via a wired manner (such as a Universal Serial Bus (USB)). In addition, a connection (such as a Wi-Fi connection) needs to be established between the electronic device 100 and the electronic device 200, so that the electronic device 200 can join a meeting held by the electronic device 300 through the electronic device 100 or send projection content to the electronic device 300 through the electronic device 100. In other words, the electronic device 100 is responsible for forwarding data between the electronic device 200 and the electronic device 300 by establishing a connection with the electronic device 200.
[0119] In the application scenario shown in FIG2 , the manner in which the electronic device 100 and the electronic device 200 establish a connection is similar to the process described in FIG1 , and will not be described in detail here.
[0120] In the application scenario shown in Figure 2, the electronic device 100 can be, for example, a wireless screen transmitter or other device, the electronic device 200 can be, for example, a terminal device such as a smart phone, a laptop, a tablet computer or a personal computer, and the electronic device 300 can be, for example, a conference device such as a conference tablet, a smart TV or a splicing screen.
[0121] Based on the application scenarios shown in Figures 1 and 2 above, the method provided in the embodiments of the present application can be applied to two devices that need to establish a connection, where one device is an ultrasonic transmitter and the other device is an ultrasonic receiver. The ultrasonic transmitter is used to send ultrasonic signals to the ultrasonic receiver and receive decoding information for the ultrasonic signals fed back by the ultrasonic receiver, thereby determining the frequency band in which the ultrasonic receiver can correctly decode the ultrasonic signals. The ultrasonic receiver is used to receive the ultrasonic signals sent by the ultrasonic transmitter and feed back its own decoding information for each ultrasonic signal to the ultrasonic transmitter, so that the ultrasonic transmitter can determine the frequency band that can be correctly decoded.
[0122] The above introduces the application scenarios of the ultrasonic-based device connection method provided in the embodiments of the present application. The following introduces the electronic devices to which the ultrasonic-based device connection method provided in the embodiments of the present application is applied.
[0123] Please refer to Figure 3, which is a schematic diagram of the structure of an electronic device 30 provided in an embodiment of the present application. The electronic device 30 shown in Figure 3 may be the electronic device 100 described above, i.e., the electronic device 30 is a device that transmits ultrasonic signals to carry connection information. As shown in Figure 3, the electronic device 30 includes a processing device 301, a communication device 302, a storage device 303, and an ultrasonic transmitting device 304.
[0124] The communication device 302 may include one or more of a Wi-Fi module, a Bluetooth module, a Zigbee module, an infrared module, a General Packet Radio Service (GPRS) module, a High Definition Multimedia Interface (HDMI) module, or other communication modules of a wireless communication network / wired communication network. The communication device 302 is used to implement data exchange between the electronic device 30 and other devices, such as receiving decoded information sent by other devices.
[0125] In the embodiment of the present application, the communication device 302 may also include a communication device that supports the wireless screen projection function, such as a screen projection connection unit, etc., and the present application does not limit this. In addition, according to actual needs, the above-mentioned communication device 302 may also include interfaces such as USB interfaces, serial / parallel interfaces, etc., for realizing data exchange between components inside the electronic device, which can be determined according to the product type of the electronic device. The present application does not limit the structure contained in the communication device 302 and its communication method, which can be determined according to the actual situation.
[0126] The storage device 303 can be used to store a program for implementing the ultrasonic-based device connection method described in the following method embodiments; the processing device 301 is used to load and execute the program stored in the storage device 303 to implement each step of the ultrasonic-based device connection method.
[0127] In some embodiments, the storage device 303 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device. This application does not describe in detail the respective structures and functions of the storage device 303 and the processing device 301, as they may be determined as appropriate.
[0128] The ultrasonic transmitting device 304 is used to transmit ultrasonic signals carrying detection information or connection information to other devices, so as to determine the frequency band in which other devices can correctly decode the ultrasonic signals or to transmit connection information to other devices.
[0129] Please refer to Figure 4, which is a schematic diagram of the structure of an electronic device 401 provided in an embodiment of the present application. The electronic device 401 shown in Figure 4 can be the electronic device 100 or the electronic device 200 shown in Figure 1 above, or the electronic device 200 or the electronic device 300 shown in Figure 2 above.
[0130] As shown in FIG4 , electronic device 401 includes a processor 403 coupled to a system bus 405 . Processor 403 can be one or more processors, each of which can include one or more processor cores. A display adapter (video adapter) 407 can drive a display 409 , which is coupled to system bus 405 . System bus 405 is coupled to an input / output (I / O) bus via a bus bridge 411 . An I / O interface 415 is coupled to the I / O bus. I / O interface 415 communicates with various I / O devices, such as an input device 417 (e.g., a touch screen), external memory 421 (e.g., a hard drive, floppy disk, optical disk, or USB flash drive), a multimedia interface, a transceiver 423 (capable of sending and / or receiving radio communication signals), a camera 455 (capable of capturing still and moving digital video images), and an external USB port 425 . Optionally, the interface connected to I / O interface 415 can be a USB interface.
[0131] The processor 403 may be any conventional processor, including a reduced instruction set computing (RISC) processor, a complex instruction set computing (CISC) processor, or a combination thereof. Alternatively, the processor may be a dedicated device such as an ASIC.
[0132] The electronic device 401 can communicate with other electronic devices through the network interface 429 to achieve data transmission during the screen projection process.
[0133] The processor 403 can communicate with the memory 435 through the system bus 405 and retrieve instructions and data in the application program from the memory 435 to implement program execution.
[0134] It should be understood that the structures of the electronic devices shown in Figures 3 and 4 do not limit the electronic devices in the embodiments of this application. In actual applications, the electronic device may include more or fewer components than those shown in Figures 3 and 4, or a combination of certain components, such as at least one output device such as a speaker, a vibration mechanism, or a light; at least one input device such as a keyboard, a mouse, or a microphone, etc., which are not listed one by one in the embodiments of this application.
[0135] Please refer to Figure 5, which is a schematic diagram of a process flow of an ultrasonic device connection method provided in an embodiment of the present application. As shown in Figure 5, the process flow of the ultrasonic device connection method includes the following steps 501-506.
[0136] In step 501 , a first electronic device sends a detection signal, where the detection signal includes a plurality of ultrasonic signals with different frequency bands, and each of the plurality of ultrasonic signals carries corresponding detection information.
[0137] In this embodiment, when the first electronic device needs to establish a connection with the second electronic device so that the second electronic device can access a meeting of the first electronic device or realize screen projection, the first electronic device as the ultrasonic signal sending end can first send a detection signal to detect the frequency band in which the second electronic device can correctly decode the ultrasonic signal.
[0138] The detection signal includes multiple ultrasonic signals, each of which is in a different frequency band and carries corresponding detection information. Furthermore, the detection information carried by different ultrasonic signals can be the same or different, and this is not specifically limited here.
[0139] Specifically, the method of carrying detection information through ultrasonic signals can be to first determine the detection information corresponding to each frequency band, and then modulate the detection information to the ultrasonic signal of the corresponding frequency band through modulation technology (such as FSK or LoRa), thereby realizing the corresponding detection information being carried on the ultrasonic signal of each frequency band.
[0140] In addition, there are many ways to implement the detection signal including multiple ultrasonic signals with different frequency bands.
[0141] In one possible implementation, the detection signal is composed of multiple ultrasonic signals arranged sequentially in time. That is, the detection signal can be divided into multiple continuous signal segments in time, and each signal segment in the multiple signal segments is an ultrasonic signal in a respective frequency band.
[0142] For example, please refer to Figure 6A, which is a schematic diagram of a detection signal provided in an embodiment of the present application. As shown in Figure 6A, the detection signal includes an ultrasonic signal 1 with a duration of t1 to t2, an ultrasonic signal 2 with a duration of t2 to t3, and an ultrasonic signal 3 with a duration of t3 to t4. In addition, ultrasonic signal 1 is located in frequency band 1, ultrasonic signal 2 is located in frequency band 2, and ultrasonic signal 3 is located in frequency band 3. That is, ultrasonic signals 1 to 3 are ultrasonic signals located in different frequency bands.
[0143] In another possible implementation, the detection signal is obtained by superimposing multiple ultrasonic signals with different frequency bands. In other words, the detection signal carries multiple ultrasonic signals with different frequency bands simultaneously during the same period of time.
[0144] For example, please refer to Figure 6B, which is a schematic diagram of another detection signal provided in an embodiment of the present application. As shown in Figure 6B, the detection signal includes ultrasonic signal 1, ultrasonic signal 2, and ultrasonic signal 3, each of which has a duration of t1 to t2, that is, the detection signal is obtained by superimposing ultrasonic signal 1, ultrasonic signal 2, and ultrasonic signal 3 in the same period of time. In addition, since ultrasonic signal 1 is located in frequency band 1, ultrasonic signal 2 is located in frequency band 2, and ultrasonic signal 3 is located in frequency band 3, that is, ultrasonic signal 1 to ultrasonic signal 3 are ultrasonic signals located in different frequency bands, the three ultrasonic signals do not interfere with each other, and thus do not affect the decoding of ultrasonic signals of each frequency band by the ultrasonic receiving end.
[0145] It should be noted that the frequency band corresponding to each ultrasonic signal in the detection signal sent by the first electronic device can be determined according to the ultrasonic receiving capability of the device serving as the ultrasonic receiving end. For example, in the case that most electronic devices can currently receive ultrasonic waves with frequencies below 24kHz, and the human ear has difficulty hearing ultrasonic waves with frequencies above 16kHz, the corresponding frequency band in the detection signal sent by the first electronic device can range from 16kHz to 24kHz. For example, the detection signal sent by the first electronic device may include 4 ultrasonic signals, the frequency band corresponding to the first ultrasonic signal is 16kHz to 18kHz, the frequency band corresponding to the second ultrasonic signal is 18kHz to 20kHz, the frequency band corresponding to the third ultrasonic signal is 20kHz to 22kHz, and the frequency band corresponding to the fourth ultrasonic signal is 22kHz to 24kHz.
[0146] Optionally, to ensure that multiple ultrasonic signals with different frequency bands do not crosstalk with each other, the frequency bands corresponding to different ultrasonic signals in the multiple ultrasonic signals sent by the first electronic device do not overlap. That is, the frequency bands corresponding to different ultrasonic signals are independent of each other and do not overlap.
[0147] Step 502: After receiving the detection signal, the second electronic device decodes each ultrasonic signal to obtain decoding information.
[0148] In this embodiment, the second electronic device acts as an ultrasonic signal receiving end and can receive the detection signal from the first electronic device through a sound wave receiving device (e.g., a microphone). Because the detection signal includes multiple ultrasonic signals in different frequency bands, the second electronic device can independently decode the ultrasonic signal in each frequency band in the detection signal, thereby obtaining decoding information corresponding to the ultrasonic signal in each frequency band.
[0149] Optionally, when the detection signal is composed of multiple ultrasonic signals arranged in sequence in time, after receiving the detection signal, the second electronic device can decode the ultrasonic signals in different time periods respectively to obtain the detection information carried by the ultrasonic signals in different frequency bands.
[0150] Optionally, when the detection signal is obtained by superimposing multiple ultrasonic signals with different frequency bands, after receiving the detection signal, the second electronic device can filter the signals in the detection signal located in other frequency bands when decoding the ultrasonic signals of each frequency band respectively, and then decode the ultrasonic signals in the specific frequency band after filtering, thereby obtaining the corresponding detection information in each frequency band.
[0151] Step 503: The second electronic device sends a feedback message to the first electronic device, where the feedback message is used to indicate decoding information obtained by the second electronic device by decoding each ultrasonic signal.
[0152] After decoding and obtaining the decoding information of the ultrasonic signal in each frequency band, the second electronic device sends feedback information to the first electronic device so that the first electronic device can determine whether the decoding information obtained by the second electronic device is correct.
[0153] The feedback information may indicate the corresponding decoding information under each frequency band in sequence according to a preset frequency band order, for example, in sequence from low frequency band to high frequency band or from high frequency band to low frequency band. For example, the feedback information may specifically be: "12, 34, 56", that is, the feedback information indicates that the decoding information under each frequency band obtained by sequential decoding from low frequency band to high frequency band is "12", "34", and "56" respectively. It should be noted that the preset frequency band order may be the frequency band order used by the first electronic device and the second electronic device by default, or it may be the frequency band order determined by the first electronic device and the second electronic device through negotiation. In short, when the first electronic device receives the feedback information, the first electronic device can know the preset frequency band order corresponding to the feedback information, so that the first electronic device can determine the frequency band corresponding to each decoding information indicated in the feedback information.
[0154] Alternatively, the feedback information may include both the frequency band value and the corresponding decoding information. For example, the feedback information may include: "(16kHz-18kHz, 12), (18kHz-20kHz, 34), (20kHz-22kHz, 56)", meaning that the feedback information indicates that the decoding information for the frequency band 16kHz-18kHz is "12", the decoding information for the frequency band 18kHz-20kHz is "34", and the decoding information for the frequency band 20kHz-22kHz is "56".
[0155] Optionally, to ensure that the first electronic device can successfully receive the feedback message, the second electronic device may send the feedback message to the first electronic device via a communication method other than ultrasound. For example, the second electronic device may send the feedback message to the first electronic device via Bluetooth, Zigbee, or infrared communication methods, which are not specifically limited in this embodiment.
[0156] In step 504 , the first electronic device compares the detection information and the decoding information corresponding to each ultrasonic signal to determine a target frequency band that can be correctly decoded by the second electronic device.
[0157] Because the second electronic device provides the first electronic device with the decoded information obtained by decoding the ultrasonic signal in each frequency band in the feedback message, the first electronic device can compare the detection information corresponding to the ultrasonic signal in each frequency band with the decoded information to determine the target frequency band in which the second electronic device can correctly decode the ultrasonic signal. In other words, the detection information corresponding to the target frequency band is the same as the decoded information corresponding to the target frequency band sent by the second electronic device.
[0158] The target frequency band may include one or more frequency bands, and the one or more frequency bands included in the target frequency band all belong to the frequency bands corresponding to the multiple ultrasonic signals sent by the first electronic device in step 501.
[0159] For example, suppose that the detection information 1 carried by the first electronic device in the ultrasonic signal of frequency band 1 is "12", the detection information 2 carried in the ultrasonic signal of frequency band 2 is "34", and the detection information 3 carried in the ultrasonic signal of frequency band 3 is "56", and the decoding information obtained by decoding the ultrasonic signals of frequency bands 1 to 3 fed back by the second electronic device is "12", "34", and "23" respectively. Therefore, the first electronic device can determine that the second electronic device can correctly decode the ultrasonic signals in frequency bands 1 and 2, but cannot correctly decode the ultrasonic signals in frequency band 3.
[0160] Step 505: The first electronic device sends a target ultrasonic signal. The frequency band corresponding to the target ultrasonic signal includes the target frequency band. The target ultrasonic signal carries connection information. The connection information is used for the second electronic device to establish a connection with the first electronic device.
[0161] After determining that the second electronic device can correctly decode the ultrasonic signal in the target frequency band, the first electronic device modulates the connection information onto the ultrasonic signal in the target frequency band to obtain the target ultrasonic signal carrying the connection information, and sends the target ultrasonic signal.
[0162] Optionally, when the first electronic device determines that the second electronic device can correctly decode multiple frequency bands by comparing the detection information and the decoding information, the first electronic device can carry the connection information based on the second electronic device being able to correctly decode multiple frequency bands.
[0163] For example, the target frequency band corresponding to the target ultrasonic signal may include multiple sub-frequency bands, and each sub-frequency band within the target frequency band is a frequency band within which the second electronic device can correctly decode the ultrasonic signal. The target ultrasonic signal is obtained by superimposing multiple ultrasonic signals in different sub-frequency bands, and the ultrasonic signal in each sub-frequency band carries a portion of the connection information.
[0164] For example, assuming that the target frequency band includes multiple sub-bands: 16kHz~18kHz, 18kHz~20kHz, 20kHz~22kHz, and the connection information is 123456789, then in the target ultrasonic signal, the information content carried by the ultrasonic signal located in the sub-band 16kHz~18kHz can be "123", the information content carried by the ultrasonic signal located in the sub-band 18kHz~20kHz can be "456", and the information content carried by the ultrasonic signal located in the sub-band 20kHz~22kHz can be "789".
[0165] In this solution, the target ultrasonic signal is obtained by superimposing ultrasonic signals in multiple sub-bands, and the ultrasonic signal in each sub-band carries a part of the content of the connection information, which can increase the transmission rate of the connection information exponentially and effectively shorten the transmission time of the connection information.
[0166] In this embodiment, the connection information sent by the first electronic device may be information for establishing a connection between the second electronic device and the first electronic device. For example, the connection information may include one or more of a screen projection code, a pairing key, a conference number, or the IP address of the first electronic device. This embodiment does not specifically limit the specific content of the connection information.
[0167] Step 506: Based on the connection information, the second electronic device establishes a connection with the first electronic device.
[0168] After receiving the target ultrasonic signal sent by the first electronic device, the second electronic device decodes the target ultrasonic signal to obtain connection information, and establishes a connection with the first electronic device based on the connection information.
[0169] Optionally, when the second electronic device establishes a connection with the first electronic device, the connection established between the second electronic device and the first electronic device can be used to achieve screen projection or conference access. For example, after the second electronic device establishes a connection with the first electronic device, the screen projection content is sent to the first electronic device so that the first electronic device can display the screen projection content sent by the second electronic device; or, after the second electronic device establishes a connection with the first electronic device, it can join a meeting held or joined by the first electronic device so that the second electronic device can share the content in the meeting.
[0170] The connection established between the second electronic device and the first electronic device may be, for example, a Wi-Fi connection or a fifth generation mobile communication technology (5G) connection, which is not specifically limited in this embodiment. For example, when the connection information is a pairing key, the second electronic device may send the pairing key to the first electronic device via a 5G wireless signal; after the first electronic device confirms that the pairing key is correct, the first electronic device establishes a 5G connection with the second electronic device, thereby enabling the first electronic device and the second electronic device to exchange data based on the 5G wireless signal.
[0171] The above describes how the first electronic device sends a detection signal to determine the target frequency band in which the second electronic device can correctly decode the ultrasonic signal, and then sends connection information based on the target frequency band. The following describes how to trigger the first electronic device to send the detection signal.
[0172] It is understood that since the detection signal sent by the first electronic device is an ultrasonic signal close to or slightly above the upper limit of human hearing, in order to avoid interference with the human ear caused by the first electronic device continuously sending the detection signal, the first electronic device can be triggered to send the detection signal in a certain manner. There are various ways to trigger the first electronic device to send the detection signal, as described below.
[0173] In a possible implementation, a user sends an instruction to the first electronic device, thereby triggering the first electronic device to send a detection signal.
[0174] Specifically, when a user needs to hold a meeting through a first electronic device or receive screen projection content sent by other devices, the user often expects the first electronic device to first establish a connection with the other electronic device in order to facilitate meeting access or screen projection. Therefore, in this case, the user can send instructions to the first electronic device through a remote control or by clicking a relevant button on the display screen of the first electronic device, so that the first electronic device actively sends a detection signal to facilitate the first electronic device to establish a connection with the other electronic device.
[0175] For example, please refer to Figure 7A, which is a schematic diagram of an embodiment of the present application of sending a detection signal by issuing an instruction to a first electronic device. As shown in (a) in Figure 7A, when the first electronic device is a conference tablet, the first electronic device will display buttons such as "whiteboard writing", "meeting convening", and "device screen projection" on the display screen when it is on standby, and the user can click the relevant button on the display screen of the first electronic device to trigger the first electronic device to perform the corresponding operation. After the user clicks the "device screen projection" button, the first electronic device begins to actively send a detection signal to establish a connection with other devices, and then receive the screen projection content sent by other devices. At the same time, as shown in (b) in Figure 7A, during the process of the first electronic device establishing a connection with other devices, text content such as "Broadcasting screen projection code, waiting for screen projection..." will be displayed on the screen of the first electronic device until the other devices establish a connection with the first electronic device through the above steps 501 to 506.
[0176] In another possible implementation, the user sends an instruction to the second electronic device to trigger the second electronic device to send a broadcast message, thereby triggering the first electronic device to send a detection signal based on the broadcast message.
[0177] For example, before step 501, the second electronic device may obtain a first instruction for instructing the second electronic device to establish a connection with the first electronic device. The first instruction may be issued to the second electronic device by a user clicking a button on the second electronic device with a mouse or finger, for example, the user clicks a "join conference tablet meeting" button displayed on the second electronic device to issue the first instruction.
[0178] In response to the first instruction, the second electronic device sends a broadcast message, wherein the broadcast message is used to instruct the first electronic device to send an ultrasonic signal. The broadcast message sent by the second electronic device can be sent via Bluetooth, Bigbee, infrared, or other communication methods, which are not specifically limited here.
[0179] In this way, after the first electronic device receives the broadcast message, the first electronic device triggers the sending of the above-mentioned detection signal.
[0180] For example, please refer to Figure 7B, which is a schematic diagram of an embodiment of the present application in which a second electronic device sends a broadcast message to trigger a first electronic device to send a detection signal. As shown in (a) in Figure 7B, the user clicks the "Access the conference on the conference tablet" button on the display interface of the second electronic device, thereby triggering the second electronic device to send a broadcast message instructing the first electronic device to send a detection signal. As shown in (b) in Figure 7B, while the second electronic device is sending the broadcast message via Bluetooth, the text content "Conference accessing..." is displayed on the display interface of the second electronic device to prompt the user that the second electronic device is accessing the meeting. As shown in (c) in Figure 7B, after the first electronic device receives the broadcast message, the first electronic device sends a detection signal, that is, carries the detection information through ultrasonic signals of multiple frequency bands to determine the frequency band in which the second electronic device can correctly decode the ultrasonic signal.
[0181] In this solution, by having the second electronic device send a broadcast message to trigger the first electronic device to send a detection signal, the first electronic device can be prevented from continuously sending the detection signal, effectively avoiding interference to the human ear caused by the first electronic device sending ultrasonic signals for a long time, and reducing the energy consumption of the first electronic device.
[0182] That is to say, the interaction process between the second electronic device and the first electronic device before establishing a connection includes four steps. Please refer to Figure 8, which is a schematic diagram of the interaction process between a second electronic device and a first electronic device provided in an embodiment of the present application. As shown in Figure 8, in the first step, the second electronic device sends a broadcast message via Bluetooth, and carries the device information of the second electronic device in the broadcast message; in the second step, after receiving the broadcast message, the first electronic device sends ultrasonic signals of multiple frequency bands, and carries detection information through ultrasonic signals of multiple frequency bands; in the third step, the second electronic device can send the decoding information of the ultrasonic signal of the second electronic device for each frequency band to the first electronic device via Bluetooth; in the fourth step, after the first electronic device determines that the second electronic device can correctly decode the target frequency band of the ultrasonic signal, it carries the connection information through the ultrasonic signal of the target frequency band, thereby enabling the second electronic device to establish a connection with the first electronic device based on the connection information.
[0183] Optionally, the broadcast message sent by the second electronic device may include device information of the second electronic device. The device information of the second electronic device may include a device model or a unique device identifier of the second electronic device. After the first electronic device determines that the second electronic device can correctly decode the target frequency band of the ultrasonic signal, the first electronic device may store a mapping relationship between the device information of the second electronic device and the target frequency band.
[0184] In this way, the next time the second electronic device connects to the first electronic device, the second electronic device sends a broadcast message carrying its own device information to the first electronic device. The first electronic device can then determine the target frequency band in which the second electronic device can correctly decode the ultrasonic signal based on the stored mapping relationship, thereby directly sending the connection information through the ultrasonic signal on the target frequency band, thereby omitting the process of sending a detection signal to determine the frequency band.
[0185] In general, in this solution, the second electronic device sends device information in a broadcast message, and the first electronic device records the mapping relationship between the device information of the second electronic device and the target frequency band in which the second electronic device can correctly decode the ultrasonic signal. This allows the first electronic device to quickly send an ultrasonic signal on the target frequency band when the second electronic device is connected again, without having to detect the frequency band in which the second electronic device can correctly decode the ultrasonic signal, thereby improving the efficiency of establishing a connection between the first electronic device and the second electronic device.
[0186] Optionally, if the first electronic device has recorded the mapping relationship between the device information of the second electronic device and the target frequency band, the first electronic device also sends the mapping relationship to the server. In this way, the server can synchronize the mapping relationship with other electronic devices, so that when the second electronic device establishes a connection with other electronic devices, the other electronic devices can also quickly determine the frequency band in which the second electronic device can correctly decode the ultrasonic signal.
[0187] For example, after receiving the mapping relationship, the server can send the mapping relationship to the third electronic device. In this way, when the second electronic device sends a broadcast message to the third electronic device in the hope of connecting to the third electronic device, the third electronic device can determine the target frequency band corresponding to the second electronic device based on the mapping relationship sent by the server, and then carry the connection information on the ultrasonic signal of the target frequency band, so that the second electronic device can quickly connect to the third electronic device.
[0188] In general, by having the first electronic device send the mapping relationship between the device information of the second electronic device and the target frequency band to the server, it is possible to synchronize the frequency band in which the second electronic device can correctly decode the ultrasonic signal among multiple devices, thereby improving the efficiency of establishing connection between the second electronic device and each electronic device.
[0189] It should be noted that the reverberation conditions in different conference room environments can vary significantly due to differences in room size and the objects placed within. For example, some conference rooms have shorter reverberation times, while others have longer ones. Furthermore, the reverberation time of the environment in which electronic devices are located has a certain impact on their ability to decode ultrasonic signals. This can result in electronic devices being able to correctly decode ultrasonic signals within specific frequency bands in most environments, but potentially being unable to do so in certain environments (e.g., those with longer reverberation times).
[0190] Based on this, in some possible embodiments, the first electronic device can send the reverberation time of the environment in which the first electronic device is located while sending the mapping relationship to the server. That is, the server can obtain the reverberation time and the mapping relationship at the same time, thereby obtaining the reverberation time of the environment in which the mapping relationship between the device information of the second electronic device and the target frequency band is established. In this way, when the server sends the mapping relationship to other electronic devices (for example, the third electronic device mentioned above), it can also send the reverberation time at the same time. Only when the reverberation time of the environment in which the other electronic devices are located is the same as or close to the reverberation time sent by the server, the other electronic devices will consider the mapping relationship sent by the server to be valid.
[0191] Furthermore, in conference room environments with long reverberation times (e.g., over 800 milliseconds), the ultrasonic signal's spectrum will have significant tailing, which can seriously interfere with the device's ability to recognize the information carried in the ultrasonic signal. Specifically, the reverberation effect (producing frequency tailing) causes the waveform at one moment in the ultrasonic signal to alias with the waveform at the next moment, interfering with demodulation.
[0192] Based on this, in some embodiments, this embodiment proposes that the first electronic device determines the duration of each waveform in the ultrasonic signal based on the reverberation time.
[0193] For example, since ultrasonic signals carry information by representing corresponding characters through different waveforms, before the first electronic device transmits the detection signal, it can obtain the reverberation time of the environment in which it is located and, based on the reverberation time, determine the duration of the waveform in the detection signal used to represent each character in the detection information. In other words, the duration of the waveform in the detection signal used to represent each character in the detection information is related to the reverberation time of the environment in which the first electronic device is located.
[0194] Specifically, the longer the reverberation time of the environment in which the first electronic device is located, the longer the duration of the waveform used to represent each character in the target ultrasonic signal; the shorter the reverberation time of the environment in which the first electronic device is located, the shorter the duration of the waveform used to represent each character in the target ultrasonic signal.
[0195] In addition, when the first electronic device transmits the target ultrasonic wave, the duration of the waveform in the target ultrasonic wave used to represent each character in the connection information may also be determined based on the reverberation time of the environment in which the first electronic device is located.
[0196] In general, this solution determines the duration of the waveform representing each character in the ultrasonic signal based on the reverberation time of the environment in which the first electronic device is located. It can extend the duration of the wavelength in the reverberation time environment, thereby reducing the interference of reverberation in the environment and ensuring that the second electronic device can decode the ultrasonic signal normally.
[0197] In step 501, the multiple frequency bands corresponding to the multiple ultrasonic signals in the detection signal sent by the first electronic device are fixed. In some cases, the second electronic device cannot correctly decode the ultrasonic signals in the multiple frequency bands corresponding to the detection signal sent by the first electronic device. Therefore, this embodiment provides a method for adaptively scanning the frequency bands that the second electronic device can adapt to, and then sending connection information based on the frequency bands that the second electronic device can adapt to.
[0198] Specifically, when the detection information in the detection signal is different from the decoding information sent by the second electronic device, it means that the second electronic device cannot correctly decode the ultrasonic signals in multiple frequency bands corresponding to the detection signal. Therefore, the first electronic device sequentially sends ultrasonic signals carrying detection information and gradually changing frequency bands, and receives decoding information for the ultrasonic signals with gradually changing frequency bands sent by the second electronic device until the decoding information sent by the second electronic device is the same as the detection information in the corresponding ultrasonic signal.
[0199] That is, the first electronic device gradually adjusts (e.g., lowers or increases) the frequency band of the ultrasonic signal it transmits, starting from a certain frequency band, and receives decoding information fed back by the second electronic device after each ultrasonic signal is transmitted to determine whether the second electronic device can correctly decode the current frequency band. The first electronic device continuously adjusts the frequency band of the ultrasonic signal and obtains decoding information fed back by the second electronic device to determine the frequency band at which the second electronic device can correctly decode the ultrasonic signal.
[0200] For example, assuming that the frequency bands of the multiple ultrasonic signals included in the detection signal initially sent by the first electronic device are 16kHz-18kHz, 18kHz-20kHz, 20kHz-22kHz, and 22kHz-24kHz, respectively, and the decoding information fed back by the second electronic device for the above multiple frequency bands is different from the detection information. Then, the first electronic device can start from the frequency band of 16kHz-18kHz and increase the frequency band of the ultrasonic signal by 1kHz each time. For example, the first electronic device sends an ultrasonic signal with a frequency band of 16kHz-18kHz, the second time it sends an ultrasonic signal with a frequency band of 17kHz-19kHz, and the third time it sends an ultrasonic signal with a frequency band of 18kHz-20kHz, until it can determine the frequency band in which the second electronic device can correctly decode the ultrasonic signal.
[0201] In this solution, by gradually adjusting the frequency band of the ultrasonic signal sent by the first electronic device, a comprehensive search can be conducted for the frequency band in which the second electronic device can correctly decode the ultrasonic signal, thereby ensuring that the second electronic device can correctly decode and obtain the connection information.
[0202] The above describes the ultrasonic device connection method provided in the embodiment of the present application. The following will describe in detail the execution process of the ultrasonic device connection method with reference to specific examples. Specifically, in this embodiment, a conference tablet is used as the first electronic device and a laptop is used as the second electronic device to describe the specific process of establishing a Wi-Fi connection between the conference tablet and the laptop so that the laptop can access a conference on the conference tablet.
[0203] Please refer to Figure 9, which is a flow chart of the interaction between a laptop and a conference tablet provided by an embodiment of the present application. As shown in Figure 9, the process of the laptop interacting with the conference tablet to obtain connection information includes the following steps 901 to 9010.
[0204] In step 901, the laptop computer sends a broadcast message to the conference tablet to broadcast the device information of the laptop computer.
[0205] In this embodiment, the laptop sends a broadcast message to the conference tablet, triggering the tablet to send connection information to the laptop via ultrasonic signals. The laptop can send the broadcast message to the conference tablet via Bluetooth. The broadcast message also includes the laptop's device information, such as the model (e.g., Huawei MateBook 14) or the laptop's unique device identifier.
[0206] Step 902: After receiving the broadcast message, the conference tablet determines whether the laptop is a known device.
[0207] Simply put, if the conference tablet has previously established a connection with the laptop computer via ultrasonic signals, the conference tablet will store a mapping relationship between the laptop computer's device information and the frequency band in which the laptop computer can correctly decode ultrasonic signals. Therefore, the conference tablet can determine whether the laptop computer is a known device (i.e., a device that has been determined to be able to correctly decode the frequency band of ultrasonic signals) by checking whether the saved mapping relationship includes the laptop computer's device information. If the mapping relationship saved by the conference tablet includes the laptop computer's device information, the laptop computer is determined to be a known device; if the mapping relationship saved by the conference tablet does not include the laptop computer's device information, the laptop computer is determined to be an unknown device.
[0208] In step 903 , if the laptop is a known device, the conference tablet sends an ultrasonic signal carrying connection information in a saved frequency band to the laptop.
[0209] If the laptop is a known device, the conference tablet saves a mapping relationship including the device information of the laptop, so the conference tablet can obtain the frequency band in the mapping relationship (that is, the saved frequency band) and modulate the connection information to the ultrasonic signal under the frequency band in the mapping relationship, thereby sending an ultrasonic signal carrying the connection information under the saved frequency band to the laptop.
[0210] In step 904 , if the laptop computer is not a known device, the conference tablet sends ultrasonic signals carrying detection information in multiple frequency bands to the laptop computer.
[0211] The ultrasonic signals carrying detection information in multiple frequency bands may be, for example, the detection signals in step 501. The multiple frequency bands may be, for example, 18-20 kHz, 20-22 kHz, and 22-24 kHz.
[0212] Step 905: After receiving ultrasonic signals in multiple frequency bands, the laptop computer decodes the ultrasonic signals in each frequency band to obtain multiple decoding information.
[0213] Each piece of the plurality of decoding information corresponds to a frequency band.
[0214] Step 906: The laptop computer sends multiple decoding information to the conference tablet.
[0215] Specifically, the laptop computer may send multiple decoding information to the conference tablet via Bluetooth broadcasting.
[0216] In step 907 , the conference tablet compares the detection information and decoding information corresponding to each frequency band, thereby determining the target frequency band in which the laptop computer can correctly decode the ultrasonic signal.
[0217] In step 908 , the conference tablet saves the mapping relationship between the target frequency band and the device information of the laptop computer.
[0218] Furthermore, the conference tablet can also upload the mapping relationship between the target frequency band and the device information of the laptop to the server.
[0219] In step 909 , the conference tablet sends an ultrasonic signal carrying connection information in a target frequency band to the laptop computer.
[0220] The connection information can be, for example, a projection code, a conference number, or the IP address of the conference tablet. For example, if the connection information is a nine-digit conference number and the target frequency bands are 18-20 kHz, 20-22 kHz, and 22-24 kHz, the conference tablet can carry the three digits in the ultrasonic signals of the three frequency bands respectively, and generate the ultrasonic signal carrying the connection information by superimposing the ultrasonic signals of the three frequency bands.
[0221] For example, please refer to Figure 10, which is a schematic diagram of the waveform of an ultrasonic signal carrying connection information provided in an embodiment of the present application. As shown in Figure 10, the ultrasonic signal carrying connection information includes three ultrasonic signals in the frequency bands of 18-20 kHz, 20-22 kHz, and 22-24 kHz, respectively. The ultrasonic signals in the three different frequency bands each carry a portion of the connection information.
[0222] In step 9010, the laptop computer establishes a Wi-Fi connection with the conference tablet based on the connection information.
[0223] After obtaining the connection information, the laptop can establish a Wi-Fi connection with the conference tablet based on the connection information. The steps for establishing a Wi-Fi connection between the laptop and the conference tablet based on the connection information can refer to existing related technologies, which will not be described in detail in this embodiment.
[0224] In this embodiment, actual measurements have verified that in a 6*8 meter conference room, when the speaker of the conference tablet is pointed at the ground and the volume is adjusted to the maximum to play ultrasonic waves, the human ear cannot hear any noise caused by the ultrasonic waves. At the same time, as shown in Figure 11, Figure 11 is a schematic diagram of the decoding results of an ultrasonic signal provided by an embodiment of the present application. When a 32-bit Internet Protocol Version 6 (IPv6) address is transmitted via three frequency bands, the decoding accuracy of the laptop computer is 100%.
[0225] Optionally, since the reverberation in the conference room may affect the normal decoding of ultrasonic signals by the laptop computer, the conference tablet can first determine whether it is necessary to adjust the duration of the waveform in the ultrasonic signal based on the reverberation time of the environment before sending the ultrasonic signal to the laptop computer to avoid the impact of environmental reverberation.
[0226] Please refer to Figure 12, which is a schematic diagram of determining the duration of a waveform in an ultrasonic signal based on reverberation time according to an embodiment of the present application. As shown in Figure 12, the above step 904 also includes the following steps 9041-9044.
[0227] In step 9041, the conference tablet measures the reverberation time of the environment.
[0228] Specifically, conference tablets can measure reverberation time based on existing algorithms. Reverberation time measurement involves a signal generator driving a speaker through an amplifier to emit and record sound. When the indoor sound field reaches a steady state, the sound is cut off and the decay process is recorded. This yields a decay curve and reverberation time measurement results.
[0229] In step 9042, the conference tablet determines whether the reverberation time of the environment is greater than a preset threshold.
[0230] The preset threshold may be, for example, 800 milliseconds or other thresholds, which are not specifically limited here.
[0231] Step 9043: If the reverberation time of the environment is not greater than the preset threshold, an ultrasonic signal is sent based on preset parameters.
[0232] The preset parameter may be a pre-set parameter for specifying the duration of the waveform used to represent each character in the ultrasonic signal, for example, the duration of the waveform used to represent each character in the ultrasonic signal is 2048 / 48000 seconds.
[0233] Step 9044: If the reverberation time of the environment is greater than a preset threshold, the duration of the waveform in the ultrasonic signal is extended before sending the ultrasonic signal.
[0234] For example, the duration of the waveform representing each character in the ultrasonic signal can be extended to 1.5 or 2 times the preset parameter. This reduces the impact of reverberation tail effects in environments with long reverberation times, ensuring that the laptop can correctly decode the ultrasonic signal.
[0235] For example, please refer to Figures 13 and 14. Figure 13 is a comparative schematic diagram of an ultrasonic signal provided in an embodiment of the present application; Figure 14 is a schematic diagram of a reception result of connection information provided in an embodiment of the present application. As shown in Figure 13, before the duration of the waveform used to represent each character in the ultrasonic signal is extended, the ultrasonic signal collected by the laptop computer is a signal with a spectrum tailing phenomenon due to reverberation, which makes it difficult for the laptop computer to recognize the connection information carried in the ultrasonic signal. After the duration of the waveform used to represent each character in the ultrasonic signal is extended, the ultrasonic signal collected by the laptop computer no longer has a spectrum tailing phenomenon, so the laptop computer can correctly decode the ultrasonic signal and obtain the connection information carried in the ultrasonic signal.
[0236] As shown in FIG14 , when the connection information carried by the ultrasonic signal is an IPv6 address, after extending the duration of the waveform used to represent each character in the ultrasonic signal, the IPv6 address takes 3.7 seconds to be transmitted, and the laptop computer can correctly receive the 128-bit IPv6 address.
[0237] Furthermore, in the embodiment shown in Figure 9 above, the conference tablet transmits ultrasonic signals carrying detection information in multiple fixed frequency bands to the laptop. In some extreme environments, the laptop may not be able to correctly decode the ultrasonic signals in these multiple fixed frequency bands. Therefore, this embodiment also allows for a fine-grained search for frequency bands in which the laptop can correctly decode the ultrasonic signals by scanning the frequency bands one by one.
[0238] Please refer to Figure 15, which is a flowchart of a method for determining a target frequency band in which a laptop computer can correctly decode ultrasonic signals by scanning frequency bands according to an embodiment of the present application. As shown in Figure 15, the above-mentioned step 907 also includes the following steps 9071 to 9076.
[0239] In step 9071 , the conference tablet determines whether the laptop computer is unable to correctly decode ultrasonic signals in multiple preset frequency bands.
[0240] Specifically, the conference tablet can determine whether the laptop computer can correctly decode the ultrasonic signals in each frequency band by comparing the decoding information returned by the laptop computer with the detection information actually carried by the ultrasonic signals in each frequency band.
[0241] In step 9072, when the laptop computer cannot correctly decode ultrasonic signals in multiple preset frequency bands, the conference tablet sets an initial frequency band in the frequency band search process.
[0242] The initial frequency band set by the conference tablet may be the first frequency band to be searched during the frequency band search process, for example, 22 kHz to 24 kHz.
[0243] In step 9073 , the conference tablet sends an ultrasonic signal in a set frequency band to the laptop computer, and the ultrasonic signal carries detection information.
[0244] In the process of performing the frequency band search for the first time, the set frequency band is the initial frequency band pre-set in the above step 9072.
[0245] In step 9074 , the conference tablet determines whether the laptop computer can correctly decode the ultrasonic signal in the set frequency band based on the decoding information fed back by the laptop computer.
[0246] After receiving the ultrasonic signal at the set frequency band sent by the conference tablet, the laptop decodes the signal to obtain a decoded signal and feeds the decoded information back to the conference tablet. The conference tablet then compares the decoded information returned by the laptop with the detection information actually carried by the ultrasonic signal to determine whether the laptop can correctly decode the ultrasonic signal at the set frequency band.
[0247] Step 9075 , when the notebook cannot correctly decode the ultrasonic signal in the set frequency band, the conference tablet reduces the frequency of the set frequency band by 1 kHz and proceeds to execute step 9073 .
[0248] For example, when the set frequency band is 22 kHz to 24 kHz, the frequency band of 21 kHz to 23 kHz is obtained by lowering the frequency of the set frequency band by 1 kHz.
[0249] Step 9076: When the notebook computer can correctly decode the ultrasonic signal in the set frequency band, the conference tablet determines that the current set frequency band is the target frequency band.
[0250] If the laptop can correctly decode the ultrasonic signal in the set frequency band, the conference tablet can determine that the current set frequency band is the target frequency band, and then send connection information to the laptop based on the ultrasonic signal in the target frequency band.
[0251] For example, please refer to Figure 16, which is a schematic diagram of an audio waveform actually collected during a frequency band search process provided by an embodiment of the present application. As shown in Figure 16, during the frequency band search process, the conference tablet sends an ultrasonic signal to the laptop computer through a speaker, and the laptop computer receives the audio signal through a microphone, that is, the ultrasonic signal sent by the conference tablet. The waveform shown in the upper figure in Figure 16 is the waveform of the audio signal received by the laptop computer through the microphone; the lower figure in Figure 16 is the audio spectrogram corresponding to the audio signal received by the laptop computer, which is used to represent the distribution of audio in the frequency domain. In the audio spectrogram, there is an encoded spectral line from 18kHz to 20kHz, which is the encoded audio information (i.e., detection information).
[0252] Please refer to Figure 17, which is a schematic diagram of the results of transmitting an IP address in a target frequency band obtained based on a frequency band search according to an embodiment of the present application. As shown in Figure 17, when the target frequency band is 18kHz to 20kHz as shown in Figure 16, it takes 1.85 seconds for the IPv6 address to be transmitted, and the laptop can correctly receive the 128-bit IPv6 address.
[0253] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of method. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0254] The embodiment of the present application can divide the functional modules of the electronic device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0255] The following is a detailed description of the apparatus and device used to execute the above method in the embodiments of the present application.
[0256] Please refer to Figure 18, which is a structural diagram of an ultrasonic device connection device provided in an embodiment of the present application. As shown in Figure 18, the ultrasonic device connection device can be deployed on a first electronic device, and the ultrasonic device connection device includes: a sending module 1801, which is used to send a detection signal, the detection signal includes multiple ultrasonic signals, the multiple ultrasonic signals correspond to multiple different frequency bands one by one, and each ultrasonic signal in the multiple ultrasonic signals carries corresponding detection information; a receiving module 1802, which is used to receive a feedback message sent by a second electronic device, the feedback message is used to indicate the decoding information obtained by the second electronic device by decoding each ultrasonic signal; a processing module 1803, which is used to determine a target frequency band from multiple different frequency bands, the detection information corresponding to the target frequency band is the same as the decoding information corresponding to the target frequency band; the sending module 1801 is also used to send a target ultrasonic signal, the frequency band corresponding to the target ultrasonic signal includes the target frequency band, the detection information corresponding to the target frequency band is the same as the decoding information corresponding to the target frequency band, the target ultrasonic signal carries connection information, and the connection information is used to establish a connection between the second electronic device and the first electronic device.
[0257] In a possible implementation, the detection signal is obtained by superimposing multiple ultrasonic signals with different frequency bands.
[0258] In a possible implementation, the target frequency band includes multiple sub-frequency bands, the target ultrasonic signal is obtained by superimposing multiple ultrasonic signals in different sub-frequency bands, and the ultrasonic signal in each sub-frequency band carries a portion of the connection information.
[0259] In a possible implementation, before the sending module 1801 sends the detection signal, the receiving module 1802 is further configured to receive a broadcast message, where the broadcast message is used to instruct the first electronic device to send an ultrasonic signal.
[0260] In a possible implementation, the broadcast message includes device information of the second electronic device; the ultrasonic device connection apparatus further includes a processing module 1803 configured to store a mapping relationship between the device information of the second electronic device and the target frequency band.
[0261] In a possible implementation, the sending module 1801 is further configured to send the mapping relationship to the server.
[0262] In a possible implementation, the processing module 1803 is configured to obtain a reverberation time of the environment, and determine a duration of a waveform in the detection signal used to represent each character in the detection information based on the reverberation time.
[0263] In one possible implementation, when the detection information in the detection signal is different from the decoding information sent by the second electronic device, the sending module 1801 is also used to sequentially send ultrasonic signals carrying the detection information and with gradually changing frequency bands, and the receiving module 1802 is also used to receive the decoding information of the ultrasonic signals with gradually changing frequency bands sent by the second electronic device, until the decoding information sent by the second electronic device is the same as the detection information in the corresponding ultrasonic signal.
[0264] In one possible implementation, the connection established between the second electronic device and the first electronic device is used to implement screen projection or conference access.
[0265] In a possible implementation, frequency bands corresponding to different ultrasonic signals in the multiple ultrasonic signals do not overlap.
[0266] In one possible implementation, the connection information includes a projection code, a conference number, or an IP address of the first electronic device.
[0267] Please refer to Figure 19, which is a schematic diagram of the structure of an ultrasonic device connection device provided in an embodiment of the present application. As shown in Figure 19, the ultrasonic device connection device can be deployed on a second electronic device, and the ultrasonic device connection device includes: a receiving module 1901, which is used to receive a detection signal sent by a first electronic device, the detection signal including multiple ultrasonic signals, the multiple ultrasonic signals corresponding to multiple different frequency bands, and each of the multiple ultrasonic signals carries corresponding detection information; a sending module 1902, which is used to send a feedback message to the first electronic device, the feedback message is used to indicate the decoding information obtained by the second electronic device by decoding each ultrasonic signal; the receiving module 1901 is also used to receive a target ultrasonic signal sent by the first electronic device, the frequency band corresponding to the target ultrasonic signal includes a target frequency band, the target frequency band is determined from multiple different frequency bands, and the detection information corresponding to the target frequency band is the same as the decoding information corresponding to the target frequency band, and the target ultrasonic signal carries connection information; the sending module 1902 is also used to establish a connection between the second electronic device and the first electronic device based on the connection information.
[0268] In a possible implementation, the detection signal is obtained by superimposing multiple ultrasonic signals with different frequency bands.
[0269] In one possible implementation, the target frequency band includes multiple sub-bands, and the target ultrasonic signal is obtained by superimposing multiple ultrasonic signals in different sub-bands. The ultrasonic signal in each sub-band carries a portion of the connection information. The ultrasonic device connection apparatus further includes a processing module 1903 for combining decoded information obtained from decoding the ultrasonic signals in each sub-band to obtain the connection information.
[0270] In one possible implementation, the ultrasonic-based device connection apparatus also includes an acquisition module 1904; before the receiving module 1901 receives the detection signal sent by the first electronic device, the acquisition module 1904 is also used to obtain a first instruction, and the first instruction is used to instruct the second electronic device to establish a connection with the first electronic device; the sending module 1902 is also used to send a broadcast message in response to the first instruction, and the broadcast message is used to instruct the first electronic device to send an ultrasonic signal.
[0271] In a possible implementation, the broadcast message includes device information of the second electronic device.
[0272] In a possible implementation, the duration of the waveform in the detection signal used to represent each character in the detection information is related to the reverberation time of the environment in which the first electronic device is located.
[0273] In one possible implementation, when the detection information in the detection signal is different from the decoding information sent by the second electronic device, the receiving module 1901 is also used to sequentially receive the ultrasonic signal carrying the detection information and with a gradually changing frequency band sent by the first electronic device, and the sending module 1902 is also used to sequentially send the decoding information for the ultrasonic signal with a gradually changing frequency band to the first electronic device until the decoding information sent by the second electronic device is the same as the detection information in the corresponding ultrasonic signal.
[0274] In one possible implementation, the connection established between the second electronic device and the first electronic device is used to implement screen projection or conference access.
[0275] In a possible implementation, frequency bands corresponding to different ultrasonic signals in the multiple ultrasonic signals do not overlap.
[0276] In one possible implementation, the connection information includes a projection code, a conference number, or an IP address of the first electronic device.
[0277] It should be noted that the information interaction, execution process, etc. between the modules and / or components in the above device are based on the same concept as the method embodiments corresponding to Figures 5 to 17 in this application. For specific contents, please refer to the description in the method embodiments shown above in this application, and will not be repeated here.
[0278] It should be noted that for the specific implementation of the device and the beneficial effects brought about, reference can be made to the descriptions in the corresponding method embodiments of Figures 5 to 17, and no further details will be given here.
[0279] The present application also provides an electronic device comprising: a processor and a memory; the memory storing computer instructions, which, when executed by the processor, cause the electronic device to perform any of the aforementioned methods. The electronic device may include the ultrasonic device connection device described in the embodiment corresponding to FIG. 18 or FIG. 19 .
[0280] An embodiment of the present application also provides a conference system, including an ultrasonic-based device connection device as in the embodiment corresponding to FIG18 and an ultrasonic-based device connection device as in the embodiment corresponding to FIG19 .
[0281] An embodiment of the present application also provides a computer-readable storage medium, including instructions, which, when executed on a computer, enables the computer to control an electronic device to execute any one of the implementation methods shown in the aforementioned method embodiments.
[0282] An embodiment of the present application also provides a computer program product, which includes computer program code. When the computer program code runs on a computer, it enables the computer to execute any one of the implementation methods shown in the aforementioned method embodiments.
[0283] An embodiment of the present application also provides a chip system, including a memory and a processor, the memory is used to store computer programs, and the processor is used to call and run computer programs from the memory, so that the chip executes any one of the implementation methods shown in the aforementioned method embodiments.
[0284] It should also be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided in this application, the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.
[0285] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general-purpose hardware, and of course can also be implemented by dedicated hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc. In general, all functions performed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits, or dedicated circuits. However, for the present application, software program implementation is a better implementation method in most cases. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer's floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., and includes a number of instructions for enabling a computer device to execute the methods described in each embodiment of the present application.
[0286] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0287] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, a computer, a communication device, a computing device or a data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode to another website, computer, communication device, computing device or data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a communication device, a data center that includes one or more available media integrations. The available medium can be a magnetic medium, (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state drive (SSD)).
[0288] It should be understood that “one embodiment” or “an embodiment” mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, “in one embodiment” or “in an embodiment” appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0289] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
Claims
1. A device connection method based on ultrasound, characterized in that: include: The first electronic device sends a detection signal, where the detection signal includes a plurality of ultrasonic signals, where the plurality of ultrasonic signals correspond to a plurality of different frequency bands one by one, and each of the plurality of ultrasonic signals carries corresponding detection information; The first electronic device receives a feedback message sent by the second electronic device, where the feedback message is used to indicate decoding information obtained by the second electronic device by decoding each ultrasonic signal; The first electronic device determines a target frequency band from the multiple different frequency bands, and the detection information corresponding to the target frequency band is the same as the decoding information corresponding to the target frequency band; The first electronic device sends a target ultrasonic signal, the frequency band corresponding to the target ultrasonic signal includes the target frequency band, the target ultrasonic signal carries connection information, and the connection information is used for the second electronic device to establish a connection with the first electronic device.
2. The method according to claim 1, characterized in that The detection signal is obtained by superimposing the plurality of ultrasonic signals having different frequency bands.
3. The method according to claim 1 or 2, characterized in that: The target frequency band includes multiple sub-frequency bands, the target ultrasonic signal is obtained by superimposing multiple ultrasonic signals in different sub-frequency bands, and the ultrasonic signal in each sub-frequency band carries a part of the connection information.
4. The method according to any one of claims 1 to 3, characterized in that: Before the first electronic device sends the detection signal, the method further includes: The first electronic device receives a broadcast message, where the broadcast message is used to instruct the first electronic device to send an ultrasonic signal.
5. The method according to claim 4, characterized in that The broadcast message includes device information of the second electronic device; The method further comprises: The first electronic device stores a mapping relationship between the device information of the second electronic device and the target frequency band.
6. The method according to claim 5, characterized in that The method further comprises: The first electronic device sends the mapping relationship to a server.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: The first electronic device obtains the reverberation time of the environment in which it is located, and determines the duration of the waveform in the detection signal used to represent each character in the detection information based on the reverberation time.
8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: When the detection information in the detection signal is different from the decoding information sent by the second electronic device, the first electronic device sequentially sends an ultrasonic signal carrying the detection information and with a gradually changing frequency band, and receives decoding information for the ultrasonic signal with a gradually changing frequency band sent by the second electronic device, until the decoding information sent by the second electronic device is the same as the detection information in the corresponding ultrasonic signal.
9. The method according to any one of claims 1 to 8, characterized in that: The connection established between the second electronic device and the first electronic device is used to achieve screen projection or conference access.
10. The method according to any one of claims 1 to 9, characterized in that: The frequency bands corresponding to different ultrasonic signals in the multiple ultrasonic signals do not overlap.
11. The method according to any one of claims 1 to 10, characterized in that: The connection information includes a screen projection code, a pairing key, a conference number, or an Internet Protocol IP address of the first electronic device.
12. An ultrasonic device connection device, characterized in that: The device is deployed on a first electronic device, and includes: A sending module, used for sending a detection signal, wherein the detection signal includes a plurality of ultrasonic signals, the plurality of ultrasonic signals correspond one to one to a plurality of different frequency bands, and each of the plurality of ultrasonic signals carries corresponding detection information; A receiving module, used to receive a feedback message sent by a second electronic device, where the feedback message is used to indicate decoding information obtained by the second electronic device by decoding each ultrasonic signal; A processing module, configured to determine a target frequency band from the multiple different frequency bands, wherein the detection information corresponding to the target frequency band is the same as the decoding information corresponding to the target frequency band; The sending module is further used to send a target ultrasonic signal, the frequency band corresponding to the target ultrasonic signal includes the target frequency band, the target ultrasonic signal carries connection information, and the connection information is used to establish a connection between the second electronic device and the first electronic device.
13. The device according to claim 12, characterized in that The detection signal is obtained by superimposing the plurality of ultrasonic signals having different frequency bands.
14. The device according to claim 12 or 13, characterized in that The target frequency band includes multiple sub-frequency bands, the target ultrasonic signal is obtained by superimposing multiple ultrasonic signals in different sub-frequency bands, and the ultrasonic signal in each sub-frequency band carries a part of the connection information.
15. The device according to any one of claims 12 to 14, characterized in that: Before the sending module sends the detection signal, the receiving module is further used to receive a broadcast message, where the broadcast message is used to instruct the first electronic device to send an ultrasonic signal.
16. The device according to claim 15, characterized in that The broadcast message includes device information of the second electronic device; The apparatus further includes a processing module configured to store a mapping relationship between the device information of the second electronic device and the target frequency band.
17. The device according to any one of claims 12 to 16, characterized in that: The device further comprises a processing module, which is used to obtain the reverberation time of the environment and determine the duration of the waveform in the detection signal used to represent each character in the detection information based on the reverberation time.
18. An electronic device, characterized in that: The electronic device comprises a memory and a processor; the memory stores codes, the processor is configured to execute the codes, and when the codes are executed, the electronic device executes the method according to any one of claims 1 to 11.
19. A computer storage medium, characterized in that: The computer storage medium stores instructions, which, when executed by a computer, cause the computer to implement the method of any one of claims 1 to 11.
20. A computer program product, characterized in that The computer program product stores instructions, which, when executed by a computer, cause the computer to implement the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Equipment connection method based on ultrasonic waves and related device
CN118842536A
Establishment method of wireless communication connection and terminal equipment
CN105472768A
Multi-terminal connection method, device and system for ultrasonic frequency division identification
CN111510430A
Communication connection method and device
CN113037394A
Systems and Methods for Initiating Conferences Using External Devices
US20150264314A1
