Access methods, systems and electronic devices

By establishing connections between terminal devices and sending connection information, Wi-Fi access without the need for users to enter passwords is achieved, which solves the security and operational complexity issues when accessing Wi-Fi networks in the existing technology, and improves User experience.

CN114615660BActive Publication Date: 2024-10-18HUAWEI TECH CO LTD

Patent Information

Application Number
CN202011399025.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-04
Publication Date
2024-10-18
Estimated Expiration
2040-12-04

AI Technical Summary

Technical Problem

When existing terminal devices are connected to Wi-Fi networks, they have low security and complex operations, resulting in poor user experience.

Method used

The first electronic device establishes a connection with the second electronic device and sends connection information to the second electronic device, so that the second electronic device can automatically access the access point device based on the obtained connection information, thereby realizing access without the user inputting a password. way to improve security and convenience.

Benefits of technology

Automatic password-less access to the Wi-Fi network is achieved, which improves the security and convenience of device access to the network and simplifies user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114615660B_ABST
    Figure CN114615660B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides an access method, system and electronic device. The method includes: a first electronic device connected to an access point device via Wi-Fi, which can establish a connection with a second electronic device when a first interface is displayed and a first trigger event is detected, and send connection information required for connecting to the access point device to the second electronic device through the connection between the second electronic device and the second electronic device, so that the second electronic device can establish a Wi-Fi connection with the access point device based on the received connection information, thereby providing a convenient access method, which allows the second electronic device to access the Wi-Fi network without the user entering a password, thereby improving the security and convenience of the device accessing the network.
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 terminal devices, and in particular, to an access method, system and electronic device. Background Art

[0002] With the rapid development of communication technology, the application scenarios of wireless fidelity (Wi-Fi) networks are becoming more and more extensive. In addition to providing higher speed, larger capacity, lower latency and more refined traffic management, Wi-Fi networks can also provide users with higher spectrum efficiency, larger coverage, more energy-saving scheduling mechanism, higher reliability and security.

[0003] The current technology for terminal devices to access Wi-Fi networks is still imperfect. For example, the terminal requires the user to enter the Wi-Fi network password to access the Wi-Fi network. However, in some scenarios, the low security and complex operation of this access method result in a poor user experience. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides an access method, system and electronic device. In this method, a first electronic device can establish a connection with a second electronic device under certain conditions, and send connection information to the second electronic device based on the established connection, so that the second electronic device can connect to the access point device based on the connection information obtained from the first electronic device, thereby providing a convenient access method, which allows the second electronic device to access the Wi-Fi network without the user entering a password, thereby improving the security and convenience of the device accessing the network.

[0005] In a first aspect, an embodiment of the present application provides an access system. The access system includes a first electronic device, a second electronic device, and an access point device. The first electronic device performs data interaction with the access point device through a Wi-Fi connection, and the first electronic device stores the connection information of the access point device. When the second electronic device is not connected to the access point device, the first electronic device can display a first interface in response to the received first operation. When the first electronic device displays the first interface, the first electronic device detects a first trigger event. Then, the first electronic device establishes a first connection with the second electronic device. Subsequently, the first electronic device can send connection information to the second electronic device through the first connection. The second electronic device can receive the connection information sent by the first electronic device through the first connection. The second electronic device can establish a Wi-Fi connection with the access point device based on the received connection information. In this way, the second electronic device can be connected to the access point device based on the connection information obtained from the first electronic device, thereby providing a convenient access method, which allows the second electronic device to access the Wi-Fi network without the user entering a password, thereby improving the security and convenience of the device accessing the network.

[0006] Exemplarily, the first connection may be a Wi-Fi connection, or may be a Bluetooth connection or other connection modes.

[0007] Exemplarily, the connection information may also be referred to as fingerprint information or network information, which is information required to access a Wi-Fi network, such as the BSSID, SSID, and password of the Wi-Fi network.

[0008] According to a first aspect, a first electronic device is used to display a first window, the first window includes a first option, and the first option is used to indicate that connection information is sent to a second electronic device. In addition, the first electronic device receives a second operation of the user on the first option. In addition, the first electronic device responds to the second operation and sends connection information to the second electronic device through the first connection. In this way, the first electronic device can send connection information to the second electronic device only with the permission of the user, thereby avoiding leakage of connection information caused by misoperation and improving the security of the Wi-Fi network.

[0009] Exemplarily, the first electronic device may display the first option after the connection is established.

[0010] Exemplarily, the first electronic device may display the first option during the connection establishment process.

[0011] Exemplarily, the first electronic device may display the first option before the connection is established.

[0012] According to the first aspect, or any implementation of the first aspect above, the first interface includes a first option box, the first option box includes identification information of a third electronic device and first prompt information, and the first prompt information is used to indicate that the third electronic device interacts with the access point device through a Wi-Fi connection. The first electronic device is also used to display a second option box on the first interface, the second option box includes identification information of a second electronic device and second prompt information, and the second prompt information is used to indicate that the second electronic device interacts with the access device through a Wi-Fi connection. In this way, the second electronic device can be automatically added to the first interface of the first electronic device.

[0013] Exemplarily, the first interface is an interface of a smart life application.

[0014] Exemplarily, the first option may also include option boxes corresponding to other electronic devices, and the electronic devices may be displayed as offline, ie, not connected to the Wi-Fi network and / or not connected to the first electronic device.

[0015] Exemplarily, the first electronic device may send instructions to the second electronic device via a Wi-Fi network to control the second electronic device.

[0016] According to the first aspect, or any implementation of the first aspect above, the second electronic device is an IoT device. In this way, through the solution in the embodiment of the present application, each smart device in the smart home scene can be automatically connected to the Wi-Fi network. For example, through the touch method, the second electronic device that collides with the first electronic device can be connected to the Wi-Fi network.

[0017] According to the first aspect, or any implementation of the first aspect above, the first trigger event is a collision event of the first electronic device, and the acceleration value of the first electronic device within a predetermined time period before the collision event is greater than or equal to a first threshold; wherein the collision event is detected when the first electronic device collides with the second electronic device. In this way, the first electronic device can connect to the network for the second electronic device by touching the second electronic device, that is, transmit connection information, thereby providing a convenient network connection method, so that the second electronic device can quickly access the Wi-Fi network.

[0018] According to the first aspect, or any implementation of the first aspect above, the first trigger event is that the distance value between the first electronic device and the second electronic device is less than or equal to the second threshold value; wherein the distance value is obtained by the first electronic device based on the communication quality parameter between the first electronic device and the second electronic device; or, the distance value is measured by the first electronic device through the ultra-wideband UWB ranging function. In this way, in addition to the touch method, the first electronic device and the second electronic device can also perform network configuration operations in other ways, such as UWB or proximity discovery, providing a variety of convenient network configuration methods, so that the second electronic device can quickly access the Wi-Fi network. In addition, a variety of network configuration methods can be applicable to various types of electronic devices and scenarios, improving the diversity of application scenarios.

[0019] According to the first aspect, or any implementation of the first aspect above, the first electronic device is used to send a first connection request message to the second electronic device when it is detected that the first electronic device displays a first interface and the first electronic device interacts with the access point device through a Wi-Fi connection. The first connection request message is used to indicate the establishment of a connection with the second electronic device; the second electronic device displays the second interface in response to the received second operation. When the second electronic device displays the second interface, the second electronic device detects the first trigger event; then, the second electronic device establishes a first connection with the first electronic device in response to the received first connection request message. In this way, when the first electronic device determines that a specific condition is met, it can act as an initiator and send a connection request message to the second electronic device to establish a first connection with the second electronic device.

[0020] According to the first aspect, or any implementation of the first aspect above, the second electronic device displays a second interface in response to the received second operation; when the second electronic device displays the second interface, the second electronic device detects a first trigger event. When it is detected that the second electronic device displays the second interface and the second electronic device is not connected to the access point device, the second electronic device sends a second connection request message to the first electronic device, and the second connection request message is used to indicate that a connection is established with the first electronic device. The first electronic device establishes a first connection with the second electronic device in response to the received second connection request message. In this way, the second electronic device can, as an initiator, send a connection request message to the first electronic device to establish a first connection with the first electronic device when it is determined that specific conditions are met.

[0021] According to the first aspect, or any implementation of the first aspect above, the second interface is at least one of the following: an application interface of the first application, a screen-lit unlock interface, and a screen-lit lock screen interface.

[0022] According to the first aspect, or any implementation of the first aspect above, the first interface includes at least one of the following: an application interface of the second application, a screen-on-unlock interface, and a screen-on-lock interface; wherein the first application is the same as or different from the second application.

[0023] In a second aspect, an embodiment of the present application provides an access method. Among them, there are a first electronic device, a second electronic device and an access point device. The first electronic device exchanges data with the access point device through a Wi-Fi connection, and the first electronic device saves the connection information of the access point device, and the second electronic device is not connected to the access point device. The method includes: the first electronic device displays a first interface in response to a received first operation. When the first electronic device displays the first interface, a first trigger event is detected. The first electronic device establishes a first connection with the second electronic device. The first electronic device sends connection information to the second electronic device through the first connection. The second electronic device receives the connection information. The second electronic device establishes a Wi-Fi connection with the access point device based on the connection information.

[0024] According to a second aspect, a first electronic device sends connection information to a second electronic device via a first connection, including: the first electronic device displays a first window, the first window includes a first option, and the first option is used to indicate that connection information is sent to the second electronic device; the first electronic device receives a second operation of the user on the first option; and the first electronic device responds to the second operation and sends connection information to the second electronic device via the first connection.

[0025] According to the second aspect, or any implementation of the second aspect above, the first interface includes a first option box, the first option box includes identification information of a third electronic device and first prompt information, and the first prompt information is used to indicate that the third electronic device interacts with the access point device through a Wi-Fi connection; the method also includes: the first electronic device displays a second option box on the first interface, the second option box includes identification information of a second electronic device and second prompt information, and the second prompt information is used to indicate that the second electronic device interacts with the access device through a Wi-Fi connection.

[0026] According to the second aspect, or any implementation of the second aspect, the second electronic device is an Internet of Things (IoT) device.

[0027] According to the second aspect, or any implementation of the second aspect above, the first trigger event is a collision event of the first electronic device, and the acceleration value of the first electronic device within a predetermined time period before the collision event is greater than or equal to a first threshold; wherein the collision event is detected when the first electronic device collides with the second electronic device.

