CN110830305B - Method and device for wireless device to access WIFI network, electronic device and storage medium - Google Patents

Method and device for wireless device to access WIFI network, electronic device and storage medium Download PDF

Info

Publication number
CN110830305B
CN110830305B CN201911112478.2A CN201911112478A CN110830305B CN 110830305 B CN110830305 B CN 110830305B CN 201911112478 A CN201911112478 A CN 201911112478A CN 110830305 B CN110830305 B CN 110830305B
Authority
CN
China
Prior art keywords
access
access parameter
wireless device
wifi network
router
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911112478.2A
Other languages
Chinese (zh)
Other versions
CN110830305A (en
Inventor
覃彦福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lumi United Technology Co Ltd
Original Assignee
Lumi United Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lumi United Technology Co Ltd filed Critical Lumi United Technology Co Ltd
Priority to CN201911112478.2A priority Critical patent/CN110830305B/en
Publication of CN110830305A publication Critical patent/CN110830305A/en
Application granted granted Critical
Publication of CN110830305B publication Critical patent/CN110830305B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/34Modification of an existing route
    • H04W40/36Modification of an existing route due to handover
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention discloses a method for wireless equipment to access a WIFI network, which comprises the following steps: displaying a device identifier corresponding to the wireless device in the displayed access parameter configuration page; selecting at least one device identifier from the displayed device identifiers as a target device identifier, and initiating an access parameter modification request aiming at the target device identifier to acquire an access parameter to be modified; generating an access parameter configuration message according to the acquired access parameter to be modified, and sending the access parameter configuration message to the wireless equipment corresponding to the target equipment identifier; at least one wireless device waiting to receive the access parameter configuration message returns a configuration response message to detect whether the access parameter to be modified is configured; and when the access parameters to be modified are detected to be configured, notifying a router constructing the WIFI network to carry out route configuration modification so as to control the wireless equipment to re-access the WIFI network. The method and the device solve the problem that the wireless device re-accesses the WIFI network in the prior art depends on manual implementation.

Description

Method and device for wireless device to access WIFI network, electronic device and storage medium
Technical Field
The present invention relates to the field of internet of things, and in particular, to a method, an apparatus, an electronic device, and a storage medium for accessing a wireless device to a WIFI network.
Background
With the gradual development of the internet of things technology, more and more families are equipped with a plurality of wireless devices and access to a WIFI network through a router, so that the wireless devices are controlled by one key in the internet of things.
Currently, when a Service Set Identifier (SSID) of a router or an access password of a WIFI network constructed by the SSID is modified, a wireless device accessed to the WIFI network through the router often needs to be manually reset, and the wireless device can be re-accessed to the WIFI network, which may cause that the wireless device loses some user data due to the reset, and the reset time is long, which causes that the wireless device is in a disconnected state for a long time, so that great inconvenience is caused to a user, and user experience is poor.
Therefore, how to avoid wireless devices from re-accessing the WIFI network depends on manual implementation is still needed to be solved.
Disclosure of Invention
The embodiment of the invention provides a method, a device, electronic equipment and a storage medium for wireless equipment to access a WIFI network, which are used for solving the problem that the wireless equipment re-access to the WIFI network in the related technology depends on manual implementation.
The technical scheme adopted by the embodiment of the invention is as follows:
according to an aspect of the invention, a method for wireless equipment to access a WIFI network is applied to a terminal, and the method comprises the following steps: displaying a device identifier corresponding to the wireless device in the displayed access parameter configuration page; selecting at least one device identifier from the displayed device identifiers as a target device identifier, and initiating an access parameter modification request aiming at the target device identifier to acquire an access parameter to be modified; generating an access parameter configuration message according to the acquired access parameter to be modified, and sending the access parameter configuration message to the wireless equipment corresponding to the target equipment identifier; at least one wireless device waiting to receive the access parameter configuration message returns a configuration response message to detect whether the access parameter to be modified is configured; and when the access parameter to be modified is detected to be configured, notifying a router for constructing the WIFI network to carry out route configuration modification so as to control at least one wireless device connected with the router to modify the route configuration at the router, and re-accessing the WIFI network according to the access parameter to be modified in the access parameter configuration message.
According to an aspect of the invention, a method for wireless equipment to access to a WIFI network is applied to the wireless equipment, and the method comprises the following steps: receiving an access parameter configuration message issued by a terminal in the process that wireless equipment accesses a WIFI network through a router, wherein the access parameter configuration message is generated by the terminal in response to an access parameter modification request, and the access parameter modification request is initiated aiming at an equipment identifier corresponding to the wireless equipment displayed in an access parameter configuration page; extracting an access parameter to be modified from the access parameter configuration message; and when the router modifies the route configuration, the WIFI network is re-accessed according to the access parameter to be modified, wherein the router modifies the route configuration, namely, the terminal waits for at least one wireless device which receives the access parameter configuration message to return a configuration response message so as to detect whether the access parameter to be modified is configured or not and notify the configuration.
According to an aspect of the present invention, an apparatus for accessing a WIFI network by a wireless device is applied to a terminal, and the apparatus includes: the identification display module is used for displaying the equipment identification corresponding to the wireless equipment in the displayed access parameter configuration page; the parameter acquisition module is used for acquiring access parameters to be modified according to an access parameter modification request initiated for equipment identifiers corresponding to at least one wireless equipment; the message processing module is used for generating an access parameter configuration message according to the acquired access parameter to be modified and sending the access parameter configuration message to at least one wireless device; the message waiting module is used for waiting for at least one wireless device which receives the access parameter configuration message to return a configuration response message so as to detect whether the access parameter to be modified is configured; and the notification module is used for notifying a router constructing the WIFI network to carry out route configuration modification when the configuration of the access parameter to be modified is detected, so as to control at least one wireless device connected with the router to re-access the WIFI network according to the access parameter to be modified in the access parameter configuration message when the router modifies the route configuration.
According to an aspect of the invention, the apparatus is applied to a wireless device, the apparatus comprising: the wireless device comprises a message receiving module, a wireless router and a wireless network management module, wherein the message receiving module is used for receiving an access parameter configuration message issued by a terminal in the process that the wireless device accesses a WIFI network through the router, and the access parameter configuration message is generated by the terminal in response to an access parameter modification request initiated by a user; the parameter extraction module is used for extracting the access parameters to be modified from the access parameter configuration message; and the re-access module is used for re-accessing the WIFI network according to the access parameter to be modified when the router modifies the route configuration, wherein the router modifies the route configuration by the terminal waiting for at least one wireless device which receives the access parameter configuration message to return a configuration response message so as to detect whether the access parameter to be modified is configured or not and notify the configuration.
According to an aspect of the invention, an electronic device includes a processor and a memory, the memory having stored thereon computer readable instructions that, when executed by the processor, implement a method of accessing a WIFI network by a wireless device as described above.
According to an aspect of the invention, a storage medium has stored thereon a computer program which, when executed by a processor, implements a method of a wireless device accessing a WIFI network as described above.
According to the technical scheme, based on the corresponding equipment identifier of the wireless equipment displayed in the access parameter configuration page, at least one equipment identifier is selected as a target equipment identifier, an access parameter modification request is initiated for the target equipment identifier, the access parameter to be modified is acquired, an access parameter configuration message is generated, the access parameter configuration message is sent to the wireless equipment corresponding to the target equipment identifier, whether the access parameter to be modified is configured is detected by waiting for the at least one wireless equipment receiving the access parameter configuration message to return a configuration response message, when the access parameter to be modified is detected to be configured, a router constructing the WIFI network is notified to carry out route configuration modification, at least one wireless equipment connected to the router is triggered to re-access the WIFI network according to the access parameter to be modified in the access parameter configuration message, and therefore, the problem that the wireless equipment to be modified is automatically accessed to the WIFI network again according to the access parameter to be modified in the access parameter configuration message when the router modifies the route configuration is solved, manual participation is not needed, and the problem that the wireless equipment in the prior art is manually accessed to the WIFI network again is solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic diagram of an implementation environment in accordance with the present invention.
Fig. 2 is a block diagram of a hardware architecture of an electronic device, according to an example embodiment.
Fig. 3 is a flowchart illustrating a method for a wireless device to access a WIFI network according to an example embodiment.
Fig. 4 is a flow chart of step 350 in one embodiment in the corresponding embodiment of fig. 3.
Fig. 5 is a flow chart of step 370 in one embodiment of the corresponding embodiment of fig. 3.
Fig. 6 is a timing diagram of access parameter configuration in the corresponding embodiment of fig. 5.
Fig. 7 is a flow chart of step 370 in another embodiment of the corresponding embodiment of fig. 3.
Fig. 8 is a flowchart illustrating a method of another wireless device accessing a WIFI network according to an example embodiment.
Fig. 9 is a flowchart illustrating a method of another wireless device accessing a WIFI network according to an example embodiment.
Fig. 10 is a flow chart of step 450 in one embodiment in the corresponding embodiment of fig. 8 or 9.
Fig. 11 is a block diagram illustrating an apparatus for a wireless device to access a WIFI network according to an example embodiment.
Fig. 12 is a block diagram illustrating another apparatus for a wireless device to access a WIFI network according to an example embodiment.
Fig. 13 is a block diagram of an electronic device, according to an example embodiment.
There has been shown in the drawings, and will hereinafter be described, specific embodiments of the invention with the understanding that the present disclosure is to be considered in all respects as illustrative, and not restrictive, the scope of the inventive concepts being indicated by the appended claims.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
Fig. 1 is a schematic diagram of an implementation environment related to a method for a wireless device to access a WIFI network. The implementation environment includes a terminal 110, a router 130, a wireless device 150, and a server 170.
The terminal 100 may be a smart phone, a desktop computer, a notebook computer, a tablet computer, or other electronic devices with network connection function, which is not limited herein.
The wireless device 150 may be an intelligent printer, an intelligent fax machine, an intelligent camera, an intelligent air conditioner, an intelligent door lock, or an electronic device such as a human body sensor, a door and window sensor, a temperature and humidity sensor, a water immersion sensor, a visual sensor, a natural gas alarm, a smoke alarm, a buzzer alarm, a wall switch, a wall socket, a wireless wall-mounted switch of a wireless switch, a magic cube controller, a curtain motor, etc., which are not particularly limited herein.
In the WIFI network constructed by the router 130, the terminal 100 and the wireless device 150 access the WIFI network through the router 130, so as to realize interaction between each other.
The server 170 is connected with the router 130 through a pre-established network, and data transmission between the server 170 and the router 130 is realized through the network connection, and data transmission between the server 170 and the terminal 110 and data transmission between the wireless device 150 are also realized through the router 130. For example, the data transmitted includes, but is not limited to: access parameter configuration messages, configuration reply messages, and the like.
Wherein the server 170 is an electronic device that provides background services to users, such as background services including, but not limited to, access network services, and the like. Of course, depending on the actual operation requirements, a server cluster may be formed by multiple servers 170, or a cloud computing center, to better provide access network services to the mass terminals 110 and the wireless devices 150.
After the terminal 110 and the wireless device 150 access the WIFI network through the router 130, if the service set identifier of the router or the access password of the WIFI network constructed by the service set identifier is modified, based on the interaction between the terminal 110 and the wireless device 150, the terminal 110 sends an access parameter configuration message carrying the access parameter to be modified to the wireless device 150, and when the access parameter to be modified completes configuration, the router 130 is notified to perform route configuration modification. The access parameter includes an access password.
The wireless device 150 can re-access the WIFI network according to the access parameters to be modified in the access parameter configuration message.
Of course, as described above, the access parameter configuration message may be transmitted not only to the wireless device 150 by the terminal 110 through the local area network path provided by the WIFI network constructed by the router 130, but also to the wireless device 150 by the terminal 110 based on the wide area network path provided by the server 170, which is not particularly limited herein.
Fig. 2 is a block diagram of a hardware architecture of an electronic device, according to an example embodiment. Such an electronic device is suitable for use in the terminal and wireless device of the implementation environment shown in fig. 1.
It should be noted that this electronic device is only an example adapted to the present invention, and should not be construed as providing any limitation on the scope of use of the present invention. Nor should such an electronic device be construed as necessarily relying on or necessarily having one or more of the components of the exemplary electronic device 200 shown in fig. 2.
The hardware structure of the electronic device 200 may vary widely depending on the configuration or performance, as shown in fig. 2, the electronic device 200 includes: a power supply 210, an interface 230, at least one memory 250, and at least one central processing unit (CPU, central Processing Units) 270.
Specifically, the power supply 210 is configured to provide an operating voltage for each hardware device on the electronic device 200.
Interface 230 includes at least one wired or wireless network interface for interacting with external devices. For example, interactions between terminal 110 and router 130, router 130 and wireless device 150, and server 170 in the implementation environment shown in FIG. 1 are performed.
Of course, in other examples of the adaptation of the present invention, the interface 230 may further include at least one serial-parallel conversion interface 233, at least one input-output interface 235, at least one USB interface 237, and the like, as shown in fig. 2, which is not particularly limited herein.
The memory 250 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, where the resources stored include an operating system 251, application programs 253, and data 255, and the storage mode may be transient storage or permanent storage.
The operating system 251 is used for managing and controlling various hardware devices and applications 253 on the electronic device 200, so as to implement the operation and processing of the cpu 270 on the mass data 255 in the memory 250, which may be Windows server, mac OS XTM, unixTM, linuxTM, freeBSDTM, etc.
The application 253 is a computer program that performs at least one specific task based on the operating system 251, and may include at least one module (not shown in fig. 2), each of which may respectively contain a series of computer readable instructions for the electronic device 200. For example, a device with a wireless device accessing a WIFI network can be considered as an application 253 deployed on the electronic device 200.
The data 255 may be a photograph, a picture, or the like stored in the disk, or may be an access parameter or the like, and is stored in the memory 250.
The central processor 270 may include one or more of the above processors and is configured to communicate with the memory 250 via at least one communication bus to read computer readable instructions stored in the memory 250, thereby implementing operations and processing of the bulk data 255 in the memory 250. For example, a method of wireless device access to a WIFI network is accomplished by central processor 270 reading a series of computer readable instructions stored in memory 250.
Furthermore, the present invention can be realized by hardware circuitry or by a combination of hardware circuitry and software, and thus, the implementation of the present invention is not limited to any specific hardware circuitry, software, or combination of the two.
Referring to fig. 3, in an exemplary embodiment, a method for accessing a WIFI network by a wireless device is applicable to a terminal 110 in the implementation environment shown in fig. 1, and the structure of the terminal 110 may be as shown in fig. 2.
The method for accessing the wireless device to the WIFI network can be executed by the terminal, and can be also understood to be executed by an application program running in the terminal. In the following method embodiments, for convenience of description, the execution subject of each step is described as a terminal, but this configuration is not limited thereto.
The method for accessing the wireless device to the WIFI network can comprise the following steps:
in step 310, in the displayed access parameter configuration page, a device identifier corresponding to the wireless device is displayed.
The access parameter configuration page refers to a user interface which can interact with a user to perform access parameter configuration. Therefore, when the service set identifier of the router or the access password of the WIFI network constructed by the service set identifier is modified, a user hopes to configure access parameters for the wireless device so that the wireless device can automatically access the WIFI network again, an application program running in the terminal, such as a device of the wireless device for accessing the WIFI network, can be started, and a user interface for performing access parameter configuration is entered, namely an access parameter configuration page is displayed.
The inventors realized that relying on manually implemented manual resetting of wireless devices, when several wireless devices are equipped in the face of a household, requires a one-by-one manual reset, which is overly cumbersome to operate.
Therefore, in the embodiment, in the displayed access parameter configuration page, the device identifiers corresponding to all the wireless devices accessed to the WIFI network are presented to the user, so that the user can select a plurality of device identifiers from the device identifiers, and further trigger the corresponding plurality of wireless devices to automatically re-access the WIFI network, thereby realizing batch configuration of access parameters and greatly simplifying operation steps. In some embodiments, in the displayed access parameter configuration page, in addition to displaying the device identifiers corresponding to all wireless devices that have accessed the WIFI network, the identifier of the number of the wireless devices that locally store the standby access parameters may be displayed at the same time, and the specific identifier may be used to identify a single or multiple or an actual number, so as to display the status information of the access parameters of the wireless devices to the user. The identification of the number of locally stored alternate access parameters may be determined by sending an interrogation command to the wireless device and based on information fed back by the wireless device.
The device identifier is used to uniquely represent the wireless device, and may be a MAC (Media Access Control ) address of the wireless device, or may be a unique device identifier of the wireless device, which is not limited in this embodiment.
Specifically, the wireless device accessed to the WIFI network is searched for a device identifier corresponding to the wireless device accessed to the WIFI network, and the device identifier corresponding to the wireless device is obtained and displayed in the access parameter configuration page.
It is further noted that, for the terminal, when the wireless device accesses the WIFI network through the router, the relevant information about the wireless device accessed to the WIFI network reported by the router can be received, including but not limited to the device identifier, so as to store the relevant information about the wireless device accessed to the WIFI network, so as to search for the wireless device accessed to the WIFI network subsequently.
Step 330, selecting at least one device identifier from the displayed device identifiers as a target device identifier, and initiating an access parameter modification request aiming at the target device identifier to acquire an access parameter to be modified.
The target device identifier refers to a device identifier corresponding to a wireless device for which the user desires to perform access parameter configuration, in other words, the target device identifier is generated by selecting according to actual needs of the user, and may not be limited to one.
Further, after determining the target equipment identifier, the user can input the access parameter to be modified based on the target equipment identifier, so that the wireless equipment corresponding to the target equipment identifier can automatically configure the access parameter according to the access parameter to be modified, and further automatically re-access the WIFI network. That is, the access parameters to be modified are generated according to the actual needs of the user.
Specifically, regarding the generation of the target device identification and the access parameters to be modified, the following steps may be included:
and determining the target equipment identification according to the user selection operation performed by triggering.
And receiving an access parameter modification request initiated by a user aiming at the target equipment identifier according to the user input operation performed by triggering.
And responding to the access parameter modification request to obtain the access parameter to be modified.
The access parameter configuration page provides a corresponding entry for a user aiming at user selection operation and user input operation, and when the user wants to select a device identifier and/or input an access parameter to be modified, the corresponding operation can be triggered in the corresponding entry, so that the terminal obtains the target device identifier and the access parameter to be modified according to the detected operation.
For example, the device identifier corresponding to the wireless device is displayed in the access parameter configuration page in the form of a device list, the selection entry is the device identifier which can be clicked in the corresponding device list, and when the user clicks any one device identifier in the device list, the selection of the device identifier is completed. The clicked device identifier is a target device identifier selected from the displayed device identifiers, and the clicking operation of the user is regarded as the triggering user selection operation.
Similarly, for the target device identifier, the access parameter configuration page may pop up a corresponding input box as an entry for providing a user to input the access parameter to be modified, and when the user inputs the access parameter to be modified in the input box, the access parameter modification request is considered to be initiated to the terminal for the target device identifier, so that the terminal may respond to the access parameter modification request to obtain the access parameter to be modified. The input operation of the user is regarded as the user input operation which is triggered to be performed.
It is worth mentioning that the above operations are essentially different depending on the configuration components of the terminal. For example, if the configuration component of the terminal is a mouse, the above operations may be mechanical operations such as clicking, double clicking, dragging, etc.; alternatively, if the configuration component of the terminal is a touch display screen, the operation may be a gesture operation such as clicking or sliding, which is not specifically limited in this embodiment.
And step 350, generating an access parameter configuration message according to the acquired access parameter to be modified, and sending the access parameter configuration message to the wireless device corresponding to the target device identifier.
For the wireless device, the received related message needs to conform to the specific data format, and for this purpose, the generation of the access parameter configuration message in the terminal essentially encapsulates the acquired access parameter to be modified into a specific message field in a data packet conforming to the specific data format.
Then, in the case of the wireless device, after the access parameter configuration message conforming to the specific data format is received by forwarding through the router, the access parameter to be modified encapsulated in the specific message field in the access parameter configuration message can be obtained through parsing the different message fields, so that the WIFI network can be automatically re-accessed based on the access parameter to be modified.
By means of the configuration, the wireless device re-accesses the WIFI network only depends on the specific data format of the wireless device, and a specific protocol is not required to be supported between the wireless device and the router, namely the wireless device is not limited by a router brand, so that the universality of the wireless device re-accessing the WIFI network is improved.
And step 370, the at least one wireless device waiting to receive the access parameter configuration message returns a configuration response message to detect whether the access parameter to be modified has completed configuration.
The inventors have appreciated that as previously described, either the wide area network path provided by the server or the local area network path provided by the router may cause a failure in data transmission due to a problem of the network itself, i.e. the terminal fails to send an access parameter configuration message to the wireless device. At this time, for a plurality of wireless devices equipped in a home, when the plurality of wireless devices need to re-access the WIFI network, it is likely that some wireless devices can re-access the WIFI network according to the obtained access parameters to be modified, and some wireless devices are in a disconnected state for a long time due to failure in obtaining the access parameters to be modified, which causes great inconvenience to users, and has poor user experience, and the success rate of accessing the WIFI network is lower. In addition, the inventor also found that, depending on manually-implemented manual reset wireless devices, when a plurality of wireless devices are equipped in a home, the wireless devices are reset one by one, and when the wireless devices are reset, the wireless devices enter a connection disconnection state, and thus the requirements of users for midway cancellation or secondary modification of routing configuration cannot be satisfied.
For this reason, in this embodiment, before performing the route configuration modification, it is necessary to detect whether the access parameter to be modified has completed configuration.
Specifically, whether the access parameters to be modified are configured is achieved by waiting for the wireless device which receives the access parameter configuration message to return a configuration response message, so that the access success rate of the WIFI network can be ensured, and a user can be given sufficient time to consider whether to cancel halfway or secondarily modify the route configuration and the like.
The configuration response message is used for indicating that the wireless device which receives the access parameter configuration message has completed the configuration of the access parameter to be modified, that is, the wireless device has stored the access parameter to be modified locally or replaced the old access parameter as a new access parameter, so that the wireless device can access the WIFI network again based on the new access parameter.
If it is detected that the configuration of the access parameter to be modified is completed, that is, the wireless device that is considered to receive the access parameter configuration message has stored a new access parameter, it may be guaranteed that the WIFI network is re-accessed based on the new access parameter, step 390 is executed.
Otherwise, if it is not detected that the configuration of the access parameter to be modified is completed, that is, the wireless device that receives the access parameter configuration message is regarded as not storing the new access parameter, and it cannot be determined whether it can be based on the new access parameter when it re-accesses the WIFI network, step 370 is continuously performed until the waiting time is out, at this time, in order to ensure that the wireless device that has obtained the access parameter to be modified can re-access the WIFI network, it is regarded as also detecting that the configuration of the access parameter to be modified is completed, that is, step 390 is performed.
Step 390, when it is detected that the configuration of the access parameter to be modified is completed, notifying a router constructing the WIFI network to perform route configuration modification, so as to control at least one wireless device connected to the router to re-access the WIFI network according to the access parameter to be modified in the access parameter configuration message when the router modifies the route configuration.
The method for notifying the router constructing the WIFI network to perform route configuration may include the following steps:
and when the configuration response message is received, generating a route configuration modification prompt message and displaying the route configuration modification prompt message on the terminal.
And initiating a route configuration modification request to a router constructing the WIFI network according to the user confirmation operation triggered and carried out by the real route configuration modification prompt message.
That is, when the user knows that the route configuration modification should be performed at this time based on the route configuration modification hint message, the confirmation modification or the denial of the modification can be selected to notify or deny the router to perform the route configuration modification. The confirmation modification or denial modification is implemented by triggering a user confirmation operation or a user denial operation, which is the same as the foregoing user selection operation or user input operation, and is not described in detail herein.
If the user selects to confirm the modification, the router constructing the WIFI network is informed to carry out route configuration modification, and for at least one wireless device connected with the router, the WIFI network can be accessed again according to the access parameters to be modified in the access parameter configuration message.
Through the process, the automatic re-access of the WIFI network is realized without manual participation, so that the problem that the wireless equipment re-access of the WIFI network in the prior art depends on manual implementation is solved.
In addition, the router is notified of modifying the route configuration only when the terminal confirms that the access parameters to be modified are configured, so that the wireless equipment which returns the configuration response message to the terminal can be accessed to the WIFI network again, and meanwhile, the problem of low success rate of WIFI network access is solved.
Referring to fig. 4, in an exemplary embodiment, step 350 may include the steps of:
step 351, obtaining a route switching parameter.
The inventor realizes that for the home to be provided with a plurality of routers, the service set identification of one router or the access password of the WIFI network constructed by the router is assumed to be modified, the wireless equipment can still be immediately switched to the other router from the router, normal use is not affected yet, and whether the user cancels halfway or secondarily modifies the route configuration or not, the wireless equipment can still be immediately switched back again; in case the home is equipped with only one router, an immediate switching of the wireless device will result in the user not being able to cancel halfway or modify the routing configuration secondarily, etc.
For this reason, in this embodiment, a route switching parameter is set to indicate whether the wireless device immediately switches the router, so as to better support the needs of the user to cancel halfway or secondarily modify the route configuration.
The obtaining of the route switching parameter, which is similar to the obtaining of the parameter to be modified, may include the following steps:
and determining the target equipment identification according to the user selection operation performed by triggering.
And receiving a route switching request initiated by a user aiming at the target equipment identifier according to the user input operation performed by triggering.
And responding to the route switching request to obtain the route switching parameters.
The user selection operation and the user input operation are as described above, and are not described in detail herein.
Step 353, packaging the route switching parameter and the access parameter to be modified into the access parameter configuration message.
After the route switching parameters and the access parameters to be modified are obtained, the route switching parameters and the access parameters to be modified can be respectively encapsulated into specific message fields in the data packet conforming to the specific data format, so that the access parameter configuration message is generated.
Then, for the wireless device, after receiving the access parameter configuration message conforming to the specific data format by forwarding through the router, the routing switch parameter and the access parameter to be modified encapsulated in the specific message field in the access parameter configuration message can be obtained by analyzing the different message fields, so as to automatically re-access the WIFI network based on the two parameters.
In the process, the real-time control of the wireless device switching router is realized, so that the requirement of cancelling or secondarily modifying the route configuration in the middle of a user is better met, and the user experience is greatly improved.
In addition, the wireless device re-accesses the WIFI network only depends on the specific data format of the wireless device, and a specific protocol is not required to be supported between the wireless device and the router, namely the wireless device is not limited by the router brand, so that the universality of the wireless device re-accessing the WIFI network is improved.
Referring to fig. 5, in an exemplary embodiment, step 370 may include the steps of:
step 371, waiting for all wireless devices that received the access parameter configuration message to return a configuration reply message.
In this embodiment, the detection of whether the configuration of the access parameter to be modified is completed is based on waiting for all wireless devices that have received the access parameter configuration message to return a configuration response message. That is, only after all wireless devices storing new access parameters return a configuration response message to the terminal, the terminal side can notify the router constructing the WIFI network to modify the routing configuration, as shown in fig. 6.
Step 373, determining whether the configuration response messages returned by all the wireless devices are received.
If all wireless devices that received the access parameter configuration message return a configuration reply message, step 377 is performed.
Otherwise, if there is still a wireless device that has partially received the access parameter configuration message that has not returned a configuration reply message, then the wait is continued, i.e., step 375 is performed.
Step 375, a determination is made as to whether to wait for a timeout or to time out after multiple retries.
Wherein, retry refers to retransmitting the access parameter configuration message to all wireless devices that received the access parameter configuration message.
If the wait times out or after multiple retries still times out, in order to ensure that the wireless device that has returned the configuration response message can re-access the WIFI network, it will also be regarded as detecting that the access parameter to be modified has completed configuration, i.e. step 377 is executed.
Otherwise, if not, wait is continued, i.e. execution returns to step 371.
Here, the number of retries may be flexibly set according to the actual requirement of the application scenario, which is not limited in this embodiment.
And step 377, detecting that the configuration of the access parameters to be modified is completed.
Referring to fig. 7, in another exemplary embodiment, step 370 may include the steps of:
Step 372, determining whether at least one standby access parameter is stored in the wireless device that receives the access parameter configuration message, and taking the wireless device that does not store the standby access parameter as the target wireless device.
And step 374, waiting for all target wireless devices which receive the access parameter configuration message to return a configuration response message.
As described above, for the wireless device, after receiving the access parameter configuration message, the access parameter to be modified is extracted from the access parameter configuration message to replace the old access parameter as a new access parameter, so as to be able to re-access the WIFI network based on the new access parameter.
In this embodiment, when the extracted access parameter to be modified replaces the old access parameter to become the new access parameter, the old access parameter is stored as the standby access parameter. It is also understood that a new access parameter, and at least one standby access parameter, are stored in the wireless device that has requested to re-access the WIFI network.
Thus, the inventor realizes that, for these wireless devices storing the standby access parameters, even if the wireless devices cannot re-access the WIFI network based on the new access parameters, they can still access the original WIFI network again based on the standby access parameters, so in this embodiment, the detection of whether the access parameters to be modified have completed configuration is implemented based on waiting for all wireless devices that have received the access parameter configuration message and have not stored the standby access parameters to return a configuration response message.
Wherein the wireless device that does not store the standby access parameters is considered the target wireless device.
For example, wireless devices that have access to a WIFI network include wireless device a, wireless device B, wireless device C.
Assuming that both wireless device a and wireless device B once request re-access to the WIFI network, both wireless device a and wireless device B store standby access parameters, while wireless device C does not store standby access parameters.
At this time, after the terminal sends the access parameter configuration message to the wireless device accessed to the WIFI network, the terminal only needs to notify the router constructing the WIFI network to modify the routing configuration after receiving the configuration response message returned by the wireless device C, so as to ensure that the wireless device C can access the WIFI network reconstructed by the router again.
Whether the wireless device A and the wireless device B acquire access to be modified or not, the wireless device A and the wireless device B can still access the WIFI network constructed by other routers again based on the standby access parameters, and normal use of the WIFI network is not affected.
By the arrangement, all target wireless devices receiving the access parameter configuration message only need to wait for the configuration response message to be returned, and all wireless devices receiving the access parameter configuration message do not need to wait for the configuration response message to be returned, so that the waiting time is greatly shortened, the access efficiency of the WIFI network is effectively improved, and the user experience is facilitated to be improved.
In addition, by storing the new access parameters and the standby access parameters, the wireless device can not only re-access the WIFI network constructed by one router based on the new access parameters, but also re-access the WIFI network constructed by the other router based on the standby access parameters, and the wireless device can be considered as having the capability of connecting two routes, so that the wireless device can be switched to the other route when one route is abnormal, and the network connection is fully ensured to be normal.
Step 376, determining whether the configuration response messages returned by all the target wireless devices are received.
If all the target wireless devices that received the access parameter configuration message return a configuration reply message, step 379 is performed.
Otherwise, if there is no configuration reply message returned by the target wireless device that has partially received the access parameter configuration message, then the process continues to wait, i.e., step 378 is performed.
Step 378 determines whether to wait for a timeout or to timeout after multiple retries.
Wherein, retry refers to retransmitting the access parameter configuration message to all the target wireless devices that received the access parameter configuration message.
If the wait times out or after multiple retries still times out, in order to ensure that the wireless device that has returned the configuration response message can re-access the WIFI network, it will also be regarded as detecting that the access parameter to be modified has completed configuration, i.e. step 379 is performed.
Otherwise, if not, wait is continued, i.e., execution returns to step 374.
Here, the number of retries may be flexibly set according to the actual requirement of the application scenario, which is not limited in this embodiment.
Step 379, detecting that the configuration of the access parameter to be modified is completed.
By the cooperation of the embodiments, the configuration detection of the access parameters to be modified is realized, the access success rate of the WIFI network can be ensured, the requirements of users for cancelling midway or secondarily modifying the route configuration and the like are met, and the user experience is effectively improved.
Referring to fig. 8, in yet another exemplary embodiment, a method for accessing a WIFI network by a wireless device is applicable to the wireless device 150 in the implementation environment shown in fig. 1, where the structure of the wireless device 150 may be as shown in fig. 2.
The method for the wireless device to access the WIFI network can be executed by the wireless device, and can also be understood to be executed by an application program running in the wireless device. In the following method embodiments, for convenience of description, the execution subject of each step is described as a wireless device, but this configuration is not limited thereto.
The method for accessing the wireless device to the WIFI network can comprise the following steps:
In step 410, during the wireless device accessing the WIFI network through the router, an access parameter configuration message issued by the terminal is received, where the access parameter configuration message is generated by the terminal in response to an access parameter modification request, and the access parameter modification request is initiated for a device identifier corresponding to the wireless device displayed in the access parameter configuration page.
And step 430, extracting the access parameters to be modified from the access parameter configuration message.
Step 450, when the router modifies the route configuration, re-accessing the WIFI network according to the access parameter to be modified, where the router modifies the route configuration by the terminal waiting for receiving at least one wireless device of the access parameter configuration message to return a configuration response message, so as to detect whether the access parameter to be modified has completed configuration and notify the terminal of the completion of configuration.
In the process, the wireless device can automatically re-access the WIFI network based on the access parameters to be modified without manual participation, and the phenomenon that the re-access of the wireless device to the WIFI network in the prior art depends on manual implementation is effectively avoided.
Referring to fig. 9, in an exemplary embodiment, prior to step 450, the method as described above may further include the steps of:
Step 510 extracts the routing switch parameters from the access parameter configuration message.
Step 530, determining whether the route switch parameter indicates to switch routers immediately.
The route switching parameter is used for indicating whether the wireless device immediately switches the router, so that requirements of users for cancelling midway or secondarily modifying route configuration and the like are better supported. Specifically, when the number of routers equipped in the home is plural, the route switching parameter is set to switch immediately, and when the number of routers equipped in the home is only one, the route switching parameter is set not to switch immediately.
If the route switch parameter indicates an immediate switch router, step 550 is performed.
Otherwise, if the route switch parameter indicates that the router is not immediately switched, step 450 is performed.
And step 550, re-accessing the WIFI network according to the access parameters to be modified.
That is, when the wireless device stores the new access parameter and immediately switches, it will directly try to re-access the WIFI network based on the new access parameter, without waiting for manual reset, where the new access parameter is the access parameter to be modified, so as to avoid the loss of user data and long-time in a disconnected state, thereby improving user experience. And step 450, when the router modifies the routing configuration, re-accessing the WIFI network according to the access parameter to be modified.
Therefore, when the wireless device stores the new access parameters and does not switch immediately, the wireless device can still ensure normal access to the WIFI network based on the standby access parameters, namely, the wireless device can be available on line, so that users can cancel midway or modify the route configuration secondarily, and the requirements of the users are fully ensured.
Further, the connection state between the wireless device and the router is combined to judge the time of re-accessing the WIFI network, and then when the connection state is in a disconnection state, the WIFI network is attempted to be re-accessed based on the new access parameters.
Under the action of the embodiment, the real-time control of the routing switching of the wireless equipment is realized, so that the demands of the home users and the large network users with different numbers of routers on midway cancellation or secondary modification of the routing configuration are met, and the user experience is greatly improved.
Referring to fig. 10, in an exemplary embodiment, step 450 may include the steps of:
step 451 listens for a connection status message.
The connection state message is used for indicating whether the connection state between the wireless device and the router is normal or not.
The connection state includes a connection normal state and a connection disconnection state. Wherein, the normal connection state indicates normal connection state, and the disconnected connection state indicates abnormal connection state.
It should be noted that the connection disconnection state is not limited to the service set identifier of the router or the access password of the WIFI network constructed by the router being modified, and may be caused by the failure or other abnormality of the router, which is not listed herein.
It is added that, regarding the connection status message, after the wireless device accesses the WIFI network through the router, the corresponding connection status message can be reported to the terminal through the router, so that the terminal can monitor.
Step 452 determines whether the connection status message indicates that the connection status between the wireless device and the router is in a disconnected state.
If the connection status message indicates that the connection status between the wireless device and the router is in a disconnected state, step 453 is performed.
Otherwise, if the connection status message indicates that the connection status between the wireless device and the router is in a normal connection status, the process returns to step 451 to continue to monitor for connection status messages.
Step 453, re-accessing the WIFI network through the new access parameters.
Step 454, determining whether the re-access by the new access parameter is successful.
If yes, the wireless device is successfully accessed to the WIFI network again.
If not, i.e., if the connection has timed out, indicating that the wireless device has failed to re-access the WIFI network, step 455 is performed.
And step 455, re-accessing the WIFI network according to the standby access parameters.
Step 456, determining whether the re-access by the standby access parameters is successful.
If yes, the wireless device is successfully re-accessed to the original WIFI network.
If not, that is, if the connection is over-time, which indicates that the wireless device fails to re-access the original WIFI network, step 453 is executed, that is, the re-access of the WIFI network is performed through the new access parameter.
Through the process, based on the new access parameters and the standby access parameters, the wireless equipment can still recover the connection with the rest router through the standby access parameters when the wireless equipment fails to connect due to the problem of the new access parameters or fails to connect due to the fault or other abnormality of the router, so that the wireless equipment can quickly and conveniently automatically switch the routes, and the stability of the Internet of things system is ensured.
In addition, the user can conveniently and freely select and switch the wireless equipment equipped for the family to any available router, so that the network flow is balanced, the service efficiency of the wireless equipment is improved, and the user experience is further effectively improved.
The following is an embodiment of the apparatus of the present invention, which may be used to execute the method for accessing the WIFI network by the wireless device according to the present invention. For details not disclosed in the embodiments of the apparatus of the present invention, please refer to an embodiment of a method for accessing a WIFI network by a wireless device according to the present invention.
Referring to fig. 11, in an exemplary embodiment, an apparatus 900 for a wireless device to access a WIFI network is applied to a terminal, where the apparatus 900 includes, but is not limited to: an identity display module 910, a parameter acquisition module 930, a message processing module 950, a message waiting module 970, and a notification module 990.
The identifier display module 910 is configured to display, in the displayed access parameter configuration page, a device identifier corresponding to the wireless device.
The parameter obtaining module 930 is configured to obtain an access parameter to be modified according to an access parameter modification request initiated for a device identifier corresponding to at least one wireless device.
The message processing module 950 is configured to generate an access parameter configuration message according to the obtained access parameter to be modified, and send the access parameter configuration message to at least one wireless device.
A message waiting module 970, configured to wait for at least one wireless device that has received the access parameter configuration message to return a configuration reply message to detect whether the access parameter to be modified has completed configuration.
And the notification module 990 is configured to notify the router constructing the WIFI network to perform route configuration modification when detecting that the access parameter to be modified has completed configuration, so as to control at least one wireless device connected to the router to re-access the WIFI network according to the access parameter to be modified in the access parameter configuration message when the router modifies the route configuration.
In an exemplary embodiment, the message processing module 950 includes, but is not limited to: a parameter acquisition unit and a parameter encapsulation unit.
The parameter acquisition unit is used for acquiring the route switching parameters.
And the parameter encapsulation unit is used for encapsulating the route switching parameter and the access parameter to be modified into the access parameter configuration message.
In an exemplary embodiment, the message waiting module 970 includes, but is not limited to: a first message waiting unit and a first detecting unit.
The first message waiting unit is used for waiting all wireless devices which receive the access parameter configuration message to return a configuration response message.
And the first detection unit is used for detecting that the access parameters to be modified are configured if the configuration response messages returned by all the wireless devices are received completely, wait for overtime or still overtime after retrying the configuration response messages.
In an exemplary embodiment, the message processing module 950 includes, but is not limited to: the device comprises a target device determining unit, a second message waiting unit and a second detecting unit.
The target device determining unit is configured to determine whether at least one standby access parameter is stored in the wireless device that receives the access parameter configuration message, and take the wireless device that does not store the standby access parameter as the target wireless device.
And the second message waiting unit is used for waiting all target wireless devices which receive the access parameter configuration message to return a configuration response message.
And the second detection unit is used for detecting that the access parameters to be modified are configured if the configuration response messages returned by all the target wireless devices are received, wait for overtime or still overtime after multiple retries.
Referring to fig. 12, in an exemplary embodiment, an apparatus 1100 for a wireless device to access a WIFI network is applied to a wireless device, where the apparatus 1100 includes, but is not limited to: a message receiving module 1110, a parameter extracting module 1130, and a re-access module 1150.
The message receiving module 1110 is configured to receive, during a process that the wireless device accesses the WIFI network through the router, an access parameter configuration message sent by the terminal, where the access parameter configuration message is generated by the terminal in response to an access parameter modification request initiated by a user.
And a parameter extraction module 1130, configured to extract the access parameter to be modified from the access parameter configuration message.
And a re-access module 1150, configured to re-access the WIFI network according to the access parameter to be modified when the router modifies the routing configuration, where the router modifies the routing configuration by the terminal waiting for at least one wireless device that receives the access parameter configuration message to return a configuration response message to detect whether the access parameter to be modified has completed configuration and notify the terminal of the completion of configuration.
In an exemplary embodiment, the apparatus 1100 further includes, but is not limited to: the device comprises a parameter extraction module, a first execution module and a second execution module.
And the parameter extraction module is used for extracting the route switching parameters from the access parameter configuration message.
And the first execution module is used for executing the step of re-accessing the WIFI network according to the access parameter to be modified if the route switching parameter indicates to immediately switch the router.
And the second execution module is used for executing the step of re-accessing the WIFI network according to the access parameter to be modified when the router modifies the route configuration if the route switching parameter indicates that the router is not switched immediately.
In an exemplary embodiment, the apparatus 1100 further includes, but is not limited to: and a parameter storage module.
And the parameter storage module is used for replacing the old access parameter with the new access parameter when the extracted access parameter to be modified is changed into the new access parameter, and storing the old access parameter as a standby access parameter.
Accordingly, the re-access module 1150 includes, but is not limited to: the system comprises a message monitoring unit, a first access unit, a first judging unit and a second access unit.
The message monitoring unit is used for monitoring a connection state message, and the connection state message is used for indicating whether the connection state between the wireless equipment and the router is normal or not.
And the first access unit is used for re-accessing the WIFI network through the new access parameter if the connection state message indicates that the connection state between the wireless equipment and the router is in a connection disconnection state.
And the first judging unit is used for judging whether the re-access performed by the new access parameters is successful or not. And if not, notifying the second access unit.
And the second access unit is used for re-accessing the WIFI network according to the standby access parameters.
Further, in an exemplary embodiment, the re-access module 1150 further includes, but is not limited to: and a second judging unit.
And the second judging unit is used for judging whether the re-access performed by the standby access parameters is successful or not. And if not, notifying the first access unit.
The first access unit is configured to re-access the WIFI network according to the new access parameter.
It should be noted that, when the device for accessing the WIFI network by the wireless device provided by the foregoing embodiment performs the wireless device accessing the WIFI network, only the division of the foregoing functional modules is used for illustrating, in practical application, the foregoing functional allocation may be completed by different functional modules according to needs, that is, the internal structure of the device for accessing the WIFI network by the wireless device will be divided into different functional modules, so as to complete all or part of the functions described above.
In addition, the device for accessing the WIFI network by the wireless device provided in the foregoing embodiment and the embodiment of the method for accessing the WIFI network by the wireless device belong to the same concept, and the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, which is not described herein again.
Referring to fig. 13, in an exemplary embodiment, an electronic device 1000 includes at least one processor 1001 and at least one memory 1002.
Wherein the memory 1002 has stored thereon computer readable instructions, the processor 1001 reads the computer readable instructions stored in the memory 1002.
The computer readable instructions, when executed by the processor 1001, implement the method for accessing a WIFI network by a wireless device in the above embodiments.
In an exemplary embodiment, a storage medium has stored thereon a computer program that, when executed by a processor, implements the method for accessing a WIFI network by a wireless device in the above embodiments.
The foregoing is merely illustrative of the preferred embodiments of the present invention and is not intended to limit the embodiments of the present invention, and those skilled in the art can easily make corresponding variations or modifications according to the main concept and spirit of the present invention, so that the protection scope of the present invention shall be defined by the claims.

Claims (11)

1. A method for a wireless device to access a WIFI network, the method being applied to a terminal, the method comprising:
displaying a device identifier corresponding to the wireless device in the displayed access parameter configuration page; the wireless device is accessed to a WIFI network constructed by a router;
Selecting at least one device identifier from the displayed device identifiers as a target device identifier, and initiating an access parameter modification request aiming at the target device identifier to acquire an access parameter to be modified; the access parameter to be modified refers to an access parameter configured by expecting the wireless device corresponding to the target device identifier to re-access the WIFI network under the condition that the router modifies the routing configuration;
generating an access parameter configuration message according to the acquired access parameter to be modified, and sending the access parameter configuration message to the wireless equipment corresponding to the target equipment identifier in the process that the wireless equipment corresponding to the target equipment identifier accesses the WIFI network through the router;
determining whether at least one standby access parameter is stored in the wireless device which receives the access parameter configuration message, taking the wireless device which does not store the standby access parameter as a target wireless device, and waiting for the target wireless device which receives the access parameter configuration message to return a configuration response message so as to detect whether the access parameter to be modified is configured; the standby access parameters are different from the access parameters to be modified, and are used for accessing the wireless equipment stored with the standby access parameters into a WIFI network constructed by another router;
When the access parameter to be modified is detected to be configured, notifying the router constructing the WIFI network to carry out route configuration modification so as to control the wireless device corresponding to the target device identifier to re-access the WIFI network according to the access parameter to be modified in the access parameter configuration message when the router modifies the route configuration; when the router modifies the route configuration, the connection state between the wireless device corresponding to the target device identifier and the router is in a connection disconnection state, and after the wireless device corresponding to the target device identifier is re-accessed to the WIFI network, the connection state between the wireless device corresponding to the target device identifier and the router is in a connection normal state.
2. The method of claim 1, wherein the generating the access parameter configuration message according to the acquired access parameter to be modified comprises:
acquiring a route switching parameter;
and packaging the route switching parameters and the access parameters to be modified into the access parameter configuration message.
3. The method of claim 1 or 2, wherein the target wireless device waiting to receive the access parameter configuration message returns a configuration reply message to detect whether the access parameter to be modified has completed configuration, comprising:
Waiting for all target wireless devices which receive the access parameter configuration message to return a configuration response message;
and if the configuration response messages returned by all the target wireless devices are received completely, wait for overtime or still overtime after multiple retries, detecting that the access parameters to be modified are configured.
4. A method for a wireless device to access a WIFI network, the method being applied to a wireless device, the method comprising:
receiving an access parameter configuration message issued by a terminal in the process that wireless equipment accesses a WIFI network through a router, wherein the access parameter configuration message is generated by the terminal in response to an access parameter modification request, and the access parameter modification request is initiated aiming at a target equipment identifier; the target equipment identifier is selected from equipment identifiers corresponding to the wireless equipment displayed in the access parameter configuration page;
extracting an access parameter to be modified from the access parameter configuration message; the access parameter to be modified refers to an access parameter configured by expecting the wireless device corresponding to the target device identifier to re-access the WIFI network under the condition that the router modifies the routing configuration;
When the router modifies the route configuration, the router re-accesses the WIFI network according to the access parameter to be modified, wherein the router modifies the route configuration, namely, the terminal waits for receiving a target wireless device of the access parameter configuration message to return a configuration response message so as to detect whether the access parameter to be modified is configured or not and notify the configuration; the target wireless device is obtained by the wireless device which does not store the standby access parameters by determining whether the wireless device which receives the access parameter configuration message stores at least one standby access parameter; the standby access parameters are different from the access parameters to be modified, and are used for accessing the wireless equipment stored with the standby access parameters into a WIFI network constructed by another router; when the router modifies the route configuration, the connection state between the wireless device corresponding to the target device identifier and the router is in a connection disconnection state, and after the wireless device corresponding to the target device identifier is re-accessed to the WIFI network, the connection state between the wireless device corresponding to the target device identifier and the router is in a connection normal state.
5. The method of claim 4, wherein when the router modifies the routing configuration, the method further comprises, prior to re-accessing the WIFI network according to the access parameters to be modified:
Extracting a route switching parameter from the access parameter configuration message;
if the route switching parameter indicates to switch the router immediately, executing the step of re-accessing the WIFI network according to the access parameter to be modified;
and if the route switching parameter indicates that the router is not switched immediately, executing the step of re-accessing the WIFI network according to the access parameter to be modified when the router modifies the route configuration.
6. The method of claim 4, wherein the method further comprises:
when the extracted access parameter to be modified replaces the old access parameter to become a new access parameter, storing the old access parameter as a standby access parameter;
and when the router modifies the routing configuration, re-accessing the WIFI network according to the access parameter to be modified, including:
monitoring a connection state message, wherein the connection state message is used for indicating whether the connection state between the wireless device corresponding to the target device identifier and the router is normal or not;
if the connection state information indicates that the connection state between the wireless device corresponding to the target device identifier and the router is in a connection disconnection state, re-accessing the WIFI network through the new access parameter;
Judging whether the re-access by the new access parameters is successful or not;
and if not, re-accessing the WIFI network according to the standby access parameters.
7. The method of claim 6, wherein when the router modifies the routing configuration, re-accessing the WIFI network according to the access parameters to be modified, further comprising:
judging whether the re-access by the standby access parameters is successful or not;
and if not, re-accessing the WIFI network according to the new access parameters.
8. An apparatus for wireless device access to a WIFI network, the apparatus being applied to a terminal, the apparatus comprising:
the identification display module is used for displaying the equipment identification corresponding to the wireless equipment in the displayed access parameter configuration page; the wireless device is accessed to a WIFI network constructed by a router;
the parameter acquisition module is used for selecting at least one equipment identifier from the displayed equipment identifiers as a target equipment identifier, initiating an access parameter modification request aiming at the target equipment identifier, and acquiring an access parameter to be modified; the access parameter to be modified refers to an access parameter configured by expecting the wireless device corresponding to the target device identifier to re-access the WIFI network under the condition that the router modifies the routing configuration;
The message processing module is used for generating an access parameter configuration message according to the acquired access parameter to be modified, and sending the access parameter configuration message to at least one wireless device in the process that the wireless device corresponding to the target device identifier accesses the WIFI network through the router;
the message waiting module is used for determining whether at least one standby access parameter is stored in the wireless device which receives the access parameter configuration message, taking the wireless device which does not store the standby access parameter as a target wireless device, and waiting for the target wireless device which receives the access parameter configuration message to return a configuration response message so as to detect whether the access parameter to be modified is configured; the standby access parameters are different from the access parameters to be modified, and are used for accessing the wireless equipment stored with the standby access parameters into a WIFI network constructed by another router;
the notification module is used for notifying the router constructing the WIFI network to carry out route configuration modification when the access parameter to be modified is detected to be configured, so as to control the wireless device corresponding to the target device identifier to re-access the WIFI network according to the access parameter to be modified in the access parameter configuration message when the router modifies the route configuration; when the router modifies the route configuration, the connection state between the wireless device corresponding to the target device identifier and the router is in a connection disconnection state, and after the wireless device corresponding to the target device identifier is re-accessed to the WIFI network, the connection state between the wireless device corresponding to the target device identifier and the router is in a connection normal state.
9. An apparatus for wireless device access to a WIFI network, the apparatus being applied to a wireless device, the apparatus comprising:
the wireless device comprises a message receiving module, a wireless router and a wireless network management module, wherein the message receiving module is used for receiving an access parameter configuration message issued by a terminal in the process that the wireless device accesses a WIFI network through the router, and the access parameter configuration message is generated by the terminal in response to an access parameter modification request initiated by a user; the access parameter modification request is initiated for a target device identification; the target equipment identifier is selected from equipment identifiers corresponding to the wireless equipment displayed in the access parameter configuration page;
the parameter extraction module is used for extracting the access parameters to be modified from the access parameter configuration message; the access parameter to be modified refers to an access parameter configured by expecting the wireless device corresponding to the target device identifier to re-access the WIFI network under the condition that the router modifies the routing configuration;
the re-access module is used for re-accessing the WIFI network according to the access parameter to be modified when the router modifies the route configuration, wherein the router modifies the route configuration, namely, the terminal waits for the target wireless equipment receiving the access parameter configuration message to return a configuration response message so as to detect whether the access parameter to be modified is configured or not and notify the configuration; the target wireless device is obtained by the wireless device which does not store the standby access parameters by determining whether the wireless device which receives the access parameter configuration message stores at least one standby access parameter; the standby access parameters are different from the access parameters to be modified, and are used for accessing the wireless equipment stored with the standby access parameters into a WIFI network constructed by another router; when the router modifies the route configuration, the connection state between the wireless device corresponding to the target device identifier and the router is in a connection disconnection state, and after the wireless device corresponding to the target device identifier is re-accessed to the WIFI network, the connection state between the wireless device corresponding to the target device identifier and the router is in a connection normal state.
10. An electronic device, comprising:
a processor; a kind of electronic device with high-pressure air-conditioning system
A memory having stored thereon computer readable instructions which, when executed by the processor, implement a method of a wireless device accessing a WIFI network according to any of claims 1 to 7.
11. A storage medium having stored thereon a computer program which, when executed by a processor, implements a method of a wireless device according to any of claims 1 to 7 for accessing a WIFI network.
CN201911112478.2A 2019-11-14 2019-11-14 Method and device for wireless device to access WIFI network, electronic device and storage medium Active CN110830305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911112478.2A CN110830305B (en) 2019-11-14 2019-11-14 Method and device for wireless device to access WIFI network, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911112478.2A CN110830305B (en) 2019-11-14 2019-11-14 Method and device for wireless device to access WIFI network, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN110830305A CN110830305A (en) 2020-02-21
CN110830305B true CN110830305B (en) 2023-08-04

Family

ID=69555111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911112478.2A Active CN110830305B (en) 2019-11-14 2019-11-14 Method and device for wireless device to access WIFI network, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN110830305B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065627B (en) * 2022-05-20 2024-04-12 北京奇艺世纪科技有限公司 Parameter modification method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202799A (en) * 2014-07-29 2014-12-10 福建星网锐捷通讯股份有限公司 A method for accessing wireless network by WIFI smart apparatus with zero-configuration
CN104254070A (en) * 2013-06-25 2014-12-31 中兴通讯股份有限公司 WiFi access method, intelligent terminal and router equipment
CN104853406A (en) * 2015-04-27 2015-08-19 小米科技有限责任公司 Service set identifier SSID providing method, acquiring method and device
CN104994118A (en) * 2015-08-11 2015-10-21 吴培希 WiFi authentication system and method based on dynamic password
CN107567072A (en) * 2016-07-01 2018-01-09 中兴通讯股份有限公司 A kind of WIFI hot spot information amending method and device
CN108259249A (en) * 2018-02-26 2018-07-06 公牛集团股份有限公司 Method for network access, router, terminal device, server and network system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11627466B2 (en) * 2018-02-14 2023-04-11 T-Mobile Usa, Inc. Updating automatic access parameters for wireless local area networks

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104254070A (en) * 2013-06-25 2014-12-31 中兴通讯股份有限公司 WiFi access method, intelligent terminal and router equipment
CN104202799A (en) * 2014-07-29 2014-12-10 福建星网锐捷通讯股份有限公司 A method for accessing wireless network by WIFI smart apparatus with zero-configuration
CN104853406A (en) * 2015-04-27 2015-08-19 小米科技有限责任公司 Service set identifier SSID providing method, acquiring method and device
CN104994118A (en) * 2015-08-11 2015-10-21 吴培希 WiFi authentication system and method based on dynamic password
CN107567072A (en) * 2016-07-01 2018-01-09 中兴通讯股份有限公司 A kind of WIFI hot spot information amending method and device
CN108259249A (en) * 2018-02-26 2018-07-06 公牛集团股份有限公司 Method for network access, router, terminal device, server and network system

Also Published As

Publication number Publication date
CN110830305A (en) 2020-02-21

Similar Documents

Publication Publication Date Title
US11888644B2 (en) Network configuration method for home appliance, home appliance, mobile terminal, and storage medium
CN106302565B (en) Scheduling method and system of service server
TW201944236A (en) Task processing method, apparatus, and system
CN104639913B (en) A kind of network video recorder and its method for automatically accessing IPC
EP3229420A1 (en) Method for establishing persistent connection between multiple smart devices and server, and smart device
CN106293887A (en) Data base processing method and device
CN105578470A (en) Method for accessing to network by device of internet of things, device and system
CN108712501A (en) Sending method, device, computing device and the storage medium of information
CN109040295B (en) Method and device for determining abnormal disconnection, terminal and storage medium
CN106550030B (en) A kind of data sharing method, apparatus and system
CN108924043A (en) System monitoring method, gateway communication, gateway apparatus, service processing equipment
EP3214809A1 (en) M2m group and notification resource creation and information exchange methods therefor, and storage medium
CN112398689A (en) Network recovery method and device, storage medium and electronic equipment
CN110830305B (en) Method and device for wireless device to access WIFI network, electronic device and storage medium
CN113992740B (en) Middleware based on autonomous control and data transmission method
CN111935337B (en) MAC address keep-alive method, equipment and storage medium of aggregation link
CN105721231A (en) Service quality sensing detection method and service quality sensing detection device
CN114978910A (en) Time sensitivity realization method and system of virtualization core network
CN114884805A (en) Data transmission method, device, terminal and storage medium
CN115242693A (en) Network detection method, device, equipment and storage medium
CN113746909A (en) Network connection method, device, electronic equipment and computer readable storage medium
CN110958148A (en) Deployment system of distributed access equipment
CN112118420A (en) Automatic configuration method and device for monitoring system
CN114157725B (en) Method, device, server, electronic equipment and storage medium for equipment linkage
CN110912997B (en) Method and device for checking Loopback interface of triangular networking

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant