WO2020135355A1 - 一种无线网络配置方法及装置 - Google Patents

一种无线网络配置方法及装置 Download PDF

Info

Publication number
WO2020135355A1
WO2020135355A1 PCT/CN2019/127569 CN2019127569W WO2020135355A1 WO 2020135355 A1 WO2020135355 A1 WO 2020135355A1 CN 2019127569 W CN2019127569 W CN 2019127569W WO 2020135355 A1 WO2020135355 A1 WO 2020135355A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
network configuration
configuration information
terminal device
access point
Prior art date
Application number
PCT/CN2019/127569
Other languages
English (en)
French (fr)
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 WO2020135355A1 publication Critical patent/WO2020135355A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Definitions

  • the present invention requires the priority of a Chinese patent application filed on December 24, 2018 in the Chinese Patent Office with the application number 201811583065.8 and the invention titled "A wireless network configuration method and device". The entire content of the application is incorporated by reference in In the present invention.
  • the invention relates to the technical field of network communication, and in particular to a wireless network configuration method and device.
  • WLAN is the abbreviation of Wireless Local Area Network, which refers to the application of wireless communication technology to interconnect computer devices to form a network system that can communicate with each other and achieve resource sharing.
  • the essential characteristic of wireless local area network is that it no longer uses communication cables to connect computers to the network, but connects them wirelessly, so that the construction of the network and the movement of the terminal are more flexible.
  • the wireless access point AP devices in the wireless network are all set with a password to verify the legitimacy of the access device.
  • Existing wireless access point AP devices generally provide web pages or APPs to set the service set identifier (SSID) and password of the wireless network.
  • SSID service set identifier
  • these password modification methods are limited to modifying the SSID and password of the wireless access point AP itself, and will not be synchronized to all terminal devices that have access to the wireless access point AP, which will cause the wireless access to be changed every time.
  • After entering the SSID or password of the AP device all other terminal devices that previously normally access the wireless network will not be able to access the network because of the wrong password. In this case, reconfiguring the network of terminal devices is a tedious operation.
  • Devices such as wireless cameras may be installed on the ceiling or other hard-to-reach locations, and it is difficult to perform factory reset, WiFi and WPS access operations, which makes it difficult to configure the network of these terminal devices.
  • the purpose of the embodiments of the present invention is to provide a wireless network configuration method and device to solve the existing modification of the SSID and password of the wireless access point AP, which is limited to the modification of its own SSID and password and does not synchronize to All terminal devices that have been connected to the wireless access point AP result in the inconvenience caused by reconfiguring the network of the terminal device each time the SSID or password of the wireless access point AP device is changed.
  • the embodiments of the present invention provide a wireless network configuration method, including: acquiring a change instruction for network configuration information of a target wireless access point AP, Wherein, the change instruction carries the changed network configuration information; determine the connection status of the terminal device that has accessed the target wireless access point AP; according to the changed network configuration information and each of the terminal devices The connection status of the terminal, updating the wireless connection information of the terminal device and the network configuration information of the target wireless access point AP.
  • an embodiment of the present invention provides a wireless network configuration apparatus, including: a change instruction acquisition module for acquiring a change instruction for network configuration information of a target wireless access point AP, where the change instruction carries There is the changed network configuration information; the connection state determination module is used to determine the connection state of the terminal device that has access to the target wireless access point AP; the network information update module is used according to the changed network configuration information And the connection status of each terminal device, updating the wireless connection information of the terminal device and the network configuration information of the target wireless access point AP.
  • an embodiment of the present invention provides a network device, including a memory, a processor, and a computer program that can run on the memory and when the computer program is executed by the processor To implement the steps of the wireless network configuration method as described in the first aspect.
  • an embodiment of the present invention provides a computer-readable storage medium that stores a computer program on the computer-readable storage medium, and the computer program is executed by a processor to implement the wireless network as described in the first aspect The steps of the configuration method.
  • FIG. 1 is a first schematic flowchart of a wireless network configuration method according to an embodiment of the present invention
  • FIG. 2 is a second schematic flowchart of a wireless network configuration method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a first embodiment of a wireless network configuration method provided by an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a second embodiment of a wireless network configuration method provided by an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of the first module composition of the wireless network configuration device according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a second module composition of a wireless network configuration device provided by an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of the module composition of a network device provided by an embodiment of the present invention.
  • Embodiments of the present invention provide a wireless network configuration method and device.
  • the client can uniformly manage the network configuration information of the wireless access point AP.
  • the old wireless connection Before the network configuration information of the access point AP has not expired, first process the terminal devices connected to the wireless access point AP. After each terminal device is ready, modify the network configuration information of the wireless access point AP to ensure wireless access After the password of the outlet is changed, each terminal device can still access the wireless network smoothly again.
  • FIG. 1 is a first schematic flowchart of a wireless network configuration method provided by an embodiment of the present invention, where the execution subject in the method is a client, and the client includes but is not limited to iOS, Android, WP and other systems; in the embodiment of the present invention
  • the wireless access point APs include but are not limited to wireless routers, home gateways, etc.; terminal devices include but are not limited to smart phones, network cameras, smart door locks, etc.; as shown in FIG. 1, the method includes at least the following steps.
  • S101 Obtain a change instruction for network configuration information of a target wireless access point AP, where the change instruction carries the changed network configuration information, where the changed network configuration information includes: the service of the changed wireless network Set identification SSID and wireless password; specifically, in order to ensure the security of the local area network, the wireless access point AP device in the wireless network has set a password to verify the legality of the access device, when the user needs to change the wireless access point AP
  • the SSID and password of the service set are identified, the user directly enters the new service set identifier SSID and password on the WiFi network configuration page of the wireless access point AP through the application APP on the client, and the APP receives the target access point AP New service set identifier SSID and password.
  • S102 Determine the connection status of the terminal device that has accessed the target wireless access point AP; specifically, after the APP receives the user's new service set identifier SSID and password for the target access point AP, temporarily does not modify the target access
  • the network configuration information of the point AP but first query all the terminal devices connected to the target wireless access point AP through the client or the server, and determine the current terminal device under the target access point AP, is in The terminal device in the current state and the terminal device in the offline state.
  • S103 Update the wireless connection information of the terminal device and the network configuration information of the target wireless access point AP according to the changed network configuration information and the connection status of each terminal device; so that the terminal device communicates with the wireless device based on the updated wireless connection information
  • the in-point AP re-establishes the wireless network connection.
  • the user sends the new service set identifier SSID and password to the online terminal device through the management protocol through the APP; for the terminal device in the offline state, due to the offline The terminal device is temporarily unable to receive new network configuration information, and the user sets it to the network configuration state through the APP; after processing all the terminal devices connected to the target wireless access point AP, the user manages the preset through the APP
  • the protocol modifies the network configuration information of the target wireless access point AP to a new new service set identifier SSID and password.
  • the terminal devices that were originally online will be disconnected from the network. At this time, these terminal devices that are online will try to use the new service set identifier SSID and password received. Into the network.
  • the terminal device that was originally offline Since the terminal device that was originally offline has not obtained the new service set identifier SSID and password, the next time it is powered on, it will continue to use the old service set identifier SSID and password, resulting in the inability to access the network. In this case, the offline terminal device will automatically switch to the network configuration state. At this time, the APP sends the new service set identifier SSID and password to the device through a custom management protocol.
  • the network configuration information of the wireless access point AP is uniformly managed by the client.
  • the network configuration information of the old wireless access point AP has not been invalidated.
  • each terminal device After each terminal device is ready, modify the network configuration information of the wireless access point AP, so as to ensure that after the password of the wireless access network point is modified, each terminal device Can still access the wireless network smoothly again.
  • Step 1 Send the changed network configuration information to the terminal device that has access to the target wireless access point AP;
  • Step 2 Determine whether the terminal device's confirmation feedback information about the changed network configuration information is received;
  • Step 3 If it is , It is determined that the connection state of the terminal device is online;
  • the client sends the changed network configuration information to all terminal devices connected to the target wireless access point AP through a preset management protocol.
  • the terminal device is online Status, when it receives the changed network configuration information and saves it locally, it will send the feedback information of the received network configuration information to the client through the preset management protocol; the feedback received by the user through the client Information to determine the terminal device that is online. If the terminal device is offline, it cannot receive the changed network configuration information that the client sends to it through the preset management protocol.
  • the client detects that the device terminal is offline through the timeout mechanism, and the client will be offline
  • the data of the terminal device is set to the network configuration state, and the terminal device in the offline state is marked as the network configuration device.
  • the client sends the changed network configuration information to the cloud server through the preset management protocol, and the cloud server sends the received changed network configuration information to the connection target wireless.
  • All terminal devices of the access point AP if the terminal device is online, after receiving the changed network configuration information and saving it locally, the changed network configuration information has been received through the preset management protocol
  • the feedback information is sent to the cloud server, and then the cloud server sends the received feedback information of the above-mentioned terminal device that has received the changed network configuration information to the client, and the user confirms that it is online through the feedback information received by the client Terminal device in state. If the terminal device is offline, it cannot receive the changed network configuration information sent by the client.
  • the client detects that the device terminal is offline through the timeout mechanism, and the client places the terminal device in the offline state at The data in the cloud server is set to the network configuration state, and the terminal device in the offline state is marked as the network configuration device.
  • the above connection state includes: online state and offline state, and the terminal device in the offline state is marked as a network configuration device; as shown in FIG. 2, the above S103 is based on the changed network configuration information and the connection state of each terminal device , Update the wireless connection information of the terminal device and the network configuration information of the target wireless access point AP, including the following steps.
  • the terminal device in the online state it is determined that the update of the wireless connection information of the terminal device has been completed; and, the changed network configuration information is issued to the target wireless access point AP to update the target wireless access point AP Own network configuration information; specifically, for terminal devices that are online, when the client and the target access point AP are on the same network, when the terminal device receives the changed network configuration information, it passes the preset management protocol Send the feedback information of the received network configuration information to the client.
  • the user receives the feedback information through the client to confirm that the wireless connection information of the terminal device has been updated, and sends the changed network configuration information through the preset management protocol Give the target wireless access point AP so that the target wireless access point AP updates its own network configuration information; when the client and the target access point AP are on different networks, when the terminal device receives the changed network configuration information
  • the feedback information that has received the changed network configuration information is sent to the cloud server through the preset management protocol, and the cloud server sends the received feedback information sent by the terminal device to the client
  • the user receives the feedback through the client Information, confirm that the wireless connection information of the terminal device has been updated, and send the changed network configuration information to the cloud server through the preset management protocol, and the cloud server then sends the received changed network configuration information through the preset management protocol Give the target wireless access point AP so that the target wireless access point AP updates its own network configuration information.
  • the device to be network-configured For the device to be network-configured, generate a prompt message indicating that the device to be network-configured is powered on; after determining that the device to be network-configured is powered on, send the changed network configuration information to the device to be network-configured, so that The network configuration device updates the wireless connection information based on the changed network configuration information.
  • the client passes The timeout mechanism detects that the device terminal is offline, and the client generates a prompt message indicating that the terminal device is powered on, prompting the user to power on the device.
  • the user powers on the terminal device, the user The management protocol sends the changed network configuration information to the terminal device, so that the device to be network configured updates the wireless connection information based on the changed network configuration information.
  • the client detects that the device terminal is offline through a timeout mechanism Status, generating prompt information for instructing the terminal device to power on, prompting the user to power on the terminal device, and after the user powers on the terminal device, sending the changed network to the terminal device through a custom management protocol Configuration information, so that the device to be network-configured updates the wireless connection information based on the changed network configuration information.
  • the above S1032 sends the changed network configuration information to the network configuration device after it is determined that the network configuration device is powered on, including: after determining that the network configuration device is powered on, it configures the network configuration based on a custom management protocol
  • the device sends the changed network configuration information.
  • the above-mentioned custom management protocol can be a protocol such as message queue telemetry transmission smartconfig.
  • the above terminal device attempts to connect to the network using the SSID and password of the old service set ID. When the connection fails, it will automatically switch to the smartconfig state.
  • the service set identifier SSID and password are sent to the above terminal device.
  • the method further includes: if the client and the target wireless access point AP are on the same network, then based on a preset management protocol
  • the terminal device of the target wireless access point AP sends the changed network configuration information, where the above-mentioned preset management protocols include, but are not limited to, TCP+Json, http, MQTT, websocket and other preset management protocols; if the client connects to the target wirelessly If the in-point AP is in a different network, the changed network configuration information is sent to the cloud server based on the preset management protocol, so that the cloud server sends the changed information to the terminal device that has access to the target wireless access point AP based on the preset management protocol
  • the network configuration information of the above, wherein the above preset management protocols include but are not limited to TCP+Json, http, MQTT, websocket and other preset management protocols; wherein, the above S102 determine
  • the terminal device After the client sends the changed network configuration information to the terminal device that has accessed the target wireless access point AP, if the terminal device receives confirmation feedback information about the changed network configuration information, the terminal is confirmed.
  • the device is online; if it does not receive the confirmation feedback information of the terminal device for the changed network configuration information, it is confirmed that the terminal device is offline, and the terminal device is marked as a device to be network configured.
  • the above S1032 further includes the following steps after sending the changed network configuration information to the device to be network-configured.
  • Step 1 Receive confirmation feedback information about the changed network configuration information sent by the network configuration device;
  • Step 2 Determine that the wireless connection information of the network configuration device has been updated.
  • the device to be network-configured passes The preset management protocol sends feedback information of successful access to the network to the client. After receiving the feedback information, the client determines that the wireless connection information of the device to be network configured has been updated.
  • the network configuration device When the client and the target access point AP are on different networks, when the user powers on the network configuration device and sends the changed network configuration information to the network configuration device, the network configuration device The management protocol sends the feedback information of successful access to the network to the cloud server. After receiving the feedback information, the cloud server sends the feedback information to the client through the preset management protocol. After receiving the feedback information, the client determines that it is completed. Update the wireless connection information of the network configuration device.
  • the wireless network configuration process specifically includes: the user modifies the configuration information of the wireless access point AP through the application APP on the client, configures a new service set identifier SSID and password for the wireless access point AP, and the APP obtains the new service After the SSID and password are set, the configuration information of the wireless access point AP is not modified temporarily. First, check whether all terminal devices connected to the target wireless access point AP are online, and determine whether the terminal device is online and offline.
  • Terminal device in the online state for the terminal device in the online state: Step 1, when the APP executes the command, the new service set identifier SSID and password are first sent to the online terminal device through the TCP+Json preset management protocol. After receiving the new service set identifier SSID and password, the terminal device stores it locally; step two, the above terminal device reports to the APP that the new service set identifier SSID and password have been received through the TCP+Json preset management protocol Feedback information; Step 3: Receive the feedback information of the new service set identifier SSID and password sent by the terminal device through the TCP+Json preset management protocol; Step 4, the APP will send the new service ID through the TCP+Json preset management protocol.
  • the service set identifier SSID and password are sent to the wireless access point AP; Step 5: After receiving the new service set identifier SSID and password, the wireless access point AP immediately reports back to the APP that the configuration information has been successfully received and the received The new service set identifier SSID and password are sent to the WiFi management module, and the WiFi module of the wireless access point AP enables the new service set identifier SSID and password to provide external wireless network access services; in step 6, the APP reports to the user that it has successfully The SSID and password of the wireless access point AP are changed to the new service set identifier SSID and password; Step 7. The above terminal equipment continues to use the old service set identifier SSID and password to access the network.
  • Step 8 The wireless access point AP verifies the password and establishes a link with the above terminal device to allow the above terminal device to access the wireless network, and finally realizes the above terminal device Smooth access to the network.
  • Step 1 when the APP executes the command, it first sends the new service set identifier SSID and password to the above-mentioned terminal device through the TCP+Json preset management protocol.
  • the APP side detects that the above terminal device is offline through a timeout mechanism; in step two, the APP sets the data of the above terminal device to the network configuration state, and at the same time sets the new service set identifier SSID and password The password is sent to the wireless access point AP; in step three, after receiving the new service set identifier SSID and password, the wireless access point AP immediately reports to the APP that the configuration information has been successfully received, and then the new service set identifier SSID and password Sent to the WiFi management module to start enabling new configuration information to provide wireless network access services; in step four, the APP reports to the user that the old service set identifier SSID and password of the wireless access point AP have been modified to the new service set identifier SSID and Password and remind the user that the above terminal device is offline and may need to be powered on; Step 5: The user turns on the power for the above
  • Step 6 The terminal device cannot connect to the network using the old service set identifier SSID and password, and will automatically switch to the smartconfig state.
  • the user sends the new service set identifier SSID and password through the APP; Step 7.
  • the user marks the new service set identifier through the APP
  • the SSID and password are sent to the above terminal device through the smartconfig protocol;
  • the above terminal device receives the new service set identifier SSID and password sent by the APP, and accesses the wireless access point AP by using the new service set identifier SSID and password .
  • Step 9 The above terminal device feeds back information to the APP that has successfully connected to the network through the TCP+Json protocol.
  • the wireless network configuration process specifically includes: the user modifies the configuration information of the wireless access point AP through the APP, configures the wireless access point AP with a new service set identifier SSID and password, and the APP obtains the new service set identifier SSID and password.
  • step one when the APP executes the command, the new service set identifier SSID and password are first sent to the online terminal device through the MQTT preset management protocol, and the terminal device receives the new service set identifier After SSID and password, store it locally;
  • Step two the above terminal equipment sends the feedback information of the new service set identifier SSID and password received to the cloud server through the MQTT preset management protocol, and the cloud server will receive the feedback information Send to APP through MQTT preset management protocol;
  • Step 3 APP receives the feedback information of the new service set identifier SSID and password sent by the above terminal device through MQTT preset management protocol;
  • Step 4 APP uses MQTT preset management The protocol sends the new service set identifier SSID and password to the cloud server, and
  • the above terminal equipment continues to use the old service set identifier SSID and password to access the network.
  • the network is interrupted, try to use the new new service set identifier SSID and password recorded before to access the wireless access point AP; Step 8.
  • the wireless access point AP verifies the password and establishes a link with the above terminal device to allow the above terminal device to access the wireless network, and finally realizes the above terminal device to smoothly access the network.
  • Step one when the APP executes the command, it first sends the new service set identifier SSID and password to the above-mentioned terminal device through the MQTT preset management protocol. Because the above-mentioned terminal device is in the offline state, it cannot be received The new service set identifier SSID and password, the APP side detects that the above terminal device is offline through a timeout mechanism; Step 2, the APP sets the data of the above terminal device on the cloud server to the network configuration state, and at the same time marks the new service set identifier The SSID and password are sent to the wireless access point AP; in step three, after receiving the new service set identifier SSID and password, the wireless access point AP immediately reports back to the APP that the configuration information has been successfully received, and then the new service set identifier SSID And the password are sent to the WiFi management module, and the new configuration information is started to provide external wireless network access services; in step 4, the APP reports to
  • Step 6 The terminal device cannot connect to the network using the old service set identifier SSID and password, and will automatically switch to the smartconfig state.
  • the user sends the new service set identifier SSID and password through the APP;
  • Step 7. The user marks the new service set identifier through the APP
  • the SSID and password are sent to the above terminal device through the smartconfig protocol;
  • Step 8 the above terminal device receives the new service set identifier SSID and password sent by the client, and accesses the wireless access point by using the new service set identifier SSID and password AP.
  • Step 9 The above terminal device sends the information that has successfully accessed the network to the cloud server through the MQTT preset management protocol, and the cloud server feeds back the received information that has successfully accessed the network to the client.
  • the synchronization of the network configuration of the terminal device and the wireless access point AP is finally achieved.
  • the wireless network configuration method in the embodiment of the present invention obtains a change instruction for the network configuration information of the target wireless access point AP, where the change instruction carries the changed network configuration information; it is determined that the target wireless access point has been accessed The connection status of the AP's terminal device; update the wireless connection information of the terminal device and the network configuration information of the target wireless access point AP according to the changed network configuration information and the connection status of each terminal device; so that the terminal device is based on the updated
  • the wireless connection information re-establishes a wireless network connection with the wireless access point AP.
  • the network configuration information of the wireless access point AP is uniformly managed by the client.
  • the network configuration information of the old wireless access point AP has not been invalidated.
  • modify the network configuration information of the wireless access point AP so as to ensure that after the password of the wireless access network point is modified, each terminal device Can still access the wireless network smoothly again.
  • FIG. 5 is a first example of a wireless network configuration device provided by an embodiment of the present invention. Schematic diagram of module composition. The wireless network configuration device is used to perform the wireless network configuration method described in FIGS. 1 to 4. As shown in FIG.
  • the device includes: a change instruction acquisition module 501, which is used to acquire a target wireless access point A change instruction of the AP's network configuration information, wherein the change instruction carries the changed network configuration information; a connection state determination module 502 is used to determine the connection of the terminal device that has accessed the target wireless access point AP Status; network information update module 503, for updating the wireless connection information of the terminal device and the target wireless access point AP according to the changed network configuration information and the connection status of each terminal device Network configuration information; so that the terminal device re-establishes a wireless network connection with the wireless access point AP based on the updated wireless connection information.
  • a change instruction acquisition module 501 which is used to acquire a target wireless access point A change instruction of the AP's network configuration information, wherein the change instruction carries the changed network configuration information
  • a connection state determination module 502 is used to determine the connection of the terminal device that has accessed the target wireless access point AP Status
  • network information update module 503 for updating the wireless connection information of the terminal
  • connection status determination module 502 is specifically configured to: send the changed network configuration information to a terminal device that has accessed the target wireless access point AP; determine whether the terminal is received The device's confirmation feedback information for the changed network configuration information; if it is, it is determined that the connection status of the terminal device is online; if not, it is determined that the connection status of the terminal device is offline and will be in The terminal device in the offline state is marked as a device to be configured on the network.
  • connection status includes: online status and offline status, and the terminal device in the offline status is marked as a device to be network configured;
  • the network information update module 503 is specifically used to: The terminal device in the state determines that the update of the wireless connection information of the terminal device has been completed; and, delivers the changed network configuration information to the target wireless access point AP to make the target wireless
  • the access point AP updates its own network configuration information; for the device to be network-configured, generates prompt information indicating that the device to be network-configured is powered on;
  • the device to be network configured sends the changed network configuration information, so that the device to be network configured updates wireless connection information based on the changed network configuration information.
  • the network information update module 503 is further specifically configured to: after determining that the device to be network configured is powered on, send the changed device to the device to be network configured based on a custom management protocol Network configuration information.
  • connection state determination module 502 is specifically configured to: if the client and the target wireless access point AP are in the same network, then to the target wireless access based on a preset management protocol
  • the terminal device of the point AP sends the changed network configuration information; if the client and the target wireless access point AP are on different networks, the changed network configuration information is sent to the cloud server based on a preset management protocol , So that the cloud server sends the changed network configuration information to the terminal device that has accessed the target wireless access point AP based on the preset management protocol; according to the terminal device for the changed Confirmation and feedback of network configuration information to determine the connection status of each terminal device.
  • the apparatus further includes a feedback information receiving module 504, configured to: receive confirmation feedback information about the changed network configuration information sent by the network configuration device; determine The update of the wireless connection information of the device to be network configured has been completed.
  • the wireless network configuration device in the embodiment of the present invention includes: a change instruction acquisition module 501 for acquiring a change instruction for the network configuration information of the target wireless access point AP, wherein the change instruction carries the changed network Configuration information; connection status determination module 502, used to determine the connection status of the terminal device that has access to the target wireless access point AP; network information update module 503, used according to the changed network configuration information and each The connection status of the terminal device, updating the wireless connection information of the terminal device and the network configuration information of the target wireless access point AP; so that the terminal device is based on the updated wireless connection information and the The wireless access point AP re-establishes the wireless network connection.
  • the network configuration information of the wireless access point AP is uniformly managed by the client.
  • the network configuration information of the old wireless access point AP has not been invalidated.
  • each terminal device After each terminal device is ready, modify the network configuration information of the wireless access point AP, so as to ensure that after the password of the wireless access network point is modified, each terminal device Can still access the wireless network smoothly again.
  • the wireless network configuration apparatus provided by the embodiment of the present invention can implement various processes in the embodiments corresponding to the foregoing wireless network configuration method, and to avoid repetition, details are not described herein again.
  • the wireless network configuration apparatus provided in this embodiment of the present invention is based on the same inventive concept as the wireless network configuration method provided in this embodiment of the present invention, so for the specific implementation of this embodiment, refer to the implementation of the foregoing wireless network configuration method, and repeat I will not repeat them here.
  • an embodiment of the present invention provides a network device.
  • the network device includes a processor 110, a transceiver 120, a memory 130, and a bus interface.
  • the network device 100 further includes: a computer program stored on the memory 130 and executable on the processor 110, and when the computer program is executed by the processor 110, the above wireless network is realized
  • a computer program stored on the memory 130 and executable on the processor 110, and when the computer program is executed by the processor 110, the above wireless network is realized
  • the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by the processor 110 and various circuits of the memory represented by the memory 130 are linked together.
  • the bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, etc., which are well known in the art, and therefore, they will not be further described in this article.
  • the bus interface provides an interface.
  • the transceiver 120 may be a plurality of elements, including a transmitter and a receiver, and provides a unit for communicating with various other devices on a transmission medium.
  • the processor 110 is responsible for managing the bus architecture and general processing, and the memory 130 may store data used by the processor 110 when performing operations.
  • Embodiments of the present invention also provide a computer-readable storage medium, which stores a computer program on the computer-readable storage medium.
  • the computer program is executed by a processor, the processes of the foregoing method embodiments are implemented, and the same technical effect can be achieved. To avoid repetition, I will not repeat them here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • an embodiment of the present invention also provides a computer program product.
  • the computer program product includes a computer program stored on a non-transitory computer-readable storage medium.
  • the computer program includes program instructions. When the program instructions are When executed by a computer, the computer is caused to execute the method in any of the above method embodiments.
  • the methods in the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware, but in many cases the former is better Implementation.
  • the technical solution of the present invention can be embodied in the form of a software product in essence or part that contributes to the existing technology, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk,
  • the CD-ROM includes several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例提供了一种无线网络配置方法及装置,获取针对目标无线接入点AP的网络配置信息的变更指令,其中,变更指令中携带有变更后的网络配置信息;确定已接入目标无线接入点AP的终端设备的连接状态;根据变更后的网络配置信息和各终端设备的连接状态,更新终端设备的无线连接信息和目标无线接入点AP的网络配置信息。