[0028] According to the second aspect, or any implementation of the second aspect above, the first trigger event is that the distance value between the first electronic device and the second electronic device is less than or equal to a second threshold; wherein the distance value is obtained by the first electronic device based on the communication quality parameter between the first electronic device and the second electronic device; or, the distance value is measured by the first electronic device through an ultra-wideband UWB ranging function.

[0029] According to the second aspect, or any implementation of the second aspect above, a first electronic device establishes a first connection with a second electronic device, including: when it is detected that the first electronic device displays a first interface, and the first electronic device interacts with an access point device through a Wi-Fi connection, the first electronic device sends a first connection request message to the second electronic device, and the first connection request message is used to indicate that a connection is established with the second electronic device; the second electronic device displays a second interface in response to the received second operation; when the second electronic device displays the second interface, the second electronic device detects a first trigger event; the second electronic device establishes a first connection with the first electronic device in response to the received first connection request message.

[0030] According to the second aspect, or any implementation of the second aspect above, before the second electronic device receives the connection information, it includes: the second electronic device displays the second interface in response to the received second operation; when the second electronic device displays the second interface, the second electronic device detects the first trigger event; when it is detected that the second electronic device displays the second interface and the second electronic device is not connected to the access point device, the second electronic device sends a second connection request message to the first electronic device, and the second connection request message is used to indicate to establish a connection with the first electronic device; the first electronic device establishes a first connection with the second electronic device, including: the first electronic device establishes a first connection with the second electronic device in response to the received second connection request message.

[0031] According to the second aspect, or any implementation of the second aspect above, the second interface is at least one of the following: an application interface of the first application, a screen-lit unlock interface, and a screen-lit lock screen interface.

[0032] According to the second aspect, or any implementation of the second aspect above, the first interface includes at least one of the following: an application interface of the second application, a screen-on-unlock interface, and a screen-on-lock interface; wherein the first application is the same as or different from the second application.

[0033] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.

[0034] In a third aspect, an embodiment of the present application provides an access method. The method includes: a first electronic device displays a first interface in response to a received first operation. The first electronic device interacts with an access point device via a Wi-Fi connection, and the first electronic device stores connection information of the access point device, and the second electronic device is not connected to the access point device. When the first electronic device displays the first interface, a first trigger event is detected. The first electronic device establishes a first connection with the second electronic device. The first electronic device sends connection information to the second electronic device via the first connection.

[0035] The third aspect and any implementation of the third aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the third aspect and any implementation of the third aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.

[0036] In a fourth aspect, an embodiment of the present application provides an access method. The method includes: the second electronic device displays a second interface in response to a received second operation. When the second electronic device displays the second interface, the second electronic device detects a first trigger event. When it is detected that the second electronic device displays the second interface, a first connection is established with the first device. The first electronic device interacts with the access point device through a Wi-Fi connection, and the first electronic device saves the connection information of the access point device, and the second electronic device is not connected to the access point device. The second electronic device receives the connection information sent by the first electronic device through the first connection. The second electronic device establishes a Wi-Fi connection with the access point device based on the received connection information.

[0037] The fourth aspect and any implementation of the fourth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fourth aspect and any implementation of the fourth aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.

[0038] In a fifth aspect, an embodiment of the present application provides an electronic device. The electronic device includes a memory and a processor, and the memory is coupled to the processor. The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the access method executed by the first electronic device or the second electronic device in the second aspect or any possible implementation of the second aspect.

[0039] The fifth aspect and any implementation of the fifth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fifth aspect and any implementation of the fifth aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.

[0040] In a sixth aspect, an embodiment of the present application provides a chip. The chip includes one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from a memory of an electronic device and send a signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the access method executed by the first electronic device or the second electronic device in the second aspect or any possible implementation of the second aspect.

[0041] The sixth aspect and any implementation of the sixth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the sixth aspect and any implementation of the sixth aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.

[0042] In a seventh aspect, an embodiment of the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for executing the method in the second aspect or any possible implementation of the second aspect.

[0043] The sixth aspect and any implementation of the sixth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the sixth aspect and any implementation of the sixth aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.

[0044] In an eighth aspect, an embodiment of the present application provides a computer program comprising instructions for executing the method in the second aspect or any possible implementation of the second aspect.

[0045] The eighth aspect and any implementation of the eighth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the eighth aspect and any implementation of the eighth aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 is a schematic diagram of the structure of an electronic device shown as an example;

[0047] Figure 2 A schematic diagram of the software structure of an electronic device is shown as an example;

[0048] Figure 3 A schematic diagram of the principle of an access method provided in an embodiment of the present application;

[0049] Figure 4 A schematic diagram of a connection establishment process for exemplary purposes;

[0050] Figure 5 is a schematic diagram of an exemplary user interface;

[0051] Figure 6 is a schematic diagram of an application scenario shown as an example;

[0052] Figure 7 is a schematic diagram of module interaction shown as an example;

[0053] Figure 8 A schematic diagram of a connection establishment process for exemplary purposes;

[0054] Fig. 9 A schematic diagram of a connection establishment process for exemplary purposes;

[0055] Fig.10 A schematic diagram of a connection establishment process for exemplary purposes;

[0056] Fig.11 A schematic diagram of a connection establishment process for exemplary purposes;

[0057] Figures 12a to 12b A schematic diagram of an exemplary user interface;

[0058] Fig.13 A schematic diagram of an exemplary user interface;

[0059] Fig.14 is a schematic diagram of an application scenario shown as an example;

[0060] Fig.15 A schematic diagram of an exemplary user interface is shown. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0062] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0063] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.

[0064] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design 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 designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0065] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

[0066] Figure 1 1 shows a schematic diagram of the structure of the electronic device 100. It should be understood that Figure 1 The illustrated electronic device 100 is merely one example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have a different configuration of components. Figure 1 The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

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

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

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

[0070] The controller may be the nerve center and command center of the electronic device 100. 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.

[0071] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

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

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

[0074] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

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

[0076] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0077] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

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

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

[0080] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0081] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-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 the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0082] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

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

[0084] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0085] The display screen 194 is used to display images, videos, etc. The display screen 194 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0086] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0087] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0088] The camera 193 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 optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted 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 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0089] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0090] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0091] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

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

[0093] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0094] The audio module 170 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 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0095] Optionally, the sensor module 180 may also include a collision detection module (not shown in the figure) for detecting whether a collision event occurs in the electronic device. Optionally, the collision detection module may be a physical device or a non-physical device, which is not limited in this application. For example, the collision detection module may obtain data from the acceleration sensor 180E and the gyroscope sensor 180B, and perform corresponding analysis on the obtained data to detect whether a collision event occurs.

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

[0097] Figure 2 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.

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

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

[0100] like Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, smart life and other applications.

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

[0102] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, a central scheduling module, a collection module, an NFA (nearfind arbitration) module, and the like.

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

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

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

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

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

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

[0109] The central scheduling module is used to call the acquisition module and the NFA module for corresponding processing.

[0110] The collection module is used to collect specified data based on the instructions of the central scheduling module, and based on the specified data, determine whether to trigger the NFA module to perform the connection establishment process.

[0111] The NFA module is used to establish, manage and maintain the connection between an electronic device and another electronic device. The corresponding processing of the central scheduling module, the acquisition module and the NFA module will be described in detail in the following embodiments.

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

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

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

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

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

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

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

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

[0120] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, sensor driver, and Wi-Fi driver.

[0121] like Figure 3 FIG. 1 is a schematic diagram showing a principle of an access method provided in an embodiment of the present application, referring to FIG. Figure 3, exemplarily, in this scenario, mobile phone A exchanges data with the router via Wi-Fi connection, and mobile phone B is not connected to the router, or it can be understood that it is not connected to the access point (AP) corresponding to the router. It should be noted that the "not connected to the router or access point" described in this application can optionally mean that the electronic device has never been connected to the router, that is, the network configuration information of the router's Wi-Fi network has not been saved. Optionally, it can also mean that the electronic device has been connected to the router, but due to other reasons such as reset, the network configuration information of the router's Wi-Fi network is not currently stored or the network configuration information is wrong, resulting in the mobile phone being unable to access the router. The process of mobile phone B accessing the router can include three parts. The first part is to establish a connection. For example, mobile phone A establishes a connection with mobile phone B (also called a communication connection). The second part is to transmit the network configuration information. For example, after mobile phone A establishes a connection with mobile phone B, mobile phone A can send the network configuration information to mobile phone B through the connection between mobile phone A and mobile phone B. In an embodiment of the present application, the network configuration information includes information required to access the Wi-Fi network, for example, it may include: the SSID (Service Set Identifier) ​​and password of the Wi-Fi network, and optionally may also include but is not limited to: BSSID (Basic Service Set Identifier), working channel and encryption method and other information, for example, refer to Figure 3 , mobile phone A transmits the network configuration information of the router's Wi-Fi network to mobile phone B, and mobile phone B receives and saves the network configuration information. In the third part, mobile phone B accesses the router based on the received network configuration information. For example, mobile phone B can establish a Wi-Fi connection with the router based on the received network configuration information (such as SSID and password), and exchange data with the router through the established Wi-Fi connection.

[0122] Exemplarily, in the STA (Station)-AP mode between mobile phone A and a router, and the STA-AP mode between mobile phone B and a router, mobile phone A and mobile phone B can be called stations. The so-called station refers to a terminal device (electronic device) with Wi-Fi communication function and connected to a wireless network. The station can support multiple wireless local area networks (WLAN) standards of the 802.11 family, such as 802.11be, 802.11ax, 802.11ac, 802.11n, 802.11g, 802.11b and 802.11a.

[0123] The access point may optionally be a terminal device (such as a mobile phone) or a network device (such as a router) with a Wi-Fi chip. For example, the access point may be a device that supports the 802.11be standard. The access point may also be a device that supports multiple WLAN standards of the 802.11 family, such as 802.11be, 802.11ax, 802.11ac, 802.11n, 802.11g, 802.11b and 802.11a. Exemplarily, a router may include one or more access points. For example, a dual-band router includes two access points. The BSSIDs of the two access points are different, and the passwords and SSIDs may be the same or different. Optionally, the access point may also be other electronic devices or network devices, such as customer premises equipment (CPE), etc. This application is not limited. Generally, an access point device can support access to multiple site devices. It should be noted that the electronic devices in the embodiments of the present application are generally terminal products that support the 802.11 series of standards. In the evolution from 802.11a to 802.11g, 802.11n, 802.11ac to 802.11ax, the available frequency bands include 2.4 GHz and 5 GHz. With more and more open frequency bands, the maximum channel bandwidth supported by 802.11 has expanded from 20 MHz to 40 MHz and then to 160 MHz. In 2017, the Federal Communications Commission (FCC) of the United States opened a new free frequency band of 6 GHz (5925-7125 MHz). In the 802.11ax project authorization request (PAR), the 802.11ax standard workers expanded the working range of 802.11ax devices from 2.4 GHz and 5 GHz to 2.4 GHz, 5 GHz and 6 GHz.

[0124] Optionally, in the embodiments of the present application, the electronic device and the network device may also be terminal products that support other standards, such as a proprietary protocol or a NAN (neighbor aware network) protocol, which is not limited in the present application.

[0125] It should be noted that the network configuration information in the embodiment of the present application may also be referred to as the fingerprint library information of the Wi-Fi network, or the connection information, or the Wi-Fi network information, etc., which is not limited in the present application. Optionally, the network configuration information is obtained during the process of mobile phone A accessing the Wi-Fi network, and the specific method will be described in conjunction with the WLAN protocol process below.

[0126] It should be further explained that this application only uses a mobile phone as an example for explanation. In fact, the electronic device used to send network configuration information, that is, the device connected to the router, can also be a tablet computer, wearable device, or other device with Wi-Fi function and display interface. Optionally, the electronic device used to receive network configuration information, that is, the device to be connected to the router, can also be a tablet computer, a laptop computer, a speaker, a wearable device, a household appliance, or other device with Wi-Fi function, which is not limited in this application.

[0127] It should be further explained that the Wi-Fi networks involved in the embodiments of the present application are all encrypted networks. For unencrypted networks, the mobile phone can automatically connect to the unencrypted Wi-Fi network based on the received user operations, which will not be repeated below.

[0128] In conjunction with specific embodiments, Figure 3 The three parts involved are explained in detail.

[0129] The first part is establishing a connection.

[0130] like Figure 4 To exemplify a connection establishment process diagram, refer to Figure 4 , exemplarily, in an embodiment of the present application, after the display interfaces of mobile phone A and mobile phone B respectively display specific interfaces, if mobile phone A and mobile phone B touch each other, mobile phone A and mobile phone B start the connection establishment process to establish a Wi-Fi connection.

[0131] Optionally, the specific interfaces corresponding to mobile phone A and mobile phone B may be the same or different. For example, the specific interface corresponding to mobile phone A may be an application interface of a smart life application, and the specific interface corresponding to mobile phone B may be a home page. It should be noted that in other embodiments, the specific interface corresponding to mobile phone A may also be one or more of the home page, setting interface, and the like. For example, mobile phone A may set multiple specific interfaces. When mobile phone A displays the home page or setting interface, etc., it can be considered that mobile phone A displays a specific interface. Optionally, the specific interface corresponding to mobile phone B may be one or more of the application interface of a smart life application, a bright screen unlock interface, or a bright screen lock screen interface. Optionally, the specific interface of mobile phone A and mobile phone B may be that mobile phone A and mobile phone B display the same interface at the same time. For example, if mobile phone A displays a WLAN setting interface and mobile phone B also displays a WLAN setting interface, the WLAN setting interface is the specific interface corresponding to mobile phone A and mobile phone B. Of course, the specific interface may also be the interface of any other application, which is not limited in this application.

[0132] For example, in the following embodiments of this application, the specific interface corresponding to mobile phone A is the smart life application interface, and the specific interface corresponding to mobile phone B is the main page. The limitation of this embodiment based on the specific interface is based on user habits. For mobile phone A that has been networked (i.e., the network configuration information has been saved) and mobile phone B that has not been networked (i.e., the network configuration information has not been saved), only when they are in a specific interface at the same time, will the subsequent network configuration process be triggered, which is more secure, avoids users from triggering operations by mistake, saves power consumption, and improves user experience. It should be noted that the "network configuration" involved in the embodiments of this application can optionally be mobile phone A transmitting network configuration information to mobile phone B, so that mobile phone B can access the corresponding network based on the network configuration information.

[0133] like Figure 5 For a schematic diagram of an exemplary user interface, refer to Figure 5 (1), illustratively, the main interface of mobile phone A includes one or more controls, including but not limited to: application icons, network logos, power logos, etc. In the embodiments of the present application, mobile phone A is an electronic device that has been connected to a router, for example Figure 1 Take mobile phone A as an example, mobile phone B is an electronic device to be connected to the router, for example Figure 1 The following is explained using mobile phone B as an example.

[0134] Continue to refer to Figure 5 (1) For example, a user clicks on the application icon of a smart life application, and mobile phone A responds to the user's operation and displays the application interface of the smart life application, such as Figure 5As shown in (2), illustratively, the application interface of the smart life application includes one or more controls, including but not limited to: option setting icons (such as home options, shopping mall options, etc.), device options (such as TV in the living room, TV in the master bedroom), etc. Optionally, the device option can be used to prompt whether the corresponding device is online, and display the name, type and icon of the device, etc. Optionally, the user can enter the management interface of the device by clicking on the device option to manage the device. Exemplarily, mobile phone A is currently connected to a router, and the Huawei router option in the device option shows that the router is the router in the living room, and the router is online. Optionally, the application interface of the smart life application can also include function options, for example, the function options can include a touch option, which can be used to prompt the user to configure the network for other devices by touching. Optionally, if the touch-to-touch function also corresponds to other functions, for example, functions such as wireless screen projection can be realized through touch-to-touch, illustratively, the function options or touch-to-touch options may further include touch-to-connect and touch-to-screen projection options. For example, when a user clicks on the touch-to-touch option, the mobile phone may display a touch-to-touch option box in response to the user's operation behavior, and the option box includes a touch-to-touch connection option and a touch-to-screen projection option. The user may click on the touch-to-touch connection option to indicate that if a touch event occurs on the mobile phone, the touch event may trigger the process of establishing a connection with another electronic device. Optionally, the function options may also include a proximity discovery connection function and other functions to indicate that the mobile phone can configure a network for other devices through proximity discovery or other methods.

[0135] like Figure 6 This is a schematic diagram of an exemplary application scenario, which illustrates a possible application scenario. User A is the owner of the house, and user A's mobile phone A has been connected to the router. User B is a guest, and user B wants to connect mobile phone B to the router in the house to access the network. User A can hold mobile phone A and use mobile phone A to enter the application interface of the smart life application. In addition, user A can tell user B to put mobile phone B on the home page. Figure 6 For example, mobile phone A displays the application interface of the smart life application, and mobile phone B displays the home page. User A holds mobile phone A and user B holds mobile phone B, and they collide with each other (i.e., mobile phone A and mobile phone B touch each other). It should be noted that Figure 6 The collision mode is only an illustrative example. In other embodiments, the collision position between mobile phone A and mobile phone B can also be any position of the mobile phone, for example, the upper right corner of mobile phone A collides with the back of mobile phone B, etc. This application does not limit this.

[0136] For example, refer to Figure 4 After mobile phone A touches mobile phone B, mobile phone A and mobile phone B initiate a connection establishment process, which includes Figure 4 The stages of confirming the master device or slave device, scanning phase, network selection phase and connection establishment phase, etc.

[0137] In conjunction with specific embodiments, Figure 4 The following are the detailed descriptions of each stage:

[0138] like Figure 7 For an exemplary schematic diagram of module interaction, refer to Figure 7 For example, taking mobile phone A as an example, mobile phone A displays the application interface of the smart life application in response to the user's operation behavior. The central scheduling module can recognize that the smart life interface is currently displayed. For example, after the smart life application is started and displayed in the foreground, the smart life application can output a scheduling message to the central scheduling module to instruct the smart life application to be displayed in the foreground.

[0139] Continue to refer to Figure 7 , exemplarily, after the central scheduling module determines that the main page of mobile phone A displays the application interface of the smart life application, it instructs the collection module to obtain the collision event and perform corresponding processing. Specifically, in the touch connection scenario, the collection module can obtain the detection result of the collision detection module in response to the instruction of the central scheduling module. For example, the collection module can obtain the detection result input by the collision detection module through the program interface, and determine whether a collision event occurs based on the detection result. After determining that a collision event occurs, the collection module can further obtain data collected by the acceleration sensor to determine whether a valid collision event occurs, that is, a touch. For example, after the mobile phone is turned on, the collision detection module and the acceleration sensor can optionally obtain corresponding data in real time or periodically, wherein the data obtained by the collision detection module is used to indicate whether the mobile phone has collided, and the data obtained by the acceleration sensor is used to indicate the acceleration of the mobile phone in space. Optionally, the collection module can be provided with a program interface, and the collection module can monitor the collision detection module and the acceleration sensor based on the program interface to obtain the event of the collision detection module and the data input by the acceleration sensor. It should be noted that in the embodiment of the present application, the acquisition module starts to call the program interface only after receiving the instruction from the central scheduling module to monitor the collision detection module and the acceleration sensor, thereby reducing the power consumption of the mobile phone.

[0140] Exemplarily, based on the instructions of the central scheduling module, the acquisition module monitors the collision detection module and the acceleration sensor to obtain the data and events input by the collision detection module and the acceleration sensor, and based on the obtained data and events, determines whether the trigger conditions of the touch-and-go function are met. It can also be understood as whether a touch-and-go event actually occurs on mobile phone A to prevent misoperation problems.

[0141] Optionally, the triggering conditions of the bump function include but are not limited to: the acquisition module receives the collision event input by the collision detection module; further, after determining that a collision event has occurred, the acquisition module determines that the collision event is valid based on the data input by the acceleration sensor. As described above, a valid collision event means that a bump event occurs on mobile phone A, rather than an accidental touch or a light touch.

[0142] For example, after a collision event occurs in mobile phone A, the collision detection module inputs the collision event to the acquisition module, wherein when mobile phone A accidentally touches or lightly touches, for example, when mobile phone A lightly touches other objects (such as a desktop), the collision detection module will also input the collision event to the acquisition module. In order to exclude ineffective collision events, the acquisition module further obtains the data collected by the acceleration sensor after receiving the collision event input by the collision detection module. Optionally, the acquisition module can obtain the data collected by the acceleration sensor within a set time length through a program interface, and the set time length can be optionally 5s (or other values, such as 3s or 6s, which are not limited in this application) before the acquisition module receives the collision event. The data collected by the acceleration sensor. Exemplarily, the acquisition module can determine whether the collision event is valid based on the data obtained from the acceleration sensor. For example, the acquisition module can filter the data input by the acceleration sensor (including the acceleration values ​​on the x-axis, y-axis and z-axis in the space), for example, by filtering by a sliding average filter method or a weighted recursive average filter method. If the processed acceleration value is greater than a set threshold (which can be set based on actual conditions and is not limited in this application), the acquisition module determines that the collision event is a valid collision event.

