CN111277985A - WiFi network connection method and device - Google Patents

WiFi network connection method and device Download PDF

Info

Publication number
CN111277985A
CN111277985A CN202010072418.9A CN202010072418A CN111277985A CN 111277985 A CN111277985 A CN 111277985A CN 202010072418 A CN202010072418 A CN 202010072418A CN 111277985 A CN111277985 A CN 111277985A
Authority
CN
China
Prior art keywords
equipment
wifi
identification information
processor
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010072418.9A
Other languages
Chinese (zh)
Inventor
刘建锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010072418.9A priority Critical patent/CN111277985A/en
Publication of CN111277985A publication Critical patent/CN111277985A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Abstract

The application relates to the technical field of communication and discloses a WiFi network connection method and device. The application relates to a first device, a second device and an AP device, wherein the first device and the AP device establish WiFi connection, and the second device and the AP device do not establish WiFi connection. The WiFi network connection method comprises the steps that the first equipment acquires the identification information of the second equipment, and then the identification information is sent to the AP equipment. And the AP equipment directly establishes WiFi connection with the second equipment according to the identification information. In this way, the first device does not need to forward the WiFi configuration information to the second device, so that security can be improved. In addition, the first device can acquire the identification information from the second device through NFC, for example, and the operation convenience can also be improved.

Description

WiFi network connection method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a wireless fidelity (WiFi) network connection method and device.
Background
The internet of things (IoT) is a network supporting information interaction between people and things. The "things" may be referred to as IoT devices, which are devices that support wireless network connections.
The implementation process of an IoT device accessing a wireless network for the first time may be referred to as an IoT distribution network, and currently, existing mainstream IoT distribution network methods each include an implementation process of a third-party device forwarding WiFi configuration information to the IoT device. The operation of forwarding the WiFi configuration information by the third-party device has a risk of revealing the WiFi configuration information, resulting in poor security.
Disclosure of Invention
The application provides a WiFi network connection method and device, which can solve the problem that the existing IoT network distribution method is poor in safety.
In a first aspect, the present application provides a WiFi network connection method, which is applied to a first device, where the first device has a wireless WiFi connection relationship with a wireless access point AP device, and the method includes: the first device acquires identification information of a second device, wherein the identification information is used for identifying the second device so as to distinguish the second device from other devices at least in the coverage area of the AP device, and the second device is a device which does not establish WiFi network connection with the AP device; and the first equipment sends a control instruction to the AP equipment through the WiFi connection, the control instruction contains the identification information, and the control instruction is used for triggering the AP equipment to establish the WiFi connection with the second equipment.
The first device may be any device that supports wireless network connectivity. In the embodiment of the present application, the first device may be referred to as an access device or a proxy device. In some embodiments, the first device may obtain the identification information of the second device by means of NFC. In other embodiments, the first device may obtain the identification information of the second device by scanning the two-dimensional code of the identification information. The identification information is at least within a signal coverage of the AP device, and is capable of distinguishing the second device from other devices. And then, the first equipment sends the identification information to the AP equipment, so that the AP equipment can accurately receive and send WiFi connection information with the second equipment according to the identification information, and further, WiFi connection is established with the second equipment. Therefore, the risk that the first equipment forwards the WiFi connection information can be avoided, and the safety of the network is improved.
In one possible design, the obtaining, by the first device, identification information of the second device includes: and the first equipment acquires the identification information from the second equipment in a wireless communication mode. By adopting the implementation mode, the user can trigger the first equipment to acquire the identification information of the second equipment as long as the user starts the wireless communication function of the first equipment and the second equipment. Therefore, the operation convenience of the user can be improved, and the operation experience of the user is improved.
In one possible design, the obtaining, by the first device, the identification information from the second device by way of wireless communication includes: the first equipment sends an acquisition request to the second equipment through Near Field Communication (NFC); and the first equipment receives an NFC response message from the second equipment, wherein the NFC response message contains the identification information. By adopting the implementation mode, the user only needs to open the NFC of the first equipment and the second equipment, and then the first equipment is close to the second equipment, so that the purpose of establishing WiFi connection between the second equipment and the AP equipment can be achieved, the operation convenience of the user can be improved, and the operation experience of the user is improved.
In one possible design, the obtaining, by the first device, identification information of the second device includes: and the first equipment identifies the two-dimensional code containing the identification information to obtain the identification information. By adopting the implementation mode, the second equipment does not need to be provided with hardware facilities such as a camera, and the like, so that the applicability is wide and the operation convenience is strong.
In a second aspect, the present application provides a WiFi network connection method, which is applied to a wireless access point AP device, where the AP device and a first device have a WiFi connection relationship, and the method includes: the AP equipment receives a control instruction from the first equipment through the WiFi connection, wherein the control instruction comprises identification information, the identification information is used for identifying second equipment so as to distinguish the second equipment from other equipment at least in the coverage area of the AP equipment, and the second equipment is equipment which does not establish WiFi network connection with the AP equipment; and the AP equipment responds to the control instruction to establish WiFi connection with the second equipment.
The AP device may be used as a "wireless access node" in a wireless network to access wireless clients (e.g., a first device and a second device) to the wireless network. In this embodiment, the AP device may identify the second device at least within the coverage of the AP device according to the identification information. Based on the above, the AP device can accurately send WiFi configuration information to the second device, and even if connection information from multiple devices is received, the AP device can identify the connection information from the second device according to the identification information, and then directionally establish a WiFi network connection with the second device. Therefore, by the adoption of the implementation mode, the risk caused by the fact that the first device forwards the WiFi configuration information can be avoided, and the safety of the WiFi configuration information is improved. In addition, even if a plurality of devices receive the WiFi configuration information, the AP device may not respond to the connection request of the other devices except the second device by using the identification information, so that the devices except the second device can be prevented from accessing the network, and the security of the network can be improved.
In one possible design, the AP device establishing a WiFi connection with the second device in response to the control instruction includes: the AP equipment sends a first WiFi connection instruction to the second equipment, wherein the first WiFi connection instruction comprises WiFi configuration information; the AP equipment receives connection information corresponding to the WiFi configuration information from the second equipment; and the AP equipment establishes WiFi connection with the second equipment. The AP equipment has at least one of the functions of initiatively initiating the WiFi connection and triggering other equipment to initiate the WiFi connection. Based on this, with the implementation, after receiving the identification information, the AP device may actively send WiFi configuration information to the second device, so as to initiate a WiFi connection invitation to the second device. Therefore, the WiFi configuration information can be prevented from being forwarded by the first equipment, and the completeness of the WiFi configuration information and the network is improved.
In one possible design, the AP device establishing a WiFi connection with the second device in response to the control instruction includes: the AP equipment sends a second WiFi connection instruction to the second equipment; the AP equipment receives a request of the second equipment for responding to the second WiFi connection instruction to acquire WiFi configuration information; the AP equipment sends WiFi configuration information to the second equipment; and the AP equipment responds to the connection information of the second equipment and establishes WiFi connection with the second equipment. The AP equipment has at least one of the functions of initiatively initiating the WiFi connection and triggering other equipment to initiate the WiFi connection. Based on this, with the implementation, after receiving the identification information, the AP device may trigger the second device to initiate a WiFi connection request, and finally establish a WiFi network connection with the second device. Therefore, the WiFi connection information can be prevented from being forwarded by the first equipment, and the completeness of the network is improved.
In a third aspect, the present application provides an electronic device having a function of implementing the behavior of the electronic device in the above method. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above-described functions. In one possible design, the electronic device includes a processor and a transceiver, and the processor is configured to process the electronic device to perform the corresponding functions of the method. The transceiver is used for realizing communication between the electronic device and a second device and a wireless Access Point (AP) device. The electronic device may also include a memory, coupled to the processor, that retains program instructions and data necessary for the electronic device.
In a fourth aspect, the present application provides an AP device, where the AP device has a function of implementing an AP device behavior in the foregoing method. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above-described functions. In one possible design, the structure of the AP device includes a processor and a transceiver, and the processor is configured to process the AP device to perform corresponding functions in the method. The transceiver is used for realizing communication between the AP equipment and the first equipment and the second equipment. The AP device may also include a memory, coupled to the processor, that stores program instructions and data necessary for the AP device.
In a fifth aspect, the present application further provides a chip system, which is disposed in the electronic device in the third aspect, and includes at least one processor and an interface. The interface is coupled to the processor for receiving code instructions and transmitting the code instructions to the at least one processor. The at least one processor executes the code instructions and implements some or all of the steps of the WiFi network connection method of the first aspect and various possible implementations of the first aspect.
In a sixth aspect, the present application further provides a chip system, where the chip system is disposed in the AP device in the fourth aspect, and includes at least one processor and an interface. The interface is coupled to the processor for receiving code instructions and transmitting the code instructions to the at least one processor. The at least one processor executes the code instructions and implements some or all of the steps of the WiFi network connection method of the second aspect and various possible implementations of the second aspect.
In a seventh aspect, the present application provides a computer storage medium having instructions stored therein, which when executed on a computer, cause the computer to perform some or all of the steps of the first aspect, the second aspect, various possible implementations of the first aspect, and the WiFi network connection method in various possible implementations of the second aspect.
In an eighth aspect, the present application provides a computer program product which, when run on a computer, causes the computer to perform some or all of the steps of the first aspect, the second aspect, various possible implementations of the first aspect, and the WiFi network connection method in various possible implementations of the second aspect.
Drawings
Fig. 1 is a schematic diagram illustrating an exemplary structure of a WiFi access system 10 provided herein;
fig. 2A is an exemplary schematic structure diagram of a first device 100 provided herein;
FIG. 2B is a schematic diagram of an exemplary structure of a second device 200 provided herein;
fig. 2C is an exemplary structural diagram of the AP device 300 provided herein;
FIG. 3A is an exemplary scenario diagram of a human-computer interaction embodiment scenario provided herein;
FIG. 3B-1 is a schematic diagram of a first exemplary user interface for activating the NFC function provided in the present application;
fig. 3B-2 is a schematic diagram of a second exemplary user operation interface for starting the NFC function provided in the present application;
3B-3 are schematic diagrams of a third exemplary user interface for activating the NFC function provided herein;
FIG. 3C is a schematic diagram of a first exemplary user interface of a notification implementation scenario provided herein;
FIG. 3D is a schematic diagram of a second exemplary user interface for a notification implementation scenario provided herein;
FIG. 4A is a schematic diagram of an exemplary user interface for a two-dimensional code display scenario provided herein;
FIG. 4B-1 is a schematic view of a first exemplary user interface of an implementation scenario of scanning a two-dimensional code provided in the present application;
FIG. 4B-2 is a schematic view of a second exemplary user interface for an implementation scenario of scanning a two-dimensional code provided in the present application;
4B-3 are schematic diagrams of a third exemplary user interface for an implementation scenario of scanning a two-dimensional code provided herein;
4B-4 are schematic diagrams of a fourth exemplary user interface for an implementation scenario of scanning a two-dimensional code provided herein;
fig. 5 is an exemplary signaling interaction diagram of the WiFi network connection method 10 provided in the present application;
fig. 6 is an exemplary signaling interaction diagram of the WiFi network connection method 20 provided herein;
FIG. 7A is a schematic diagram of an exemplary composition of an electronic device 70 provided herein;
FIG. 7B is a schematic diagram of an exemplary structure of a chip system 71 provided herein;
fig. 8A is an exemplary schematic composition diagram of AP device 80 provided herein;
fig. 8B is a schematic diagram of an exemplary structure of a chip system 81 provided in the present application.
Detailed Description
The technical solution of the present application will be clearly described below with reference to the accompanying drawings in the present application.
The terminology used in the following embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in the specification of the present application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that although the terms first, second, etc. may be used in the following embodiments to describe a class of objects, the objects should not be limited to these terms. These terms are only used to distinguish between particular objects of that class of objects. For example, the following embodiments may employ the terms first, second, etc. to describe electronic devices, but the electronic devices referred to in this application should not be limited by these terms. These terms are only used to distinguish between different electronic devices.
The following describes an exemplary implementation scenario of the present application.
Fig. 1 illustrates a WiFi access system 10, where the WiFi access system 10 includes a first device 11, a second device 12, and a wireless Access Point (AP) device 13. Wherein the first device 11 is wirelessly connected with the AP device 13. The second device 12 is a device that needs to access the wireless network through the AP device 13.
The first device 11 and the second device 12 related to the present application may be any devices that support wireless network connection, including: smart phones, tablet computers, smart home devices, industrial control devices, vehicle devices, and the like. The smart home devices can be, for example, smart televisions, smart monitors, smart air conditioners, smart refrigerators, and the like. The industrial control device may be, for example, a supply chain monitoring device, a goods management device, or the like. The vehicular apparatus may be, for example, an in-vehicle apparatus, an automatic navigation apparatus, an intelligent parking apparatus, or the like.
In some embodiments, the first device 11 is, for example, an electronic device including a User Interface (UI), such as a mobile phone, a tablet, a wearable electronic device (e.g., a smart watch), a car recorder, and the like. The UI of the electronic device may be, for example, a touch-sensitive surface or touch panel, etc. In this embodiment, the first device 11 may be referred to as an access device (access device) or a proxy device (agent device), and is not limited herein. In some embodiments, the first device 11 may receive, through the UI, setting information input by a user, where the setting information is used to trigger the first device 11 to perform information interaction with the second device 12 and the AP device 13, so as to complete an operation of the second device 12 to access the wireless network. In some embodiments, the second device 12 is, for example, an electronic device that does not include a user interface UI, e.g., a smart home device, an industrial control device, a vehicle device, etc. In the embodiment of the present application, the second device 12 may be referred to as a to-be-configured network IoT device or a proxied device.
The "UI" referred to in this application is a media interface for interaction and information exchange between an application or operating system and a user, which enables conversion between an internal form of information and a form acceptable to the user. The user interface of the application program is a source code written by a specific computer language such as java, extensible markup language (XML), and the like, and the interface source code is analyzed and rendered on the terminal device, and finally presented as content that can be identified by the user, such as controls such as pictures, characters, buttons, and the like. Controls, also called widgets, are basic elements of user interfaces, and typically have a toolbar (toolbar), menu bar (menu bar), text box (text box), button (button), scroll bar (scrollbar), picture, and text. The properties and contents of the controls in the interface are defined by tags or nodes, such as XML defining the controls contained by the interface by nodes < Textview >, < ImgView >, < VideoView >, and the like. A node corresponds to a control or attribute in the interface, and the node is rendered as user-viewable content after parsing and rendering.
A commonly used presentation form of the user interface is a Graphical User Interface (GUI), which refers to a user interface related to operations and displayed in a graphical manner. It may be an interface element such as an icon, a window, a control, etc. displayed in the display screen of the electronic device, where the control may include a visual interface element such as an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc.
The AP device 13 referred to in the present application may be used as a "wireless access node" in a wireless network. The AP device 13 is used to access wireless clients (e.g., the first device 11 and the second device 12) to the wireless network, on the one hand, and the AP device 13 is also used to transmit communication information of devices within signal coverage, on the other hand. The AP device 13 may include a router, switch, wireless network card, modem, and the like.
The common implementation process of the existing network distribution method includes that the first device 11 acquires WiFi configuration information of the AP device 13, and then sends the WiFi configuration information to the second device 12. As can be seen, the WiFi configuration information needs to be forwarded via a third-party device (i.e., the first device 11 described in this application), so that the WiFi configuration information has a risk of leakage and is poor in security. In addition, the first device 11 typically transmits WiFi configuration information by way of broadcast. In this way, not only the second device 12 can access the network according to the WiFi configuration information, but also other devices located within the coverage area of the AP device 13 can access the network according to the WiFi configuration information, so that the information of the devices in the network is at risk of leakage, and the security of the network is poor.
The application provides a WiFi network connection method and device, wherein a first device acquires a device identifier of a second device, and then sends the device identifier of the second device to an AP device. And then, the AP equipment directly establishes WiFi connection with the second equipment according to the equipment identification. Therefore, the first device does not need to forward the WiFi configuration information to the second device, the situation that other devices acquire the WiFi configuration information and access to a network can be avoided, and the safety can be improved.
It should be understood that the embodiments of the present application may also be applicable to other future-oriented communication technologies. The system architecture, the device and the service scenario described in this application are for more clearly illustrating the technical solution of this application, and do not constitute a limitation to the technical solution provided in this application, and it can be known by those skilled in the art that the technical solution provided in this application is also applicable to similar technical problems along with the evolution of the system architecture and the appearance of new service scenarios.
The following describes the apparatus involved in the embodiments of the present application.
Fig. 2A shows a schematic structural diagram of the first device 100. The first device 100 may include a processor 110, a memory 120, a wireless communication module 130, an antenna 140, a display 150, a sensor module 160, a power management module 170, a battery 180, and the like. The wireless communication module 130 may include a WiFi module 130A, a Near Field Communication (NFC) module 130B, and the like. The sensor module 160 may include a pressure sensor 160A, a touch sensor 160B, and the like.
It is to be understood that the illustrated structure of the present application does not constitute a specific limitation of the first apparatus 100. In other embodiments of the present application, the first device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. For example, in other embodiments, the first device 100 may include a camera.
Processor 110 may include one or more processing units, such as: the processor 110 may include an application processor, a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors. In some embodiments, the first device 100 may also include one or more processors 110.
Wherein the controller may be a neural center and a command center of the first device 100. The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to complete the control of calling the function module, transmitting the communication information and the like.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, and the like.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 160B, etc. via different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 160B via an I2C interface, such that the processor 110 and the touch sensor 160B communicate via an I2C bus interface to implement touch functionality of the first device 100.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 130. For example: the processor 110 communicates with the NFC module in the wireless communication module 130 through the UART interface to implement the NFC function.
A MIPI interface may be used to connect processor 110 with peripheral devices such as display 150. The MIPI interface includes a Display Serial Interface (DSI) and the like. In some embodiments, processor 110 and display screen 150 communicate over a DSI interface to implement display functionality of first device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the display screen 150, the wireless communication module 130, the sensor module 160, and the like. The GPIO interface may also be configured as an I2C interface, a UART interface, a MIPI interface, and the like.
It should be understood that the interfacing relationship between the modules illustrated in the present application is only for illustrative purposes and does not constitute a structural limitation of the first device 100. In other embodiments, the first device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
Memory 120 may be used to store one or more computer programs, including instructions. The processor 110 may execute the above-mentioned instructions stored in the memory 120, so as to enable the first device 100 to perform the WiFi network connection method, information processing, and the like provided in some embodiments of the present application. The memory 120 may include a program storage area and a data storage area. Wherein, the storage program area can store an operating system and the like. The storage data area may store information to be transmitted by the first device 100 (such as identification information of the second device, etc.). Further, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The wireless communication function of the first device 100 may be implemented by the wireless communication module 130, the antenna 140, a modem processor, a baseband processor, and the like.
The wireless communication module 130 may be one or more devices integrating at least one communication processing module. The wireless communication module 130 receives electromagnetic waves via an antenna, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 130 may also receive a signal to be transmitted from the processor 110, perform frequency modulation on the signal, amplify the signal, and convert the signal into electromagnetic waves through the antenna to radiate the electromagnetic waves. In some embodiments, the wireless communication module 130 may further include a functional module for providing communication such as Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Infrared (IR), optical fiber, and the like.
In some embodiments, the solution provided by the wireless communication module 130 may cause the first device 100 to acquire the identification information of the second device 200 and then transmit the identification information to the AP device, so that the second device 200 establishes a WiFi connection with the AP device.
The WiFi module 130A is an embedded module that embeds an ieee802.11b.g.n protocol stack and a Transmission Control Protocol (TCP) and Internet Protocol (IP) protocol stack. The WiFi module 130A provides a function of the first device 100 to access a wireless network. In some embodiments, the WiFi module 130A also provides a function for the first device 100 to send identification information to the AP device 300.
The NFC module 130B is configured to provide a function of contactless data exchange between the first device 100 and other devices provided with NFC modules. The NFC module 130B may perform data interaction with other NFC modules based on technologies such as radio frequency identification, infrared, and the like. The communication distance between the NFC module 130B and other NFC modules can support 0-20 cm, for example. In some embodiments, the NFC module 130B is configured to provide a function for the first device 100 to receive the identification information of the second device 200 from the second device 200.
The antenna 140 is used to transmit and receive electromagnetic wave signals. Each antenna in the first device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a Wireless Local Area Network (WLAN). In other embodiments, the antenna may be used in conjunction with a tuning switch.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of processor 110.
The first device 100 may enable information interaction with a user through the display 150, and the application processor, etc. The display 150 is used to display controls, information, images, and the like. The display screen 150 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like.
The power management module 170 is used to connect the battery 180 with the processor 110. The power management module 170 receives input from the battery 180 and provides power to the processor 110, the memory 120, the wireless communication module 130, the display 150, and the like. The power management module 170 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In other embodiments, the power management module 170 may also be disposed in the processor 110.
The pressure sensor 160A is used for sensing a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 160A may be disposed on display screen 150. The pressure sensor 160A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 160A, the capacitance between the electrodes changes. The first device 100 determines the intensity of the pressure from the change in capacitance. When a touch operation is applied to the display screen 150, the first device 100 detects the intensity of the touch operation according to the pressure sensor 160A. The first device 100 may also calculate the position of the touch from the detection signal of the pressure sensor 160A.
Touch sensor 160B, which may also be referred to as a touch panel or touch sensitive surface. The touch sensor 160B may be disposed on the display screen 150, and the touch sensor 160B and the display screen 150 form a touch screen, which is also called a "touch screen". The touch sensor 160B is used to detect a touch operation applied thereto or therearound. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 150. In other embodiments, the touch sensor 160B may be disposed on the surface of the first device 100, at a different position than the display screen 150. In some embodiments, the touch sensor 160B provides a function of the first device 100 to receive trigger information input by a user.
For example, if the first device 100 includes a camera, the first device 100 may capture a still image, such as a two-dimensional code, through the camera. The static image is projected to the photosensitive element through the optical image generated by the camera. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into information contained in a two-dimensional code, for example, identification information of the second device 200.
The two-dimensional code (2-dimensional barcode), also called a two-dimensional barcode, is a black-and-white alternate pattern that is distributed in a two-dimensional direction (plane) according to a certain rule by using a certain specific geometric figure, and is used for storing information such as characters, numbers, pictures and the like. Illustratively, a two-dimensional code is a combination of several geometric figures, where each figure represents a character or data using a binary representation. Based on this, the first device 100 can identify binary data recorded in the length direction and the width direction of the two-dimensional code by scanning the two-dimensional code, and further analyze the obtained binary data to acquire information contained therein.
The first device 100, illustratively shown in fig. 2A, may interact with information with a user via the display screen 150 and the sensor module 160. The first device 100 may perform information interaction with the AP device 300 through the WiFi module 130A, may also perform information interaction with the second device 200 through the NFC module 130B, and so on.
Fig. 2B shows a schematic configuration of the second device 200. The second device 200 may include a processor 210, a memory 220, a wireless communication module 230, an antenna 240, a power management module 250, a battery 260, and the like. The wireless communication module 230 may include a WiFi module 230A, an NFC module 230B, and the like.
It is to be understood that the illustrated structure of the present application does not constitute a specific limitation of the second device 200. In other embodiments of the present application, the second device 200 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
In this embodiment, the processor 210 includes hardware and software and functions of the hardware and software similar to those of the processor 110. The power management module 250 functions in this embodiment similar to the power management module 170 functions in the first device 100. The function of the battery 260 in this embodiment is similar to the function of the battery 180 in the first device 100. And will not be described in detail herein.
Memory 220 may be used to store one or more computer programs, including instructions. The processor 210 may cause the second device 200 to perform the WiFi network connection method provided in some embodiments of the present application, etc. by executing the above-mentioned instructions stored in the memory 220. In some embodiments, the memory 220 may also store a two-dimensional code containing identification information of the second device 200.
The WiFi module 230A is used to provide a function of the second device 200 establishing a wireless network connection with the AP device 300.
The NFC module 230B is configured to provide a function of contactless data exchange between the second device 200 and other devices provided with NFC modules. For example, the NFC module 230B provides a function in which the second device 200 transmits identification information of the second device 200 to the first device 100.
The second device 200 exemplarily shown in fig. 2B may establish a wireless network connection with the AP device 300 through the WiFi module 230A, may also perform information interaction with the first device 300 through the NFC module 230B, and so on.
Fig. 2C shows a schematic structural diagram of the AP device 300. The AP device 300 may include a processor 310, a memory 320, a radio frequency module 330, an antenna 340, a baseband module 350, and the like. The processor 310, the memory 320, the rf module 330, the antenna 340 and the baseband module 350 are connected to each other via a bus.
It is to be understood that the illustrated structure of the present application does not constitute a specific limitation to the AP device 300. In other embodiments of the present application, the AP device 300 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 310 may generate an operation control signal according to the instruction operation code, the timing signal, and the like, and perform control of invoking other functional modules and transmitting communication information, and the like. The processor 310 may communicate with the memory 320, the rf module 330, and the baseband module 350 through a bus, receive communication signals from the baseband module 350, and call a computer program in the memory 320 to transmit operation control signals to the rf module 330 and the baseband module 350. For example, the processor 310 communicates with the rf module 330 through the bus, so as to implement the function of enabling the rf module 330 to receive and transmit the second device identification information. The processor 310 may also read the identification information stored in the memory 320 and then generate WiFi network control instructions based on the identification information.
Memory 320 may be used to store one or more computer programs, including instructions. The processor 310 may cause the AP device 300 to execute the WiFi network connection method provided in some embodiments of the present application, and identify information, turn on information reception authority, and the like by executing the above-mentioned instructions stored in the memory 320. The memory 320 may include a program storage area and a data storage area. Wherein, the storage program area can store an operating system and the like. The storage data area may store, for example, identification information of the second device received from the first device 100, and the like. The memory 320 may include a high-speed random access memory, may also include a non-volatile memory, and the like.
The AP device 300 may implement a wireless communication function through the radio frequency module 330 and the antenna 340.
The antenna 340 includes an antenna array, and may be configured to receive an electromagnetic wave signal, and then transmit the received electromagnetic wave signal to the radio frequency module 330, so as to implement a function of receiving communication information (e.g., identification information received from the first device 100). The antenna 340 is further configured to convert a signal sent by the radio frequency module 330 into an electromagnetic wave signal, and then transmit the electromagnetic wave signal, so as to implement a transmission function for communication information (e.g., a WiFi network connection instruction sent to the second device 200). Each antenna in the antenna array may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
The rf module 330 may be configured to demodulate the electromagnetic wave signal received by the antenna 340 into a low-frequency baseband signal, and then transmit the low-frequency baseband signal to the baseband module 350. The rf module 330 may also be configured to receive a signal to be transmitted from the baseband module 350, frequency-modulate and amplify the signal to be transmitted, and then transmit the frequency-modulated and amplified signal to the antenna 340.
The baseband module 350 is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal, and then transmit the medium-high frequency signal to the radio frequency module 330. The baseband module 350 is further configured to receive a low-frequency baseband signal from the rf module 330, and then deliver the low-frequency baseband signal to the processor 310.
The AP device 300 exemplarily shown in fig. 2C may transmit communication information with the first device 100 and the second device 200 through the radio frequency module 330 and the antenna 340, may further generate a WiFi network connection instruction through the processor 310, and the like.
The following provides an exemplary description of the implementation process of the present application from the perspective of human-computer interaction.
The WiFi network connection method described in this application may include at least one embodiment, in some embodiments, for example, the first device 100 may obtain the identification information of the second device 200 through NFC (hereinafter, an implementation manner corresponding to this embodiment is referred to as "manner one"), and in other embodiments, for example, the first device 100 may obtain the identification information of the second device 200 through scanning a two-dimensional code (hereinafter, an implementation manner corresponding to this embodiment is referred to as "manner two"). Specific implementation is described in detail below and will not be described in detail here. Based on this, corresponding to different embodiments, the interaction process between the user and each device is different, and the effect presented by the device is also different. The man-machine interaction process corresponding to different embodiments is described below with reference to examples.
Illustratively, as shown in fig. 3A, in the present embodiment, the first device 100 is embodied as a smart phone 31, the second device 200 is embodied as a smart washing machine 32, and the AP device 300 is embodied as a router 33. The smart phone 31 and the smart washing machine 32 are both provided with an NFC module and a WiFi module. The smartphone 31 further includes a display screen and a camera, the display screen of the smartphone 31 may be implemented as the display screen 150 illustrated in fig. 2A, and the camera of the smartphone 31 may be implemented as the camera illustrated in fig. 2A. The router 33 has at least one of a function of actively initiating a WiFi connection and a function of triggering the intelligent washing machine 32 to initiate a WiFi connection. The smartphone 31 has established a WiFi connection with the router 33, for example, using its own WiFi module, and the smart washing machine 32 has not established a WiFi connection with the router 33.
Before performing the following operations, the user may install a router management APP on the smartphone 31.
Further, with reference to fig. 3A, when the first mode is adopted in the present application to implement WiFi network connection, the implementation process is as follows:
opening NFC function of smartphone 31 and smart washer 32
Before the user uses the intelligent washing machine 32, the power plug of the intelligent washing machine 32 can be connected with the power supply, so that the NFC module in the intelligent washing machine 32 is triggered to be started, and the WiFi module in the intelligent washing machine 32 is triggered to be started.
For example, the initial state of the NFC module in the smartphone 31 is an off state. Further, the user may manually turn on the NFC module in the smartphone 31.
In some embodiments, after smartphone 31 presents the home interface shown in fig. 3B-1, the user slides from the end where the "navigation bar" is located to the end of the "menu bar" to call up the "phone status bar". The "navigation bar" refers to an icon bar containing an operator identifier, a signal quality identifier, an electric quantity identifier, and the like in the main interface. The menu bar is an icon bar for setting Applications (APPs) such as telephone, short message and WeChat in the main interface.
It should be noted that, in the actual operation, the operation of the user invoking the "mobile phone status bar" is not limited by the trigger position. For example, the user can call up "cell phone status bar" by performing a slide operation at a position to the left of the interface illustrated in fig. 3B-1. Similarly, the user can call up the "cell phone status bar" by performing a sliding operation at the right position of the interface illustrated in fig. 3B-1. This is not limited by the present application.
After the user slides the "cell phone status bar" called out, the smartphone 31 presents, for example, the interface illustrated in fig. 3B-2. The user can see functional icons of "WLAN", "bluetooth", "flashlight", "flight mode", "auto-spin", "NFC", etc. in the "cell phone status bar", and the user can determine the status of the corresponding function according to the color or brightness presented by the icon. The icon is gray or dark, which can indicate that the function corresponding to the icon is in the off state, and the icon is bright, which can indicate that the function corresponding to the icon is in the on state. For example, the icon of "WLAN" illustrated in fig. 3B-2 appears bright, illustrating that the wireless networking function of the smartphone 31 is in an on state. As another example, "NFC" illustrated in fig. 3B-2 appears gray or dark, indicating that the NFC communication function of the smartphone 31 is in an off state.
Furthermore, the user can switch the state of the function corresponding to the icon by clicking the icon in the mobile phone status bar. As shown in fig. 3B-3, the user may click on the "NFC" icon in the "cell phone status bar" to turn on the NFC communication function of the smartphone 31. Accordingly, after the user clicks the "NFC" icon, the "NFC" icon appears bright (not shown in the figure), and the NFC communication function of the smartphone 31 is turned on. Similarly, when the user wants to close some functions, the user can also trigger by clicking the corresponding icon. For example, the "bluetooth" icon appears bright, for example, indicating that the bluetooth function of the smartphone 31 is in an on state. After clicking the Bluetooth icon, the user triggers the Bluetooth function to close. Accordingly, the "bluetooth" icon appears gray or dark.
The embodiment illustrated in fig. 3B-1 through 3B-3 is merely one exemplary operation by the user. In actual use, the user may also turn on the NFC function of the smartphone 31 through other operation modes. And will not be described in detail herein.
Forwarding identification information of smart washing machine 32 using smart phone 31
As shown in fig. 3C, after the NFC function of the smartphone 31 and the NFC function of the smart washing machine 32 are turned on, the user may hold the smartphone 31 close to the smart washing machine 32. Furthermore, the user can see a dialog box "acquire information" W0330 ", automatically close after 5 seconds", for example, on the interface of the smartphone 31. The dialog box contains a "close" button and the number of seconds in the dialog box is reduced by 1 every second, starting with 5. The user may trigger a "close" button to close the dialog box before it is automatically closed. In the present embodiment, "W0330" is, for example, identification information of the intelligent washing machine 32.
Further, as shown in fig. 3D, after the user holds the smartphone 31 close to the smart washing machine 32 for a while, the user can see the notification message of "device W0330 accessing the WiFi network" on the interface of the smartphone 31.
Among them, between the embodiment illustrated in fig. 3C to the embodiment illustrated in fig. 3D, the intelligent washing machine 32 and the router 33 perform information interaction to execute the WiFi network connection method of the present application. The implementation processes of the intelligent washing machine 32, the intelligent washing machine 32 and the router 33 are described in detail in the following embodiments, and will not be described in detail here.
It is understood that fig. 3B-1 through 3D are merely schematic depictions that do not limit the scope of the present application. In other embodiments, depending on the operating system of the smartphone 31, the interface presented by the smartphone 31 after receiving the trigger of the user may be other, and the information content in the notification dialog box may be other. Accordingly, the operation steps of the user opening the NFC function and the user opening the authority of the router 33 may be different from the descriptions of fig. 3B-1 to 3B-3. And so on. And will not be described in detail herein.
Therefore, by adopting the implementation mode, the user only needs to start the NFC of the first device and the second device, and then the first device is close to the second device, so that the purpose of establishing WiFi connection between the second device and the AP device can be achieved, the operation convenience of the user can be improved, and the use experience of the user is improved.
With reference to fig. 3A, when the WiFi network connection is implemented in the second mode, the implementation process is as follows:
generating two-dimensional code
As shown in fig. 4A, the intelligent washing machine 32 includes, for example, an "equipment information" button and a display screen. The user can press the "device info" button, after which the user can see the two-dimensional code on the display screen. The two-dimensional code contains identification information of the intelligent laundry machine 32.
In addition, in some embodiments, the second device 200 is, for example, a device that does not include a display screen, such as a smart sound box, and then the two-dimensional code including the identification information may be generated in advance at the time of factory shipment and marked on the housing of the second device 200.
Forwarding identification information of smart washing machine 32 using smart phone 31
In this embodiment, the user may control the smart phone 31 to scan the two-dimensional code of the smart washing machine 32, so that the smart phone 31 obtains the identification information of the smart washing machine 32, and then, the smart phone 31 is triggered to send the identification information of the smart washing machine 32 to the router 33, so as to establish WiFi connection between the smart washing machine 32 and the router 33. Illustratively, the user may use the router management APP to scan the two-dimensional code of the intelligent laundry machine 32.
Illustratively, as shown in FIG. 4B-1, the user clicks on the router management APP to enter the router management host interface.
As shown in fig. 4B-2, the user can see icon "…" in the upper right corner of the router administration home interface. Thereafter, the user clicks on icon "…" to bring up a menu of functions.
As shown in fig. 4B-3, the function menu includes function items such as "disconnect", "restart the router", "scan", and the like, and the user can trigger the "scan" function to enter the interface for scanning the two-dimensional code.
Further, as shown in fig. 4B-4, the interface center of the smartphone 31 includes a square scan frame, and the electron beam periodically moves from one frame of the scan frame to the opposite frame of the scan frame to scan the image in the scan frame. The user can aim at the two-dimensional code of the intelligent washing machine 32 with the camera of the intelligent mobile phone 31, so that the two-dimensional code of the intelligent washing machine 32 is completely positioned in the scanning frame until the intelligent mobile phone 31 sends out a prompt tone for completing scanning.
After that, the user may see, for example, a notification interface for acquiring the identification information, which is illustrated in fig. 3C, on the interface of the smartphone 31. Further, after a period of time, the user can see a notification interface on the interface of the smartphone 31 that the connection is successful, as illustrated in fig. 3D. And will not be described in detail herein.
It is to be understood that fig. 3A to 4B-4 are only schematic illustrations and do not limit the WiFi network connection method of the present application. In some other embodiments of the present application, the smartphone 31 may present other display effects in response to the operation of the user, and accordingly, the processes of setting by the user and the like may also be different from those described in the foregoing embodiments. In addition, during the information interaction between the smart phone 31 and the router 33, and during the information interaction between the router 33 and the smart washing machine 32, the smart phone 31 may also present other display effects, or may not present any display effect, and the like. And are not limited herein.
It should be noted that, in some existing implementation methods, in order to forward WiFi configuration information to a second device using a first device, a user needs to first operate the first device to disconnect a WiFi connection with an AP device, and then operate the first device to establish a WiFi connection with the second device. Therefore, the conventional operation method has poor operation convenience. Therefore, by adopting the implementation manner of the embodiment of the application, the function of establishing the WiFi connection between the second device and the AP device can be realized only by controlling the first device to be close to the second device or scanning the two-dimensional code of the second device by using the first device. Therefore, the operation mode of the embodiment of the application has strong operation convenience and can improve the use experience of the user.
The WiFi network connection method of the present application is exemplarily described below from a device perspective.
Fig. 5 illustrates a signaling interaction diagram of the WiFi network connection method 10. The WiFi network connection method 10 (hereinafter referred to as method 10) includes the following steps:
in step S11, the first device acquires identification information of the second device.
The identification information is used for identifying the second device, so that the second device can be distinguished from other devices in the coverage area of the AP device at least. In some embodiments, the identification information is, for example, a Media Access Control (MAC) address or a Serial Number (SN) of the second device. In other embodiments, the identification information is, for example, part of the second device MAC address, e.g., the last four bits of the second device MAC address. Alternatively, the identification information is, for example, partial information of the second device SN, for example, the last five bits of the second device SN. In some other embodiments, the identification information is, for example, information obtained by converting the MAC address or SN of the second device according to a preset algorithm, and the preset algorithm may be, for example, a hash algorithm.
In some embodiments, the first device and the second device are each provided with an NFC module. Based on this, after the user starts the NFC function of the first device and the second device, the first device and the second device may perform NFC communication to acquire the identification information of the second device. For example, the first device may send a request for obtaining the identification information to the second device through the NFC module of the first device. Then, the second device may encode the device identifier of the second device into an NFC packet in response to the acquisition request, and then transmit the NFC packet to the first device through the NFC module of the second device. Correspondingly, after the first device receives the NFC message, the first device decodes the NFC message to obtain the identification information. In this embodiment, the process of activating the NFC function and other human-computer interaction by the user and the process of other user operations are described in the embodiments illustrated in fig. 3B-1 to 3C, and are not described herein again.
Before step S11, in order to enable the first device to obtain the identification information using the NFC function, a first operation instruction may be preset in the first device, where the first operation instruction is used to trigger the first device to trigger the NFC module of the first device to send a request for obtaining the identification information after entering the radio frequency field of the NFC module of the second device. Correspondingly, a second operation instruction may be preset in the second device, where the second operation instruction is used to trigger the second device to encode the device identifier of the second device into an NFC packet after receiving the request for obtaining the identifier information, and then call an NFC module of the second device to send the NFC packet to the first device. In some embodiments, the first operation instruction may be preset in the memory 120 illustrated in fig. 2A. In other embodiments, the first operation instruction may be preset in the NFC module 130B illustrated in fig. 2A. Similarly, in some embodiments, the second operation instruction may be preset in the memory 220 illustrated in fig. 2B. In other embodiments, the second operation instruction may be preset in the NFC module 230B illustrated in fig. 2B.
In other embodiments, the identification information of the second device may be presented in the form of a two-dimensional code, and the first device may further acquire and identify the identification information of the second device by scanning the two-dimensional code. The two-dimensional code may be generated and displayed by the second device in response to an instruction input by a user, or may be generated when the second device leaves a factory. The interaction process between the user and the device in this embodiment is described in detail in the embodiments illustrated in fig. 4A to 4B-4, and is not described herein again.
Therefore, by adopting the implementation mode, the first device and the second device do not need to carry out complex communication or rely on a complex communication protocol, and the first device can acquire the identification information of the second device, so that the operation convenience of a user can be improved.
In step S12, the first device transmits a control instruction to the AP device.
Wherein the control instruction comprises identification information. The control instruction is used for triggering the AP equipment to send a WiFi connection instruction to the second equipment. The WiFi connection instruction comprises a first WiFi connection instruction and a second WiFi connection instruction. The first WiFi connection instruction is used for initiating WiFi connection to the second equipment, and the second WiFi connection instruction is used for triggering the second equipment to initiate WiFi connection.
In step S13, in response to the control instruction, the AP device establishes a WiFi connection with the second device.
Therefore, by adopting the implementation mode, the AP equipment can directly establish wifi connection with the second equipment according to the identification information without forwarding related signaling for establishing the wifi connection by the first equipment, so that the operation convenience of a user can be improved, and the network safety can be improved.
For example, in some embodiments, the AP device sends a first WiFi connection instruction to the second device, where the first WiFi connection instruction includes WiFi configuration information. The first WiFi connection instruction is used for triggering the second equipment to access the WiFi network corresponding to the WiFi configuration information. And then, the second device can send connection information to the AP device according to the wifi configuration information. Further, the AP equipment and the second equipment execute signaling interaction of wifi connection to complete wifi connection with the second equipment. In other embodiments, the AP device sends a second WiFi connection instruction to the second device. The second WiFi connection instruction does not include WiFi configuration information. The second WiFi connection instruction is used to trigger the second device to initiate a WiFi connection request to the AP device. And then, the second device responds to the second WiFi connection instruction and sends a request for acquiring the WiFi configuration information to the AP device. And then, the AP equipment sends the wifi configuration information to the second equipment. Further, the AP equipment and the second equipment execute signaling interaction of wifi connection to complete wifi connection with the second equipment. Subsequent communication procedures for establishing the WiFi connection between the AP device and the second device, as well as other communication information involved, are not described in detail herein.
In some embodiments, the AP device may send the WiFi connection instruction to the second device by means of unicast or WiFi Protected Setup (WPS). In other embodiments, the AP device may send the WiFi connection instruction to the second device in a broadcast or multicast manner. In this embodiment, the AP device may send the WiFi configuration information to the multiple devices, and correspondingly, the AP device may receive response information sent by the multiple devices. In order to accurately access the second device to the wireless network, after receiving the multiple pieces of response information, the AP device may detect whether the identification information corresponding to each piece of response information is the identification information of the second device. And if the identification information corresponding to the response information is the identification information of the second equipment, the AP equipment executes subsequent connection operation corresponding to the response information and establishes WiFi connection with the second equipment. If the identification information corresponding to the response information is not the identification information of the second device, the AP device does not perform any processing.
Further, after the AP device establishes the WiFi connection with the second device, it may also send notification information to the first device to notify the user that the second device has successfully accessed the wireless network. The effect of presenting the notification information is as shown in fig. 3F, and is not described in detail here.
To sum up, in the WiFi network connection method described in this embodiment of the application, the first device forwards the identification information of the second device to the AP device. And then, the AP equipment sends WiFi configuration information to the second equipment according to the identification information, so that the second equipment is accessed to a WiFi network. The first device communicates with the second device through an NFC or other method, for example, to obtain the device identifier of the second device, so that the operation convenience of the user can be improved. In addition, in the embodiment of the application, the WiFi configuration information is sent to the second device by the AP device, so that the security of the WiFi configuration information, that is, the network can be improved.
The WiFi network connection method of the present application is described below with reference to examples.
Illustratively, as shown in fig. 6, the first device is, for example, a smart phone 61, the second device is, for example, a smart sound box 62, and the AP device 300 is, for example, a router 63. Wherein, smart mobile phone 61 and smart speaker 62 all are provided with NFC module and wiFi module. The smart phone 61 end is installed with a router management APP, which is used for managing the router 63. The smartphone 61 has established a connection with the router 63, and the smart speaker 62 has not established a connection with the router 63.
Further, the WiFi network connection method 20 (hereinafter referred to as the method 20) includes the following steps:
in step S21, the user starts the NFC module of the smart phone 61, the router management APP, and the NFC module of the smart speaker 62.
The interaction process between the user and the smart phone 61 and the interaction process between the user and the smart speaker 62 are similar to the embodiments illustrated in fig. 3B-1 to 3B-3, and will not be described in detail here.
In step S22, the smart phone 61 sends an acquisition request to the smart sound box 62 through NFC.
Wherein, the obtaining request indicates to obtain the device identifier of the smart sound box 62. The acquisition request may be presented in the form of an NFC message.
In step S23, the smart sound box 62 sends identification information to the smartphone 61 through NFC.
In this embodiment, the identification information is, for example, the MAC address of the smart sound box 62. The MAC address of the smart speaker 62 is, for example, "M001". The identification information may be, for example, an NFC message encoded by the MAC address "M001".
For example, after the smart phone 61 receives the NFC message from the smart speaker 62, the NFC message may be decoded to obtain the MAC address "M001".
In step S24, the smartphone 61 sends a control instruction to the router 63.
Wherein the control instruction includes a MAC address "M001".
For example, after the smart phone 61 decodes the MAC address "M001" of the smart sound box 62, it may call a router management APP to generate an instruction for managing the router 63. After that, the smartphone 61 carries the MAC address "M001" in the instruction of the management router 63, and obtains a control instruction.
In step S25, in response to the control instruction, the router 63 sends a connection request to the smart sound box 62 in a unicast manner.
Wherein, the connection request includes WiFi configuration information. The connection request user triggers smart speaker 62 to access WiFi according to the WiFi configuration information.
It is noted that in some other embodiments, router 63 may send WiFi configuration information to smartspeaker 62 via broadcast, multicast, or WPS.
In step S26, the smart sound box 62 sends connection information to the router 63 in response to the WiFi configuration information.
In step S27, the router 63 establishes a WiFi connection with the smart sound box 62.
For example, after receiving the connection information, the router 63 may detect whether the identification information corresponding to the connection information is the MAC address "M001", and if the identification information corresponding to the connection information is "M001", it indicates that the device sending the connection information is the smart speaker 62, and establishes a WiFi connection with the device sending the connection information. Correspondingly, if the identification information corresponding to the connection information is not "M001", it indicates that the device sending the connection information is not the smart sound box 62, and the router 63 may not perform any processing.
In step S28, the router 63 transmits a notification of successful connection to the smartphone 61.
It is to be understood that the illustrated embodiment of the method 200 is merely illustrative and not restrictive of the embodiments of the application. In other embodiments, the operation steps of the WiFi network connection method may not be limited thereto. For example, the MAC address "M001" may be converted into a two-dimensional code, and the smartphone 61 may acquire the MAC address "M001" by scanning the corresponding two-dimensional code. And will not be described in detail herein.
It is to be understood that fig. 6 is only a schematic illustration and is not to be construed as limiting the embodiments of the present application. The embodiment of the application can also be applied to other similar implementation scenarios, for example, in other embodiments, the first device is a vehicle event data recorder, the second device is a vehicle-mounted air purifier, and the AP device is a wireless network card. And will not be described in detail herein.
In summary, with the implementation manner of the present application, the first device communicates with the second device, for example, in an NFC manner or the like, to obtain the device identifier of the second device, which can improve the operation convenience of the user, thereby improving the user experience. In addition, the WiFi configuration information is sent to the second device by the AP device, which can improve the security of the WiFi configuration information, i.e., the network.
The foregoing embodiments respectively introduce various aspects of the WiFi network connection method provided in this application from the perspective of the hardware structures, software architectures, and actions performed by the first device, the second device, and the AP device. Those skilled in the art will readily appreciate that the process steps described in connection with the embodiments disclosed herein may be implemented as hardware or a combination of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present application.
For example, the first device 100 may implement the corresponding functions in the form of functional modules. As shown in fig. 7A, the electronic device 70 may include a processing module 701 and a transceiver module 702. The transceiver module 702 includes, for example, a WiFi module for establishing a WiFi connection of the electronic device 70 with the AP device.
In one embodiment, the electronic device 70 may be configured to perform the WiFi network connection method performed by the first device in any of the embodiments illustrated in fig. 5 and the WiFi network connection method performed by the smart phone in any of the embodiments illustrated in fig. 6. For example: the processing module 701 may be configured to obtain identification information of a second device, where the identification information is used to identify the second device, so as to distinguish the second device from other devices at least in the coverage area of the AP device, where the second device is a device that does not establish a WiFi network connection with the AP device. The transceiver module 702 may be configured to send a control instruction to the AP device through the WiFi connection, where the control instruction includes the identification information, and the control instruction is used to trigger the AP device to establish a WiFi connection with the second device.
Therefore, in the application, the first device forwards the identification information of the second device to the AP device. And then, the AP equipment can accurately receive and transmit WiFi connection information with the second equipment according to the identification information, and further establishes WiFi connection with the second equipment. Therefore, the risk that the first equipment forwards the WiFi connection information can be avoided, and the safety of the network is improved.
In some embodiments, the electronic device 70 may also include an NFC module. The processing module 701 may call the NFC module to send the acquisition request to the second device, and may also call the NFC module to receive an NFC response packet from the second device, where the NFC response packet includes the identification information.
For specific content, reference may be made to the description related to the first device in the embodiment illustrated in fig. 5, and the description related to the smartphone in the embodiment illustrated in fig. 6, which is not repeated herein.
It is to be understood that the above division of the respective modules is only a division of logical functions, and in actual implementation, the functions of the processing module may be implemented by integrating into a processor, and the functions of the transceiver module may be implemented by integrating into a transceiver. Illustratively, the processor may be implemented as, for example, the processor 110 illustrated in fig. 2A, the transceiver may be implemented as, for example, the wireless communication module 130 illustrated in fig. 2A, and the like. And will not be described in detail herein.
The above embodiments describe the electronic device of the present application from the perspective of an independent functional entity. In another implementation scenario, the functional entities running independently may be integrated into one hardware entity, such as a system-on-a-chip. As shown in fig. 7B, the present application provides a chip system 71, and the chip system 71 is disposed in an electronic device 70, for example. The chip system 71 may comprise at least one processor 711 and an interface 712, the interface 712 being coupled to the processor 711. The interface 712 is used for receiving code instructions and transmitting the code instructions to the processor 711. The processor 711 may execute the code instructions to implement the functions of the electronic device 70 in the embodiments of the present application.
The chip system 71 may include one chip or a chip module composed of a plurality of chips. For example, the chip system 71 includes a chip module composed of an NFC chip and other chips, such as a chip for setting a processor of the electronic device 70. This is not a limitation of the present application.
The AP device 300 may implement the corresponding functions in the form of functional modules. As shown in fig. 8A, the AP device 80 may include a processing module 801 and a transceiver module 802.
In one embodiment, the AP device 80 may be configured to perform the WiFi network connection method performed by the AP device in any of the embodiments illustrated in fig. 5 and the WiFi network connection method performed by the router in any of the embodiments illustrated in fig. 6. For example: the transceiver module 802 may be configured to receive a control command from the first device through the WiFi connection, where the control command includes identification information, and the identification information is used to identify a second device, which is a device that does not establish a WiFi network connection with the AP device, so as to distinguish the second device from other devices at least within the coverage of the AP device. The processing module 801 may be configured to establish a WiFi connection with the second device in response to the control instruction.
For specific content, reference may be made to the description related to the AP device in the embodiment illustrated in fig. 5 and the description related to the router in the embodiment illustrated in fig. 6, which are not described herein again.
Therefore, in the application, the AP equipment can directly establish wifi connection with the second equipment according to the identification information, and the first equipment is not required to forward the related signaling for establishing the wifi connection, so that the operation convenience of a user can be improved, and the network safety can be improved.
It is to be understood that the above division of the respective modules is only a division of logical functions, and in actual implementation, the functions of the processing module may be implemented by integrating into a processor, and the functions of the transceiver module may be implemented by integrating into a transceiver. Illustratively, the processor may be implemented as, for example, the processor 310 illustrated in fig. 2C, and the transceiver may be implemented as, for example, the radio frequency module 330 illustrated in fig. 2C. And will not be described in detail herein.
The above embodiments describe the electronic device of the present application from the perspective of an independent functional entity. In another implementation scenario, the functional entities running independently may be integrated into one hardware entity, such as a system-on-a-chip. As shown in fig. 8B, the present application provides a chip system 81, and the chip system 81 is disposed in the AP device 80, for example. The chip system 81 may include at least one processor 811 and an interface 812, the interface 812 being coupled with the processor 811. Among other things, the interface 812 is used to receive code instructions and transmit the code instructions to the processor 811. Processor 811 may execute the code instructions to implement the functionality of AP device 80 in embodiments of the present application.
The chip system 81 may include one chip or a chip module composed of a plurality of chips.
In specific implementations, the present application further provides a computer storage medium corresponding to the electronic device and the AP device, where the computer storage medium disposed in any device may store a program, and when the program is executed, part or all of the steps in each embodiment of the WiFi network connection method provided in fig. 5 and fig. 6 may be implemented. The storage medium in any device may be a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), or the like.
One or more of the above modules or units may be implemented in software, hardware or a combination of both. When any of the above modules or units are implemented in software, which is present as computer program instructions and stored in a memory, a processor may be used to execute the program instructions and implement the above method flows. The processor may include, but is not limited to, at least one of: various computing devices that run software, such as a Central Processing Unit (CPU), a microprocessor, a Digital Signal Processor (DSP), a Microcontroller (MCU), or an artificial intelligence processor, may each include one or more cores for executing software instructions to perform operations or processing. The processor may be built in an SoC (system on chip) or an Application Specific Integrated Circuit (ASIC), or may be a separate semiconductor chip. The processor may further include necessary hardware accelerators such as Field Programmable Gate Arrays (FPGAs), PLDs (programmable logic devices), or logic circuits for implementing dedicated logic operations, in addition to the core for executing software instructions to perform operations or processes.
When the above modules or units are implemented in hardware, the hardware may be any one or any combination of a CPU, a microprocessor, a DSP, an MCU, an artificial intelligence processor, an ASIC, an SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator, or a discrete device that is not integrated, which may run necessary software or is independent of software to perform the above method flows.
When the above modules or units are implemented using software, they may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State disk Di sk), among others.
It should be understood that, in the various embodiments of the present application, the size of the serial number of each process does not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic thereof, and should not constitute any limitation to the implementation process of the embodiments.
All parts of the specification are described in a progressive mode, the same and similar parts of all embodiments can be referred to each other, and each embodiment is mainly introduced to be different from other embodiments. In particular, as to the apparatus and system embodiments, since they are substantially similar to the method embodiments, the description is relatively simple and reference may be made to the description of the method embodiments in relevant places.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (16)

