Communication connection establishment method, system, electronic device and storage medium

By parsing and forwarding the connection configuration information of the terminal device through the intermediate device, the cumbersome problem of wireless connection of non-handheld devices is solved, convenient Bluetooth and Wi-Fi connection is achieved, power consumption is reduced, and user experience is improved.

CN114339697BActive Publication Date: 2025-10-03HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011065535.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-30
Publication Date
2025-10-03
Estimated Expiration
2040-09-30

AI Technical Summary

Technical Problem

In the prior art, wireless connection operations between non-handheld devices are complicated, NFC tags cannot be effectively utilized, and the user experience is poor.

Method used

Obtain and parse the data of the terminal device through the intermediate device to determine whether it contains connection configuration information, and use the intermediate device to establish a communication connection and forward the necessary connection configuration information to achieve convenient wireless interconnection, supporting Bluetooth and Wi-Fi connections.

Benefits of technology

It achieves convenient wireless connection, reduces power consumption and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114339697B_ABST
    Figure CN114339697B_ABST
Patent Text Reader

Abstract

The present application relates to a method, system, electronic device and storage medium for establishing a communication connection, and the method is applicable to a system consisting of an intermediate device, a first device and a second device. First, the intermediate device obtains the first data of the first device and parses the first data. When the intermediate device determines that the first data contains the connection configuration information required to establish a wireless connection with the first device, the intermediate device establishes a first communication connection with the first device. Then the intermediate device obtains the second data of the second device and parses the second data. When the intermediate device determines that the second data contains the connection configuration information required to establish a wireless connection with the second device, the intermediate device sends third data to the first device to instruct the first device to establish a second communication connection with the second device. The present application can establish a more convenient communication connection between two terminal devices with a better user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communications, and in particular to a method, system, electronic device, and storage medium for establishing a communication connection. Background Art

[0002] Near Field Communication (NFC) is a short-range wireless connection technology based on Radio Frequency Identification Devices (RFID). It operates at a frequency of 13.56 MHz and currently supports four transmission rates: 106 Kbit / s, 212 Kbit / s, 424 Kbit / s, or 848 Kbit / s. The effective communication range is 0-20 cm, with a typical value of 4 cm.

[0003] Currently, see Figure 1a To facilitate wireless connections between mobile terminals and electronic devices capable of wirelessly connecting to them, many such electronic devices are equipped with NFC tags. These tags contain the information required by the mobile terminal to establish a wireless connection with them, namely, connection configuration information. This allows the mobile terminal to directly initiate a wireless connection to the electronic device based on the connection configuration information after reading the NFC tag, making it easier and faster to establish a wireless connection between the mobile terminal and the electronic device.

[0004] See also Figure 1b , a schematic diagram of establishing a wireless connection between electronic devices not suitable for handheld use. In this solution, if neither device is suitable for handheld use, the traditional wireless connection establishment process is the only way to establish a wireless connection. Clearly, this technical solution involves multiple steps and is cumbersome. It also fails to utilize existing NFC tags on the devices, effectively unleashing the value of these tags and resulting in a poor user experience. Summary of the Invention

[0005] In view of this, it is necessary to provide a method, system, electronic device and storage medium for establishing a communication connection that is more convenient and provides a better user experience.

[0006] In a first aspect, the present application provides a method for establishing a communication connection, applicable to a system comprising an intermediate device, a first device, and a second device. The method comprises: in response to detecting that the distance between the intermediate device and the first device is a first preset distance, the intermediate device obtains first data from the first device; in response to obtaining the first data, the intermediate device parses the first data to determine whether the first data contains connection configuration information required for establishing a wireless connection with the first device; in response to the intermediate device determining that the first data contains the connection configuration information required for establishing a wireless connection with the first device, the intermediate device establishes a first communication connection with the first device; in response to detecting that the distance between the intermediate device and the second device is a second preset distance, the intermediate device obtains second data from the second device; in response to obtaining the second data, the intermediate device parses the second data to determine whether the second data contains the connection configuration information required for establishing a wireless connection with the second device; in response to the intermediate device determining that the second data contains the connection configuration information required for establishing a wireless connection with the second device, the intermediate device sends third data to the first device, the third data being used to instruct the first device to establish a second communication connection with the second device. In embodiments of the present application, convenient wireless interconnection between two devices (a first device and a second device) can be achieved with the aid of the intermediate device. In particular, the intermediate device first establishes a first communication connection with the first device, then reads the second data of the second device, and forwards the information required to establish a connection with the second device in the second data to the first device through the first communication connection established with the first device, and then the first device initiates a key process of wireless connection to the second device.

[0007] In one possible implementation, after the intermediate device sends the third data to the first device, the method further includes: in response to receiving the third data sent by the intermediate device, the first device first disconnects the first communication connection with the intermediate device and then establishes a second communication connection with the second device. The above technical solution can achieve the effect of saving power and reducing power consumption.

[0008] In one possible implementation, before the intermediate device obtains the first data from the first device, the method further includes: the intermediate device receiving a first operation; and in response to detecting that the device has received the first operation, the intermediate device adjusting its operating mode to the first mode. Obviously, in the above technical solution, the first mode is the "NFC assisted connection" mode. By setting the first mode, the intermediate device can effectively prevent interference caused by the intermediate device during the communication connection between the two terminal devices.

[0009] In one possible implementation, in response to the intermediate device determining that the second data contains connection configuration information required to establish a wireless connection with the second device, the intermediate device sends third data to the first device. This includes: in response to the intermediate device determining that the second data contains the connection configuration information required to establish a wireless connection with the second device, the intermediate device encapsulates the connection configuration information required to establish a wireless connection with the second device to obtain third data, and then sends the third data to the first device. The first data also includes first key information, which indicates whether the first device can establish a communication connection and / or the method by which the communication connection can be established; the second data also includes second key information, which indicates whether the second device can establish a communication connection and / or the method by which the communication connection can be established; and the third data also includes third key information, which indicates whether the first device can establish a communication connection with the second device and / or the method by which the first device can establish a communication connection with the second device. Obviously, in the above technical solution, when the intermediate device encapsulates the connection configuration information required to establish a wireless connection with the second device, the third key information can also be encapsulated. The third key information indicates to the first device that the user intends to connect the device to the target device (i.e., the second device). That is, the third key information is used to inform the first device that the third data includes configuration information required for establishing a wireless connection with the target device (ie, the second device) to be connected.

[0010] In one possible implementation, after the intermediate device establishes a first communication connection with the first device, the intermediate device sends a first notification message to the first device via the first communication connection. In the above technical solution, the first notification message includes at least one further key information, such as fourth key information. The fourth key information is used to inform the first device that it will later provide connection configuration information required to establish a wireless connection with the target device to be connected, thereby facilitating the first device's recognition of the user's intention to subsequently connect to the target device (i.e., the second device).

[0011] In one possible implementation, the first communication connection includes a Bluetooth connection and / or a WiFi connection, and the second communication connection includes a Bluetooth connection and / or a WiFi connection. In the above technical solution, the first communication connection and the second communication connection are not limited. For example, the two can be the same connection technology or different connection technologies. At the same time, the first communication connection and the second communication connection can include a Bluetooth connection, a Wi-Fi connection, or both. Of course, the Bluetooth connection and the Wi-Fi connection can be replaced by other types of communication connections.

[0012] In one possible implementation, the connection configuration information required to establish a wireless connection with a first device includes at least one of the first device's media access control address, a service set identifier (SSID), and an access password; and the connection configuration information required to establish a wireless connection with a second device includes at least one of the second device's media access control address, a service set identifier (SSID), and an access password. In the above technical solution, by setting at least one of the MAC address, SSID, and access password, a more convenient wireless connection can be established between the two devices, providing a better user experience.

[0013] In a second aspect, an embodiment of the present application further provides an electronic device comprising a touch screen, wherein the touch screen comprises a touch panel and a display screen; one or more processors; a memory; multiple applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs comprise instructions that, when executed by the electronic device, enable the electronic device to execute the communication connection establishment method of the first aspect of the embodiment of the present application and any possible design thereof.

[0014] The technical effects brought about by the second aspect can be found in the description of the methods of each design in the above method section, and will not be repeated here.

[0015] In a second aspect, an embodiment of the present application further provides a communication connection establishment system, comprising an intermediate device, a first device, and a second device; wherein the intermediate device is used to detect the distance between the intermediate device and the first device; in response to detecting that the distance between the intermediate device and the first device is a first preset distance, the intermediate device is further used to obtain first data of the first device; in response to obtaining the first data, the intermediate device is further used to parse the first data to determine whether the first data contains connection configuration information required to establish a wireless connection with the first device; in response to the intermediate device determining that the first data contains connection configuration information required to establish a wireless connection with the first device, the intermediate device is further used to connect to the first device The device establishes a first communication connection; the intermediate device is further used to detect the distance between the intermediate device and the second device; in response to detecting that the distance between the intermediate device and the second device is a second preset distance, the intermediate device is further used to obtain second data from the second device; in response to obtaining the second data, the intermediate device is further used to parse the second data to determine whether the second data contains connection configuration information required to establish a wireless connection with the second device; in response to the intermediate device determining that the second data contains connection configuration information required to establish a wireless connection with the second device, the intermediate device is further used to send third data to the first device, the third data being used to instruct the first device to establish a second communication connection with the second device. In an embodiment of the present application, convenient wireless interconnection between two devices (first and second devices) can be achieved with the help of an intermediate device. In particular, the intermediate device first establishes a first communication connection with the first device, then reads the second data of the second device, and forwards the information required to establish a connection with the second device in the second data to the first device via the first communication connection established with the first device, thereby initiating the key process of the first device initiating a wireless connection with the second device.

[0016] In one possible implementation, after the intermediate device sends the third data to the first device, the method further includes: in response to receiving the third data sent by the intermediate device, the first device first disconnects the first communication connection with the intermediate device and then establishes a second communication connection with the second device. The above technical solution can achieve the effect of saving power and reducing power consumption.

[0017] In one possible implementation, before the intermediate device obtains the first data from the first device, the process further includes: the intermediate device being configured to receive a first operation; and in response to detecting that the intermediate device has received the first operation, the intermediate device being configured to adjust its operating mode to the first mode. Obviously, in the above technical solution, the first mode is the "NFC assisted connection" mode. Setting the first mode effectively prevents the intermediate device from causing interference when two terminal devices are communicating.

[0018] In one possible implementation, in response to an intermediate device determining that the second data contains connection configuration information required to establish a wireless connection with the second device, the intermediate device sends third data to the first device. This includes: in response to the intermediate device determining that the second data contains the connection configuration information required to establish a wireless connection with the second device, the intermediate device encapsulates the connection configuration information required to establish a wireless connection with the second device to obtain third data, and then the intermediate device sends the third data to the first device. The first data also includes first key information, which indicates whether the first device can establish a communication connection and / or the method by which the communication connection can be established; the second data also includes second key information, which indicates whether the second device can establish a communication connection and / or the method by which the communication connection can be established; and the third data also includes third key information, which indicates whether the first device can establish a communication connection with the second device and / or the method by which the first device can establish a communication connection with the second device. In the above technical solution, when the intermediate device encapsulates the connection configuration information required to establish a wireless connection with the second device, the third key information can also be encapsulated. The third key information indicates that the first device recognizes the user's intention to connect to the target device (i.e., the second device). That is, the third key information is used to inform the first device that the third data includes configuration information required for establishing a wireless connection with the target device (ie, the second device) to be connected.

[0019] In one possible implementation, after the intermediate device establishes a first communication connection with the first device, the intermediate device is further configured to send a first notification message to the first device via the first communication connection. In the above technical solution, the first notification message includes at least one further key information, such as fourth key information. The fourth key information is used to inform the first device that connection configuration information required to establish a wireless connection with the target device to be connected will be provided later, thereby facilitating the first device's recognition of the user's intention to subsequently connect to the target device (i.e., the second device).

[0020] In one possible implementation, the first communication connection includes a Bluetooth connection and / or a WiFi connection, and the second communication connection includes a Bluetooth connection and / or a WiFi connection. In the above technical solution, the first communication connection and the second communication connection are not limited. For example, the two can be the same connection technology or different connection technologies. At the same time, the first communication connection and the second communication connection can include a Bluetooth connection, a Wi-Fi connection, or both. Of course, the Bluetooth connection and the Wi-Fi connection can be replaced by other types of communication connections.

[0021] In one possible implementation, the connection configuration information required to establish a wireless connection with a first device includes at least one of the first device's media access control address, a service set identifier (SSID), and an access password; and the connection configuration information required to establish a wireless connection with a second device includes at least one of the second device's media access control address, a service set identifier (SSID), and an access password. In the above technical solution, by setting at least one of the MAC address, SSID, and access password, a more convenient wireless connection can be established between the two devices, providing a better user experience.

[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the communication connection establishment method in the first aspect of the embodiment of the present application and any possible design thereof.

[0023] In addition, the technical effects brought about by the fourth aspect can be found in the description of the methods of each design in the above method part, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0025] Figure 1a A schematic diagram of establishing a wireless connection between existing electronic devices equipped with NFC tags;

[0026] Figure 1b A schematic diagram for establishing wireless connections between existing electronic devices that are not suitable for handheld use;

[0027] Figure 2 A flow chart of a method for establishing a communication connection provided in an embodiment of the present application;

[0028] Figure 3 A flow chart of another method for establishing a communication connection provided in an embodiment of the present application;

[0029] Figure 4 A flow chart of another method for establishing a communication connection provided in an embodiment of the present application;

[0030] Figure 5 A flow chart of another method for establishing a communication connection provided in an embodiment of the present application;

[0031] Figures 6a to 6eA schematic diagram of a communication connection method provided in an embodiment of the present application in a first scenario;

[0032] Figures 7a to 7f A schematic diagram of a communication connection method provided in an embodiment of the present application in a second scenario;

[0033] Figure 8 A schematic diagram of a communication connection establishment system provided in an embodiment of the present application;

[0034] Figure 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0035] Figure 10 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application;

[0036] Figures 11a to 11c A schematic structural diagram of another electronic device provided in an embodiment of the present application.

[0037] Description of main component symbols

[0038] Intermediate devices 60, 70, 80, 90, 100, 200, 300

[0039] First device 61, 71, 81, 91, 110, 210, 310

[0040] Second device 62, 72, 82, 92, 120, 220, 320

[0041] NFC modules 101, 201, 461, 503, and 603

[0042] Wireless communication modules 102, 112, 122, 202, 212, 222, 460, 502, 602

[0043] NFC tags 111, 121, 211, 221, 604

[0044] Electronic device 400, 500, 600 Processor 410 External memory interface 420

[0045] Internal memory 421 USB interface 430 Charging management module 440

[0046] Power management module 441 Battery 442 Antennas 1 and 2 Mobile communication module 450

[0047] Audio module 470 Speaker 470A Receiver 470B Microphone 470C

[0048] Headphone jack 470D Sensor module 480 Pressure sensor 480A

[0049] Gyroscope sensor 480B, air pressure sensor 480C, magnetic sensor 480D

[0050] Accelerometer 480E Distance sensor 480F Proximity sensor 480G

[0051] Fingerprint sensor 480H Temperature sensor 480J Touch sensor 480K

[0052] Ambient light sensor 480L Bone conduction sensor 480M Button 490 Motor 491

[0053] Indicator 492 Camera 493 Display 494 SIM card interface 495

[0054] The following specific implementation methods will further illustrate the present application in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0055] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0056] It should be noted that, in the embodiments of the present application, "at least one" refers to one or more, and more refers to two or more. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art in the technical field of the present application. The terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present invention. It should be understood that, in the present application, unless otherwise specified, " / " means or. For example, A / B can mean A or B. "A and / or B" in the present application is merely a description of an association relationship of associated objects, indicating that there can be three relationships: only A exists, only B exists, and A and B exist.

[0057] It should be noted that, in the embodiments of the present application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order. Features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.

[0058] The embodiment of the present application provides a method for establishing a communication connection, which uses an intermediate device to establish a communication connection between at least two terminal devices. Specifically, the method aims to establish a wireless connection between the two terminal devices that is more convenient and provides a better user experience.

[0059] In the embodiment of the present application, the intermediate device is configured with at least a wireless communication module and a near field communication (NFC) module. Both terminal devices are configured with at least a wireless communication module. Both terminal devices are also configured with an NFC module and / or an NFC tag.

[0060] In the embodiments of the present application, the wireless communication module may include a Bluetooth module and / or a Wi-Fi module. Of course, the wireless communication module may also include other types of communication modules. That is, any wireless communication module currently implemented or to be implemented in the future may be included in the wireless communication module.

[0061] In the embodiment of the present application, the NFC module can operate in the following modes: Card Emulation (CE) mode, Peer to Peer (P2P) mode and Read / Write (R / W) mode. Among them, the card emulation mode means that the NFC module simulates itself as a card that complies with the NFC standard, and other NFC readers read or write data or information. The peer-to-peer mode means that two equal NFC modules conduct two-way information exchange in compliance with the NFC standard. The reader mode means that the NFC module acts as a card reader or reader to read data or information from other cards that comply with the NFC standard or NFC modules that simulate cards that comply with the NFC standard, or write data or information to other cards that comply with the NFC standard or NFC modules that simulate cards that comply with the NFC standard. In the embodiment of the present application, since the intermediate device includes an NFC module, the intermediate device can control its NFC module to operate in card emulation mode, peer-to-peer mode or reader mode.

[0062] It is understood that in the embodiments of the present application, when the terminal device is configured with an NFC module, the terminal device can also control its NFC module to operate in card emulation mode, peer-to-peer mode, or reader mode. When the terminal device is configured with only an NFC module but not an NFC tag, the NFC module can be controlled to operate in card emulation mode so that the NFC module simulates a card that complies with the NFC standard, that is, simulates a virtual NFC tag, which can be read by other NFC readers. When the terminal device is configured with only an NFC tag, the tag can only be read from or written to by an NFC reader.

[0063] It can be understood that in the embodiment of the present application, when the terminal device is configured with an NFC tag, the NFC tag can be attached to the terminal device or set independently of the terminal device.

[0064] In one embodiment, the NFC tag may be attached to the terminal device before it leaves the factory. Alternatively, the NFC tag may be configured on the terminal device after it leaves the factory. When the NFC tag is attached to the terminal device before it leaves the factory, the NFC tag may include the tag ID of the NFC tag and device information of the corresponding terminal device. The tag ID may include a serial number (SN). The device information includes, but is not limited to, key information of the terminal device and connection configuration information of the terminal device. The key information indicates whether the terminal device can establish a communication connection and / or the mode of establishing the communication connection. For example, the key information may include, but is not limited to, whether the terminal device supports Bluetooth or Wi-Fi connections. The connection configuration information may include, but is not limited to, a Media Access Control (MAC) address and / or a Service Set Identifier (SSID), an access password (PWD), etc. Specifically, the NFC tag stores the tag ID of the NFC tag and the device information of the terminal device. The tag ID of the NFC tag uniquely identifies the NFC tag.

[0065] In an embodiment of the present application, when the NFC tag is configured on the terminal device after the terminal device leaves the factory, the user or the manufacturer can affix the NFC tag to the terminal device. The NFC tag includes the tag ID of the NFC tag. Since the NFC tag is configured on the terminal device after leaving the factory, the NFC tag does not contain the device information of the terminal device (such as the connection configuration information of the terminal device). The tag ID of the NFC tag can only uniquely identify the NFC tag, and cannot identify the terminal device. In this regard, during use, the user can write the device information of the terminal device to the NFC tag through an NFC reader, so that the NFC tag contains the device information of the terminal device.

[0066] In another case, when the NFC tag is set up independently of the terminal device, the tag ID of the NFC tag can only uniquely identify the NFC tag, but cannot identify the terminal device. In this case, the user can also use an NFC reader to write the device information of the terminal device to the NFC tag during use, so that the NFC tag contains the device information of the terminal device.

[0067] In the embodiments of the present application, the NFC tag being independently provided from the terminal device means that the NFC tag is provided separately from the terminal device. For example, when the terminal device is a laptop computer and is placed on a desktop, the NFC tag may be attached to the desktop or elsewhere, rather than attached to the terminal device. The NFC tag may include the tag ID of the NFC tag and the device information of the terminal device.

[0068] It can be understood that in the embodiment of the present application, since the terminal device is configured with an NFC module (the NFC module can simulate a card that complies with the NFC standard, that is, simulate a virtual NFC tag) and / or an NFC tag, when the intermediate device is close to the terminal device, the intermediate device can read the information in the NFC tag or the virtual NFC tag simulated by the NFC module, that is, it can read the device information of the terminal device.

[0069] It is understood that in the embodiments of the present application, the NFC tag can be any one of a passive tag, a semi-active tag, or an active tag. The working principles of the passive tag, semi-active tag, and active tag are as follows:

[0070] (1) Passive tags: Passive tags do not have an internal power supply. When a passive tag is brought close to the NFC module of another electronic device, it can receive electromagnetic waves sent by the NFC module. The internal integrated circuit (IC) of the passive tag is driven by the received electromagnetic wave signal. When the passive tag receives an electromagnetic wave signal of sufficient strength, it can send the data stored in the passive tag, such as the tag ID, or the tag ID and Bluetooth address, to the NFC module.

[0071] (2) Semi-active tags: Semi-active tags work in a similar way to passive tags. The difference is that they contain a small battery that is sufficient to power the IC inside the semi-active tag, keeping it in operation. Because they contain the small battery, they react faster than passive tags.

[0072] (3) Active tags: Active tags include an internal power supply to supply the power required by the internal IC to generate external signals. Generally speaking, active tags allow NFC communication at a longer distance and have a large storage space that can be used to store data transmitted from the NFC module of other electronic devices.

[0073] In practical applications, NFC tags are generally passive tags, considering that passive tags have the advantages of low price, small size and no need for power supply.

[0074] For example, in the embodiments of the present application, the intermediate device and the terminal device can be any device with NFC function, such as a mobile terminal (such as a mobile phone), a personal computer (PC), a wearable electronic device (such as a smart watch, a bracelet), a speaker, a tablet computer, an augmented reality (AR) / virtual reality (VR) device or an in-vehicle device. The specific forms of the intermediate device and the terminal device are not particularly limited in the following embodiments.

[0075] In a specific implementation, the intermediate device and the terminal device may be, for example, electronic devices of the same type or electronic devices of different types.

[0076] For example, in the embodiments of the present application, the two terminal devices may be devices that are not suitable for handheld use and may only be equipped with NFC tags. In this way, the communication connection establishment method is particularly suitable for establishing a wireless connection between two devices that are not suitable for handheld use and only have NFC tags containing information required to establish a wireless connection (i.e., do not have NFC modules capable of NFC peer-to-peer mode and / or NFC reader mode).

