A wireless connection method, device, electronic device and readable storage medium

By generating vibration signal transmission device connection information in electronic devices, the complexity problem of users manually selecting equipment in existing wireless connection technology is solved, and the automatic establishment of wireless connection is realized, which improves connection efficiency and convenience.

CN114339710BActive Publication Date: 2024-11-29HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011075451.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-09
Publication Date
2024-11-29
Estimated Expiration
2040-10-09

AI Technical Summary

Technical Problem

The existing wireless connection technology requires users to manually select target devices, which is complex in operation, increases connection time and difficulty, and cannot achieve automatic connection.

Method used

Vibration signals carrying device connection information are generated through electronic devices and transmitted to target devices. After receiving the target device, the target device sends a response signal. After receiving the electronic device, it automatically establishes a wireless connection, reducing operation steps and improving convenience.

Benefits of technology

It realizes automatic establishment of wireless connections, reduces user operation difficulty and time, and improves connection efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114339710B_ABST
    Figure CN114339710B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of communication technology, and provides a method, device, electronic device and readable storage medium for wireless connection, the method comprising: a first electronic device generates a predetermined vibration signal in response to a device connection operation initiated by a user; a target device receives the vibration signal sent by the first electronic device through a propagation medium; the target device obtains the device connection information in the vibration signal, and sends a response signal containing the device connection information; after receiving the response signal, the second electronic device matches the device connection information in the response signal with the stored device connection information, and if the match is consistent, establishes a wireless connection with the target device. The technical solution provided by the present application can effectively improve the efficiency of wireless connection across devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and in particular, relates to a wireless connection method, device, electronic device, and readable storage medium. Background Art

[0002] With the continuous development of device technology, the functions of electronic devices are becoming more and more powerful, and electronic devices can be interconnected to achieve performance enhancement. Therefore, how to quickly establish wireless connections between different electronic devices directly affects the operating efficiency of electronic devices and the user experience.

[0003] In the existing wireless connection technology between devices, the device identification of each device that can be connected is generally displayed on the wireless connection setting page, and the user selects the target device to be connected from multiple device identifications for connection. However, the above method requires the user to first know the device identification of the target device, and select the device identification of the target device to be connected from multiple device identifications, which greatly increases the difficulty of wireless connection between devices. The steps are complicated, which increases the difficulty of user operation and the time required for wireless connection. Summary of the invention

[0004] The embodiments of the present application provide a wireless connection method, an apparatus, an electronic device, and a readable storage medium, which can effectively improve the efficiency of wireless connections across devices.

[0005] In a first aspect, an embodiment of the present application provides a wireless connection method, including:

[0006] The first electronic device generates a predetermined vibration signal in response to a device connection operation initiated by a user; the vibration signal carries device connection information; the vibration signal is transmitted to the target device via a transmission medium between the first electronic device and the target device;

[0007] The target device receives the vibration signal sent by the first electronic device through the propagation medium;

[0008] The target device obtains the device connection information in the vibration signal, and sends a response signal including the device connection information;

[0009] After receiving the response signal, the second electronic device matches the device connection information in the response signal with the stored device connection information, and if the match is consistent, establishes a wireless connection with the target device;

[0010] The first electronic device and the second electronic device are the same or different devices.

[0011] The implementation of the embodiment of the present application has the following beneficial effects: a vibration signal containing device connection information is generated by an electronic device, and the vibration signal is transmitted to a target device through a propagation medium. After the target device receives the vibration signal sent by the electronic device, a corresponding connection response signal is generated, and after the electronic device receives the connection response signal, a wireless connection between the above two devices is established to achieve automatic establishment of a wireless connection. Compared with the existing wireless connection technology, the present embodiment does not require the user to manually select the target device to be connected. It only requires placing the two devices to be connected on the same medium that can transmit vibration signals, such as establishing a wireless connection between a handheld device and a wearable device, which reduces the operation steps required for the wireless connection operation and improves the convenience of the wireless connection.

[0012] In a possible implementation manner of the first aspect, when the first electronic device and the second electronic device are different devices, before the target device sends a response signal including the device connection information, the method further includes:

[0013] The first electronic device sends the device connection information to the second electronic device for storage.

[0014] In a possible implementation manner of the first aspect, the first electronic device generates a predetermined vibration signal in response to a device connection operation initiated by a user; the vibration signal carries device connection information, including:

[0015] The first electronic device generates an information sequence including the device connection information, and encodes the information sequence to obtain a coded sequence;

[0016] The first electronic device performs keying modulation on the coding sequence to obtain the vibration signal.

[0017] The implementation of the embodiments of the present application has the following beneficial effects: by performing error correction coding on the information sequence, the anti-interference and self-error correction capabilities of the sequence can be improved, and the probability of signal retransmission can be reduced; then, by performing keying modulation on the coding sequence corresponding to the information sequence, the difference in vibration waveforms between different code elements can be increased, thereby improving the target device's recognition accuracy for the code elements, thereby further improving the ability to resist environmental noise.

[0018] In a possible implementation manner of the first aspect, the target device obtains the device connection information in the vibration signal, including:

[0019] The target device performs keying demodulation on the vibration signal to obtain the coding sequence;

[0020] The target device decodes the coding sequence to obtain the information sequence, and acquires the device connection information from the information sequence.

[0021] In a second aspect, a wireless connection method is applied to a first electronic device, comprising:

[0022] The first electronic device receives a device connection operation initiated by a user; wherein the device connection operation can be a first device connection operation for establishing a wireless connection between the first electronic device and a target device, or can be a second device connection operation for establishing a wireless connection between a second electronic device and a target device.

[0023] The first electronic device generates a predetermined vibration signal in response to the device connection operation; the vibration signal carries device connection information; and the vibration signal is transmitted to the target device through the propagation medium between the first electronic device and the target device. If the device connection operation is a first device connection operation, a first vibration signal is generated, and the first vibration signal is used to establish a wireless connection between the first electronic device and the target device; if the device connection operation is a second device connection operation, the first electronic device generates a second vibration signal, and the second vibration signal is used to establish a wireless connection between the second electronic device and the target device.

[0024] In a possible implementation manner of the second aspect, if the device connection operation is a first device connection operation, after generating a vibration signal for establishing a wireless connection with a target device in response to the device connection operation initiated by the user, the method further includes:

[0025] The first electronic device receives a response signal including device connection information sent by the target device, and matches the device connection information in the response signal with the stored device connection information. If the match is consistent, a wireless connection is established with the target device.

[0026] In a possible implementation manner of the second aspect, if the device connection operation is a second device connection operation, after generating a predetermined vibration signal in response to the device connection operation, the method further includes:

[0027] The first electronic device sends the device connection information to the second electronic device, so that the second electronic device establishes a wireless connection with the target device.

[0028] In a possible implementation manner of the second aspect, the first electronic device generates a predetermined vibration signal in response to the device connection operation, including:

[0029] The first electronic device generates an information sequence including the device connection information, and encodes the information sequence to obtain a coded sequence;

[0030] The first electronic device performs keying modulation on the coding sequence to obtain the vibration signal;

[0031] Among them, if the device connection operation is a first device connection operation, the information sequence generated is the information sequence associated with the first electronic device, the coding sequence associated with the first electronic device is obtained, and the first vibration signal is generated, and the first vibration signal is used to establish a wireless connection between the first electronic device and the target device; if the device connection operation is a second device connection operation, the information sequence generated by the first electronic device is the information sequence associated with the second electronic device, the coding sequence associated with the second electronic device is obtained, and the second vibration signal is generated, and the second vibration signal is used to establish a wireless connection between the second electronic device and the target device in Example 2.

[0032] In a third aspect, an embodiment of the present application provides a wireless connection device, including:

[0033] A device connection operation acquisition unit, used to receive a device connection operation initiated by a user;

[0034] A vibration signal sending unit is used to generate a predetermined vibration signal in response to a device connection operation initiated by a user; the vibration signal carries device connection information; and the vibration signal is transmitted to the target device via a transmission medium between the first electronic device and the target device.

[0035] In a possible implementation manner of the third aspect, the wireless connection device further includes:

[0036] The wireless connection establishing unit is used to receive a response signal containing device connection information sent by the target device, and match the device connection information in the response signal with the stored device connection information. If the match is consistent, a wireless connection is established with the target device.

[0037] In a possible implementation manner of the third aspect, the vibration signal sending unit includes:

[0038] A coding sequence generating unit, used for generating an information sequence including the device connection information, and performing coding processing on the information sequence to obtain a coding sequence;

[0039] The coding sequence modulation unit is used to perform keying modulation on the coding sequence to obtain the vibration signal.

[0040] In a possible implementation manner of the third aspect, the wireless connection device further includes:

[0041] The device connection information sending unit is used to send the device connection information to the second electronic device so that the second electronic device establishes a wireless connection with the target device.

[0042] In a fourth aspect, an embodiment of the present application provides a wireless connection method, which is applied to a target device, including:

[0043] The target device receives a vibration signal sent by the first electronic device through a propagation medium between the first electronic device and the target device, wherein the vibration signal carries device connection information;

[0044] The target device obtains the device connection information in the vibration signal and sends a response signal containing the device connection information, so that other electronic devices can match the device connection information in the response signal with the device connection information stored in themselves after receiving the response signal. If the match is consistent, a wireless connection with the target device is established, wherein the other electronic device is the first electronic device or a device other than the target device that is connected to the first electronic device.

[0045] In a possible implementation manner of the fourth aspect, the target device obtains the device connection information in the vibration signal, including:

[0046] The target device performs keying demodulation on the vibration signal to obtain a coding sequence;

[0047] The target device decodes the coding sequence to obtain an information sequence, and acquires the device connection information from the information sequence.

[0048] In a fifth aspect, an embodiment of the present application provides a wireless connection device, including:

[0049] a vibration signal receiving unit, configured to receive a vibration signal sent by the first electronic device through a propagation medium between the first electronic device and the target device, wherein the vibration signal carries device connection information;

[0050] A connection response signal sending unit is used to obtain the device connection information in the vibration signal and send a response signal containing the device connection information, so that other electronic devices can match the device connection information in the response signal with the device connection information stored in themselves after receiving the response signal. If the match is consistent, a wireless connection with the target device is established, wherein the other electronic device is the first electronic device or a device other than the target device that is connected to the first electronic device.

[0051] In a possible implementation manner of the fifth aspect, the wireless connection device further includes:

[0052] A code sequence demodulation unit, used for performing keying demodulation on the vibration signal to obtain a code sequence;

[0053] The coding sequence decoding unit is used to decode the coding sequence to obtain the information sequence, and obtain the device connection information from the information sequence.

[0054] In a sixth aspect, an embodiment of the present application provides a wireless connection method, which is applied to a second electronic device, where the second electronic device has established a wireless connection with a first electronic device, including:

[0055] The second electronic device receives a response signal sent by the target device, and matches the device connection information in the response signal with the stored device connection information, wherein the device connection information in the response signal is transmitted to the target device via a communication medium between the first electronic device and the target device;

[0056] If the match is consistent, the second electronic device establishes a wireless connection with the target device.

[0057] In a possible implementation manner of the sixth aspect, before the second electronic device receives the response signal sent by the target device, the method further includes:

[0058] The second electronic device receives and stores the device connection information sent by the first electronic device.

[0059] In a seventh aspect, an embodiment of the present application provides a wireless connection device, wherein a second electronic device has established a wireless connection with a first electronic device, including:

[0060] a response signal receiving unit, configured to receive a response signal sent by a target device, and match device connection information in the response signal with stored device connection information, wherein the device connection information in the response signal is transmitted to the target device via a communication medium between the first electronic device and the target device;

[0061] The connection monitoring response unit is used to establish a wireless connection between the second electronic device and the target device if the match is consistent.

[0062] In a possible implementation manner of the seventh aspect, the wireless connection device further includes:

[0063] The device connection information receiving unit is used for receiving and storing the device connection information sent by the first electronic device.

[0064] In an eighth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the wireless connection method described in any one of the second aspect, fourth aspect, or sixth aspect when executing the computer program.

[0065] In the ninth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and is characterized in that when the computer program is executed by a processor, it implements the wireless connection method described in any one of the second aspect, fourth aspect or sixth aspect above.

[0066] In the tenth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the wireless connection method described in any one of the second aspect, fourth aspect or sixth aspect above.

[0067] In the eleventh aspect, an embodiment of the present application provides a chip system, including a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement a wireless connection method as described in any one of the second aspect, the fourth aspect or the sixth aspect.

[0068] In a twelfth aspect, an embodiment of the present application provides a wireless connection system, the wireless connection system comprising: a first electronic device, a target device, and a second electronic device;

[0069] The first electronic device is used to generate a predetermined vibration signal in response to a device connection operation initiated by a user; the vibration signal carries device connection information; and the vibration signal is transmitted to the target device via a propagation medium between the first electronic device and the target device;

[0070] The target device is used to receive the vibration signal sent by the first electronic device through a propagation medium;

[0071] The target device is used to obtain the device connection information in the vibration signal and send a response signal containing the device connection information;

[0072] The second electronic device is configured to match the device connection information in the response signal with the stored device connection information after receiving the response signal, and establish a wireless connection with the target device if the two match;

[0073] The first electronic device and the second electronic device are the same or different devices.

[0074] In a possible implementation manner of the twelfth aspect, when the first electronic device and the second electronic device are different devices, before the target device sends a response signal including the device connection information, the method further includes:

[0075] The first electronic device is used to send the device connection information to the second electronic device for storage.

[0076] In a possible implementation manner of the twelfth aspect, the first electronic device generates a vibration signal for the second electronic device to establish a wireless connection with the target device in response to a device connection operation initiated by a user, including:

[0077] The first electronic device is used to generate an information sequence including the device connection information, and encode the information sequence to obtain a coded sequence;

[0078] The first electronic device is used to perform keying modulation on the coding sequence to obtain the vibration signal.

[0079] In a possible implementation manner of the twelfth aspect, the target device is used to obtain the device connection information in the vibration signal, including:

[0080] The target device is used to perform keying demodulation on the vibration signal to obtain a coding sequence;

[0081] The target device is used to decode the coding sequence to obtain the information sequence, and obtain the device connection information from the information sequence.

[0082] It can be understood that the beneficial effects of the second to twelfth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0083] Figure 1 This is an example diagram of human-computer interaction in a wireless connection application scenario provided by an embodiment of the present application;

[0084] Figure 2 is a schematic diagram of a wireless connection based on device search provided by an embodiment of the present application;

[0085] Figure 3 is a schematic diagram of a wireless connection based on NFC technology provided by an embodiment of the present application;

[0086] Figure 4 is a schematic diagram of a proximity-discovery wireless connection based on a Bluetooth module provided by an embodiment of the present application;

[0087] Figure 5is a schematic diagram of a wireless connection based on graphic code scanning provided by an embodiment of the present application;

[0088] Figure 6 It is a schematic diagram of a structure for wireless connection between electronic devices provided by an embodiment of the present application;

[0089] Figure 7 is an interactive flow chart of a wireless connection method provided by an embodiment of the present application;

[0090] Figure 8 is a schematic diagram of initiating a connection operation of a first electronic device provided by an embodiment of the present application;

[0091] Fig. 9 is a schematic diagram of propagation of a first vibration signal when the propagation medium is a human body provided by an embodiment of the present application;

[0092] Fig.10 is a schematic diagram of propagation of a first vibration signal when the propagation medium is a desktop provided by an embodiment of the present application;

[0093] Fig.11 is a schematic diagram of a wireless connection scenario of another embodiment of the present application;

[0094] Fig.12 is a schematic diagram of a wireless connection scenario according to another embodiment of the present application;

[0095] Fig.13 is an interactive flow chart of a wireless connection method provided by an embodiment of the present application;

[0096] Fig.14 is a schematic diagram of a device selection interface provided by an embodiment of the present application;

[0097] Fig.15 This is a schematic diagram of a wireless connection scenario according to an embodiment of the present application;

[0098] Fig.16 is a flowchart of a method for wireless connection on an electronic device side provided by an embodiment of the present application;

[0099] Fig.17 is a flowchart of a method for wireless connection on a target device side provided by an embodiment of the present application;

[0100] Fig.18 is a flowchart of a method for wireless connection on the second electronic device side provided by an embodiment of the present application;

[0101] Fig.19 is a structural block diagram of a wireless connection device provided by an embodiment of the present application;

[0102] Fig. 20is a structural block diagram of a wireless connection device provided by another embodiment of the present application;

[0103] Fig.21 is a structural block diagram of a wireless connection device provided by another embodiment of the present application;

[0104] Fig. 22 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0105] Fig.23 It is a software structure block diagram of the electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0106] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0107] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0108] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0109] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0110] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0111] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0112] Embodiment 1:

[0113] With the continuous development of electronic device technology, the types and number of electronic devices are also increasing. A user can have multiple different portable electronic devices at the same time, such as smartphones, wearable smart watches, smart glasses, etc. In order to meet different daily usage scenarios, wireless connections can be established between different electronic devices. Different sensors and data processing algorithms equipped with different electronic devices are used to improve the ability of distributed perception and interaction across devices, which can make up for the shortcomings of a single device and enhance the perception ability of interactive operations, thereby greatly improving the accuracy and convenience of human-computer interaction. Therefore, how to quickly establish a wireless connection between multiple devices is directly related to the convenience of device use and operational efficiency in different application scenarios. For example, Figure 1 An application scenario of human-computer interaction provided by an embodiment of the present application is shown. In this application scenario, the user holds a smart controller, and wears a smart watch and head-mounted vision-enhanced smart glasses. The above multiple electronic devices can be connected to a smart TV, and the collected user motion data is sent to the smart TV to achieve contactless human-computer interaction. In this application scenario, multiple electronic devices are required to establish a wireless connection. Therefore, a method is urgently needed to quickly establish a wireless interaction network for the above devices, that is, how to efficiently and accurately establish a connection when multiple devices establish a wireless connection for the first time. In order to achieve the establishment of a wireless interaction network for devices, four wireless connection methods are provided below:

[0114] Method 1: Pairing technology based on device search, such as the process of establishing a Bluetooth connection with an electronic device. For example, Figure 2 FIG. 1 is a schematic diagram showing a wireless connection based on device search provided by an embodiment of the present application. Figure 2 As shown, when the electronic device needs to establish a wireless connection with other devices, the user can click on the wireless connection setting interface. If the wireless connection is a Bluetooth connection, the user can click on Figure 2In the "Bluetooth" control 201 in the Bluetooth connection, a setting interface for Bluetooth connection is provided. At this time, the electronic device can receive Bluetooth signals sent by other Bluetooth devices in the current scene through the Bluetooth module. Each Bluetooth signal can correspond to a device identifier SSID. The electronic device can display the SSID of each connectable device in the above-mentioned Bluetooth connection setting interface. The user can identify the target device to be connected from the SSIDs of multiple connectable devices. The electronic device can receive the selection operation initiated by the user about the target device. For example, the target device that the electronic device needs to connect is a smart headset, and the SSID corresponding to the smart headset is "wireless earphone". At this time, the user can select the target device by clicking "wireless earphone" in the interface. After the electronic device receives the user's selection operation, it can establish a Bluetooth connection with the smart headset through the Bluetooth module. However, this method requires the user to select the target device from the device identifiers of multiple different devices. If the number of connectable devices in the scene where the electronic device is located is large, there are a large number of device identifiers. The user needs to select the device identifier of the target device from a large number of device identifiers, which greatly increases the difficulty of wireless connection. Further, if there are two or more connectable devices of the same model in the scene, the device identifiers of the devices of the same model are often the same by default. At this time, the difficulty of selecting the target device is further increased, and the accuracy of wireless connection is reduced.

[0115] Method 2: Pairing technology based on Near-Field Communication (NFC). For example, Figure 3 FIG. 1 is a schematic diagram showing a wireless connection based on NFC technology provided by an embodiment of the present application. Figure 3 As shown, the electronic device can be configured with an NFC module, and the target device to be connected is also configured with an NFC module. The electronic device approaches the target device, and when the distance between the two is less than a preset distance threshold, the two NFC modules will recognize each other and establish a communication link. This method does not require the user to manually select the device identification of the target device to be connected, which reduces the operation of wireless connection, but the above method requires that both devices to establish the connection are configured with NFC modules, and some devices are not equipped with NFC modules in order to reduce the cost and device volume, so the applicable device range of the above method is greatly reduced. On the other hand, since the mutual connection between NFC modules requires a distance less than a preset distance threshold (and the distance threshold is generally required to be 10mm), in most scenarios, the two devices need to be in physical contact to meet the distance requirement of NFC connection, thereby limiting the degree of freedom of the wireless connection process.