1. A WiFi network connection method is applied to a first device, the first device and a wireless Access Point (AP) device have a wireless WiFi connection relationship, and the method comprises the following steps:
the first device acquires identification information of a second device, wherein the identification information is used for identifying the second device so as to distinguish the second device from other devices at least in the coverage area of the AP device, and the second device is a device which does not establish WiFi network connection with the AP device;
and the first equipment sends a control instruction to the AP equipment through the WiFi connection, the control instruction contains the identification information, and the control instruction is used for triggering the AP equipment to establish the WiFi connection with the second equipment.
2. The method of claim 1, wherein the first device obtaining identification information of a second device comprises:
and the first equipment acquires the identification information from the second equipment in a wireless communication mode.
3. The method of claim 2, wherein the first device obtaining the identification information from the second device by way of wireless communication, comprises:
the first equipment sends an acquisition request to the second equipment through Near Field Communication (NFC);
and the first equipment receives an NFC response message from the second equipment, wherein the NFC response message contains the identification information.
4. The method of claim 1, wherein the first device obtaining identification information of a second device comprises:
and the first equipment identifies the two-dimensional code containing the identification information to obtain the identification information.
5. A WiFi network connection method is applied to a wireless Access Point (AP) device, and the AP device and a first device have a WiFi connection relationship, and the method comprises the following steps:
the AP equipment receives a control instruction from the first equipment through the WiFi connection, wherein the control instruction comprises identification information, the identification information is used for identifying second equipment so as to distinguish the second equipment from other equipment at least in the coverage area of the AP equipment, and the second equipment is equipment which does not establish WiFi network connection with the AP equipment;
and the AP equipment responds to the control instruction to establish WiFi connection with the second equipment.
6. The method of claim 5, wherein the AP device establishing a WiFi connection with the second device in response to the control instruction, comprises:
the AP equipment sends a first WiFi connection instruction to the second equipment, wherein the first WiFi connection instruction comprises WiFi configuration information;
the AP equipment receives connection information corresponding to the WiFi configuration information from the second equipment;
and the AP equipment establishes WiFi connection with the second equipment.
7. The method of claim 5, wherein the AP device establishing a WiFi connection with the second device in response to the control instruction, comprises:
the AP equipment sends a second WiFi connection instruction to the second equipment;
the AP equipment receives a request of the second equipment for responding to the second WiFi connection instruction to acquire WiFi configuration information;
the AP equipment sends WiFi configuration information to the second equipment;
and the AP equipment responds to the connection information of the second equipment and establishes WiFi connection with the second equipment.
8. An electronic device comprising a processor and a transceiver, the electronic device in a wireless WiFi connection relationship with a wireless Access Point (AP) device, wherein,
the processor is configured to acquire identification information of a second device, where the identification information is used to identify the second device, so as to distinguish the second device from other devices at least in a coverage area of the AP device, where the second device is a device that does not establish a WiFi network connection with the AP device;
the transceiver is configured to send a control instruction to the AP device through the WiFi connection, where the control instruction includes the identification information, and the control instruction is used to trigger the AP device to establish the WiFi connection with the second device.
9. The electronic device of claim 8,
the processor is further configured to obtain the identification information from the second device by invoking a wireless communication device.
10. The electronic device of claim 9, wherein the wireless communication device comprises a Near Field Communication (NFC) chip comprising:
the processor is further configured to call the NFC chip to send an acquisition request to the second device;
the processor is further configured to invoke the NFC chip to receive an NFC response packet from the second device, where the NFC response packet includes the identification information.
11. The electronic device of claim 8,
the processor is further configured to identify a two-dimensional code including the identification information, and obtain the identification information.
12. A wireless Access Point (AP) device comprising a processor and a transceiver, the AP device having a wireless WiFi connection with a first device, wherein,
the transceiver is configured to receive a control instruction from the first device through the WiFi connection, where the control instruction includes identification information, and the identification information is used to identify a second device, so as to distinguish the second device from other devices at least within a coverage area of the AP device, where the second device is a device that does not establish a WiFi network connection with the AP device;
the processor is configured to establish a WiFi connection with the second device in response to the control instruction.
13. The AP device of claim 12,
the transceiver is further configured to send a first WiFi connection instruction to the second device, where the first WiFi connection instruction includes WiFi configuration information;
the transceiver is further configured to receive connection information corresponding to the WiFi configuration information from the second device;
the processor is further configured to establish a WiFi connection with the second device.
14. The AP device of claim 12,
the transceiver is further configured to send a second WiFi connection instruction to the second device;
the transceiver is further configured to receive a request to obtain WiFi configuration information from the second device;
the transceiver is further configured to send WiFi configuration information to the second device;
the processor is further configured to establish a WiFi connection with the second device in response to the connection information of the second device.
15. The chip system is arranged on first equipment and comprises at least one processor and an interface; the interface is configured to receive code instructions and transmit the code instructions to the at least one processor; the at least one processor executes the code instructions to perform the method of any of claims 1-4.
16. The chip system is arranged on the AP equipment of the wireless access point and comprises at least one processor and an interface; the interface is configured to receive code instructions and transmit the code instructions to the at least one processor; the at least one processor executes the code instructions to perform the method of any of claims 5-7.
CN202010072418.9A 2020-01-21 2020-01-21 WiFi network connection method and device Pending CN111277985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010072418.9A CN111277985A (en) 2020-01-21 2020-01-21 WiFi network connection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010072418.9A CN111277985A (en) 2020-01-21 2020-01-21 WiFi network connection method and device