[0077] Of course, in other embodiments, the communication connection establishment method is also applicable to establishing a wireless connection between any two devices equipped with NFC modules and / or NFC tags.

[0078] Example 1

[0079] Figure 2 FIG. 1 is a flow chart showing a method for establishing a communication connection according to an embodiment of the present application. Figure 2 As shown, the communication connection establishment method may include S20-S210:

[0080] S20: Trigger the intermediate device 60 so that the intermediate device 60 operates in or is adjusted to the first mode and / or the second mode.

[0081] It can be understood that the first mode is the "NFC Assisted Connection" mode. The "NFC Assisted Connection" mode is used to indicate that the intermediate device 60 is not one of the two terminal devices that the user wants to establish a wireless connection with, but rather serves to assist the user in establishing a wireless connection between the two terminal devices. In other words, the intermediate device 60 only serves as an intermediate device, rather than being one of the two terminal devices that need to establish the final communication connection. The setting of the "NFC Assisted Connection" mode can effectively prevent the intermediate device 60 from causing interference when the two terminal devices are communicating.

[0082] For example, if the intermediate device 60 needs to be directly connected to other terminal devices, it is necessary to set the intermediate device 60 to "NFC Assisted Connection" mode. For example, if the intermediate device 60 is a smartphone, since the smartphone needs to be directly connected to other terminal devices (such as speakers), the smartphone can be set to "NFC Assisted Connection" mode through the user interface of the intermediate device 60.

[0083] For another example, when the intermediate device 60 functions solely as an intermediary, there is no need to set the intermediate device 60 to "NFC Assisted Connection" mode. For example, when the intermediate device 60 is a smartwatch, the smartwatch typically does not communicate directly with a terminal device, i.e., there is no scenario where it directly connects to a terminal device (e.g., a speaker), so there is no need to set it to "NFC Assisted Connection" mode.

[0084] It can be understood that in the embodiment of the present application, whether the intermediate device 60 needs to be set to the first mode can be determined based on whether the intermediate device 60 receives the first operation.

[0085] The first operation may be preset as voice operation, touch display interface, etc. For example, when the intermediate device 60 receives a specific voice instruction, touch display interface, etc., its working mode may be adjusted to the first mode.

[0086] Optionally, in other embodiments, the first operation may also be configured to automatically adjust the working mode of the intermediate device 60 to the first mode according to the type of the intermediate device 60 when the intermediate device 60 touches or approaches other terminal devices.

[0087] Furthermore, the second mode is the NFC reader mode. When the NFC module of the intermediate device 60 can operate in the above three modes, such as card emulation mode, peer-to-peer mode or reader mode, the intermediate device 60 needs to be set to operate in the NFC reader mode. For example, when the intermediate device 60 only acts as an intermediate device and its NFC module can operate in the above three modes, it is not necessary to set it to the "NFC assisted connection" mode. It is only necessary to set the NFC module of the intermediate device 60 to the reader mode before use. For another example, when the intermediate device 60 has a scenario where it is directly connected to other terminal devices and its NFC module can operate in the above three modes, the intermediate device 60 can be set to the "NFC assisted connection" mode, and the NFC module can be set to the reader mode at the same time.

[0088] It can be understood that in the embodiment of the present application, when both the "NFC assisted connection" mode and the NFC reader mode of the intermediate device 60 need to be set, there is no restriction on the timing of setting the two. For example, the intermediate device 60 can be set to the "NFC assisted connection" mode first and then the NFC module of the intermediate device 60 can be set to the NFC reader mode. Alternatively, the NFC module of the intermediate device 60 can be set to the NFC reader mode first and then the intermediate device 60 can be set to the "NFC assisted connection" mode. Alternatively, when the intermediate device 60 is set to the "NFC assisted connection" mode, the NFC module of the intermediate device 60 is set to the NFC reader mode by default.

[0089] In addition, when the type of the intermediate device 60 determines that its NFC module always works in reader mode or the NFC module can only act as a reader, the NFC module is set to reader mode by default, and there is no need to set the NFC module. For example, when the intermediate device 60 has a scenario where it is directly connected to other terminal devices, and the NFC module of the intermediate device can only act as a reader, the intermediate device 60 can be directly set to "NFC assisted connection" mode and S21 can be executed. For another example, when the type of the intermediate device 60 determines that it can only play the role of an intermediate device, and the NFC module of the intermediate device can only act as a reader, S20 can be skipped directly, that is, nothing can be set and S21 can be executed directly.

[0090] It can be understood that in the embodiment of the present application, whether the intermediate device 60 needs to be set to the second mode can be determined based on whether the intermediate device 60 receives the second operation.

[0091] Among them, similar to the first operation, the second operation can be preset according to user needs, for example, it can also be preset as voice operation, touch display interface, etc.

[0092] S21, the intermediate device 60 is touched or brought close to the NFC tag corresponding to the terminal device (hereinafter referred to as the first device 61) to establish a communication connection, or the NFC module simulated as a card, so that the distance between the two is a first preset distance, and the first data of the first device 61 is obtained.

[0093] In one case, the first device 61 is only configured with an NFC tag, and the first data can be obtained by the intermediate device 60 touching or approaching the NFC tag of the first device 61.

[0094] In the second scenario, the first device 61 is configured with an NFC module but not an NFC tag. In this scenario, the NFC module of the first device 61 is set to card emulation mode, so that the NFC module simulates a card that complies with the NFC standard, that is, simulates a virtual NFC tag. Simultaneously, the intermediate device 60 touches or approaches the NFC module of the first device 61 to read the information in the virtual NFC tag simulated by the NFC module, thereby obtaining the first data.

[0095] In the third scenario, the first device 61 is equipped with both an NFC tag and an NFC module. The first data can be obtained by touching or bringing the intermediate device 60 close to the NFC tag of the first device 61. Alternatively, the NFC module of the first device 61 can be set to card emulation mode, causing it to simulate a card that complies with the NFC standard, that is, to simulate a virtual NFC tag. Simultaneously, the intermediate device 60 can be brought close to or touching the NFC module of the first device 61 to read the information in the virtual NFC tag simulated by the NFC module, thereby obtaining the first data.

[0096] It can be understood that in the embodiment of the present application, proximity means that the first preset distance between the NFC module of the intermediate device 60 and the NFC module and / or NFC tag of the first device 61 is less than a preset threshold. For example, the preset threshold can be 10 centimeters (cm) or 20 cm, etc., so that the NFC module and / or NFC tag of the first device 61 enters the NFC sensing area of ​​the intermediate device 60.

[0097] In the embodiment of the present application, the first data includes at least first key information of the first device 61 and connection configuration information of the first device.

[0098] The first key information may include identification information. The identification information may be used to indicate or show whether the first device 61 can establish a communication connection and / or what type of wireless connection can be established. For example, when the first device 61 can be used to establish a wireless connection with other devices, such as a Bluetooth connection, the identification information may include an "EasyConnectBT" field. When the first device 61 can be used to establish a communication connection with other devices, such as a Bluetooth connection and a Wi-Fi connection, the identification information may include an "EasyConnectBT" field and an "EasyConnectAP" field.

[0099] The connection configuration information may include a Media Access Control (MAC) address and / or a Service Set Identifier (SSID), an access password (PWD), etc. For example, when the first device 61 supports Bluetooth connection, the connection configuration information includes at least the Bluetooth MAC address information of the first device 61. When the first device 61 supports Wi-Fi connection, the connection configuration information includes at least the Wi-Fi hotspot SSID and PWD information of the first device 61.

[0100] S22: After reading the first data, the intermediate device 60 further analyzes the first data.

[0101] When the intermediate device 60 determines or analyzes that the first data contains the first key information, S23 is executed. When the intermediate device 60 determines or analyzes that the first data does not contain the first key information, the process ends.

[0102] S23: The intermediate device 60 further analyzes the first data to determine whether the first data contains connection configuration information required to establish a wireless connection with the first device 61. If yes, S24 is executed. If no, the process ends.

[0103] It is understood that in the embodiment of the present application, the processing method of the first data by the intermediate device 60 is not limited. For example, the intermediate device 60 can parse, judge and / or process the first data by hardware and / or software.

[0104] For example, in one embodiment, the intermediate device 60 may further include a processing module and a storage module. The intermediate device 60 may read the first data via the NFC module and transmit the first data to the processing module for processing and analysis. For example, the processing module may search, compare, and analyze the information in the first data with the data in the storage module.

[0105] S24: The intermediate device 60 initiates a first communication connection to the first device 61 according to the connection configuration information parsed from the first data.

[0106] It can be understood that in the embodiment of the present application, the intermediate device 60 initiates the first communication connection to the first device 61 based on the connection configuration information and using its wireless communication module.

[0107] It is understood that in the embodiments of the present application, the first communication connection is not limited. For example, the first communication connection may include a Bluetooth connection, a Wi-Fi connection, or both a Bluetooth connection and a Wi-Fi connection. Of course, the Bluetooth connection and the Wi-Fi connection may be replaced with other types of communication connections.

[0108] For example, in one embodiment, when the connection configuration information of the first device 61 includes a Bluetooth MAC address, the intermediate device 60 may establish a Bluetooth connection with the first device 61 according to the Bluetooth address.

[0109] After obtaining the Bluetooth address of the first device 61, the intermediate device 60 may first determine whether the Bluetooth function of the intermediate device 60 is enabled. If the Bluetooth function of the intermediate device 60 is enabled, S24 may be executed, i.e., the first communication connection is directly established between the intermediate device 60 and the first device 61. If the Bluetooth function of the intermediate device 60 is not enabled, the Bluetooth function may be enabled first, and then S24 may be executed.

[0110] For example, in the embodiment of the present application, it is assumed that the intermediate device 60 has established a Bluetooth connection with two devices corresponding to Bluetooth addresses. For example, the intermediate device 60 has established a Bluetooth connection with the device corresponding to Bluetooth address a and the device corresponding to Bluetooth address b. If the Bluetooth address of the first device 61 is Bluetooth address c, it means that the intermediate device 60 has not yet established a Bluetooth connection with the first device 61. In this case, the intermediate device 60 can execute S24, that is, establish a first communication connection with the first device 61 according to the Bluetooth address c of the first device 61. If the Bluetooth address of the first device 61 is Bluetooth address a, it means that the intermediate device 60 has already established a Bluetooth connection with the first device 61, and the intermediate device 60 can directly execute S25.

[0111] It is understood that in the embodiment of the present application, when the connection configuration information includes connection configuration information for multiple communication modes, there is no restriction on the selection of the multiple communication modes. For example, in the first case, the intermediate device 60 may randomly select the connection configuration information for one of the communication modes from the connection configuration information in the first data, such as the configuration information corresponding to a Wi-Fi connection, and establish a Wi-Fi connection with the first device 61.

[0112] In the second case, the intermediate device 60 may pre-store a priority sequence table corresponding to each communication method. When the intermediate device 60 obtains the first data, it may determine whether the first data contains connection configuration information for a communication method of corresponding priority according to the priority sequence. If so, a communication connection is established with the first device 61 according to the connection configuration information. If not, determine whether the first data contains configuration information for a communication method of the next priority. For example, Wi-Fi communication may be set as the priority, followed by Bluetooth communication. In this way, when the intermediate device 60 reads the first data, it may first determine whether the first data contains connection configuration information corresponding to the Wi-Fi communication. If so, a Wi-Fi connection is established with the first device 61 according to the connection configuration information. If not, continue to determine whether the first data contains configuration information for Bluetooth communication. If so, a Bluetooth connection is established with the first device 61 according to the connection configuration information.

