WO2022143153A1 - Wi-fi configuration method and electronic device - Google Patents

Wi-fi configuration method and electronic device Download PDF

Info

Publication number
WO2022143153A1
WO2022143153A1 PCT/CN2021/137923 CN2021137923W WO2022143153A1 WO 2022143153 A1 WO2022143153 A1 WO 2022143153A1 CN 2021137923 W CN2021137923 W CN 2021137923W WO 2022143153 A1 WO2022143153 A1 WO 2022143153A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
electronic device
pairing
information
router
Prior art date
Application number
PCT/CN2021/137923
Other languages
French (fr)
Chinese (zh)
Inventor
梁乾灯
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022143153A1 publication Critical patent/WO2022143153A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • 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
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Definitions

  • the embodiments of the present application relate to the field of terminal technologies, and in particular, to a Wi-Fi configuration method and an electronic device.
  • a router In a general wireless fidelity (Wi-Fi) environment, a router provides a Wi-Fi network for a user. However, the Wi-Fi coverage provided by the router is limited. At the edge of the Wi-Fi coverage or beyond the Wi-Fi coverage, the problem of abnormal Wi-Fi network will occur.
  • Wi-Fi wireless fidelity
  • Option 1 Connect the router to each room through a wired network, and provide Wi-Fi network for each room.
  • Option 2 Use multiple Wi-Fi routers directly to connect to the Wi-Fi network.
  • the above two solutions can ensure that the Wi-Fi network covers all rooms, but the service set identifier (SSID) of each Wi-Fi router needs to be configured separately. In this way, during the roaming process of the terminal device in each room, the terminal device needs to disconnect from the connected Wi-Fi router and identify the SSID of the new Wi-Fi router again. User experience.
  • SSID service set identifier
  • the Wi-Fi configuration method and electronic device use the electronic device as a relay point of the router's Wi-Fi network to expand the coverage of the Wi-Fi network, and configure the SSID of the electronic device to be the same as the SSID of the router. Provide users with non-aware Wi-Fi roaming services.
  • an embodiment of the present application provides a Wi-Fi configuration method, the method may include: accessing a first wireless fidelity Wi-Fi network corresponding to a first service set identifier SSID of a wireless access point AP device.
  • the operation of turning on the Wi-Fi hotspot is detected, and a pairing request is sent to the AP device, and the pairing request is used to request pairing with the AP device. If the pairing is successful, a second Wi-Fi network of the Wi-Fi hotspot is configured, and the second SSID of the second Wi-Fi network is the same as the first SSID.
  • the electronic device can determine whether to enable the hotspot according to user requirements. After detecting the operation of turning on the hotspot, the electronic device can automatically synchronize with the Wi-Fi information configuration of the AP device, so as to provide the user with a configuration-free hotspot.
  • the electronic device and the AP device use the same SSID as a device in the Layer 2 roaming domain of the AP device to ensure that the terminal device can seamlessly roam between the AP device and the electronic device after accessing the Wi-Fi network.
  • configuring the second Wi-Fi network of the Wi-Fi hotspot includes: if the pairing is successful, sending Wi-Fi module information to the AP device, where the Wi-Fi module information includes One or more of the following contents: the first SSID, wireless local area network WLAN information, and device information. Obtain the network configuration information determined by the AP device based on the Wi-Fi module information. Using the network configuration information, configure a second Wi-Fi network for the Wi-Fi hotspot.
  • the electronic device sends Wi-Fi module information to the AP device, so that the AP device configures the Wi-Fi network of the electronic device based on the Wi-Fi module information.
  • the AP device may be configured with one or more SSIDs, and the electronic device informs the AP device of the SSID it accesses, and the AP device does not need to query.
  • the WLAN information of the electronic device includes, for example, information on radio frequency bands supported by the electronic device.
  • the device information of the electronic device includes, for example, the manufacturer and model of the electronic device.
  • the pairing request carries connection information
  • the method further includes: receiving a pairing response sent by the AP device, and determining whether the pairing is successful according to the pairing response; the pairing response is the AP device Determined based on connection information.
  • the first electronic device sends a pairing request to the AP device for requesting confirmation of whether it is securely admitted.
  • the connection information includes connection request parameters, which are used to request the AP device to confirm its security, allow subsequent network configuration of the first electronic device, and synchronize the SSID of the first electronic device with the SSID of the AP device.
  • the connection information may include the MAC address of the first electronic device. After the AP device receives the connection information, it confirms that the MAC address is a MAC address in the preset whitelist, confirms security, and allows the first electronic device to establish a connection with the AP device. Alternatively, receive user confirmation (eg, an operation of clicking the hi key) to determine whether to allow the connection to be established.
  • acquiring the network configuration information determined by the AP device based on the Wi-Fi module information includes: acquiring a start packet, a parameter configuration packet and a commitment packet; the start packet is used to instruct to start transmitting the network configuration information, the parameter configuration message is used to configure the parameters of the second Wi-Fi network, and the commitment message is used to indicate that the transmission of the network configuration information is completed. After receiving the promise message, confirm that the network configuration information has been received.
  • network configuration synchronization is performed between the AP device and the electronic device based on a synchronization protocol, so that the SSID of the hotspot of the electronic device is the same as the SSID of the access AP device.
  • the synchronization protocols include, for example, Universal Plug and Play (UPnP), Constrained Application Protocol (CoAP), Control and Provisioning of Wireless Access Points (control and provisioning of wireless access) points protocol, CAPWAP), etc.
  • the method further includes: if the pairing fails, the third SSID of the third Wi-Fi network of the Wi-Fi hotspot is different from the first SSID.
  • its SSID may be different from the first SSID of the access AP device.
  • the terminal device roams from the AP device to the electronic device, it is necessary to re-enter information such as the user password. Therefore, through pairing and synchronization of network configuration, the electronic device can provide users with a non-aware roaming service.
  • the method further includes: reporting to the AP device the access situation of the terminal device accessing the second Wi-Fi network; the access situation includes the first access situation of the terminal device accessing the second Wi-Fi network.
  • the electronic device after the electronic device completes the network configuration, it can open a configuration-free hotspot and use itself as a soft access point (soft AP) device to expand the Wi-Fi coverage area and improve the Wi-Fi coverage effect.
  • soft AP soft access point
  • the electronic device After the terminal device is connected to or disconnected from the hotspot, the electronic device needs to report the access status of the terminal device to the AP device, so that the AP device can manage the Wi-Fi network.
  • the method further includes: sending a first packet to the AP device, where the first packet is used to notify the AP device that the Wi-Fi hotspot is to be closed. Disconnect from the terminal device connected to the second Wi-Fi network. Turn off the Wi-Fi hotspot and stay connected to the primary Wi-Fi network.
  • the electronic device can turn on or turn off the hotspot according to the actual situation. If the electronic device needs to turn off the hotspot, it needs to notify the AP device of its shutdown, and guide the terminal device connected to it to connect to the AP device. Furthermore, the personalized use requirements of users are met, and the user experience is improved.
  • the electronic device after the electronic device turns on the hotspot and configures the network through the above Wi-Fi configuration method, it maintains the Wi-Fi connection with the AP device while providing other terminal devices with a Wi-Fi network without awareness roaming, It will not affect its own Internet function. Further, after the electronic device turns off the hotspot, it will maintain the Wi-Fi connection with the AP device, which will not affect its own surfing function.
  • an embodiment of the present application provides a Wi-Fi configuration method, the method may include: receiving a pairing request sent by a first electronic device; the first electronic device has accessed a first wireless device corresponding to a first service set identifier SSID Fidelity Wi-Fi network; pairing request is used to request pairing. If the pairing is successful, the first electronic device is allowed to configure the second Wi-Fi network, the second Wi-Fi network is a network provided by the Wi-Fi hotspot of the first electronic device, and the second SSID of the second Wi-Fi network is the same as the first Wi-Fi network. One SSID is the same.
  • the pairing request carries connection information
  • the method further includes: determining whether the first electronic device is successfully paired according to the connection information.
  • a pairing response is sent to the first electronic device, where the pairing response is used to carry a pairing success message or a pairing failure message.
  • determining whether the first electronic device is paired successfully according to the connection information includes: determining, according to the connection information, whether the media access control MAC address of the first electronic device is a MAC address in a preset whitelist , if yes, it is determined that the first electronic device is paired successfully.
  • the user is prompted in a preset manner to determine whether to allow the first electronic device to be paired; in response to the first operation, it is determined that the first electronic device is successfully paired.
  • the AP device determines whether the pairing of the first electronic device is successful in a preset manner.
  • the preset method includes, for example, presetting a whitelist of pairable MAC addresses in the AP device, and after confirming that the MAC address of the first electronic device is a MAC address on the whitelist, it can be automatically paired.
  • the preset manner includes, for example, prompting the user to confirm whether to perform pairing. For example, the indicator light of the AP device flashes in mode 1 to prompt the user to confirm pairing. After that, if the AP device detects that the user clicks the hi key, it confirms that the user has confirmed the pairing and the connection can be established.
  • the AP device sends a notification requesting confirmation to the terminal device where the Hilink APP that manages the AP device is located (for example, the smart phone of the AP device administrator), and the user confirms it.
  • the method further includes: if the pairing is successful, receiving Wi-Fi module information sent by the first electronic device, where the Wi-Fi module information includes one or more of the following: the first SSID, the wireless Local area network WLAN information, device information of the first electronic device. According to the Wi-Fi module information, a network configuration template corresponding to the Wi-Fi module information is matched; the network configuration template includes network configuration information; the network configuration information is used to configure the second Wi-Fi network. Sending network configuration information to the first electronic device.
  • the AP device can determine the WLAN configuration of the first electronic device based on a locally preset configuration policy, and start to perform synchronous configuration.
  • the WLAN synchronization configuration includes the configuration of WLAN related parameters and the configuration of other network connection related parameters. For example, it includes the black and white list configuration of the MAC address of the device.
  • the locally preset configuration policy includes, for example, a network configuration template and an import policy preconfigured in the AP device.
  • the AP device obtains the Wi-Fi module information of the first electronic device including information 1 and information 2, and after matching with a preconfigured network configuration template, determines that the network configuration template 1 matches information 1 and information 2.
  • Network configuration template 1 satisfies the requirements of Information 1 and Information 2, and includes complete network configuration information.
  • the AP device pushes the network configuration template 1 to the first electronic device, and then the first electronic device uses the network configuration template 1 to complete the configuration of all network information.
  • the AP device determines the manufacturer or model of the first electronic device according to the device information of the first electronic device, and matches the corresponding network configuration template.
  • the manufacturer of the first electronic device 1 is the manufacturer A
  • the manufacturer of the first electronic device 2 is the manufacturer B.
  • the AP device pushes the network configuration template A to the first electronic device 1 according to the manufacturer type, and pushes the network configuration template B to the first electronic device 2.
  • the first electronic device 1 and the first electronic device 2 automatically The synchronization of the network configuration is completed, that is, the AP device completes the network configuration of the first electronic device.
  • sending the network configuration information to the first electronic device includes: sending a start message, a parameter configuration message and a commitment message to the first electronic device; the start message is used to instruct to start transmitting the network configuration information, the parameter configuration message is used to instruct to configure the parameters of the second Wi-Fi network, and the commitment message is used to indicate that the transmission of the network configuration information is completed. After sending the commit message, confirm that the sending of the network configuration information has been completed.
  • the method further includes: receiving an access condition of a terminal device accessing the second Wi-Fi network reported by the first electronic device; the access condition includes the access condition of the terminal device accessing the second Wi-Fi network.
  • the first MAC identifier of the terminal device, and/or the second MAC identifier of the terminal device disconnected from the second Wi-Fi network.
  • the method further includes: receiving a first message sent by the first electronic device, where the first message is used to notify the first electronic device that the Wi-Fi hotspot is to be turned off.
  • a connection is established with the terminal device connected to the second Wi-Fi network, and the connection with the first electronic device is maintained.
  • an embodiment of the present application provides an electronic device, including: a processor and a memory; the memory is coupled to the processor, and the memory is used to store computer program code, and the computer program code includes computer instructions, when the processor reads from the memory
  • the computer instruction causes the electronic device to perform the following operation: access the first Wi-Fi network corresponding to the first service set identifier SSID of the wireless access point AP device.
  • the operation of turning on the Wi-Fi hotspot is detected, and a pairing request is sent to the AP device, and the pairing request is used to request pairing with the AP device. If the pairing is successful, a second Wi-Fi network of the Wi-Fi hotspot is configured, and the second SSID of the second Wi-Fi network is the same as the first SSID.
  • configuring the second Wi-Fi network of the Wi-Fi hotspot includes: if the pairing is successful, sending Wi-Fi module information to the AP device, where the Wi-Fi module information includes One or more of the following: SSID, WLAN information, and device information. Obtain the network configuration information determined by the AP device based on the Wi-Fi module information. Using the network configuration information, configure the second Wi-Fi network of the Wi-Fi hotspot.
  • the processor when the processor reads the computer instructions from the memory, it also causes the electronic device to perform the following operations: receive the pairing response sent by the AP device, and determine whether the pairing is successful according to the pairing response; the pairing response is the AP The device is determined based on the connection information.
  • acquiring the network configuration information determined by the AP device based on the Wi-Fi module information includes: acquiring a start packet, a parameter configuration packet and a commitment packet; the start packet is used to instruct to start transmitting the network configuration information, the parameter configuration message is used to configure the parameters of the second Wi-Fi network, and the commitment message is used to indicate that the transmission of the network configuration information is completed. After receiving the promise message, confirm that the network configuration information has been received.
  • the electronic device when the processor reads the computer instructions from the memory, the electronic device also causes the electronic device to perform the following operations: if the pairing fails, the third SSID of the third Wi-Fi network of the Wi-Fi hotspot Different from the first SSID.
  • the electronic device when the processor reads the computer instructions from the memory, the electronic device also causes the electronic device to perform the following operations: report the access situation of the terminal device accessing the second Wi-Fi network to the AP device;
  • the access situation includes the first MAC identifier of the terminal device accessing the second Wi-Fi network, and/or the second MAC identifier of the terminal device disconnecting from the second Wi-Fi network.
  • the electronic device when the processor reads the computer instructions from the memory, the electronic device also causes the electronic device to perform the following operations: send a first packet to the AP device, where the first packet is used to notify the AP device Wi- Fi hotspot pending. Disconnect from the terminal device connected to the second Wi-Fi network. Turn off the Wi-Fi hotspot and stay connected to the primary Wi-Fi network.
  • an embodiment of the present application provides a wireless access point AP device, including: a processor and a memory; the memory is coupled to the processor, and the memory is used to store computer program code, where the computer program code includes computer instructions, when the processor The computer instructions are read from the memory, so that the AP device performs the following operations: receiving a pairing request sent by the first electronic device; the first electronic device has accessed the first Wi-Fi network corresponding to the first service set identifier SSID; Pairing request is used to request pairing.
  • the first electronic device is allowed to configure the second Wi-Fi network
  • the second Wi-Fi network is a network provided by the Wi-Fi hotspot of the first electronic device
  • the second SSID of the second Wi-Fi network is the same as the first Wi-Fi network.
  • One SSID is the same.
  • the processor when the processor reads the computer instructions from the memory, the processor also causes the AP device to perform the following operation: determine whether the first electronic device is paired successfully according to the connection information. A pairing response is sent to the first electronic device, where the pairing response is used to carry a pairing success message or a pairing failure message.
  • determining whether the first electronic device is paired successfully according to the connection information includes: determining, according to the connection information, whether the media access control MAC address of the first electronic device is a MAC address in a preset whitelist , if yes, it is determined that the first electronic device is paired successfully.
  • the user is prompted in a preset manner to determine whether to allow the first electronic device to be paired; in response to the first operation, it is determined that the first electronic device is successfully paired.
  • the processor when the processor reads the computer instructions from the memory, it also causes the AP device to perform the following operations: if the pairing is successful, receive the Wi-Fi module information sent by the first electronic device, and the Wi-Fi
  • the module information includes one or more of the following: the first SSID, the wireless local area network WLAN information, and the device information of the first electronic device.
  • a network configuration template corresponding to the Wi-Fi module information is matched; the network configuration template includes network configuration information; the network configuration information is used to configure the second Wi-Fi network. Sending network configuration information to the first electronic device.
  • sending the network configuration information to the first electronic device includes: sending a start message, a parameter configuration message and a commitment message to the first electronic device; the start message is used to instruct to start transmitting the network configuration information, the parameter configuration message is used to instruct to configure the parameters of the second Wi-Fi network, and the commitment message is used to indicate that the transmission of the network configuration information is completed. After sending the commit message, confirm that the sending of the network configuration information has been completed.
  • the AP device when the processor reads the computer instructions from the memory, the AP device also causes the AP device to perform the following operation: receiving the connection of the terminal device accessing the second Wi-Fi network reported by the first electronic device
  • the access situation includes the first MAC identifier of the terminal device that accesses the second Wi-Fi network, and/or the second MAC identifier of the terminal device that is disconnected from the second Wi-Fi network.
  • the AP device when the processor reads the computer instructions from the memory, the AP device also causes the AP device to perform the following operations: receiving a first packet sent by the first electronic device, and the first packet is used to notify the first Wi-Fi hotspots for electronic devices are pending. A connection is established with the terminal device connected to the second Wi-Fi network, and the connection with the first electronic device is maintained.
  • an embodiment of the present application provides an electronic device, the electronic device having the function of implementing the Wi-Fi configuration method described in the first aspect and any one of the possible implementation manners.
  • This function can be implemented by hardware or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • an embodiment of the present application provides a wireless access point AP device, where the AP device has the function of implementing the Wi-Fi configuration method described in the second aspect and any of the possible implementation manners.
  • This function can be implemented by hardware or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • an embodiment of the present application provides a computer-readable storage medium, including computer instructions, when the computer instructions are executed on an electronic device, the electronic device is made to perform the above-mentioned first aspect and any one of the possible implementations. Any one of the Wi-Fi configuration methods.
  • an embodiment of the present application provides a computer-readable storage medium, including computer instructions, when the computer instructions are executed on a wireless access point AP device, the AP device is made to perform the above-mentioned second aspect and any one of them The Wi-Fi configuration method described in any one of the possible implementation manners.
  • an embodiment of the present application provides a computer program product, which, when the computer program product is run on an electronic device, causes the electronic device to perform any one of the above-mentioned first aspect and any of the possible implementation manners. Wi-Fi configuration method.
  • an embodiment of the present application provides a computer program product, when the computer program product runs on a wireless access point AP device, the AP device is made to execute the second aspect and any one of the possible implementations described above. Any one of the Wi-Fi configuration methods.
  • an embodiment of the present application provides a circuit system, where the circuit system includes a processing circuit, and the processing circuit is configured to execute the Wi-Fi configuration method described in the first aspect and any of the possible implementation manners. or, configured to execute the Wi-Fi configuration method described in the second aspect and any one of possible implementation manners.
  • an embodiment of the present application provides a chip system, including at least one processor and at least one interface circuit, where the at least one interface circuit is configured to perform a transceiving function, and send instructions to the at least one processor.
  • the processor executes the instruction, at least one processor executes the Wi-Fi configuration method described in the first aspect and any one of the possible implementation manners; or, at least one processor executes the second aspect and any one of the foregoing.
  • FIG. 1 is a schematic diagram of a communication system provided by an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a method for connecting a parent-child router according to an embodiment of the present application
  • FIG. 4 is a schematic diagram 1 of an interface provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram 2 of an interface provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a roaming scenario of a terminal device provided by an embodiment of the present application.
  • FIG. 7 is a flowchart 1 of a Wi-Fi configuration method provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram three of an interface provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram 1 of a frame structure of a one-key connection information element unit provided by an embodiment of the present application.
  • FIG. 10 is a second schematic diagram of a frame structure of a one-key connection information element unit provided by an embodiment of the present application.
  • FIG. 11 is a fourth schematic diagram of an interface provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram five of the interface provided by the embodiment of the present application.
  • FIG. 13 is a second flowchart of a Wi-Fi configuration method provided by an embodiment of the present application.
  • FIG. 14 is a third flowchart of a Wi-Fi configuration method provided by an embodiment of the present application.
  • FIG. 15 is a fourth flowchart of a Wi-Fi configuration method provided by an embodiment of the present application.
  • FIG. 16 is a sixth schematic diagram of an interface provided by an embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of a Wi-Fi configuration apparatus provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of a communication system to which a Wi-Fi configuration method according to an embodiment of the present application is applied.
  • the communication system includes a wireless access point (access point, AP) device 100 and a first electronic device 200 .
  • AP access point
  • the communication system can also be described as a smart connected network system, and the devices connected in the smart connected network can also be described as a smart connected device.
  • the AP device 100 and the first electronic device 200 may also be described as smart connected devices.
  • the AP device 100 may be, for example, a wireless router for providing a Wi-Fi network.
  • the AP device 100 is a router that supports the synchronization of the configuration of the connected network system, such as router.
  • Huawei Hilink is an open ecosystem of intelligent hardware, and electronic devices can be added to the Huawei Hilink ecosystem through hardware access or cloud access to realize the interconnection of electronic devices.
  • the AP device 100 is at the top of the Huawei Hilink ecosystem, and electronic devices can access the AP device 100 based on Hilink ecosystem-related protocols.
  • the AP device 100 and the connected electronic devices together form the Huawei Hilink ecosystem.
  • Hilink ecological related protocols include, for example, universal plug and play protocol (universal plug and play, UPnP), constrained application protocol (constrained application protocol, CoAP) and the like.
  • the AP device 100 is configured with a Hi key 11 .
  • the AP device 100 supports the use of the Hi key 11 to connect electronic devices, and the specific process is described below, which will not be repeated here.
  • the first electronic device 200 may be, for example, a personal computer (personal computer, PC), a mobile phone (mobile phone), a tablet computer (Pad), a notebook computer, a desktop computer, a notebook computer, a computer with a transceiver function, a virtual reality (virtual reality, VR) terminal equipment, augmented reality (AR) terminal equipment, wireless terminal in industrial control (industrial control), wireless terminal in unmanned driving (self driving), in remote medical (remote medical) wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, wearable equipment, in-vehicle equipment and other terminal equipment.
  • a personal computer personal computer
  • PC personal computer
  • mobile phone mobile phone
  • tablet computer notebook computer
  • AR augmented reality
  • wireless terminal in industrial control industrial control
  • wireless terminal in unmanned driving self driving
  • remote medical remote medical
  • the first electronic device 200 may also be a terminal device such as a Zhilian wireless router, a Zhilian Wi-Fi relay, and a programmable logic controller (programmable logic controller, PLC) wireless AP device.
  • a terminal device such as a Zhilian wireless router, a Zhilian Wi-Fi relay, and a programmable logic controller (programmable logic controller, PLC) wireless AP device.
  • PLC programmable logic controller
  • the Wi-Fi network coverage range provided by the AP device 100 is the range of the area a.
  • the first electronic device 200 accesses the Wi-Fi network provided by the AP device 100 .
  • the first electronic device 200 can serve as a relay point device of the AP device 100 to expand the coverage of the Wi-Fi network.
  • the first electronic device 200 can turn on a hotspot, and its Wi-Fi network coverage is within the range of area b, thereby ensuring that the second electronic device 300 that is far away from the main AP device 100 can also access the Wi-Fi network , the AP device 100 , the first electronic device 200 and the second electronic device 300 form an intelligent network system.
  • the second electronic device 300 can also be described as a STA-type intelligent connected device, which is located at the bottom layer of the Huawei Hilink ecosystem.
  • the second electronic device 300 may be, for example, a PC, a mobile phone, a tablet computer, a VR terminal device, an AR terminal device, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in telemedicine, a smart Wireless terminals in the power grid, wireless terminals in transportation security, wireless terminals in smart cities, wireless terminals in smart homes, wearable devices, vehicle-mounted devices and other terminal equipment.
  • the second electronic device 300 may also be a terminal device such as a Zhilian Wi-Fi camera, a Zhilian Wi-Fi music box, a Zhilian Wi-Fi set-top box, and a Zhilian Wi-Fi socket/switch.
  • the specific form of the second electronic device 300 is not particularly limited in this embodiment of the present application.
  • the first electronic device 200 and the second electronic device 300 in this embodiment of the present application may be implemented by different devices.
  • the first electronic device 200 and the second electronic device 300 in the embodiment of the present application may be implemented by the communication device in FIG. 2 .
  • FIG. 2 is a schematic diagram of a hardware structure of a communication device according to an embodiment of the present application.
  • the communication device includes at least one processor 201 , communication line 202 , memory 203 and at least one communication interface 204 .
  • the memory 203 may also be included in the processor 201 .
  • first electronic device 200 and the second electronic device 300 may include more or less components than those shown in the figure, or combine some components, or separate some components, or different components layout.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 201 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), ready-made Field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the communication link 202 may include a path to communicate information between the components described above.
  • the communication interface may be a module, a circuit, a bus, an interface, a transceiver, or other devices capable of implementing a communication function, and is used to communicate with other devices.
  • the transceiver can be an independently set transmitter, which can be used to send information to other devices, and the transceiver can also be an independently set receiver, used to send information from other devices.
  • the device receives the information.
  • the transceiver may also be a component that integrates the functions of sending and receiving information, and the specific implementation of the transceiver is not limited in this embodiment of the present application.
  • Memory 203 may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory.
  • the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory may be random access memory (RAM), which acts as an external cache.
  • RAM random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous DRAM
  • SDRAM double data rate synchronous dynamic random access memory
  • ESDRAM enhanced synchronous dynamic random access memory
  • DR RAM direct rambus RAM
  • the memory may exist independently and be connected to the processor 201 through the communication line 202 .
  • the memory 203 may also be integrated with the processor 201 .
  • the memory 203 is used for storing computer-executed instructions for implementing the solutions of the present application, and the execution is controlled by the processor 201 .
  • the processor 201 is configured to execute the computer-executed instructions stored in the memory 203, so as to implement the carrier transmission method provided by the following embodiments of the present application.
  • the computer-executed instructions in the embodiments of the present application may also be referred to as application code, instructions, computer programs, or other names, which are not specifically limited in the embodiments of the present application.
  • the processor 201 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 2 .
  • the communication device may include multiple processors, such as the processor 201 and the processor 205 in FIG. 2 .
  • processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the above-mentioned communication device may be a general-purpose device or a dedicated device, and the embodiment of the present application does not limit the type of the communication device.
  • the first electronic device may be a device having a structure similar to that of FIG. 2 .
  • the AP device 100 is a router that provides a Wi-Fi network and supports Hilink
  • the first electronic device 200 is a PC with the structure shown in FIG. 2
  • the third electronic device 300 is a mobile phone as an example. Wi-Fi configuration method is explained.
  • the parent and child routers are used to extend the Wi-Fi network coverage of the routers.
  • the parent-child router includes a parent router and at least one child router, wherein the child router is connected to the parent router through a wired connection or Wi-Fi relay, and the parent router and the child router form a Hilink network.
  • the SSIDs of the parent router and the child router are the same.
  • terminal devices such as mobile phones can ensure that there is no signal jam problem caused by roaming.
  • the parent router can also be described as the main router, and the child router can also be described as the secondary router.
  • the child router accesses the parent router based on software access. It is assumed that a Hilink application (application, APP) is installed in the mobile phone, and the mobile phone is connected to the sub-router. The mobile phone can use the Hilink APP to automatically obtain the SSID and password of the parent router, so as to send the SSID and password to the child router, so that the child router can access the parent router. Of course, the mobile phone can also use the Hilink APP to receive the SSID and password entered by the user, so that the child router can access the parent router.
  • a Hilink application application, APP
  • the mobile phone can use the Hilink APP to automatically obtain the SSID and password of the parent router, so as to send the SSID and password to the child router, so that the child router can access the parent router.
  • the mobile phone can also use the Hilink APP to receive the SSID and password entered by the user, so that the child router can access the parent router.
  • the sub-router is connected to the parent router through one-touch hard key interconnection.
  • both the parent router and the sub-router are in a power-on (power on) state (S301 and S302 shown in FIG. 3 ).
  • the parent router sends a probe frame, and probes the child router by means of probe frame interaction (S303 shown in Figure 3).
  • the indicator light of the parent router lights up in the first way (S304 as shown in FIG. 3 ) to remind the user that the child router has been discovered and can be connected.
  • the parent router detects that the user presses the hi key (S305 as shown in Figure 3), enters the Hilink handshake stage, continues to interact with the sub-router for probe frames (S306 as shown in Figure 3), and transmits information for connection , such as the Hilink information element. And, the indicator lights of the parent router and the sub-router light up in the second way (S307 and S308 shown in Fig. 3 ) to remind the user that the sub-router is currently being accessed.
  • the parent router and the child router shake hands through the Wi-Fi protected setup (WPS) (S309 and S310 shown in Figure 3) to complete the setting of the SSID and password, so that the child router can access the parent router.
  • WPS Wi-Fi protected setup
  • the lighting mode of the indicator light can be pre-configured in the parent router, for example, the first mode is always on, and the second mode is flashing.
  • a PC is used as a relay point device to extend the Wi-Fi network coverage of the router.
  • the personal hotspot function or the Wireless Local Area Network (WLAN) signal bridge function is enabled to act as a relay point of the Wi-Fi network to provide Wi-Fi for edge terminal devices.
  • WLAN Wireless Local Area Network
  • the PC After the PC detects the user's operation on the control 41 on the interface 401 , the PC enables the personal hotspot function. And after detecting the operation on the control 42, the editing of the device name corresponding to the current hot spot by the user is received. After detecting the operation on the control 43, the user's edit of the password corresponding to the current hotspot is received. In this way, the PC completes the setting of the personal hotspot function and provides a Wi-Fi network. Wherein, when the PC turns on the personal hotspot, the network connected to the uplink is the cellular mobile network or the WLAN network (ie, the Wi-Fi network provided by the router).
  • the network connected to the uplink is the cellular mobile network or the WLAN network (ie, the Wi-Fi network provided by the router).
  • the PC After the PC detects the user's operation on the control 51 on the interface 501 , the PC enables the WLAN signal bridge function. And after detecting the operation on the control 52, the editing of the WLAN name and password corresponding to the current WLAN signal bridge by the user is received. In this way, the PC completes the setting of the WLAN signal bridge and provides a Wi-Fi network. Wherein, when the PC starts the signal bridge, the network connected to the uplink is the WLAN network.
  • the PC 200 acts as a personal hotspot or a WLAN signal bridge to expand the Wi-Fi network coverage of the router 100 .
  • the mobile phone 300 moves in the direction of arrow 61 from position 62 to position 63, and the position 63 has exceeded the Wi-Fi network coverage provided by the router 100, the mobile phone 300 disconnects the connection with the router 100 and accesses the PC 200 in the relay network provided.
  • the PC 200 is used as a personal hotspot or a WLAN signal bridge, the device name and password are configured separately, which is different from the SSID of the router 100. During the switching process, abnormalities such as Wi-Fi network freezes may occur, affecting the user experience.
  • an embodiment of the present application provides a Wi-Fi configuration method, using a PC as a relay point device, and unifying the SSIDs of the PC and the router, so that the PC becomes a configuration-free Wi-Fi hotspot. While improving Wi-Fi coverage, it saves costs and ensures that devices connected to Wi-Fi networks can provide users with non-aware roaming services.
  • the PC needs to connect to the Wi-Fi network provided by the router to establish a connection with the router. After that, you can configure the network of the PC to expand the Wi-Fi coverage of the router.
  • FIG. 7 is a schematic flowchart of a Wi-Fi configuration method according to an embodiment of the present application.
  • the PC uses the method shown in FIG. 7 to access the router.
  • the method includes S701-S705.
  • a session channel is established between the PC and the router.
  • the PC and the router establish an 802.11 session based on the Institute of Electrical and Electronics Engineers (IEEE) 802.11 standard.
  • IEEE Institute of Electrical and Electronics Engineers
  • the hotspot function is enabled on the upstream Wi-Fi network.
  • pairing with the router based on the session channel allows the configuration of the PC network.
  • the process of 802.11 session connection includes a scanning process, an authentication process and an association process.
  • the PC needs to determine the service set identifier (service set identifier, SSID) and authentication method of the Wi-Fi network to be accessed.
  • the authentication method has been pre-configured in the router.
  • the PC can complete the authentication process by exchanging identity authentication frames with the router.
  • the PC can obtain the SSID during the scanning process, and the scanning process is divided into passive scanning process and active scanning process. For example, in the passive scanning process, the PC monitors the beacon (Beacon) frames sent by the routers near the PC according to the preset period, and obtains the SSID carried in the Beacon frame.
  • Beacon beacon
  • the PC sends a probe request (probe request) management frame to the router, and then obtains the SSID after receiving the probe response (probe response) management frame sent by the router. Subsequently, the authentication process and the association process are completed based on the SSID.
  • the SSID is the unique identity document (ID) of the router, which is used to distinguish different networks.
  • the router provides different SSIDs to distinguish different networks (such as 2.4GHz network, 5GHz network, employee access network, guest access network, etc.), and the PC can access the corresponding network after obtaining the SSID.
  • a router connected to a wired network (which can also be described as an AP device) and at least one device connected to the router through a wireless network form a group, which is called a basic service set. BSS).
  • BSS basic service set
  • Devices in the same BSS are set with the same identification number, and the identification number is BSSID.
  • One or more BSSs form an extended service set (ESS), thereby extending the coverage of the Wi-Fi network.
  • ESS extended service set
  • the coverage areas of the Wi-Fi networks provided by the access point devices in the ESS partially overlap to realize seamless roaming of the client devices.
  • the PC and the router can establish an 802.11 session channel through the following steps.
  • Step 1 The PC sends a probe request frame to the router.
  • the router receives the probe request frame sent by the PC, and sends the probe response frame to the PC.
  • the scanning process in the 802.11 session connection process includes active scanning mode and passive scanning mode.
  • the active scanning mode is that the PC actively sends a detection request message on each channel, so as to detect the information of the router.
  • passive scanning mode the PC monitors the Beacon frames periodically sent by the router to obtain information about the router.
  • the active scanning mode is taken as an example for description.
  • the SSID used for establishing the 802.11 session is determined, and it only needs to be able to access the Wi-Fi network.
  • the child router when the child router is powered on, it sends a probe frame carrying connection information to the parent router for network configuration with the parent router.
  • the currently sent probe frame does not need to carry the parameters of the connection request, that is, the network can be configured without powering on.
  • the PC needs to configure the personal hotspot network according to the user's needs, it can request the network configuration to realize the network configuration on demand and improve the user experience.
  • Step 2 The PC sends an identity authentication request frame to the router.
  • the router receives the identity authentication request frame sent by the PC, and sends the identity authentication response frame to the PC.
  • the PC receives the authentication password input by the user to complete the authentication process.
  • the PC pop-up window displays a password input interface, and receives the authentication password input by the user.
  • the authentication certificate has been preset in the PC, the authentication process does not require a password, and the authentication certificate is confirmed directly through the interaction of the identity authentication management frame to complete the authentication.
  • authentication methods such as transport layer security (TLS) in the extensible authentication protocol (EAP) are used for authentication to ensure network security.
  • TLS transport layer security
  • EAP extensible authentication protocol
  • Step 3 The PC sends an association request frame to the router.
  • the router receives the association request frame sent by the PC, and sends the association response frame to the PC.
  • an association relationship is established between the media access control (media access control, MAC) address of the PC and the router port, so that the router and the PC can correctly perform signal transmission.
  • media access control media access control
  • the PC and the router complete the establishment of the 802.11 session channel, and the 802.11 session channel is a service channel, allowing the PC to access the router network. Subsequently, based on the established 802.11 session channel, the PC and the router request to establish a management channel connection according to user requirements, perform network configuration, and simplify the network configuration process.
  • the PC detects the operation of turning on the hotspot.
  • the PC displays a personal hotspot setting interface 801 , and prompts the user to enable the personal hotspot function on the personal hotspot setting interface 801 .
  • the hotspot is turned on, and pairing with the router is started, and the PC is determined as a security device, and the Hilink connection is allowed to be established, that is, the management channel connection is established, and the subsequent network configuration can be automatically performed.
  • two functional portals of the personal hotspot are preset in the PC, one is the functional portal of the personal hotspot shown in FIG. 4 or FIG. 5 that needs to create an SSID for separate configuration; the other is the functional portal of the personal hotspot shown in FIG. 8 .
  • the shown embodiment of the present application provides the function entry of the configuration-free personal hotspot.
  • the PC enables the configuration-free personal hotspot to pair with the router, so that the subsequent PC automatically synchronizes the network configuration with the router through the following steps, and the user does not need to configure the SSID of the PC separately.
  • a function entry of a multiplexed personal hotspot is preset in the PC.
  • the PC first performs a process of synchronizing the network configuration with the router, and if the network configuration is successfully synchronized, the configuration-free personal hotspot function is enabled. If the network configuration synchronization fails, a separate SSID is created to receive personal hotspot configuration parameters such as the user name and password entered by the user.
  • the PC sends an action request frame to the router, where the action request frame carries connection information.
  • connection information includes connection request parameters, which are used to request the router to confirm its security, allow the subsequent PC to perform network configuration, and synchronize its SSID with the router SSID.
  • the connection information may include the MAC address of the PC. After the router receives the connection information, it confirms that the MAC address is the MAC address in the preset whitelist, and then confirms the security and allows the PC to establish a Hilink connection with the router. Or, receive user confirmation, whether to allow Hilink connection to be established.
  • the connection information carried in the action request frame is described as a one key connection (one key connection, OKC) element, which will not be described in detail later.
  • the router determines that the PC requests to establish a Hilink connection with the router, which needs to be paired.
  • the OKC element is an element that can be recognized and processed by both the PC and the router.
  • the OKC element is a manufacturer-defined element.
  • the OKC element is a specific element in the standard definition.
  • the PC sends an action request frame to the router, and the OKC element is carried in the action request frame, which defines the value of the category code and the action code.
  • the values of the classification code and opcode are used to indicate that the action request frame can be used to request a one-key connection pair.
  • the Hilink OKC information element (information element, IE) carried in the IEEE 802.11 action request frame.
  • the IE may be an independent IE that carries an element ID (element ID) allocated by the IEEE.
  • IE can also be an extended definition of a vendor-private element.
  • the Element ID is defined as 221, which is used to indicate that the IE is a vendor-private element.
  • FIG. 9 shows a schematic diagram of a frame structure of an OKC information element unit.
  • the OKC information element unit includes: an element ID (element ID) field, a length (length) field, an organization identifier (organization identifier) field, and a vendor-specific content (vendor-specific content) field.
  • the organization identifier field includes an organizationally unique identifier (organizationally unique identifier, OUI) subfield, which occupies 3 bytes (bytes) and is used to indicate the manufacturer's identity.
  • OUI organizationally unique identifier
  • the value of the OUI subfield is 00:E0:FC, which is used to indicate that the manufacturer is Huawei Technologies Co., Ltd.
  • the vendor specific content fields include a Hilink OKC subfield, a version subfield, and a value subfield.
  • the Hilink OKC subfield occupies 4 bytes and is used to indicate the Hilink OKC element.
  • the version subfield occupying 2 bytes, is used to indicate the version number of IE.
  • the value subfield consists of at least one set of parameters of the TLV encoded structure.
  • the TLV coding structure includes a type (type), a length (length) and a value (value).
  • the parameters of the TLV coding structure are at least used to indicate a target MAC (target MAC) and/or a logo (logo).
  • a parameter indicating the TLV coding structure of the target MAC is exemplarily given, including the target MAC (target MAC) subfield, the length (length) subfield, and the target MAC address (target MAC address).
  • MAC address the target MAC address subfield occupies 1 bytes, and the value is 251, which is used to indicate the MAC address.
  • the length subfield occupies 1bytes and the value is 6.
  • the value of the target MAC address can be carried in the probe request management frame or the action request management frame, and the value is the BSSID.
  • the PC determines the router, it can carry the router's BSSID in the probe request frame or the action request frame.
  • the router sends an action response management frame to the PC.
  • the router carries the BSSID of the selected PC in the probe request management frame or the action request management frame. It should be noted that before the router does not select the PC, the value corresponding to the target MAC address is the BSSID of the router itself.
  • target MAC address can be BSSID. If the PC carries the BSSID in the probe request management frame or the action request management frame, it means that the PC determines that the router corresponding to the BSSID is connected. If the router carries the BSSID in the probe response management frame or the action response management frame, it means that the router is a Hilink router.
  • the value of target MAC address can also be the MAC address of the station (station, STA) device. If the router carries the STA MAC address in the probe response management frame or action response management frame, it means that the router has selected the PC corresponding to the STA MAC address as the target PC for the connection.
  • the category code (Category code) and the operation code (Action code) are used to indicate that the current message is used for the requested operation, such as requesting a pairing connection.
  • Category code and Action code need to be jointly allocated by IEEE and the Internet Assigned Numbers Authority (IANA). Therefore, in the above message example, Category Code and Action Code To be determind (TBD) state. Likewise, the classification code and operation code of the TBD state will not be described below.
  • the router determines to establish a connection with the PC.
  • the router after receiving the action request frame carrying the one-key connection information element sent by the PC, the router pairs with the PC in a preset manner to establish a Hilink connection. That is, according to the OKC element, the router determines that it is allowed to establish a management connection channel with the PC and allows network configuration.
  • the preset method includes, for example, presetting a whitelist of pairable MAC addresses in the router. After confirming that the MAC address of the PC is the MAC address on the whitelist, the pairing can be performed automatically. Alternatively, the preset manner includes, for example, prompting the user to confirm whether to perform pairing. For example, the indicator light of the router flashes in mode 1 to prompt the user to confirm pairing. After that, if the router detects that the user clicks the hi button, it confirms that the user has confirmed the pairing and the connection can be established. For another example, the router sends a notification requesting confirmation to the terminal device where the Hilink APP that manages the router is located (for example, the smart phone of the router administrator), and the user confirms it.
  • the terminal device where the Hilink APP that manages the router is located (for example, the smart phone of the router administrator), and the user confirms it.
  • a prompt box is displayed to prompt the user to confirm the pairing.
  • the terminal device where the Hilink APP that manages the router detects that the user clicks on the control 111, it sends a confirmation notification to the router.
  • the router determines to pair with the PC.
  • a whitelist is preset in the router, automatic pairing can be realized. If the whitelist is not configured, the aging time needs to be preset. After receiving the action request frame, the router starts the timer. If the user's confirmation operation is not received within the preset aging time, the pairing fails. If the user's confirmation operation is received within the preset aging time, the pairing is successful.
  • the router sends an action response frame to the PC.
  • the router After the router determines that it is allowed to pair with the PC and establish a connection, it sends an action response (action response) management frame to the PC, and the OKC information element is carried in the action response management frame.
  • action response action response management frame
  • the structure of the OKC information element can be parameterized with the relevant description of the OKC information element in the foregoing step S704, which will not be repeated here.
  • the indicator light of the router lights up in the manner of Mode 2 to prompt the user that the current one-key connection is successfully paired. And/or, the router sends a notification of successful pairing to the terminal device where the Hilink APP that manages the router is located, to prompt the user that the pairing is successful with one-click connection.
  • a prompt box 121 is displayed, prompting the user that the one-key connection is successfully paired, and the PC has established a connection with the router.
  • the PC records in the local log the notification information of the successful pairing of the one-key connection and/or the interface presents the successful pairing.
  • the category code (Category code) and the operation code (Action code) are used to indicate the operation that the current message is used to perform, such as performing a pairing connection.
  • the values of Category code and Action code can be confirmed according to actual needs, that is, TBD status.
  • the PC extends the action request management frame of the 802.11 protocol and the Hilink pairing information and confirmation information transmitted by the action response management frame, and executes the pairing process with the router to achieve fast pairing. Simplify the pairing process while maintaining a secure connection.
  • the PC can realize on-demand pairing through the steps shown in FIG. 7, and when the Wi-Fi coverage needs to be expanded, the PC hotspot can be quickly turned on to perform pairing. Specifically, after the PC enables the hotspot, based on the 802.11 session channel, the router determines the PC as a security device through a whitelist or through user confirmation, and completes the PC security access process, that is, the pairing process. After that, the PC can perform network synchronization configuration based on Hilink connection.
  • the Wi-Fi configuration method provided by the embodiments of the present application can be used to realize automatic network configuration.
  • the PC configures the hotspot network provided by the router synchronously with the network provided by the router, so as to provide users with a non-perceptual roaming service.
  • the content of the configuration synchronization includes, for example, SSID and password information.
  • the synchronization protocols include, for example, Universal Plug and Play (UPnP), Constrained Application Protocol (CoAP), Control and Provisioning of Wireless Access Points (control and provisioning of wireless access) points protocol, CAPWAP), etc.
  • UFP Universal Plug and Play
  • CoAP Constrained Application Protocol
  • CAPWAP Control and Provisioning of Wireless Access Points (control and provisioning of wireless access) points protocol
  • the embodiments of the present application take the network synchronization configuration based on the UPnP protocol as an example for description.
  • the network configuration process specified by the UPnP protocol includes device addressing, device discovery, device description, device control, event notification, and a description interface based on hypertext markup language (html).
  • the device includes, for example, a PC.
  • the network configuration process of the PC to the personal hotspot can be specifically implemented as the following steps S1301 to S1304 .
  • the PC detects a gateway that supports network configuration.
  • the PC broadcast message is used to detect a gateway device, such as a Hilink gateway, that supports the network configuration function in the currently connected Zhilian network, and then use the gateway device to configure the network of the PC. For example, if the router currently connected to the PC supports the network configuration function, the PC starts the network configuration process after detecting the router. For another example, if the router currently connected to the PC does not support the network configuration function, the PC determines other devices with the network configuration function in the Zhilian network through broadcast messages, and the PC uses this device to synchronize the network configuration with the router.
  • a gateway device such as a Hilink gateway
  • the PC if it establishes a connection with the network provided by the router for the first time, it needs to obtain the Internet Protocol (IP) address of the router by using the dynamic host configuration protocol (DHCP). For example, a PC sends an M-search request message to detect a router that supports Hilink. Correspondingly, after receiving the M-search request message, the Hilink router replies with the M-seach response message to complete the detection process.
  • IP Internet Protocol
  • DHCP dynamic host configuration protocol
  • the target IP address of the Hilink gateway (which can also be described as a root device) detected by the PC is urn:www-huawei-com:service:NetworkSyncService:1.
  • the address of the description file to obtain the Hilink gateway is http://192.168.1.1:37215/upnpdev.xml.
  • An example of an M-seach request message is as follows:
  • the network configuration can be performed.
  • the PC uses the IP address of the router to send its alive status to the router to notify the router that the PC is online and the network is to be configured.
  • the PC sends a UPnP alive online message to the router to inform the router that the current PC is online. corresponding.
  • the router After receiving the UPnP alive online message, the router confirms that the PC is online, and establishes a hypertext transfer protocol over secure socket sayer (HTTPS) management session for subscribing to the network synchronization service.
  • HTTPS secure socket sayer
  • the synchronization service includes, for example, NetworkSyncService:1.
  • the PC notifies the router that the PC is online based on the Simple Service Discovery Protocol (simple service discovery protocol, SSDP) in the UPnP protocol.
  • Simple Service Discovery Protocol simple service discovery protocol, SSDP
  • An example of a UPnP alive online message is shown below.
  • the "NTS:ssdp:alive" field is used to indicate the current application of the UPnP alive protocol message.
  • the time-to-live (max-age) in the Cache-Control field is used to indicate the aging-out time of the PC.
  • the router obtains the Wi-Fi module information of the PC.
  • the router obtains the Wi-Fi module information of the PC, which is used to configure the Wi-Fi hotspot network of the PC.
  • the Wi-Fi module information includes one or more of the following: SSID of the PC access router (such as WLC Index For Cover), WLAN network information (network Info), and device information (device info).
  • the router sends an acquisition information packet to the PC, which is used to acquire Wi-Fi module information of the PC.
  • An example of a message for acquiring Wi-Fi module information is shown as follows.
  • Hilink Gateway uses the GetWLCIndexForCover field as a query interface to query the current Wi-Fi configuration information of the PC. For example, NewSSID is used to query the SSID accessed by the PC; NewRFBand is used to query the radio frequency band corresponding to the SSID; NewQueryType is used to query the type.
  • the PC after receiving the message for obtaining the Wi-Fi module information sent by the router, the PC sends a response message based on the HTTPS management session for replying to the device information.
  • the router performs network configuration on the PC.
  • the router can determine the WLAN configuration of the PC based on a locally preset configuration policy, and start to perform synchronization configuration.
  • the WLAN synchronization configuration includes the configuration of WLAN related parameters and the configuration of other network connection related parameters. For example, it includes the black and white list configuration of the MAC address of the terminal device.
  • the locally preset configuration policy includes, for example, a network configuration template and an import policy preconfigured in the router.
  • the router obtains the Wi-Fi module information of the PC including information 1 and information 2, and after matching with the pre-configured network configuration template, determines that the network configuration template 1 matches the information 1 and the information 2.
  • Network configuration template 1 satisfies the requirements of Information 1 and Information 2, and includes complete network configuration information.
  • the router pushes the network configuration template 1 to the PC, and the PC uses the network configuration template 1 to configure all network information.
  • the router determines the manufacturer or model of the PC according to the PC device information, and matches the corresponding network configuration template.
  • the manufacturer of PC1 is manufacturer A
  • the manufacturer of PC2 is manufacturer B.
  • the router pushes the network configuration template A to PC1 and the network configuration template B to PC2 according to the manufacturer type.
  • PC1 and PC2 automatically complete the network configuration synchronization, that is, the router completes the network configuration of the PC.
  • the router's configuration process to the PC includes, for example, sending a start (start) message to the PC, a set WLAN basic configuration (SetWlanBaseConfiguration) message, a set WLAN advanced configuration (SetWlanAdvancedConfiguration) message, and a commit (commit) message.
  • Multiple configuration packets are included between a set of start packets and commit packets, wherein the configuration packets include SetWlanBaseConfiguration packets and SetWlanAdvancedConfiguration packets.
  • the PC After the PC receives the commit message, it starts to configure WLAN parameters based on all the received configuration messages.
  • the SetWlanBaseConfiguration packet is used to set the basic parameters of the SSID when the WLAN module of the PC is used as a hotspot, for example, including the 802.11 protocol working mode, authentication mode, encryption mode, encryption algorithm, and access password of the hotspot.
  • the SetWlanAdvancedConfiguration message is used to set the advanced parameters of the SSID when the WLAN module of the PC is used as a hotspot, such as the maximum number of users allowed to access, whether to enable automatic channel selection, specify the working channel, transmit power level, country code, whether to enable SSID Layer 2 broadcast, whether to enable Wi-Fi MultiMedia (WMM), etc.
  • WMM Wi-Fi MultiMedia
  • the Wi-Fi configuration method can automatically synchronize the Wi-Fi information configuration with the router after the PC is connected to the router, so as to provide the user with a PC hotspot without configuration.
  • the PC and the router use the same SSID as a device in the Layer 2 roaming domain of the router to ensure that the terminal device can seamlessly roam between the router and the PC after accessing the Wi-Fi network.
  • the "v ⁇ u:Start" field in the above start message is used to identify the start of synchronization configuration.
  • the NewNetworkSyncCode field is used to indicate the network configuration synchronization sequence number of the current commit message. After the PC receives the commit message, it needs to confirm that the synchronization sequence number of the network configuration is incremented to prevent repeated configurations caused by attacks or network retransmissions.
  • the process of the router performing the network configuration on the PC may be the first network configuration synchronization process after the PC accesses the router.
  • the above steps may also be used to synchronize the WLAN parameters between the PC and the router again.
  • a PC uses a real-time transmission protocol to synchronously send data. Therefore, in order to ensure security, the PC prohibits the AP from upgrading the PC's Wi-Fi module, and the PC does not allow the AP to use the parameter synchronization protocol channel to upgrade the PC's Wi-Fi module firmware.
  • the PC in the capability negotiation phase of the CoAP protocol or the UPnP protocol, the PC declares that the firmware upgrade is not supported. In addition, the PC prohibits the AP from querying or setting the administrator user account and key information of the Wi-Fi module of the PC.
  • the PC after the PC completes the network configuration, it can turn on the configuration-free PC hotspot and use itself as a soft AP device to expand the Wi-Fi coverage area and improve the Wi-Fi coverage effect.
  • the PC hotspot After the terminal device is connected or disconnected from the PC hotspot, the PC hotspot needs to report the access status of the terminal device to the router, so that the router can manage the Wi-Fi network.
  • the flow of the Wi-Fi configuration method provided by this embodiment of the present application further includes step S1401 and step S1402 .
  • the PC is connected to the terminal device.
  • the PC reports the access situation of the terminal device to the router.
  • the PC when the PC determines that a terminal device (which may also be described as a station device) is connected or offline in the configuration-free hotspot, the PC sends a UPnP active notification (notify active) message to the router.
  • the UPnP notify active message carries the MAC identifier of the terminal device and the access or offline information, such as WLCAssociatedStat.
  • the PC is the soft AP device that provides the Wi-Fi network. Therefore, devices with the same MAC as the PC should be restricted from accessing the Wi-Fi network provided by the PC. That is to say, in the process of expanding the Wi-Fi network by the PC, the PC, as a STA device, cannot access the hotspot provided by itself.
  • the PC can turn on or turn off the hotspot according to the actual situation. If the PC needs to turn off the hotspot, it needs to notify the router of its shutdown, and guide the terminal device connected to it to connect to the router. Furthermore, the personalized use requirements of users are met, and the user experience is improved.
  • step S1402 the flow of the Wi-Fi configuration method provided by this embodiment of the present application further includes step S1501 .
  • the PC informs the router that the personal hotspot needs to be turned off, and guides the terminal device to connect to the router, then turn off the personal hotspot.
  • the PC after the PC receives the user's instruction to turn off the configuration-free hotspot, the PC guides the terminal device that has accessed the hotspot to switch to the router, and actively sends a UPnP byebye message to the router. After that, the PC turns off the personal hotspot function and clears the related WLAN configuration.
  • the PC after the PC turns on the hotspot and configures the network through the above Wi-Fi configuration method, it maintains the Wi-Fi connection with the AP device while providing the Wi-Fi network without awareness roaming for other terminal devices. It will affect its own Internet function. Further, after the PC turns off the hotspot, it will maintain the Wi-Fi connection with the AP device, which will not affect its own surfing function.
  • the terminal device uses Beacon frames to compare the connected Wi-Fi network signal with the Wi-Fi network signal provided by nearby STAs. In this way, when the Wi-Fi network signal becomes poor, the STA with better Wi-Fi network signal can be accessed.
  • the mobile phone searches for a STA Wi-Fi network with a better signal, then displays the interface 1601, and displays a notification prompt in the pull-down notification bar 161 to prompt the user.
  • the mobile phone After detecting that the user clicks on the control 162, the mobile phone starts the roaming process, switches the Wi-Fi network, and accesses the Wi-Fi network with a better signal provided by the PC.
  • the terminal device can also switch automatically after searching for a Wi-Fi network with a better signal than the current Wi-Fi network, and perform Wi-Fi network roaming without the user's perception.
  • the above electronic devices and AP devices include corresponding hardware structures and/or software modules for executing each function.
  • the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Experts may use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of the embodiments of the present application.
  • the electronic device may be divided into functional modules according to the foregoing method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
  • FIG. 17 is a schematic structural diagram of a Wi-Fi configuration apparatus provided by an embodiment of the present application.
  • the Wi-Fi configuration apparatus 1700 includes: a transceiver module 1701 and a processing module 1702 .
  • the Wi-Fi configuration apparatus 1700 may be used to implement the functions of the first electronic device involved in the above method embodiments.
  • the Wi-Fi configuration apparatus 1700 may be the first electronic device itself, or may be a functional unit or chip in the first electronic device, or a device matched with the first electronic device.
  • the transceiver module 1701 is configured to support the Wi-Fi configuration apparatus 1700 to perform one or more steps in step S701, step S703 and step S705 shown in FIG. 7 in the foregoing embodiment; and/or, the transceiver module 1701 It is also used to support the Wi-Fi configuration apparatus 1700 to perform other sending and receiving steps performed by the Wi-Fi configuration apparatus in the embodiments of the present application.
  • the processing module 1702 is configured to support the Wi-Fi configuration apparatus 1700 to perform one or more steps in the step S702 shown in FIG. 7 in the foregoing embodiment; and/or, the processing module 1702 is further configured to support Wi-Fi
  • the Fi configuration apparatus 1700 executes other processing steps performed by the Wi-Fi configuration apparatus in the embodiments of the present application.
  • the Wi-Fi configuration apparatus 1700 may be used to implement the functions of the AP device involved in the above method embodiments.
  • the Wi-Fi configuration apparatus 1700 may be the AP device itself, or may be a functional unit or chip in the AP device, or a device matched with the AP device.
  • the transceiver module 1701 is used to support the Wi-Fi configuration apparatus 1700 to perform one or more steps in step S701, step S703 and step S705 shown in FIG. 7 in the above embodiment; and/or, the transceiver module 1701 It is also used to support the Wi-Fi configuration apparatus 1700 to perform other sending and receiving steps performed by the Wi-Fi configuration apparatus in the embodiments of the present application.
  • the processing module 1702 is configured to support the Wi-Fi configuration apparatus 1700 to perform one or more steps in step S704 shown in FIG. 7 in the foregoing embodiment; and/or the processing module 1702 is further configured to support Wi-Fi
  • the Fi configuration apparatus 1700 executes other processing steps performed by the Wi-Fi configuration apparatus in the embodiments of the present application.
  • the processing module 1702 may be a processor or a controller. It may implement or execute the various exemplary logical blocks, modules and circuits described in connection with this disclosure.
  • a processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
  • the Wi-Fi configuration apparatus 1700 shown in FIG. 17 may further include a storage module (not shown in FIG. 17 ), and the storage module stores programs or instructions.
  • the transceiver module 1701 and the processing module 1702 execute the program or instruction
  • the Wi-Fi configuration apparatus 1700 shown in FIG. 17 can execute the Wi-Fi configuration method provided by the embodiment of the present application.
  • the transceiver module may include a receiving module and a sending module.
  • the receiving module is used to receive signals sent by other devices.
  • the sending module is used to send signals to other devices.
  • the specific implementation manner of the transceiver module is not specifically limited in this embodiment of the present application.
  • each unit in the Wi-Fi configuration apparatus 1700 shown in FIG. 17 is respectively to implement the corresponding flow of the Wi-Fi configuration method provided by the above method-side embodiment, and are not repeated here for brevity.
  • the Wi-Fi configuration apparatus 1700 shown in FIG. 17 reference may be made to the technical effect of the Wi-Fi configuration method provided by the foregoing method-side embodiment, which will not be repeated here.
  • An embodiment of the present application further provides a chip system, including: a processor, where the processor is coupled with a memory, the memory is used to store a program or an instruction, and when the program or instruction is executed by the processor, the The chip system implements the method in any of the foregoing method embodiments.
  • the number of processors in the chip system may be one or more.
  • the processor can be implemented by hardware or by software.
  • the processor may be a logic circuit, an integrated circuit, or the like.
  • the processor may be a general-purpose processor implemented by reading software codes stored in memory.
  • the memory may be integrated with the processor, or may be provided separately from the processor, which is not limited in this embodiment of the present application.
  • the memory may be a non-transitory processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip, or may be provided on different chips.
  • the arrangement of the memory and the processor is not particularly limited.
  • the system-on-chip may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on chip (SoC), It can also be a central processing unit (CPU), a network processor (NP), a digital signal processing circuit (DSP), or a microcontroller (microcontroller).
  • controller unit, MCU it can also be a programmable logic device (PLD) or other integrated chips.
  • each step in the above method embodiments may be implemented by a hardware integrated logic circuit in a processor or an instruction in the form of software.
  • the method steps disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • Embodiments of the present application also provide a storage medium for storing instructions used by the above-mentioned communication apparatus.
  • Embodiments of the present application further provide a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on the server, the server executes the above-mentioned related method steps to realize the Wi-Fi in the above-mentioned embodiments. -Fi configuration method.
  • Embodiments of the present application further provide a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the above-mentioned relevant steps, so as to implement the Wi-Fi configuration method in the above-mentioned embodiment.
  • the embodiments of the present application also provide an apparatus, the apparatus may specifically be a component or a module, and the apparatus may include one or more processors and a memory connected to each other; wherein, the memory is used to store a computer program, one or more A computer program includes instructions.
  • the instruction When the instruction is executed by one or more processors, it causes the apparatus to execute the Wi-Fi configuration method in each of the above method embodiments.
  • the devices, computer-readable storage media, computer program products or chips provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved, reference may be made to the above-provided methods. The beneficial effects in the corresponding method will not be repeated here.
  • the steps of the methods or algorithms described in conjunction with the disclosure of the present application may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions.
  • Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory (RAM), flash memory, read only memory (ROM), erasable programmable read only memory (erasable programmable ROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM, EEPROM), registers, hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium well known in the art.
  • An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and storage medium may reside in an application specific integrated circuit (ASIC).
  • ASIC application specific integrated circuit
  • the disclosed method may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of modules or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .

Abstract

The present application relates to the technical field of terminals, and provides a wireless fidelity (Wi-Fi) configuration method and an electronic device. The electronic device is used as a relay point for a Wi-Fi network of a router to expand the coverage of the Wi-Fi network; and a service set identifier (SSID) of the electronic device is configured to be the same as an SSID of the router, such that an unaware Wi-Fi roaming service can be provided for a user. The method comprises: accessing a first Wi-Fi network corresponding to a first SSID of a wireless access point (AP) device; upon detecting an operation of turning on a Wi-Fi hotspot, pairing with the AP device; and if the pairing is successful, configuring a second SSID of a Wi-Fi hotspot network that is the same as the first SSID.

Description

Wi-Fi配置方法及电子设备Wi-Fi configuration method and electronic device
本申请要求于2020年12月31日提交国家知识产权局、申请号为202011638831.3、发明名称为“Wi-Fi配置方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011638831.3 and the invention title "Wi-Fi configuration method and electronic device" filed with the State Intellectual Property Office on December 31, 2020, the entire contents of which are incorporated herein by reference Applying.
技术领域technical field
本申请实施例涉及终端技术领域,尤其涉及一种Wi-Fi配置方法及电子设备。The embodiments of the present application relate to the field of terminal technologies, and in particular, to a Wi-Fi configuration method and an electronic device.
背景技术Background technique
一般无线保真(wireless fidelity,Wi-Fi)环境中,路由器为用户提供Wi-Fi网络。但是,路由器提供的Wi-Fi覆盖范围有限,在Wi-Fi覆盖范围边缘或超出Wi-Fi覆盖范围,会出现Wi-Fi网络异常的问题。In a general wireless fidelity (Wi-Fi) environment, a router provides a Wi-Fi network for a user. However, the Wi-Fi coverage provided by the router is limited. At the edge of the Wi-Fi coverage or beyond the Wi-Fi coverage, the problem of abnormal Wi-Fi network will occur.
基于此,主要有两种解决方案用于增大Wi-Fi覆盖范围。方案一、通过有线网络将路由器连接至各个房间,为各个房间提供Wi-Fi网络。方案二、直接利用多个Wi-Fi路由器续接Wi-Fi网络。Based on this, there are mainly two solutions for increasing Wi-Fi coverage. Option 1: Connect the router to each room through a wired network, and provide Wi-Fi network for each room. Option 2: Use multiple Wi-Fi routers directly to connect to the Wi-Fi network.
上述两个方案均可以保证Wi-Fi网络覆盖至全部房间,但是,需要单独配置各个Wi-Fi路由器的服务集标识(service set identifier,SSID)。如此,终端设备在各个房间漫游的过程中,终端设备需要与已连接的Wi-Fi路由器断开连接,再次识别新的Wi-Fi路由器的SSID,导致出现Wi-Fi网络卡顿的问题,影响用户使用体验。The above two solutions can ensure that the Wi-Fi network covers all rooms, but the service set identifier (SSID) of each Wi-Fi router needs to be configured separately. In this way, during the roaming process of the terminal device in each room, the terminal device needs to disconnect from the connected Wi-Fi router and identify the SSID of the new Wi-Fi router again. User experience.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供的Wi-Fi配置方法及电子设备,将电子设备作为路由器Wi-Fi网络的中继点,扩大Wi-Fi网络覆盖范围,并配置电子设备的SSID与路由器的SSID相同,能够为用户提供无感知的Wi-Fi漫游服务。The Wi-Fi configuration method and electronic device provided by the embodiments of the present application use the electronic device as a relay point of the router's Wi-Fi network to expand the coverage of the Wi-Fi network, and configure the SSID of the electronic device to be the same as the SSID of the router. Provide users with non-aware Wi-Fi roaming services.
为达到上述目的,本申请实施例采用如下技术方案:In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
第一方面,本申请实施例提供一种Wi-Fi配置方法,该方法可以包括:接入无线访问接入点AP设备的第一服务集标识SSID对应的第一无线保真Wi-Fi网络。检测到开启Wi-Fi热点的操作,向AP设备发送配对请求,配对请求用于请求与AP设备进行配对。若配对成功,则配置Wi-Fi热点的第二Wi-Fi网络,第二Wi-Fi网络的第二SSID与第一SSID相同。In a first aspect, an embodiment of the present application provides a Wi-Fi configuration method, the method may include: accessing a first wireless fidelity Wi-Fi network corresponding to a first service set identifier SSID of a wireless access point AP device. The operation of turning on the Wi-Fi hotspot is detected, and a pairing request is sent to the AP device, and the pairing request is used to request pairing with the AP device. If the pairing is successful, a second Wi-Fi network of the Wi-Fi hotspot is configured, and the second SSID of the second Wi-Fi network is the same as the first SSID.
如此,电子设备在接入AP设备的网络后,能够根据用户需求,确定是否开启热点。在检测到开启热点的操作后,电子设备能够自动与AP设备的Wi-Fi信息配置同步,实现为用户提供免配置的热点。并且,电子设备与AP设备使用相同的SSID,作为AP设备的二层漫游域中的设备,保证终端设备接入Wi-Fi网络后,能够在AP设备和电子设备之间进行无缝漫游。In this way, after accessing the network of the AP device, the electronic device can determine whether to enable the hotspot according to user requirements. After detecting the operation of turning on the hotspot, the electronic device can automatically synchronize with the Wi-Fi information configuration of the AP device, so as to provide the user with a configuration-free hotspot. In addition, the electronic device and the AP device use the same SSID as a device in the Layer 2 roaming domain of the AP device to ensure that the terminal device can seamlessly roam between the AP device and the electronic device after accessing the Wi-Fi network.
在一种可能的实现方式中,若配对成功,则配置Wi-Fi热点的第二Wi-Fi网络,包括:若配对成功,则向AP设备发送Wi-Fi模块信息,Wi-Fi模块信息包括如下一项或几项内容:第一SSID、无线局域网WLAN信息、设备信息。获取AP设备基于Wi-Fi模块信息确定的网络配置信息。利用网络配置信息,配置Wi-Fi热 点的第二Wi-Fi网络。In a possible implementation manner, if the pairing is successful, configuring the second Wi-Fi network of the Wi-Fi hotspot includes: if the pairing is successful, sending Wi-Fi module information to the AP device, where the Wi-Fi module information includes One or more of the following contents: the first SSID, wireless local area network WLAN information, and device information. Obtain the network configuration information determined by the AP device based on the Wi-Fi module information. Using the network configuration information, configure a second Wi-Fi network for the Wi-Fi hotspot.
在一些实施例中,电子设备向AP设备发送Wi-Fi模块信息,以便AP设备基于Wi-Fi模块信息对电子设备的Wi-Fi网络进行配置。其中,AP设备可以配置一个或多个SSID,电子设备将其接入的SSID告知AP设备,则AP设备不必再进行查询。电子设备的WLAN信息例如包括电子设备支持的射频频段信息。电子设备的设备信息例如包括电子设备的厂商,型号等。In some embodiments, the electronic device sends Wi-Fi module information to the AP device, so that the AP device configures the Wi-Fi network of the electronic device based on the Wi-Fi module information. The AP device may be configured with one or more SSIDs, and the electronic device informs the AP device of the SSID it accesses, and the AP device does not need to query. The WLAN information of the electronic device includes, for example, information on radio frequency bands supported by the electronic device. The device information of the electronic device includes, for example, the manufacturer and model of the electronic device.
在一种可能的实现方式中,配对请求中携带连接信息,在向AP设备发送配对请求之后,方法还包括:接收AP设备发送的配对响应,根据配对响应确定是否配对成功;配对响应为AP设备根据连接信息确定。In a possible implementation manner, the pairing request carries connection information, and after sending the pairing request to the AP device, the method further includes: receiving a pairing response sent by the AP device, and determining whether the pairing is successful according to the pairing response; the pairing response is the AP device Determined based on connection information.
在一些实施例中,第一电子设备向AP设备发送配对请求,用于请求确认其是否安全准入。其中,连接信息包含连接请求参数,用于请求AP设备对其安全性进行确认,允许后续第一电子设备进行网络配置,将第一电子设备的SSID与AP设备的SSID进行同步。其中,连接信息可以包含第一电子设备的MAC地址,AP设备接收到连接信息后,确认MAC地址为预置白名单中的MAC地址,则确认安全,允许第一电子设备与AP设备建立连接。或者,接收用户确认(例如点击hi键的操作),确定是否允许建立连接。In some embodiments, the first electronic device sends a pairing request to the AP device for requesting confirmation of whether it is securely admitted. The connection information includes connection request parameters, which are used to request the AP device to confirm its security, allow subsequent network configuration of the first electronic device, and synchronize the SSID of the first electronic device with the SSID of the AP device. The connection information may include the MAC address of the first electronic device. After the AP device receives the connection information, it confirms that the MAC address is a MAC address in the preset whitelist, confirms security, and allows the first electronic device to establish a connection with the AP device. Alternatively, receive user confirmation (eg, an operation of clicking the hi key) to determine whether to allow the connection to be established.
在一种可能的实现方式中,获取AP设备基于Wi-Fi模块信息确定的网络配置信息,包括:获取开始报文,参数配置报文和承诺报文;开始报文用于指示开始传输网络配置信息,参数配置报文用于配置第二Wi-Fi网络的参数,承诺报文用于指示网络配置信息传输完毕。在接收到承诺报文后,确认已完成接收网络配置信息。In a possible implementation manner, acquiring the network configuration information determined by the AP device based on the Wi-Fi module information includes: acquiring a start packet, a parameter configuration packet and a commitment packet; the start packet is used to instruct to start transmitting the network configuration information, the parameter configuration message is used to configure the parameters of the second Wi-Fi network, and the commitment message is used to indicate that the transmission of the network configuration information is completed. After receiving the promise message, confirm that the network configuration information has been received.
在一些实施例中,AP设备与电子设备之间基于同步协议进行网络配置同步,使得电子设备热点的SSID与接入AP设备的SSID相同。其中,同步协议例如包括通用即插即用协议(universal plug and play,UPnP)、受限制的应用协议(constrained application protocol,CoAP)、无线接入点的控制和配置协议(control and provisioning of wireless access points protocol,CAPWAP)等。In some embodiments, network configuration synchronization is performed between the AP device and the electronic device based on a synchronization protocol, so that the SSID of the hotspot of the electronic device is the same as the SSID of the access AP device. Wherein, the synchronization protocols include, for example, Universal Plug and Play (UPnP), Constrained Application Protocol (CoAP), Control and Provisioning of Wireless Access Points (control and provisioning of wireless access) points protocol, CAPWAP), etc.
在一种可能的实现方式中,方法还包括:若配对失败,则Wi-Fi热点的第三Wi-Fi网络的第三SSID与第一SSID不同。In a possible implementation manner, the method further includes: if the pairing fails, the third SSID of the third Wi-Fi network of the Wi-Fi hotspot is different from the first SSID.
在一些实施例中,电子设备在进行网络配置同步之前,其SSID可能与接入AP设备的第一SSID不同。此时,若终端设备由AP设备漫游至电子设备则需要重新录入用户密码等信息。因此,通过配对及网络配置同步,电子设备实现为用户提供无感知的漫游服务。In some embodiments, before the electronic device performs network configuration synchronization, its SSID may be different from the first SSID of the access AP device. At this time, if the terminal device roams from the AP device to the electronic device, it is necessary to re-enter information such as the user password. Therefore, through pairing and synchronization of network configuration, the electronic device can provide users with a non-aware roaming service.
在一种可能的实现方式中,方法还包括:向AP设备上报接入第二Wi-Fi网络的终端设备的接入情况;接入情况包括接入第二Wi-Fi网络的终端设备的第一媒体存取控制MAC标识,和/或断开与第二Wi-Fi网络连接的终端设备的第二MAC标识。In a possible implementation manner, the method further includes: reporting to the AP device the access situation of the terminal device accessing the second Wi-Fi network; the access situation includes the first access situation of the terminal device accessing the second Wi-Fi network. A media access control MAC identifier, and/or a second MAC identifier of the terminal device disconnected from the second Wi-Fi network.
在一些实施例中,电子设备完成网络配置后,可以开启免配置热点,将自身作为软接入点(soft AP)设备,以扩大Wi-Fi覆盖面积,提高Wi-Fi覆盖效果。 终端设备接入或断开与热点的连接后,电子设备需要向AP设备上报终端设备接入情况,以便AP设备对Wi-Fi网络进行管理。In some embodiments, after the electronic device completes the network configuration, it can open a configuration-free hotspot and use itself as a soft access point (soft AP) device to expand the Wi-Fi coverage area and improve the Wi-Fi coverage effect. After the terminal device is connected to or disconnected from the hotspot, the electronic device needs to report the access status of the terminal device to the AP device, so that the AP device can manage the Wi-Fi network.
在一种可能的实现方式中,方法还包括:向AP设备发送第一报文,第一报文用于通知AP设备Wi-Fi热点待关闭。断开与接入第二Wi-Fi网络的终端设备之间的连接。关闭Wi-Fi热点,保持与第一Wi-Fi网络的连接。In a possible implementation manner, the method further includes: sending a first packet to the AP device, where the first packet is used to notify the AP device that the Wi-Fi hotspot is to be closed. Disconnect from the terminal device connected to the second Wi-Fi network. Turn off the Wi-Fi hotspot and stay connected to the primary Wi-Fi network.
在一些实施例中,电子设备能够根据实际情况按需开启或关闭热点。若电子设备需要关闭热点,则需要将其关闭情况通知AP设备,并将其上连接的终端设备引导连接至AP设备。进而,满足用户的个性化使用需求,提高用户使用体验。In some embodiments, the electronic device can turn on or turn off the hotspot according to the actual situation. If the electronic device needs to turn off the hotspot, it needs to notify the AP device of its shutdown, and guide the terminal device connected to it to connect to the AP device. Furthermore, the personalized use requirements of users are met, and the user experience is improved.
在一些实施例中,电子设备开启热点,并通过上述Wi-Fi配置方法配置网络后,在为其他终端设备提供无感知漫游的Wi-Fi网络的同时,保持与AP设备的Wi-Fi连接,不会影响自身的上网功能。进一步的,在电子设备关闭热点后,还会保持与AP设备的Wi-Fi连接,不会影响自身的上网功能。In some embodiments, after the electronic device turns on the hotspot and configures the network through the above Wi-Fi configuration method, it maintains the Wi-Fi connection with the AP device while providing other terminal devices with a Wi-Fi network without awareness roaming, It will not affect its own Internet function. Further, after the electronic device turns off the hotspot, it will maintain the Wi-Fi connection with the AP device, which will not affect its own surfing function.
第二方面,本申请实施例提供一种Wi-Fi配置方法,该方法可以包括:接收第一电子设备发送的配对请求;第一电子设备已接入第一服务集标识SSID对应的第一无线保真Wi-Fi网络;配对请求用于请求配对。若配对成功,则允许第一电子设备配置第二Wi-Fi网络,第二Wi-Fi网络为第一电子设备的Wi-Fi热点提供的网络,第二Wi-Fi网络的第二SSID与第一SSID相同。In a second aspect, an embodiment of the present application provides a Wi-Fi configuration method, the method may include: receiving a pairing request sent by a first electronic device; the first electronic device has accessed a first wireless device corresponding to a first service set identifier SSID Fidelity Wi-Fi network; pairing request is used to request pairing. If the pairing is successful, the first electronic device is allowed to configure the second Wi-Fi network, the second Wi-Fi network is a network provided by the Wi-Fi hotspot of the first electronic device, and the second SSID of the second Wi-Fi network is the same as the first Wi-Fi network. One SSID is the same.
在一种可能的实现方式中,配对请求中携带连接信息,在接收第一电子设备发送的配对请求之后,方法还包括:根据连接信息,确定第一电子设备是否配对成功。向第一电子设备发送配对响应,配对响应用于携带配对成功消息或配对失败消息。In a possible implementation manner, the pairing request carries connection information, and after receiving the pairing request sent by the first electronic device, the method further includes: determining whether the first electronic device is successfully paired according to the connection information. A pairing response is sent to the first electronic device, where the pairing response is used to carry a pairing success message or a pairing failure message.
在一种可能的实现方式中,根据连接信息,确定第一电子设备是否配对成功,包括:根据连接信息,确定第一电子设备的媒体存取控制MAC地址是否为预置白名单中的MAC地址,若是,则确定第一电子设备配对成功。或者,根据连接信息,按照预设方式提示用户确定是否允许第一电子设备进行配对;响应于第一操作,确定第一电子设备配对成功。In a possible implementation manner, determining whether the first electronic device is paired successfully according to the connection information includes: determining, according to the connection information, whether the media access control MAC address of the first electronic device is a MAC address in a preset whitelist , if yes, it is determined that the first electronic device is paired successfully. Alternatively, according to the connection information, the user is prompted in a preset manner to determine whether to allow the first electronic device to be paired; in response to the first operation, it is determined that the first electronic device is successfully paired.
在一些实施例中,AP设备按照预设方式确定第一电子设备是否配对成功。预设方式例如包括在AP设备中预置可配对MAC地址的白名单,在确认第一电子设备的MAC地址为白名单上的MAC地址后,则可以自动配对。或者,预设方式例如包括提示用户确认是否进行配对。比如,AP设备的指示灯以方式1的方式闪烁,以提示用户进行配对确认。之后,如AP设备检测到用户点击hi键的操作,则确认用户已经确认配对,可以建立连接。又比如,AP设备向管理该AP设备的Hilink APP所在终端设备(例如AP设备管理员的智能手机)发送请求确认的通知,由用户进行确认。In some embodiments, the AP device determines whether the pairing of the first electronic device is successful in a preset manner. The preset method includes, for example, presetting a whitelist of pairable MAC addresses in the AP device, and after confirming that the MAC address of the first electronic device is a MAC address on the whitelist, it can be automatically paired. Alternatively, the preset manner includes, for example, prompting the user to confirm whether to perform pairing. For example, the indicator light of the AP device flashes in mode 1 to prompt the user to confirm pairing. After that, if the AP device detects that the user clicks the hi key, it confirms that the user has confirmed the pairing and the connection can be established. For another example, the AP device sends a notification requesting confirmation to the terminal device where the Hilink APP that manages the AP device is located (for example, the smart phone of the AP device administrator), and the user confirms it.
在一种可能的实现方式中,该方法还包括:若配对成功,接收第一电子设备发送的Wi-Fi模块信息,Wi-Fi模块信息包括如下一项或几项内容:第一SSID、无线局域网WLAN信息、第一电子设备的设备信息。根据Wi-Fi模块信息,匹配Wi-Fi模块信息对应的网络配置模板;网络配置模板中包含网络配置信息;网络配置信息用于配置第二Wi-Fi网络。向第一电子设备发送网络配置信息。In a possible implementation manner, the method further includes: if the pairing is successful, receiving Wi-Fi module information sent by the first electronic device, where the Wi-Fi module information includes one or more of the following: the first SSID, the wireless Local area network WLAN information, device information of the first electronic device. According to the Wi-Fi module information, a network configuration template corresponding to the Wi-Fi module information is matched; the network configuration template includes network configuration information; the network configuration information is used to configure the second Wi-Fi network. Sending network configuration information to the first electronic device.
在一些实施例中,AP设备在获取到第一电子设备的Wi-Fi模块信息后,基于 本地预置的配置策略能够确定第一电子设备的WLAN配置,并开始进行同步配置。其中,WLAN同步配置包括WLAN相关参数的配置,以及其他网络连接相关参数的配置。例如包括设备MAC地址的黑白名单配置等。本地预置的配置策略例如包括AP设备中预配置的网络配置模板和导入策略。In some embodiments, after acquiring the Wi-Fi module information of the first electronic device, the AP device can determine the WLAN configuration of the first electronic device based on a locally preset configuration policy, and start to perform synchronous configuration. The WLAN synchronization configuration includes the configuration of WLAN related parameters and the configuration of other network connection related parameters. For example, it includes the black and white list configuration of the MAC address of the device. The locally preset configuration policy includes, for example, a network configuration template and an import policy preconfigured in the AP device.
比如,AP设备获得第一电子设备的Wi-Fi模块信息包括信息1和信息2,与预配置的网络配置模板进行匹配后,确定网络配置模板1与信息1和信息2匹配。网络配置模板1满足信息1和信息2的要求,且包括完整的网络配置信息。AP设备将网络配置模板1推送至第一电子设备,进而第一电子设备利用网络配置模板1完成网络全部信息的配置。For example, the AP device obtains the Wi-Fi module information of the first electronic device including information 1 and information 2, and after matching with a preconfigured network configuration template, determines that the network configuration template 1 matches information 1 and information 2. Network configuration template 1 satisfies the requirements of Information 1 and Information 2, and includes complete network configuration information. The AP device pushes the network configuration template 1 to the first electronic device, and then the first electronic device uses the network configuration template 1 to complete the configuration of all network information.
又比如,AP设备根据第一电子设备的设备信息确定第一电子设备的厂商或型号,匹配对应的网络配置模板。如第一电子设备1的厂商为厂商A,第一电子设备2的厂商为厂商B。AP设备根据厂商类型,将网络配置模板A推送至第一电子设备1,将网络配置模板B推送至第一电子设备2,第一电子设备1和第一电子设备2接收到网络配置模板后自动完成网络配置同步,即AP设备完成对第一电子设备的网络配置。For another example, the AP device determines the manufacturer or model of the first electronic device according to the device information of the first electronic device, and matches the corresponding network configuration template. For example, the manufacturer of the first electronic device 1 is the manufacturer A, and the manufacturer of the first electronic device 2 is the manufacturer B. The AP device pushes the network configuration template A to the first electronic device 1 according to the manufacturer type, and pushes the network configuration template B to the first electronic device 2. After receiving the network configuration template, the first electronic device 1 and the first electronic device 2 automatically The synchronization of the network configuration is completed, that is, the AP device completes the network configuration of the first electronic device.
在一种可能的实现方式中,向第一电子设备发送网络配置信息,包括:向第一电子设备发送开始报文,参数配置报文和承诺报文;开始报文用于指示开始传输网络配置信息,参数配置报文用于指示配置第二Wi-Fi网络的参数,承诺报文用于指示网络配置信息传输完毕。在发送承诺报文后,确认已完成网络配置信息的发送。In a possible implementation manner, sending the network configuration information to the first electronic device includes: sending a start message, a parameter configuration message and a commitment message to the first electronic device; the start message is used to instruct to start transmitting the network configuration information, the parameter configuration message is used to instruct to configure the parameters of the second Wi-Fi network, and the commitment message is used to indicate that the transmission of the network configuration information is completed. After sending the commit message, confirm that the sending of the network configuration information has been completed.
在一种可能的实现方式中,该方法还包括:接收第一电子设备上报的接入第二Wi-Fi网络的终端设备的接入情况;接入情况包括接入第二Wi-Fi网络的终端设备的第一MAC标识,和/或断开与第二Wi-Fi网络连接的终端设备的第二MAC标识。In a possible implementation manner, the method further includes: receiving an access condition of a terminal device accessing the second Wi-Fi network reported by the first electronic device; the access condition includes the access condition of the terminal device accessing the second Wi-Fi network. The first MAC identifier of the terminal device, and/or the second MAC identifier of the terminal device disconnected from the second Wi-Fi network.
在一种可能的实现方式中,该方法还包括:接收第一电子设备发送第一报文,第一报文用于通知第一电子设备的Wi-Fi热点待关闭。与接入第二Wi-Fi网络的终端设备建立连接,并保持与第一电子设备的连接。In a possible implementation manner, the method further includes: receiving a first message sent by the first electronic device, where the first message is used to notify the first electronic device that the Wi-Fi hotspot is to be turned off. A connection is established with the terminal device connected to the second Wi-Fi network, and the connection with the first electronic device is maintained.
此外,第二方面的Wi-Fi配置方法的技术效果可以参考第一方面的Wi-Fi配置方法的技术效果,此处不再赘述。In addition, for the technical effect of the Wi-Fi configuration method of the second aspect, reference may be made to the technical effect of the Wi-Fi configuration method of the first aspect, which will not be repeated here.
第三方面,本申请实施例提供一种电子设备,包括:处理器和存储器;存储器与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从存储器中读取计算机指令,使得电子设备执行如下操作:接入无线访问接入点AP设备的第一服务集标识SSID对应的第一无线保真Wi-Fi网络。检测到开启Wi-Fi热点的操作,向AP设备发送配对请求,配对请求用于请求与AP设备进行配对。若配对成功,则配置Wi-Fi热点的第二Wi-Fi网络,第二Wi-Fi网络的第二SSID与第一SSID相同。In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory; the memory is coupled to the processor, and the memory is used to store computer program code, and the computer program code includes computer instructions, when the processor reads from the memory The computer instruction causes the electronic device to perform the following operation: access the first Wi-Fi network corresponding to the first service set identifier SSID of the wireless access point AP device. The operation of turning on the Wi-Fi hotspot is detected, and a pairing request is sent to the AP device, and the pairing request is used to request pairing with the AP device. If the pairing is successful, a second Wi-Fi network of the Wi-Fi hotspot is configured, and the second SSID of the second Wi-Fi network is the same as the first SSID.
在一种可能的实现方式中,若配对成功,则配置Wi-Fi热点的第二Wi-Fi网络,包括:若配对成功,则向AP设备发送Wi-Fi模块信息,Wi-Fi模块信息包括如下一项或几项内容:SSID、无线局域网WLAN信息、设备信息。获取AP设备基于Wi-Fi模块信息确定的网络配置信息。利用网络配置信息,配置Wi-Fi热点的第二Wi-Fi网络。In a possible implementation manner, if the pairing is successful, configuring the second Wi-Fi network of the Wi-Fi hotspot includes: if the pairing is successful, sending Wi-Fi module information to the AP device, where the Wi-Fi module information includes One or more of the following: SSID, WLAN information, and device information. Obtain the network configuration information determined by the AP device based on the Wi-Fi module information. Using the network configuration information, configure the second Wi-Fi network of the Wi-Fi hotspot.
在一种可能的实现方式中,当处理器从存储器中读取所述计算机指令,还使得电子设备执行如下操作:接收AP设备发送的配对响应,根据配对响应确定是否配对成功;配对响应为AP设备根据连接信息确定。In a possible implementation manner, when the processor reads the computer instructions from the memory, it also causes the electronic device to perform the following operations: receive the pairing response sent by the AP device, and determine whether the pairing is successful according to the pairing response; the pairing response is the AP The device is determined based on the connection information.
在一种可能的实现方式中,获取AP设备基于Wi-Fi模块信息确定的网络配置信息,包括:获取开始报文,参数配置报文和承诺报文;开始报文用于指示开始传输网络配置信息,参数配置报文用于配置第二Wi-Fi网络的参数,承诺报文用于指示网络配置信息传输完毕。在接收到承诺报文后,确认已完成接收网络配置信息。In a possible implementation manner, acquiring the network configuration information determined by the AP device based on the Wi-Fi module information includes: acquiring a start packet, a parameter configuration packet and a commitment packet; the start packet is used to instruct to start transmitting the network configuration information, the parameter configuration message is used to configure the parameters of the second Wi-Fi network, and the commitment message is used to indicate that the transmission of the network configuration information is completed. After receiving the promise message, confirm that the network configuration information has been received.
在一种可能的实现方式中,当处理器从存储器中读取所述计算机指令,还使得电子设备执行如下操作:若配对失败,则Wi-Fi热点的第三Wi-Fi网络的第三SSID与第一SSID不同。In a possible implementation manner, when the processor reads the computer instructions from the memory, the electronic device also causes the electronic device to perform the following operations: if the pairing fails, the third SSID of the third Wi-Fi network of the Wi-Fi hotspot Different from the first SSID.
在一种可能的实现方式中,当处理器从存储器中读取所述计算机指令,还使得电子设备执行如下操作:向AP设备上报接入第二Wi-Fi网络的终端设备的接入情况;接入情况包括接入第二Wi-Fi网络的终端设备的第一媒体存取控制MAC标识,和/或断开与第二Wi-Fi网络连接的终端设备的第二MAC标识。In a possible implementation manner, when the processor reads the computer instructions from the memory, the electronic device also causes the electronic device to perform the following operations: report the access situation of the terminal device accessing the second Wi-Fi network to the AP device; The access situation includes the first MAC identifier of the terminal device accessing the second Wi-Fi network, and/or the second MAC identifier of the terminal device disconnecting from the second Wi-Fi network.
在一种可能的实现方式中,当处理器从存储器中读取所述计算机指令,还使得电子设备执行如下操作:向AP设备发送第一报文,第一报文用于通知AP设备Wi-Fi热点待关闭。断开与接入第二Wi-Fi网络的终端设备之间的连接。关闭Wi-Fi热点,保持与第一Wi-Fi网络的连接。In a possible implementation manner, when the processor reads the computer instructions from the memory, the electronic device also causes the electronic device to perform the following operations: send a first packet to the AP device, where the first packet is used to notify the AP device Wi- Fi hotspot pending. Disconnect from the terminal device connected to the second Wi-Fi network. Turn off the Wi-Fi hotspot and stay connected to the primary Wi-Fi network.
此外,第三方面的电子设备的技术效果可以参考第一方面的Wi-Fi配置方法的技术效果,此处不再赘述。In addition, for the technical effect of the electronic device of the third aspect, reference may be made to the technical effect of the Wi-Fi configuration method of the first aspect, which will not be repeated here.
第四方面,本申请实施例提供一种无线访问接入点AP设备,包括:处理器和存储器;存储器与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从存储器中读取计算机指令,使得AP设备执行如下操作:接收第一电子设备发送的配对请求;第一电子设备已接入第一服务集标识SSID对应的第一无线保真Wi-Fi网络;配对请求用于请求配对。若配对成功,则允许第一电子设备配置第二Wi-Fi网络,第二Wi-Fi网络为第一电子设备的Wi-Fi热点提供的网络,第二Wi-Fi网络的第二SSID与第一SSID相同。In a fourth aspect, an embodiment of the present application provides a wireless access point AP device, including: a processor and a memory; the memory is coupled to the processor, and the memory is used to store computer program code, where the computer program code includes computer instructions, when the processor The computer instructions are read from the memory, so that the AP device performs the following operations: receiving a pairing request sent by the first electronic device; the first electronic device has accessed the first Wi-Fi network corresponding to the first service set identifier SSID; Pairing request is used to request pairing. If the pairing is successful, the first electronic device is allowed to configure the second Wi-Fi network, the second Wi-Fi network is a network provided by the Wi-Fi hotspot of the first electronic device, and the second SSID of the second Wi-Fi network is the same as the first Wi-Fi network. One SSID is the same.
在一种可能的实现方式中,当处理器从存储器中读取所述计算机指令,还使得AP设备执行如下操作:根据连接信息,确定第一电子设备是否配对成功。向第一电子设备发送配对响应,配对响应用于携带配对成功消息或配对失败消息。In a possible implementation manner, when the processor reads the computer instructions from the memory, the processor also causes the AP device to perform the following operation: determine whether the first electronic device is paired successfully according to the connection information. A pairing response is sent to the first electronic device, where the pairing response is used to carry a pairing success message or a pairing failure message.
在一种可能的实现方式中,根据连接信息,确定第一电子设备是否配对成功,包括:根据连接信息,确定第一电子设备的媒体存取控制MAC地址是否为预置白名单中的MAC地址,若是,则确定第一电子设备配对成功。或者,根据连接信息,按照预设方式提示用户确定是否允许第一电子设备进行配对;响应于第一操作,确定第一电子设备配对成功。In a possible implementation manner, determining whether the first electronic device is paired successfully according to the connection information includes: determining, according to the connection information, whether the media access control MAC address of the first electronic device is a MAC address in a preset whitelist , if yes, it is determined that the first electronic device is paired successfully. Alternatively, according to the connection information, the user is prompted in a preset manner to determine whether to allow the first electronic device to be paired; in response to the first operation, it is determined that the first electronic device is successfully paired.
在一种可能的实现方式中,当处理器从存储器中读取所述计算机指令,还使得AP设备执行如下操作:若配对成功,接收第一电子设备发送的Wi-Fi模块信息,Wi-Fi模块信息包括如下一项或几项内容:第一SSID、无线局域网WLAN信息、第一电 子设备的设备信息。根据Wi-Fi模块信息,匹配Wi-Fi模块信息对应的网络配置模板;网络配置模板中包含网络配置信息;网络配置信息用于配置第二Wi-Fi网络。向第一电子设备发送网络配置信息。In a possible implementation manner, when the processor reads the computer instructions from the memory, it also causes the AP device to perform the following operations: if the pairing is successful, receive the Wi-Fi module information sent by the first electronic device, and the Wi-Fi The module information includes one or more of the following: the first SSID, the wireless local area network WLAN information, and the device information of the first electronic device. According to the Wi-Fi module information, a network configuration template corresponding to the Wi-Fi module information is matched; the network configuration template includes network configuration information; the network configuration information is used to configure the second Wi-Fi network. Sending network configuration information to the first electronic device.
在一种可能的实现方式中,向第一电子设备发送网络配置信息,包括:向第一电子设备发送开始报文,参数配置报文和承诺报文;开始报文用于指示开始传输网络配置信息,参数配置报文用于指示配置第二Wi-Fi网络的参数,承诺报文用于指示网络配置信息传输完毕。在发送承诺报文后,确认已完成网络配置信息的发送。In a possible implementation manner, sending the network configuration information to the first electronic device includes: sending a start message, a parameter configuration message and a commitment message to the first electronic device; the start message is used to instruct to start transmitting the network configuration information, the parameter configuration message is used to instruct to configure the parameters of the second Wi-Fi network, and the commitment message is used to indicate that the transmission of the network configuration information is completed. After sending the commit message, confirm that the sending of the network configuration information has been completed.
在一种可能的实现方式中,当处理器从存储器中读取所述计算机指令,还使得AP设备执行如下操作:接收第一电子设备上报的接入第二Wi-Fi网络的终端设备的接入情况;接入情况包括接入第二Wi-Fi网络的终端设备的第一MAC标识,和/或断开与第二Wi-Fi网络连接的终端设备的第二MAC标识。In a possible implementation manner, when the processor reads the computer instructions from the memory, the AP device also causes the AP device to perform the following operation: receiving the connection of the terminal device accessing the second Wi-Fi network reported by the first electronic device The access situation includes the first MAC identifier of the terminal device that accesses the second Wi-Fi network, and/or the second MAC identifier of the terminal device that is disconnected from the second Wi-Fi network.
在一种可能的实现方式中,当处理器从存储器中读取所述计算机指令,还使得AP设备执行如下操作:接收第一电子设备发送第一报文,第一报文用于通知第一电子设备的Wi-Fi热点待关闭。与接入第二Wi-Fi网络的终端设备建立连接,并保持与第一电子设备的连接。In a possible implementation manner, when the processor reads the computer instructions from the memory, the AP device also causes the AP device to perform the following operations: receiving a first packet sent by the first electronic device, and the first packet is used to notify the first Wi-Fi hotspots for electronic devices are pending. A connection is established with the terminal device connected to the second Wi-Fi network, and the connection with the first electronic device is maintained.
此外,第四方面的AP设备的技术效果可以参考第二方面的Wi-Fi配置方法的技术效果,此处不再赘述。In addition, for the technical effect of the AP device in the fourth aspect, reference may be made to the technical effect of the Wi-Fi configuration method in the second aspect, which will not be repeated here.
第五方面,本申请实施例提供一种电子设备,该电子设备具有实现如上述第一方面及其中任一种可能的实现方式中所述的Wi-Fi配置方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a fifth aspect, an embodiment of the present application provides an electronic device, the electronic device having the function of implementing the Wi-Fi configuration method described in the first aspect and any one of the possible implementation manners. This function can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.
第六方面,本申请实施例提供一种无线访问接入点AP设备,该AP设备具有实现如上述第二方面及其中任一种可能的实现方式中所述的Wi-Fi配置方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a sixth aspect, an embodiment of the present application provides a wireless access point AP device, where the AP device has the function of implementing the Wi-Fi configuration method described in the second aspect and any of the possible implementation manners. This function can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.
第七方面,本申请实施例提供一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行如上述第一方面及其中任一种可能的实现方式中任一项所述的Wi-Fi配置方法。In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, including computer instructions, when the computer instructions are executed on an electronic device, the electronic device is made to perform the above-mentioned first aspect and any one of the possible implementations. Any one of the Wi-Fi configuration methods.
第八方面,本申请实施例提供一种计算机可读存储介质,包括计算机指令,当计算机指令在无线访问接入点AP设备上运行时,使得AP设备执行如上述第二方面及其中任一种可能的实现方式中任一项所述的Wi-Fi配置方法。In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, including computer instructions, when the computer instructions are executed on a wireless access point AP device, the AP device is made to perform the above-mentioned second aspect and any one of them The Wi-Fi configuration method described in any one of the possible implementation manners.
第九方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行如上述第一方面及其中任一种可能的实现方式中任一项所述的Wi-Fi配置方法。In a ninth aspect, an embodiment of the present application provides a computer program product, which, when the computer program product is run on an electronic device, causes the electronic device to perform any one of the above-mentioned first aspect and any of the possible implementation manners. Wi-Fi configuration method.
第十方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在无线访问接入点AP设备上运行时,使得AP设备执行如上述第二方面及其中任一种可能的实现方式中任一项所述的Wi-Fi配置方法。A tenth aspect, an embodiment of the present application provides a computer program product, when the computer program product runs on a wireless access point AP device, the AP device is made to execute the second aspect and any one of the possible implementations described above. Any one of the Wi-Fi configuration methods.
第十一方面,本申请实施例提供一种电路系统,电路系统包括处理电路,处理电路被配置为执行如上述第一方面及其中任一种可能的实现方式中所述的 Wi-Fi配置方法;或者,被配置为执行如上述第二方面及其中任一种可能的实现方式中所述的Wi-Fi配置方法。In an eleventh aspect, an embodiment of the present application provides a circuit system, where the circuit system includes a processing circuit, and the processing circuit is configured to execute the Wi-Fi configuration method described in the first aspect and any of the possible implementation manners. or, configured to execute the Wi-Fi configuration method described in the second aspect and any one of possible implementation manners.
第十二方面,本申请实施例提供一种芯片系统,包括至少一个处理器和至少一个接口电路,至少一个接口电路用于执行收发功能,并将指令发送给至少一个处理器,当至少一个处理器执行指令时,至少一个处理器执行如上述第一方面及其中任一种可能的实现方式中所述的Wi-Fi配置方法;或者,至少一个处理器执行如上述第二方面及其中任一种可能的实现方式中所述的Wi-Fi配置方法。In a twelfth aspect, an embodiment of the present application provides a chip system, including at least one processor and at least one interface circuit, where the at least one interface circuit is configured to perform a transceiving function, and send instructions to the at least one processor. When the processor executes the instruction, at least one processor executes the Wi-Fi configuration method described in the first aspect and any one of the possible implementation manners; or, at least one processor executes the second aspect and any one of the foregoing. The Wi-Fi configuration method described in a possible implementation manner.
附图说明Description of drawings
图1为本申请实施例提供的通信系统的示意图;1 is a schematic diagram of a communication system provided by an embodiment of the present application;
图2为本申请实施例提供的通信设备的结构示意图;FIG. 2 is a schematic structural diagram of a communication device provided by an embodiment of the present application;
图3为本申请实施例提供的母子路由器连接方法流程示意图;3 is a schematic flowchart of a method for connecting a parent-child router according to an embodiment of the present application;
图4为本申请实施例提供的界面示意图一;FIG. 4 is a schematic diagram 1 of an interface provided by an embodiment of the present application;
图5为本申请实施例提供的界面示意图二;FIG. 5 is a schematic diagram 2 of an interface provided by an embodiment of the present application;
图6为本申请实施例提供的终端设备漫游场景示意图;6 is a schematic diagram of a roaming scenario of a terminal device provided by an embodiment of the present application;
图7为本申请实施例提供的Wi-Fi配置方法流程图一;FIG. 7 is a flowchart 1 of a Wi-Fi configuration method provided by an embodiment of the present application;
图8为本申请实施例提供的界面示意图三;FIG. 8 is a schematic diagram three of an interface provided by an embodiment of the present application;
图9为本申请实施例提供的一键连信息元素单元的帧结构的示意图一;9 is a schematic diagram 1 of a frame structure of a one-key connection information element unit provided by an embodiment of the present application;
图10为本申请实施例提供的一键连信息元素单元的帧结构的示意图二;10 is a second schematic diagram of a frame structure of a one-key connection information element unit provided by an embodiment of the present application;
图11为本申请实施例提供的界面示意图四;FIG. 11 is a fourth schematic diagram of an interface provided by an embodiment of the present application;
图12为本申请实施例提供的界面示意图五;FIG. 12 is a schematic diagram five of the interface provided by the embodiment of the present application;
图13为本申请实施例提供的Wi-Fi配置方法流程图二;FIG. 13 is a second flowchart of a Wi-Fi configuration method provided by an embodiment of the present application;
图14为本申请实施例提供的Wi-Fi配置方法流程图三;FIG. 14 is a third flowchart of a Wi-Fi configuration method provided by an embodiment of the present application;
图15为本申请实施例提供的Wi-Fi配置方法流程图四;FIG. 15 is a fourth flowchart of a Wi-Fi configuration method provided by an embodiment of the present application;
图16为本申请实施例提供的界面示意图六;FIG. 16 is a sixth schematic diagram of an interface provided by an embodiment of the present application;
图17为本申请实施例提供的Wi-Fi配置装置的结构示意图。FIG. 17 is a schematic structural diagram of a Wi-Fi configuration apparatus provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图对本申请实施例提供的Wi-Fi配置方法及电子设备进行详细地描述。The Wi-Fi configuration method and the electronic device provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
本申请实施例的描述中所提到的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括其他没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "comprising" and "having" and any variations thereof mentioned in the description of the embodiments of the present application are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes other unlisted steps or units, or optionally also Include other steps or units inherent to these processes, methods, products or devices.
需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations, or illustrations. Any embodiments or designs described in the embodiments of the present application as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三 种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。In the description of the embodiments of the present application, unless otherwise specified, the meaning of "plurality" refers to two or more. In this article, "and/or" is only an association relationship to describe the associated objects, which means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone these three situations.
图1为本申请实施例提供的一种Wi-Fi配置方法应用的通信系统的示意图。如图1所示,该通信系统包括无线访问接入点(access point,AP)设备100和第一电子设备200。其中,该通信系统也可以描述为智联网络系统,在智联网络中连接的设备也可以描述为智联设备。例如,AP设备100和第一电子设备200也可以描述为智联设备。FIG. 1 is a schematic diagram of a communication system to which a Wi-Fi configuration method according to an embodiment of the present application is applied. As shown in FIG. 1 , the communication system includes a wireless access point (access point, AP) device 100 and a first electronic device 200 . Wherein, the communication system can also be described as a smart connected network system, and the devices connected in the smart connected network can also be described as a smart connected device. For example, the AP device 100 and the first electronic device 200 may also be described as smart connected devices.
可选的,AP设备100例如可以是无线路由器,用于提供Wi-Fi网络。在一些实施例中,AP设备100为支持智联网络系统配置同步的路由器,例如为
Figure PCTCN2021137923-appb-000001
路由器。其中,Huawei Hilink为一种智能硬件开放生态,电子设备能够通过硬件接入或云接入等方式加入到Huawei Hilink生态中,实现电子设备互联互通。比如,AP设备100处于Huawei Hilink生态顶层位置,电子设备能够基于Hilink生态相关协议接入AP设备100,AP设备100与接入的电子设备共同构成Huawei Hilink生态。其中,Hilink生态相关协议例如包括通用即插即用协议(universal plug and play,UPnP)、受限制的应用协议(constrained application protocol,CoAP)等。示例性的,如图1所示,AP设备100上配置有Hi键11。AP设备100支持利用Hi键11连接电子设备,具体过程见下文描述,在此不再赘述。
Optionally, the AP device 100 may be, for example, a wireless router for providing a Wi-Fi network. In some embodiments, the AP device 100 is a router that supports the synchronization of the configuration of the connected network system, such as
Figure PCTCN2021137923-appb-000001
router. Among them, Huawei Hilink is an open ecosystem of intelligent hardware, and electronic devices can be added to the Huawei Hilink ecosystem through hardware access or cloud access to realize the interconnection of electronic devices. For example, the AP device 100 is at the top of the Huawei Hilink ecosystem, and electronic devices can access the AP device 100 based on Hilink ecosystem-related protocols. The AP device 100 and the connected electronic devices together form the Huawei Hilink ecosystem. Among them, Hilink ecological related protocols include, for example, universal plug and play protocol (universal plug and play, UPnP), constrained application protocol (constrained application protocol, CoAP) and the like. Exemplarily, as shown in FIG. 1 , the AP device 100 is configured with a Hi key 11 . The AP device 100 supports the use of the Hi key 11 to connect electronic devices, and the specific process is described below, which will not be repeated here.
可选的,第一电子设备200例如可以是个人计算机(personal computer,PC)、手机(mobile phone)、平板电脑(Pad)、笔记本电脑、台式电脑、笔记本电脑、带收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程医疗(remote medical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端、可穿戴设备、车载设备等终端设备。第一电子设备200例如还可以是智联无线路由器、智联Wi-Fi中继、可编程逻辑控制器(programmable logic controller,PLC)类无线AP设备等终端设备。本申请实施例对第一电子设备200的具体形态不作特殊限制。Optionally, the first electronic device 200 may be, for example, a personal computer (personal computer, PC), a mobile phone (mobile phone), a tablet computer (Pad), a notebook computer, a desktop computer, a notebook computer, a computer with a transceiver function, a virtual reality (virtual reality, VR) terminal equipment, augmented reality (AR) terminal equipment, wireless terminal in industrial control (industrial control), wireless terminal in unmanned driving (self driving), in remote medical (remote medical) wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, wearable equipment, in-vehicle equipment and other terminal equipment. For example, the first electronic device 200 may also be a terminal device such as a Zhilian wireless router, a Zhilian Wi-Fi relay, and a programmable logic controller (programmable logic controller, PLC) wireless AP device. The specific form of the first electronic device 200 is not particularly limited in this embodiment of the present application.
在一些场景中,如图1所示,AP设备100提供的Wi-Fi网络覆盖范围为区域a的范围。第一电子设备200接入AP设备100提供的Wi-Fi网络。第一电子设备200能够作为AP设备100的中继点设备,扩大Wi-Fi网络覆盖范围。比如,第一电子设备200能够开启热点,其Wi-Fi网络覆盖范围为区域b的范围,从而保证距离主AP设备100距离较远的第二电子设备300也可以接入到Wi-Fi网络中,AP设备100、第一电子设备200和第二电子设备300组成智联网络系统。其中,第二电子设备300也可以描述为STA类智联设备,处于Huawei Hilink生态底层位置。In some scenarios, as shown in FIG. 1 , the Wi-Fi network coverage range provided by the AP device 100 is the range of the area a. The first electronic device 200 accesses the Wi-Fi network provided by the AP device 100 . The first electronic device 200 can serve as a relay point device of the AP device 100 to expand the coverage of the Wi-Fi network. For example, the first electronic device 200 can turn on a hotspot, and its Wi-Fi network coverage is within the range of area b, thereby ensuring that the second electronic device 300 that is far away from the main AP device 100 can also access the Wi-Fi network , the AP device 100 , the first electronic device 200 and the second electronic device 300 form an intelligent network system. The second electronic device 300 can also be described as a STA-type intelligent connected device, which is located at the bottom layer of the Huawei Hilink ecosystem.
可选的,第二电子设备300例如可以是PC、手机、平板电脑、VR终端设备、AR终端设备、工业控制中的无线终端、无人驾驶中的无线终端、远程医疗中的无线终端、智能电网中的无线终端、运输安全中的无线终端、智慧城市中的无线终端、智慧家庭中的无线终端、可穿戴设备、车载设备等终端设备。第二电子设备 300例如还可以是智联Wi-Fi摄像头、智联Wi-Fi音乐盒、智联Wi-Fi机顶盒、智联Wi-Fi插座/开关等终端设备。本申请实施例对第二电子设备300的具体形态不作特殊限制。Optionally, the second electronic device 300 may be, for example, a PC, a mobile phone, a tablet computer, a VR terminal device, an AR terminal device, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in telemedicine, a smart Wireless terminals in the power grid, wireless terminals in transportation security, wireless terminals in smart cities, wireless terminals in smart homes, wearable devices, vehicle-mounted devices and other terminal equipment. For example, the second electronic device 300 may also be a terminal device such as a Zhilian Wi-Fi camera, a Zhilian Wi-Fi music box, a Zhilian Wi-Fi set-top box, and a Zhilian Wi-Fi socket/switch. The specific form of the second electronic device 300 is not particularly limited in this embodiment of the present application.
可选的,本申请实施例中的第一电子设备200和第二电子设备300可以通过不同的设备实现。例如,本申请实施例中的第一电子设备200和第二电子设备300可通过图2中的通信设备来实现。Optionally, the first electronic device 200 and the second electronic device 300 in this embodiment of the present application may be implemented by different devices. For example, the first electronic device 200 and the second electronic device 300 in the embodiment of the present application may be implemented by the communication device in FIG. 2 .
图2所示为本申请实施例提供的通信设备的硬件结构示意图。该通信设备包括至少一个处理器201,通信线路202,存储器203以及至少一个通信接口204。其中,存储器203还可以包括于处理器201中。FIG. 2 is a schematic diagram of a hardware structure of a communication device according to an embodiment of the present application. The communication device includes at least one processor 201 , communication line 202 , memory 203 and at least one communication interface 204 . The memory 203 may also be included in the processor 201 .
可以理解的是,本申请实施例示意的结构并不构成对第一电子设备200和第二电子设备300的具体限定。在本申请另一些实施例中,第一电子设备200和第二电子设备300可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the first electronic device 200 and the second electronic device 300 . In other embodiments of the present application, the first electronic device 200 and the second electronic device 300 may include more or less components than those shown in the figure, or combine some components, or separate some components, or different components layout. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器201可以是中央处理单元(central processing unit,CPU),还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 201 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), ready-made Field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
通信线路202可包括一通路,在上述组件之间传送信息。The communication link 202 may include a path to communicate information between the components described above.
通信接口204,用于与其他设备通信。在本申请实施例中,通信接口可以是模块、电路、总线、接口、收发器或者其它能实现通信功能的装置,用于与其他设备通信。可选的,当通信接口是收发器时,该收发器可以为独立设置的发送器,该发送器可用于向其他设备发送信息,该收发器也可以为独立设置的接收器,用于从其他设备接收信息。该收发器也可以是将发送、接收信息功能集成在一起的部件,本申请实施例对收发器的具体实现不做限制。 Communication interface 204 for communicating with other devices. In this embodiment of the present application, the communication interface may be a module, a circuit, a bus, an interface, a transceiver, or other devices capable of implementing a communication function, and is used to communicate with other devices. Optionally, when the communication interface is a transceiver, the transceiver can be an independently set transmitter, which can be used to send information to other devices, and the transceiver can also be an independently set receiver, used to send information from other devices. The device receives the information. The transceiver may also be a component that integrates the functions of sending and receiving information, and the specific implementation of the transceiver is not limited in this embodiment of the present application.
存储器203可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)或者其他磁存储设备、或者能够用于携带或存储具有指令 或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路202与处理器201相连接。存储器203也可以和处理器201集成在一起。 Memory 203 may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory may be random access memory (RAM), which acts as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM) ) and direct rambus RAM (DR RAM) or other magnetic storage devices, or any other device that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer medium, but not limited to this. The memory may exist independently and be connected to the processor 201 through the communication line 202 . The memory 203 may also be integrated with the processor 201 .
其中,存储器203用于存储用于实现本申请方案的计算机执行指令,并由处理器201来控制执行。处理器201用于执行存储器203中存储的计算机执行指令,从而实现本申请下述实施例提供的载波发送方法。The memory 203 is used for storing computer-executed instructions for implementing the solutions of the present application, and the execution is controlled by the processor 201 . The processor 201 is configured to execute the computer-executed instructions stored in the memory 203, so as to implement the carrier transmission method provided by the following embodiments of the present application.
可选的,本申请实施例中的计算机执行指令也可以称之为应用程序代码、指令、计算机程序或者其它名称,本申请实施例对此不作具体限定。Optionally, the computer-executed instructions in the embodiments of the present application may also be referred to as application code, instructions, computer programs, or other names, which are not specifically limited in the embodiments of the present application.
在具体实现中,作为一种实施例,处理器201可以包括一个或多个CPU,例如图2中的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 201 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 2 .
在具体实现中,作为一种实施例,通信设备可以包括多个处理器,例如图2中的处理器201和处理器205。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the communication device may include multiple processors, such as the processor 201 and the processor 205 in FIG. 2 . Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
上述的通信设备可以是一个通用设备或者是一个专用设备,本申请实施例不限定通信设备的类型。第一电子设备可以为具有图2类似结构的设备。The above-mentioned communication device may be a general-purpose device or a dedicated device, and the embodiment of the present application does not limit the type of the communication device. The first electronic device may be a device having a structure similar to that of FIG. 2 .
以下将以AP设备100为提供Wi-Fi网络且支持Hilink的路由器,以第一电子设备200为具有图2所示结构的PC,第三电子设备300为手机为例,对本申请实施例提供的Wi-Fi配置方法进行阐述。In the following, the AP device 100 is a router that provides a Wi-Fi network and supports Hilink, the first electronic device 200 is a PC with the structure shown in FIG. 2 , and the third electronic device 300 is a mobile phone as an example. Wi-Fi configuration method is explained.
在一些场景中,利用母子路由器,实现扩展路由器的Wi-Fi网络覆盖范围。具体的,母子路由器包括一个母路由器和至少一个子路由器,其中,子路由器通过有线连接或Wi-Fi中继的方式接入母路由器,母路由器和子路由器组成Hilink智联网络。并且,母路由器和子路由器的SSID相同,手机等终端设备在母路由器和子路由器之间切换连接的漫游过程中,能够保证不产生由于漫游造成的信号卡顿问题。其中,母路由器也可以描述为主路由器,子路由器也可以描述为副路由器。In some scenarios, the parent and child routers are used to extend the Wi-Fi network coverage of the routers. Specifically, the parent-child router includes a parent router and at least one child router, wherein the child router is connected to the parent router through a wired connection or Wi-Fi relay, and the parent router and the child router form a Hilink network. In addition, the SSIDs of the parent router and the child router are the same. During the roaming process of switching connections between the parent router and the child router, terminal devices such as mobile phones can ensure that there is no signal jam problem caused by roaming. The parent router can also be described as the main router, and the child router can also be described as the secondary router.
在一些实施例中,子路由器基于软件接入的方式接入母路由器。假设手机中安装有Hilink应用程序(application,APP),且手机与子路由器连接。手机利用Hilink APP能够自动获取母路由器的SSID和密码,从而将SSID和密码发送至子路由器,使得子路由器接入母路由器。当然,手机也可以利用Hilink APP接收用户输入的SSID和密码,从而使得子路由器接入母路由器。In some embodiments, the child router accesses the parent router based on software access. It is assumed that a Hilink application (application, APP) is installed in the mobile phone, and the mobile phone is connected to the sub-router. The mobile phone can use the Hilink APP to automatically obtain the SSID and password of the parent router, so as to send the SSID and password to the child router, so that the child router can access the parent router. Of course, the mobile phone can also use the Hilink APP to receive the SSID and password entered by the user, so that the child router can access the parent router.
或者,子路由器通过一键式硬按键互联的方式接入母路由器。示例性的,如图3所示,母路由器和子路由器均处于上电(power on)(如图3所示的S301和S302)状态。在Hilink发现阶段,母路由器发送探测帧,通过探测帧交互(如图3所示的S303)的方式,探测子路由器。之后,母路由器的指示灯以方式一的方式亮起(如图3所示的S304),以提示用户当前已发现子路由器,可以进行连接。母路由器检测到用户按下hi键的操作(如图3所示的S305),进入Hilink握手阶段,继续与子路由器进行探测帧交互(如图3所示的S306),传输用于连接的信息,如Hilink信息元素。并且,母路由器和子路由器的指示灯以方式二的方式 亮起(如图3所示的S307和S308),以提示用户当前正在接入子路由器。母路由器和子路由器通过WiFi保护设置(Wi-Fi protected setup,WPS)握手(如图3所示的S309和S310),完成SSID和密码的设置,使得子路由器接入母路由器。其中,指示灯的亮起方式可以预配置在母路由器中,如方式一为常亮,方式二为闪烁。Alternatively, the sub-router is connected to the parent router through one-touch hard key interconnection. Exemplarily, as shown in FIG. 3 , both the parent router and the sub-router are in a power-on (power on) state (S301 and S302 shown in FIG. 3 ). In the Hilink discovery phase, the parent router sends a probe frame, and probes the child router by means of probe frame interaction (S303 shown in Figure 3). After that, the indicator light of the parent router lights up in the first way (S304 as shown in FIG. 3 ) to remind the user that the child router has been discovered and can be connected. The parent router detects that the user presses the hi key (S305 as shown in Figure 3), enters the Hilink handshake stage, continues to interact with the sub-router for probe frames (S306 as shown in Figure 3), and transmits information for connection , such as the Hilink information element. And, the indicator lights of the parent router and the sub-router light up in the second way (S307 and S308 shown in Fig. 3 ) to remind the user that the sub-router is currently being accessed. The parent router and the child router shake hands through the Wi-Fi protected setup (WPS) (S309 and S310 shown in Figure 3) to complete the setting of the SSID and password, so that the child router can access the parent router. Among them, the lighting mode of the indicator light can be pre-configured in the parent router, for example, the first mode is always on, and the second mode is flashing.
在当前场景中,由于单一路由器Wi-Fi覆盖面积有限,在要求较大Wi-Fi覆盖面积的情况下,需要配置多台母子路由器,成本较高。并且,若不是配套的母子路由器,则需要单独配置各个子路由器的SSID,导致维护过程较为复杂。In the current scenario, due to the limited Wi-Fi coverage area of a single router, if a larger Wi-Fi coverage area is required, multiple parent and child routers need to be configured, which is costly. In addition, if the parent and child routers are not matched, the SSID of each child router needs to be configured separately, which makes the maintenance process more complicated.
在另一些场景中,利用PC作为中继点设备,实现扩展路由器的Wi-Fi网络覆盖范围。具体的,PC连接至路由器提供的Wi-Fi网络后,开启个人热点功能或无线局域网(Wireless Local Area Network,WLAN)信号桥功能,作为Wi-Fi网络的中继点,为边缘终端设备提供Wi-Fi网络。In other scenarios, a PC is used as a relay point device to extend the Wi-Fi network coverage of the router. Specifically, after the PC is connected to the Wi-Fi network provided by the router, the personal hotspot function or the Wireless Local Area Network (WLAN) signal bridge function is enabled to act as a relay point of the Wi-Fi network to provide Wi-Fi for edge terminal devices. -Fi network.
示例性的,如图4所示界面401,PC在界面401上检测到用户对控件41的操作后,开启个人热点功能。并在检测到对控件42的操作后,接收用户对当前热点对应的设备名称的编辑。在检测到对控件43的操作后,接收用户对当前热点对应的密码的编辑。如此,PC完成对个人热点功能的设置,提供Wi-Fi网络。其中,PC开启个人热点时,上行接入的网络为蜂窝移动网络或WLAN网络(即路由器提供的Wi-Fi网络)。Exemplarily, as shown in the interface 401 in FIG. 4 , after the PC detects the user's operation on the control 41 on the interface 401 , the PC enables the personal hotspot function. And after detecting the operation on the control 42, the editing of the device name corresponding to the current hot spot by the user is received. After detecting the operation on the control 43, the user's edit of the password corresponding to the current hotspot is received. In this way, the PC completes the setting of the personal hotspot function and provides a Wi-Fi network. Wherein, when the PC turns on the personal hotspot, the network connected to the uplink is the cellular mobile network or the WLAN network (ie, the Wi-Fi network provided by the router).
又示例性的,如图5所示界面501,PC在界面501上检测到用户对控件51的操作后,开启WLAN信号桥功能。并在检测到对控件52的操作后,接收用户对当前WLAN信号桥对应的WLAN名称和密码的编辑。如此,PC完成对WLAN信号桥的设置,提供Wi-Fi网络。其中,PC开启信号桥时,上行接入的网络为WLAN网络。In another example, as shown in the interface 501 in FIG. 5 , after the PC detects the user's operation on the control 51 on the interface 501 , the PC enables the WLAN signal bridge function. And after detecting the operation on the control 52, the editing of the WLAN name and password corresponding to the current WLAN signal bridge by the user is received. In this way, the PC completes the setting of the WLAN signal bridge and provides a Wi-Fi network. Wherein, when the PC starts the signal bridge, the network connected to the uplink is the WLAN network.
如图6所示,通过上述方式,PC 200作为个人热点或WLAN信号桥,扩大了路由器100的Wi-Fi网络覆盖范围。比如,手机300沿箭头61的方向移动,由位置62移动至位置63,位置63已超出路由器100提供的Wi-Fi网络覆盖范围,则手机300断开与路由器100之间的连接,接入PC 200提供的中继网络中。但是,由于PC 200作为个人热点或WLAN信号桥时,设备名称和密码为单独配置,与路由器100的SSID不同,在切换过程中,会出现Wi-Fi网络卡顿等异常,影响用户使用体验。As shown in FIG. 6 , in the above manner, the PC 200 acts as a personal hotspot or a WLAN signal bridge to expand the Wi-Fi network coverage of the router 100 . For example, if the mobile phone 300 moves in the direction of arrow 61 from position 62 to position 63, and the position 63 has exceeded the Wi-Fi network coverage provided by the router 100, the mobile phone 300 disconnects the connection with the router 100 and accesses the PC 200 in the relay network provided. However, when the PC 200 is used as a personal hotspot or a WLAN signal bridge, the device name and password are configured separately, which is different from the SSID of the router 100. During the switching process, abnormalities such as Wi-Fi network freezes may occur, affecting the user experience.
基于此,本申请实施例提供一种Wi-Fi配置方法,将PC作为中继点设备,并且,统一PC和路由器的SSID,使得PC成为免配置的Wi-Fi热点。在提高Wi-Fi覆盖范围的同时,节约成本,并保证连接至Wi-Fi网络中的设备能够为用户提供无感知的漫游服务。Based on this, an embodiment of the present application provides a Wi-Fi configuration method, using a PC as a relay point device, and unifying the SSIDs of the PC and the router, so that the PC becomes a configuration-free Wi-Fi hotspot. While improving Wi-Fi coverage, it saves costs and ensures that devices connected to Wi-Fi networks can provide users with non-aware roaming services.
首先,PC需要接入路由器提供的Wi-Fi网络中,与路由器建立连接。之后,才可以配置PC的网络,实现扩展路由器Wi-Fi覆盖范围。First, the PC needs to connect to the Wi-Fi network provided by the router to establish a connection with the router. After that, you can configure the network of the PC to expand the Wi-Fi coverage of the router.
示例性的,图7为本申请实施例提供的Wi-Fi配置方法流程示意图。PC利用图7所示方法接入路由器,参见图7,该方法包括S701-S705。Exemplarily, FIG. 7 is a schematic flowchart of a Wi-Fi configuration method according to an embodiment of the present application. The PC uses the method shown in FIG. 7 to access the router. Referring to FIG. 7 , the method includes S701-S705.
S701、PC与路由器之间建立会话通道。S701, a session channel is established between the PC and the router.
在一些实施例中,PC和路由器基于电气和电子工程师协会(institute of  electrical and electronics engineers,IEEE)802.11标准建立802.11会话,PC接入路由器提供的Wi-Fi网络,实现上网功能,便于后续PC基于上行的Wi-Fi网络开启热点功能。并且基于会话通道与路由器进行配对,允许对PC网络进行配置。其中,802.11会话连接的过程包括扫描(scanning)过程、认证(authentication)过程和关联(association)过程。In some embodiments, the PC and the router establish an 802.11 session based on the Institute of Electrical and Electronics Engineers (IEEE) 802.11 standard. The hotspot function is enabled on the upstream Wi-Fi network. And pairing with the router based on the session channel allows the configuration of the PC network. The process of 802.11 session connection includes a scanning process, an authentication process and an association process.
示例性的,首先PC需要确定待接入的Wi-Fi网络的服务集标识(service set identifier,SSID)以及认证方式。其中,认证方式已被预配置于路由器中,在认证过程中PC通过与路由器交互身份认证帧即可完成认证过程。PC可以在扫描过程中获得SSID,扫描过程分为被动扫描过程和主动扫描过程。例如,在被动扫描过程中,PC监听在PC附近的路由器按照预设周期发送的信标(Beacon)帧,获得Beacon帧中携带的SSID。又例如,PC向路由器发送探测请求(probe request)管理帧,之后,接收到路由器发送的探测响应(probe response)管理帧后,获得SSID。后续,基于SSID完成认证过程和关联过程。Exemplarily, first, the PC needs to determine the service set identifier (service set identifier, SSID) and authentication method of the Wi-Fi network to be accessed. The authentication method has been pre-configured in the router. During the authentication process, the PC can complete the authentication process by exchanging identity authentication frames with the router. The PC can obtain the SSID during the scanning process, and the scanning process is divided into passive scanning process and active scanning process. For example, in the passive scanning process, the PC monitors the beacon (Beacon) frames sent by the routers near the PC according to the preset period, and obtains the SSID carried in the Beacon frame. For another example, the PC sends a probe request (probe request) management frame to the router, and then obtains the SSID after receiving the probe response (probe response) management frame sent by the router. Subsequently, the authentication process and the association process are completed based on the SSID.
其中,SSID是路由器唯一的身份标识号(identity document,ID),用来区分不同的网络。路由器提供设置不同的SSID,用于区分其提供的不同网络(如2.4GHz网络,5GHz网络,员工接入网络,访客接入网络等),PC获得SSID即可接入相应的网络。进一步的,一个接入有线网络的路由器(也可以描述为AP设备)和至少一个通过无线网络接入该路由器的设备组成一个组(group),该group称之为基本服务集(basic service set,BSS)。同一BSS中的设备设置相同的身份标识号,该身份标识号为BSSID。一个或多个BSS组成一个扩展服务集(extended service set,ESS),进而实现扩展Wi-Fi网络的覆盖范围。一般的,ESS中接入点设备提供的Wi-Fi网络的覆盖范围之间部分重叠,以实现客户端设备的无缝漫游。Among them, the SSID is the unique identity document (ID) of the router, which is used to distinguish different networks. The router provides different SSIDs to distinguish different networks (such as 2.4GHz network, 5GHz network, employee access network, guest access network, etc.), and the PC can access the corresponding network after obtaining the SSID. Further, a router connected to a wired network (which can also be described as an AP device) and at least one device connected to the router through a wireless network form a group, which is called a basic service set. BSS). Devices in the same BSS are set with the same identification number, and the identification number is BSSID. One or more BSSs form an extended service set (ESS), thereby extending the coverage of the Wi-Fi network. Generally, the coverage areas of the Wi-Fi networks provided by the access point devices in the ESS partially overlap to realize seamless roaming of the client devices.
示例性的,PC和路由器可以通过如下步骤建立802.11会话通道。Exemplarily, the PC and the router can establish an 802.11 session channel through the following steps.
步骤一、PC向路由器发送探测请求帧。相应的,路由器接收PC发送的探测请求帧,并向PC发送探测响应帧。Step 1: The PC sends a probe request frame to the router. Correspondingly, the router receives the probe request frame sent by the PC, and sends the probe response frame to the PC.
在一些实施例中,802.11会话连接过程中的扫描过程包主动扫描方式和被动扫描方式。其中,主动扫描方式为PC在每个信道上主动发送探测请求报文,从而探测到路由器的信息。被动扫描模式为PC监听路由器定时发送的Beacon帧,从而获得路由器的信息。在当前步骤中,以主动扫描模式为例进行说明。PC和路由器之间通过探测请求(probe request)帧和探测响应(probe response)帧的交互,PC确定要接入的SSID。In some embodiments, the scanning process in the 802.11 session connection process includes active scanning mode and passive scanning mode. Among them, the active scanning mode is that the PC actively sends a detection request message on each channel, so as to detect the information of the router. In passive scanning mode, the PC monitors the Beacon frames periodically sent by the router to obtain information about the router. In the current step, the active scanning mode is taken as an example for description. Through the interaction between the PC and the router through the probe request (probe request) frame and the probe response (probe response) frame, the PC determines the SSID to be accessed.
需要说明的是,在当前探测帧的交互过程中,确定用于建立802.11会话的SSID,能够接入Wi-Fi网络即可。相对于图3所示的母子路由器连接过程,子路由器开机即向母路由器发送携带连接信息的探测帧,用于与母路由器进行配网。当前发送的探测帧不必携带连接请求的参数,即不必开机即进行配网。PC能够按照用户需求,需要进行配置个人热点网络时,再请求配网,实现按需配置网络,提高用户使用体验。It should be noted that, in the interaction process of the current probe frame, the SSID used for establishing the 802.11 session is determined, and it only needs to be able to access the Wi-Fi network. Compared with the connection process of the parent and child routers shown in FIG. 3 , when the child router is powered on, it sends a probe frame carrying connection information to the parent router for network configuration with the parent router. The currently sent probe frame does not need to carry the parameters of the connection request, that is, the network can be configured without powering on. When the PC needs to configure the personal hotspot network according to the user's needs, it can request the network configuration to realize the network configuration on demand and improve the user experience.
步骤二、PC向路由器发送身份认证请求帧。相应的,路由器接收PC发送的身 份认证请求帧,并向PC发送身份认证响应帧。Step 2: The PC sends an identity authentication request frame to the router. Correspondingly, the router receives the identity authentication request frame sent by the PC, and sends the identity authentication response frame to the PC.
在一些实施例中,认证过程若需要密码,则PC接收用户输入的鉴权密码,以完成认证过程。例如PC弹窗显示密码输入界面,接收用户输入的鉴权密码。若PC中已预置了认证证书,则认证过程不需要密码,直接通过身份认证管理帧的交互,确认认证证书,完成认证。例如利用可扩展身份验证协议(extensible authentication protocol,EAP)中的安全传输协议(transport layer security,TLS)等认证方式进行认证,保证网络安全。In some embodiments, if the authentication process requires a password, the PC receives the authentication password input by the user to complete the authentication process. For example, the PC pop-up window displays a password input interface, and receives the authentication password input by the user. If the authentication certificate has been preset in the PC, the authentication process does not require a password, and the authentication certificate is confirmed directly through the interaction of the identity authentication management frame to complete the authentication. For example, authentication methods such as transport layer security (TLS) in the extensible authentication protocol (EAP) are used for authentication to ensure network security.
步骤三、PC向路由器发送关联请求帧。相应的,路由器接收PC发送的关联请求帧,并向PC发送关联响应帧。Step 3: The PC sends an association request frame to the router. Correspondingly, the router receives the association request frame sent by the PC, and sends the association response frame to the PC.
在一些实施例中,通过关联过程,将PC的媒体存取控制(media access control,MAC)地址与路由器端口建立关联关系,以便路由器与PC之间能够正确的进行信号传输。In some embodiments, through the association process, an association relationship is established between the media access control (media access control, MAC) address of the PC and the router port, so that the router and the PC can correctly perform signal transmission.
如此,通过上述步骤一至步骤三,PC和路由器完成802.11会话通道的建立,该802.11会话通道为业务通道,允许PC访问路由器网络。后续,PC和路由器基于已建立的802.11会话通道,按照用户需求,请求建立管理通道连接,进行网络配置,简化配网流程。In this way, through the above steps 1 to 3, the PC and the router complete the establishment of the 802.11 session channel, and the 802.11 session channel is a service channel, allowing the PC to access the router network. Subsequently, based on the established 802.11 session channel, the PC and the router request to establish a management channel connection according to user requirements, perform network configuration, and simplify the network configuration process.
S702、PC检测到开启热点的操作。S702, the PC detects the operation of turning on the hotspot.
示例性的,如图8所示,PC显示个人热点设置界面801,在个人热点设置界面801上提示用户开启个人热点功能。检测到用户点击控件81的操作后,开启热点,并开始与路由器之间进行配对,确定PC为安全设备,允许建立Hilink连接,即建立管理通道连接,后续能够实现自动进行网络配置。Exemplarily, as shown in FIG. 8 , the PC displays a personal hotspot setting interface 801 , and prompts the user to enable the personal hotspot function on the personal hotspot setting interface 801 . After detecting the user's operation of clicking on the control 81, the hotspot is turned on, and pairing with the router is started, and the PC is determined as a security device, and the Hilink connection is allowed to be established, that is, the management channel connection is established, and the subsequent network configuration can be automatically performed.
在一些实施例中,在PC中预置两种个人热点的功能入口,一种为图4或图5所示的需要单独创建SSID进行单独配置的个人热点的功能入口;另一种为图8所示的本申请实施例提供的免配置个人热点的功能入口。在步骤S702中,PC开启免配置个人热点与路由器进行配对,以便后续PC通过下述步骤自动与路由器进行网络配置同步,无需用户再单独配置PC的SSID。In some embodiments, two functional portals of the personal hotspot are preset in the PC, one is the functional portal of the personal hotspot shown in FIG. 4 or FIG. 5 that needs to create an SSID for separate configuration; the other is the functional portal of the personal hotspot shown in FIG. 8 . The shown embodiment of the present application provides the function entry of the configuration-free personal hotspot. In step S702, the PC enables the configuration-free personal hotspot to pair with the router, so that the subsequent PC automatically synchronizes the network configuration with the router through the following steps, and the user does not need to configure the SSID of the PC separately.
在另一些实施例中,在PC中预置一种复用的个人热点的功能入口。在步骤S702中,PC首先会执行与路由器的网络配置同步的流程,若网络配置同步成功,则开启免配置个人热点功能。若网络配置同步失败,则创建单独的SSID,接收用户输入的用户名和密码等个人热点配置参数。In other embodiments, a function entry of a multiplexed personal hotspot is preset in the PC. In step S702, the PC first performs a process of synchronizing the network configuration with the router, and if the network configuration is successfully synchronized, the configuration-free personal hotspot function is enabled. If the network configuration synchronization fails, a separate SSID is created to receive personal hotspot configuration parameters such as the user name and password entered by the user.
S703、PC向路由器发送行动请求帧,该行动请求帧中携带连接信息。S703, the PC sends an action request frame to the router, where the action request frame carries connection information.
其中,连接信息包含连接请求参数,用于请求路由器对其安全性进行确认,允许后续PC进行网络配置,将其SSID与路由器SSID进行同步。其中,连接信息可以包含PC的MAC地址,路由器接收到连接信息后,确认MAC地址为预置白名单中的MAC地址,则确认安全,允许PC与路由器建立Hilink连接。或者,接收用户确认,是否允许建立Hilink连接。此外,在本申请实施例中,行动请求帧中携带的连接信息描述为一键连(one key connection,OKC)元素,后文对此不在赘述。The connection information includes connection request parameters, which are used to request the router to confirm its security, allow the subsequent PC to perform network configuration, and synchronize its SSID with the router SSID. The connection information may include the MAC address of the PC. After the router receives the connection information, it confirms that the MAC address is the MAC address in the preset whitelist, and then confirms the security and allows the PC to establish a Hilink connection with the router. Or, receive user confirmation, whether to allow Hilink connection to be established. In addition, in the embodiment of the present application, the connection information carried in the action request frame is described as a one key connection (one key connection, OKC) element, which will not be described in detail later.
示例性的,路由器在获得PC的OKC元素后,确定PC请求与路由器建立Hilink 连接,需要进行配对。可选的,OKC元素为PC与路由器均可识别处理的元素。比如,OKC元素为厂商自定义元素。又比如,OKC元素为标准定义中的特定元素。Exemplarily, after obtaining the OKC element of the PC, the router determines that the PC requests to establish a Hilink connection with the router, which needs to be paired. Optionally, the OKC element is an element that can be recognized and processed by both the PC and the router. For example, the OKC element is a manufacturer-defined element. For another example, the OKC element is a specific element in the standard definition.
在一些实施例中,PC向路由器发送行动请求(action request)帧,在action request帧中携带OKC元素,定义分类码(category code)和操作码(action code)的值。其中,分类码和操作码的值用于说明该action request帧可以用于请求一键连配对。In some embodiments, the PC sends an action request frame to the router, and the OKC element is carried in the action request frame, which defines the value of the category code and the action code. The values of the classification code and opcode are used to indicate that the action request frame can be used to request a one-key connection pair.
在一些实施例中,IEEE 802.11 action request帧中携带的Hilink OKC信息元素(information element,IE)。其中,IE可以是一个独立的IE,携带IEEE分配的元素标识(element ID)。IE也可以是厂商私有元素的扩展定义。此时,定义Element ID为221,用于指示该IE为厂商私有元素。In some embodiments, the Hilink OKC information element (information element, IE) carried in the IEEE 802.11 action request frame. The IE may be an independent IE that carries an element ID (element ID) allocated by the IEEE. IE can also be an extended definition of a vendor-private element. At this time, the Element ID is defined as 221, which is used to indicate that the IE is a vendor-private element.
示例性的,图9示出一种OKC信息元素单元的帧结构的示意图。如图9所示,OKC信息元素单元包括:元素标识(element ID)字段、长度(length)字段、组织标识符(organization identifier)字段、以及供应商特定内容(vendor-specific content)字段。Exemplarily, FIG. 9 shows a schematic diagram of a frame structure of an OKC information element unit. As shown in FIG. 9, the OKC information element unit includes: an element ID (element ID) field, a length (length) field, an organization identifier (organization identifier) field, and a vendor-specific content (vendor-specific content) field.
其中,组织标识符字段中包括组织唯一标识符(organizationally unique identifier,OUI)子字段,占用3个字节(bytes),用于指示厂商标识。例如,如图9所示,OUI子字段取值为00:E0:FC,用于指示厂商为华为技术有限公司。Among them, the organization identifier field includes an organizationally unique identifier (organizationally unique identifier, OUI) subfield, which occupies 3 bytes (bytes) and is used to indicate the manufacturer's identity. For example, as shown in FIG. 9 , the value of the OUI subfield is 00:E0:FC, which is used to indicate that the manufacturer is Huawei Technologies Co., Ltd.
供应商特定内容字段包括Hilink OKC子字段、版本(version)子字段、以及值(value)子字段。其中,Hilink OKC子字段,占用4bytes,用于指示Hilink OKC元素。version子字段,占用2bytes,用于指示IE的版本号。value子字段由至少一组TLV编码结构的参数组成。其中,TLV编码结构包括类型(type),长度(length)和值(value)。具体的,TLV编码结构的参数至少用于指示目标MAC(target MAC)和/或标识(logo)。The vendor specific content fields include a Hilink OKC subfield, a version subfield, and a value subfield. Among them, the Hilink OKC subfield occupies 4 bytes and is used to indicate the Hilink OKC element. The version subfield, occupying 2 bytes, is used to indicate the version number of IE. The value subfield consists of at least one set of parameters of the TLV encoded structure. Among them, the TLV coding structure includes a type (type), a length (length) and a value (value). Specifically, the parameters of the TLV coding structure are at least used to indicate a target MAC (target MAC) and/or a logo (logo).
示例性的,如图10所示,示例性的给出一种指示target MAC的TLV编码结构的参数,包括目标MAC(target MAC)子字段、长度(length)子字段、以及目标MAC地址(target MAC address)子字段。其中,target MAC address子字段,占用1bytes,value为251,用于指示MAC地址。length子字段,占用1bytes,value为6。Exemplarily, as shown in FIG. 10 , a parameter indicating the TLV coding structure of the target MAC is exemplarily given, including the target MAC (target MAC) subfield, the length (length) subfield, and the target MAC address (target MAC address). MAC address) subfield. Among them, the target MAC address subfield occupies 1 bytes, and the value is 251, which is used to indicate the MAC address. The length subfield occupies 1bytes and the value is 6.
其中,可以在probe request管理帧或action request管理帧中携带target MAC address的值,该值为BSSID。在PC确定路由器之后,可以在probe request帧或action request帧中携带路由器的BSSID。或者,路由器在接收到action request管理帧后,会向PC发送行动响应(action response)管理帧。相应的,路由器在probe request管理帧或action request管理帧中携带选定的PC的BSSID。需要说明的是,在路由器未选定PC之前,target MAC address对应的值为路由器自身的BSSID。Among them, the value of the target MAC address can be carried in the probe request management frame or the action request management frame, and the value is the BSSID. After the PC determines the router, it can carry the router's BSSID in the probe request frame or the action request frame. Alternatively, after receiving the action request management frame, the router sends an action response management frame to the PC. Correspondingly, the router carries the BSSID of the selected PC in the probe request management frame or the action request management frame. It should be noted that before the router does not select the PC, the value corresponding to the target MAC address is the BSSID of the router itself.
进一步的,target MAC address的值可以为BSSID。若PC在probe request管理帧或action request管理帧中携带BSSID,则表示PC确定与该BSSID对应的路由器进行连接。若路由器在probe response管理帧或action response管理帧中携带BSSID,则表示该路由器为Hilink路由器。target MAC address的值还可 以为站点(station,STA)设备的MAC地址。若路由器在probe response管理帧或action response管理帧中携带STA MAC地址,则表示路由器已经选择了STA MAC地址对应的PC作为连接的目标PC。Further, the value of target MAC address can be BSSID. If the PC carries the BSSID in the probe request management frame or the action request management frame, it means that the PC determines that the router corresponding to the BSSID is connected. If the router carries the BSSID in the probe response management frame or the action response management frame, it means that the router is a Hilink router. The value of target MAC address can also be the MAC address of the station (station, STA) device. If the router carries the STA MAC address in the probe response management frame or action response management frame, it means that the router has selected the PC corresponding to the STA MAC address as the target PC for the connection.
示例性的,如下示出一种action request管理帧报文示例。Exemplarily, an example of an action request management frame message is shown as follows.
Figure PCTCN2021137923-appb-000002
Figure PCTCN2021137923-appb-000002
上述action request管理帧报文中,分类码(Category code)和操作码(Action code)用于指示当前报文用于请求的操作,如请求进行配对连接。In the above action request management frame message, the category code (Category code) and the operation code (Action code) are used to indicate that the current message is used for the requested operation, such as requesting a pairing connection.
需要说明的是,分类码(Category code)和操作码(Action code)的值需要IEEE和互联网数字分配机构(the internet assigned numbers authority,IANA)共同分配,因此上述报文示例中分类码和操作码为待确认(to be determind,TBD)状态。同样的,下文中对于TBD状态的分类码和操作码不再进行说明。It should be noted that the values of Category code and Action code need to be jointly allocated by IEEE and the Internet Assigned Numbers Authority (IANA). Therefore, in the above message example, Category Code and Action Code To be determind (TBD) state. Likewise, the classification code and operation code of the TBD state will not be described below.
S704、路由器确定与PC建立连接。S704, the router determines to establish a connection with the PC.
在一些实施例中,路由器在接收到PC发送的携带一键连信息元素的行动请求帧后,按照预设方式与PC进行配对,建立Hilink连接。即路由器根据OKC元素,确定允许与PC建立管理连接通道,允许进行网络配置In some embodiments, after receiving the action request frame carrying the one-key connection information element sent by the PC, the router pairs with the PC in a preset manner to establish a Hilink connection. That is, according to the OKC element, the router determines that it is allowed to establish a management connection channel with the PC and allows network configuration.
其中,预设方式例如包括在路由器中预置可配对MAC地址的白名单,在确认PC的MAC地址为白名单上的MAC地址后,则可以自动配对。或者,预设方式例如包括提示用户确认是否进行配对。比如,路由器的指示灯以方式1的方式闪烁,以提示用户进行配对确认。之后,如路由器检测到用户点击hi键的操作,则确认用户已经确认配对,可以建立连接。又比如,路由器向管理该路由器的Hilink APP所在终端设备(例如路由器管理员的智能手机)发送请求确认的通知,由用户进行确认。示例性的,如图11所示界面1101,管理该路由器的Hilink APP所在终端设备接收到路由器发送的请求确认的通知后,显示提示框提示用户进行配对确认。管理该路由器的Hilink APP所在终端设备检测到用户点击控件111的操作后,向路由器发送确认通知。路由器在接收到确认通知后,确定与PC进行配对连接。The preset method includes, for example, presetting a whitelist of pairable MAC addresses in the router. After confirming that the MAC address of the PC is the MAC address on the whitelist, the pairing can be performed automatically. Alternatively, the preset manner includes, for example, prompting the user to confirm whether to perform pairing. For example, the indicator light of the router flashes in mode 1 to prompt the user to confirm pairing. After that, if the router detects that the user clicks the hi button, it confirms that the user has confirmed the pairing and the connection can be established. For another example, the router sends a notification requesting confirmation to the terminal device where the Hilink APP that manages the router is located (for example, the smart phone of the router administrator), and the user confirms it. Exemplarily, as shown in the interface 1101 in FIG. 11 , after the terminal device where the Hilink APP that manages the router is located receives the notification sent by the router for requesting confirmation, a prompt box is displayed to prompt the user to confirm the pairing. After the terminal device where the Hilink APP that manages the router is located detects that the user clicks on the control 111, it sends a confirmation notification to the router. After receiving the confirmation notification, the router determines to pair with the PC.
进一步的,上述预设方式中,若路由器中预置白名单,则可以实现自动配对。若未配置白名单,则需要预设老化时间。路由器在接收到行动请求帧后,启动计 时器,若在预设老化时间以内,未接收到用户的确认操作,则配对失败。若在预设老化时间以内,接收到用户的确认操作,则配对成功。Further, in the above preset manner, if a whitelist is preset in the router, automatic pairing can be realized. If the whitelist is not configured, the aging time needs to be preset. After receiving the action request frame, the router starts the timer. If the user's confirmation operation is not received within the preset aging time, the pairing fails. If the user's confirmation operation is received within the preset aging time, the pairing is successful.
S705、路由器向PC发送行动响应帧。S705, the router sends an action response frame to the PC.
在一些实施例中,路由器确定允许与PC配对并建立连接后,向PC发送行动响应(action response)管理帧,在action response管理帧中携带OKC信息元素。其中,OKC信息元素的结构可以参数上述步骤S704中OKC信息元素的相关描述,在此不再赘述。In some embodiments, after the router determines that it is allowed to pair with the PC and establish a connection, it sends an action response (action response) management frame to the PC, and the OKC information element is carried in the action response management frame. The structure of the OKC information element can be parameterized with the relevant description of the OKC information element in the foregoing step S704, which will not be repeated here.
在一些实施例中,路由器的指示灯以方式2的方式亮起,以提示用户当前一键连连接配对成功。和/或,路由器向管理该路由器的Hilink APP所在终端设备发送配对成功的通知,以提示用户一键连连接配对成功。示例性的,如图12所示界面1201,显示提示框121,提示用户一键连连接配对成功,PC已与路由器建立连接。相应的,PC在接收到action response管理帧后,在本地日志中记录一键连接配对成功和/或界面呈现配对成功的通知信息。In some embodiments, the indicator light of the router lights up in the manner of Mode 2 to prompt the user that the current one-key connection is successfully paired. And/or, the router sends a notification of successful pairing to the terminal device where the Hilink APP that manages the router is located, to prompt the user that the pairing is successful with one-click connection. Exemplarily, as shown in the interface 1201 in FIG. 12 , a prompt box 121 is displayed, prompting the user that the one-key connection is successfully paired, and the PC has established a connection with the router. Correspondingly, after receiving the action response management frame, the PC records in the local log the notification information of the successful pairing of the one-key connection and/or the interface presents the successful pairing.
示例性的,如下示出一种action response管理帧报文示例。Exemplarily, an example of an action response management frame message is shown below.
Figure PCTCN2021137923-appb-000003
Figure PCTCN2021137923-appb-000003
上述action response管理帧报文中,分类码(Category code)和操作码(Action code)用于指示当前报文用于执行的操作,如执行配对连接。此外,分类码(Category code)和操作码(Action code)的值可以根据实际需求确认,即为TBD状态。In the above action response management frame message, the category code (Category code) and the operation code (Action code) are used to indicate the operation that the current message is used to perform, such as performing a pairing connection. In addition, the values of Category code and Action code can be confirmed according to actual needs, that is, TBD status.
如此,PC基于步骤S701中建立的802.11会话通道,扩展802.11协议的action request管理帧以及action response管理帧传递的Hilink配对信息和确认信息,执行与路由器之间的配对流程,实现快速配对。在保证安全连接的同时,简化配对流程。In this way, based on the 802.11 session channel established in step S701, the PC extends the action request management frame of the 802.11 protocol and the Hilink pairing information and confirmation information transmitted by the action response management frame, and executes the pairing process with the router to achieve fast pairing. Simplify the pairing process while maintaining a secure connection.
进一步的,PC通过上述图7所示的步骤能够实现按需配对,在需要扩大Wi-Fi覆盖范围时,快速开启PC热点,进行配对。具体的,PC开启热点后,基于802.11会话通道,路由器通过白名单或者通过用户确认,确定PC为安全设备,完成PC的安全准入流程即配对流程。之后,PC能够基于Hilink连接,进行网络同步配置。Further, the PC can realize on-demand pairing through the steps shown in FIG. 7, and when the Wi-Fi coverage needs to be expanded, the PC hotspot can be quickly turned on to perform pairing. Specifically, after the PC enables the hotspot, based on the 802.11 session channel, the router determines the PC as a security device through a whitelist or through user confirmation, and completes the PC security access process, that is, the pairing process. After that, the PC can perform network synchronization configuration based on Hilink connection.
在一些实施例中,PC接入路由器,并开启热点后,采用本申请实施例提供的Wi-Fi配置方法能够实现自动配网。PC将提供的热点网络与路由器提供的网络进行同步配置,进而实现为用户提供无感知的漫游服务。In some embodiments, after the PC is connected to the router and the hotspot is turned on, the Wi-Fi configuration method provided by the embodiments of the present application can be used to realize automatic network configuration. The PC configures the hotspot network provided by the router synchronously with the network provided by the router, so as to provide users with a non-perceptual roaming service.
具体的,将PC提供的Wi-Fi网络配置与路由器提供的Wi-Fi网络进行网络配置同步,创建与路由器的SSID相同的Wi-Fi网络,从而保证手机等终端设备可以实现无感知漫游。进一步的,配置同步的内容例如包括SSID和密码信息。Specifically, synchronize the network configuration of the Wi-Fi network provided by the PC with the Wi-Fi network provided by the router, and create a Wi-Fi network with the same SSID as the router, thereby ensuring that terminal devices such as mobile phones can achieve non-aware roaming. Further, the content of the configuration synchronization includes, for example, SSID and password information.
其中,同步协议例如包括通用即插即用协议(universal plug and play,UPnP)、受限制的应用协议(constrained application protocol,CoAP)、无线接入点的控制和配置协议(control and provisioning of wireless access points protocol,CAPWAP)等。Wherein, the synchronization protocols include, for example, Universal Plug and Play (UPnP), Constrained Application Protocol (CoAP), Control and Provisioning of Wireless Access Points (control and provisioning of wireless access) points protocol, CAPWAP), etc.
示例性的,本申请实施例以基于UPnP协议进行网络同步配置为例进行说明。其中,UPnP协议规定的网络配置流程包括设备寻址、设备发现、设备描述、设备控制、事件通知和基于超文本标记语言(hyper text markup language,html)的描述界面几部分。其中,设备例如包括PC。Exemplarily, the embodiments of the present application take the network synchronization configuration based on the UPnP protocol as an example for description. Among them, the network configuration process specified by the UPnP protocol includes device addressing, device discovery, device description, device control, event notification, and a description interface based on hypertext markup language (html). Among them, the device includes, for example, a PC.
进一步的,如图13所示,PC对个人热点的网络配置过程,具体可以实现为下述步骤S1301-步骤S1304。Further, as shown in FIG. 13 , the network configuration process of the PC to the personal hotspot can be specifically implemented as the following steps S1301 to S1304 .
S1301、PC探测支持网络配置的网关。S1301, the PC detects a gateway that supports network configuration.
在一些实施例中,PC广播报文用于探测当前接入的智联网络中支持配网功能的网关设备,例如Hilink gateway,进而利用该网关设备配置PC的网络。比如,当前PC接入的路由器支持配网功能,则PC探测到该路由器后,启动网络配置流程。又比如,当前PC接入的路由器不支持配网功能,则PC通过广播报文,确定智联网络中其他具有配网功能的设备,PC利用该设备实现与路由器的网络配置同步。下文以PC接入的路由器为支持配网功能的网关设备为例进行说明。In some embodiments, the PC broadcast message is used to detect a gateway device, such as a Hilink gateway, that supports the network configuration function in the currently connected Zhilian network, and then use the gateway device to configure the network of the PC. For example, if the router currently connected to the PC supports the network configuration function, the PC starts the network configuration process after detecting the router. For another example, if the router currently connected to the PC does not support the network configuration function, the PC determines other devices with the network configuration function in the Zhilian network through broadcast messages, and the PC uses this device to synchronize the network configuration with the router. The following description takes the router connected to the PC as an example of a gateway device that supports the network distribution function.
在一些实施例中,若PC首次与路由器提供的网络建立连接,则需要利用动态主机配置协议(dynamic host configuration protocol,DHCP),获得路由器的互联网协议(IP)地址。比如,PC发送M-search请求报文探测支持Hilink的路由器。相应的,Hilink路由器在接收到M-search请求报文后,回复M-seach响应报文,完成探测过程。In some embodiments, if the PC establishes a connection with the network provided by the router for the first time, it needs to obtain the Internet Protocol (IP) address of the router by using the dynamic host configuration protocol (DHCP). For example, a PC sends an M-search request message to detect a router that supports Hilink. Correspondingly, after receiving the M-search request message, the Hilink router replies with the M-seach response message to complete the detection process.
示例性的,假设PC探测到的Hilink gateway(也可以描述为根设备)的目标IP地址为urn:www-huawei-com:service:NetworkSyncService:1。并且,获取Hilink gateway的描述文件地址为http://192.168.1.1:37215/upnpdev.xml。Exemplarily, it is assumed that the target IP address of the Hilink gateway (which can also be described as a root device) detected by the PC is urn:www-huawei-com:service:NetworkSyncService:1. And, the address of the description file to obtain the Hilink gateway is http://192.168.1.1:37215/upnpdev.xml.
M-seach请求报文示例如下:An example of an M-seach request message is as follows:
M-SEARCH*HTTP/1.1M-SEARCH*HTTP/1.1
HOST:239.255.255.250:1900HOST:239.255.255.250:1900
MAN:"ssdp:discover"MAN:"ssdp:discover"
MX:4MX:4
ST:urn:www-huawei-com:service:NetworkSyncService:1ST:urn:www-huawei-com:service:NetworkSyncService:1
M-seach响应报文示例如下:An example of the M-seach response message is as follows:
HTTP/1.1 200 OKHTTP/1.1 200 OK
LOCATION:http://192.168.1.1:37215/upnpdev.xmlLOCATION: http://192.168.1.1:37215/upnpdev.xml
SERVER:Linux UPnP/1.0 Huawei-ATP-IGDSERVER:Linux UPnP/1.0 Huawei-ATP-IGD
CACHE-CONTROL:max-age=86500CACHE-CONTROL:max-age=86500
EXT:EXT:
ST:urn:www-huawei-com:service:NetworkSyncService:1ST:urn:www-huawei-com:service:NetworkSyncService:1
USN:uuid:00e0fc37-225-2828-2500-cca223012ba8::urn:www-huawei-USN:uuid:00e0fc37-225-2828-2500-cca223012ba8::urn:www-huawei-
com:service:NetworkSyncService:1com:service:NetworkSyncService:1
DATE:Tue,05 May 2015 12:07:38 GMTDATE: Tue, 05 May 2015 12:07:38 GMT
S1302、PC上线。S1302, PC goes online.
在一些实施例中,PC接入网络,并获得路由器的IP地址之后上线,即告知路由器当前PC已加入路由器(即Hilink gateway)的管理域(即二层漫游域)中,处于活跃(alive)状态,可以进行网络配置。具体的,PC利用路由器的IP地址,将其alive状态发送至路由器,通知路由器,PC上线,待配置网络。In some embodiments, after the PC accesses the network and obtains the IP address of the router, it goes online, that is, informs the router that the current PC has joined the management domain (that is, the Layer 2 roaming domain) of the router (that is, the Hilink gateway), and is active (alive) status, the network configuration can be performed. Specifically, the PC uses the IP address of the router to send its alive status to the router to notify the router that the PC is online and the network is to be configured.
在一些实施例中,PC向路由器发送UPnP alive上线报文,用于告知路由器当前PC上线。相应的。路由器在接收到UPnP alive上线报文后,确认PC上线,则建立超文本传输安全协议(hyper text transfer protocol over securesocket sayer,HTTPS)管理会话,用于订阅网络同步服务。其中,同步服务例如包括NetworkSyncService:1。In some embodiments, the PC sends a UPnP alive online message to the router to inform the router that the current PC is online. corresponding. After receiving the UPnP alive online message, the router confirms that the PC is online, and establishes a hypertext transfer protocol over secure socket sayer (HTTPS) management session for subscribing to the network synchronization service. The synchronization service includes, for example, NetworkSyncService:1.
示例性的,PC基于UPnP协议中的简单服务发现协议(simple service discovery protocol,SSDP)通知路由器PC上线。如下示出一种UPnP alive上线报文示例。Exemplarily, the PC notifies the router that the PC is online based on the Simple Service Discovery Protocol (simple service discovery protocol, SSDP) in the UPnP protocol. An example of a UPnP alive online message is shown below.
Figure PCTCN2021137923-appb-000004
Figure PCTCN2021137923-appb-000004
在上述UPnP alive上线报文中,“NTS:ssdp:alive”字段用于指示当前应用UPnP alive协议报文。缓存控制(Cache-Control)字段中的存活时间(max-age)用于指示PC的老化失效时间。在一键连接建链成功后,PC在HTTPS管理会话老化失效之前,可以继续发送UPnP alive上线报文,用于续约保活。In the above UPnP alive online message, the "NTS:ssdp:alive" field is used to indicate the current application of the UPnP alive protocol message. The time-to-live (max-age) in the Cache-Control field is used to indicate the aging-out time of the PC. After the one-click connection is successfully established, the PC can continue to send UPnP alive online packets for renewal and keep alive before the HTTPS management session expires.
S1303、路由器获得PC的Wi-Fi模块信息。S1303, the router obtains the Wi-Fi module information of the PC.
其中,路由器获取到PC的Wi-Fi模块信息,用于配置PC的Wi-Fi热点网络。 Wi-Fi模块信息例如包括如下一项或几项内容:PC接入路由器的SSID(如WLC Index For Cover)、WLAN网络信息(network Info)、设备信息(device info)。The router obtains the Wi-Fi module information of the PC, which is used to configure the Wi-Fi hotspot network of the PC. For example, the Wi-Fi module information includes one or more of the following: SSID of the PC access router (such as WLC Index For Cover), WLAN network information (network Info), and device information (device info).
示例性的,路由器向PC发送获取信息报文,用于获取PC的Wi-Fi模块信息。如下示出一种获取Wi-Fi模块信息的报文示例。Exemplarily, the router sends an acquisition information packet to the PC, which is used to acquire Wi-Fi module information of the PC. An example of a message for acquiring Wi-Fi module information is shown as follows.
Figure PCTCN2021137923-appb-000005
Figure PCTCN2021137923-appb-000005
Figure PCTCN2021137923-appb-000006
Figure PCTCN2021137923-appb-000006
其中,在上述获取Wi-Fi模块信息的报文中,Hilink Gateway利用GetWLCIndexForCover字段作为查询接口,用于查询PC的当前的Wi-Fi配置信息。如NewSSID,用于查询PC接入的SSID;NewRFBand,用于查询SSID对应的射频频段;NewQueryType,用于查询类型。Among them, in the above message for obtaining Wi-Fi module information, Hilink Gateway uses the GetWLCIndexForCover field as a query interface to query the current Wi-Fi configuration information of the PC. For example, NewSSID is used to query the SSID accessed by the PC; NewRFBand is used to query the radio frequency band corresponding to the SSID; NewQueryType is used to query the type.
相应的,PC在接收到路由器发送的获取Wi-Fi模块信息的报文后,基于HTTPS管理会话,发送应答报文,用于回复设备信息。Correspondingly, after receiving the message for obtaining the Wi-Fi module information sent by the router, the PC sends a response message based on the HTTPS management session for replying to the device information.
示例性的,如下示出一种PC的应答报文示例。Exemplarily, an example of a response message of a PC is shown as follows.
Figure PCTCN2021137923-appb-000007
Figure PCTCN2021137923-appb-000007
Figure PCTCN2021137923-appb-000008
Figure PCTCN2021137923-appb-000008
S1304、路由器对PC进行网络配置。S1304, the router performs network configuration on the PC.
在一些实施例中,路由器在获取到PC的Wi-Fi模块信息后,基于本地预置的配置策略能够确定PC的WLAN配置,并开始进行同步配置。其中,WLAN同步配置包括WLAN相关参数的配置,以及其他网络连接相关参数的配置。例如包括终端设备MAC地址的黑白名单配置等。本地预置的配置策略例如包括路由器中预配置的网络配置模板和导入策略。In some embodiments, after acquiring the Wi-Fi module information of the PC, the router can determine the WLAN configuration of the PC based on a locally preset configuration policy, and start to perform synchronization configuration. The WLAN synchronization configuration includes the configuration of WLAN related parameters and the configuration of other network connection related parameters. For example, it includes the black and white list configuration of the MAC address of the terminal device. The locally preset configuration policy includes, for example, a network configuration template and an import policy preconfigured in the router.
比如,路由器获得PC的Wi-Fi模块信息包括信息1和信息2,与预配置的网络配置模板进行匹配后,确定网络配置模板1与信息1和信息2匹配。网络配置模板1满足信息1和信息2的要求,且包括完整的网络配置信息。路由器将网络配置模板1推送至PC,进而PC利用网络配置模板1完成网络全部信息的配置。For example, the router obtains the Wi-Fi module information of the PC including information 1 and information 2, and after matching with the pre-configured network configuration template, determines that the network configuration template 1 matches the information 1 and the information 2. Network configuration template 1 satisfies the requirements of Information 1 and Information 2, and includes complete network configuration information. The router pushes the network configuration template 1 to the PC, and the PC uses the network configuration template 1 to configure all network information.
又比如,路由器根据PC设备信息确定PC的厂商或型号,匹配对应的网络配置模板。如PC1的厂商为厂商A,PC2的厂商为厂商B。路由器根据厂商类型,将网络配置模板A推送至PC1,将网络配置模板B推送至PC2,PC1和PC2接收到网络配置模板后自动完成网络配置同步,即路由器完成对PC的网络配置。For another example, the router determines the manufacturer or model of the PC according to the PC device information, and matches the corresponding network configuration template. For example, the manufacturer of PC1 is manufacturer A, and the manufacturer of PC2 is manufacturer B. The router pushes the network configuration template A to PC1 and the network configuration template B to PC2 according to the manufacturer type. After receiving the network configuration template, PC1 and PC2 automatically complete the network configuration synchronization, that is, the router completes the network configuration of the PC.
示例性的,路由器对PC的配置过程例如包括向PC发送开始(start)报文,设置WLAN基本配置(SetWlanBaseConfiguration)报文,设置WLAN高级配置(SetWlanAdvancedConfiguration)报文,以及承诺(commit)报文。在一组start报文和commit报文之间包括多个配置报文,其中,配置报文包括SetWlanBaseConfiguration报文和SetWlanAdvancedConfiguration报文。PC在接收到commit报文后,基于所有接收到的配置报文开始配置WLAN参数。Exemplarily, the router's configuration process to the PC includes, for example, sending a start (start) message to the PC, a set WLAN basic configuration (SetWlanBaseConfiguration) message, a set WLAN advanced configuration (SetWlanAdvancedConfiguration) message, and a commit (commit) message. Multiple configuration packets are included between a set of start packets and commit packets, wherein the configuration packets include SetWlanBaseConfiguration packets and SetWlanAdvancedConfiguration packets. After the PC receives the commit message, it starts to configure WLAN parameters based on all the received configuration messages.
其中,SetWlanBaseConfiguration报文用于设置PC的WLAN模块作为热点时的SSID的基础参数,例如包括热点的802.11协议工作模式、认证模式、加密模式、加密算法、接入密码等。SetWlanAdvancedConfiguration报文用于设置PC的WLAN模块作为热点时的SSID的高级参数,例如包括最大允许接入用户数、是否启动自动信道选择、指定工作信道、发射功率级别、国家码、是否使能SSID的二层广播、是否使能Wi-Fi多媒体使用(Wi-Fi MultiMedia,WMM)等。需要说明的是,设置PC的SSID与PC接入的路由器的SSID相同。The SetWlanBaseConfiguration packet is used to set the basic parameters of the SSID when the WLAN module of the PC is used as a hotspot, for example, including the 802.11 protocol working mode, authentication mode, encryption mode, encryption algorithm, and access password of the hotspot. The SetWlanAdvancedConfiguration message is used to set the advanced parameters of the SSID when the WLAN module of the PC is used as a hotspot, such as the maximum number of users allowed to access, whether to enable automatic channel selection, specify the working channel, transmit power level, country code, whether to enable SSID Layer 2 broadcast, whether to enable Wi-Fi MultiMedia (WMM), etc. It should be noted that the SSID of the PC is set to be the same as the SSID of the router connected to the PC.
由此,本申请实施例提供的Wi-Fi配置方法,能够使得PC与路由器连接后,自动与路由器的Wi-Fi信息配置同步,实现为用户提供免配置的PC热点。并且,PC与路由器使用相同的SSID,作为路由器的二层漫游域中的设备,保证终端设备接入Wi-Fi网络后,能够在路由器和PC之间进行无缝漫游。Therefore, the Wi-Fi configuration method provided by the embodiment of the present application can automatically synchronize the Wi-Fi information configuration with the router after the PC is connected to the router, so as to provide the user with a PC hotspot without configuration. In addition, the PC and the router use the same SSID as a device in the Layer 2 roaming domain of the router to ensure that the terminal device can seamlessly roam between the router and the PC after accessing the Wi-Fi network.
示例性的,如下示出一种start报文示例。Exemplarily, an example of a start message is shown as follows.
Figure PCTCN2021137923-appb-000009
Figure PCTCN2021137923-appb-000009
Figure PCTCN2021137923-appb-000010
Figure PCTCN2021137923-appb-000010
其中,上述start报文中“ⅴ<u:Start”字段用于标识开始同步配置。The "ⅴ<u:Start" field in the above start message is used to identify the start of synchronization configuration.
示例性的,如下示出一种SetWlanBaseConfiguration报文示例用于对SetWlanBaseConfiguration接口参数进行配置。Exemplarily, an example of a SetWlanBaseConfiguration message is shown below for configuring the parameters of the SetWlanBaseConfiguration interface.
Figure PCTCN2021137923-appb-000011
Figure PCTCN2021137923-appb-000011
Figure PCTCN2021137923-appb-000012
Figure PCTCN2021137923-appb-000012
示例性的,如下示出一种SetWlanAdvancedConfiguration报文示例,用于对SetWlanAdvancedConfiguration接口参数进行配置。Exemplarily, an example of a SetWlanAdvancedConfiguration message is shown below, which is used to configure the parameters of the SetWlanAdvancedConfiguration interface.
Figure PCTCN2021137923-appb-000013
Figure PCTCN2021137923-appb-000013
Figure PCTCN2021137923-appb-000014
Figure PCTCN2021137923-appb-000014
示例性的,如下示出一种commit报文示例。Illustratively, an example of a commit message is shown as follows.
Figure PCTCN2021137923-appb-000015
Figure PCTCN2021137923-appb-000015
Figure PCTCN2021137923-appb-000016
Figure PCTCN2021137923-appb-000016
上述commit报文中,NewNetworkSyncCode字段用于指示当前commit报文网络配置同步序号。PC接收到commit报文后,需要确认该网络配置同步序号是递增的,用于防止攻击或网络重传导致的重复配置。In the above commit message, the NewNetworkSyncCode field is used to indicate the network configuration synchronization sequence number of the current commit message. After the PC receives the commit message, it needs to confirm that the synchronization sequence number of the network configuration is incremented to prevent repeated configurations caused by attacks or network retransmissions.
需要说明的是,上述步骤S1304中,路由器对PC进行网络配置的过程,可以为PC接入路由器后的首次网络配置同步过程。或者,在后续连接过程中,路由器配置参数修改,也可以利用上述步骤再次同步PC与路由器之间的WLAN参数。It should be noted that, in the above step S1304, the process of the router performing the network configuration on the PC may be the first network configuration synchronization process after the PC accesses the router. Alternatively, in the subsequent connection process, when the configuration parameters of the router are modified, the above steps may also be used to synchronize the WLAN parameters between the PC and the router again.
需要说明的是,PC作为非物联网(internet of things,IoT)设备,使用实时传输协议同步发送数据。因此,为了保证安全,PC禁止AP对PC的Wi-Fi模块进行升级,且PC不允许接受AP利用参数同步协议通道对PC的Wi-Fi模块固件进行升级。相应的,在CoAP协议或UPnP协议的能力协商阶段,PC声明不支持固件升级。此外,PC禁止AP查询或设置PC的Wi-Fi模块的管理员用户账号和秘钥信息。It should be noted that, as a non-Internet of things (IoT) device, a PC uses a real-time transmission protocol to synchronously send data. Therefore, in order to ensure security, the PC prohibits the AP from upgrading the PC's Wi-Fi module, and the PC does not allow the AP to use the parameter synchronization protocol channel to upgrade the PC's Wi-Fi module firmware. Correspondingly, in the capability negotiation phase of the CoAP protocol or the UPnP protocol, the PC declares that the firmware upgrade is not supported. In addition, the PC prohibits the AP from querying or setting the administrator user account and key information of the Wi-Fi module of the PC.
在一些场景中,PC完成网络配置后,可以开启免配置PC热点,将自身作为软接入点(soft AP)设备,以扩大Wi-Fi覆盖面积,提高Wi-Fi覆盖效果。终端设备接入或断开与PC热点的连接后,PC热点需要向路由器上报终端设备接入情况,以便路由器对Wi-Fi网络进行管理。In some scenarios, after the PC completes the network configuration, it can turn on the configuration-free PC hotspot and use itself as a soft AP device to expand the Wi-Fi coverage area and improve the Wi-Fi coverage effect. After the terminal device is connected or disconnected from the PC hotspot, the PC hotspot needs to report the access status of the terminal device to the router, so that the router can manage the Wi-Fi network.
示例性的,如图14所示,在步骤S1304之后,本申请实施例提供的Wi-Fi配置方法流程还包括步骤S1401和步骤S1402。Exemplarily, as shown in FIG. 14 , after step S1304 , the flow of the Wi-Fi configuration method provided by this embodiment of the present application further includes step S1401 and step S1402 .
S1401、PC连接终端设备。S1401, the PC is connected to the terminal device.
S1402、PC向路由器上报终端设备接入情况。S1402, the PC reports the access situation of the terminal device to the router.
在一些实施例中,在PC确定免配置热点存在终端设备(也可以描述为station设备)接入或离线的情况时,PC向路由器发送UPnP主动通告(notify active)报文。其中,UPnP notify active报文中携带终端设备的MAC标识以及接入或离线的信息,如WLCAssociatedStat。In some embodiments, when the PC determines that a terminal device (which may also be described as a station device) is connected or offline in the configuration-free hotspot, the PC sends a UPnP active notification (notify active) message to the router. Among them, the UPnP notify active message carries the MAC identifier of the terminal device and the access or offline information, such as WLCAssociatedStat.
需要说明的是,PC作为提供Wi-Fi网络的soft AP设备,因此,应该限制与PC相同MAC的设备接入PC提供的Wi-Fi网络。也就是说,在PC扩展Wi-Fi网络的过程中,PC作为STA设备,不能接入自身提供的热点。It should be noted that the PC is the soft AP device that provides the Wi-Fi network. Therefore, devices with the same MAC as the PC should be restricted from accessing the Wi-Fi network provided by the PC. That is to say, in the process of expanding the Wi-Fi network by the PC, the PC, as a STA device, cannot access the hotspot provided by itself.
在一些场景中,PC能够根据实际情况按需开启或关闭热点。若PC需要关闭热点,则需要将其关闭情况通知路由器,并将其上连接的终端设备引导连接至路由器。进而,满足用户的个性化使用需求,提高用户使用体验。In some scenarios, the PC can turn on or turn off the hotspot according to the actual situation. If the PC needs to turn off the hotspot, it needs to notify the router of its shutdown, and guide the terminal device connected to it to connect to the router. Furthermore, the personalized use requirements of users are met, and the user experience is improved.
示例性的,如图15所示,在步骤S1402之后,本申请实施例提供的Wi-Fi配置方法流程还包括步骤S1501。Exemplarily, as shown in FIG. 15 , after step S1402 , the flow of the Wi-Fi configuration method provided by this embodiment of the present application further includes step S1501 .
S 1501、PC通知路由器个人热点需要关闭,并引导终端设备连接至路由器后,关闭个人热点。S 1501. The PC informs the router that the personal hotspot needs to be turned off, and guides the terminal device to connect to the router, then turn off the personal hotspot.
在一些实施例中,PC接收到用户指示关闭免配置热点的操作后,PC引导已经接入该热点的终端设备切换到路由器,并主动向路由器发送UPnP byebye报文。之后,PC关闭个人热点功能,并清除相关的WLAN配置。In some embodiments, after the PC receives the user's instruction to turn off the configuration-free hotspot, the PC guides the terminal device that has accessed the hotspot to switch to the router, and actively sends a UPnP byebye message to the router. After that, the PC turns off the personal hotspot function and clears the related WLAN configuration.
示例性的,如下示出一种byebye报文示例。Exemplarily, an example of a byebye message is shown as follows.
NOTIFY*HTTP/1.1NOTIFY*HTTP/1.1
HOST:239.255.255.250:1900HOST:239.255.255.250:1900
NT:urn:www-huawei-com:service:NetworkSyncService:1NT:urn:www-huawei-com:service:NetworkSyncService:1
NTS:ssdp:byebyeNTS:ssdp:byebye
USN:uuid:00e0fc37-2525-2828-2500-001123244560::urn:www-huawei-com:serUSN:uuid:00e0fc37-2525-2828-2500-001123244560::urn:www-huawei-com:ser
vice:NetworkSyncService:1vice:NetworkSyncService:1
在一些实施例中,PC开启热点,并通过上述Wi-Fi配置方法配置网络后,在为其他终端设备提供无感知漫游的Wi-Fi网络的同时,保持与AP设备的Wi-Fi连接,不会影响自身的上网功能。进一步的,在PC关闭热点后,还会保持与AP设备的Wi-Fi连接,不会影响自身的上网功能。In some embodiments, after the PC turns on the hotspot and configures the network through the above Wi-Fi configuration method, it maintains the Wi-Fi connection with the AP device while providing the Wi-Fi network without awareness roaming for other terminal devices. It will affect its own Internet function. Further, after the PC turns off the hotspot, it will maintain the Wi-Fi connection with the AP device, which will not affect its own surfing function.
在一些场景中,终端设备在接入路由器提供的Wi-Fi网络后,利用Beacon帧,比较接入的Wi-Fi网络信号与附近STA提供的Wi-Fi网络信号。如此,在Wi-Fi 网络信号变差时,能够接入Wi-Fi网络信号更好的STA。In some scenarios, after connecting to the Wi-Fi network provided by the router, the terminal device uses Beacon frames to compare the connected Wi-Fi network signal with the Wi-Fi network signal provided by nearby STAs. In this way, when the Wi-Fi network signal becomes poor, the STA with better Wi-Fi network signal can be accessed.
示例性的,如图16所示,手机在使用Wi-Fi网络过程中,搜索到信号更好的STA Wi-Fi网络,则显示界面1601,在下拉通知栏161中显示通知提示,以提示用户可以接入更好的Wi-Fi网络,以获得更好的上网体验。手机在检测到用户点击控件162的操作后,启动漫游过程,进行Wi-Fi网络切换,接入PC提供的信号更好的Wi-Fi网络。Exemplarily, as shown in FIG. 16 , during the process of using the Wi-Fi network, the mobile phone searches for a STA Wi-Fi network with a better signal, then displays the interface 1601, and displays a notification prompt in the pull-down notification bar 161 to prompt the user. You can connect to a better Wi-Fi network for a better online experience. After detecting that the user clicks on the control 162, the mobile phone starts the roaming process, switches the Wi-Fi network, and accesses the Wi-Fi network with a better signal provided by the PC.
进一步的,终端设备还可以在搜索到比当前Wi-Fi网络信号更好的Wi-Fi网络后,自动进行切换,在用户无感知的情况下,进行Wi-Fi网络漫游。Further, the terminal device can also switch automatically after searching for a Wi-Fi network with a better signal than the current Wi-Fi network, and perform Wi-Fi network roaming without the user's perception.
可以理解的是,上述电子设备和AP设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。It can be understood that, in order to realize the above functions, the above electronic devices and AP devices include corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that, in conjunction with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Experts may use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of the embodiments of the present application.
本申请实施例可以根据上述方法示例对上述电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, the electronic device may be divided into functional modules according to the foregoing method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
示例性的图17为本申请实施例提供的Wi-Fi配置装置的结构示意图。如图17所示,Wi-Fi配置装置1700包括:收发模块1701以及处理模块1702。An exemplary FIG. 17 is a schematic structural diagram of a Wi-Fi configuration apparatus provided by an embodiment of the present application. As shown in FIG. 17 , the Wi-Fi configuration apparatus 1700 includes: a transceiver module 1701 and a processing module 1702 .
在一种可能的设计中,Wi-Fi配置装置1700可用于实现上述方法实施例中涉及的第一电子设备的功能。其中,Wi-Fi配置装置1700可以为第一电子设备本身,也可以为第一电子设备中的功能单元或者芯片,或者与第一电子设备匹配使用的装置。In a possible design, the Wi-Fi configuration apparatus 1700 may be used to implement the functions of the first electronic device involved in the above method embodiments. Wherein, the Wi-Fi configuration apparatus 1700 may be the first electronic device itself, or may be a functional unit or chip in the first electronic device, or a device matched with the first electronic device.
可选的,收发模块1701,用于支持Wi-Fi配置装置1700执行上述实施例中图7所示的步骤S701、步骤S703和步骤S705中的一个或者多个步骤;和/或,收发模块1701还用于支持Wi-Fi配置装置1700执行本申请实施例中Wi-Fi配置装置执行的其他发送和接收步骤。Optionally, the transceiver module 1701 is configured to support the Wi-Fi configuration apparatus 1700 to perform one or more steps in step S701, step S703 and step S705 shown in FIG. 7 in the foregoing embodiment; and/or, the transceiver module 1701 It is also used to support the Wi-Fi configuration apparatus 1700 to perform other sending and receiving steps performed by the Wi-Fi configuration apparatus in the embodiments of the present application.
可选的,处理模块1702,用于支持Wi-Fi配置装置1700执行上述实施例中图7所示的步骤S702中的一个或者多个步骤;和/或,处理模块1702还用于支持Wi-Fi配置装置1700执行本申请实施例中Wi-Fi配置装置执行的其他处理步骤。Optionally, the processing module 1702 is configured to support the Wi-Fi configuration apparatus 1700 to perform one or more steps in the step S702 shown in FIG. 7 in the foregoing embodiment; and/or, the processing module 1702 is further configured to support Wi-Fi The Fi configuration apparatus 1700 executes other processing steps performed by the Wi-Fi configuration apparatus in the embodiments of the present application.
在另一种可能的设计中,Wi-Fi配置装置1700可用于实现上述方法实施例中涉及的AP设备的功能。其中,Wi-Fi配置装置1700可以为AP设备本身,也可以为AP设备中的功能单元或者芯片,或者与AP设备匹配使用的装置。In another possible design, the Wi-Fi configuration apparatus 1700 may be used to implement the functions of the AP device involved in the above method embodiments. The Wi-Fi configuration apparatus 1700 may be the AP device itself, or may be a functional unit or chip in the AP device, or a device matched with the AP device.
可选的,收发模块1701,用于支持Wi-Fi配置装置1700执行上述实施例中图7所示的步骤S701,步骤S703和步骤S705中的一个或者多个步骤;和/或,收发模块1701还用于支持Wi-Fi配置装置1700执行本申请实施例中Wi-Fi配置装置 执行的其他发送和接收步骤。Optionally, the transceiver module 1701 is used to support the Wi-Fi configuration apparatus 1700 to perform one or more steps in step S701, step S703 and step S705 shown in FIG. 7 in the above embodiment; and/or, the transceiver module 1701 It is also used to support the Wi-Fi configuration apparatus 1700 to perform other sending and receiving steps performed by the Wi-Fi configuration apparatus in the embodiments of the present application.
可选的,处理模块1702,用于支持Wi-Fi配置装置1700执行上述实施例中图7所示的步骤S704中的一个或者多个步骤;和/或,处理模块1702还用于支持Wi-Fi配置装置1700执行本申请实施例中Wi-Fi配置装置执行的其他处理步骤。Optionally, the processing module 1702 is configured to support the Wi-Fi configuration apparatus 1700 to perform one or more steps in step S704 shown in FIG. 7 in the foregoing embodiment; and/or the processing module 1702 is further configured to support Wi-Fi The Fi configuration apparatus 1700 executes other processing steps performed by the Wi-Fi configuration apparatus in the embodiments of the present application.
其中,处理模块1702可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。The processing module 1702 may be a processor or a controller. It may implement or execute the various exemplary logical blocks, modules and circuits described in connection with this disclosure. A processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
可选的,图17所示的Wi-Fi配置装置1700还可以包括存储模块(图17中未示出),该存储模块存储有程序或指令。当收发模块1701以及处理模块1702执行该程序或指令时,使得图17所示的Wi-Fi配置装置1700可以执行本申请实施例提供的Wi-Fi配置方法。Optionally, the Wi-Fi configuration apparatus 1700 shown in FIG. 17 may further include a storage module (not shown in FIG. 17 ), and the storage module stores programs or instructions. When the transceiver module 1701 and the processing module 1702 execute the program or instruction, the Wi-Fi configuration apparatus 1700 shown in FIG. 17 can execute the Wi-Fi configuration method provided by the embodiment of the present application.
可选的,收发模块可以包括接收模块和发送模块。其中,接收模块,用于接收其他设备发送的信号。发送模块,用于向其他设备发送信号。本申请实施例对收发模块的具体实现方式,不做具体限定。Optionally, the transceiver module may include a receiving module and a sending module. Among them, the receiving module is used to receive signals sent by other devices. The sending module is used to send signals to other devices. The specific implementation manner of the transceiver module is not specifically limited in this embodiment of the present application.
图17所示的Wi-Fi配置装置1700中的各个单元的操作和/或功能分别为了实现上述方法侧实施例提供Wi-Fi配置方法的相应流程,为了简洁,在此不再赘述。图17所示的Wi-Fi配置装置1700的技术效果可以参考上述方法侧实施例提供Wi-Fi配置方法的技术效果,此处不再赘述。The operations and/or functions of each unit in the Wi-Fi configuration apparatus 1700 shown in FIG. 17 are respectively to implement the corresponding flow of the Wi-Fi configuration method provided by the above method-side embodiment, and are not repeated here for brevity. For the technical effect of the Wi-Fi configuration apparatus 1700 shown in FIG. 17, reference may be made to the technical effect of the Wi-Fi configuration method provided by the foregoing method-side embodiment, which will not be repeated here.
本申请实施例还提供一种芯片系统,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片系统实现上述任一方法实施例中的方法。An embodiment of the present application further provides a chip system, including: a processor, where the processor is coupled with a memory, the memory is used to store a program or an instruction, and when the program or instruction is executed by the processor, the The chip system implements the method in any of the foregoing method embodiments.
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。Optionally, the number of processors in the chip system may be one or more. The processor can be implemented by hardware or by software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like. When implemented in software, the processor may be a general-purpose processor implemented by reading software codes stored in memory.
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请实施例并不限定。示例性的,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型,以及存储器与处理器的设置方式不作具体限定。Optionally, there may also be one or more memories in the chip system. The memory may be integrated with the processor, or may be provided separately from the processor, which is not limited in this embodiment of the present application. Exemplarily, the memory may be a non-transitory processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip, or may be provided on different chips. The arrangement of the memory and the processor is not particularly limited.
示例性的,该芯片系统可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(application specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。Exemplarily, the system-on-chip may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on chip (SoC), It can also be a central processing unit (CPU), a network processor (NP), a digital signal processing circuit (DSP), or a microcontroller (microcontroller). controller unit, MCU), it can also be a programmable logic device (PLD) or other integrated chips.
应理解,上述方法实施例中的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法步骤可以直接体现 为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。It should be understood that, each step in the above method embodiments may be implemented by a hardware integrated logic circuit in a processor or an instruction in the form of software. The method steps disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
本申请的实施例还提供了一种存储介质,用于存储为上述通信装置所用的指令。Embodiments of the present application also provide a storage medium for storing instructions used by the above-mentioned communication apparatus.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当该计算机指令在服务器上运行时,使得服务器执行上述相关方法步骤实现上述实施例中的Wi-Fi配置方法。Embodiments of the present application further provide a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on the server, the server executes the above-mentioned related method steps to realize the Wi-Fi in the above-mentioned embodiments. -Fi configuration method.
本申请实施例还提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的Wi-Fi配置方法。Embodiments of the present application further provide a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the above-mentioned relevant steps, so as to implement the Wi-Fi configuration method in the above-mentioned embodiment.
另外,本申请的实施例还提供一种装置,该装置具体可以是组件或模块,该装置可包括相连的一个或多个处理器和存储器;其中,存储器用于存储计算机程序,一个或多个计算机程序包括指令。当该指令被一个或多个处理器执行时,以使装置执行上述各方法实施例中的Wi-Fi配置方法。In addition, the embodiments of the present application also provide an apparatus, the apparatus may specifically be a component or a module, and the apparatus may include one or more processors and a memory connected to each other; wherein, the memory is used to store a computer program, one or more A computer program includes instructions. When the instruction is executed by one or more processors, it causes the apparatus to execute the Wi-Fi configuration method in each of the above method embodiments.
其中,本申请实施例提供的装置、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。The devices, computer-readable storage media, computer program products or chips provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved, reference may be made to the above-provided methods. The beneficial effects in the corresponding method will not be repeated here.
结合本申请公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read only memory,ROM)、可擦除可编程只读存储器(erasable programmable ROM,EPROM)、电可擦可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于专用集成电路(application specific integrated circuit,ASIC)中。The steps of the methods or algorithms described in conjunction with the disclosure of the present application may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions. Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory (RAM), flash memory, read only memory (ROM), erasable programmable read only memory ( erasable programmable ROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM, EEPROM), registers, hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium may reside in an application specific integrated circuit (ASIC).
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。From the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated as required. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. For the specific working process of the system, apparatus and unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of modules or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可 以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application shall be covered within the protection scope of the present application. . Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (19)

  1. 一种Wi-Fi配置方法,其特征在于,所述方法包括:A Wi-Fi configuration method, characterized in that the method comprises:
    接入无线访问接入点AP设备的第一服务集标识SSID对应的第一无线保真Wi-Fi网络;accessing the first Wi-Fi network corresponding to the first service set identifier SSID of the wireless access point AP device;
    检测到开启Wi-Fi热点的操作,向所述AP设备发送配对请求,所述配对请求用于请求与所述AP设备进行配对;Detecting the operation of turning on the Wi-Fi hotspot, and sending a pairing request to the AP device, where the pairing request is used to request pairing with the AP device;
    若配对成功,则配置所述Wi-Fi热点的第二Wi-Fi网络,所述第二Wi-Fi网络的第二SSID与所述第一SSID相同。If the pairing is successful, a second Wi-Fi network of the Wi-Fi hotspot is configured, and the second SSID of the second Wi-Fi network is the same as the first SSID.
  2. 根据权利要求1所述的方法,其特征在于,所述若配对成功,则配置所述Wi-Fi热点的第二Wi-Fi网络,包括:The method according to claim 1, wherein if the pairing is successful, configuring a second Wi-Fi network of the Wi-Fi hotspot, comprising:
    若配对成功,则向所述AP设备发送Wi-Fi模块信息,所述Wi-Fi模块信息包括如下一项或几项内容:所述第一SSID、无线局域网WLAN信息、设备信息;If the pairing is successful, send Wi-Fi module information to the AP device, where the Wi-Fi module information includes one or more of the following: the first SSID, wireless local area network WLAN information, and device information;
    获取所述AP设备基于所述Wi-Fi模块信息确定的网络配置信息;Acquire network configuration information determined by the AP device based on the Wi-Fi module information;
    利用所述网络配置信息,配置所述第二Wi-Fi网络。Using the network configuration information, configure the second Wi-Fi network.
  3. 根据权利要求2所述的方法,其特征在于,所述配对请求中携带连接信息,在向所述AP设备发送配对请求之后,所述方法还包括:The method according to claim 2, wherein the pairing request carries connection information, and after sending the pairing request to the AP device, the method further comprises:
    接收所述AP设备发送的配对响应,根据所述配对响应确定是否配对成功;所述配对响应为所述AP设备根据所述连接信息确定。Receive the pairing response sent by the AP device, and determine whether the pairing is successful according to the pairing response; the pairing response is determined by the AP device according to the connection information.
  4. 根据权利要求2或3所述的方法,其特征在于,所述获取所述AP设备基于所述Wi-Fi模块信息确定的网络配置信息,包括:The method according to claim 2 or 3, wherein the acquiring the network configuration information determined by the AP device based on the Wi-Fi module information comprises:
    获取开始报文,参数配置报文和承诺报文;所述开始报文用于指示开始传输所述网络配置信息,所述参数配置报文用于指示配置所述第二Wi-Fi网络的参数,所述承诺报文用于指示所述网络配置信息传输完毕;Acquire a start packet, a parameter configuration packet and a commitment packet; the start packet is used to instruct to start transmitting the network configuration information, and the parameter configuration packet is used to instruct to configure the parameters of the second Wi-Fi network , the commitment message is used to indicate that the transmission of the network configuration information is completed;
    在接收到所述承诺报文后,确认已完成接收所述网络配置信息。After receiving the commitment message, it is confirmed that the network configuration information has been received.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-4, wherein the method further comprises:
    若配对失败,则所述Wi-Fi热点的第三Wi-Fi网络的第三SSID与所述第一SSID不同。If the pairing fails, the third SSID of the third Wi-Fi network of the Wi-Fi hotspot is different from the first SSID.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-5, wherein the method further comprises:
    向所述AP设备上报接入所述第二Wi-Fi网络的终端设备的接入情况;所述接入情况包括接入所述第二Wi-Fi网络的终端设备的第一媒体存取控制MAC标识,和/或断开与所述第二Wi-Fi网络连接的终端设备的第二MAC标识。Reporting to the AP device the access information of the terminal equipment accessing the second Wi-Fi network; the access information includes the first media access control of the terminal equipment accessing the second Wi-Fi network The MAC identifier, and/or the second MAC identifier of the terminal device disconnected from the second Wi-Fi network.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-6, wherein the method further comprises:
    向所述AP设备发送第一报文,所述第一报文用于通知所述AP设备所述Wi-Fi热点待关闭;sending a first packet to the AP device, where the first packet is used to notify the AP device that the Wi-Fi hotspot is to be closed;
    断开与接入所述第二Wi-Fi网络的终端设备之间的连接;disconnecting the connection with the terminal device accessing the second Wi-Fi network;
    关闭所述Wi-Fi热点,保持与所述第一Wi-Fi网络的连接。Turn off the Wi-Fi hotspot and keep connected to the first Wi-Fi network.
  8. 一种Wi-Fi配置方法,其特征在于,所述方法包括:A Wi-Fi configuration method, characterized in that the method comprises:
    接收第一电子设备发送的配对请求;所述第一电子设备已接入第一服务集标识SSID对应的第一无线保真Wi-Fi网络;所述配对请求用于请求配对;receiving a pairing request sent by a first electronic device; the first electronic device has accessed the first Wi-Fi network corresponding to the first service set identifier SSID; the pairing request is used to request pairing;
    若配对成功,则允许所述第一电子设备配置第二Wi-Fi网络,所述第二Wi-Fi网络为所述第一电子设备的Wi-Fi热点提供的网络,所述第二Wi-Fi网络的第二SSID与所述第一SSID相同。If the pairing is successful, the first electronic device is allowed to configure a second Wi-Fi network, the second Wi-Fi network is a network provided by a Wi-Fi hotspot of the first electronic device, and the second Wi-Fi The second SSID of the Fi network is the same as the first SSID.
  9. 根据权利要求8所述的方法,其特征在于,所述配对请求中携带连接信息,在所述接收第一电子设备发送的配对请求之后,所述方法还包括:The method according to claim 8, wherein the pairing request carries connection information, and after receiving the pairing request sent by the first electronic device, the method further comprises:
    根据所述连接信息,确定所述第一电子设备是否配对成功;According to the connection information, determine whether the pairing of the first electronic device is successful;
    向所述第一电子设备发送配对响应,所述配对响应用于携带配对成功消息或配对失败消息。Send a pairing response to the first electronic device, where the pairing response is used to carry a pairing success message or a pairing failure message.
  10. 根据权利要求9所述的方法,其特征在于,所述根据所述连接信息,确定所述第一电子设备是否配对成功,包括:The method according to claim 9, wherein the determining whether the first electronic device is paired successfully according to the connection information comprises:
    根据所述连接信息,确定所述第一电子设备的媒体存取控制MAC地址是否为预置白名单中的MAC地址,若是,则确定所述第一电子设备配对成功;According to the connection information, determine whether the media access control MAC address of the first electronic device is a MAC address in a preset whitelist, and if so, determine that the first electronic device is paired successfully;
    或者,根据所述连接信息,按照预设方式提示用户确定是否允许所述第一电子设备进行配对;响应于第一操作,确定所述第一电子设备配对成功。Alternatively, according to the connection information, the user is prompted in a preset manner to determine whether to allow the first electronic device to perform pairing; in response to the first operation, it is determined that the first electronic device is successfully paired.
  11. 根据权利要求8-10任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 8-10, wherein the method further comprises:
    若配对成功,接收所述第一电子设备发送的Wi-Fi模块信息,所述Wi-Fi模块信息包括如下一项或几项内容:所述第一SSID、无线局域网WLAN信息、所述第一电子设备的设备信息;If the pairing is successful, receive the Wi-Fi module information sent by the first electronic device, where the Wi-Fi module information includes one or more of the following: the first SSID, wireless local area network WLAN information, the first device information for electronic devices;
    根据所述Wi-Fi模块信息,匹配所述Wi-Fi模块信息对应的网络配置模板;所述网络配置模板中包含网络配置信息;所述网络配置信息用于配置所述第二Wi-Fi网络;According to the Wi-Fi module information, a network configuration template corresponding to the Wi-Fi module information is matched; the network configuration template includes network configuration information; the network configuration information is used to configure the second Wi-Fi network ;
    向所述第一电子设备发送所述网络配置信息。The network configuration information is sent to the first electronic device.
  12. 根据权利要求11所述的方法,其特征在于,所述向所述第一电子设备发送所述网络配置信息,包括:The method according to claim 11, wherein the sending the network configuration information to the first electronic device comprises:
    向所述第一电子设备发送开始报文,参数配置报文和承诺报文;所述开始报文用于指示开始传输所述网络配置信息,所述参数配置报文用于指示配置所述第二Wi-Fi网络的参数,所述承诺报文用于指示所述网络配置信息传输完毕;Send a start message, a parameter configuration message and a commitment message to the first electronic device; the start message is used to instruct to start transmitting the network configuration information, and the parameter configuration message is used to instruct the configuration of the first electronic device. Two parameters of the Wi-Fi network, the commitment message is used to indicate that the transmission of the network configuration information is completed;
    在发送所述承诺报文后,确认已完成所述网络配置信息的发送。After the commit message is sent, it is confirmed that the sending of the network configuration information has been completed.
  13. 根据权利要求8-12任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 8-12, wherein the method further comprises:
    接收所述第一电子设备上报的接入所述第二Wi-Fi网络的终端设备的接入情况;所述接入情况包括接入所述第二Wi-Fi网络的终端设备的第一MAC标识,和/或断开与所述第二Wi-Fi网络连接的终端设备的第二MAC标识。Receive the access situation of the terminal device accessing the second Wi-Fi network reported by the first electronic device; the access situation includes the first MAC of the terminal device accessing the second Wi-Fi network identifier, and/or the second MAC identifier of the terminal device disconnected from the second Wi-Fi network.
  14. 根据权利要求8-13任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 8-13, wherein the method further comprises:
    接收所述第一电子设备发送第一报文,所述第一报文用于通知所述第一电子设备的Wi-Fi热点待关闭;receiving a first message sent by the first electronic device, where the first message is used to notify the first electronic device that the Wi-Fi hotspot is to be closed;
    与接入所述第二Wi-Fi网络的终端设备建立连接,并保持与所述第一电子设备的连接。Establishing a connection with the terminal device accessing the second Wi-Fi network, and maintaining the connection with the first electronic device.
  15. 一种电子设备,其特征在于,包括:处理器和存储器,所述存储器与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,使得所述电子设备执行如权利要 求1-7中任一项所述的Wi-Fi配置方法。An electronic device, characterized in that it comprises: a processor and a memory, the memory is coupled to the processor, the memory is used for storing computer program code, the computer program code includes computer instructions, when the processor is The computer instructions are read from the memory so that the electronic device executes the Wi-Fi configuration method according to any one of claims 1-7.
  16. 一种无线访问接入点AP设备,其特征在于,包括:处理器和存储器,所述存储器与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,使得所述AP设备执行如权利要求8-14中任一项所述的Wi-Fi配置方法。A wireless access point AP device, comprising: a processor and a memory, wherein the memory is coupled to the processor, and the memory is used for storing computer program code, and the computer program code includes computer instructions, When the processor reads the computer instructions from the memory, the AP device executes the Wi-Fi configuration method according to any one of claims 8-14.
  17. 一种计算机可读存储介质,其特征在于,包括程序或指令,当所述程序或指令被执行时,如权利要求1-7中任一项所述的方法被实现,或者,如权利要求8-14中任一项所述的方法被实现。A computer-readable storage medium, characterized by comprising a program or an instruction, when the program or the instruction is executed, the method according to any one of claims 1-7 is realized, or, as in claim 8 The method of any one of -14 is implemented.
  18. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-7中任一项所述的Wi-Fi配置方法。A computer program product comprising instructions, characterized in that, when the computer program product is run on an electronic device, the electronic device is made to execute the Wi-Fi configuration method according to any one of claims 1-7 .
  19. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在无线访问接入点AP设备上运行时,使得所述AP设备执行如权利要求8-14中任一项所述的Wi-Fi配置方法。A computer program product comprising instructions, characterized in that, when the computer program product runs on a wireless access point AP device, the AP device is made to perform the method according to any one of claims 8-14. Wi-Fi configuration method.
PCT/CN2021/137923 2020-12-31 2021-12-14 Wi-fi configuration method and electronic device WO2022143153A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011638831.3A CN114697991A (en) 2020-12-31 2020-12-31 Wi-Fi configuration method and electronic equipment
CN202011638831.3 2020-12-31

Publications (1)

Publication Number Publication Date
WO2022143153A1 true WO2022143153A1 (en) 2022-07-07

Family

ID=82136453

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/137923 WO2022143153A1 (en) 2020-12-31 2021-12-14 Wi-fi configuration method and electronic device

Country Status (2)

Country Link
CN (1) CN114697991A (en)
WO (1) WO2022143153A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115802383A (en) * 2022-11-18 2023-03-14 广州芯德通信科技股份有限公司 Mesh router pairing production method and system
CN117528571A (en) * 2023-11-03 2024-02-06 江苏征途技术股份有限公司 Automatic identification access method and system for intelligent network shutdown wireless sensor
CN117528571B (en) * 2023-11-03 2024-04-26 江苏征途技术股份有限公司 Automatic identification access method and system for intelligent network shutdown wireless sensor

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114945192B (en) * 2022-07-25 2023-11-10 深圳市亿联无限科技有限公司 Easymesh network rapid networking method and system
CN115499897B (en) * 2022-11-16 2023-04-11 荣耀终端有限公司 WiFi network access method and related device
CN117639879A (en) * 2024-01-26 2024-03-01 荣耀终端有限公司 Wi-Fi signal enhancement method, wi-Fi signal enhancement system and intelligent household appliance

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103415016A (en) * 2013-07-05 2013-11-27 惠州Tcl移动通信有限公司 Mobile WIFI hotspot connection processing method and system
JP2014230060A (en) * 2013-05-22 2014-12-08 シャープ株式会社 Network system, cooperation method of household appliances, server, household appliances, and program
CN107920353A (en) * 2016-10-08 2018-04-17 中兴通讯股份有限公司 A kind of method and hot spot access device of Wireless Fidelity connection switching hot spot
CN109391529A (en) * 2018-11-30 2019-02-26 广东美的制冷设备有限公司 Household electrical appliance and its distribution method and apparatus
CN110226339A (en) * 2016-12-30 2019-09-10 英国电讯有限公司 By equipment automatic matching to wireless network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014230060A (en) * 2013-05-22 2014-12-08 シャープ株式会社 Network system, cooperation method of household appliances, server, household appliances, and program
CN103415016A (en) * 2013-07-05 2013-11-27 惠州Tcl移动通信有限公司 Mobile WIFI hotspot connection processing method and system
CN107920353A (en) * 2016-10-08 2018-04-17 中兴通讯股份有限公司 A kind of method and hot spot access device of Wireless Fidelity connection switching hot spot
CN110226339A (en) * 2016-12-30 2019-09-10 英国电讯有限公司 By equipment automatic matching to wireless network
CN109391529A (en) * 2018-11-30 2019-02-26 广东美的制冷设备有限公司 Household electrical appliance and its distribution method and apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115802383A (en) * 2022-11-18 2023-03-14 广州芯德通信科技股份有限公司 Mesh router pairing production method and system
CN117528571A (en) * 2023-11-03 2024-02-06 江苏征途技术股份有限公司 Automatic identification access method and system for intelligent network shutdown wireless sensor
CN117528571B (en) * 2023-11-03 2024-04-26 江苏征途技术股份有限公司 Automatic identification access method and system for intelligent network shutdown wireless sensor

