Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a wireless network configuration method and a wireless network configuration device, wherein network configuration information of a wireless Access Point (AP) is uniformly managed through a client, when a user needs to modify the network configuration information of the wireless Access Point (AP), before the network configuration information of an old wireless Access Point (AP) is invalid, terminal equipment connected with the wireless Access Point (AP) is processed, and after each terminal equipment is ready, the network configuration information of the wireless Access Point (AP) is modified, so that after a password of a wireless access point is modified, each terminal equipment can still be smoothly accessed into a wireless network again.
Fig. 1 is a first flowchart illustrating a wireless network configuration method according to an embodiment of the present invention, wherein an execution subject in the method is a client, and the client includes but is not limited to iOS, Android, WP, and other systems; the wireless access point AP in the embodiment of the present invention includes but is not limited to a wireless router, a home gateway, etc.; the terminal equipment comprises but is not limited to a smart phone, a network camera, a smart door lock and the like; as shown in fig. 1, the method comprises at least the following steps:
s101, a change instruction of network configuration information of a target wireless Access Point (AP) is obtained, wherein the change instruction carries changed network configuration information, and the changed network configuration information comprises: the changed service set identifier SSID and wireless password of the wireless network;
specifically, in order to ensure the security of the local area network, the wireless access point AP equipment in the wireless network sets a password to check the validity of the access equipment, when a user needs to change the service set identification SSID and the password of the wireless access point AP, the user directly inputs a new service set identification SSID and the password on a WiFi network configuration page of the wireless access point AP through an application program APP on a client, and the APP receives the new service set identification SSID and the password aiming at a target access point AP.
S102, determining the connection state of the terminal equipment accessed to the target wireless access point AP;
specifically, after receiving a new service set identifier SSID and a password of a user for a target access point AP, the APP temporarily does not modify network configuration information of the target access point AP, but first queries all terminal devices connected to the target wireless access point AP through a client or a server, and determines that the terminal devices are currently in an existing state and in an offline state under the target access point AP.
S103, updating the wireless connection information of the terminal equipment and the network configuration information of the target wireless access point AP according to the changed network configuration information and the connection state of each terminal equipment; and the terminal equipment reestablishes wireless network connection with the wireless access point AP based on the updated wireless connection information.
Specifically, for the terminal device in the online state, the user sends a new service set identifier SSID and a password to the online terminal device through the APP via a management protocol; for the terminal equipment in the offline state, because the terminal equipment in the offline state cannot receive new network configuration information temporarily, the user sets the terminal equipment in the offline state into a state to be configured by the network through the APP; after all the terminal devices connected to the target wireless access point AP are processed, the user modifies the network configuration information of the target wireless access point AP to a new service set identifier SSID and password through the APP by using a preset management protocol.
Due to the change of the target service set identification SSID and password, the terminal devices that were originally on-line will disconnect the network connection, and at this time, these terminal devices on-line will attempt to access the network using the received new service set identification SSID and password.
The terminal device originally in the offline state cannot access the network because the new service set identifier SSID and password are not obtained, and the old service set identifier SSID and password are continuously used when the terminal device is powered on next time. In this case, the terminal device in the offline state will automatically switch to the network configuration state. At this point, the APP sends the new service set identifier SSID and password to the device via the custom management protocol.
In the embodiment of the invention, the network configuration information of the wireless access point AP is uniformly managed through the client, when a user needs to modify the network configuration information of the wireless access point AP, before the network configuration information of the old wireless access point AP is not invalid, the terminal equipment connected with the wireless access point AP is processed, and after the terminal equipment is ready, the network configuration information of the wireless access point AP is modified, so that the terminal equipment can still be smoothly accessed into the wireless network again after the password of the wireless access point is modified.
In the process of determining the connection state of the terminal device that has accessed the target wireless access point AP, the step S102 of determining the connection state of the terminal device that has accessed the target wireless access point AP includes:
step one, sending changed network configuration information to terminal equipment accessed to a target wireless Access Point (AP);
judging whether confirmation feedback information aiming at the changed network configuration information of the terminal equipment is received or not;
step three, if yes, determining that the connection state of the terminal equipment is an online state;
and step four, if not, determining that the connection state of the terminal equipment is an offline state, and marking the terminal equipment in the offline state as equipment to be configured by the network.
Specifically, when the client and the target access point AP are in the same network, 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, and if the terminal devices are in an online state, the client sends feedback information of the changed network configuration information to the client through the preset management protocol after receiving the changed network configuration information and storing the changed network configuration information locally; and the user determines the terminal equipment in the online state through the feedback information received by the client. If the terminal equipment is in the offline state, the client cannot receive the network configuration information after the client sends the change to the terminal equipment through the preset management protocol, the client detects that the equipment terminal is in the offline state through a timeout mechanism, the client sets the data of the terminal equipment in the offline state as the network configuration waiting state, and marks the terminal equipment in the offline state as the network configuration waiting equipment.
When the client and the target access point AP are in different networks, the client sends the changed network configuration information to the cloud server through a preset management protocol, and the cloud server sends the received changed network configuration information to all terminal equipment connected with the target wireless access point AP; if the terminal equipment is in an online state, after receiving the changed network configuration information and storing the changed network configuration information in the local, sending the feedback information of the changed network configuration information to the cloud server through a preset management protocol, sending the received feedback information of the changed network configuration information sent by the terminal equipment to the client by the cloud server, and determining the terminal equipment in the online state through the feedback information received by the client by the user. If the terminal equipment is in the offline state, the changed network configuration information sent to the terminal equipment by the client cannot be received, the client detects that the equipment terminal is in the offline state through a timeout mechanism, the client sets the data of the terminal equipment in the offline state in the cloud server to be in the network configuration state, and marks the terminal equipment in the offline state as the network configuration equipment.
Wherein the connection state includes: the method comprises the steps that a terminal device in an online state and an offline state is marked as a device to be configured by a network; as shown in fig. 2, the step S103 of updating 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 state of each terminal device includes:
s1031, aiming at the terminal equipment in the online state, determining that the updating of the wireless connection information of the terminal equipment is completed; the changed network configuration information is sent to the target wireless access point AP, so that the target wireless access point AP updates the network configuration information of the target wireless access point AP;
specifically, for a terminal device in an online state, when a client and a target access point AP are in the same network, after receiving changed network configuration information, the terminal device sends feedback information of the received changed network configuration information to the client through a preset management protocol, a user receives the feedback information through the client, determines that updating of wireless connection information of the terminal device is completed, and sends the changed network configuration information to the target wireless access point AP through the preset management protocol, so that the target wireless access point AP updates its own network configuration information;
when the client and the target access point AP are in different networks, after the terminal device receives the changed network configuration information, the feedback information of the changed network configuration information is sent to the cloud server through a preset management protocol, the cloud server sends the received feedback information sent by the terminal device to the client, the user receives the feedback information through the client, the updating of the wireless connection information of the terminal device is determined to be completed, the changed network configuration information is sent to the cloud server through the preset management protocol, and the cloud server sends the received changed network configuration information to the target wireless access point AP through the preset management protocol, so that the target wireless access point AP updates the network configuration information of the target wireless access point AP.
S1032, aiming at the equipment to be configured in the network, prompt information for indicating the equipment to be configured in the network to be powered on is generated; and after the fact that the network configuration equipment to be powered on is determined to be completed, sending the changed network configuration information to the network configuration equipment to be powered on, so that the network configuration equipment to be powered on updates the wireless connection information based on the changed network configuration information.
Specifically, for a device to be configured in a network, when a client and a target access point AP are in the same network, because the terminal device cannot receive changed network configuration information sent to the client through a preset management protocol, the client detects that the device terminal is in an offline state through a timeout mechanism, the client generates a prompt message for indicating to power on the terminal device, so as to prompt a user to power on the device, and when the user powers on the terminal device, the client sends the changed network configuration information to the terminal device through a custom management protocol, so that the device to be configured in the network updates wireless connection information based on the changed network configuration information.
When the client and the target access point AP are in different networks, the terminal equipment cannot receive changed network configuration information sent to the terminal equipment by the client through the cloud server, the client detects that the equipment terminal is in an off-line state through a timeout mechanism, prompt information used for indicating the terminal equipment to be powered on is generated, a user is prompted to power on the terminal equipment, and after the user powers on the terminal equipment, the changed network configuration information is sent to the terminal equipment through a custom management protocol, so that the network configuration equipment to be updated with wireless connection information based on the changed network configuration information.
Wherein, after determining that the network configuration device is powered on, the S1032 sends the changed network configuration information to the network configuration device, and the sending includes:
after the network configuration equipment to be powered on is determined to be completed, the changed network configuration information is sent to the network configuration equipment to be powered on based on a user-defined management protocol, wherein the user-defined management protocol can be a message queue telemetry transmission smartconfig protocol and the like.
Specifically, after a user powers on a device to be configured to a network, the terminal device tries to connect to the network by using an old service set identifier SSID and a password, and automatically switches to a smartconfig state after finding that the connection fails, and the client sends a new service set identifier SSID and a password to the terminal device through a smartconfig protocol.
Before the step S102 determines the connection state of the terminal device having accessed the target wireless access point AP, the method further includes:
if the client and the target wireless access point AP are in the same network, sending changed network configuration information to terminal equipment accessed to the target wireless access point AP based on a preset management protocol, wherein the preset management protocol comprises but is not limited to preset management protocols such as TCP + Json, http, MQTT, websocket and the like;
if the client and the target wireless access point AP are in different networks, sending the changed network configuration information to the cloud server based on a preset management protocol so that the cloud server sends the changed network configuration information to the terminal equipment which is accessed to the target wireless access point AP based on the preset management protocol, wherein the preset management protocol comprises but is not limited to preset management protocols such as TCP + Json, http, MQTT, websocket and the like;
wherein, the step S102 of determining the connection state of the terminal device having accessed the target wireless access point AP includes:
and determining the connection state of each terminal device according to the confirmation feedback condition of the terminal device to the changed network configuration information.
Specifically, after the client sends the changed network configuration information to the terminal device that has accessed the target wireless access point AP, if receiving the feedback confirmation information of the terminal device for the changed network configuration information, the client confirms that the terminal device is in an online state; if the feedback information of the terminal equipment for confirming the changed network configuration information is not received, the terminal equipment is confirmed to be in an off-line state, and the terminal equipment is marked as the equipment to be configured by the network.
After determining that the network configuration device to be powered on is completed, and then sending the changed network configuration information to the network configuration device to be powered on in S1032, the method further includes:
receiving confirmation feedback information aiming at changed network configuration information sent by a network configuration device;
and step two, determining that the updating of the wireless connection information of the equipment to be configured by the network is completed.
Specifically, when the client and the target access point AP are in the same network, after the user powers on the device to be network configured and sends the changed network configuration information to the device to be network configured, the device to be network configured sends feedback information of successfully accessing the network to the client through a preset management protocol, and after receiving the feedback information, the client determines that the update of the wireless connection information of the device to be network configured is completed.
When the client and the target access point AP are in different networks, after a user powers on the device to be network configured and sends the changed network configuration information to the device to be network configured, the device to be network configured sends feedback information of successfully accessing the network to the cloud server through a preset management protocol, the cloud server sends the feedback information to the client through the preset management protocol after receiving the feedback information, and the client determines that the updating of the wireless connection information of the device to be network configured is completed after receiving the feedback information.
In a specific embodiment, as shown in fig. 3, when the client and the wireless access point are in the same network and use a TCP + Json preset management protocol, when a user needs to change configuration information of an AP of the wireless access point, a wireless network configuration process specifically includes:
the method comprises the steps that a user modifies configuration information of a wireless Access Point (AP) through an application program (APP) on a client side, a new Service Set Identifier (SSID) and a new password are configured for the wireless Access Point (AP), after the APP obtains the new SSID and the new password, the configuration information of the wireless Access Point (AP) is not modified temporarily, whether all terminal equipment connected to a target wireless Access Point (AP) is on-line or not is inquired firstly, and the terminal equipment in an on-line state and the terminal equipment in an off-line state are determined;
for the terminal device in the online state:
firstly, when an APP executes a command, a new service set identifier SSID and a password are sent to the online terminal equipment through a TCP + Json preset management protocol, and the terminal equipment stores the new service set identifier SSID and the password in the local after receiving the new service set identifier SSID and the password;
step two, the terminal equipment feeds back feedback information of the received new service set identifier SSID and password to the APP through a TCP + Json preset management protocol;
receiving feedback information of the received new service set identifier SSID and password sent by the terminal equipment through a TCP + Json preset management protocol;
step four, the APP sends the new service set identifier SSID and the password to the wireless access point AP through a TCP + Json preset management protocol;
after receiving the new service set identifier SSID and the password, the wireless access point AP immediately feeds back the successfully received configuration information to the APP, and sends the received new service set identifier SSID and the password to the WiFi management module, and the WiFi module of the wireless access point AP starts the new service set identifier SSID and the password to provide wireless network access service to the outside;
step six, the APP feeds back the SSID and the password of the wireless access point AP to the user, wherein the SSID and the password of the wireless access point AP are successfully modified into a new service set identifier SSID and a new password;
step seven, the terminal equipment continues to use the old service set identifier SSID and the password to access the network, and tries to use the new service set identifier SSID and the password recorded before to access the wireless access point AP after the network interruption is found;
and step eight, the wireless access point AP verifies the password, establishes a link with the terminal equipment, allows the terminal equipment to access a wireless network and finally realizes the smooth access of the terminal equipment to the network.
For the terminal device in an offline state:
step one, when an APP executes a command, a new service set identifier SSID and a password are sent to the terminal equipment through a TCP + Json preset management protocol, the terminal equipment is in an offline state and cannot receive the new service set identifier SSID and the password, and the APP side detects that the terminal equipment is offline through a timeout mechanism;
step two, the APP sets the data of the terminal equipment to a state of waiting for network configuration, and simultaneously sends a new Service Set Identifier (SSID) and a password to the wireless Access Point (AP);
step three, after receiving the new service set identifier SSID and the password, the wireless access point AP immediately feeds back the successfully received configuration information to the APP, then sends the new service set identifier SSID and the password to the WiFi management module, and starts to start the new configuration information to provide wireless network access service to the outside;
step four, the APP feeds back to the user that the old service set identifier SSID and the password of the wireless access point AP are modified into a new service set identifier SSID and a new password, and reminds the user that the terminal equipment is in an offline state and possibly needs to be powered on;
and step five, the user switches on the power supply for the terminal equipment.
Step six, the terminal equipment cannot be connected with a network by using an old service set identifier SSID and a password, the terminal equipment is automatically switched to a smartconfig state, and a user sends a new service set identifier SSID and a password through an APP;
step seven, the user sends the new service set identifier SSID and the password to the terminal equipment through the APP through a smartconfig protocol;
and step eight, the terminal equipment receives the new service set identifier SSID and the password sent by the APP, and accesses the wireless access point AP by using the new service set identifier SSID and the password.
And step nine, the terminal equipment feeds back the information of successfully accessing the network to the APP through a TCP + Json protocol.
Through the steps, the synchronous updating of the network configuration of the terminal equipment and the wireless access point AP is finally realized.
In one embodiment, as shown in fig. 4, when the client and the wireless access point are in different networks and use an MQTT preset management protocol, when a user needs to change configuration information of the wireless access point AP, the wireless network configuration process specifically includes:
the method comprises the steps that a user modifies configuration information of a wireless Access Point (AP) through an APP (application), a new Service Set Identifier (SSID) and a password are configured for the wireless Access Point (AP), after the APP obtains the new SSID and the password, the configuration information of the wireless Access Point (AP) is not modified temporarily, whether all terminal equipment connected to a target wireless Access Point (AP) is on-line or not is inquired firstly, and the terminal equipment in an on-line state and the terminal equipment in an off-line state are determined;
for the terminal device in the online state:
firstly, when an APP executes a command, a new service set identifier SSID and a password are sent to the online terminal equipment through an MQTT preset management protocol, and the terminal equipment stores the new service set identifier SSID and the password in the local after receiving the new service set identifier SSID and the password;
step two, the terminal device sends the feedback information of the received new service set identifier SSID and password to a cloud server through an MQTT preset management protocol, and the cloud server sends the received feedback information to an APP through the MQTT preset management protocol;
thirdly, the APP receives feedback information which is sent by the terminal equipment through an MQTT preset management protocol and receives a new Service Set Identifier (SSID) and a password;
step four, the APP sends a new service set identifier SSID and a password to the cloud server through an MQTT preset management protocol, and the cloud server sends the received new service set identifier SSID and password to the wireless access point AP through the MQTT preset management protocol;
after receiving the new service set identifier SSID and the password, the wireless access point AP immediately feeds back the successfully received configuration information to the APP, and sends the received new service set identifier SSID and the password to the WiFi management module, and the WiFi module of the wireless access point AP starts the new service set identifier SSID and the password to provide wireless network access service to the outside;
step six, the APP feeds back the SSID and the password of the wireless access point AP to the user, wherein the SSID and the password of the wireless access point AP are successfully modified into a new service set identifier SSID and a new password;
step seven, the terminal equipment continues to use the old service set identifier SSID and the password to access the network, and tries to use the new service set identifier SSID and the password recorded before to access the wireless access point AP after the network interruption is found;
and step eight, the wireless access point AP verifies the password, establishes a link with the terminal equipment, allows the terminal equipment to access a wireless network and finally realizes the smooth access of the terminal equipment to the network.
For the terminal device in an offline state:
step one, when an APP executes a command, a new service set identifier SSID and a password are sent to the terminal equipment through an MQTT preset management protocol, the terminal equipment is in an offline state and cannot receive the new service set identifier SSID and the password, and the APP side detects that the terminal equipment is offline through an overtime mechanism;
step two, the APP sets the data of the terminal equipment on the cloud server to be in a state of waiting for network configuration, and simultaneously sends a new Service Set Identifier (SSID) and a password to the wireless Access Point (AP);
step three, after receiving the new service set identifier SSID and the password, the wireless access point AP immediately feeds back the successfully received configuration information to the APP, then sends the new service set identifier SSID and the password to the WiFi management module, and starts to start the new configuration information to provide wireless network access service to the outside;
step four, the APP feeds back to the user that the old service set identifier SSID and the password of the wireless access point AP are modified into a new service set identifier SSID and a new password, and reminds the user that the terminal equipment is in an offline state and possibly needs to be powered on;
and step five, the user switches on the power supply for the terminal equipment.
Step six, the terminal equipment cannot be connected with a network by using an old service set identifier SSID and a password, the terminal equipment is automatically switched to a smartconfig state, and a user sends a new service set identifier SSID and a password through an APP;
step seven, the user sends the new service set identifier SSID and the password to the terminal equipment through the APP through a smartconfig protocol;
and step eight, the terminal equipment receives the new service set identifier SSID and the password sent by the client, and accesses the wireless access point AP by using the new service set identifier SSID and the password.
And step nine, the terminal equipment sends the information of successful network access to the cloud server through an MQTT preset management protocol, and the cloud server feeds back the received information of successful network access to the client.
Through the steps, the synchronous updating of the network configuration of the terminal equipment and the wireless access point AP is finally realized.
The wireless network configuration method in the embodiment of the invention comprises the steps of obtaining a change instruction aiming at network configuration information of a target wireless access point AP, wherein the change instruction carries the changed network configuration information; determining the connection state of terminal equipment accessed to a target wireless Access Point (AP); updating the wireless connection information of the terminal equipment and the network configuration information of the target wireless access point AP according to the changed network configuration information and the connection state of each terminal equipment; and the terminal equipment reestablishes wireless network connection with the wireless access point AP based on the updated wireless connection information. In the embodiment of the invention, the network configuration information of the wireless access point AP is uniformly managed through the client, when a user needs to modify the network configuration information of the wireless access point AP, before the network configuration information of the old wireless access point AP is not invalid, the terminal equipment connected with the wireless access point AP is processed, and after the terminal equipment is ready, the network configuration information of the wireless access point AP is modified, so that the terminal equipment can still be smoothly accessed into the wireless network again after the password of the wireless access point is modified.
Corresponding to the wireless network configuration method provided in the foregoing embodiment, based on the same technical concept, an embodiment of the present invention further provides a wireless network configuration apparatus, and fig. 5 is a schematic diagram of a first module of the wireless network configuration apparatus provided in the embodiment of the present invention, where the wireless network configuration apparatus is used to execute the wireless network configuration method described in fig. 1 to fig. 4, and as shown in fig. 5, the apparatus includes:
a changeinstruction obtaining module 501, configured to obtain a change instruction for network configuration information of a target wireless access point AP, where the change instruction carries changed network configuration information;
a connectionstatus determining module 502, configured to determine a connection status of a terminal device that has accessed the target wireless access point AP;
a networkinformation updating module 503, configured to 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 state of each terminal device; and the terminal equipment reestablishes wireless network connection with the wireless access point AP based on the updated wireless connection information.
Optionally, the connectionstatus determining module 502 is specifically configured to:
sending the changed network configuration information to terminal equipment which has accessed the target wireless access point AP;
judging whether confirmation feedback information aiming at the changed network configuration information of the terminal equipment is received or not;
if so, determining that the connection state of the terminal equipment is an online state;
if not, determining that the connection state of the terminal equipment is an offline state, and marking the terminal equipment in the offline state as equipment to be configured by the network.
Optionally, the connection state includes: the terminal equipment in the off-line state is marked as equipment to be configured by the network; the networkinformation updating module 503 is specifically configured to:
determining that updating of wireless connection information of the terminal device is completed for the terminal device in an online state; and the number of the first and second groups,
sending the changed network configuration information to the target wireless access point AP so that the target wireless access point AP updates the network configuration information of the target wireless access point AP;
generating prompt information for indicating the equipment to be configured for the network to be powered on aiming at the equipment to be configured for the network; and after the fact that the equipment to be configured with the network is powered on is determined, the changed network configuration information is sent to the equipment to be configured with the network, so that the equipment to be configured with the network updates the wireless connection information based on the changed network configuration information.
Optionally, the networkinformation updating module 503 is further specifically configured to:
and after the fact that the equipment to be configured with the network is powered on is determined, sending the changed network configuration information to the equipment to be configured with the network based on a user-defined management protocol.
Optionally, the connectionstatus determining module 502 is specifically configured to:
if the client and the target wireless access point AP are in the same network, sending the changed network configuration information to terminal equipment accessed to the target wireless access point AP based on a preset management protocol;
if the client and the target wireless access point AP are in different networks, sending the changed network configuration information to a cloud server based on a preset management protocol so that the cloud server sends the changed network configuration information to terminal equipment which has access to the target wireless access point AP based on the preset management protocol;
and determining the connection state of each terminal device according to the confirmation feedback condition of the terminal device aiming at the changed network configuration information.
Optionally, as shown in fig. 6, the apparatus further includes a feedbackinformation receiving module 504, configured to receive feedback information
Receiving confirmation feedback information aiming at the changed network configuration information, which is sent by the equipment to be configured by the network;
and determining that the updating of the wireless connection information of the device to be network configured is completed.
The wireless network configuration device in the embodiment of the invention comprises: a changeinstruction obtaining module 501, configured to obtain a change instruction for network configuration information of a target wireless access point AP, where the change instruction carries changed network configuration information; a connectionstatus determining module 502, configured to determine a connection status of a terminal device that has accessed the target wireless access point AP; a networkinformation updating module 503, configured to 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 state of each terminal device; and the terminal equipment reestablishes wireless network connection with the wireless access point AP based on the updated wireless connection information. In the embodiment of the invention, the network configuration information of the wireless access point AP is uniformly managed through the client, when a user needs to modify the network configuration information of the wireless access point AP, before the network configuration information of the old wireless access point AP is not invalid, the terminal equipment connected with the wireless access point AP is processed, and after the terminal equipment is ready, the network configuration information of the wireless access point AP is modified, so that the terminal equipment can still be smoothly accessed into the wireless network again after the password of the wireless access point is modified.
The wireless network configuration device provided by the embodiment of the invention can realize each process in the embodiment corresponding to the wireless network configuration method, and is not described again to avoid repetition.
It should be noted that the wireless network configuration apparatus provided in the embodiment of the present invention and the wireless network configuration method provided in the embodiment of the present invention are based on the same inventive concept, and therefore, for specific implementation of the embodiment, reference may be made to implementation of the foregoing wireless network configuration method, and repeated details are not described again.
In response to the method and apparatus for configuring a wireless network according to an embodiment of the present invention, a network device is provided in an embodiment of the present invention, and referring to fig. 7, the network device includes aprocessor 110, atransceiver 120, amemory 130, and a bus interface. Wherein:
in this embodiment of the present invention, the network device 100 further includes: a computer program stored in thememory 130 and capable of running on theprocessor 110, where the computer program, when executed by theprocessor 110, implements each process in the wireless network configuration method, and can achieve the same technical effect, and is not described herein again to avoid repetition.
In FIG. 7, the bus architecture may include any number of interconnected buses and bridges, with various circuits of one or more processors, represented in particular byprocessor 110, and memory, represented bymemory 130, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. Thetransceiver 120 may be a number of elements including a transmitter and a receiver that provide a means for communicating with various other apparatus over a transmission medium.
Theprocessor 110 is responsible for managing the bus architecture and general processing, and thememory 130 may store data used by theprocessor 110 in performing operations.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.