[0113] In the third case, the intermediate device 60 may further select a communication mode according to the order in which the connection configuration information in the first data it obtains is arranged. For example, if the first data includes multiple pieces of connection configuration information, the intermediate device 60 may directly select a communication connection mode with the first device 61 according to the order in which the pieces are arranged.

[0114] S25, after the intermediate device 60 establishes a first communication connection with the first device 61, the intermediate device 60 is brought close to or touches the NFC tag of another terminal (hereinafter referred to as the second device 62) or the NFC module simulated as a card so that the distance between the two is a second preset distance, and the second data of the second device 62 is obtained.

[0115] Likewise, in one case, the second device 62 is only configured with an NFC tag, and the second data can be obtained by touching or bringing the intermediate device 60 close to the NFC tag of the second device 62 .

[0116] In the second case, the second device 62 is equipped with an NFC module but not an NFC tag. In this case, the NFC module of the second device 62 is set to card emulation mode, so that the NFC module simulates a card that complies with the NFC standard, that is, simulates a virtual NFC tag. At the same time, the intermediate device 60 is brought into contact with or close to the NFC module of the second device 62 to read the information in the virtual NFC tag simulated by the NFC module, thereby obtaining the second data.

[0117] In the third scenario, the second device 62 is equipped with both an NFC tag and an NFC module. The second data can be obtained by touching or bringing the intermediate device 60 close to the NFC tag of the second device 62. Alternatively, the NFC module of the second device 62 can be set to card emulation mode, causing it to simulate a card that complies with the NFC standard, that is, to simulate a virtual NFC tag. Simultaneously, the intermediate device 60 can be brought close to or touching the NFC module of the second device 62 to read the information in the virtual NFC tag simulated by the NFC module, thereby obtaining the second data.

[0118] It can be understood that in the embodiment of the present application, proximity means that the second preset distance between the NFC module of the intermediate device 60 and the NFC module and / or NFC tag of the second device 62 is less than a preset threshold. For example, the preset threshold can be 10 centimeters (cm) or 20 cm, etc., so that the NFC module and / or NFC tag of the second device 62 enters the NFC sensing area of ​​the intermediate device 60.

[0119] In the embodiment of the present application, the second data includes at least second key information of the second device 62 and connection configuration information of the second device 62.

[0120] The second key information may include identification information. The identification information may be used to indicate or indicate whether the second device 62 can establish a wireless connection and / or what type of wireless connection can be established. For example, when the second device 62 can be used to establish a wireless connection with other devices, such as a Bluetooth connection, the identification information may include an "EasyConnectBT" field. When the second device 62 can be used to establish a wireless connection with other devices, such as a Bluetooth connection and a Wi-Fi connection, the identification information may include an "EasyConnectBT" field and an "EasyConnectAP" field.

[0121] The connection configuration information may include a MAC address and / or SSID, PWD, etc. For example, when the second device 62 supports Bluetooth connection, the connection configuration information includes at least the Bluetooth MAC address information of the second device 62. When the second device 62 supports Wi-Fi connection, the connection configuration information includes at least the Wi-Fi hotspot SSID and PWD information of the second device 62.

[0122] S26: After acquiring the second data, the intermediate device 60 further analyzes the second data.

[0123] In one case, when the intermediate device 60 determines or parses that the second data contains second key information, S27 is executed.

[0124] In another scenario, if the intermediate device 60 determines or parses the second data to contain no second key information, the process can terminate immediately or wait until the intermediate device 60 detects or parses the second key information again before continuing. If no second key information is detected within a preset time (e.g., 10 seconds), the process terminates and returns to the initial state. The initial state means that the intermediate device 60 disconnects from the temporary connection with the first device 61 and, if "Assisted Connection Mode" or Reader Mode is set, resets the process to the previous mode.

[0125] S27 , the intermediate device 60 further analyzes the second data to determine whether the second data includes connection configuration information required to establish a wireless connection with the second device 62 .

[0126] If the second data contains the connection configuration information required to establish a wireless connection with the second device 62, S28 is executed. If the second data does not contain the connection configuration information required to establish a wireless connection with the second device 62, the process can be terminated directly or continued until the intermediate device 60 is refreshed with this information (i.e., the connection configuration information). If it is not refreshed within a preset time (e.g., 10 seconds), the process is terminated and the initial state is returned.

[0127] S28 , the intermediate device 60 encapsulates the parsed connection configuration information of the second device 62 with a third key information to obtain third data, and sends the third data to the first device 61 through the first communication connection.

[0128] Similarly, in the embodiment of the present application, there is no limitation on the processing method of the second data by the intermediate device 60. For example, the intermediate device 60 may parse, judge, process and / or encapsulate the second data by hardware and / or software.

[0129] For example, in one embodiment, the intermediate device 60 may further include a processing module and a storage module. The intermediate device 60 may read the second data via the NFC module and transmit the second data to the processing module for processing and analysis. For example, the processing module may search, compare, and analyze the second data with the data in the storage module, and then encapsulate the connection configuration information in the data.

[0130] In this embodiment of the present application, the third key information is used to indicate to the first device 61 that the user intends to connect the device to the target device (i.e., the second device 62). For example, the third key information may include a "FinalTargetBT" field. When the first device 61 receives the third key information, it may indicate that the connection configuration information in the third data is the connection configuration information of the target device (i.e., the second device 62) to which the device is ultimately to be connected.

[0131] That is, the third key information is used to inform the first device 61 that the third data includes configuration information required for establishing a wireless connection with the target device (ie, the second device 62) to be connected.

[0132] It can be understood that in one case, the third key information can be pre-stored by the intermediate device 60. When the intermediate device 60 parses the connection configuration information of the second device 62, the intermediate device 60 will then encapsulate the parsed connection configuration information of the second device 62 with the third key information to obtain third data, and send the third data to the first device 61 through the first communication connection.

[0133] In another case, the third key information may also be generated when the intermediate device 60 parses the connection configuration information of the second device 62. The intermediate device 60 then encapsulates the parsed connection configuration information of the second device 62 with the generated third key information to obtain third data, and sends the third data to the first device 61 through the first communication connection.

[0134] S29: The first device 61 receives and parses the third data.

[0135] When the first device 61 determines that the third data contains the third key information, S210 is executed.

[0136] Likewise, in the embodiment of the present application, the processing method of the third data by the first device 61 is not limited. For example, the first device 61 may parse the third data by hardware and / or software.

[0137] S210: The first device 61 disconnects the first communication connection with the intermediate device 60, and initiates a second communication connection to the second device 62 according to the connection configuration information in the third data, until the connection is successful.

[0138] It can be understood that in the embodiment of the present application, the first device 61 first disconnects the first communication connection with the intermediate device 60 and then establishes a second communication connection with the second device 62, thereby saving power and reducing power consumption.

[0139] In another case, when the first communication connection established between the first device 61 and the intermediate device 60 is exclusive, the first communication connection established between the first device 61 and the intermediate device 60 must be disconnected before establishing a second communication connection with the second device 62, to prevent the exclusivity of the first communication connection from causing the first device 61 and the second device 62 to fail to successfully establish a wireless connection. In other words, in this embodiment of the present application, the first communication connection established between the intermediate device 60 and the first device 61 is a temporary connection.

[0140] Of course, in other embodiments of the present application, when factors such as power saving, power consumption reduction, and / or the non-exclusiveness of the first communication connection are not considered, the first device 61 may not disconnect the first communication connection, and on this basis, further establish a second communication connection with the second device 62. That is, the first device 61 establishes a first communication connection with the intermediate device 60, and simultaneously establishes a second communication connection with the second device 62.

[0141] It is understood that in the embodiments of the present application, the second communication connection is not limited. For example, the second communication connection may include a Bluetooth connection, a Wi-Fi connection, or both a Bluetooth connection and a Wi-Fi connection. Of course, the Bluetooth connection and the Wi-Fi connection may be replaced with other types of communication connections.

[0142] In a specific implementation, the first communication connection and the second communication connection may be, for example, the same connection technology or different connection technologies, which is not limited here.

[0143] It is understood that in this embodiment of the present application, similar to the first communication connection, when the connection configuration information of the second data includes configuration information for multiple communication modes, the selection of the multiple communication modes is not restricted. The selection of the communication mode can refer to the three situations of the first communication connection described above and will not be repeated here.

[0144] Example 2

[0145] Figure 3 FIG. 1 is a flow chart showing another method for establishing a communication connection according to an embodiment of the present application. Figure 3 As shown, the communication connection establishment method may include S30-S310:

[0146] in, Figure 3 Steps S30-S34 are the same as steps S20-S24 in Example 1 and are not described again here.

[0147] S35, after the intermediate device 70 establishes a first communication connection with the first device 71, the intermediate device 70 sends a first notification message to the first device 71 through the first communication connection.

[0148] In this embodiment of the present application, the first notification message includes at least one further key information, such as fourth key information. The fourth key information is used to inform the first device 71 that connection configuration information required to establish a wireless connection with the target device to be connected will be provided later, so that the first device 71 can recognize the user's intention to connect to the target device (i.e., the second device) later. For example, the fourth key information may include a "FinalTargetLater" field.

[0149] S36 , placing the intermediate device 70 in NFC reader mode close to the NFC tag of the second device 72 or the NFC module simulating a card to obtain the second data of the second device 72 .

[0150] S37: After reading the second data, the intermediate device 70 further analyzes the second data.

[0151] When the intermediate device 70 determines or analyzes that the second data contains second key information, S38 is executed.

[0152] S38: The intermediate device 70 further analyzes the second data to determine whether the second data contains connection configuration information required to establish a wireless connection with the second device 72. If yes, S39 is executed.

[0153] In Example 2, steps S36-S38 are similar to S25-S27 in Example 1, and the corresponding concepts are also similar, which will not be repeated here.

[0154] S39 , the intermediate device 70 encapsulates the parsed connection configuration information of the second device 72 to obtain third data, and sends the third data to the first device 71 through the first communication connection.

[0155] S310, the first device 71 receives the third data, disconnects the first communication connection with the intermediate device 70, and initiates a second communication connection to the second device 72 according to the connection configuration information in the third data until the connection is successful.

[0156] Obviously, the difference between Example 2 and Example 1 is that, after the intermediate device 70 successfully establishes the first communication connection with the first device 71, the intermediate device 70 immediately sends a first notification message to the first device 71, informing the first device 71 that it will later provide the information necessary to establish a wireless connection with the target device to be connected. The first notification message includes at least one further key information (i.e., fourth key information) to enable the first device 71 to recognize the user's intention to subsequently connect to the target device.

[0157] Thus, in subsequent steps, when the intermediate device 70 sends third data to the first device 71 via the first communication connection, the third data may only include the connection configuration information required to establish a wireless connection with the target device. Thus, upon receiving the connection configuration information, the first device 71 may directly initiate a second communication connection with the second device 72 based on the connection configuration information in the third data until the connection is successful.

[0158] It can be understood that, in Example 2, except for the above-mentioned differences, the rest of steps S39-S310 are similar to S28-S210 in Example 1, and will not be repeated here.

[0159] Example 3

[0160] Figure 4 FIG. 1 is a flow chart showing another method for establishing a communication connection according to an embodiment of the present application. Figure 4 As shown, the communication connection establishment method may include S40-S49:

[0161] in, Figure 4 Steps S40-S45 are the same as steps S20-S25 in Example 1 and are not described again here.

[0162] S46 , after reading the second data, the intermediate device 80 further sends the second data to the first device 81 through the first communication connection established with the first device 81 .

[0163] S47: The first device 81 receives the second data and parses the second data.

[0164] When the first device 81 determines or analyzes that the second data contains second key information, S48 is executed.

[0165] S48: The first device 81 further analyzes the second data to determine whether the second data includes connection configuration information required to establish a wireless connection with the second device 82. If yes, S49 is executed.

[0166] S49, the first device 81 disconnects the first communication connection with the intermediate device 80, and initiates a second communication connection to the second device 82 according to the connection configuration information parsed in S48, until the connection is successful.

[0167] It can be understood that in Example 3, steps S47-S49 are similar to steps S26-S27 and S210 in Example 1 and will not be repeated here. The difference is that S28-S29 are not included in Example 3, and the judgment and analysis of the second data are performed by the first device 81, not the intermediate device 80. In other words, the difference between Example 3 and Example 1 is that the intermediate device 80 does not parse the second data, but sends all the information it reads to the first device 81, which then parses and processes it. In this case, it is equivalent to replacing the execution of S26-S27 in Example 1 with that of the first device 81, and there is no need to execute S28-S29. It is only necessary to send the NFC information of the second device 82 read to the first device 81 before S26.

[0168] Example 4

[0169] Figure 5 FIG. 1 is a flow chart showing another method for establishing a communication connection according to an embodiment of the present application. Figure 5 As shown, the communication connection establishment method may include S50-S510:

[0170] in, Figure 5 Steps S50-S57 are the same as steps S20-S27 in Example 1 and are not described again here.

[0171] S58: The intermediate device 90 sends the parsed connection configuration information of the second device 92 to the first device 91 through the first communication connection.

[0172] S59: The first device 91 receives the connection configuration information.

[0173] S510: The first device 91 disconnects the first communication connection with the intermediate device 90, and initiates a second communication connection to the second device 92 according to the received connection configuration information until the connection is successful.

[0174] Obviously, the difference between Example 4 and Example 1 is that the third key information in Example 1 is not required and is optional. It is only necessary to make a prior agreement in Example 4, for example, to pre-set a limit before step S59. Once the first device 91 receives the connection configuration information, it will default to treating the connection configuration information as information of the target device, such as the second device 92. In this way, when the first device 91 receives the connection configuration information sent by the intermediate device 90, it can directly disconnect the first communication connection with the intermediate device 90 based on the connection configuration information, and then initiate a second communication connection with the second device 92 based on the received connection configuration information until the connection is successful.

[0175] It can be understood that in the embodiment of the present application, the specific content, length, format, etc. of the first to fourth key information are not limited, that is, the first to fourth key information are not limited to the fields listed above, and the first to fourth key information can be a single key information, such as a single key field, or a key information group composed of several key information, such as key fields.

[0176] It can be understood that in the embodiment of the present application, the contents of the first to fourth key information may be entirely the same, partially the same, or different, and are not limited here.

[0177] Example 5

[0178] See also Figures 6a to 6e , the communication connection method is introduced below using the first scenario as an example.

[0179] In the first scenario, the intermediate device 100 is a smartwatch. The first device 110 is a PC. The second device 120 is a Bluetooth speaker. The intermediate device 100 is equipped with an NFC module 101 and a wireless communication module 102. The first device 110 is equipped with an NFC tag 111 and a wireless communication module 112. The second device 120 is equipped with an NFC tag 121 and a wireless communication module 122. The first device 110 and the second device 120 establish a wireless connection through the intermediate device 100 and can exchange or transmit data. For example, the PC can transmit audio data to the Bluetooth speaker for playback via the established wireless connection.

[0180] The NFC tag 111 includes an "EasyConnectBT" field and the Bluetooth MAC address information of the first device 110. This indicates that the NFC tag 111 of the first device 110 supports Bluetooth connection and is configured with the corresponding Bluetooth MAC address information. The NFC tag 121 includes an "EasyConnectBT" field and the Bluetooth MAC address information of the second device 120. This indicates that the NFC tag 121 of the second device 120 supports Bluetooth connection and is configured with the corresponding Bluetooth MAC address information.

[0181] First, the intermediate device 100 is triggered and the NFC module 101 of the intermediate device 100 is set to NFC reader mode. Then, the intermediate device 100 is touched or brought close to the NFC tag 111 of the first device 110 to establish a communication connection to read the data of the NFC tag 111 of the first device 110 (see Figure 6a ).

[0182] After the intermediate device 100 reads the data in the NFC tag 111, it parses the data. When the intermediate device 100 parses and finds that the data contains the "EasyConnectBT" field, it further parses the data to determine whether the data contains the Bluetooth MAC address information of the first device 110. If so, the intermediate device 100 initiates a Bluetooth connection to the first device 110 based on the Bluetooth MAC address of the first device 110 (see Figure 6b ). That is, the intermediate device 100 and the first device 110 establish a Bluetooth connection through their respective wireless communication modules 102 and 112.

[0183] It is understood that the Bluetooth connection established between the intermediate device 100 and the first device 110 is a temporary connection. When the temporary connection is successfully established, the NFC sensing area of ​​the intermediate device 100 in NFC reader mode is touched or brought close to the NFC tag 121 of the second device 120. The intermediate device 100 reads the data in the NFC tag 121 (see Figure 6c ).

[0184] After the intermediate device 100 reads the data in the NFC tag 121, it parses and processes the data. When the intermediate device 100 parses and finds that the data contains the "EasyConnectBT" field, it further parses the data to determine whether the data contains the Bluetooth MAC address information of the second device 120. If so, the Bluetooth MAC address of the second device 120 is encapsulated into the third data and sent to the first device 110 through the above-mentioned temporary connection, and the first device 110 is informed that the third data contains the Bluetooth MAC address information of the target device (i.e., the second device 120) that ultimately needs to be connected. The third data will contain a third key field, such as the "FinalTargetBT" field, so that the first device 110 can recognize the user's intention to connect it to the target device (i.e., the second device 120) (see Figure 6d ).

[0185] Finally, the first device 110 parses the message content after receiving it, and finds that it contains the "FinalTargetBT" field, and parses it to find the Bluetooth MAC address of the second device 120. Then, it performs the following operations, that is, disconnects the temporary connection with the intermediate device 100, and initiates a Bluetooth connection to the second device 120 based on the Bluetooth MAC address of the second device 120 until the connection is successful (see Figure 6e). That is, the first device 110 and the second device 120 establish a Bluetooth connection through their respective wireless communication modules 112 and 122. In this way, after the first device 110 and the second device 120 establish a wireless connection, the two can perform corresponding data transmission, such as transmitting audio data.

[0186] Obviously, in Example 5, the wireless connection established between the intermediate device 100 and the first device 110 is the same as the wireless connection established between the first device 110 and the second device 120, that is, the first communication connection and the second communication connection both use the same communication connection technology, such as Bluetooth technology.

[0187] Obviously, Example 5 can achieve a more convenient Bluetooth connection with better user experience between two devices that are not suitable for handheld use and only have NFC tags carrying their respective Bluetooth MAC address information.

[0188] Example 6

[0189] See also Figures 7a to 7f , the communication connection method is introduced below using the second scenario as an example.

[0190] In the second scenario, the intermediate device 200 is a smartphone. The first device 210 is a PC. The second device 220 is a PC. The intermediate device 200 is equipped with an NFC module 201 and a wireless communication module 202. The first device 210 is equipped with an NFC tag 211 and a wireless communication module 212. The second device 220 is equipped with an NFC tag 221 and a wireless communication module 222. The first device 210 and the second device 220 establish a wireless connection through the intermediate device 200 and can exchange or transmit data, for example, the first device 210 transfers a file to the second device 220.

[0191] The NFC tag 211 includes an "EasyConnectBT" field and the Bluetooth MAC address information of the first device 210. This indicates that the NFC tag 211 of the first device 210 supports Bluetooth connection and is configured with the corresponding Bluetooth MAC address information. The NFC tag 221 includes an "EasyConnectAP" field and the Wi-Fi hotspot SSID name and connection password of the second device 220. This indicates that the NFC tag 221 of the second device 220 supports Wi-Fi connection and is configured with the corresponding Wi-Fi hotspot SSID name and connection password.

[0192] First, the user selects a file on the first device 210 that needs to be transferred to the second device 220 .

[0193] Next, the intermediate device 200 is triggered and set to "NFC Assisted Connection" mode. This mode means that the intermediate device 200 (i.e., the smartphone) is not one of the two devices that the user wants to establish a wireless connection with, but rather serves only to assist the user in establishing a wireless connection between the two devices. The NFC module 201 of the intermediate device 200 is also set to NFC reader mode.

[0194] The intermediate device 200 is touched or brought close to the NFC tag 211 of the first device 210 to establish a communication connection, so as to read the data of the NFC tag 211 of the first device 210 (see Figure 7a ).

[0195] After the intermediate device 200 reads the data in the NFC tag 211, it parses the data. When the intermediate device 200 parses the data and finds that it contains the "EasyConnectBT" field, it further parses the data to determine whether the data contains the Bluetooth MAC address information of the first device 210. If so, the intermediate device 200 initiates a Bluetooth connection to the first device 210 based on the Bluetooth MAC address of the first device 210 (see Figure 7b ). That is, the intermediate device 200 and the first device 210 establish a Bluetooth connection through their respective wireless communication modules 202 and 212.

[0196] It is understood that the Bluetooth connection established between the intermediate device 200 and the first device 210 is a temporary connection. When the temporary connection is successfully established, the intermediate device 200 immediately sends a first notification message to the first device 210 to inform the first device 210 that the information required to establish a wireless connection with the target device to be connected will be provided later. The first notification message contains the fourth key information mentioned above, such as the "FinalTargetLater" field, so that the first device 210 can recognize the user's intention to connect it to the target device (i.e., the second device 220) later (see Figure 7c ).

[0197] Next, the NFC sensing area of ​​the intermediate device 200 in NFC reader mode is touched or brought close to the NFC tag 221 of the second device 220. The intermediate device 200 reads the data in the NFC tag 221 (see Figure 7d ).

[0198] After the intermediate device 200 reads the data in the NFC tag 221, it parses the data. When the intermediate device 200 parses the data and finds that it contains the "EasyConnectAP" field, it further parses the data to see if it contains the Wi-Fi hotspot SSID name and connection password of the second device 220. If so, it encapsulates the Wi-Fi hotspot SSID name and connection password of the second device 220 into a message and sends it to the first device 210 via a temporary connection (see Figure 7e ).

[0199] Finally, after receiving the message, the first device 210 parses the message content to parse out the Wi-Fi hotspot SSID name and connection password of the second device 220, and performs the following operations, namely, disconnecting the temporary connection with the intermediate device 200, and initiating a Wi-Fi connection to the second device 220 according to the Wi-Fi hotspot SSID name and connection password of the second device 220, until the connection is successful (see Figure 7f ). That is, the first device 210 and the second device 220 establish a Wi-Fi connection through their respective wireless communication modules 212 and 222. In this way, the first device 210 then uses the established Wi-Fi connection to transmit the file selected by the user to the second device 220.