Description

一种无线网络配置方法及装置
交叉引用
本发明要求在2018年12月24日提交中国专利局、申请号为201811583065.8、发明名称为“一种无线网络配置方法及装置”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。
技术领域
本发明涉及网络通信技术领域,尤其涉及一种无线网络配置方法及装置。
背景技术
WLAN是Wireless Local Area Network的缩写,指应用无线通信技术将计算机设备互联起来,构成可以互相通信和实现资源共享的网络体系。无线局域网本质的特点是不再使用通信电缆将计算机与网络连接起来,而是通过无线的方式连接,从而使网络的构建和终端的移动更加灵活。为了保证局域网的安全性,无线网络中的无线接入点AP设备都设置了密码来校验接入设备的合法性。
现有的无线接入点AP设备一般会提供web页面或者APP来设置无线网络的服务集标识(简称SSID)和密码。但是,这些修改密码的方式仅限于修改无线接入点AP自身的SSID和密码,并不会同步给已经接入该无线接入点AP的所有终端设备,这就会导致每次更改了无线接入点AP设备的SSID或者密码后,其他原先正常接入该无线网络的所有终端设备,都会因为密码错误而无法接入到网络。在这种情况下,重新配置终端设备的网络是一个繁琐的操作。如无线摄像头等设备可能会安装在天花板或者其他难以接触到的位置,难以进行恢复出厂、WiFi WPS接入等操作,从而导致很难对这些终端设备的网络进行配置。
发明内容
本发明实施例的目的是提供一种无线网络配置方法及装置,以解决现有的修改无线接入点AP的SSID和密码时,仅局限于修改其自身的SSID和密 码,并不会同步给已经接入该无线接入点AP的所有终端设备,导致当每次更改无线接入点AP设备的SSID或者密码后,都要重新配置终端设备的网络所带来的不便的问题。
为了解决上述技术问题,本发明实施例是这样实现的:第一方面,本发明实施例提供了一种无线网络配置方法,包括:获取针对目标无线接入点AP的网络配置信息的变更指令,其中,所述变更指令中携带有变更后的网络配置信息;确定已接入所述目标无线接入点AP的终端设备的连接状态;根据所述变更后的网络配置信息和各所述终端设备的所述连接状态,更新所述终端设备的无线连接信息和所述目标无线接入点AP的网络配置信息。
第二方面,本发明实施例提供了一种无线网络配置装置,包括:变更指令获取模块,用于获取针对目标无线接入点AP的网络配置信息的变更指令,其中,所述变更指令中携带有变更后的网络配置信息;连接状态确定模块,用于确定已接入所述目标无线接入点AP的终端设备的连接状态;网络信息更新模块,用于根据所述变更后的网络配置信息和各所述终端设备的所述连接状态,更新所述终端设备的无线连接信息和所述目标无线接入点AP的网络配置信息。
第三方面,本发明实施例提供了一种网络设备,包括存储器、处理器及在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时,实现如第一方面所述的无线网络配置方法的步骤。
第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的无线网络配置方法的步骤。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员 来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的无线网络配置方法的第一种流程示意图;
图2为本发明实施例提供的无线网络配置方法的第二种流程示意图;
图3为本发明实施例提供的无线网络配置方法的第一种实施例示意图;
图4为本发明实施例提供的无线网络配置方法的第二种实施例示意图;
图5为本发明实施例提供的无线网络配置装置的第一种模块组成示意图;
图6为本发明实施例提供的无线网络配置装置的第二种模块组成示意图;
图7为本发明实施例提供的网络设备的模块组成示意图。
具体实施方式
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
本发明实施例提供了一种无线网络配置方法及装置,通过客户端统一管理无线接入点AP的网络配置信息,当用户需要修改无线接入点AP的网络配置信息时,在旧的无线接入点AP的网络配置信息尚未失效前,先对连接无线接入点AP的终端设备进行处理,待各终端设备准备就绪后,再修改无线接入点AP的网络配置信息,从而保证无线接入网点的密码修改后,各终端设备仍能顺畅的再次接入无线网络中。
图1为本发明实施例提供的无线网络配置方法的第一种流程示意图,其中该方法中的执行主体为客户端,客户端包括但不限于iOS、Android、WP等***;本发明实施例中的无线接入点AP包括但不限于无线路由器、家庭网关等;终端设备包括但不限于智能手机、网络摄像机、智能门锁等;如图1所示,该方法至少包括以下步骤。
S101,获取针对目标无线接入点AP的网络配置信息的变更指令,其中,变更指令中携带有变更后的网络配置信息,其中,该变更后的网络配置信息包括:变更后的无线网络的服务集标识SSID和无线密码;具体的,为了保证局域网的安全性,无线网络中的无线接入点AP设备都设置了密码来校验接入设备的合法性,当用户需要更改无线接入点AP的服务集标识SSID和密码时,用户直接通过客户端上的应用程序APP,在无线接入点AP的WiFi网络配置页面输入新的服务集标识SSID和密码,APP接收到针对目标接入点AP的新的服务集标识SSID和密码。
S102,确定已接入目标无线接入点AP的终端设备的连接状态;具体的,当APP接收到用户针对目标接入点AP的新的服务集标识SSID和密码后,暂时不修改目标接入点AP的网络配置信息,而是先通过客户端或者服务器查询所有连接在该目标无线接入点AP的所有终端设备,并确定出当前上述终端设备在该目标接入点AP下的,处于在现状态的终端设备和处于离线状态下的终端设备。
S103,根据变更后的网络配置信息和各终端设备的连接状态,更新终端设备的无线连接信息和目标无线接入点AP的网络配置信息;以使终端设备基于更新后的无线连接信息与无线接入点AP重新建立无线网络连接。
具体的,针对上述处于在线状态的终端设备,用户通过APP将新的服务集标识SSID和密码通过管理协议,发送给该在线终端设备;针对上述处于离线状态的终端设备,由于该处于离线状态的终端设备暂时无法接收新的网络配置信息,用户通过APP将其设置为待网络配置状态;当处理完连接在该目标无线接入点AP下的所有终端设备后,用户才通过APP通过预设管理协议将目标无线接入点AP的网络配置信息修改为新的新的服务集标识SSID和密码。
由于目标服务集标识SSID和密码的改变,原先处于在线状态的终端设备将会断开网络连接,此时,这些处于在线状态的终端设备将尝试使用接收 到的新的服务集标识SSID和密码接入网络。
原本处于离线状态的终端设备,由于未获得新的服务集标识SSID和密码,下次上电时,将会继续使用旧的服务集标识SSID和密码,从而导致无法接入网络。这种情况下,该处于离线状态的终端设备将自动切换到网络配置状态。此时,由APP通过自定义管理协议将新的服务集标识SSID和密码发送给该设备。
本发明实施例中,通过客户端统一管理无线接入点AP的网络配置信息,当用户需要修改无线接入点AP的网络配置信息时,在旧的无线接入点AP的网络配置信息尚未失效前,先对连接无线接入点AP的终端设备进行处理,待各终端设备准备就绪后,再修改无线接入点AP的网络配置信息,从而保证无线接入网点的密码修改后,各终端设备仍能顺畅的再次接入无线网络中。
其中,针对确定已接入目标无线接入点AP的终端设备连接状态的过程,上述S102确定已接入目标无线接入点AP的终端设备的连接状态,包括以下步骤。步骤一,向已接入目标无线接入点AP的终端设备发送变更后的网络配置信息;步骤二,判断是否接收到终端设备的针对变更后的网络配置信息的确认反馈信息;步骤三,若是,则确定终端设备的连接状态为在线状态;步骤四,若否,则确定终端设备的连接状态为离线状态,并将处于离线状态的终端设备标记为待网络配置设备。
具体的,当客户端与目标接入点AP处于同一网络时,客户端通过预设管理协议向连接目标无线接入点AP的所有终端设备发送变更后的网络配置信息,若上述终端设备处于在线状态,则当其收到变更后的网络配置信息并保存在本地后,会通过预设管理协议向客户端发送已收到变更后的网络配置信息的反馈信息;用户通过客户端接收到的反馈信息,确定处于在线状态的终端设备。若终端设备处于离线状态,则其无法接收客户端通过预设管理协议向其发送变更后的网络配置信息,客户端通过超时机制侦测到该设备终端处于离线状态,客户端将该处于离线状态的终端设备的数据置为待网络配置 状态,并将处于离线状态的终端设备标记为待网络配置设备。
当客户端与目标接入点AP处于不同的网络时,客户端通过预设管理协议将变更的网络配置信息发送至云服务器,云服务器再将接收到的变更的网络配置信息发送至连接目标无线接入点AP的所有终端设备;若上述终端设备处于在线状态,则当其接收到变更后的网络配置信息并保存在本地后,通过预设管理协议将已收到变更后的网络配置信息的反馈信息发送至云服务器,云服务器再将接收到的上述终端设备发送的,已收到变更后的网络配置信息的反馈信息发送至客户端,用户通过客户端接收到的反馈信息,确定处于在线状态的终端设备。若终端设备处于离线状态,则无法接收客户端向其发送的变更后的网络配置信息,客户端通过超时机制侦测到该设备终端处于离线状态,客户端将该处于离线状态下的终端设备在云服务器中的数据置为待网络配置状态,并将处于离线状态的终端设备标记为待网络配置设备。
其中,上述连接状态包括:在线状态和离线状态,且处于离线状态的终端设备被标记为待网络配置设备;如图2所示,上述S103根据变更后的网络配置信息和各终端设备的连接状态,更新终端设备的无线连接信息和目标无线接入点AP的网络配置信息,包括以下步骤。
S1031,针对处于在线状态的终端设备,确定已完成终端设备的无线连接信息的更新;以及,将变更后的网络配置信息下发给目标无线接入点AP,以使目标无线接入点AP更新自身的网络配置信息;具体的,针对处于在线状态的终端设备,当客户端与目标接入点AP处于同一网络时,当上述终端设备接收到变更后的网络配置信息后,通过预设管理协议向客户端发送已收到变更后的网络配置信息的反馈信息,用户通过客户端接收反馈信息,确定已完成终端设备的无线连接信息的更新,将变更后的网络配置信息通过预设管理协议发送给目标无线接入点AP,以使目标无线接入点AP更新自身的网络配置信息;当客户端与目标接入点AP处于不同的网络时,当上述终端设备接收到变更后的网络配置信息后,通过预设管理协议将已收到变更后的网络 配置信息的反馈信息发送至云服务器,云服务器再将接收到的上述终端设备发送的反馈信息发送至客户端,用户通过客户端接收反馈信息,确定已完成终端设备的无线连接信息的更新,将变更后的网络配置信息通过预设管理协议发送给云服务器,云服务器再将接收到的变更后的网络配置信息通过预设管理协议发送给目标无线接入点AP,以使目标无线接入点AP更新自身的网络配置信息。
S1032,针对待网络配置设备,生成用于指示为待网络配置设备上电的提示信息;在确定待网络配置设备上电完成后,向待网络配置设备发送变更后的网络配置信息,以使待网络配置设备基于变更后的网络配置信息更新无线连接信息。
具体的,针对待网络配置设备,当客户端与目标接入点AP处于同一网络时,由于上述终端设备无法接收客户端通过预设管理协议向其发送的变更后的网络配置信息,客户端通过超时机制侦测到该设备终端处于离线状态,客户端生成用于指示为上述终端设备上电的提示信息,提示用户为上述设备上电,当用户为上述终端设备接通电源后,通过自定义管理协议向上述终端设备发送变更后的网络配置信息,以使待网络配置设备基于变更后的网络配置信息更新无线连接信息。
当客户端与目标接入点AP处于不同的网络时,由于上述终端设备无法接收客户端通过云服务器向其发送的变更后的网络配置信息,客户端通过超时机制侦测到该设备终端处于离线状态,生成用于指示为上述终端设备上电的提示信息,提示用户为上述终端设备上电,当用户为上述终端设备接通电源后,通过自定义管理协议向上述终端设备发送变更后的网络配置信息,以使待网络配置设备基于变更后的网络配置信息更新无线连接信息。
其中,上述S1032在确定待网络配置设备上电完成后,向待网络配置设备发送变更后的网络配置信息,包括:在确定待网络配置设备上电完成后,基于自定义管理协议向待网络配置设备发送变更后的网络配置信息,其中上 述自定义管理协议可以为消息队列遥测传输smartconfig等协议。
具体的,当用户给待网络配置设备接通电源后,上述终端设备尝试使用旧的服务集标识SSID和密码连接网络,发现连接失败后,将自动切换到smartconfig状态,客户端通过smartconfig协议将新的服务集标识SSID和密码发送给上述终端设备。
其中,在上述S102确定已接入目标无线接入点AP的终端设备的连接状态之前,还包括:若客户端与目标无线接入点AP处于同一网络,则基于预设管理协议向已接入目标无线接入点AP的终端设备发送变更后的网络配置信息,其中,上述预设管理协议包括但不限于TCP+Json、http、MQTT、websocket等预设管理协议;若客户端与目标无线接入点AP处于不同网络,则基于预设管理协议将变更后的网络配置信息发送给云服务器,以使云服务器基于预设管理协议向已接入目标无线接入点AP的终端设备发送变更后的网络配置信息,其中,上述预设管理协议包括但不限于TCP+Json、http、MQTT、websocket等预设管理协议;其中,上述S102确定已接入目标无线接入点AP的终端设备的连接状态,包括:根据终端设备针对变更后的网络配置信息的确认反馈情况,确定各终端设备的连接状态。
具体的,当客户端向已接入目标无线接入点AP的终端设备发送变更后的网络配置信息后,若接收到上述终端设备针对变更后的网络配置信息的确认反馈信息,则确认该终端设备处于在线状态;若未收到上述终端设备针对变更后的网络配置信息的确认反馈信息,则确认该终端设备处于离线状态,并对该终端设备标记为待网络配置设备。
其中,上述S1032在确定待网络配置设备上电完成后,向待网络配置设备发送变更后的网络配置信息之后,还包括以下步骤。步骤一,接收待网络配置设备发送的针对变更后的网络配置信息的确认反馈信息;步骤二,确定已完成待网络配置设备的无线连接信息的更新。
具体的,当客户端与目标接入点AP处于同一网络时,当用户给待网络 配置设备接通电源,并将变更后的网络配置信息发送给待网络配置设备后,上述待网络配置设备通过预设管理协议向客户端发送成功接入网络的反馈信息,客户端接收到上述反馈信息后,确定已完成待网络配置设备的无线连接信息的更新。
当客户端与目标接入点AP处于不同的网络时,当用户给待网络配置设备接通电源,并将变更后的网络配置信息发送给待网络配置设备后,上述待网络配置设备通过预设管理协议将成功接入网络的反馈信息发送至云服务器,云服务器接收到上述反馈信息后,将上述反馈信息通过预设管理协议发送至客户端,客户端接收到上述反馈信息后,确定已完成待网络配置设备的无线连接信息的更新。
在一个具体实施例中,如图3所示,当客户端与无线接入点处于同一个网络中,且使用的TCP+Json预设管理协议,当用户需要更改无线接入点AP的配置信息时,无线网络配置过程具体包括:用户通过客户端上的应用程序APP修改无线接入点AP的配置信息,为无线接入点AP配置新的服务集标识SSID和密码,APP获取到新的服务集标识SSID和密码后,暂时不修改无线接入点AP的配置信息,先查询连接在该目标无线接入点AP下的所有终端设备是否在线,确定出处于在线状态的终端设备,和处于离线状态的终端设备;对于处于在线状态下的上述终端设备:步骤一,APP执行命令时,先将新的服务集标识SSID和密码通过TCP+Json预设管理协议发送给上述在线的终端设备,上述终端设备在接收到新的服务集标识SSID和密码后,将其存放在本地;步骤二,上述终端设备通过TCP+Json预设管理协议向APP反馈已收到新的服务集标识SSID和密码的反馈信息;步骤三,接收上述终端设备通过TCP+Json预设管理协议发送的已收到新的服务集标识SSID和密码的反馈信息;步骤四,APP通过TCP+Json预设管理协议将新的服务集标识SSID和密码发送至无线接入点AP;步骤五,无线接入点AP接收到新的服务集标识SSID和密码后,立即向APP反馈已成功收到配置信息,并将收到的新的 服务集标识SSID和密码发送到WiFi管理模块,无线接入点AP的WiFi模块启用新的服务集标识SSID和密码,对外提供无线网络接入服务;步骤六,APP向用户反馈已经成功将无线接入点AP的SSID和密码修改为新的服务集标识SSID和密码;步骤七,上述终端设备继续使用旧的服务集标识SSID和密码接入网络,当发现网络中断后,尝试使用之前记录的新的服务集标识SSID和密码接入无线接入点AP;步骤八、无线接入点AP校验密码,并与上述终端设备建立链接,允许上述终端设备访问无线网络,最终实现上述终端设备平滑接入网络中。
对于处于离线状态下的上述终端设备:步骤一,APP执行命令时,先将新的服务集标识SSID和密码通过TCP+Json预设管理协议发送给上述终端设备,由于上述终端设备处于离线状态,无法接收新的服务集标识SSID和密码,APP侧通过超时机制侦测到上述终端设备离线;步骤二,APP将上述终端设备的数据置为待网络配置状态,同时将新的服务集标识SSID和密码发送给无线接入点AP;步骤三,无线接入点AP收到新的服务集标识SSID和密码后,立即向APP反馈已成功收到配置信息,之后将新的服务集标识SSID和密码发送到WiFi管理模块,开始启用新配置信息对外提供无线网络接入服务;步骤四,APP向用户反馈已经将无线接入点AP的旧服务集标识SSID和密码修改为新的服务集标识SSID和密码,并提醒用户上述终端设备处于离线状况,可能需要上电;步骤五,用户为上述终端设备接通电源。步骤六,终端设备使用旧的服务集标识SSID和密码无法连接网络,将自动切换到smartconfig状态,用户通过APP发送新的服务集标识SSID和密码;步骤七,用户通过APP将新的服务集标识SSID和密码通过smartconfig协议发送给上述终端设备;步骤八、上述终端设备接收到APP发送的新的服务集标识SSID和密码,并通过使用新的服务集标识SSID和密码接入无线接入点AP。步骤九、上述终端设备通过TCP+Json协议将已经成功接入网络的信息反馈给APP。通过以上步骤,最终实现终端设备和无线接入点AP的网络配置的同步更新。
在一个具体实施例中,如图4所示,当客户端与无线接入点处于不同的网络中,且使用的MQTT预设管理协议,当用户需要更改无线接入点AP的配置信息时,无线网络配置过程具体包括:用户通过APP修改无线接入点AP的配置信息,为无线接入点AP配置新的服务集标识SSID和密码,APP获取到新的服务集标识SSID和密码后,暂时不修改无线接入点AP的配置信息,先查询连接在该目标无线接入点AP下的所有终端设备是否在线,确定出处于在线状态的终端设备,和处于离线状态的终端设备;对于处于在线状态下的上述终端设备:步骤一,APP执行命令时,先将新的服务集标识SSID和密码通过MQTT预设管理协议发送给上述在线的终端设备,上述终端设备在接收到新的服务集标识SSID和密码后,将其存放在本地;步骤二,上述终端设备通过MQTT预设管理协议将已收到新的服务集标识SSID和密码的反馈信息发送云服务器,云服务器将接收到的反馈信息通过MQTT预设管理协议发送至APP;步骤三,APP接收上述终端设备通过MQTT预设管理协议发送的已收到新的服务集标识SSID和密码的反馈信息;步骤四,APP通过MQTT预设管理协议将新的服务集标识SSID和密码发送至云服务器,云服务器通过MQTT预设管理协议将接收到的新的服务集标识SSID和密码发送至无线接入点AP;步骤五,无线接入点AP接收到新的服务集标识SSID和密码后,立即向APP反馈已成功收到配置信息,并将收到的新的服务集标识SSID和密码发送到WiFi管理模块,无线接入点AP的WiFi模块启用新的服务集标识SSID和密码,对外提供无线网络接入服务;步骤六,APP向用户反馈已经成功将无线接入点AP的SSID和密码修改为新的服务集标识SSID和密码;步骤七,上述终端设备继续使用旧的服务集标识SSID和密码接入网络,当发现网络中断后,尝试使用之前记录新的新的服务集标识SSID和密码接入无线接入点AP;步骤八、无线接入点AP校验密码,并与上述终端设备建立链接,允许上述终端设备访问无线网络,最终实现上述终端设备平滑接入网络中。
对于处于离线状态下的上述终端设备:步骤一,APP执行命令时,先将新的服务集标识SSID和密码通过MQTT预设管理协议发送给上述终端设备,由于上述终端设备处于离线状态,无法接收新的服务集标识SSID和密码,APP侧通过超时机制侦测到上述终端设备离线;步骤二,APP将上述终端设备在云服务器上的数据置为待网络配置状态,同时将新的服务集标识SSID和密码发送给无线接入点AP;步骤三,无线接入点AP收到新的服务集标识SSID和密码后,立即向APP反馈已成功收到配置信息,之后将新的服务集标识SSID和密码发送到WiFi管理模块,开始启用新配置信息对外提供无线网络接入服务;步骤四,APP向用户反馈已经将无线接入点AP的旧服务集标识SSID和密码修改为新的服务集标识SSID和密码,并提醒用户上述终端设备处于离线状况,可能需要上电;步骤五,用户为上述终端设备接通电源。步骤六,终端设备使用旧的服务集标识SSID和密码无法连接网络,将自动切换到smartconfig状态,用户通过APP发送新的服务集标识SSID和密码;步骤七,用户通过APP将新的服务集标识SSID和密码通过smartconfig协议发送给上述终端设备;步骤八,上述终端设备接收到客户端发送的新的服务集标识SSID和密码,并通过使用新的服务集标识SSID和密码接入无线接入点AP。步骤九,上述终端设备通过MQTT预设管理协议将已经成功接入网络的信息发送至云服务器,云服务器将接收到的已经成功接入网络的信息反馈给客户端。通过以上步骤,最终实现终端设备和无线接入点AP的网络配置的同步更新。
本发明实施例中的无线网络配置方法,获取针对目标无线接入点AP的网络配置信息的变更指令,其中,变更指令中携带有变更后的网络配置信息;确定已接入目标无线接入点AP的终端设备的连接状态;根据变更后的网络配置信息和各终端设备的连接状态,更新终端设备的无线连接信息和目标无线接入点AP的网络配置信息;以使终端设备基于更新后的无线连接信息与无线接入点AP重新建立无线网络连接。本发明实施例中,通过客户端统一 管理无线接入点AP的网络配置信息,当用户需要修改无线接入点AP的网络配置信息时,在旧的无线接入点AP的网络配置信息尚未失效前,先对连接无线接入点AP的终端设备进行处理,待各终端设备准备就绪后,再修改无线接入点AP的网络配置信息,从而保证无线接入网点的密码修改后,各终端设备仍能顺畅的再次接入无线网络中。
对应上述实施例提供的无线网络配置方法,基于相同的技术构思,本发明实施例还提供了一种无线网络配置装置,图5为本发明实施例提供的一种无线网络配置装置的第一种模块组成示意图,该基于无线网络配置装置用于执行图1至图4描述的无线网络配置方法,如图5所示,该装置包括:变更指令获取模块501,用于获取针对目标无线接入点AP的网络配置信息的变更指令,其中,所述变更指令中携带有变更后的网络配置信息;连接状态确定模块502,用于确定已接入所述目标无线接入点AP的终端设备的连接状态;网络信息更新模块503,用于根据所述变更后的网络配置信息和各所述终端设备的所述连接状态,更新所述终端设备的无线连接信息和所述目标无线接入点AP的网络配置信息;以使所述终端设备基于更新后的所述无线连接信息与所述无线接入点AP重新建立无线网络连接。
在一实施例中,所述连接状态确定模块502,具体用于:向已接入所述目标无线接入点AP的终端设备发送所述变更后的网络配置信息;判断是否接收到所述终端设备的针对所述变更后的网络配置信息的确认反馈信息;若是,则确定所述终端设备的连接状态为在线状态;若否,则确定所述终端设备的连接状态为离线状态,并将处于离线状态的所述终端设备标记为待网络配置设备。
在一实施例中,所述连接状态包括:在线状态和离线状态,且处于离线状态的所述终端设备被标记为待网络配置设备;所述网络信息更新模块503,具体用于:针对处于在线状态的所述终端设备,确定已完成所述终端设备的无线连接信息的更新;以及,将所述变更后的网络配置信息下发给所述目标 无线接入点AP,以使所述目标无线接入点AP更新自身的网络配置信息;针对所述待网络配置设备,生成用于指示为所述待网络配置设备上电的提示信息;在确定所述待网络配置设备上电完成后,向所述待网络配置设备发送所述变更后的网络配置信息,以使所述待网络配置设备基于所述变更后的网络配置信息更新无线连接信息。
在一实施例中,所述网络信息更新模块503,进一步具体用于:在确定所述待网络配置设备上电完成后,基于自定义管理协议向所述待网络配置设备发送所述变更后的网络配置信息。
在一实施例中,所述连接状态确定模块502,具体用于:若客户端与所述目标无线接入点AP处于同一网络,则基于预设管理协议向已接入所述目标无线接入点AP的终端设备发送所述变更后的网络配置信息;若客户端与所述目标无线接入点AP处于不同网络,则基于预设管理协议将所述变更后的网络配置信息发送给云服务器,以使所述云服务器基于所述预设管理协议向已接入所述目标无线接入点AP的终端设备发送所述变更后的网络配置信息;根据所述终端设备针对所述变更后的网络配置信息的确认反馈情况,确定各所述终端设备的连接状态。
在一实施例中,如图6所示,所述装置还包括反馈信息接收模块504,用于:接收所述待网络配置设备发送的针对所述变更后的网络配置信息的确认反馈信息;确定已完成所述待网络配置设备的无线连接信息的更新。
本发明实施例中的无线网络配置装置,包括:变更指令获取模块501,用于获取针对目标无线接入点AP的网络配置信息的变更指令,其中,所述变更指令中携带有变更后的网络配置信息;连接状态确定模块502,用于确定已接入所述目标无线接入点AP的终端设备的连接状态;网络信息更新模块503,用于根据所述变更后的网络配置信息和各所述终端设备的所述连接状态,更新所述终端设备的无线连接信息和所述目标无线接入点AP的网络配置信息;以使所述终端设备基于更新后的所述无线连接信息与所述无线接 入点AP重新建立无线网络连接。本发明实施例中,通过客户端统一管理无线接入点AP的网络配置信息,当用户需要修改无线接入点AP的网络配置信息时,在旧的无线接入点AP的网络配置信息尚未失效前,先对连接无线接入点AP的终端设备进行处理,待各终端设备准备就绪后,再修改无线接入点AP的网络配置信息,从而保证无线接入网点的密码修改后,各终端设备仍能顺畅的再次接入无线网络中。
本发明实施例提供的无线网络配置装置能够实现上述无线网络配置方法对应的实施例中的各个过程,为避免重复,这里不再赘述。
需要说明的是,本发明实施例提供的无线网络配置装置与本发明实施例提供的无线网络配置方法基于同一发明构思,因此该实施例的具体实施可以参见前述无线网络配置方法的实施,重复之处不再赘述。
相应于本发明实施例提供的一种无线网络配置方法及装置,本发明实施例提供一种网络设备,参见图7所示,网络设备包括处理器110、收发机120、存储器130和总线接口。其中:在本发明实施例中,网络设备100还包括:存储在存储器130上并可在所述处理器110上运行的计算机程序,所述计算机程序被所述处理器110执行时实现上述无线网络配置方法中的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
在图7中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器110代表的一个或多个处理器和存储器130代表的存储器的各种电路链接在一起。总线架构还可以将诸如***设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机120可以是多个元件,即包括发送机和接收机,提供用于在传输介质上与各种其他装置通信的单元。
处理器110负责管理总线架构和通常的处理,存储器130可以存储处理器110在执行操作时所使用的数据。
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上 存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
此外,本发明实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意方法实施例中的方法。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。

Claims (12)

  1. 一种无线网络配置方法,其中,包括:
    获取针对目标无线接入点AP的网络配置信息的变更指令,其中,所述变更指令中携带有变更后的网络配置信息;
    确定已接入所述目标无线接入点AP的终端设备的连接状态;
    根据所述变更后的网络配置信息和各所述终端设备的所述连接状态,更新所述终端设备的无线连接信息和所述目标无线接入点AP的网络配置信息。
  2. 根据权利要求1所述的方法,其中,所述连接状态包括:在线状态和离线状态,且处于离线状态的所述终端设备被标记为待网络配置设备;
    所述根据所述变更后的网络配置信息和各所述终端设备的所述连接状态,更新所述终端设备的无线连接信息和所述目标无线接入点AP的网络配置信息,包括:
    针对处于在线状态的所述终端设备,确定已完成所述终端设备的无线连接信息的更新;以及,
    将所述变更后的网络配置信息下发给所述目标无线接入点AP,以使所述目标无线接入点AP更新自身的网络配置信息;
    针对所述待网络配置设备,生成用于指示为所述待网络配置设备上电的提示信息;在确定所述待网络配置设备上电完成后,向所述待网络配置设备发送所述变更后的网络配置信息,以使所述待网络配置设备基于所述变更后的网络配置信息更新无线连接信息。
  3. 根据权利要求2所述的方法,其中,所述在确定所述待网络配置设备上电完成后,向所述待网络配置设备发送所述变更后的网络配置信息,包括:
    在确定所述待网络配置设备上电完成后,基于自定义管理协议向所述待网络配置设备发送所述变更后的网络配置信息。
  4. 根据权利要求1所述的方法,其中,在确定已接入所述目标无线接入点AP的终端设备的连接状态之前,还包括:
    若客户端与所述目标无线接入点AP处于同一网络,则基于预设管理协议向已接入所述目标无线接入点AP的终端设备发送所述变更后的网络配置信息;
    若客户端与所述目标无线接入点AP处于不同网络,则基于预设管理协议将所述变更后的网络配置信息发送给云服务器,以使所述云服务器基于所述管理协议向已接入所述目标无线接入点AP的终端设备发送所述变更后的网络配置信息;
    所述确定已接入所述目标无线接入点AP的终端设备的连接状态,包括:
    根据所述终端设备针对所述变更后的网络配置信息的确认反馈情况,确定各所述终端设备的连接状态。
  5. 根据权利要求2所述的方法,其中,在确定所述待网络配置设备上电完成后,向所述待网络配置设备发送所述变更后的网络配置信息之后,还包括:
    接收所述待网络配置设备发送的针对所述变更后的网络配置信息的确认反馈信息;
    确定已完成所述待网络配置设备的无线连接信息的更新。
  6. 一种无线网络配置装置,其中,包括:
    变更指令获取模块,用于获取针对目标无线接入点AP的网络配置信息的变更指令,其中,所述变更指令中携带有变更后的网络配置信息;
    连接状态确定模块,用于确定已接入所述目标无线接入点AP的终端设备的连接状态;
    网络信息更新模块,用于根据所述变更后的网络配置信息和各所述终端设备的所述连接状态,更新所述终端设备的无线连接信息和所述目标无线接入点AP的网络配置信息。
  7. 根据权利要求6所述的装置,其中,所述连接状态包括:在线状态和离线状态,且处于离线状态的所述终端设备被标记为待网络配置设备;所述 网络信息更新模块,用于:
    针对处于在线状态的所述终端设备,确定已完成所述终端设备的无线连接信息的更新;以及,
    将所述变更后的网络配置信息下发给所述目标无线接入点AP,以使所述目标无线接入点AP更新自身的网络配置信息;
    针对所述待网络配置设备,生成用于指示为所述待网络配置设备上电的提示信息;在确定所述待网络配置设备上电完成后,向所述待网络配置设备发送所述变更后的网络配置信息,以使所述待网络配置设备基于所述变更后的网络配置信息更新无线连接信息。
  8. 根据权利要求7所述的装置,其中,所述网络信息更新模块,进一步用于:
    在确定所述待网络配置设备上电完成后,基于自定义管理协议向所述待网络配置设备发送所述变更后的网络配置信息。
  9. 根据权利要求6所述的装置,其中,所述连接状态确定模块,用于:
    若客户端与所述目标无线接入点AP处于同一网络,则基于预设管理协议向已接入所述目标无线接入点AP的终端设备发送所述变更后的网络配置信息;
    若客户端与所述目标无线接入点AP处于不同网络,则基于预设管理协议将所述变更后的网络配置信息发送给云服务器,以使所述云服务器基于所述管理协议向已接入所述目标无线接入点AP的终端设备发送所述变更后的网络配置信息;
    根据所述终端设备针对所述变更后的网络配置信息的确认反馈情况,确定各所述终端设备的连接状态。
  10. 根据权利要求7所述的装置,其中,所述装置还包括反馈信息接收模块,用于:
    接收所述待网络配置设备发送的针对所述变更后的网络配置信息的确认 反馈信息;
    确定已完成所述待网络配置设备的无线连接信息的更新。
  11. 一种网络设备,其中,包括存储器、处理器及在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时,实现权利要求1-5任一项所述的无线网络配置方法。
  12. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-5任一项所述的无线网络配置方法。
PCT/CN2019/127569 2018-12-24 2019-12-23 一种无线网络配置方法及装置 WO2020135355A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811583065.8 2018-12-24
CN201811583065.8A CN111356149A (zh) 2018-12-24 2018-12-24 一种无线网络配置方法及装置

Publications (1)

Publication Number Publication Date
WO2020135355A1 true WO2020135355A1 (zh) 2020-07-02

Family

ID=71127688

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/127569 WO2020135355A1 (zh) 2018-12-24 2019-12-23 一种无线网络配置方法及装置

Country Status (2)

Country Link
CN (1) CN111356149A (zh)
WO (1) WO2020135355A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022060506A1 (en) * 2020-09-18 2022-03-24 Arris Enterprises Llc Voice based interface for residential gateways and access point devices

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965554B (zh) * 2020-07-02 2023-06-23 北京神州数码云科信息技术有限公司 一种基于mqtt协议获取无线上网终端信息的方法
CN111934956B (zh) * 2020-07-10 2022-03-29 青岛易来智能科技股份有限公司 设备的配置方法、装置、存储介质及电子装置
CN112188593B (zh) * 2020-09-30 2023-06-16 海尔优家智能科技(北京)有限公司 无线配置方法及装置、存储介质、电子装置
CN112260863B (zh) * 2020-10-15 2024-05-14 腾讯科技(深圳)有限公司 组织级别的网络设备连接管理方法、装置和计算机设备
CN113709846A (zh) * 2020-10-27 2021-11-26 天翼智慧家庭科技有限公司 用于自动触发用户装备的无感配网的方法和设备
CN112565052B (zh) * 2020-11-30 2022-09-20 锐捷网络股份有限公司 一种无线网桥的连接方法、配置设备、ap及cpe
CN112688811B (zh) * 2020-12-22 2023-03-24 北京天融信网络安全技术有限公司 无线局域网络管理方法、装置、设备和存储介质
CN113038521B (zh) * 2021-05-03 2023-03-28 中山劢联电子科技有限公司 无线通信网络设备的一种网络配置触发方法
CN115580397A (zh) * 2021-06-30 2023-01-06 青岛海尔科技有限公司 智能设备的密码更新方法、装置、设备及存储介质
CN115842769A (zh) * 2021-08-24 2023-03-24 青岛海尔科技有限公司 信息更新方法及装置、存储介质、电子装置
CN113923109B (zh) * 2021-11-11 2023-01-13 珠海格力电器股份有限公司 一种配网方法、电子设备及存储介质
CN114189859A (zh) * 2021-12-16 2022-03-15 中国电信股份有限公司 配置信息的处理方法及装置、存储介质、电子设备
CN115988490B (zh) * 2022-12-02 2023-10-20 广东保伦电子股份有限公司 一种基于app的硬件设备的配网方法、装置及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8369525B2 (en) * 2002-10-24 2013-02-05 At&T Mobility Ii Llc Dynamic password update for wireless encryption system
CN103415030A (zh) * 2013-06-20 2013-11-27 北京傲天动联技术股份有限公司 一种wifi终端配置更新方法、***、wifi终端及接入点
CN105430714A (zh) * 2015-10-29 2016-03-23 中铁工程装备集团有限公司 一种终端和路由器密码修改同步方法
CN106412960A (zh) * 2016-10-31 2017-02-15 公牛集团有限公司 一种实现Wi‑Fi配网的控制方法
CN107135529A (zh) * 2017-04-27 2017-09-05 深圳市友华通信技术有限公司 实现ap和sta自动连接并同步ap配置修改的方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030081579A1 (en) * 2001-10-29 2003-05-01 Sierra Wireless, Inc., A Canadian Corporation Apparatus and method for coupling a network data device to a digital network
US20070174901A1 (en) * 2006-01-20 2007-07-26 Chang David Y System and method for automatic wireless network password update
CN106341815B (zh) * 2015-07-17 2020-11-27 中兴通讯股份有限公司 一种无线连接方法、终端及ap
CN105323762A (zh) * 2015-10-14 2016-02-10 深圳市二八智能家居有限公司 一种通过app实现智能家居密码修改的方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8369525B2 (en) * 2002-10-24 2013-02-05 At&T Mobility Ii Llc Dynamic password update for wireless encryption system
CN103415030A (zh) * 2013-06-20 2013-11-27 北京傲天动联技术股份有限公司 一种wifi终端配置更新方法、***、wifi终端及接入点
CN105430714A (zh) * 2015-10-29 2016-03-23 中铁工程装备集团有限公司 一种终端和路由器密码修改同步方法
CN106412960A (zh) * 2016-10-31 2017-02-15 公牛集团有限公司 一种实现Wi‑Fi配网的控制方法
CN107135529A (zh) * 2017-04-27 2017-09-05 深圳市友华通信技术有限公司 实现ap和sta自动连接并同步ap配置修改的方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022060506A1 (en) * 2020-09-18 2022-03-24 Arris Enterprises Llc Voice based interface for residential gateways and access point devices