[0143] Optionally, the triggering condition of the touch function can also be: two or more (for example, three) valid collision events occur within a set time. For example, after the acquisition module determines that there is a valid collision event (the judgment method is referred to above and is not repeated here), if it is determined that there is a second valid collision event within a set time (for example, within 5 seconds), the acquisition module determines that the touch connection function is triggered, that is, after determining that mobile phone A has a touch operation, the subsequent connection establishment process is initiated.

[0144] Continue to refer to Figure 7, exemplarily, after the acquisition module determines that a touch event occurs on mobile phone A, it instructs the NFA module to initiate a connection establishment process. Exemplarily, the NFA module instructs the Wi-Fi driver to initiate a connection establishment process in response to the instruction received from the acquisition module, and instructs mobile phone A to be the master device for connection establishment or the slave device for connection establishment. It should be noted that the master device in the embodiment of the present application is the initiator of the connection establishment, and the slave device is the device that performs corresponding processing in response to the signaling sent by the initiator of the connection establishment. Optionally, the master device can be mobile phone A, that is, a device that has been connected to the router, and the master device can also be mobile phone B, that is, a device to be connected to the router. In the embodiments of the present application, the master device (that is, the connection initiator) is mobile phone B, that is, the device to be connected to the router, and the slave device is mobile phone A, that is, the device to be connected to the router. It is further noted that the routers referred to in the router to be connected and the router already connected described in the embodiments of the present application are optionally routers (or access points) to which mobile phone A has been connected, for example Figure 3 The router in.

[0145] Exemplarily, the NFA module can determine whether mobile phone A is a master device or a slave device based on set conditions. The set conditions include: the connection state of the mobile phone and the display interface state of the mobile phone.

[0146] For example, in the embodiments of the present application, the conditions set may be as follows: if the mobile phone is connected to a Wi-Fi network, and the display interface of the mobile phone shows the application interface of the smart life application, the mobile phone is determined to be a slave device. If the mobile phone is not connected to a Wi-Fi network, and the display interface of the mobile phone is the main page, the mobile phone is determined to be a master device. For example, in Figure 3In the application scenario shown, mobile phone A is connected to the Wi-Fi network of the router and displays the application interface of the smart life application. Optionally, after detecting that mobile phone A displays the smart life interface, the central scheduling module calls the acquisition module and the NFA module at the same time, that is, instructs the NFA module to display the smart life interface. Exemplarily, NFA can obtain the Wi-Fi connection status of mobile phone A from the Wi-Fi driver, that is, it has been connected to the Wi-Fi network. The NFA module can determine that mobile phone A is a slave device. Correspondingly, mobile phone B is not connected to the router (nor to other Wi-Fi networks), and mobile phone B displays the home page, then the NFA module in mobile phone B can determine that mobile phone B is the master device (the specific judgment method is similar to that of the NFA module in mobile phone A, which is not repeated here). It should be noted that in the embodiments of the present application, only the NFA module is used as an example to illustrate the execution subject for determining whether the master device or the slave device is an example. In other embodiments, the execution subject for determining whether the master device or the slave device is a central scheduling module can also be a central scheduling module. For example, after the acquisition module determines that a touch occurs, it can output the judgment result to the central scheduling module, that is, a touch occurs currently. As described above, the central scheduling module can obtain the Wi-Fi connection status of mobile phone A through the interface between the Wi-Fi driver, such as currently connected to the Wi-Fi network. The central scheduling module can determine that mobile phone A is a slave device based on the set conditions, that is, mobile phone A is connected to the Wi-Fi network and displays the smart life interface, and instruct the NFA module to start the connection establishment process, and indicate that mobile phone A is a slave device.

[0147] In a possible implementation, the set condition can also be: if the mobile phone has been connected to the Wi-Fi network, and the display interface of the mobile phone shows the application interface of the smart life application, the mobile phone is determined to be a slave device. If the mobile phone has been connected to the Wi-Fi network, and the display interface of the mobile phone is the main page, the mobile phone is determined to be the master device. For example, in Figure 3 In the application scenario shown, mobile phone A is connected to the router's Wi-Fi network and displays the application interface of the smart life application. Mobile phone A is the slave device, and mobile phone B is not connected. Figure 3 If the router in the mobile phone is not connected to the Wi-Fi network of other routers, and mobile phone B displays the home page, then mobile phone B is the main device.

[0148] In another possible implementation, as described above, the specific interfaces of mobile phone A and mobile phone B may also be the same, for example, both are smart life application interfaces. In this scenario, the set conditions may be: if the mobile phone is connected to a Wi-Fi network, the mobile phone is determined to be a slave device. If the mobile phone is not connected to a Wi-Fi network, the mobile phone is determined to be a master device.

[0149] In another possible implementation, in a scenario where the specific interfaces of mobile phone A and mobile phone B are the same, the set condition can also be: if the mobile phone has been connected to a Wi-Fi network, and the communication quality parameter of the Wi-Fi network is greater than or equal to a threshold value (i.e., the communication quality is good), the mobile phone is determined to be a slave device. If the mobile phone has been connected to a Wi-Fi network, and the communication quality parameter of the Wi-Fi network is less than a threshold value, the mobile phone is determined to be a master device. For example, Figure 3 As shown, mobile phone A is connected to the Wi-Fi network of the router, and mobile phone B is connected to the Wi-Fi network of another router. Mobile phone B wants to switch to Figure 3 Or, through the dual Wi-Fi connection function, you can connect to the Wi-Fi network of the router in the Figure 3 For example, if the communication quality parameter of the Wi-Fi network of mobile phone A is greater than or equal to the threshold, and the communication quality parameter of the Wi-Fi network of mobile phone B is less than the threshold, mobile phone A can be determined as a slave device, and mobile phone B can be determined as a master device.

[0150] Optionally, the communication quality parameters include but are not limited to at least one of the following: SNR (SIGNAL NOISE RATIO), RSRP (Reference Signal Receiving Power), RSRQ (Reference Signal Receiving Quality), RSSI (Received Signal Strength Indication), etc.

[0151] It should be noted that in the embodiment of the present application, when mobile phone A and mobile phone B confirm the master device or the slave device, they execute it separately. For example, after mobile phone A confirms itself as a slave device and mobile phone B confirms itself as a master device, mobile phone A and mobile phone B do not know the role of the other party. Mobile phone A, as a slave device, waits for mobile phone B, as a master device, to initiate the connection establishment process, while mobile phone B, as the master device, that is, the connection establishment initiator, is used to initiate the connection establishment process, such as sending a scanning message.

[0152] In the embodiments of the present application, Figure 6 , the NFA module detects that mobile phone A is connected to the router, and the display interface of the mobile phone shows the application interface of the smart life application. The NFA module determines that mobile phone A is a slave device.

[0153] It should be noted that each module in mobile phone B also performs the corresponding processing of each module in mobile phone A. For example, when the central scheduling module in mobile phone B detects that mobile phone B is on the main page, it instructs the acquisition module in mobile phone B to perform corresponding processing. For example, after the acquisition module determines that the touch function is triggered, it instructs the NFA module to start the connection establishment process. The NFA module can further detect that mobile phone B is not connected to the router based on the above-mentioned set conditions, and the display interface of mobile phone B is the main page, and determines that mobile phone B is the main device, that is, the initiator of the connection establishment. The content not described in mobile phone B can refer to the relevant content in mobile phone A, which will not be repeated here.

[0154] Continue to refer to Figure 7 Optionally, after the NFA module starts the connection establishment process, it can inform the central scheduling module that the connection establishment process has been started. Optionally, before the connection establishment is completed, if mobile phone A exits the smart life application in response to the received user operation, the central scheduling module detects the call of the smart life application, and does not receive the connection establishment success message fed back by the Wi-Fi driver, the central scheduling module can instruct the NFA module to stop the connection establishment process. The NFA module can respond to the instruction of the central scheduling module and further instruct the Wi-Fi driver to stop the connection establishment process. Correspondingly, the Wi-Fi driver instructs the Wi-Fi chip to stop the connection establishment process and feeds back a connection establishment failure message to the central scheduling module.

[0155] Reference Figure 4 , illustratively, in the embodiment of the present application, mobile phone B is confirmed as the master device, that is, the connection initiator, and mobile phone A is confirmed as the slave device as an example for explanation.

[0156] For example, the role of the slave device (such as mobile phone A) in the embodiment of the present application is similar to the AP in the basic service set BSS (Basic Service Set), and the role of the master device (such as mobile phone B) is similar to the STA in the BSS. The description of AP and STA can be found above and will not be repeated here.

[0157] It should be noted that the connection between mobile phone A and the router in the embodiment of the present application can be a 5GHz connection, a 2.4GHz connection, or a dual connection of 2.4GHz and 5GHz. The connection established between mobile phone A and mobile phone B can be a 2.4GHz connection or a 5GHz connection. The specific implementation depends on the capabilities of the Wi-Fi chip of the mobile phone. For example, if mobile phone A and mobile phone B have Wi-Fi chips that support 2.4GHz and 5GHz, and the Wi-Fi connection between mobile phone A and the router is a 5GHz connection, optionally, the connection established between mobile phone A and mobile phone B can be a 2.4GHz connection to reduce the impact of data interaction between mobile phone A and mobile phone B on data interaction between mobile phone A and the router.

[0158] Specifically, in the scanning phase, mobile phone B acts as the master device, i.e., the connection initiator. In the scanning phase, mobile phone B performs periodic scanning on a designated channel (e.g., channel 6), for example, sending a scanning message every 20 ms. Correspondingly, as described above, mobile phone A acts as a slave device, and mobile phone A is equivalent to an access point working on channel 6. That is to say, in the scanning phase, mobile phone B can find mobile phone A working on channel 6 by scanning, for example, mobile phone B receives a response message sent by mobile phone A. It should be noted that in the embodiment of the present application, only the example of establishing a connection between mobile phone A and mobile phone B on channel 6, i.e., the 2.4 GHz frequency band, is used for illustration. As described above, the connection between mobile phone A and mobile phone B can also be a 5 GHz connection. For example, mobile phone A and mobile phone B can perform the scanning phase on a designated channel on the 5 GHz frequency band, such as channel 135, and the present application does not limit this.