Publications (1)

Publication Number Publication Date
CN111277985A true CN111277985A (en) 2020-06-12

Family

ID=71002310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010072418.9A Pending CN111277985A (en) 2020-01-21 2020-01-21 WiFi network connection method and device

Country Status (1)

Country Link
CN (1) CN111277985A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225715A (en) * 2021-04-20 2021-08-06 广州朗国电子科技有限公司 Wireless module setting method, electronic equipment and storage medium
CN113676906A (en) * 2021-08-23 2021-11-19 浪潮商用机器有限公司 Communication system, method, device and medium of server
CN113853031A (en) * 2021-09-18 2021-12-28 雅迪科技集团有限公司 Helmet connection mode switching method and device
CN113905329A (en) * 2021-09-30 2022-01-07 深圳市美科星通信技术有限公司 Access method and access device of wireless network
CN114363853A (en) * 2022-03-17 2022-04-15 苏州百孝医疗科技有限公司 Communication method and device, electronic equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150172941A1 (en) * 2013-06-06 2015-06-18 Seven Networks, Inc. Quality of experience enhancement for wireless networks based on received signal strength at a mobile device
CN107979864A (en) * 2016-10-25 2018-05-01 中兴通讯股份有限公司 Cut-in method, the apparatus and system of access point
CN109005571A (en) * 2017-06-07 2018-12-14 中移(杭州)信息技术有限公司 A kind of method, apparatus and system for establishing WiFi connection

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150172941A1 (en) * 2013-06-06 2015-06-18 Seven Networks, Inc. Quality of experience enhancement for wireless networks based on received signal strength at a mobile device
CN107979864A (en) * 2016-10-25 2018-05-01 中兴通讯股份有限公司 Cut-in method, the apparatus and system of access point
CN109005571A (en) * 2017-06-07 2018-12-14 中移(杭州)信息技术有限公司 A kind of method, apparatus and system for establishing WiFi connection

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225715A (en) * 2021-04-20 2021-08-06 广州朗国电子科技有限公司 Wireless module setting method, electronic equipment and storage medium
CN113676906A (en) * 2021-08-23 2021-11-19 浪潮商用机器有限公司 Communication system, method, device and medium of server
CN113853031A (en) * 2021-09-18 2021-12-28 雅迪科技集团有限公司 Helmet connection mode switching method and device
CN113853031B (en) * 2021-09-18 2024-04-02 雅迪科技集团有限公司 Helmet connection mode switching method and device
CN113905329A (en) * 2021-09-30 2022-01-07 深圳市美科星通信技术有限公司 Access method and access device of wireless network
CN114363853A (en) * 2022-03-17 2022-04-15 苏州百孝医疗科技有限公司 Communication method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN111277985A (en) WiFi network connection method and device
WO2021218864A1 (en) Implementation method for wi-fi peer-to-peer service and related device
EP4195008A1 (en) Interface display method, and device
CN112351417B (en) Device discovery method and device and computer device
CN111315035B (en) WiFi network connection method and device
EP4195638A1 (en) Display method, and device
WO2022127661A1 (en) Application sharing method, and electronic device and storage medium
CN107318119B (en) Household appliance networking method, household appliance and computer readable storage medium
CN112130788A (en) Content sharing method and device
JP7234379B2 (en) Methods and associated devices for accessing networks by smart home devices
CN116114239B (en) Volume management method and electronic equipment
KR20160084777A (en) Supporting method for register setup and electronic device supporting the same
CN113645608B (en) Data transmission method and data transmission device
CN112789934B (en) Bluetooth service query method and electronic equipment
WO2021249231A9 (en) Application-based short-range notification method, electronic device, and system
CN114637214A (en) Control method and device of electronic home equipment and computer storage medium
CN111726848A (en) Equipment binding method, target starting device, fixed terminal and storage medium
CN116048326B (en) Message display method and electronic equipment
CN115643542B (en) Wireless screen projection method, electronic equipment and computer readable storage medium
WO2023016291A1 (en) Display method and electronic device
CN116567054A (en) Detection method, related electronic equipment and system
CN116566812A (en) Data migration method, readable medium and electronic device
CN115665313A (en) Device control method and electronic device
CN114466339A (en) Bluetooth pairing method and electronic equipment
CN115696280A (en) Network distribution method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200612

RJ01 Rejection of invention patent application after publication