[0200] It is understood that in the embodiment of the present application, there is no restriction on the timing of transmitting files. For example, in another case, after the first device 210 and the second device 220 establish a wireless connection, the corresponding file to be transmitted can be selected and then the file to be transmitted can be transmitted.

[0201] It is understood that in the embodiment of the present application, there is no restriction on the party that transmits the file. For example, in another case, after the first device 210 and the second device 220 establish a wireless connection, the second device 220 can transmit the user-selected file to the first device 210.

[0202] It is understood that in the embodiments of the present application, Example 5 involves the scenario of interconnecting a PC and a Bluetooth speaker. Example 6 involves the scenario of interconnecting two PCs and transferring files. Furthermore, since the intermediate device in Example 5 is a smartwatch, and the intermediate device in Example 6 is a smartphone, since the smartphone itself can directly interconnect with electronic devices such as PCs and Bluetooth speakers, it is usually necessary to set the smartphone to "NFC assisted connection" mode.

[0203] It can be understood that in Example 5, both wireless connections are Bluetooth connections. That is, the first communication connection and the second communication connection both use the same communication connection technology, such as Bluetooth technology. In Example 6, the temporary connection established between the intermediate device 200 and the first device 210 is a Bluetooth connection, while the wireless connection established between the first device 210 and the second device 220 is a Wi-Fi connection. That is, the first communication connection and the second communication connection use different communication connection technologies. However, in the embodiments of the present application, there is no restriction on the two connection technologies. For example, the temporary connection established between the intermediate device 200 and the first device 210 may also be a Wi-Fi connection. In other words, there is no restriction on which specific connection the two connections are and whether they are the same connection technology.

[0204] Obviously, in the embodiment of the present application, the method for establishing a communication connection involves a scheme for realizing a convenient wireless interconnection between two devices (a first device and a second device) that have an NFC module and / or an NFC tag and whose NFC tag contains the information required to establish a wireless connection with the first device and the second device, by means of an intermediate device (a third device) equipped with an NFC module. In particular, the intermediate device first establishes a temporary connection with the first device, then reads the NFC tag of the second device through the NFC module, forwards the information required to establish a connection with the second device in the tag to the first device through the temporary connection established with the first device, and informs the first device of the corresponding intention. Then, after the first device recognizes the intention, it disconnects the temporary connection with the third device and instead initiates a wireless connection with the second device, which is a key process.

[0205] Furthermore, in an embodiment of the present application, the communication connection establishment method can establish a wireless connection between two devices that are not suitable for handheld use and only have NFC tags, which makes the wireless connection more convenient and provides a better user experience. For example, it can establish a Wi-Fi connection and transfer files between two devices that are not suitable for handheld use and only have NFC tags with information such as their respective Bluetooth MAC addresses, Wi-Fi hotspot SSID names, and connection passwords, which makes the wireless connection more convenient and provides a better user experience.

[0206] It can be understood that in the embodiment of the present application, the communication connection establishment method can effectively utilize the NFC tag corresponding to the terminal device, and there is no need to set the NFC tag on the corresponding terminal device. It is only necessary to ensure that the device information of the corresponding terminal device is set in the NFC tag. The method greatly simplifies the operation steps and improves the user experience.

[0207] It can be understood that in the embodiment of the present application, the method for establishing a communication connection does not require that at least one of the first device or the second device must be equipped with an NFC module with NFC point-to-point mode or NFC reader mode (adding an NFC module will greatly increase the cost of product manufacturing, and currently most devices with such application scenarios do not have an NFC module). This embodiment is applicable to the situation where both devices to establish a wireless connection only have NFC tags, which is also a relatively common situation at present.

[0208] It can be understood that in the embodiment of the present application, the intermediate portable device, that is, the intermediate device is always in reader mode, and the first device and the second device only need to be configured with NFC tags. After reading the NFC tag of the first device, the intermediate device will initiate a temporary connection to the first device. After that, after the intermediate device reads the NFC tag of the second device, it will forward the information required to establish a connection with the second device to the first device through a temporary connection. Then the first device disconnects the temporary connection with the intermediate device and initiates a wireless connection to the second device. This process does not require saving the data in the NFC tag of the first device or the second device to achieve relaying. The connection is more convenient, the user experience is better, and there is no need to increase the manufacturing cost of the product.

[0209] Example 7

[0210] See also Figure 8 , Figure 8 A schematic diagram of a communication connection establishment system provided in an embodiment of the present application is shown. The communication connection establishment system includes an intermediate device and at least two terminal devices. A wireless connection needs to be established between the two terminal devices, for example, a first device needs to establish a wireless connection with a second device. Both terminal devices are configured with or carry an NFC tag containing the information required to establish a wireless connection with them. Therefore, this process can be achieved with the help of a third device, i.e., an intermediate device, that has an NFC module and is in NFC reader mode. That is, the communication connection establishment system can establish a wireless connection between the two terminal devices through the intermediate device.

[0211] As described above, in the embodiment of the present application, the intermediate device and the terminal device can be any device with NFC function, such as a mobile terminal (such as a mobile phone), a PC, a wearable electronic device (such as a smart watch, a bracelet), a speaker, a tablet computer, an augmented reality AR / VR device or a vehicle-mounted device. In the embodiment of the present application, there is no special restriction on the specific form of the intermediate device and the terminal device.

[0212] In a specific implementation, the intermediate device and the terminal device may be, for example, electronic devices of the same type or electronic devices of different types.

[0213] For example, in the embodiments of the present application, the two terminal devices may be devices that are not suitable for handheld use and may only be equipped with NFC tags. In this way, the communication connection establishment system is particularly suitable for establishing a wireless connection between two devices that are not suitable for handheld use and only have NFC tags containing information required to establish a wireless connection (i.e., do not have NFC modules capable of NFC peer-to-peer mode or NFC reader mode).

[0214] For example, see Figure 8 , is a schematic diagram of one of the application scenarios of the communication connection establishment system in an embodiment of the present application. The communication connection establishment system includes an intermediate device 300, a first device 310 and a second device 320. The intermediate device 300 (i.e., the third device) is a smart watch. The two terminal devices, i.e., the first device 310 and the second device 320, are a PC and a Bluetooth speaker, respectively. The intermediate device 300 is configured with an NFC module and a wireless communication module. The first device 310 is configured with a wireless communication module and an NFC tag. The second device 320 is configured with a wireless communication module and an NFC tag. In this way, through the above-mentioned communication connection establishment method, the communication connection establishment system establishes a more convenient wireless connection between the first device 310 and the second device 320 through the intermediate device 300, which provides a better user experience.

[0215] Example 8

[0216] See also Figure 9 , Figure 9 A schematic structural diagram of an electronic device 400 provided in an embodiment of the present application is shown. The electronic device 400 may be an intermediate device (eg, a third device) or a terminal device (eg, a first device or a second device).

[0217] The electronic device 400 may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an NFC module 461, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, a button 490, a motor 491, an indicator 492, a camera 493, a display screen 494, and a subscriber identification module (SIM) card interface 495, etc.

[0218] Among them, the sensor module 480 can include a pressure sensor 480A, a gyroscope sensor 480B, an air pressure sensor 480C, a magnetic sensor 480D, an acceleration sensor 480E, a distance sensor 480F, a proximity light sensor 480G, a fingerprint sensor 480H, a temperature sensor 480J, a touch sensor 480K, an ambient light sensor 480L, a bone conduction sensor 480M, etc.

[0219] It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 400. In other embodiments of the present application, the electronic device 400 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0220] The processor 410 may include one or more processing units, for example, an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0221] The controller may be the nerve center and command center of the electronic device 400. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0222] Processor 410 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 410 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 410. If processor 410 needs to use these instructions or data again, it can directly access them from the memory. This avoids duplicate accesses, reduces processor 410 latency, and thus improves system efficiency.

[0223] In some embodiments, the processor 410 may include one or more interfaces. The interfaces 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.

[0224] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDL) and a serial clock line (SCL). In some embodiments, processor 410 may include multiple I2C busses. Processor 410 may be coupled to touch sensor 480K, a charger, a flash, camera 493, and the like via different I2C bus interfaces. For example, processor 410 may be coupled to touch sensor 480K via an I2C interface, enabling communication between processor 410 and touch sensor 480K via the I2C bus interface, thereby enabling touch functionality in electronic device 400.

[0225] The I2S interface can be used for audio communication. In some embodiments, the processor 410 can include multiple I2S buses. The processor 410 can be coupled to the audio module 470 via the I2S bus to enable communication between the processor 410 and the audio module 470. In some embodiments, the audio module 470 can transmit audio signals to the wireless communication module 460 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.

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

[0227] The UART interface is a universal serial data bus used 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 typically used to connect the processor 410 and the wireless communication module 460. For example, the processor 410 communicates with the Bluetooth module in the wireless communication module 460 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 470 can transmit audio signals to the wireless communication module 460 via the UART interface, enabling the function of playing music through Bluetooth headphones.

[0228] The MIPI interface can be used to connect the processor 410 to peripheral devices such as the display 494 and the camera 493. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 410 and the camera 493 communicate via the CSI interface to enable the camera function of the electronic device 400. The processor 410 and the display 494 communicate via the DSI interface to enable the display function of the electronic device 400.

[0229] The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 410 to the camera 493, the display 494, the wireless communication module 460, the audio module 470, the sensor module 480, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0230] USB interface 430 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. USB interface 430 can be used to connect a charger to charge electronic device 400, or to transfer data between electronic device 400 and peripheral devices. It can also be used to connect headphones to play audio. The interface can also be used to connect other electronic devices, such as AR devices.

[0231] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 400. In other embodiments of the present application, the electronic device 400 may also adopt a different interface connection method from the above embodiment, or a combination of multiple interface connection methods.

[0232] The charging management module 440 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 440 can receive charging input from the wired charger via the USB interface 430. In some wireless charging embodiments, the charging management module 440 can receive wireless charging input via the wireless charging coil of the electronic device 400. While charging the battery 442, the charging management module 440 can also provide power to the electronic device 400 via the power management module 441.

[0233] The power management module 441 is used to connect the battery 442, the charging management module 440, and the processor 410. The power management module 441 receives input from the battery 442 and / or the charging management module 440 and provides power to the processor 410, internal memory 421, external memory, display 494, camera 493, and wireless communication module 460. The power management module 441 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 441 can also be located in the processor 410. In other embodiments, the power management module 441 and the charging management module 440 can also be located in the same device.

[0234] The wireless communication function of the electronic device 400 can be implemented through antenna 1, antenna 2, mobile communication module 450, wireless communication module 460, NFC module 461, modem processor and baseband processor.

[0235] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 400 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0236] Mobile communication module 450 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for electronic device 400. Mobile communication module 450 can include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. Mobile communication module 450 can receive electromagnetic waves from antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. Mobile communication module 450 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some of the functional modules of mobile communication module 450 can be located in processor 410. In some embodiments, at least some of the functional modules of mobile communication module 450 can be located in the same device as at least some of the modules of processor 410.

[0237] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium- or high-frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs audio signals through an audio device (including but not limited to speaker 470A, receiver 470B, etc.) or displays images or videos on display screen 494. In some embodiments, the modem processor may be a standalone device. In other embodiments, the modem processor may be independent of processor 410 and housed in the same device as mobile communication module 450 or other functional modules.

[0238] The wireless communication module 460 can provide wireless communication solutions applied to the electronic device 400, including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), infrared technology (IR), etc.