[0159] Continue to refer to Figure 4 For example, in the network selection stage, mobile phone B may determine an accessible access point based on communication quality parameters (the concept is described above) corresponding to one or more scanned access points.

[0160] Exemplarily, in the network selection stage, the method for mobile phone B to determine the accessible access point may be: mobile phone B obtains the distance between each access point based on the communication quality parameters corresponding to one or more access points scanned. Exemplarily, after mobile phone A and mobile phone B touch each other (until the network selection stage), the distance between mobile phone A and mobile phone B is usually less than 20cm. Therefore, the distance between mobile phone A and mobile phone B can be optionally the closest access point among the multiple access points scanned by mobile phone B. Mobile phone B selects mobile phone A as the access point to be accessed and establishes a connection with mobile phone A. It should be noted that the time from mobile phone A and mobile phone B touching each other to mobile phone B entering the network selection stage may be about 1s. Therefore, after mobile phone A and mobile phone B touch each other, the distance between mobile phone A and mobile phone B is usually less than 20cm.

[0161] It should be noted that the scanning phase between mobile phone A and mobile phone B requires two or more signaling interactions. As mentioned above, mobile phone A and mobile phone B are determined to be the master device or the slave device based on the set conditions after touching each other.

[0162] In one possible implementation, if mobile phone A does not display a specific interface, such as the smart life interface, and mobile phone B displays a specific interface, such as the home page, after mobile phone A touches mobile phone B, mobile phone B starts the connection establishment process, that is, confirms it as the main device (see above for details). Since mobile phone A does not display the specific interface, the central scheduling module, the acquisition module and the NFA module will not perform corresponding processing. In other words, mobile phone A does not start the connection establishment process. In this scenario, mobile phone B scans in the scanning phase, such as sending a scanning message on channel 6. Since mobile phone A does not start the connection establishment process, mobile phone B will not receive a response message from mobile phone A in the scanning phase. Therefore, after waiting for the set time (for example, 20ms), mobile phone B determines that the connection establishment fails. Optionally, in this embodiment, mobile phone B, that is, a device that is not connected to a router, is used as an example to illustrate the main device. Accordingly, after mobile phone B determines that the connection fails, the Wi-Fi driver specifically indicates to the central scheduling module that the connection establishment fails. Optionally, mobile phone B can display a prompt message of network configuration failure on the current interface. Optionally, mobile phone B can also display prompt message of possible reasons for the network configuration failure, for example, the reason for the network configuration failure may be that mobile phone A does not display the application interface of the smart application, etc. Based on the prompt message, the user can prompt the user holding mobile phone A so that mobile phone A displays the application interface of the smart application and then touches mobile phone B to perform subsequent operations.

[0163] In another possible implementation, if mobile phone B does not display a specific interface, and mobile phone A does not receive a scanning message from mobile phone B on channel 6 within a set time (for example, 20ms), mobile phone A accordingly determines that the connection has failed, specifically, the Wi-Fi driver indicates to the central scheduling module that the connection establishment has failed. Optionally, mobile phone A may display a prompt message of network configuration failure on the current interface. Optionally, mobile phone A may also display prompt message of possible reasons for the network configuration failure, for example, the reason for the network configuration failure may be that mobile phone B does not display the application interface of the smart application, etc. Based on the prompt message, the user may prompt the user holding mobile phone B so that mobile phone B displays the application interface of the smart application and then touches mobile phone A to perform subsequent operations.

[0164] The above only uses the example of the failure to establish a connection between mobile phone A and mobile phone B due to mobile phone A or mobile phone B not displaying a specific interface. In other embodiments, mobile phone A and mobile phone B may also fail to establish a connection between mobile phone A and mobile phone B due to other reasons, such as network reasons or hardware reasons, etc., which is not limited in this application.

[0165] For example, in the embodiment of the present application, mobile phone A and mobile phone B can establish a connection based on any specified communication protocol. Optionally, the communication protocol can be any of the following: Huawei private protocol, P2P (point to point) protocol, WLAN protocol, NAN protocol, etc. This application does not limit it.

[0166] In one possible implementation, Figure 8 The figure shows the process of establishing a connection between mobile phone A and mobile phone B based on the WLAN protocol. Figure 8 , specifically including:

[0167] S101, mobile phone B sends a Probe Request message to mobile phone A.

[0168] Exemplarily, the Probe Request message sent by mobile phone B to mobile phone A carries the device information of mobile phone B, including but not limited to at least one of the following: device model, device name, MAC address, etc. Optionally, the device information may be included in a specified field of the Probe Request message, such as an IE field.

[0169] S102, mobile phone A sends a Probe Response message to mobile phone B.

[0170] S103, mobile phone A and mobile phone B perform authentication.

[0171] S104, mobile phone A is associated with mobile phone B.

[0172] S105: Mobile phone A and mobile phone B perform a four-way handshake.

[0173] It should be noted that S103 to S105 actually include multiple signaling interactions to transmit corresponding data or information. The specific interaction details can refer to the interaction process in the 802.11 protocol, and this application will not go into details.

[0174] It should be further explained that, as described above, the process of mobile phone A accessing the router also follows the WLAN protocol. For example, mobile phone A can send Probe Request messages on all channels in the 5GHz band or the 2.4GHz band, that is, perform a full network scan, and mobile phone A can receive Probe Response messages sent by the router, wherein the Probe Response message sent by the router carries information such as the SSID, BSSID, and encryption method of the router. Optionally, if the network of the router is an encrypted network, and mobile phone A is accessing the router for the first time, mobile phone A displays a password input prompt box to obtain the password of the router's Wi-Fi network. After the user enters the password, mobile phone A saves the password, SSID, BSSID, encryption method, and other information of the Wi-Fi network (i.e., network configuration information, or fingerprint information), selects the Wi-Fi network to access the router in the network selection stage, and performs the subsequent connection process.

[0175] In another possible implementation, Fig. 9 The figure shows the process of establishing a connection between mobile phone A and mobile phone B based on the NAN protocol. Fig. 9 , specifically including:

[0176] S201, mobile phone B sends a Publish message to mobile phone B.

[0177] Exemplarily, the Publish message sent by mobile phone B to mobile phone A carries the device information of mobile phone B, including but not limited to at least one of the following: device model, device name, MAC address, etc. Optionally, the device information may be included in a specified field of the Publish message, such as an IE (information elements) field.

[0178] S202, mobile phone A sends a low-frequency Followup response message to mobile phone B.

[0179] S203: Mobile phone B sends a Followup authentication message to mobile phone A.

[0180] S204, mobile phone A sends a Followup authentication response message to mobile phone B.

[0181] In another possible implementation, Fig.10 The figure shows the process of establishing a connection between mobile phone A and mobile phone B based on the P2P protocol. Fig.10 , specifically including:

[0182] S301, mobile phone A sends a Probe Request message to mobile phone B.

[0183] Exemplarily, the Probe Request message sent by mobile phone B to mobile phone A carries the device information of mobile phone B, including but not limited to at least one of the following: device model, device name, MAC address, etc. Optionally, the device information may be included in a specified field of the Probe Request message, such as an IE field.

[0184] S302: Mobile phone B sends a Probe Response message to mobile phone A.

[0185] S303: Mobile phone B sends a GO negotiation request (Group Owner negotiation request) message to mobile phone A.

[0186] S304, mobile phone A sends a GO negotiation response message to mobile phone B.

[0187] S305, mobile phone B and mobile phone A send a GO Confirm message.

[0188] It should be noted that the three frame exchanges of S303 to S305 are used to exchange information to determine the GO and the Client. The information exchanged in the three frame exchanges includes but is not limited to: the MAC address of the GO, the Group ID, etc. In the description of the embodiments of the present application, the large screen is used as the GO and the mobile phone is used as the Client.

[0189] S306, mobile phone B sends a Beacon message to mobile phone A.

[0190] S307, mobile phone A and mobile phone B perform link authentication association.

[0191] S308: Mobile phone A and mobile phone B perform a four-way handshake.

[0192] In another possible implementation, Fig.11 The figure shows the process flow of establishing a connection between mobile phone A and mobile phone B based on a private protocol (such as Huawei's private protocol). Fig.11 , specifically including:

[0193] S401, mobile phone B sends an Association Request message to mobile phone A.

[0194] Exemplarily, the Association Request message sent by mobile phone B to mobile phone A carries the device information of mobile phone B, including but not limited to at least one of the following: device model, device name, MAC address, etc. Optionally, the device information may be included in a specified field of the Association Request message, such as an IE field.

[0195] S402: Mobile phone A sends an Association Response message to mobile phone B.

[0196] S403: Mobile phone A and mobile phone B perform a four-way handshake.

[0197] In a possible implementation, in addition to triggering the connection establishment process by touching mobile phone A and mobile phone B, the connection establishment process can also be triggered by other methods. In one example, mobile phone A and mobile phone B can trigger the connection establishment process by approaching the discovery function. For example, after mobile phone A and mobile phone B display specific interfaces respectively, mobile phone A and mobile phone B can be determined as the master device or the slave device based on the status of their respective access routers and specific interfaces. For example, mobile phone B is still the master device and mobile phone A is the slave device. After mobile phone B is determined to be the master device, it initiates the scanning phase, such as scanning on channel 6, that is, sending a scanning message on channel 6. If the distance between mobile phone A and mobile phone B is less than 30cm, mobile phone B can scan mobile phone A on channel 6, such as receiving a scanning response message returned by mobile phone A. Exemplarily, if mobile phone B detects that the communication quality parameter between mobile phone A is greater than or equal to a threshold, mobile phone B initiates a connection to mobile phone A. Exemplarily, if mobile phone B determines that the distance between mobile phone A is less than or equal to a threshold value (e.g., 20 cm) based on the communication quality parameters obtained between mobile phone B and mobile phone A, mobile phone B can establish a connection with mobile phone A. For details not described, please refer to the above text and will not be repeated here. It should be noted that if mobile phone A is used as the connection initiator (i.e., the main device), mobile phone A can optionally obtain the communication quality parameters or distance value between mobile phone A and mobile phone B based on the scanning message sent by mobile phone B. Optionally, mobile phone A can send a scanning request message to mobile phone B, and obtain the communication quality parameters or distance value between mobile phone A and mobile phone B based on the scanning response message returned by mobile phone B.

[0198] In another example, mobile phone A and mobile phone B can also use the UWB (Ultra Wide Band) ranging function to trigger the connection establishment process. For example, mobile phone A and mobile phone B both support the UWB ranging function. After mobile phone A and mobile phone B display a specific interface, taking mobile phone A as an example, mobile phone A can call the data collected by the UWB ranging module, and based on the data collected by the UWB ranging module, it is determined that the distance between mobile phone A and mobile phone B is less than 30cm. Then mobile phone A performs subsequent confirmation of the connection establishment process such as the master device or slave device. Mobile phone B is similar to mobile phone A and will not be repeated here.

[0199] It should be noted that the connection between mobile phone A and mobile phone B described in the embodiment of the present application can be understood as the establishment of a communication connection between mobile phone A and mobile phone B, that is, mobile phone A can communicate with mobile phone B. Optionally, after mobile phone A receives a response message from mobile phone B, or mobile phone B receives a request message from mobile phone A, it can be considered that mobile phone A and mobile phone B have established a connection. Optionally, after mobile phone A and mobile phone B complete a four-way handshake, it can be considered that mobile phone A and mobile phone B have established a connection, which is not limited in this application.

[0200] The second part is to transmit distribution network information.

[0201] For example, Figure 3 As shown, after mobile phone A and mobile phone B establish a connection, mobile phone A can send network configuration information to mobile phone B.

[0202] For example, as described above, before the scanning phase, mobile phone A and mobile phone B need to determine their respective roles, that is, master device or slave device. Mobile phone A and mobile phone B have different roles, and the types of messages they receive and send are also different. Mobile phone A and mobile phone B also have different timings for determining that the connection is established. Fig. 9 For mobile phone A, after receiving the Followup authentication message sent by mobile phone B, it can determine that the connection with mobile phone B is established. For mobile phone B, after receiving the Followup authentication response message sent by mobile phone A, it can determine that the connection with mobile phone B is established. Optionally, if mobile phone A is the master device and mobile phone B is the slave device, that is, mobile phone A is the initiator of connection establishment, then mobile phone A determines that the connection is established after receiving the Followup authentication response message sent by mobile phone B. Correspondingly, mobile phone B determines that the connection is established after receiving the Followup authentication message sent by mobile phone A. The above-mentioned method for mobile phone A and mobile phone B to confirm that the connection is established is also applicable to the connection establishment process of other protocols, which will not be repeated here.

[0203] For example, refer to Figure 7In an embodiment of the present application, mobile phone A acts as a slave device. The Wi-FI driver in mobile phone A determines that the connection is successfully established based on the received message (such as the Followup authentication message) and indicates to the central scheduling module that the connection is successfully established.

[0204] Exemplarily, in response to the received connection establishment success indication, the central scheduling module displays a prompt box on the current display interface of mobile phone A (for example, the current display is the application interface of smart life), such as Fig.12a See Fig.12a For example, the application interface of smart life of mobile phone A displays a prompt box, which includes prompt information, including but not limited to the prompt information of "whether to allow the other device to configure the currently connected Wi-Fi network", and the prompt box also includes the device model and device icon of mobile phone B. As mentioned above, when mobile phone A and mobile phone B establish a connection, mobile phone B can send information such as the device model of mobile phone B to mobile phone A. Optionally, mobile phone A can store device icons corresponding to multiple device signals. Optionally, the device icon can also be transmitted from mobile phone B to mobile phone A, which is not limited in this application. Continue to refer to Fig.12a , exemplarily, the prompt box also includes a "Confirm" option and a "Cancel" option. Optionally, if the user clicks the "Confirm" option, mobile phone A responds to the received user operation and, through the connection with mobile phone B, sends the network configuration information of the Wi-Fi network to which mobile phone A is currently connected to mobile phone B. Optionally, if the user clicks the "Cancel" option, mobile phone A responds to the received user operation, cancels the display of the prompt box, and disconnects from mobile phone B. It should be noted that, as described above, there is no limit to the definition of establishing a connection between mobile phone A and mobile phone B. Optionally, mobile phone A can display the prompt box after receiving the response message sent by mobile phone B for the first time. Optionally, mobile phone A can display the prompt box after performing four handshakes with mobile phone B, which is not limited in this application.

[0205] In one possible implementation, Figure 3 Taking the 5GHz Wi-Fi connection between mobile phone A and the router as an example, both mobile phone A and mobile phone B support 2.4GHz and 5GHz. After mobile phone A and mobile phone B touch each other, mobile phone A and mobile phone B establish a 2.4GHz connection. Based on the 2.4GHz connection between mobile phone A and mobile phone B, mobile phone A sends mobile phone B the network configuration information corresponding to the 5GHz network of the router currently connected to mobile phone A, such as the SSID, password, encryption method, working channel and other information of the 5GHz network.

[0206] In another possible implementation, Figure 3Taking the example of the Wi-Fi connection between mobile phone A and the router being a dual Wi-Fi connection of 2.4GHz and 5GHz, it should be noted that the password, SSID and other information in the network configuration information of the 2.4GHz network and the 5GHz network can be the same or different, while the BSSID in the network configuration information is different. In one example, if mobile phone B only supports 5GHz connection, during the connection establishment process between mobile phone A and mobile phone B, the device information sent by mobile phone B to mobile phone A can also include the Wi-Fi capability of mobile phone B. For example, mobile phone B supports 5GHz connection, mobile phone A determines that the connection with mobile phone B is successfully established, and after receiving the user's operation of clicking the "Confirm" option, mobile phone A can only send the network configuration information corresponding to the 5GHz network to mobile phone B based on the Wi-Fi capability of mobile phone B, that is, supporting 5GHz connection. In another example, if mobile phone B supports 5GHz connection and 2.4GHz connection, mobile phone A can send the network configuration information corresponding to the 2.4GHz network and the 5GHz network to mobile phone B. Optionally, mobile phone A can also send network configuration information corresponding to the best network among the communication quality parameters (see the concept above) in the 2.4GHz network and the 5GHz network to mobile phone B. That is to say, in an embodiment of the present application, if mobile phone A accesses multiple Wi-Fi networks, mobile phone A can send the network configuration information of some or all of the multiple Wi-Fi networks to mobile phone B. This application does not limit this.

[0207] In another possible implementation, if mobile phone A also stores network configuration information corresponding to other networks, the prompt box displayed by mobile phone A may also include a prompt message of "Configure other Wi-Fi networks for the peer device", such as Figure 12b (1) is shown. It should be noted that if mobile phone A only stores the network configuration information corresponding to the currently connected network, mobile phone A may not display the prompt message of "Configure other Wi-Fi networks for the peer device". Figure 12b (1), illustratively, if the user clicks on the prompt message "Configure other Wi-Fi networks for the peer device", mobile phone A displays another prompt box in response to the user operation, and the prompt box includes multiple controls, including the network name corresponding to the network for which mobile phone A stores the network configuration information, and optionally, the working frequency band corresponding to each network, such as Figure 12b (2) as shown. Figure 12b(2) Exemplarily, the multiple networks displayed by mobile phone A optionally include the network currently being connected (e.g., Huawei1 network), and the network currently not connected and having network configuration information stored, such as Huawei2 network and Huawei3 network. Optionally, the user clicks on the Huawei2 network option, and mobile phone A responds to the received user operation and sends the network configuration information corresponding to the Huawei2 network to mobile phone B through the connection with mobile phone B. Optionally, if the user clicks on Huawei1 network and Huawei2 network, mobile phone A responds to the received user operation and transmits the network configuration information of Huawei1 network and the network configuration information of Huawei2 network to mobile phone B.

[0208] Optionally, in response to the user clicking on the prompt message "Configure other Wi-Fi networks for the peer device", the network displayed in another prompt box displayed by mobile phone A may include the currently connected network, the network that is not connected but has the network configuration information stored, and other networks scanned by mobile phone A that do not have the network configuration information stored, such as Figure 12b (3) is shown. It should be noted that the other networks scanned by mobile phone A without network configuration information stored therein may be scanned when mobile phone A accesses a router, or may be scanned and obtained by mobile phone A periodically (for example, scanning once every 10 seconds), or may be obtained after scanning in response to a user clicking on the prompt message "Configure other Wi-Fi networks for the peer device", which is not limited in this application.

[0209] Reference Figure 12b (3) For example, the prompt box may also include prompt information about whether mobile phone A has stored the network configuration information. For example, if Huawei1 network and Huawei2 network are networks that store configuration information, the corresponding prompt information includes the prompt information of "password saved". Huawei3 network is the network that mobile phone A has recently scanned and has no network configuration information stored. For example, the prompt information corresponding to Huawei3 network includes the prompt information of "password not saved". Optionally, if the user clicks on Huawei3 network, mobile phone A responds to the received user operation and displays a password input prompt box on the current interface, such as Figure 12b (4) as shown. Figure 12b (4), illustratively, the password input box optionally includes the network name of the Huawei3 network and a typing box. Optionally, the display interface includes a soft keyboard, and the user can click numbers or letters on the soft keyboard to type the password of the Huawei3 network, and mobile phone A sends the password entered by the user to mobile phone B.

[0210] In a possible implementation, when mobile phone A sends network configuration information to mobile phone B, the network configuration information can be encrypted based on the encryption method agreed with mobile phone B to improve the security of information transmission. Exemplarily, after mobile phone A establishes a connection with mobile phone B, mobile phone A can negotiate an interactive encryption method with mobile phone B through the connection between mobile phone B. For example, the encryption method can be the SHA256 algorithm, etc., which is not limited in this application. Mobile phone A encrypts the network configuration information based on the negotiated encryption method, and sends the encrypted network configuration information to mobile phone B through the connection between mobile phone B. After receiving the encrypted network configuration information, mobile phone B can decrypt it based on the pre-negotiated encryption method to obtain the network configuration information.

[0211] It should be noted that, in the embodiments of the present application, only the example of mobile phone A and mobile phone B establishing a Wi-Fi connection is used for explanation. In other embodiments, mobile phone A and mobile phone B can also establish a connection based on communication protocols such as Bluetooth protocol or ZigBee protocol. For example, after mobile phone A and mobile phone B touch each other, mobile phone A can broadcast network configuration information through Bluetooth, wherein the network configuration information is encrypted in a specific encryption method, and mobile phone B can monitor after touching each other, and after receiving the network configuration information sent by mobile phone A, it decrypts the network configuration information in a specific decryption method to obtain the network configuration information, wherein the connection between mobile phone A and mobile phone B is maintained through Bluetooth low energy (Bluetooh Low Energy, BLE) broadcast.

[0212] In the third part, mobile phone B accesses the router based on the network configuration information.

[0213] Continue to refer to Figure 3 For example, after mobile phone B obtains one or more network configuration information, it can access the network based on the received one or more network configuration information.

[0214] Exemplarily, in an embodiment of the present application, mobile phone B may perform a full network scan every 10 seconds. As described above, a full network scan means that mobile phone B scans all available channels on the 5GHz band and the 2.4GHz band. For example, mobile phone B broadcasts and sends Probe Request messages on each channel on the 5GHz band and the 2.4GHz band in sequence. Each channel may be scanned twice, that is, Probe request messages are sent twice. Optionally, mobile phone B saves the fingerprint library information corresponding to the scanned network, such as SSID, BSSID, etc. Optionally, mobile phone B clears the saved fingerprint library information every 30 seconds.

[0215] For example, after receiving the network configuration information sent by mobile phone A, mobile phone B can detect whether the latest fingerprint library information currently saved is obtained within a specified time. For example, if mobile phone B detects that the latest fingerprint library information currently saved is obtained within 5s or 10s, mobile phone B determines that there is no need to perform the scanning stage and can directly enter the network selection stage, that is, mobile phone B can access the corresponding router based on the obtained network configuration information. Figure 3 As an example, assume that the latest fingerprint database information saved by mobile phone B includes Figure 3 The fingerprint library information of the network corresponding to the router in (i.e., the Huawei1 network), as well as the fingerprint library information of the networks corresponding to other routers, such as the Huawei2 network and the Huawei3 network. Optionally, mobile phone B may, based on the network configuration information of the Huawei1 network, choose to access the Huawei1 network based on the network selection conditions during the network selection stage. Optionally, the network selection conditions include but are not limited to: mobile phone B has accessed the network before, mobile phone B has saved the network configuration information of the network, and the communication quality parameters of the network are greater than or equal to the threshold. That is to say, during the network selection stage, mobile phone B detects that the network configuration information of the Huawei1 network is saved, and determines that the Huawei1 network meets the network selection conditions. Mobile phone B performs subsequent authentication, association, four-way handshake and other stages with the router to access the router, i.e., the Huawei1 network. The connection process between mobile phone B and the router can refer to Figure 8 The WLAN protocol connection process in will not be repeated here.

[0216] Optionally, in an embodiment of the present application, as described above, the network configuration information may also include a working channel of the Wi-Fi network. Exemplarily, if mobile phone B does not detect valid fingerprint library information, for example, the latest fingerprint library information saved is acquired 10s ago, then mobile phone B determines that a scanning phase is required. Exemplarily, in an embodiment of the present application, mobile phone B may be based on the working channel in the network configuration information, and in the scanning phase, only scan on the working channel indicated in the network configuration information. For example, if the channel of the Huawei1 network sent by mobile phone A to mobile phone B is channel 10, optionally, mobile phone B only sends Probe Request messages on channel 10 during the scanning phase to shorten the time consuming scanning phase. The subsequent process can refer to. Figure 8 Optionally, if the network configuration information sent by mobile phone A to mobile phone B is network configuration information corresponding to multiple networks and includes multiple channels, correspondingly, mobile phone B can scan on multiple channels indicated by mobile phone A during the scanning phase.

[0217] It should be noted that, in the embodiment of the present application, mobile phone B stores the received network configuration information in a designated space (or file) in the memory, and the data in the designated space is set to be non-deletable data when the phone is turned off.

[0218] like Fig.13 For an exemplary user interface diagram, refer to Fig.13 For example, after mobile phone B is connected to the router, mobile phone B may display a prompt box on the current interface, including the prompt information "Connected to the network through touch". Optionally, if mobile phone A and mobile phone B are connected through the proximity discovery function, the prompt box of mobile phone B may include the prompt information "Connected to the network through proximity discovery", which is not limited in this application.

[0219] Optionally, as described above, mobile phone A can send network configuration information of a Wi-Fi network that is not currently connected to mobile phone A to mobile phone B. Mobile phone B can save such network configuration information and automatically connect to the Wi-Fi network when it scans the Wi-Fi network corresponding to the network configuration information later. For example, mobile phone A is connected to the Huawei1 network of the router in office A, and mobile phone A stores the Huawei2 network of the router in office B. It should be noted that when mobile phone A and mobile phone B are in office A, they cannot scan the Huawei2 network in office B. In an embodiment of the present application, mobile phone A and mobile phone B are in office A, and mobile phone A establishes a connection with mobile phone B by touching, and in response to user operation, sends the network configuration information of the currently connected Huawei1 network and the stored network configuration information of the Huawei2 network to mobile phone B through the connection between mobile phone B, and mobile phone B receives and saves the network configuration information of the Huawei1 network and the network configuration information of the Huawei2 network. Mobile phone B can automatically access the Huawei1 network based on the received network configuration information. The specific details can be referred to above and will not be repeated here. The user leaves office A with mobile phone B, and after mobile phone B is disconnected from the Huawei1 network, the user enters office B with mobile phone B. Mobile phone B can search for the Huawei2 network in the scanning stage. In the network selection stage, mobile phone B detects that the network configuration information of the Huawei2 network is stored, and mobile phone B can automatically access the Huawei2 network. That is to say, even if mobile phone B has never accessed the Huawei2 network, it can also automatically access the Huawei2 network through the network configuration information obtained from mobile phone A. Optionally, mobile phone B can also record the aging time (for example, 10 minutes). In one example, the aging time can refer to the time limit for automatically accessing the corresponding network based on the network configuration information. It should be noted that in the embodiment of the present application, the aging time is only set for the network configuration information received by mobile phone B from mobile phone A. For the network configuration information obtained by mobile phone B through other means, such as user input, there is no need to set the aging time. For example, within 10 minutes after mobile phone B receives the network configuration information of Huawei1 network and Huawei2 network, if mobile phone B moves to office B, mobile phone B scans the Huawei2 network. In the network selection stage, mobile phone B detects that it has never accessed the Huawei2 network, but has stored the network configuration information of the Huawei2 network, and the duration of the stored network configuration information is less than 10 minutes (that is, the aging time is 10 minutes). Mobile phone B can access the Huawei2 network based on the stored network configuration information of the Huawei2 network.For example, 10 minutes after receiving the network configuration information of Huawei1 network and Huawei2 network, mobile phone B moves to office B. Mobile phone B detects that the network configuration information has exceeded the aging time (10 minutes), and mobile phone B will not automatically connect to the Huawei2 network. Optionally, the user can click on the Huawei2 network in the available Wi-Fi networks displayed in the WLAN setting interface of mobile phone B. In response to the received user operation, mobile phone B connects to the Huawei2 network based on the stored network configuration information of the Huawei2 network, without the user having to enter the password of the Huawei2 network.

[0220] For example, Fig.14 The following is a schematic diagram of an application scenario provided in an embodiment of the present application. Fig.14 , for example, the user's home includes but is not limited to Fig.14 The electronic devices shown in , wherein mobile phone A has been connected to the router, and other devices include: mobile phone B, speakers, call watches, sweepers, notebooks, tablets, etc., which are not connected to the router. Exemplarily, mobile phone A can touch each electronic device separately by touching it to establish a connection and transmit the network configuration information of the router. Each electronic device can automatically access the Wi-Fi network of the router based on the received network configuration information. Optionally, in an embodiment of the present application, for electronic devices that do not have a display interface, such as speakers, desk lamps, etc., such devices can periodically send scan messages (such as Pulish messages) after powering on, or continuously monitor whether the scan message sent by mobile phone A is received, and mobile phone A executes in the manner described above, which will not be repeated here.

[0221] For example, taking a speaker as an example, after mobile phone A and the speaker are successfully paired through touch, mobile phone A can determine that the speaker is a smart home device by identifying the device type and / or device ID of the speaker (the device type and / or device ID are obtained during the connection establishment process, for example, the Followup message sent by the speaker carries the speaker ID and device type). Mobile phone A can add the speaker device icon and related information in the smart life application. For example, Fig.15 This is a schematic diagram of the application interface of the smart life application of mobile phone A, referring to Fig.15 , for example, mobile phone A and Fig.14 After each electronic device in the network is successfully paired with the touch, mobile phone A can identify the electronic device belonging to the smart home device based on the device type and / or ID information of the electronic device, such as Fig.14 For speakers, smart screens, and sweepers, please continue to refer to Fig.15The smart life interface of mobile phone A can display options (also called option boxes) corresponding to speakers, smart screens, sweepers and routers. For example, the option box may include the identification of smart home devices (such as name, room, icon, etc.) and may also include offline / online status.

[0222] For example, in the embodiment of the present application, the online status may be that the smart home device is turned on and connected to the router, and / or the mobile phone is turned on and connected to mobile phone A. That is, even if mobile phone A is disconnected from the smart home device, and the smart home device maintains a Wi-Fi connection with the router, the smart home device can be considered online, and mobile phone A can control the smart home device. For example, the user can click the speaker option 1501 to enter the speaker control interface and control the speaker, such as shutting down, playing music, etc.

[0223] Exemplarily, in an embodiment of the present application, the offline state may optionally be that the smart home device is turned off, or the smart home device is not connected to mobile phone A and the router. It can also be understood that the mobile phone cannot control the smart home.

[0224] It should be noted that after the mobile phone scans (or discovers) a smart home device, an option box for the smart home device can be added to the smart life interface, for example Fig.15 For example, after the mobile phone touches the projector, the mobile phone scans the projector and displays the projector option box 1502 in the smart life interface, where the projector is displayed offline in the option box 1502. After the projector is connected to the mobile phone, the projector is displayed online in the option box 1502. Exemplarily, the mobile phone successfully configures the network for the projector, that is, the mobile phone sends the network configuration information to the projector, and the projector is connected to the router based on the network configuration information. Even if the mobile phone is disconnected from the projector, the smart life interface still displays the projector online. Optionally, after the projector is turned off, the option box 1502 displays that the projector is offline.

[0225] It should be further noted that the smart home devices described in the embodiments of the present application may also be referred to as Internet of Things (IoT) devices. It should be noted that the smart life interface of the mobile phone may also display options corresponding to offline smart home devices.

[0226] Optionally, in the embodiment of the present application, after mobile phone A establishes a connection with an electronic device (such as mobile phone B) and successfully sends network configuration information (such as sending network configuration information twice, or receiving a response message fed back by mobile phone B), the connection with mobile phone B can be disconnected. Fig.14In the scenario shown, after mobile phone A and mobile phone B establish a connection and successfully transmit network configuration information, mobile phone A and mobile phone B are disconnected. The user touches mobile phone A with the smart screen, and after mobile phone A and the smart screen establish a connection and successfully transmit network configuration information, mobile phone A and the smart screen are disconnected. It should be noted that, under normal circumstances, the time taken for mobile phone A to establish a connection with other devices and then disconnect is shorter than the time taken for the user to touch mobile phone A between different devices.

[0227] Optionally, in the embodiment of the present application, after mobile phone A establishes a connection with the speaker and successfully transmits the network configuration information, it maintains the connection with the speaker to perform other operations. For example, the user can control the speaker through mobile phone A. In this example, mobile phone A can continue to establish a connection with other electronic devices and transmit network configuration information while maintaining the connection with the speaker.

[0228] In a possible implementation, if mobile phone A is connected to a smart home device (such as a speaker), and the smart home device is connected to a router, user A sends a music play command to the speaker through a smart life application. For example, user A can enter the speaker control interface by clicking the speaker option 1501 in the smart life interface of mobile phone A, and select to make the speaker play music in the speaker control interface. In one example, mobile phone A can send a music play command to the speaker through the connection with the speaker in response to the received user operation, and the speaker can play music in response to the received command. In another example, mobile phone A can send a music play command to Huawei Cloud through a Wi-Fi network or a cellular network. The command can carry information such as the ID, device type, and user account of the speaker. Huawei Cloud can send a music play command to the router in user A's home based on the received command, and the router forwards the command to the speaker. The speaker can play music in response to the received command. Optionally, the speaker and mobile phone A have the same user account.

[0229] In another possible implementation, if mobile phone A is disconnected from a smart home device (such as a speaker), for example, user A leaves home with mobile phone A, but user A wants to remotely control the speaker to play music. For example, when the speaker is turned on and connected to a router, the speaker option box in the smart life interface of mobile phone A shows that the speaker is online. User A can control mobile phone A to send a music play command to the speaker. Mobile phone A can send the music play command to the speaker through Huawei Cloud and the router.

[0230] It should be noted that the smart life application described in the embodiments of the present application may also be referred to as a home management application, etc., which can be used to control and manage smart home devices.

[0231] It is understandable that, in order to realize the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.

[0232] This embodiment further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the access method in the above-mentioned embodiment.

[0233] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the access method in the above-mentioned embodiment.

[0234] In addition, an embodiment of the present application also provides a device, which may specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor may execute the computer execution instructions stored in the memory so that the chip executes the access method in the above-mentioned method embodiments.

[0235] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.

[0236] Through the description of the above implementation methods, technical personnel in the relevant field can 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.

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

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

[0239] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0240] Any content of each embodiment of the present application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of the present application.