Also Published As

Publication number Publication date
CN111356149A (zh) 2020-06-30

Similar Documents

Publication Publication Date Title
WO2020135355A1 (zh) 一种无线网络配置方法及装置
EP3185619B1 (en) Method and device for connecting to network
WO2016149908A1 (zh) 一种终端***的升级方法、终端及***
WO2016082417A1 (zh) 设备配置方法、配置装置及管理设备
CN110740460B (zh) 一种设备的入网方法、装置、网络设备及存储介质
EP2757738B1 (en) Communication control system, communication system, communication method, and carrier means storing comunication control program
KR101743195B1 (ko) 정보 제공방법, 장치, 프로그램 및 기록매체
US20070146782A1 (en) System, Apparatus and Method for Automated Wireless Device Configuration
KR102258608B1 (ko) 홈 네트워크 서비스를 제공하기 위한 장치 및 그 방법
CN110022215B (zh) 工业自动化设备和云服务
CN110636483A (zh) 一种配网方法及***
US10298446B2 (en) Methods, apparatuses, and system for device management
JP2018166323A (ja) ネットワークサービス構成方法およびネットワーク管理装置
EP3197094B1 (en) Software upgrading method and device
EP2171917B1 (en) System and method for providing device management service to electronic device having no broadband communication module
WO2017076016A1 (zh) 一种开通基站的方法及终端、基站
WO2016078431A1 (zh) 策略文件同步管理的方法及策略同步服务器和管理设备
WO2018196463A1 (zh) 网络接入方法、装置、存储介质及处理器
WO2017124741A1 (zh) 一种设备版本同步方法及装置
EP3649762B1 (en) Method and apparatus for rapidly configuring network element device for plug and play
CN103765819A (zh) 一种数据配置方法及网络管理服务器
WO2012139463A1 (zh) 终端设备的初始化方法及装置
US8732289B2 (en) Method, apparatus, and system for controlling execution of an automatic process
US20230096372A1 (en) Localized authorization for secure communication
EP3716672B1 (en) Device and method for enrolling a wireless access point into a map wireless network

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: 19903266

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18.11.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19903266

Country of ref document: EP

Kind code of ref document: A1