Also Published As

Publication number Publication date
CN114697991A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
WO2022143153A1 (en) Wi-fi configuration method and electronic device
US10674341B2 (en) Communication device
EP2574134B1 (en) Method for Using Legacy Wi-Fi and Wi-Fi P2P Simultaneously
KR101707364B1 (en) Apparatus and method for performing wireless docking service
CA2786596C (en) Method and apparatus for assisted/coordinated intra-home communications
US8437275B2 (en) Remote wireless service invocation with efficient power use on target wireless device
WO2020098253A1 (en) Network access method and apparatus, related devices, and storage medium
EP3145161B1 (en) Automatic wireless access network configuration synchronization method and apparatus
EP2991435B1 (en) Communication apparatus and control method of communication apparatus
US11582666B2 (en) Communication apparatus, control method of communication apparatus, and computer-readable storage medium
WO2012174152A2 (en) Enhanced discovery procedures in peer-to-peer wireless local area networks (wlans)
WO2014069868A1 (en) Wi-fi direct service method using nfc and device therefor
KR101670753B1 (en) Method for finding instrument for wi-fi direct p2p(peer to peer) communication and apparatus therefor
WO2016027960A1 (en) Method and device for performing wireless docking service
CN113940099B (en) Communication device, control method of communication device, and storage medium
CN109923900B (en) Performing band steering on WI-FI direct client connections to dual-band WI-FI direct autonomous group owners
TW201501489A (en) Enhanced common logical-a protocol for reconfigurable systems
JP5862652B2 (en) Wireless connection apparatus, method for copying setting information related to wireless communication, and network system
EP3675550A1 (en) Alternate wan connectivity to home iot devices
KR20150047278A (en) Image display apparatus for conducting auto wireless communication among devices and image displaying method thereof
WO2024083235A1 (en) Network configuration method based on wi-fi sensing, embedded chip system, and medium
US20190089763A1 (en) Method and apparatus for receiving streaming via transport protocol in wireless communication system
WO2013174312A2 (en) Control method and device, and mobile terminal
KR101921142B1 (en) Apparatus and method for connecting with wi-fi network
WO2023214062A1 (en) Method and device to provide a relay for use in wireless configuration

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21913894

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21913894

Country of ref document: EP

Kind code of ref document: A1