[0241] 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 is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0242] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. An access system, It is characterized in that The device comprises a first electronic device, a second electronic device and an access point device; the first electronic device exchanges data with the access point device via a Wi-Fi connection, and the first electronic device stores connection information of the access point device, and the second electronic device is not connected to the access point device; The first electronic device is used for: In response to the received first operation, displaying a first interface; When the first electronic device displays the first interface, a first trigger event is detected, wherein the first trigger event includes: a collision event occurs on the first electronic device, and an acceleration value of the first electronic device within a predetermined time period before the collision event occurs is greater than or equal to a first threshold; wherein the collision event is detected when the first electronic device collides with the second electronic device; or the distance between the first electronic device and the second electronic device is less than or equal to a threshold; The distance value is obtained by the first electronic device based on the communication quality parameter between the first electronic device and the second electronic device; or, The distance value is obtained by measuring the first electronic device through an ultra-wideband (UWB) ranging function; Establishing a first connection with the second electronic device; sending the connection information to the second electronic device through the first connection; The second electronic device is used for: receiving the connection information; Establish a Wi-Fi connection with the access point device according to the connection information.

2. The system according to claim 1, It is characterized in that The first electronic device is used for: Displaying a first window, wherein the first window includes a first option, and the first option is used to instruct to send the connection information to the second electronic device; receiving a second operation of the user on the first option; In response to the second operation, the connection information is sent to the second electronic device through the first connection.

