Wireless pairing method, communication system, and computer readable storage medium
By using the characteristics of ultrasonic signal propagation between wireless devices, automatic pairing connections in a single space are realized, which solves the problem of tedious pairing process of wireless devices and improves pairing efficiency and user experience.
Patent Information
- Application Number
- PCT/CN2024/082517
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-31
- Filing Date
- 2024-03-19
- Publication Date
- 2024-10-03
AI Technical Summary
The existing wireless device pairing process is cumbersome and requires multiple operations for confirmation by the user, resulting in poor user experience. How to achieve automatic pairing and connection of wireless devices.
The first communication device sends a broadcast data packet, the second communication device receives and sends an ultrasonic signal carrying identification information, and the first communication device sends a broadcast data packet containing identification information and address information after receiving it, realizing automatic pairing in a single space. connect.
It improves the efficiency of wireless pairing, avoids incorrect pairing, improves user experience, and ensures that the pairing process is carried out accurately in a single space.
Smart Images

Figure CN2024082517_03102024_PF_FP_ABST
Abstract
Description
Wireless pairing method, communication system, and computer-readable storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application No. 2023103410492, filed on March 31, 2023, entitled “Wireless Pairing Method, Communication System and Computer-Readable Storage Medium,” the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present application relates to the field of communication technology, and in particular to a wireless pairing method, a communication system, and a computer-readable storage medium. Background Art
[0004] With the advent of the mobile Internet era, wireless devices are being used more and more widely. In daily applications, different wireless devices are connected wirelessly via technologies such as Bluetooth to enable data exchange between them.
[0005] However, in existing technologies, wireless pairing between devices requires user confirmation before a pairing request can be initiated. This wireless pairing method is cumbersome and requires multiple user confirmations, resulting in a poor user experience. Therefore, achieving automatic pairing of wireless devices and simplifying user operations is a pressing technical issue.
[0006] Summary of the Invention
[0007] The main technical problem solved by this application is how to achieve automatic pairing and connection of wireless devices.
[0008] In order to solve the above technical problems, this application provides a first technical solution:
[0009] A wireless pairing method is provided, which is applied to a communication system, wherein the communication system includes at least one first communication device and a second communication device. The wireless pairing method includes: the first communication device sends a first broadcast data packet in response to an operation instruction; the second communication device receives the first broadcast data packet and sends an ultrasonic signal, wherein the ultrasonic signal carries identification information corresponding to the second communication device in a one-to-one manner; the first communication device receives the ultrasonic signal and sends a second broadcast data packet, wherein the second broadcast data packet includes the identification information and address information of the first communication device; the second communication device receives the second broadcast data packet and, in response to the second broadcast data packet including the identification information, pairs and connects with the corresponding first communication device according to the address information.
[0010] Among them, the second communication device receives the first broadcast data packet and sends an ultrasonic signal to the outside, and the ultrasonic signal carries identification information corresponding to the second communication device one by one, including: the second communication device receives the first broadcast data packet, generates the ultrasonic signal according to the preset frequency band information and the corresponding identification information; the second communication device sends the ultrasonic signal to the outside so that the first communication device receives the ultrasonic signal.
[0011] Among them, the steps of the second communication device receiving the first broadcast data packet and generating the ultrasonic signal according to the preset frequency band information and the corresponding identification information include: the second communication device receives the first broadcast data packet, encodes the identification information to obtain the ultrasonic frequency corresponding to the identification information; the second communication device generates the ultrasonic signal according to the ultrasonic frequency and the preset frequency band information.
[0012] Among them, the step of the second communication device generating the ultrasonic signal according to the ultrasonic frequency and the preset frequency band information includes: the second communication device obtains the ultrasonic waveform corresponding to the ultrasonic frequency; the second communication device obtains the first position and the second position of the ultrasonic waveform, the first position is the initial position of the ultrasonic waveform, and the second position is the end position of the ultrasonic waveform; the second communication device adjusts the waveform of the first position and the second position according to the linear attenuation coefficient; the second communication device generates the ultrasonic signal according to the adjusted ultrasonic waveform and the preset frequency band information.
[0013] In which, the second communication device adjusts the waveforms of the first position and the second position according to the linear attenuation coefficient, including: the second communication device adjusts the waveform of the first position according to the linear attenuation coefficient so that the waveform of the first position shows a slowly climbing trend; the second communication device adjusts the waveform of the second position according to the linear attenuation coefficient so that the waveform of the second position shows a slowly descending trend.
[0014] The linear attenuation coefficient is the ratio of the amplitude to the frequency of the ultrasonic signal.
[0015] The ultrasonic signal includes a first ultrasonic signal and / or a second ultrasonic signal, and a frequency band of the first ultrasonic signal does not overlap with a frequency band of the second ultrasonic signal.
[0016] The first ultrasonic signal includes a plurality of first preset frequencies, each of which corresponds to the identification information; and / or the second ultrasonic signal includes a plurality of second preset frequencies, each of which corresponds to the identification information.
[0017] Wherein, the frequencies of the first ultrasonic signal and the second ultrasonic signal are greater than 18500 Hz.
[0018] The frequency band of the first ultrasonic signal is within the range of 18875 Hz to 20000 Hz, and the frequency band of the second ultrasonic signal is within the range of 20375 Hz to 21500 Hz.
[0019] The intervals between the plurality of first preset frequency points are integer multiples of the resolution of the first communication device, and the intervals between the plurality of second preset frequency points are integer multiples of the resolution of the second communication device.
[0020] In which, the communication system includes multiple first communication devices and multiple second communication devices. After the first communication device responds to the operation instruction and sends a first broadcast data packet to the outside, the wireless pairing method also includes: the first communication device receives ultrasonic signals returned by multiple second communication devices, and confirms the connection object based on the received ultrasonic information.
[0021] To solve the above problems, the present application provides a second technical solution: a communication system is provided, comprising a processor and a memory connected to the processor, wherein program data is stored in the memory, and the processor calls the program data stored in the memory to execute the wireless pairing method as described above.
[0022] To solve the above problem, the present application provides a third technical solution: providing a computer-readable storage medium storing program instructions, wherein the program instructions are executed to implement the wireless pairing method as described above.
[0023] The beneficial effect of the present application is that, unlike the prior art, the second communication device sends an ultrasonic signal carrying identification information when receiving the first broadcast data packet of the first communication device. Due to the limited penetration performance of ultrasound, the ultrasonic signal of the second communication device only propagates within a single space, so that the first communication device can send a second broadcast data packet to the outside based on the received ultrasonic signal, so that the second communication device can be paired and connected with the first communication device, thereby realizing automatic pairing of the first communication device and the second communication device within a single space, improving wireless pairing efficiency, avoiding incorrect pairing, and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0025] FIG1 is a schematic flow chart of an embodiment of a wireless pairing method provided by the present application;
[0026] FIG2 is a flow chart of another embodiment of the wireless pairing method provided by the present application;
[0027] FIG3 is a flow chart of another embodiment of the wireless pairing method provided by the present application;
[0028] FIG4 is a schematic diagram of an embodiment of an ultrasonic waveform provided by the present application;
[0029] FIG5 is a schematic structural diagram of an embodiment of a communication system provided by the present application;
[0030] FIG6 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided in the present application. DETAILED DESCRIPTION
[0031] The present application will be further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only intended to illustrate the present application and are not intended to limit the scope of the present application. Similarly, the following examples are only some examples of the present application and not all examples. All other examples obtained by those of ordinary skill in the art without creative work are intended to fall within the scope of protection of this application.
[0032] References to "embodiments" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0033] In the description of this application, it is necessary to clarify that, unless otherwise specified or limited, the terms "installed," "installed," "connected," and "connected" should be understood in a broad sense. For example, they can mean fixed connection, detachable connection, or integral connection; mechanical connection or electrical connection; direct connection or connection through an intermediate medium. A person of ordinary skill in the art will be able to understand the specific meanings of the above terms in this application in specific circumstances.
[0034] Please refer to Figure 1, which is a flow chart of an embodiment of a wireless pairing method provided by the present application. As shown in Figure 1, in this embodiment, the wireless pairing method is applied to a communication system, the communication system including at least one first communication device and at least one second communication device, and the wireless pairing method includes the following steps:
[0035] Step S11: The first communication device sends a first broadcast data packet in response to the operation instruction.
[0036] The first communication device and the second communication device are the slave device and the master device for establishing a wireless connection. The second communication device is the device that initiates the wireless connection, and the first communication device is the device that receives the wireless connection. For example, when the wireless connection mode is Bluetooth connection, the second communication device is the master device that initiates the Bluetooth connection, and the first communication device is the slave device that receives the Bluetooth connection. It can be understood that there can be multiple first communication devices in the communication system. For example, in an office scenario, there are multiple first communication devices that can connect to Bluetooth in a local area. For example, the master device in the office can be connected to slave devices such as wireless microphones, wireless cameras, wireless headphones, wireless keyboards, and wireless speakers.
[0037] Specifically, the first communication device transmits a first broadcast data packet in response to an operation instruction, which may be an operation instruction issued by a user on the first communication device. For example, the operation instruction may be an action instruction such as a single click or double click issued by the user to the first communication device; or the operation instruction may be a function activation instruction of the first communication device, for example, the first communication device transmits the first broadcast data packet in response to Bluetooth being enabled; or the operation instruction may be a voice instruction issued by the user to the first communication device, whereby the first communication device transmits the first broadcast data packet upon recognizing a preset voice message; the operation instruction is not specifically limited herein.
[0038] Step S12: The second communication device receives the first broadcast data packet and sends an ultrasonic signal to the outside. The ultrasonic signal carries identification information corresponding to the second communication device.
[0039] It is understood that the second communication device scans for external broadcast data packets at a preset time interval. During the same preset time interval, the second communication device may scan first broadcast data packets sent by multiple first communication devices. Upon receiving the first broadcast data packet, the second communication device transmits an ultrasonic signal. The ultrasonic signal carries preset identification information that corresponds one-to-one with the second communication device.
[0040] The communication system may include multiple second communication devices, and the identification information may be the identification number of a primary device defined by the second communication device within a local area space. The local area space may be a physical space or a local area network space used by the communication system. For example, in an office scenario, a company may have multiple second communication devices connected to the same local area network. The identification number of each second communication device may be obtained based on information such as the local area network address of the second communication device to locate the second communication device within the local area network space.
[0041] Step S13: The first communication device receives the ultrasonic signal and sends a second broadcast data packet to the outside. The second broadcast data packet includes identification information and address information of the first communication device.
[0042] After receiving the ultrasonic signal from the second communication device, the first communication device decodes the ultrasonic signal to obtain identification information carried in the ultrasonic signal. The first communication device generates a second broadcast data packet based on the decoded identification information and the address information of the first communication device, and then transmits the second broadcast data packet. The address information uniquely corresponds to the first communication device, enabling the second communication device to connect to the first communication device based on the address information.
[0043] Since ultrasound is a mechanical wave and has a high frequency, its propagation distance is short and its penetration ability is poor. Therefore, it can only propagate within a single space and will be reflected when encountering an obstacle. Therefore, the ultrasonic signal sent by the second communication device can only propagate within a single space. The first communication device located in the same space as the second communication device receives the ultrasonic signal and sends a second broadcast data packet to the outside, so that the pairing range of the wireless pairing method of this embodiment is limited to a single space, reducing pairing errors and improving the accuracy of automatic pairing. For example, in an office meeting scenario, the first communication device in the first office receives the ultrasonic signal from the second communication device, indicating that the first communication device and the second communication device are located in the same space, and there will be no error pairing problem of automatic pairing between the master device in the first office and the slave device in the second office.
[0044] Step S14: the second communication device receives the second broadcast data packet, and in response to the second broadcast data packet including identification information, pairs and connects with the corresponding first communication device according to the address information.
[0045] When the second communication device receives the second broadcast data packet, it recognizes that the second broadcast data packet includes identification information, and pairs and connects with the corresponding first communication device according to the address information.
[0046] In an embodiment of the present application, when the second communication device receives the first broadcast data packet of the first communication device, it sends an ultrasonic signal carrying identification information. Due to the limited penetration performance of ultrasound, the ultrasonic signal of the second communication device only propagates within a single space, so that the first communication device can send a second broadcast data packet to the outside based on the received ultrasonic signal, so that the second communication device can be paired and connected with the first communication device, thereby realizing automatic pairing of the first communication device and the second communication device within a single space, improving wireless pairing efficiency, avoiding incorrect pairing, and improving user experience.
[0047] Optionally, step S12 includes the following steps: the second communication device receives the first broadcast data packet and generates an ultrasonic signal according to the preset frequency band information and the corresponding identification information; the second communication device sends the ultrasonic signal outward so that the first communication device receives the ultrasonic signal.
[0048] Specifically, the second communication device generates an ultrasonic signal in response to the first broadcast data packet based on the preset frequency band information and the identification information of the second communication device. The identification information of the second communication device may be an identification code of the second communication device, and the preset frequency band information may be ultrasonic frequency band information set according to a preset coding rule. For example, an ultrasonic frequency band may be pre-selected, and multiple frequency points may be selected within the frequency band. The frequency points are then associated with the preset identification code, so that the identification code of the second communication device is represented by the preset frequency band information, thereby causing the ultrasonic signal to carry the identification information of the second communication device.
[0049] After the second communication device generates an ultrasonic signal, it transmits it. Due to the characteristics of ultrasound, the ultrasonic signal propagates only within the space where the second communication device is located. For example, within multiple service spaces, the ultrasonic signal propagates only within the space where the second communication device is located. After the first communication device in the same space receives the ultrasonic signal and returns a second broadcast data packet, the second communication device pairs with the first communication device based on the second broadcast data packet. Therefore, the user does not need to manually select the first communication device to connect on the second communication device, and the second communication device will not issue a pairing request to the first communication device in other service spaces, improving the accuracy of wireless pairing.
[0050] Alternatively, refer to Figure 2, which is a flow chart of another embodiment of the wireless pairing method provided by the present application. As shown in Figure 2, in this embodiment, step S12 includes the following steps:
[0051] Step S21: The second communication device receives the first broadcast data packet and encodes the identification information to obtain an ultrasonic frequency corresponding to the identification information.
[0052] After receiving the first broadcast data packet, the second communication device encodes the data packet according to the identification information preset by the second communication device to obtain an ultrasonic frequency corresponding to the identification information. Specifically, the ultrasonic signal may include multiple frequency bands. Within a preset frequency band, several frequency points can be selected and each frequency point can be associated with the identification information, thereby identifying the second communication device based on the frequency data at that frequency point.
[0053] For example, in an optional embodiment, within the first preset frequency band, 10 frequency points are selected to represent the 10 digits 0 to 9, wherein the 10 selected frequency points may be phase-continuous frequency points or phase-discontinuous frequency points. For example, the selected frequency points may be as follows:
[0054] CH1=[18875,19000,19125,19250,19375,19500,19625,19750,19875,20000];
[0055] Here, CH1 represents the first preset frequency band, and the frequency unit of the frequency point is Hz.
[0056] After the second communication device receives the first broadcast data packet, based on the identification information being 5, the second communication device obtains an ultrasonic frequency corresponding to the identification information as 19500 Hz.
[0057] In another optional embodiment, within the first preset frequency band, 10 frequency points are selected to represent the 10 digits 0 to 9; and within the second preset frequency band, 10 frequency points are also selected to represent the 10 digits 0 to 9. For example, the selected frequency points may be as follows:
[0058] CH1=[18875,19000,19125,19250,19375,19500,19625,19750,19875,20000];
[0059] CH2=[20375,20500,20625,20750,20875,21000,21125,21250,21375,21500];
[0060] Wherein, CH1 represents the first preset frequency band, CH2 represents the second preset frequency band, and the frequency unit is Hz. It is understood that the above frequency selection range is for example only, and the interval between the selected frequency points is related to the resolution of the first communication device or the second communication device. For example, the frequency interval can be an integer multiple of the resolution of the first communication device receiving the Bluetooth connection. The frequency interval is not specifically limited here.
[0061] After the second communication device receives the first broadcast data packet, based on the identification information being 10, the second communication device obtains ultrasonic frequencies corresponding to the identification information as CH1 = 19000 Hz and CH2 = 20500 Hz.
[0062] Step S22: The second communication device generates an ultrasonic signal according to the ultrasonic frequency and the preset frequency band information.
[0063] The second communication device generates a corresponding ultrasonic signal according to the acquired ultrasonic frequency and preset frequency band information.
[0064] Step S23: The second communication device sends an ultrasonic signal to the outside, so that the first communication device receives the ultrasonic signal.
[0065] The second communication device sends an ultrasonic signal outward. Due to the characteristics of ultrasound, the ultrasonic signal only propagates within the space where the second communication device is located, thereby realizing automatic pairing of the first communication device and the second communication device. At the same time, the second communication device will not send a pairing request to the first communication device in other service spaces, thereby improving the accuracy of wireless pairing and enhancing the user experience.
[0066] Furthermore, since the frequency of the ultrasonic signal is relatively high, when the second communication device sends the ultrasonic signal, when the speaker in the business space where the second communication device is located starts and stops sending, due to the sudden change of the sound, the sent ultrasonic signal will cause low-frequency noise to be generated, affecting the user experience.
[0067] Please refer to Figures 3-4. Figure 3 is a flow chart of another embodiment of the wireless pairing method provided by the present application, and Figure 4 is a schematic diagram of an embodiment of the ultrasonic waveform provided by the present application. As shown in Figure 3, step S22 also includes the following steps:
[0068] Step S31: The second communication device obtains an ultrasonic waveform corresponding to the ultrasonic frequency.
[0069] After acquiring the ultrasonic frequency, the second communication device further acquires the ultrasonic waveform corresponding to the ultrasonic frequency, as shown in FIG4 . The ultrasonic waveform is a waveform formed according to the ultrasonic frequency, and the waveform can be represented by amplitude.
[0070] Step S32: The second communication device obtains a first position and a second position of the ultrasonic waveform, where the first position is an initial position of the ultrasonic waveform and the second position is an end position of the ultrasonic waveform.
[0071] After the second communication device obtains the ultrasonic waveform, it obtains the first position and the second position of the ultrasonic waveform. The first position is the initial position or starting position of the ultrasonic waveform, and the second position is the ending position of the ultrasonic waveform. It can be understood that the first position is the position formed by the preset time interval from the start of sending the ultrasonic waveform, and the second position is the position formed by the ultrasonic waveform at the end of the preset time interval. For example, the first position can be the waveform position formed from 0-80ms in the ultrasonic waveform, and the second position can be the waveform position formed from 620-700ms.
[0072] Step S33: The second communication device adjusts the waveforms at the first position and the second position according to the linear attenuation coefficient.
[0073] After obtaining the first and second positions of the ultrasonic waveform, the second communication device adjusts the waveforms at the first and second positions based on the linear attenuation coefficient. Specifically, the second communication device adjusts the waveform at the first position based on the linear attenuation coefficient so that the waveform at the first position exhibits a slowly rising trend, and adjusts the waveform at the second position based on the linear attenuation coefficient so that the waveform at the second position exhibits a slowly falling trend.
[0074] In an optional embodiment, the waveform adjustment formula is as follows:
[0075] y = kx;
[0076] Where y is the amplitude of the ultrasonic signal, x is the frequency of the ultrasonic signal, and k is the linear attenuation coefficient. A smaller absolute value of the linear attenuation coefficient k, i.e., a smaller slope, results in a smaller amplitude and less noise in the adjusted waveform. However, a slope that is too low can result in a single-frame waveform that is too long. Therefore, the actual value of the linear attenuation coefficient k needs to be selected based on the symbol length of the actual application and is not specifically limited here.
[0077] Step S34: the second communication device generates an ultrasonic signal according to the adjusted ultrasonic waveform and the preset frequency band information.
[0078] After adjusting the waveforms at the first and second positions, the second communication device generates a corresponding ultrasonic signal based on the adjusted ultrasonic waveform and the preset frequency band information. Because the initial and end positions of the ultrasonic waveform are adjusted using a linear attenuation coefficient, the second communication device can achieve a gradual entry and exit of the ultrasonic signal when transmitting and broadcasting the ultrasonic signal, thereby achieving a seamless broadcast of the ultrasonic signal, reducing noise generated by the ultrasonic signal, and improving the user experience.
[0079] Optionally, the ultrasonic signal includes a first ultrasonic signal and / or a second ultrasonic signal, and a frequency band of the first ultrasonic signal does not overlap with a frequency band of the second ultrasonic signal.
[0080] Specifically, the first ultrasonic signal is an ultrasonic signal in a first preset frequency band, and the second ultrasonic signal is an ultrasonic signal in a second preset frequency band. The frequency band of the first ultrasonic signal and the frequency band of the second ultrasonic signal do not overlap. For example, the frequency band of the first ultrasonic signal is between [18875, 20000], and the frequency band of the second ultrasonic signal is between [20375, 21500]. The frequency bands of the first ultrasonic signal and the second ultrasonic signal are intertwined so that the second communication device corresponds the identification information to the first ultrasonic signal and / or the second ultrasonic signal.
[0081] The first ultrasonic signal includes a plurality of first preset frequencies, each of which corresponds to identification information; and / or the second ultrasonic signal includes a plurality of second preset frequencies, each of which corresponds to identification information.
[0082] Specifically, the first preset frequency point and / or the second preset frequency point can be a phase-continuous frequency point or a phase-discontinuous frequency point. For example, when the frequency band of the first ultrasonic signal is between [18875, 20000], the first preset frequency point can be 10 frequency points between [18875, 20000]; when the frequency band of the second ultrasonic signal is between [20375, 21500], the second preset frequency point can be 10 frequency points between [20375, 21500]. In one embodiment, the 10 frequency points of the first ultrasonic signal or the second ultrasonic signal respectively correspond to the identification information of 10 second communication devices, so that the second communication device obtains the corresponding ultrasonic frequency through the identification information. In another embodiment, the 10 frequency points of the first ultrasonic signal and the 10 frequency points of the second ultrasonic signal correspond to the identification information of the second communication device, so that the number of identifiable second communication devices reaches 100.
[0083] It can be understood that when the number of second communication devices in the communication system is small, for example, when the number of second communication devices is less than 20, the second communication device can be identified by the first ultrasonic signal or the second ultrasonic signal to reduce the computing power of the communication system and improve the efficiency of wireless pairing; when the number of second communication devices in the communication system is large, for example, when the number of second communication devices is greater than or equal to 20, the second communication device can be identified by the first ultrasonic signal and the second ultrasonic signal to achieve automatic pairing between communication devices.
[0084] The frequencies of the first ultrasonic signal and the second ultrasonic signal are greater than 18500 Hz.
[0085] Specifically, the frequencies of the first ultrasonic signal and the second ultrasonic signal are greater than 18500 Hz, so that the frequency range of the first ultrasonic signal and the second ultrasonic signal is within a range that is difficult for the human body to perceive, further reducing the noise when the second communication device sends the ultrasonic signal and improving the user experience.
[0086] Among them, the frequency band of the first ultrasonic signal is in the range of 18875Hz~20000Hz, and the frequency band of the second ultrasonic signal is in the range of 20375Hz~21500Hz. The second communication device matches the identification information with the ultrasonic information through the first preset frequency point and the second preset frequency point.
[0087] Optionally, multiple first communication devices and multiple second communication devices may exist in the same space of the communication system. After the first communication device initiates a first broadcast data packet, it will receive ultrasonic signals returned by multiple second communication devices. At this time, the first communication device needs to confirm the connection object based on the received ultrasonic information. For example, in an office scene, second communication devices A, B, and C are set up in the same conference room. After the first communication device initiates a first broadcast data packet, second communication devices A, B, and C receive the first broadcast data packet and send corresponding ultrasonic signals to the outside. The first communication device determines whether the second communication device corresponds to the ultrasonic signal based on the received ultrasonic signal to determine the second communication device to be connected.
[0088] Different from the existing technology, through the wireless pairing method of this embodiment, the second communication device sends an ultrasonic signal carrying identification information when receiving the first broadcast data packet from the first communication device. Due to the limited penetration performance of ultrasound, the ultrasonic signal of the second communication device only propagates within a single space, so that the first communication device can send a second broadcast data packet to the outside based on the received ultrasonic signal, so that the second communication device can be paired with the first communication device, realizing automatic pairing of the first communication device and the second communication device in a single space, improving the efficiency of wireless pairing, and avoiding incorrect pairing; the ultrasonic signal of the second communication device is processed through a linear attenuation coefficient to reduce the broadcast noise of the ultrasonic signal, realize the imperceptible broadcast of the ultrasonic signal, and improve the user experience.
[0089] Please refer to Figure 5, which is a schematic diagram of the structure of an embodiment of the communication system provided by this application. As shown in Figure 5, the communication system 100 includes a processor 101 and a memory 102 connected to the processor 101, wherein the memory 102 stores program data, and the processor 101 calls the program data stored in the memory 102 to execute the above-mentioned wireless pairing method.
[0090] Optionally, in one embodiment, the processor 101 is used to execute program data to implement the following method: the first communication device sends a first broadcast data packet to the outside in response to an operation instruction; the second communication device receives the first broadcast data packet and sends an ultrasonic signal to the outside, and the ultrasonic signal carries identification information corresponding one-to-one to the second communication device; the first communication device receives the ultrasonic signal and sends a second broadcast data packet to the outside, and the second broadcast data packet includes identification information and address information of the first communication device; the second communication device receives the second broadcast data packet, and in response to the second broadcast data packet including identification information, pairs and connects with the corresponding first communication device according to the address information.
[0091] The processor 101 may also be referred to as a CPU (Central Processing Unit). The processor 101 may be an electronic chip having signal processing capabilities. The processor 101 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The general-purpose processor may be a microprocessor or any conventional processor.
[0092] The memory 102 can be a memory stick, a TF card, etc., and can store all the information in the communication system 100, including the input raw data, computer programs, intermediate operation results and final operation results, which are all stored in the memory 102. It stores and retrieves information according to the location specified by the processor 101. With the memory 102, the communication system 100 has a memory function and can ensure normal operation. The memory 102 of the communication system 100 can be divided into main memory (internal memory) and auxiliary memory (external memory) according to its purpose, and can also be classified into external memory and internal memory. External memory is usually a magnetic medium or an optical disk, etc., which can store information for a long time. Memory refers to the storage component on the motherboard, which is used to store the data and programs currently being executed, but is only used to temporarily store programs and data. If the power is turned off or the power is cut off, the data will be lost.
[0093] Please refer to Figure 6, which is a schematic diagram of the structure of an embodiment of a computer-readable storage medium provided by the present application. As shown in Figure 6, the computer-readable storage medium 110 stores program instructions 111 that can implement all the above methods.
[0094] If the integrated units of the functional units in the various embodiments of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium 110. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer-readable storage medium 110 includes a number of instructions in a program instruction 111 to enable a computer device (which can be a personal computer, a system server, or a network device, etc.), an electronic device (such as MP3, MP4, etc., or a mobile terminal such as a mobile phone, a tablet computer, a wearable device, or a desktop computer, etc.) or a processor to execute all or part of the steps of the methods of the various embodiments of the present application.
[0095] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-readable storage media 110 (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0096] The present application is described in terms of the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by a computer-readable storage medium 110. These computer-readable storage media 110 can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the program instructions 111 executed by the processor of the computer or other programmable data processing device produce a device for implementing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.
[0097] These computer-readable storage media 110 may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the program instructions 111 stored in the computer-readable storage medium 110 produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0098] These computer-readable storage media 110 can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the program instructions 111 executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0099] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present application belong.
[0100] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device, or apparatus (which can be a personal computer, server, network device, or other system that can fetch instructions from and execute instructions on an instruction execution system, device, or apparatus), or used in conjunction with such instruction execution systems, devices, or apparatuses. The above description is only an embodiment of the present application and does not limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, is also included in the scope of patent protection of the present application.
[0101] The above description is only an implementation method of the present application and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the description and drawings of this application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A wireless pairing method, wherein: Applied to a communication system, the communication system includes at least one first communication device and at least one second communication device, and the wireless pairing method includes: The first communication device sends a first broadcast data packet externally in response to the operation instruction; The second communication device receives the first broadcast data packet and sends an ultrasonic signal externally, wherein the ultrasonic signal carries identification information corresponding to the second communication device in a one-to-one manner; The first communication device receives the ultrasonic signal and sends a second broadcast data packet to the outside, wherein the second broadcast data packet includes the identification information and the address information of the first communication device; The second communication device receives the second broadcast data packet, and in response to the second broadcast data packet including the identification information, pairs and connects with the corresponding first communication device according to the address information.
2. The wireless pairing method according to claim 1, wherein: The step of the second communication device receiving the first broadcast data packet and sending an ultrasonic signal externally, wherein the ultrasonic signal carries identification information corresponding to the second communication device in a one-to-one manner, comprises: The second communication device receives the first broadcast data packet and generates the ultrasonic signal according to the preset frequency band information and the corresponding identification information; The second communication device transmits the ultrasonic wave signal to the outside so that the first communication device receives the ultrasonic wave signal.
3. The wireless pairing method according to claim 2, wherein: The step of the second communication device receiving the first broadcast data packet and generating the ultrasonic signal according to the preset frequency band information and the corresponding identification information includes: The second communication device receives the first broadcast data packet and encodes the identification information to obtain an ultrasonic wave frequency corresponding to the identification information; The second communication device generates the ultrasonic signal according to the ultrasonic frequency and the preset frequency band information.
4. The wireless pairing method according to claim 3, wherein: The step of the second communication device generating the ultrasonic signal according to the ultrasonic frequency and the preset frequency band information includes: The second communication device acquires an ultrasonic waveform corresponding to the ultrasonic frequency; The second communication device acquires a first position and a second position of the ultrasonic waveform, wherein the first position is The initial position of the ultrasonic waveform, the second position is the end position of the ultrasonic waveform; The second communication device adjusts the waveforms at the first position and the second position according to a linear attenuation coefficient; The second communication device generates the ultrasonic signal according to the adjusted ultrasonic waveform and the preset frequency band information.
5. The wireless pairing method according to claim 4, wherein: The second communication device adjusts the waveforms of the first position and the second position according to the linear attenuation coefficient, including: The second communication device adjusts the waveform at the first position according to the linear attenuation coefficient so that the waveform at the first position shows a trend of slowly climbing; The second communication device adjusts the waveform at the second position according to the linear attenuation coefficient so that the waveform at the second position shows a slowly decreasing trend.
6. The wireless pairing method according to claim 4, wherein: The linear attenuation coefficient is the ratio of the amplitude to the frequency of the ultrasonic signal.
7. The wireless pairing method according to claim 1, wherein: The ultrasonic signal includes a first ultrasonic signal and / or a second ultrasonic signal, and a frequency band of the first ultrasonic signal does not overlap with a frequency band of the second ultrasonic signal.
8. The wireless pairing method according to claim 7, wherein: The first ultrasonic signal includes a plurality of first preset frequencies, each of which corresponds to the identification information; and / or the second ultrasonic signal includes a plurality of second preset frequencies, each of which corresponds to the identification information.
9. The wireless pairing method according to claim 8, wherein: The frequencies of the first ultrasonic signal and the second ultrasonic signal are greater than 18500 Hz.
10. The wireless pairing method according to claim 8, wherein: The frequency band of the first ultrasonic signal is within the range of 18875 Hz to 20000 Hz, and the frequency band of the second ultrasonic signal is within the range of 20375 Hz to 21500 Hz.
11. The wireless pairing method according to claim 8, wherein: The interval between the plurality of first preset frequency points is an integer multiple of the resolution of the first communication device, and the interval between the plurality of second preset frequency points is an integer multiple of the resolution of the second communication device.
12. The wireless pairing method according to claim 1, wherein: The communication system includes a plurality of the first communication devices and a plurality of the second communication devices, and after the first communication device sends a first broadcast data packet to the outside in response to an operation instruction, the wireless pairing method further includes: The first communication device receives ultrasonic signals returned by the plurality of second communication devices, and confirms a connection partner according to the received ultrasonic information.
13. A communication system, wherein: It comprises a processor and a memory connected to the processor, wherein the memory stores program data, and the processor calls the program data stored in the memory to execute the wireless pairing method according to any one of claims 1-12.
14. A computer-readable storage medium, wherein: Program instructions are stored, and the program instructions are executed to implement the wireless pairing method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Wireless pairing method, communication system and computer readable storage medium
CN118741756A
Pairing method and device of bluetooth equipment and bluetooth equipment
CN106792493A
Bluetooth pairing connection method and system, Bluetooth equipment and terminal
CN108684029A
Control method and device
CN115733704A
Pairing apparatus and method thereof
EP3013080A1