[0116] Method 3: pairing technology based on proximity-discovery of Bluetooth module. For example, Figure 4 FIG. 1 is a schematic diagram showing a proximity-discovery wireless connection based on a Bluetooth module provided by an embodiment of the present application. Figure 4 As shown, the current scene includes two electronic devices that can be connected to the target device (i.e., smart headset), namely a smart phone and a laptop computer; wherein, the smart headset is equipped with an earphone box. If the earphone box of the smart headset is opened, the Bluetooth module will be turned on and a Bluetooth connection instruction will be sent. The electronic device in the current scene can determine the distance value between the smart headset and the smart headset according to the signal strength of the Bluetooth signal corresponding to the Bluetooth connection instruction. If the distance value is less than the preset distance threshold, it will identify and respond to the Bluetooth connection instruction and feedback a Bluetooth handshake signal to the smart headset to establish a wireless connection between the electronic device and the smart headset. Figure 4 As shown, the distance between the smartphone and the smart headset is relatively close, while the distance between the laptop computer and the smart headset is relatively far. After the headset box of the smart headset is turned on, the smartphone can identify the distance l1 between the smartphone and the smart headset based on the Bluetooth signal, which is relatively small (smaller than the preset distance threshold), while the distance value l2 between the laptop computer and the smart headset is relatively large (larger than the preset distance threshold). At this time, the smartphone can send a Bluetooth handshake signal to the smart headset according to the Bluetooth connection instruction, so that the smartphone and the smart headset are successfully paired. Compared with the pairing technology based on device search in method 1, this method does not require the user to manually select the target device to be connected, thereby reducing the operations required by the user. However, the above method has the problem of clear device directionality. Figure 4 Taking the scenario as an example, if the distance values ​​between the smartphone, the laptop, and the smart headset are all less than the preset distance threshold, at this time, the smartphone and the laptop can both send Bluetooth handshake signals to the smart headset, and the smart headset can only randomly connect to one of the smartphone and the laptop, resulting in the target device being unable to determine the electronic device to be connected, reducing the accuracy of the pairing operation, and the above method cannot identify the user's connection intention.

[0117] Method 4: Pairing technology based on graphic code scanning. For example, Figure 5 FIG. 1 is a schematic diagram showing a wireless connection based on graphic code scanning provided by an embodiment of the present application. Figure 5As shown, the electronic device is equipped with a camera module, which can be used to display a graphic code on the surface of the target device to be connected, and the surface of the target device to be connected can display a graphic code for wireless connection, which can be a two-dimensional code. If the electronic device needs to connect to the target device, it can start the above-mentioned camera module and align the shooting direction of the camera module with the graphic code of the target device. The electronic device can obtain an image containing the graphic code through the camera module, parse the graphic code, and generate a wireless connection request corresponding to the target device. The wireless connection request can be sent to the target device through the wireless communication module. After the target device receives the wireless connection request sent by the electronic device, it can send a connection handshake instruction to the electronic device. After the electronic device receives the connection handshake instruction, it recognizes that the wireless connection has been established. This method can solve the problem of poor directionality of wireless connection (i.e., the target device to be connected cannot be determined, or the target device cannot determine the electronic device to be connected). However, the above method requires that the camera module of the electronic device be aligned with the graphic code area of ​​the target device, which increases the difficulty of the matching operation. In addition, the target device to establish the connection needs to be equipped with a camera module. Since the camera module is relatively large in size, most wearable electronic devices cannot be installed with a camera module in order to take into account the size of the device, thereby reducing the scope of application of this wireless connection method.

[0118] It can be seen that the above four methods cannot take into account both the convenience of operation and the accuracy of connection pairing when wirelessly connecting devices. Therefore, in order to solve the defects of the above wireless connection process, this application provides a wireless connection method, which is described in detail as follows:

[0119] Figure 6 FIG. 1 is a schematic diagram showing a structure of wireless connection between electronic devices provided by an embodiment of the present application. Figure 6As shown, the execution subject of the wireless connection method is any two electronic devices. The electronic device can be an electronic device such as a smart phone, a tablet computer, a computer, a smart TV, a smart watch, a smart headset, etc. Among them, in order to facilitate the distinction between the above two electronic devices, in the subsequent description, the device that initiates the wireless connection request is referred to as an "electronic device", and the other device that responds to the wireless connection request is referred to as a "target device". It should be noted that the above electronic device and the target device are only named and distinguished according to the initiator and the responder of the connection operation. If the above target device initiates a wireless connection request in other connection scenarios, it can also be called an electronic device; if the above electronic device is used as a device that responds to a wireless connection request initiated by other devices in other connection scenarios, it can also be called a target device, that is, the electronic device and the target device are not used to distinguish the functions or models of the two devices, but to distinguish whether it is the initiator or the responder of the connection request during the connection process. Among them, the initiating side of the wireless connection, that is, the electronic device, is equipped with a vibration component, which is specifically used to generate vibration waves, for example, when a new message is received, the vibration component vibrates at a preset frequency, or when an incoming call is received, the vibration component vibrates; the electronic device can also be equipped with a wireless communication module, which can receive the wireless handshake signal fed back by the target device based on the wireless connection request, and can also perform wireless communication through the wireless communication module; for the responding side of the wireless connection, the target device is equipped with a motion sensor, which can specifically be a gyroscope, an acceleration sensor, an angular velocity sensor, etc., which receives the vibration waves sent by the electronic device through the motion sensor, and can also obtain the motion parameters of the device and the device attitude angle, etc. through the motion sensor. The target device is also equipped with a wireless communication module, and can send a wireless handshake signal based on the wireless connection request feedback through the wireless communication module to confirm the wireless connection with the electronic device.

[0120] In a possible implementation, the electronic device and the target device may be devices with the same functions and models. For example, if both the electronic device and the target device are smart phones, a wireless connection between the two smart phones may be established using the wireless connection method provided in this embodiment.

[0121] Figure 7 An interactive flow chart of a wireless connection method provided by an embodiment of the present application is shown, and the details are as follows:

[0122] In S701, the electronic device generates a first vibration signal for establishing a wireless connection with a target device in response to a first device connection operation initiated by a user; the first vibration signal carries device connection information; and the first vibration signal is transmitted to the target device via a transmission medium between the electronic device and the target device.

[0123] In this embodiment, the electronic device is equipped with an interaction module, which includes but is not limited to: a touch screen, a physical button, a mouse, and a keyboard. The user can perform various types of operations through the interaction module equipped by the electronic device. When the user needs to establish a wireless connection between the electronic device and the target device, the first device connection operation can be initiated through the interaction module equipped by the electronic device to instruct the electronic device to execute the wireless connection process. For example, the electronic device can be equipped with a physical button, and the user can perform a single press, continuous press, or long press on the physical button in an operation mode associated with the device connection information to enable the electronic device to generate a vibration signal. After obtaining the user's touch operation, the electronic device can identify the operation type of the touch operation. If the touch operation is the above-mentioned first device connection operation, the operation of S701 is executed to execute the process of wirelessly connecting to the target device.

[0124] In one possible implementation, the electronic device stores an action template corresponding to the first device connection operation. After obtaining the user's touch operation, the touch operation can be matched with the above-mentioned action template. If the match is successful, the touch operation initiated by the user is identified as the first device connection operation; conversely, if the match fails, the operation is identified as not the first device connection operation. For example, the electronic device can be configured with a shortcut operation (i.e., the above-mentioned action template) for initiating a wireless connection, and the shortcut operation is specifically to click a physical button twice in succession. At this time, if the user clicks the above-mentioned physical button of the electronic device three times in succession, the electronic device will determine that it does not match the above-mentioned shortcut operation. At this time, it will identify that the operation is not the first device connection operation and will not execute S701; if the user clicks the above-mentioned physical button of the electronic device twice in succession, the electronic device will determine that it matches the above-mentioned shortcut operation. At this time, it will identify that the touch operation is the first device connection operation and execute S701.

[0125] In one possible implementation, the electronic device may be equipped with a control for establishing a wireless connection with a device, and the electronic device may use the operation of the user clicking the above control as the above-mentioned first device connection operation. It should be noted that the above-mentioned establishment of a wireless connection with the device may specifically be the first establishment of a wireless connection with the target device, that is, the target device and the wireless signal associated with the target device are not stored in the connectable device list of the electronic device. Since the connectable device list stores the wireless signals of other connected devices, if the electronic device searches for the wireless signals recorded in the connectable device list through the wireless module, the electronic device can automatically establish a wireless connection with the above-mentioned other connected devices without establishing a wireless connection through S701 to S704.

[0126] For example, Figure 8 FIG. 1 is a schematic diagram showing an operation of initiating a first device connection provided by an embodiment of the present application. Figure 8 In (a), the main interface of the electronic device may display a setting application 801, and the user may enter the setting interface of the electronic device by clicking an icon corresponding to the setting application 801, that is, Figure 8 In (b), a wireless connection setting control 802 is displayed in the setting interface of the electronic device. In this embodiment, the wireless connection setting control 802 is specifically used to set the Bluetooth wireless connection of the electronic device. Therefore, the wireless connection setting control 802 can be specifically displayed as "Bluetooth" in the setting interface. Among them, if the electronic device detects that the user clicks the above control 802, it can recognize that the user initiated the first device connection operation, execute S701, and establish a wireless connection with the target device. In another implementation method, the electronic device detects that the user clicks the above control 102, and then enters the Bluetooth setting page, that is, Figure 8 (c). The Bluetooth setting page displays a "connect new device" control 803 and a connectable device list 804. If the electronic device detects that the user clicks the "connect new device" control 803, it can recognize that the user initiates the first device connection operation, execute S701, and establish a wireless connection with the target device.

[0127] In this embodiment, the electronic device is equipped with a vibration component, which may be a motor or other device that can generate vibration waves. After the electronic device detects the first device connection operation initiated by the user, it can generate a first vibration signal through the vibration component, and the first vibration signal is used to establish a wireless connection with the target device, that is, as a connection signal when wirelessly connecting with the target device, to instruct the target device to execute the response process of the wireless connection.

[0128] In a possible implementation, the signal frequency of the first vibration signal is between 100 Hz and 1000 Hz.

[0129] In a possible implementation, the device connection information may carry a device identifier of the electronic device to which the target device needs to be connected, for notifying the target device of the electronic device to which it needs to be connected. Further, as another embodiment of the present application, the electronic device generates a first vibration signal for establishing a wireless connection with the target device in response to a first device connection operation initiated by a user, which may be:

[0130] In S7011, an information sequence including device connection information is generated, and the information sequence is encoded to obtain a coding sequence.

[0131] In this embodiment, a coding rule can be preset between the electronic device and the target device, and the information sequence output by the coding rule is used as a response signal for wireless connection between the two devices. Based on this, the electronic device can generate the above information sequence by the preset coding rule, so that the target device performs a response process of wireless connection when receiving the information sequence. Specifically, the information sequence includes device connection information.