[0239] The NFC module 461 can communicate with an NFC module or an NFC tag of another electronic device in a card emulation mode, a peer-to-peer mode, and a reader mode, for example.

[0240] Wireless communication module 460 and NFC module 461 can be one or more devices that integrate at least one communication processing module. Wireless communication module 460 and NFC module 461 receive electromagnetic waves via antenna 2, frequency-modulate and filter the electromagnetic wave signals, and transmit the processed signals to processor 410. Wireless communication module 460 and NFC module 461 can also receive signals to be transmitted from processor 410, frequency-modulate and amplify them, and then convert them into electromagnetic waves for radiation via antenna 2.

[0241] In the embodiment of the present application, when electronic device 400 is an intermediate device (e.g., a third device), it includes at least a wireless communication module 460 and an NFC module 461. When electronic device 400 is close to another electronic device, it can use NFC module 461 to touch or approach the NFC module or NFC tag of the other electronic device to read data from the other electronic device, such as the connection configuration information of the other device. In addition, electronic device 400 can establish a wireless connection with other electronic devices through wireless communication module 460, such as a Bluetooth connection and / or Wi-Fi connection.

[0242] In an embodiment of the present application, when the electronic device 400 is a terminal device, such as the first device or the second device, in the first case, the electronic device 400 only includes the NFC tag 462, but does not include the NFC module 461. That is, the electronic device 400 includes a wireless communication module 460 and an NFC tag 462. When an intermediate device touches or approaches the NFC tag 462 of the electronic device 400, the intermediate device can read the data in the NFC tag 462, such as reading the connection configuration information of the electronic device 400. In addition, the electronic device 400 can establish a temporary connection (such as a first communication connection) with the intermediate device through the wireless communication module 460, and / or establish a wireless connection (such as a second communication connection) with other terminal devices (such as the second device), such as establishing a Bluetooth connection and / or a Wi-Fi connection.

[0243] In the second scenario, the electronic device 400 includes only the NFC module 461 and is not equipped with the NFC tag 462. In this scenario, the NFC module 461 in the electronic device 400 can simulate a virtual NFC tag so that the intermediate device can read data. In this scenario, the operating principle of the electronic device 400 is similar to that of the first scenario and will not be further described here.

[0244] It is understandable that, in the third case, the electronic device 400 can be configured with both the NFC module 461 and the NFC tag 462. In this case, the working principle of the electronic device 400 is similar to that of the first case, and will not be described in detail here.

[0245] In some embodiments, antenna 1 of electronic device 400 is coupled to mobile communication module 450, and antenna 2 is coupled to wireless communication module 460 and / or NFC module 461, so that electronic device 400 can communicate with a network and other electronic devices via wireless communication technologies. The wireless communication technologies 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).

[0246] Electronic device 400 implements display functionality through a GPU, display screen 494, and an application processor. The GPU is a microprocessor for image processing that connects display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 410 may include one or more GPUs that execute program instructions to generate or modify display information.

[0247] Display screen 494 is used to display images, videos, and the like. Display screen 494 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLED, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 400 may include one or N display screens 494, where N is a positive integer greater than one.

[0248] The electronic device 400 can realize the shooting function through the ISP, camera 493, video codec, GPU, display screen 494 and application processor.

[0249] The ISP processes data fed back by camera 493. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 493.

[0250] The camera 493 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 400 may include 1 or N cameras 493, where N is a positive integer greater than 1.

[0251] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 400 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0252] Video codecs are used to compress or decompress digital video. Electronic device 400 may support one or more video codecs. This allows electronic device 400 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0253] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 400, such as image recognition, face recognition, voice recognition, and text comprehension.

[0254] The external memory interface 420 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 400. The external memory card communicates with the processor 410 via the external memory interface 420 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0255] The internal memory 421 can be used to store computer executable program code, which includes instructions. The processor 410 executes various functional applications and data processing of the electronic device 400 by running the instructions stored in the internal memory 421. The internal memory 421 may include a program storage area and a data storage area. The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 400 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 421 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.

[0256] The electronic device 400 can implement audio functions such as music playback and recording through the audio module 470, the speaker 470A, the receiver 470B, the microphone 470C, the headphone jack 470D, and the application processor.

[0257] The audio module 470 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 470 can also be used to encode and decode audio signals. In some embodiments, the audio module 470 can be provided in the processor 410, or some functional modules of the audio module 470 can be provided in the processor 410.

[0258] The speaker 470A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 400 can listen to music or listen to hands-free calls through the speaker 470A.

[0259] The receiver 470B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 400 receives a call or a voice message, the user can place the receiver 470B close to the ear to hear the voice.

[0260] Microphone 470C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 470C to input the sound signal into the microphone 470C. The electronic device 400 can be provided with at least one microphone 470C. In other embodiments, the electronic device 400 can be provided with two microphones 470C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 400 can also be provided with three, four or more microphones 470C to realize sound signal collection, noise reduction, and identification of sound sources, and realize directional recording function, etc.

[0261] The headphone jack 470D is used to connect a wired headphone. The headphone jack 470D may be the USB interface 430 or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.

[0262] Pressure sensor 480A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 480A can be located on display screen 494. There are many types of pressure sensors 480A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force is applied to pressure sensor 480A, the capacitance between the electrodes changes. Electronic device 400 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 494, electronic device 400 detects the intensity of the touch operation based on pressure sensor 480A. Electronic device 400 can also calculate the location of the touch based on the detection signal from pressure sensor 480A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.

[0263] The gyroscope sensor 480B can be used to determine the motion posture of the electronic device 400. In some embodiments, the angular velocity of the electronic device 400 around three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 480B. The gyroscope sensor 480B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 480B detects the angle of the electronic device 400's 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 400 through reverse movement to achieve anti-shake. The gyroscope sensor 480B can also be used for navigation and somatosensory gaming scenes.

[0264] The air pressure sensor 480C is used to measure air pressure. In some embodiments, the electronic device 400 calculates the altitude using the air pressure value measured by the air pressure sensor 480C to assist in positioning and navigation.

[0265] Magnetic sensor 480D includes a Hall sensor. Electronic device 400 can use magnetic sensor 480D to detect the opening and closing of a flip case. In some embodiments, when electronic device 400 is a flip phone, electronic device 400 can detect the opening and closing of the flip cover based on magnetic sensor 480D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.

[0266] Accelerometer 480E can detect the magnitude of acceleration of electronic device 400 in all directions (generally three axes). When electronic device 400 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.

[0267] Distance sensor 480F is used to measure distance. Electronic device 400 can measure distance using infrared or laser. In some embodiments, when photographing a scene, electronic device 400 can use distance sensor 480F to measure distance to achieve fast focusing.

[0268] The proximity light sensor 480G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The light-emitting diode may be an infrared light-emitting diode. The electronic device 400 emits infrared light outward through the light-emitting diode. The electronic device 400 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 400. When insufficient reflected light is detected, the electronic device 400 can determine that there is no object near the electronic device 400. The electronic device 400 can use the proximity light sensor 480G to detect when a user holds the electronic device 400 close to their ear to make a call, so that the screen can be automatically turned off to save power. The proximity light sensor 480G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0269] Ambient light sensor 480L is used to sense ambient light brightness. Electronic device 400 can adaptively adjust the brightness of display screen 494 based on the perceived ambient light brightness. Ambient light sensor 480L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 480L can also work with proximity light sensor 480G to detect whether electronic device 400 is in a pocket to prevent accidental touches.

[0270] The fingerprint sensor 480H is used to collect fingerprints. The electronic device 400 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0271] The temperature sensor 480J is used to detect temperature. In some embodiments, the electronic device 400 uses the temperature detected by the temperature sensor 480J to implement a temperature processing strategy. For example, when the temperature reported by the temperature sensor 480J exceeds a threshold, the electronic device 400 reduces the performance of the processor located near the temperature sensor 480J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 400 heats the battery 442 to prevent the electronic device 400 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 400 boosts the output voltage of the battery 442 to prevent abnormal shutdown due to low temperature.

[0272] Touch sensor 480K, also known as a "touch panel," can be provided on display screen 494. Touch sensor 480K and display screen 494 form a touch screen, also known as a "touch screen." Touch sensor 480K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to an application processor to determine the type of touch event. Visual output related to the touch operations can be provided via display screen 494. In other embodiments, touch sensor 480K can also be provided on the surface of electronic device 400, at a location different from that of display screen 494.

[0273] The bone conduction sensor 480M can obtain vibration signals. In some embodiments, the bone conduction sensor 480M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 480M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 480M can also be set in headphones to form bone conduction headphones. The audio module 470 can parse the voice signal based on the vibration signal of the vibrating bones of the human body obtained by the bone conduction sensor 480M to implement the voice function. The application processor can parse the heart rate information based on the blood pressure pulse signal obtained by the bone conduction sensor 480M to implement the heart rate detection function.

[0274] Keys 490 include a power button, a volume button, and the like. Keys 490 may be mechanical keys or touch-sensitive keys. Electronic device 400 may receive key inputs and generate key signal inputs related to user settings and function control of electronic device 400.

[0275] Motor 491 can generate vibration alerts. Motor 491 can be used for incoming call vibration alerts and touch vibration feedback. For example, touch operations on different applications (such as taking photos, playing audio, etc.) can correspond to different vibration feedback effects. Motor 491 can also correspond to different vibration feedback effects for touch operations on different areas of display screen 494. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. Touch vibration feedback effects can also be customized.

[0276] Indicator 492 can be an indicator light, which can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0277] The SIM card interface 495 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 400 by inserting it into or removing it from the SIM card interface 495. The electronic device 400 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 495 can support Nano SIM cards, MicroSIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 495 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 495 can also be compatible with different types of SIM cards. The SIM card interface 495 can also be compatible with external memory cards. The electronic device 400 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 400 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 400 and cannot be separated from the electronic device 400.

[0278] It is understandable that in the embodiments of the present application, the electronic device 400 (such as an intermediate device, a first device, or a second device) includes hardware structures and / or software modules corresponding to the execution of each function in order to implement the above-mentioned functions. It should be easy for those skilled in the art to realize that, in combination with the units and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software-driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.

[0279] In the embodiment of the present application, the functional modules of the electronic device 400 can be divided according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. In actual implementation, there may be other division methods.

[0280] Example 9

[0281] In the case of an integrated unit, Figure 10 A possible structural diagram of the electronic device 500 involved in the above embodiment is shown.

[0282] In the embodiment of the present application, the electronic device 500 may be the aforementioned intermediate device. The electronic device 500 includes at least a wireless communication module 502 and an NFC module 503 .

[0283] The wireless communication module 502 is used to support communication between the electronic device 500 and other electronic devices. The wireless communication module 502 may include a Bluetooth module and / or a Wi-Fi module. In addition, the wireless communication module 502 may also include other communication modules. In other words, any communication module currently implemented or to be implemented in the future may be included in the wireless communication module 502.

[0284] The NFC module 503 can communicate with other electronic devices, such as the first device or the second device, in the communication range or sensing area of ​​the NFC in, for example, a card emulation mode, a peer-to-peer mode, and a reader mode.

[0285] Illustratively, in the embodiment of the present application, the NFC module 503 mainly operates in reader mode to obtain data of the first device or the second device, such as connection configuration information of the first device and / or the second device.

[0286] When the electronic device 500 serves as the intermediate device, the NFC module 503 can at least be used to support the electronic device 500 in executing S21, S25, S31, S36, S41, S45, S51, S55 and / or other processes for the technology described herein in the above method embodiment.