3. The system according to claim 1, It is characterized in that The first interface includes a first option box, the first option box includes identification information of a third electronic device and first prompt information, the first prompt information is used to instruct the third electronic device to interact with the access point device through a Wi-Fi connection; The first electronic device is further used for: A second option box is displayed on the first interface, wherein the second option box includes identification information of the second electronic device and second prompt information, wherein the second prompt information is used to instruct the second electronic device to perform data interaction with the access point device through a Wi-Fi connection.

4. The system according to claim 3, It is characterized in that The second electronic device is an Internet of Things (IoT) device.

5. The system according to claim 1, It is characterized in that The first electronic device is used for: When it is detected that the first electronic device displays the first interface and the first electronic device interacts with the access point device through a Wi-Fi connection, a first connection request message is sent to the second electronic device, where the first connection request message is used to indicate establishing a connection with the second electronic device; The second electronic device is used for: In response to the received second operation, displaying a second interface; When the second electronic device displays the second interface, the first trigger event is detected; In response to the received first connection request message, the first connection is established with the first electronic device.

6. The system according to claim 1, It is characterized in that The second electronic device is used for: In response to the received second operation, displaying a second interface; When the second electronic device displays the second interface, the first trigger event is detected; When it is detected that the second electronic device displays a second interface and the second electronic device is not connected to the access point device, sending a second connection request message to the first electronic device, where the second connection request message is used to instruct to establish a connection with the first electronic device; The first electronic device is used for: In response to the received second connection request message, the first connection is established with the second electronic device.

7. The system according to claim 5 or 6, It is characterized in that The second interface is at least one of the following: The application interface of the first application, the screen-on-unlock interface, and the screen-on-lock interface.

8. The system according to claim 7, It is characterized in that The first interface includes at least one of the following: The application interface of the second application, the screen-on-unlock interface, and the screen-on-lock interface; The first application is the same as or different from the second application.

9. An access method, It is characterized in that A first electronic device, a second electronic device and an access point device; the first electronic device exchanges data with the access point device via a Wi-Fi connection, and the first electronic device stores connection information of the access point device, and the second electronic device is not connected to the access point device; The first electronic device displays a first interface in response to the received first operation; When the first electronic device displays the first interface, a first trigger event is detected, wherein the first trigger event includes: a collision event occurs on the first electronic device, and an acceleration value of the first electronic device within a predetermined time period before the collision event occurs is greater than or equal to a first threshold; wherein the collision event is detected when the first electronic device collides with the second electronic device; or the distance between the first electronic device and the second electronic device is less than or equal to a threshold; The distance value is obtained by the first electronic device based on the communication quality parameter between the first electronic device and the second electronic device; or, The distance value is obtained by measuring the first electronic device through an ultra-wideband (UWB) ranging function; The first electronic device establishes a first connection with the second electronic device; The first electronic device sends the connection information to the second electronic device through the first connection; The second electronic device receives the connection information; The second electronic device establishes a Wi-Fi connection with the access point device according to the connection information.

10. The method according to claim 9, It is characterized in that The first electronic device sending the connection information to the second electronic device through the first connection includes: The first electronic device displays a first window, the first window includes a first option, and the first option is used to instruct to send the connection information to the second electronic device; The first electronic device receives a second operation of the user on the first option; In response to the second operation, the first electronic device sends the connection information to the second electronic device through the first connection.

11. The method according to claim 9, It is characterized in that The first interface includes a first option box, the first option box includes identification information of a third electronic device and first prompt information, the first prompt information is used to instruct the third electronic device to interact with the access point device through a Wi-Fi connection; the method further includes: The first electronic device displays a second option box on the first interface, where the second option box includes identification information of the second electronic device and second prompt information, where the second prompt information is used to instruct the second electronic device to perform data interaction with the access point device via a Wi-Fi connection.

12. The method according to claim 11, It is characterized in that The second electronic device is an Internet of Things (IoT) device.

13. The method according to claim 9, It is characterized in that The first electronic device establishes a first connection with the second electronic device, including: When it is detected that the first electronic device displays the first interface and the first electronic device interacts with the access point device through a Wi-Fi connection, the first electronic device sends a first connection request message to the second electronic device, where the first connection request message is used to indicate establishing a connection with the second electronic device; The second electronic device displays a second interface in response to the received second operation; When the second electronic device displays the second interface, the second electronic device detects the first trigger event; The second electronic device establishes the first connection with the first electronic device in response to the received first connection request message.

14. The method according to claim 9, It is characterized in that Before the second electronic device receives the connection information, the method includes: The second electronic device displays a second interface in response to the received second operation; When the second electronic device displays the second interface, the second electronic device detects the first trigger event; When it is detected that the second electronic device displays a second interface and the second electronic device is not connected to the access point device, the second electronic device sends a second connection request message to the first electronic device, where the second connection request message is used to instruct to establish a connection with the first electronic device; The first electronic device establishes a first connection with the second electronic device, including: The first electronic device establishes the first connection with the second electronic device in response to the received second connection request message.

15. The method according to claim 13 or 14, It is characterized in that The second interface is at least one of the following: The application interface of the first application, the screen-on-unlock interface, and the screen-on-lock interface.

16. The method according to claim 15, It is characterized in that The first interface includes at least one of the following: The application interface of the second application, the screen-on-unlock interface, and the screen-on-lock interface; The first application is the same as or different from the second application.

17. An electronic device, It is characterized in that include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the access method executed by the first electronic device or the second electronic device according to any one of claims 9 to 16.

18. A chip, It is characterized in that It comprises one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from a memory of an electronic device and send the signal to the processor, the signal comprising a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the access method executed by the first electronic device or the second electronic device described in any one of claims 9 to 16.

Citation Information

Patent Citations

  • Application function implementation method and electronic device

    WO2019227450A1

Cited By

  • Access method and system and electronic device

    WO2022116974A1