[0132] In one possible implementation, the electronic device may use the local device identification as the above-mentioned device connection information. In this case, the device identification is imported into the above-mentioned encoding rules, thereby containing an information sequence of the device identification of the electronic device, so that the target device can determine the electronic device to be connected based on the information sequence.

[0133] Exemplarily, Table 1 shows a schematic diagram of the structure of an information sequence provided by an embodiment of the present application. As shown in Table 1, the information sequence includes at least two parts, namely, a characteristic field for indicating that the information sequence is used for wireless connection, and a custom field for carrying custom information. The field content of the characteristic field can be determined according to the wireless communication protocol between the communicating parties, so that the target device determines whether it needs to execute the response process of wireless communication by detecting the characteristic field; and the custom field can be used to store other content, for example, in this embodiment, it can be used to store the device identification of the electronic device.

[0134] Table 1

[0135] Feature fields Custom fields F0F 8C-EC-4B-6C-D6-5A

[0136] In this embodiment, when information is transmitted through the first vibration signal, the propagation medium and the noise of the external environment have a greater impact on the propagation of the first vibration signal, which easily causes the bit values ​​of some fields in the first vibration signal to change. Therefore, in order to improve the first vibration signal sent to the target device to have a stronger anti-interference ability, the information sequence used for wireless connection with the target device can be imported into a preset error correction coding algorithm, and the anti-interference ability of the information sequence can be improved by increasing the number of characters.

[0137] In a possible implementation, the error correction coding algorithm includes but is not limited to: Cyclic Redundancy Check (CRC) coding and channel coding, etc. For example, the CRC coding can add 8 redundant bits, that is, 8-bit CRC coding is used to perform error correction coding on the information sequence to obtain a coding sequence; the channel coding can specifically adopt a linear block coding method, that is, the information sequence is divided into K sequence segments, and each sequence segment is converted into a sequence segment of N code elements through a preset encoder, thereby forming an N*K coding sequence.

[0138] In a possible implementation, the electronic device may use two or more error correction coding algorithms, so as to further improve the error correction and anti-interference capabilities. For example, the electronic device may use CRC coding and channel coding to perform error correction coding on the information sequence. The electronic device first adds 8-bit redundant code elements to the original information sequence, and then performs channel coding on the information sequence after adding the redundant code elements, for example, using linear block coding, that is, dividing the information sequence after adding the redundancy into K sequence segments, and converting it into an N*K coding sequence.

[0139] In a possible implementation, the electronic device may also encapsulate the coding sequence and the information for decoding the coding sequence to generate a data packet Packet. The information for decoding the coding sequence may be stored in the synchronization information field of the above-mentioned data packet, and the coding sequence may be stored in the data field of the data packet, i.e., the Payload field, so that the target device may decode the coded data of the subsequent data field through the information contained in the synchronization information field. For example, if the above-mentioned information sequence is obtained based on CRC coding, the cyclic redundancy code may be stored in the synchronization information field, so that after receiving the data packet, the target device may decode the data field through the cyclic redundancy code in the synchronization information field.

[0140] In S7012, keying modulation is performed on the coding sequence to generate the first vibration signal.

[0141] In this embodiment, after the electronic device generates a coding sequence corresponding to the information sequence, it can perform keying modulation on the coding sequence to generate a first vibration signal corresponding to the coding sequence. Among them, keying modulation is specifically used to limit the use of different waveforms to represent different code elements in the coding sequence. Among them, keying modulation includes but is not limited to: amplitude shift keying modulation (ASK), frequency shift keying modulation (FSK) and phase shift keying modulation (PSK), that is, by adjusting the amplitude, frequency and phase of the vibration wave respectively, it is used to identify different code elements in the coding sequence.

[0142] For example, the ASK modulation process is used to illustrate. If the above-mentioned coding sequence is specifically

[1101] , in the preset ASK modulation, the code element with a bit value of 1 can be represented by a sine wave with an amplitude of 10mm; and the code element with a bit value of 0 can be represented by a sine wave with an amplitude of 2mm. Based on the order of each code element, 2 sine waves with an amplitude of 10mm and 1 sine wave with an amplitude of 2mm are sent in sequence, and finally, 1 sine wave with an amplitude of 10mm is sent to transmit the coding sequence of

[1101] . Each sine wave occupies a time slot, and the length of the time slot can be set according to actual conditions.

[0143] In an embodiment of the present application, by performing error correction coding on the information sequence, the anti-interference and self-error correction capabilities of the sequence can be improved, and the probability of signal retransmission can be reduced; then, by performing keying modulation on the coding sequence corresponding to the information sequence, the difference in vibration waveforms between different code elements can be increased, thereby improving the target device's recognition accuracy for the code elements, thereby further improving the ability to resist environmental noise.

[0144] In this embodiment, the electronic device and the target device are attached to the surface of the same propagation medium, and the first vibration signal initiated by the electronic device can be transmitted to the target device through the propagation medium, so that the target device can detect the first vibration signal and analyze the first vibration signal. The propagation medium is specifically a medium that can transmit the first vibration signal.

[0145] In a possible implementation, the transmission medium may be a human body. Fig. 9 FIG. 1 shows a schematic diagram of propagation of a first vibration signal when the propagation medium provided by an embodiment of the present application is a human body. Fig. 9 As shown, the electronic device is specifically a smart phone, and the target device to be connected to the electronic device is a smart watch. The user holds the smart phone in the palm of his hand and wears the smart watch on his wrist, that is, there is the same transmission medium between the smart phone and the smart watch, that is, the human hand. When the electronic device generates a first vibration signal, since the human skin and subcutaneous fat of the arm can conduct the first vibration signal, the first vibration signal can be transmitted to the smart watch through the hand, and the smart watch can detect the above vibration wave. In this implementation, when a wireless connection is required between the electronic device and the target device, the user often holds or wears the above electronic device at the same time. Therefore, the transmission medium in this embodiment can be the human body, which can greatly improve the scope of application of the above wireless connection method and reduce the operations required for the user to make a wireless connection.

[0146] In a possible implementation, the communication medium may be a desktop. Fig.10 FIG. 1 shows a schematic diagram of propagation of a first vibration signal when the propagation medium provided by an embodiment of the present application is a desktop. Fig.10 As shown, the electronic device is specifically a smart phone, the target device to be connected to the electronic device is specifically a laptop computer, and the smart phone and the laptop computer are placed on the same table surface. In this case, the table can be used as a propagation medium for propagating the first vibration signal. After the electronic device generates the first vibration signal, due to the material of the table surface, the absorption capacity of mechanical vibration is weak, so the first vibration signal can be transmitted to the laptop computer through the table surface.

[0147] In S702, the target device receives the first vibration signal sent by the electronic device through a propagation medium.

[0148] In this embodiment, the electronic device and the target device are attached to the same propagation medium, so after the electronic device generates a first vibration signal, the first vibration signal can be transmitted to the target device through the propagation medium, and at this time, the target device can receive the first vibration signal through a motion sensor. The motion sensor includes but is not limited to: an accelerometer, a gyroscope, and a pressure sensor.

[0149] In a possible implementation, the target device may be configured with a plurality of different motion sensors, and the number of different types of motion sensors may be one or more. The target device may collect the above-mentioned first vibration signal through multiple motion sensors, perform signal synthesis and filtering on the multiple first vibration signals, and analyze the processed first vibration signal. By collecting signals through multiple motion sensors, the signal quality of the collected first vibration signal can be improved, thereby reducing the bit error rate after analysis and improving the recognition accuracy of the device connection information.

[0150] In a possible implementation, the target device may be configured with an amplitude threshold. When the target device detects the first vibration signal, it will determine whether the signal amplitude corresponding to the first vibration signal is greater than the preset amplitude threshold. If so, the first vibration signal will be recorded, and the received first vibration signal will be analyzed to determine whether the first vibration signal carries device connection information; conversely, if the signal amplitude corresponding to the first vibration signal is less than or equal to the amplitude threshold, the first vibration signal is identified as a noise vibration wave, and there is no need to analyze the first vibration signal. It should be noted that the target device may also be provided with a lower limit threshold and a duration threshold for stopping recording the first vibration signal. If the target device detects that the amplitude of the first vibration signal of the current environment obtained by the motion sensor feedback is less than the above lower limit threshold, the duration of recording the first vibration signal with an amplitude less than the lower limit threshold is greater than the duration threshold, indicating that the first vibration signal sent by the electronic device has been sent, and the target device can analyze the received first vibration signal to obtain the information sequence sent by the above electronic device.

[0151] In S703, the target device obtains the device connection information in the vibration signal, and sends a response signal including the device connection information.

[0152] In this embodiment, after the target device obtains the first vibration signal, it can analyze the first vibration signal to determine whether the first vibration signal contains device connection information. Since the target device receives a large number of vibration waves during use, not every detected vibration wave carries information. It may be a meaningless vibration wave generated during daily use. For example, when a user wears a smart watch for running, due to the large running amplitude, the smart watch will hit the wrist regularly with the stride, and the collision and friction with the ground during the running process will also generate vibration waves and transmit to the wrist through the legs and torso. At this time, the wrist will also transmit vibration waves with a certain frequency, but the above-mentioned vibration waves do not carry information. After receiving the first vibration signal, the target device needs to analyze the first vibration signal to determine whether the first vibration signal carries device connection information. If so, the operation of S703 is executed; otherwise, there is no need to start the response process of the device wireless connection.

[0153] In one possible implementation, the target device can perform a connection authentication operation. In this case, after receiving the first vibration signal, the target device can extract the device identification of the electronic device contained in the device connection information. The target device can perform a connection authentication operation based on the device identification, for example, determining whether the device identification is in the list of legal devices. If so, it identifies that the first electronic device has been authenticated and sends a response signal; otherwise, it identifies that the authentication has failed and does not send a response signal.

[0154] Further, as another embodiment of the present application, if the electronic device generates the first vibration signal by keying modulation and error correction coding, the target device analyzes the first vibration signal, which may specifically include:

[0155] In S7031, the first vibration signal is keyed and demodulated to obtain a coding sequence.

[0156] In this embodiment, the target device may store a keying demodulation rule corresponding to the keying modulation rule of the electronic device. For example, if the electronic device adopts ASK modulation, the target device adopts ASK demodulation to parse the first vibration signal. The target device imports the first vibration signal into the preset keying demodulation rule and outputs the coding sequence corresponding to the first vibration signal.