[0287] The wireless communication module 502 is used to support the electronic device 500 in executing S24 and S34 in the above method embodiment, and / or other processes used for the technology described herein.

[0288] It is understood that in the embodiment of the present application, the unit modules in the electronic device 500 include but are not limited to the wireless communication module 502 and the NFC module 503 described above. For example, the electronic device 500 may further include a processing module (not shown) and a storage module (not shown). The processing module is used to control and manage the electronic device 500. The electronic device 500 implements the above-mentioned S22, S23, S26, S27, S28, S32, S33, S35, S37, S38, S39, S52, S53, S56, S57, and / or other processes for the technology described herein through the processing module in conjunction with the NFC module 503 and the storage module.

[0289] The processing module may be a processor or controller, such as a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The processor may include an application processor and a baseband processor. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on. The storage module may be a memory.

[0290] Example 10

[0291] In the case of an integrated unit, Figures 11a to 11c Another possible structural diagram of the electronic device 600 involved in the above embodiment is shown.

[0292] In the embodiment of the present application, the electronic device 600 may be the aforementioned terminal device, such as the first device or the second device. In this case, the electronic device 600 includes at least a wireless communication module 602. The electronic device 600 also includes an NFC module 603 and / or an NFC tag 604.

[0293] Among them, see Figure 11a In the first case, the electronic device 600 is only configured with an NFC tag 604, that is, the electronic device 600 includes a wireless communication module 602 and an NFC tag 604. In this case, the NFC tag 604 can be used to support the electronic device 600 in executing S21, S25, S31, S36, S41, S45, S51, S55 in the above method embodiment, and / or other processes for the technology described herein. That is, when the intermediate device touches or approaches the NFC tag 604 of the electronic device 600, the intermediate device can obtain data of the electronic device 600 by reading the information of the NFC tag 604.

[0294] The wireless communication module 602 is used to support the electronic device 600 in executing S24, S210, S34, S310, S44, S49, S54, S510 in the above method embodiment and / or other processes used in the technology described herein, that is, to facilitate the electronic device 600 to establish a wireless connection with the intermediate device or other terminal device.

[0295] See also Figure 11b In the second case, the electronic device 600 is configured with an NFC module 603 but not an NFC tag. That is, the electronic device 600 includes a wireless communication module 602 and an NFC module 603. In this case, by setting the NFC module 603 of the electronic device 600 to card emulation mode, the NFC module 603 simulates a card that complies with the NFC standard, that is, simulates a virtual NFC tag. When the intermediate device touches or approaches the NFC module 603 of the electronic device 600, the intermediate device can read the information in the virtual NFC tag and thereby obtain the data of the electronic device 600.

[0296] See also Figure 11c In the third case, the electronic device 600 is configured with an NFC module 603 and an NFC tag 604 at the same time. When the intermediate device touches or approaches the NFC tag 604 of the electronic device 600, the intermediate device can read the information in the NFC tag 604, thereby obtaining the data of the electronic device 600. Alternatively, by setting the NFC module 603 of the electronic device 600 to the card emulation mode, the NFC module 603 simulates a card that complies with the NFC standard, that is, simulates a virtual NFC tag. When the intermediate device touches or approaches the NFC module 603 of the electronic device 600, the intermediate device can read the information in the virtual NFC tag, thereby obtaining the data of the electronic device 600.

[0297] It can be understood that, except for the above differences, the electronic device 600 in the second case and the third case is similar to the electronic device 600 in the first case, and its units, modules and / or working principles are not described in detail.

[0298] It will be understood that in the embodiment of the present application, similar to the electronic device 500, the unit modules in the electronic device 600 include, but are not limited to, the wireless communication module 602, the NFC module 603, and / or the NFC tag 604 described above. For example, the electronic device 600 may further include a processing module (not shown) and a storage module (not shown). The processing module is used to control and manage the electronic device 600. The electronic device 600 uses the processing module in conjunction with the NFC module 603 and / or the NFC tag 604 and the storage module to implement the above-mentioned S29, S310, and / or other processes used in the technology described herein.

[0299] The embodiment of the present application may further provide a computer storage medium, wherein the computer storage medium stores computer program code, and when the processor executes the computer program code, the electronic device may execute Figures 2 to 5 to implement the method in the above embodiment.

[0300] The embodiment of the present application may also provide a computer program product, which, when executed on a computer, enables the computer to execute Figures 2 to 5 to implement the method in the above embodiment.

[0301] It can be understood that the communication connection establishment system, electronic device, computer storage medium or computer program product provided in the embodiments of the present application can be used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0302] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0303] In the several embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0304] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0305] 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 readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application, or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. The software product is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program code, such as a USB flash drive, a mobile hard drive, a ROM, a magnetic disk, or an optical disk.

[0306] The above embodiments are intended only to illustrate the technical solutions of the present application and are not intended to limit the present application. Although the present application has been described in detail with reference to the above preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions of the technical solutions of the present application may be made without departing from the spirit and scope of the technical solutions of the present application. Those skilled in the art may also make other changes within the spirit of the present application and apply them to the design of the present application, as long as they do not deviate from the technical effects of the present application. These changes made in accordance with the spirit of the present application should be included in the scope of protection claimed in the present application.

Claims

1. A method for establishing a communication connection, applied to an intermediate device, characterized in that: include: In response to detecting that the distance between the NFC tag or the NFC module corresponding to the first device is a first preset distance, obtaining first data of the first device; When the first data includes connection configuration information required to establish a wireless connection with the first device, establishing a first communication connection with the first device; In response to detecting that the distance between the NFC tag or the NFC module corresponding to the second device is a second preset distance, acquiring second data of the second device; When the second data includes connection configuration information required to establish a wireless connection with the second device, sending third data to the first device, where the third data is used to instruct the first device to establish a second communication connection with the second device; The first communication connection includes a non-NFC wireless connection, and the second communication connection includes a non-NFC wireless connection.

2. The method according to claim 1, characterized in that The method further comprises: In response to receiving the third data sent by the intermediate device, the first device first disconnects the first communication connection with the intermediate device, and then establishes the second communication connection with the second device.

3. The method according to claim 1, before obtaining the first data of the first device, the method further comprises: receiving a first operation; In response to detecting that the first operation is received, the operating mode is adjusted to the first mode.

4. The method according to claim 1, wherein sending third data to the first device comprises: The connection configuration information required to establish a wireless connection with the second device is encapsulated to obtain the third data, and then the third data is sent to the first device.

5. The method according to any one of claims 1 to 4, characterized in that: The first data further includes first key information, where the first key information is used to indicate whether the first device can establish a communication connection and / or a manner in which the communication connection can be established; The second data also includes second key information, where the second key information is used to indicate whether the second device can establish a communication connection and / or a manner in which the communication connection can be established; The third data also includes third key information. The third key information is used to indicate whether the first device can establish a communication connection with the second device and / or the manner in which the first device can establish a communication connection with the second device.

6. The method according to any one of claims 1 to 4, characterized in that: After the intermediate device establishes a first communication connection with the first device, the intermediate device sends a first notification message to the first device through the first communication connection.

7. The method according to any one of claims 1 to 4, characterized in that: The non-NFC wireless connection includes a Bluetooth connection and / or a WiFi connection.

8. The method according to any one of claims 1 to 4, characterized in that: The connection configuration information required to establish a wireless connection with the first device includes at least one of a media access control address, a service set identifier, and an access password of the first device; The connection configuration information required to establish a wireless connection with the second device includes at least one of a media access control address, a service set identifier, and an access password of the second device.

9. The method according to claim 1, wherein: After acquiring the first data of the first device, the method further includes: The first data is parsed to determine whether the first data includes connection configuration information required to establish a wireless connection with the first device.

10. The method according to claim 1, wherein: After acquiring the second data of the second device, the method further includes: The second data is parsed to determine whether the second data includes connection configuration information required to establish a wireless connection with the second device.

11. An electronic device comprising: A touch screen, wherein the touch screen comprises a touch panel and a display screen; one or more processors; Memory; Multiple applications; and One or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, and when the instructions are executed by the electronic device, the electronic device performs the method according to any one of claims 1 to 10.

12. A communication connection establishment system, comprising: an intermediate device, a first device, and a second device; The intermediate device is used to detect the distance between the intermediate device and the first device; In response to detecting that the distance between the corresponding NFC tag or NFC module of the intermediate device and the first device is a first preset distance, the intermediate device is further configured to obtain first data of the first device; In response to acquiring the first data, the intermediate device is further configured to parse the first data to determine whether the first data includes connection configuration information required to establish a wireless connection with the first device; In response to the intermediate device determining that the first data includes connection configuration information required to establish a wireless connection with the first device, the intermediate device is further configured to establish a first communication connection with the first device; The intermediate device is further configured to detect a distance between the intermediate device and the second device; In response to detecting that the distance between the intermediate device and the NFC tag or NFC module corresponding to the second device is a second preset distance, the intermediate device is further configured to obtain second data of the second device; In response to acquiring the second data, the intermediate device is further configured to parse the second data to determine whether the second data includes connection configuration information required to establish a wireless connection with the second device; In response to the intermediate device determining that the second data includes connection configuration information required to establish a wireless connection with the second device, the intermediate device is further configured to send third data to the first device, where the third data is used to instruct the first device to establish a second communication connection with the second device; The first communication connection includes a non-NFC wireless connection, and the second communication connection includes a non-NFC wireless connection.

13. The system according to claim 12, wherein: After the intermediate device sends the third data to the first device, the method further includes: In response to receiving the third data sent by the intermediate device, the first device first disconnects the first communication connection with the intermediate device, and then establishes the second communication connection with the second device.

14. The system according to claim 12, further comprising: before the intermediate device obtains the first data of the first device: The intermediate device is used to receive a first operation; In response to detecting that the intermediate device receives the first operation, the intermediate device is further configured to adjust the working mode to the first mode.

15. The system according to claim 12, wherein in response to the intermediate device determining that the second data includes connection configuration information required to establish a wireless connection with the second device, the intermediate device sending third data to the first device comprises: In response to the intermediate device determining that the second data contains the connection configuration information required to establish a wireless connection with the second device, the intermediate device is used to encapsulate the connection configuration information required to establish a wireless connection with the second device to obtain the third data, and the intermediate device then sends the third data to the first device.

16. The system according to any one of claims 12 to 15, characterized in that: The first data further includes first key information, where the first key information is used to indicate whether the first device can establish a communication connection and / or a manner in which the communication connection can be established; The second data also includes second key information, where the second key information is used to indicate whether the second device can establish a communication connection and / or a manner in which the communication connection can be established; The third data also includes third key information. The third key information is used to indicate whether the first device can establish a communication connection with the second device and / or the manner in which the first device can establish a communication connection with the second device.

17. The system according to any one of claims 12 to 15, characterized in that: After the intermediate device establishes a first communication connection with the first device, the intermediate device is further configured to send a first notification message to the first device through the first communication connection.

18. The system according to any one of claims 12 to 15, characterized in that: The non-NFC wireless connection includes a Bluetooth connection and / or a WiFi connection.

19. The system according to any one of claims 12 to 15, characterized in that: The connection configuration information required to establish a wireless connection with the first device includes at least one of a media access control address, a service set identifier, and an access password of the first device; The connection configuration information required to establish a wireless connection with the second device includes at least one of a media access control address, a service set identifier, and an access password of the second device.

20. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Method for establishing communication connection and medium device

    WO2015113260A1