[0157] For example, the process of ASK demodulation is used for explanation. The target device can divide the first vibration signal into multiple signal segments according to the preset time slot length, and identify the amplitude of each signal segment, thereby determining the code element represented by each signal segment, and based on the order of each code element, obtain the above-mentioned coding sequence.

[0158] In S7032, the coding sequence is decoded to obtain the information sequence, and the device connection information is obtained from the information sequence.

[0159] In this embodiment, the target device may store a decoding algorithm corresponding to the error correction coding algorithm of the electronic device. After obtaining the coding sequence corresponding to the first vibration signal, the target device may parse the coding sequence using the decoding algorithm to obtain the information sequence sent by the electronic device. The decoding process is the reverse process of the encoding process, so the specific description can refer to the relevant description of S7021, which will not be repeated here.

[0160] In one possible implementation, if the electronic device encapsulates the coding sequence and the information used to parse the coding sequence into a data packet Packet, the above-mentioned process of decoding the coding sequence can specifically be: extracting the synchronization information field in the data packet, decoding the coding sequence of the data field in the data packet based on the information in the synchronization information field, and obtaining the above-mentioned information sequence.

[0161] In this embodiment, after the target device obtains the information sequence, it can identify whether the information sequence contains device connection information. If so, it executes the operation of sending a response signal containing the device connection information; conversely, if the information sequence does not send a response signal containing the device connection information, it executes the response operation corresponding to the information sequence.

[0162] In a possible implementation, the target device may store a sequence correspondence to determine the meaning or response operation corresponding to different information sequences. After parsing the information sequence, the target device may query the sequence correspondence to determine the meaning or response operation corresponding to the sequence. If the meaning of the information sequence is device connection information, an operation of sending a response signal containing the device connection information is executed; or, if the response operation associated with the information sequence is sending a connection response signal, an operation of sending a response signal containing the device connection information is executed.

[0163] In an embodiment of the present application, by obtaining the information sequence corresponding to the first vibration signal through keying demodulation and decoding algorithm, the anti-interference and self-error correction capabilities of the information sequence can be improved, thereby improving the recognition accuracy of the information sequence and reducing the probability of bit errors and signal retransmission.

[0164] In this embodiment, after detecting that the first vibration signal contains device connection information, the target device can send a response signal containing the above device connection information to the electronic device, thereby notifying the electronic device that the target device has received the above device connection information and agrees to establish a wireless connection with the electronic device.

[0165] In one possible implementation, the target device can verify the above device connection information; if the verification is successful, a response signal is sent to the electronic device; otherwise, if the verification fails, there is no need to respond to the device connection information. For example, the verification method can be: if the first vibration signal also carries the device identification of the electronic device, then it is determined whether the device identification is in the legal device list, if so, it is determined that the device connection information verification is successful; otherwise, if the device identification is not in the legal device list, it is determined that the device connection information verification has failed. For another example, the device connection information corresponds to the module type of the communication module used to establish a wireless connection, that is, it is necessary to establish a Bluetooth connection or a WIFI connection. The target device determines whether the above module type is configured locally. If the target device contains the above module type, the identification verification is successful; otherwise, the identification verification fails.

[0166] In one possible implementation, the target device may be configured with a variety of wireless communication modules, such as a Bluetooth communication module and a WIFI communication module. In this case, the device connection information carries the module type, and the target device can identify the module type from the received device connection information, and send the above-mentioned response signal through the wireless communication module corresponding to the module type. For example, if the module type is a Bluetooth communication module, the target device can send a response signal through the Bluetooth communication module, and optionally, send a response signal containing handshake information through a Bluetooth Low Energy (BLE) module.

[0167] In a possible implementation, if the above module type is a WIFI module, for example, the target device needs to access the wireless local area network of the electronic device. In this case, the device connection information may carry the access password of the wireless local area network of the electronic device. The target device can extract the access password from the device connection information, add the access password to the above response signal, and send a connection response signal containing the access password through the WIFI module to access the wireless local area network sent by the electronic device.

[0168] In one possible implementation, the above-mentioned device connection information may carry a corresponding information identifier, which is used to uniquely identify the device connection information. The target device may add the above-mentioned request identifier to the response signal so that the electronic device can determine the device connection information corresponding to the response signal, thereby facilitating the electronic device to perform identification and comparison operations on the connection response signal.

[0169] In a possible implementation, the target device may obtain the data field, namely the Payload field, in the data packet obtained by parsing the first vibration signal, wherein the Payload field may be obtained by decoding the coding sequence of the Payload field through the synchronization information field in the data packet Packet, thereby obtaining the device connection information. The target device may encapsulate the device connection information in the response signal, so that after receiving the response signal, the electronic device may determine whether the handshake object is an electronic device or another device through the device connection information.

[0170] In S704, after receiving the response signal, the electronic device matches the device connection information in the response signal with the stored device connection information, and establishes a wireless connection with the target device if they match.

[0171] In this embodiment, the electronic device can receive a response signal sent by the target device through the wireless communication module, and after receiving the response signal, confirm that both parties of the connection have the conditions to establish a wireless connection. At this time, the electronic device can establish a wireless connection with the target device, and the above-mentioned wireless connection can be used to transmit interactive data between the electronic device and the target device.

[0172] In this embodiment, the electronic device compares and identifies the device connection information in the response signal, and determines whether the response signal is a response signal based on the device connection information feedback sent previously. If so, the above-mentioned wireless connection is established with the target device; if not, that is, the response signal is not used to respond to the device connection information sent previously, then there is no need to establish a wireless connection. If the above-mentioned electronic device adds a device identifier to the first vibration signal, the electronic device can extract the device identifier contained in the response signal and determine whether it is consistent with the device identifier of the first vibration signal. If so, a wireless connection is established.

[0173] In one possible implementation, if the target device adds a data field to the response signal in S703, the electronic device can extract the content of the data field and compare it with the data field in the data packet of the first vibration signal previously sent to the target device. If the data field of the response signal is consistent with the data field in the data packet of the first vibration signal, a wireless connection is established with the target device; otherwise, it is identified that the connection object of the response signal is not an electronic device, and the response signal is not responded to.

[0174] In one possible implementation, the electronic device may be configured with an effective waiting threshold. After the electronic device sends the first vibration signal, a timer is started, and the timer is used to determine the sending duration of the first vibration signal. If the sending duration is greater than the above-mentioned effective waiting threshold, and the response signal based on the device connection information feedback from the target device is not received, it is identified that the device connection information has failed to be sent, and at this time, the operation of S701 may be returned to be executed, that is, the first vibration signal containing the device connection information is resent. Optionally, the electronic device may also include a maximum number of transmissions. If the above-mentioned number of resending the first vibration signal is greater than the above-mentioned maximum number of transmissions, it is identified that a wireless connection cannot be established through the first vibration signal. At this time, a wireless connection page may be output so that the user can select the target device to be connected based on the wireless signal of the connectable device obtained by the search.

[0175] The wireless connection method provided by this embodiment is illustrated below by using three application scenarios.

[0176] Scenario 1: The electronic device in this embodiment is a smart phone, the transmission medium is the human body, and the target device is a smart watch. The implementation process is as follows:

[0177] Step 1: The user holds a smartphone and initiates a first device connection operation to establish a wireless connection through the smartphone, such as clicking a control on the smartphone to establish a wireless connection.

[0178] Step 2: In response to a first device connection operation initiated by a user, the smartphone generates a first vibration signal carrying device connection information through an electric motor built into the smartphone.

[0179] Step 3: Since the user holds a smart phone and wears a smart watch on his wrist, the first vibration signal can be transmitted through the user's arm. The smart watch has a built-in motion sensor. The first vibration signal is transmitted to the smart watch through the human body, causing the smart watch to vibrate and be detected by the motion sensor. The smart watch obtains the first vibration signal through the motion sensor, analyzes the first vibration signal, and determines that the first vibration signal carries device connection information.

[0180] Step 4: After the smart watch receives the first vibration signal containing the device connection information, it sends a BLE response signal for connection handshake through the Bluetooth wireless module; wherein the BLE response signal carries a request identifier for the device connection information carried by the first vibration signal.

[0181] Step 5: The smartphone receives the BLE response signal through the Bluetooth wireless module and extracts the device connection information carried in the BLE response signal. If the device connection information is consistent with the device connection information of the first vibration light signal sent previously, the smartphone establishes a Bluetooth connection with the smart watch.

[0182] In this scenario, the first vibration signal is transmitted through the human arm as a transmission medium to establish a wireless connection between the handheld smartphone and the smartwatch worn on the wrist. The entire connection process does not require the user to manually select the device, and the wireless connection is seamless for the user, greatly improving the efficiency of the wireless connection. On the other hand, the user only needs to hold or wear the device to be connected to establish a wireless connection, which solves the problem that the existing wireless connection has poor directionality when realizing automatic connection and cannot determine the connected device, and improves the accuracy of the connection operation.

[0183] Scenario 2: Fig.11 A schematic diagram of a wireless connection scenario of another embodiment of the present application is shown. Fig.11 As shown, the electronic device in this embodiment is a vehicle-mounted terminal 111, the transmission medium is a human body, and the target device is a smart watch 112. The implementation process is as follows:

[0184] Step 1: The user is in the driver's seat of a car, which is equipped with a vehicle-mounted terminal 111. After the car is started, the vehicle-mounted terminal 111 is also turned on. The user can initiate a control operation on the vehicle-mounted terminal 111. In this scenario, the user initiates a first device connection operation for establishing a wireless connection through the vehicle-mounted terminal 111, such as clicking the wireless connection control on the touch screen of the vehicle-mounted terminal 111.

[0185] Step 2: The vehicle-mounted terminal 111 responds to the first device connection operation initiated by the user. The vehicle-mounted terminal 111 may control the vehicle to vibrate through the vehicle's central control system, or the motor in the driver's seat to vibrate, or the steering wheel to vibrate, or the ultrasonic tactile feedback array configured in the car to vibrate, thereby generating a first vibration signal carrying the device connection information.

[0186] Step 3: Since the user is wearing a smart watch 112 and the user is in the driver's seat or holding the steering wheel, the first vibration signal can be transmitted through the user's arm. The smart watch 112 has a built-in motion sensor. The first vibration signal is transmitted to the smart watch 112 through the human body, causing the smart watch 112 to vibrate and be detected by the motion sensor. The smart watch 112 obtains the first vibration signal through the motion sensor, analyzes the first vibration signal, and determines that the first vibration signal carries device connection information.

[0187] Step 4: After the smart watch 112 receives the first vibration signal containing the device connection information, it sends a BLE response signal for connection handshake through the Bluetooth wireless module; wherein the BLE response signal carries a request identifier for the device connection information carried by the first vibration signal.

[0188] Step 5: The vehicle terminal 111 receives the BLE response signal through the Bluetooth wireless module and extracts the device connection information carried in the BLE response signal. If the request identifier is consistent with the device connection information of the first vibration signal sent previously, the vehicle terminal 111 establishes a Bluetooth connection with the smart watch 112.

[0189] In this scenario, the first vibration signal is transmitted through the human body as a transmission medium to establish a wireless connection between the vehicle-mounted terminal 111 and the smart watch 112 worn on the wrist. Similar to the previous scenario, the convenience and accuracy of the wireless connection operation are improved. In addition, because the amplitude of the first vibration signal is relatively large compared to that of a smart phone when the user is in a car, the accuracy of the first vibration signal recognition can be improved.

[0190] Scenario 3: Fig.12 A schematic diagram of a wireless connection scenario of another embodiment of the present application is shown. Fig.12 As shown, the electronic device in this embodiment is the controller 121, the propagation medium is the human body, and the target device is the smart glasses 122. The implementation process is as follows:

[0191] Step 1: The user holds the controller 121, such as a game controller or other control device. In the scenario of playing a somatosensory game, in addition to holding the controller 121, the user can also wear smart glasses 122 and somatosensory clothing, so as to improve the accuracy of the game operation experience and the authenticity of the scene simulation. In this scenario, the user clicks the corresponding button on the controller 121 to initiate the first device connection operation, such as long pressing the "X" button on the controller 121.

[0192] Step 2: In response to a first device connection operation initiated by a user, the controller 121 generates a first vibration signal carrying device connection information through a built-in electric motor.

[0193] Step 3: Since the user holds the controller 121 and wears the smart glasses 122 on his head, the first vibration signal can be transmitted through the human body. The smart glasses 122 have a built-in motion sensor. The first vibration signal is transmitted to the smart glasses 122 through the human body, causing the smart glasses 122 to vibrate and be detected by the motion sensor. The smart glasses 122 obtain the first vibration signal through the motion sensor, analyze the first vibration signal, and determine that the first vibration signal carries the device connection information.

[0194] Step 4: After the smart glasses 122 receive the first vibration signal containing the device connection information, they send a BLE response signal for connection handshake through the Bluetooth wireless module; wherein the BLE response signal carries a request identifier for the device connection information carried by the first vibration signal.

[0195] Step 5: The controller 121 receives the BLE response signal through the Bluetooth wireless module and extracts the device connection information carried in the BLE response signal. If the device connection information is consistent with the device connection information of the first vibration signal sent previously, the controller establishes a Bluetooth connection with the smart glasses 122.

[0196] In this scenario, the first vibration signal is transmitted through the human body as a transmission medium to establish a wireless connection between the controller and the smart watch worn by the user, which is the same as the previous scenario, improving the convenience and accuracy of the wireless connection operation.

[0197] It can be seen from the above that a wireless connection method provided by an embodiment of the present application can generate a first vibration signal containing device connection information through an electronic device, and transmit the first vibration signal to a target device through a propagation medium. After the target device receives the first vibration signal sent by the electronic device, it generates a corresponding response signal, and after the electronic device receives the response signal, it establishes a wireless connection between the above two devices to achieve automatic establishment of a wireless connection. Compared with the existing wireless connection technology, this embodiment does not require the user to manually select the target device to be connected. It only needs to place the two devices to be connected on the same medium that can transmit the first vibration signal, such as establishing a wireless connection between a handheld device and a wearable device, which reduces the operating steps required for the wireless connection operation, improves the convenience of the wireless connection, and solves the problem of unclear directionality of the wireless connection.

[0198] Embodiment 2:

[0199] Compared with the previous embodiment, the wireless connection method of this embodiment involves two electronic devices, namely a first electronic device and a second electronic device, wherein a wireless connection is established between the first electronic device and the second electronic device, and if any electronic device and the target device are attached to the same propagation medium, the electronic device can be used as an intermediate device to establish a wireless connection between the other electronic device and the target device. For example, if the first electronic device and the target device are both placed on a desktop, the first electronic device can be used as an intermediate device to establish a wireless connection between the second electronic device and the target device. Of course, if the second electronic device and the target device are both placed on the same desktop, the second electronic device can be used as an intermediate device to establish a wireless connection between the first electronic device and the target device.

[0200] The following description is made by taking the first electronic device as an intermediate device as an example. Fig.13 An interactive flow chart of a wireless connection method provided by an embodiment of the present application is shown, and the details are as follows:

[0201] In S1301, the first electronic device generates a second vibration signal for establishing a wireless connection between the second electronic device and the target device in response to a second device connection operation initiated by the user; the second vibration signal carries device connection information; and the second vibration signal is transmitted to the target device via a transmission medium between the first electronic device and the target device.

[0202] In this embodiment, the first electronic device can receive a second device connection operation initiated by a user. Different from the first device connection operation, the first device connection operation is not used to instruct the currently operating first electronic device to establish a wireless connection with the target device, but is used to establish a communication connection between the second electronic device and the target device.

[0203] In a possible implementation, the first electronic device may be pre-configured with a default connection device, that is, when a second device connection operation initiated by a user is detected, the default connection device is identified as the second electronic device that needs to be connected to the target device, without the user specifying the second electronic device.

[0204] In one possible implementation, if a first electronic device is connected to another electronic device via a wireless communication module, when a second device connection operation initiated by a user is detected, the other electronic device currently connected is identified as the second electronic device that needs to be connected to the target device, without the user having to specify the second electronic device.

[0205] In a possible implementation, the first electronic device in S1301 responds to the second device connection operation initiated by the user by: the first electronic device responds to the device selection operation initiated on the device selection interface, determines the device identification of the second electronic device associated with the device selection operation; and generates device connection information based on the device identification of the second electronic device. Exemplarily, Fig.14 FIG. 1 is a schematic diagram showing a device selection interface provided by an embodiment of the present application. Fig.14 In (a), the main interface of the first electronic device may display a setting application 141, and the user may enter the setting interface of the first electronic device by clicking an icon corresponding to the setting application 141, that is, Fig.14 In (b), a wireless connection setting control 142 is displayed in the setting interface of the first electronic device. In this embodiment, the wireless connection setting control 142 is specifically used to set the Bluetooth wireless connection of the first electronic device. Therefore, the wireless connection setting control 142 can be specifically displayed as "Bluetooth" in the setting interface. When the first electronic device detects that the user clicks the above control 142, it can enter the Bluetooth setting page, that is, Fig.14(c) The Bluetooth setting page displays a "connect new device" control, a "bridge other devices" control 143, and a list of connectable devices. If the first electronic device detects that the user clicks the "bridge other devices" control 143, it can recognize that the user has initiated a second device connection operation and output a device selection interface for bridging to prompt the user to select a second electronic device, that is, Fig.14 (d) in the figure. The device selection interface displays other electronic devices to which the first electronic device is connected. The first electronic device can send interactive data to the second electronic device through the wireless communication module. The first electronic device can receive a selection operation initiated by the user. For example, if the user selects "LaptopX" as the second electronic device, the first electronic device will establish a wireless connection between LaptopX and the target device.

[0206] In this embodiment, the specific process of generating the second vibration signal is the same as that of the previous embodiment. For a specific description, please refer to the relevant description of S701, which will not be repeated here. It should be noted that if the second vibration signal carries a device identifier, the device identifier is used to indicate the device to which the target device needs to be connected, then the device identifier is specifically the device identifier of the second electronic device.

[0207] In S1302, the first electronic device sends the device connection information to the second electronic device for storage.

[0208] In this embodiment, a communication connection has been established between the first electronic device and the second electronic device, that is, data can be exchanged between the two devices. Therefore, the first electronic device can send device connection information to the second electronic device through the established communication link to inform the second electronic device that the first electronic device has sent the second vibration signal containing the device connection information to the target device.

[0209] In this embodiment, after receiving the device connection information, the second electronic device will start the monitoring operation of the response signal, such as turning on the wireless communication module to receive the response signal sent by the target device through the wireless communication module. For example, the second electronic device can turn on the Bluetooth module and monitor whether the target device has sent a BLE response signal containing the device connection information through the Bluetooth module. Since the wireless connection between electronic devices is carried out, a two-way handshake method is generally adopted, that is, the device initiating the connection sends a connection request, and the other device feeds back a response signal to the device initiating the connection. At this time, the two devices determine the wireless connection. When the second electronic device receives the connection monitoring instruction sent by the first electronic device, it identifies the process of a handshake that has been carried out, that is, it identifies that the second electronic device has sent the device connection information to the target device. It only needs to receive the connection response signal fed back by the target device to determine that the wireless connection between the two has been established. In the above connection process, the first electronic device acts as a role that replaces the second electronic device to send the device connection information, that is, an intermediate device.

[0210] In S1303, the target device receives the second vibration signal sent by the first electronic device through a propagation medium.

[0211] In this embodiment, the specific process of the target device receiving and parsing the second vibration signal is the same as that in the previous embodiment. For a specific description, please refer to the relevant description of S702, which will not be repeated here. It should be noted that since the device connection information carried in the second vibration signal sent by the first electronic device is used to indicate that the electronic device to be connected is the second electronic device, after the target device parses the second vibration signal, the device connection information obtained is also used to indicate the connection with the second electronic device.

[0212] In S1304, the target device sends a response signal including the device connection information.

[0213] In this embodiment, the specific process of the target device sending a response signal is the same as that in the previous embodiment. For a specific description, please refer to the relevant description of S703, which will not be repeated here. It should be noted that the above-mentioned device connection information is specifically used to indicate that the target device establishes a wireless connection with the second electronic device. In one possible implementation, the device connection information may include a device identifier of the second electronic device.

[0214] In S1305, after receiving the response signal, the second electronic device matches the device connection information in the response signal with the stored device connection information, and establishes a wireless connection with the target device if they match.

[0215] In this embodiment, the second electronic device will start the listening operation of the response signal after receiving the connection listening instruction. Therefore, when the target device sends the response signal, the above-mentioned response signal can be received by the wireless module. At this time, after the second electronic device receives the response signal, it will match the device connection information in the response signal with the stored device connection information. If the match is consistent, it is recognized that the wireless connection between the target device and the target device has been established.

[0216] In this embodiment, the specific process of establishing the wireless connection by the second electronic device is the same as that in the previous embodiment. For specific description, please refer to the relevant description of S704, which will not be repeated here.

[0217] The wireless connection method provided by this embodiment is described below by taking an application scenario as an example.

[0218] Fig.15 A schematic diagram of a wireless connection scenario according to an embodiment of the present application is shown. Fig.15 As shown, in this embodiment, the first electronic device is a smart phone 151, the second electronic device is a smart TV 152, the transmission medium is a human body, and the target device is a smart watch 153. The implementation process is as follows:

[0219] Step 1: The smart phone 151 and the smart TV 152 can establish a wireless connection through a WIFI module, for example, the smart phone 151 is connected to the local area network of the smart TV 152. The smart TV 152 needs to establish a wireless connection with the smart watch 153 through a Bluetooth module.

[0220] Step 2: The user holds the smartphone 151 and initiates a second device connection operation to establish a wireless connection through the smartphone 151. For the specific operation process, see Fig.14 mode of operation.

[0221] Step 3: In response to the user initiating a second device connection operation, the smartphone 151 generates a second vibration signal carrying device connection information through the electric motor built into the smartphone 151; at the same time, the smartphone 151 sends the device connection information to the smart TV 152 through the WIFI module, and the smart TV 152 executes the monitoring process of the response signal.

[0222] Step 4: Since the user holds the smartphone 151 and wears the smart watch 153 on his wrist, the second vibration signal can be transmitted through the user's arm. The smart watch 153 has a built-in motion sensor. The second vibration signal is transmitted to the smart watch 153 through the human body, causing the smart watch 153 to vibrate and be detected by the motion sensor. The smart watch 153 obtains the second vibration signal through the motion sensor, analyzes the second vibration signal, and determines that the second vibration signal carries the device connection information.

[0223] Step 5: After the smart watch 153 receives the second vibration signal containing the device connection information, it sends a BLE response signal for connection handshake through the Bluetooth wireless module; wherein the BLE response signal carries the device connection information carried by the second vibration signal; the device connection information can be the device identification of the smart TV 152.

[0224] Step 6: The smart TV 152 receives the BLE response signal through the Bluetooth wireless module and extracts the device connection information carried in the BLE response signal, which may be the device identification of the smart TV 152. In this case, if the device connection information is consistent with the local device identification, the smart TV 152 establishes a Bluetooth connection with the smart watch 153.

[0225] In this scenario, since the smartphone and the smart TV have established a wireless connection, the smartphone can be used as an intermediate device to generate a second vibration signal through the smartphone and transmit the second vibration signal through the human arm as a transmission medium, thereby establishing a wireless connection between the smart TV and the smart watch worn on the wrist. Relying on the smartphone, a wireless connection between the smart wearable device and other devices can be quickly established.

[0226] It can be seen from the above that a wireless connection method provided in an embodiment of the present application can establish a wireless connection between a second electronic device and a target device by using a first electronic device as an intermediate device, thereby solving the problems of complex operation of the wireless connection process and poor connection directionality, improving the convenience of wireless connection while also improving the accuracy of selecting the required connection device.

[0227] Embodiment three:

[0228] Embodiment 1 explains the implementation process of the wireless connection method from the perspective of interaction between an electronic device and a target device. Similarly, Embodiment 2 also explains the implementation process of the wireless connection method from the perspective of interaction between a first electronic device, a second electronic device and a target device. In Embodiment 3, the implementation process of the wireless connection method is explained with the electronic device operated by the user (i.e., the electronic device in Embodiment 1, the first electronic device in Embodiment 2) as the executor of the process. Fig.16 The following is a flowchart of a method for wireless connection on an electronic device side provided by an embodiment of the present application, which is described in detail as follows:

[0229] In S1601, a device connection operation initiated by a user is received; wherein the device connection operation may be the first device connection operation in the first embodiment, or may be the second device connection operation in the second embodiment.

[0230] In S1602, in response to the device connection operation, a predetermined vibration signal is generated; the vibration signal carries device connection information; and the vibration signal is transmitted to the target device through the propagation medium between the electronic device and the target device. If the device connection operation is the first device connection operation in Example 1, the electronic device generates a first vibration signal, and the first vibration signal is used to establish a wireless connection between the electronic device in Example 1 and the target device; if the device connection operation is the second device connection operation in Example 2, the first electronic device generates a second vibration signal, and the second vibration signal is used to establish a wireless connection between the second electronic device and the target device.

[0231] Optionally, S1602 further includes:

[0232] According to the device connection operation, an information sequence for establishing a wireless connection with the target device is generated, and the information sequence is encoded to obtain a coding sequence;

[0233] The coding sequence is key-modulated to generate the vibration signal.

[0234] Among them, if the device connection operation is the first device connection operation in Example 1, the information sequence generated by the electronic device is the information sequence associated with the electronic device in Example 1, what is obtained is the coding sequence associated with the electronic device in Example 1, and what is generated is a first vibration signal, which is used to establish a wireless connection between the electronic device in Example 1 and the target device; if the device connection operation is the second device connection operation in Example 2, the information sequence generated by the first electronic device is the information sequence associated with the second electronic device in Example 2, what is obtained is the coding sequence associated with the second electronic device in Example 2, and what is generated is a second vibration signal, which is used to establish a wireless connection between the second electronic device in Example 2 and the target device.

[0235] Optionally, the vibration signal carries a device identification of an electronic device to which the target device needs to connect. If the vibration signal is the first vibration signal in Embodiment 1, the first vibration signal carries the device identification of the electronic device that generates the vibration signal; if the vibration signal is the second vibration signal in Embodiment 2, the second vibration signal carries the device identification of a second electronic device that has established a wireless connection with the first electronic device.

[0236] Optionally, if the device connection operation is the second device connection operation in Embodiment 2, after S1602, the wireless connection method further includes:

[0237] In S1603, in response to the second device connection operation, device connection information is sent to the second electronic device, so that the second electronic device monitors a response signal sent by the target device.

[0238] Optionally, if the device connection operation is the first device connection operation in Embodiment 1, after S1602, the method further includes:

[0239] In S1604, in response to the first device connection operation, a signal containing device connection information sent by the target device is received, and the device connection information in the response signal is matched with the stored device connection information. If the match is consistent, a wireless connection with the target device is established.

[0240] Embodiment 4:

[0241] Embodiment 1 explains the implementation process of the wireless connection method from the perspective of interaction between an electronic device and a target device. Similarly, Embodiment 2 also explains the implementation process of the wireless connection method from the perspective of interaction between a first electronic device, a second electronic device and a target device. In Embodiment 4, the implementation process of the wireless connection method is explained with the target device to be connected as the executor of the process. Fig.17 The following is a flowchart of a method for wireless connection on the target device side provided by an embodiment of the present application, which is described in detail as follows:

[0242] In S1701, a vibration signal sent by a first electronic device is received through a propagation medium.

[0243] In S1702, the device connection information in the vibration signal is obtained, and a response signal containing the device connection information is sent, so that after receiving the response signal, other electronic devices match the device connection information in the response signal with the device connection information stored in themselves, and if the match is consistent, a wireless connection with the target device is established, wherein the other electronic device is the first electronic device or a device other than the target device that is connected to the first electronic device.

[0244] Further, as another embodiment of the present application, S1702 includes:

[0245] Perform keying demodulation on the vibration signal to obtain a coding sequence;

[0246] The coding sequence is decoded to obtain the information sequence, and the device connection information is acquired from the information sequence.

[0247] Embodiment five:

[0248] The second embodiment describes the implementation process of the wireless connection method from the perspective of interaction between the first electronic device, the second electronic device and the target device, while in the fifth embodiment, the second electronic device is the executor of the process to describe the implementation process of the wireless connection method. Fig.18 The following is a flowchart of a method for wireless connection on the second electronic device side provided by an embodiment of the present application, which is described in detail as follows:

[0249] In S1802, after receiving a response signal sent by the target device, the device connection information in the response signal is matched with the stored device connection information, and the device connection information in the response signal is transmitted to the target device via a communication medium between the first electronic device and the target device.

[0250] In S1803, if the match is consistent, a wireless connection with the target device is established.

[0251] Optionally, before S1802, the method further includes:

[0252] In S1801, device connection information sent by the first electronic device is received and stored.

[0253] It should be understood that the size of the serial numbers of the steps in the above embodiments 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.

[0254] Embodiment six:

[0255] Corresponding to the wireless connection method described in the third embodiment above, Fig.19 A structural block diagram of a wireless connection device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0256] Reference Fig.19 , the wireless connection device includes:

[0257] The device connection operation acquisition unit 191 is used to receive a device connection operation initiated by a user;

[0258] The vibration signal sending unit 192 is used to generate a predetermined vibration signal in response to a device connection operation initiated by a user; the vibration signal carries device connection information; and the vibration signal is transmitted to the target device via a transmission medium between the electronic device and the target device.

[0259] Optionally, the wireless connection device further includes:

[0260] The wireless connection establishing unit 193 is used to receive a signal containing device connection information sent by the target device, and match the device connection information in the response signal with the stored device connection information. If the match is consistent, a wireless connection is established with the target device.

[0261] Optionally, the vibration signal sending unit 192 includes:

[0262] The coding sequence generating unit 1921 is used to generate an information sequence including device connection information, and perform coding processing on the information sequence to obtain a coding sequence;

[0263] The coding sequence modulation unit 1922 is used to perform keying modulation on the coding sequence to obtain the vibration signal.

[0264] Optionally, the vibration signal is used to establish a wireless connection between a connected device and a target device, the connected device is specifically a device that has established a wireless connection with the electronic device, and the wireless connection device further includes:

[0265] The device connection information sending unit 194 is used to send the device connection information to the connected device, so that the connected device establishes a wireless connection with the target device.

[0266] Therefore, the wireless connection device provided in the embodiment of the present application can also generate a vibration signal containing device connection information through an electronic device, and transmit the vibration signal to the target device through a propagation medium. After the target device receives the vibration signal sent by the electronic device, it generates a corresponding connection response signal, and after the electronic device receives the connection response signal, it establishes a wireless connection between the above two devices to achieve automatic establishment of a wireless connection. Compared with the existing wireless connection technology, this embodiment does not require the user to manually select the target device to be connected. It only needs to place the two devices to be connected on the same medium that can transmit vibration signals, such as establishing a wireless connection between a handheld device and a wearable device, which reduces the operating steps required for the wireless connection operation, improves the convenience of the wireless connection, and solves the problem of unclear directionality of the wireless connection.

[0267] Embodiment seven:

[0268] Corresponding to the wireless connection method described in the fourth embodiment above, Fig. 20 A structural block diagram of a wireless connection device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0269] Reference Fig. 20 , the wireless connection device includes:

[0270] The vibration signal receiving unit 201 is used to receive a vibration signal sent by the first electronic device through a propagation medium between the first electronic device and the target device, wherein the vibration signal carries device connection information;

[0271] A device connection information acquisition unit 202, configured to acquire device connection information in the vibration signal;

[0272] The response signal sending unit 203 is used to send a response signal containing the device connection information, so that after receiving the response signal, other electronic devices match the device connection information in the response signal with the device connection information stored in themselves, and if the match is consistent, establish a wireless connection with the target device, wherein the other electronic device is the first electronic device or a device other than the target device that is connected to the first electronic device.

[0273] Optionally, the device connection information acquiring unit 202 further includes:

[0274] The code sequence demodulation unit 2021 is used to perform keying demodulation on the vibration signal to obtain a code sequence;

[0275] The coding sequence decoding unit 2022 is used to decode the coding sequence to obtain the information sequence, and obtain the device connection information from the information sequence.

[0276] Embodiment eight:

[0277] Corresponding to the wireless connection method described in the fifth embodiment above, Fig.21 A structural block diagram of a wireless connection device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0278] Reference Fig.21 , the wireless connection device includes:

[0279] The device connection information storage unit 211 is used to receive and store the device connection information sent by the first electronic device;

[0280] a response signal receiving unit 212, configured to match the device connection information in the response signal with the stored device connection information after receiving the response signal sent by the target device, wherein the device connection information in the response signal is transmitted to the target device via the communication medium between the first electronic device and the target device;

[0281] The wireless connection establishing unit 213 is configured to establish a wireless connection between the second electronic device and the target device if the match is consistent.

[0282] The wireless connection method provided in the embodiment of the present application can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific type of electronic devices. Among them, the first electronic device, the second electronic device and the target device can all be any type of electronic device mentioned above, as well as various components of the following electronic devices.

[0283] For example, the electronic device can be a station (STAION, ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a computer, a laptop computer, a handheld communication device, a handheld computing device, and / or other devices for communicating on a wireless system and a next-generation communication system, such as a mobile terminal in a 5G network or a mobile terminal in a future evolved Public Land Mobile Network (PLMN) network, etc.

[0284] As an example but not limitation, when the electronic device is a wearable device, the wearable device can also be a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. It collects the user's biometric data by attaching it to the user. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart bracelets and smart jewelry with unlockable touch screens.

[0285] Fig. 22 A schematic structural diagram of an electronic device 100 is shown.

[0286] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a motion sensor, which may include a pressure sensor 180A, a gyroscope sensor 180B and an acceleration sensor 180E. The sensor module 180 may also include an air pressure sensor 180C, a magnetic sensor 180D, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0287] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0288] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The processor may be used to perform the operations of "generating an information sequence for establishing a wireless connection with the target device, and encoding the information sequence to obtain a coding sequence" in one implementation of S1601 and S1602 in the third embodiment, and "matching the device connection information in the response signal with the stored device connection information, and establishing a wireless connection with the target device if the match is consistent" in S1603, and may also be used to perform the operations of S1702 in the fourth embodiment, and may also be used to perform the operations of S1802 to S1803 in the fifth embodiment. Correspondingly, the processor may include the device connection operation acquisition unit 191, the coding sequence generation unit 1921, the wireless connection establishment unit 193 and the device connection information sending unit 194 in Example 6, and may also include the device connection information acquisition unit 202, the coding sequence demodulation unit 2021 and the coding sequence decoding unit 2022 in Example 7, and may also include the response signal receiving unit 212 and the wireless connection establishment unit 213 in Example 8.

[0289] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0290] A memory may also be provided in the processor 110 for storing instructions and data. For example, the first electronic device may store the generated device connection information, and the second electronic device may store the device connection information sent from the first electronic device. Correspondingly, the above-mentioned memory may include the device connection information storage unit 211 in Embodiment 8. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.

[0291] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0292] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0293] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0294] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the target device can transmit the received first vibration signal to the processor for decoding through the UART interface, or the first electronic device transmits the received response signal to the processor through the UART interface for matching and identification, or the second electronic device transmits the received response signal to the processor through the UART interface for matching and identification. For example: the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to realize the function of playing music through a Bluetooth headset.

[0295] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0296] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0297] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0298] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. Among them, the wireless communication module 160 can be used to execute the "receive a signal containing device connection information sent by the target device" operation of S1603 in the third embodiment; it can also be used to execute the "send a response signal containing the device connection information" operation of S1702 in the fourth embodiment; it can also be used to execute the "receive device connection information sent by the first electronic device" in S1801 and the operation of S1803.

[0299] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0300] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a wireless connection function, a vibration wave generation function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0301] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0302] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

[0303] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0304] The pressure sensor 180A, the gyro sensor 180B and the acceleration sensor 180E may be collectively referred to as a motion sensor. The motion sensor may be used to perform the operation of S1701 in the fourth embodiment. The motion sensor may be used as a part of the vibration signal receiving unit 201 in the seventh embodiment.

[0305] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

[0306] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0307] Motor 191 can generate vibration prompts, such as vibration signals in the present application, that is, motor 191 can be used to perform the operation of S1602 in Example 3. The motor 191 can be used as a part of the vibration signal sending unit 192 in Example 6. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0308] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 100.

[0309] Fig.23 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.

[0310] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0311] The application layer can include a series of application packages.

[0312] like Fig.23 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0313] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0314] like Fig.23 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0315] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0316] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0317] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0318] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0319] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0320] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0321] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0322] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0323] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0324] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0325] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0326] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0327] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0328] A 2D graphics engine is a drawing engine for 2D drawings.

[0329] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0330] The following is an illustrative description of the workflow of the software and hardware of the electronic device 100 in conjunction with capturing a photo scene.

[0331] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture static images or videos through the camera 193.

[0332] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0333] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0334] An embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.

[0335] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0336] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0337] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0338] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0339] Those of ordinary skill 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, or a combination of computer software and electronic hardware. 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.

[0340] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0341] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0342] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A wireless connection method, characterized in that: include: The first electronic device generates a predetermined vibration signal in response to a device connection operation initiated by a user; the vibration signal carries device connection information; the vibration signal is transmitted to the target device via a transmission medium between the first electronic device and the target device; the vibration signal is generated by encoding the device connection information using at least two error correction coding algorithms; The target device receives the vibration signal sent by the first electronic device through the propagation medium; The target device obtains the device connection information in the vibration signal, and sends a response signal including the device connection information; After receiving the response signal, the second electronic device matches the device connection information in the response signal with the stored device connection information, and if the match is consistent, establishes a wireless connection with the target device; Wherein, the first electronic device and the second electronic device are different devices; After the first electronic device generates a predetermined vibration signal in response to a device connection operation initiated by the user, the method further includes: The first electronic device sends the device connection information to the second electronic device for storage.

2. The method according to claim 1, characterized in that The first electronic device generates a predetermined vibration signal in response to a device connection operation initiated by a user; the vibration signal carries device connection information, including: The first electronic device generates an information sequence including the device connection information, and encodes the information sequence to obtain a coded sequence; The first electronic device performs keying modulation processing on the coding sequence to obtain the vibration signal.

3. The method according to claim 2, characterized in that The target device obtains the device connection information in the vibration signal, including: The target device performs keying demodulation processing on the vibration signal to obtain the coding sequence; The target device decodes the coding sequence to obtain the information sequence, and acquires the device connection information from the information sequence.

4. A wireless connection method, applied to a first electronic device, characterized in that: include: The first electronic device receives a device connection operation initiated by a user; The first electronic device generates a predetermined vibration signal in response to the device connection operation; the vibration signal is generated by encoding the device connection information through at least two error correction coding algorithms; the vibration signal carries the device connection information; the vibration signal is transmitted to the target device through a transmission medium between the first electronic device and the target device; The first electronic device sends the device connection information to the second electronic device for storage to establish a wireless connection between the second electronic device and the target device; the second electronic device receives a response signal containing the device connection information sent by the target device, and matches the device connection information in the response signal with the stored device connection information, and establishes the wireless connection with the target device if the match is consistent.

5. The method according to claim 4, characterized in that The first electronic device generates a predetermined vibration signal in response to the device connection operation, including: The first electronic device generates an information sequence including the device connection information, and encodes the information sequence to obtain a coded sequence; The first electronic device performs keying modulation processing on the coding sequence to obtain the vibration signal.

6. A wireless connection method, applied to a second electronic device, the second electronic device has established a wireless connection with a first electronic device, characterized in that: include: The second electronic device receives and stores the device connection information sent by the first electronic device; The second electronic device receives a response signal sent by the target device, and matches the device connection information in the response signal with the stored device connection information, wherein the device connection information in the response signal is transmitted between the first electronic device and the target device through a vibration signal; the vibration signal is transmitted to the target device by the first electronic device through a transmission medium between the first electronic device and the target device; the vibration signal is generated by encoding the device connection information through at least two error correction coding algorithms; If the match is consistent, the second electronic device establishes a wireless connection with the target device.

7. A wireless connection method, applied to a target device, characterized in that: include: The target device receives a vibration signal sent by the first electronic device through a transmission medium between the first electronic device and the target device, wherein the vibration signal carries device connection information; the vibration signal is generated by encoding the device connection information through at least two error correction coding algorithms; the device connection information is sent by the first electronic device to the second electronic device, so that the second electronic device stores the device connection information; The target device obtains the device connection information in the vibration signal and sends a response signal containing the device connection information, so that after receiving the response signal, the second electronic device matches the device connection information in the response signal with the device connection information stored in itself, and if the match is consistent, establishes a wireless connection with the target device, wherein the second electronic device has established a wireless connection with the first electronic device.

8. The method according to claim 7, characterized in that The target device obtains the device connection information in the vibration signal, including: The target device performs keying demodulation processing on the vibration signal to obtain a coding sequence; The target device decodes the coding sequence to obtain an information sequence, and acquires the device connection information from the information sequence.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 4 to 5 is implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to claim 6 is implemented.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 7 to 8 is implemented.

12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the computer implements the method according to any one of claims 4 to 5, claim 6, and / or any one of claims 7 to 8.

13. A wireless connection system, characterized in that: The system comprises: the electronic device according to claim 9, the electronic device according to claim 10, and the electronic device according to claim 11.

Citation Information

Patent Citations

  • Method for establishing wireless connection through vibration, electronic apparatus and recording medium

    CN108024011A

  • Communication method and communication system of wearable device and related device

    CN109982305A

  • KR20190008469A