Disclosure of Invention
In view of the above, in order to solve the problems in the prior art, the present application provides a wireless network access method, a system and a terminal device.
In a first aspect, the present application provides a wireless network access method, applied to a terminal device, including:
when network pairing is determined to be needed, reading a first service set identifier and a first password of a pairing network stored by the router, and associating the first service set identifier and the first password with the pairing network of the router;
acquiring a second service set identifier and a second password of an authentication network of the router, and disconnecting the pairing network to associate the authentication network;
acquiring a third service set identifier and a third password of an internet surfing network of the router positioned in the same network group, disconnecting the authentication network to associate the internet surfing network, and completing network access; the network packet is configured by a cloud server.
In an alternative embodiment, the determining that the network pairing is needed includes:
if the network pairing process is detected to be not executed by the network pairing device; or if the internet surfing network which is not successfully associated with the router is detected, determining that network pairing is needed.
In an alternative embodiment, the obtaining the second service set identifier and the second password of the authentication network of the router includes:
acquiring and analyzing vendor specific information option fields issued by the router through a dynamic host configuration protocol to obtain a second service set identifier and a second password of an authentication network of the router;
the obtaining the third service set identifier and the third password of the internet surfing network of the router comprises the following steps:
and acquiring and analyzing the vendor specific information option field issued by the router through a dynamic host configuration protocol to obtain a third service set identifier and a third password of the Internet surfing network of the router.
In an alternative embodiment, after the associating with the pairing network of the router, the method further includes:
and uploading own terminal information to the router so that the router can report the terminal information to the cloud server.
In a second aspect, the present application provides a wireless network access method, applied to a cloud server, where the method includes:
network grouping is carried out on a plurality of routers and a plurality of terminal devices; wherein one of said network packets comprises at least one of said routers and at least one of said terminal devices.
In an alternative embodiment, the method further comprises:
inquiring terminal information of each terminal device according to the identification number of each terminal device, or receiving the terminal information of each terminal device uploaded by the router;
and transmitting each piece of terminal information to a router which is positioned in the same network packet with the corresponding terminal equipment, so that the router verifies the network pairing of the corresponding terminal equipment according to the terminal information.
In a third aspect, the present application provides a wireless network access method, applied to a router, the method including:
if the terminal equipment is determined to be associated with the pairing network, issuing a second service set identifier and a second password of the authentication network to the terminal equipment;
if the terminal equipment positioned in the same network group is determined to be associated with the authentication network after disconnecting the pairing network, a third service set identifier and a third password of a network access network are issued to the terminal equipment; the network packet is configured by a cloud server.
In an alternative embodiment, the method further comprises:
receiving terminal information issued by the cloud server, and adding the terminal information to a preset authentication white list so that the terminal equipment can verify through the authentication white list when being associated with the authentication network; and if the authentication white list contains the terminal information of the terminal equipment, issuing a third service set identifier and a third password of the internet surfing network to the terminal equipment.
In a fourth aspect, the present application provides a wireless network access system, including a cloud server, a router, and a terminal device;
the cloud server is used for carrying out network grouping on a plurality of routers and a plurality of terminal devices; wherein one of said network packets comprises at least one of said routers and at least one of said terminal devices;
the terminal equipment is used for reading a first service set identifier and a first password of a pairing network stored by the terminal equipment when the network pairing is determined to be needed, and associating the first service set identifier and the first password with the pairing network of the router;
the router is used for issuing a second service set identifier and a second password of the authentication network to the terminal equipment if the terminal equipment is determined to be associated with the pairing network;
the terminal equipment is also used for acquiring a second service set identifier and a second password of the authentication network of the router;
the router is further configured to issue a third service set identifier and a third password of a network to the terminal device if the terminal device located in the same network packet is determined to be associated with the authentication network after disconnecting the pairing network;
the terminal equipment is also used for acquiring a third service set identifier and a third password of the Internet surfing network of the router, disconnecting the authentication network so as to associate the Internet surfing network and complete network access.
In a fifth aspect, the present application provides a terminal device comprising a memory storing a computer program and at least one processor for executing the computer program to implement the aforementioned wireless network access method.
The embodiment of the application has the following beneficial effects:
the embodiment of the application provides a wireless network access method, which is applied to terminal equipment, and comprises the steps of reading a first service set identifier and a first password of a pairing network stored by the wireless network access method when network pairing is determined to be needed, and associating the first service set identifier and the first password with the pairing network of a router; acquiring a second service set identifier and a second password of an authentication network of the router, and disconnecting a pairing network to associate the authentication network; acquiring a third service set identifier and a third password of a network access network of a router positioned in the same network group, disconnecting an authentication network to associate the network access network, and completing network access; the network packets are configured by the cloud server. According to the embodiment of the application, the automatic control of the network pairing of the terminal equipment and the router is realized, the network pairing process of the terminal equipment is prevented from being manually interfered, and the pairing efficiency is improved; and when the SSID and the password of the Internet network are modified later, the terminal equipment can still be automatically paired to acquire the latest SSID and the latest password, so that the quick access of the wireless network is realized, and the manpower resources and the time cost are saved.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments.
The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
In the following, the terms "comprises", "comprising", "having" and their cognate terms may be used in various embodiments of the present application are intended only to refer to a particular feature, number, step, operation, element, component, or combination of the foregoing, and should not be interpreted as first excluding the existence of or increasing the likelihood of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of this application belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is identical to the meaning of the context in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in connection with the various embodiments.
At present, intelligent home equipment or terminal equipment such as an intelligent camera, an intelligent sound box and the like are inconvenient to input Wi-Fi passwords and the like, and are paired with a router before being formally used or connected with the Internet, so that a wireless network is accessed through the router, and a user can manage the intelligent home equipment or terminal equipment through application programs (such as APP and the like) or electronic equipment. Most of the existing pairing modes are that a user manually performs pairing operation, after clicking a pairing button of the terminal equipment, the terminal equipment communicates with an application program and the like through Bluetooth or other modes, then the user inputs a Service Set Identifier (SSID) and a password of Wi-Fi (wireless fidelity) to be associated with the terminal equipment, and finally the terminal equipment associates wifi to complete pairing. Because the pairing modes set by each terminal equipment manufacturer are different, the pairing process of each equipment is not intelligent enough, and when a user changes the SSID or the password of the Internet, each terminal equipment is required to be paired again, so that the network pairing process is complicated, and the network pairing efficiency is low.
Based on this, referring to fig. 1, an embodiment of the present application provides a wireless network access system, which includes a cloud server 100, a terminal device 200, and a router 300. According to the embodiment of the invention, the terminal equipment 200 and the pairing network, the authentication network and the internet surfing network of the corresponding router 300 are sequentially paired through automation, so that the terminal equipment can still be automatically paired to acquire the latest SSID and password without manual intervention when the SSID and the password of the internet surfing network are modified later, and the network pairing efficiency is improved.
Alternatively, the router may be a wireless router. The router is communicated with the cloud server through the Internet, the terminal equipment is wirelessly connected with the router after being paired with the router through the network, and the router provides a wireless internet function for the terminal equipment; the cloud server provides router management functions.
In this embodiment, the router and the terminal device are divided into network packets by the cloud server, so that the router manages the terminal devices located in the same network packet and provides a wireless internet function for each terminal device.
Further, the cloud server communicates with the router and carries out basic management on the router; in addition, the cloud server may configure network packets, one network packet including at least one router and at least one terminal device; and the cloud server is also used for inquiring terminal information of the terminal according to the unique identifier of the terminal equipment and sending the terminal information to the router of the same network packet, wherein the terminal information comprises equipment model, serial numbers, MAC addresses and the like.
The router has a wireless internet function and supports three wireless networks of a pairing network, an authentication network and an internet network; the terminal equipment is used for storing Service Set Identifiers (SSID) and passwords thereof of the pairing network, the authentication network and the internet access network in a local FLASH memory (FLASH) so as to realize an automatic pairing function subsequently; the SSID and the password of the pairing network are fixed and consistent with the pairing network of the router; the SSID and the password of the authentication network and the Internet access network are defaults to null values, the terminal equipment acquires the SSID and the password from the router in the pairing process and stores the SSID and the password into the local flash memory, and the SSID and the password are not updated until the next pairing is executed.
It should be noted that, in the process of starting network pairing after the terminal device is powered on, the paired networks of the corresponding routers are automatically associated, and then the router issues the SSID of the authentication network and the password thereof to the terminal device; the SSID and the password of the authentication network are non-fixed, so that the terminal equipment is prevented from skipping the pairing network to directly associate, wherein the authentication network has the function of preventing illegal terminal equipment from associating with a router through an authentication white list; after the terminal equipment associates with the authentication network, the router transmits the SSID and the password of the internet network; the internet network, such as Wi-Fi, the SSID and the password thereof are configured by the user, the terminal equipment can access the internet only when being associated with the internet network, and the user can manage the terminal equipment.
And after the terminal equipment is associated with the pairing network, uploading terminal information to a router, uploading the terminal information to a cloud server by the router, and transmitting the terminal information to the router by the cloud server so that the router executes subsequent authentication network association verification and internet access network SSID and password transmission based on the terminal information.
In particular, the above-described detailed procedure of the wireless network access system performing wireless network access may refer to the following embodiments of the wireless network access method.
In some examples, during wireless network access, the cloud server 100 may perform the following steps: network grouping is carried out on a plurality of routers and a plurality of terminal devices; wherein a network packet comprises at least one router and at least one terminal device.
It can be understood that the cloud server may perform network grouping on each router and terminal device in advance, so that the router in the same network grouping manages and connects the terminal device in the grouping, where the network grouping includes router information of the router and terminal information of the terminal device.
In an embodiment, the cloud server is further configured to perform the following steps:
inquiring terminal information of each terminal device according to the identification number of each terminal device, or receiving the terminal information of each terminal device uploaded by the router; and transmitting the terminal information to a router which is positioned in the same network packet with the corresponding terminal equipment, so that the router verifies the network pairing of the corresponding terminal equipment according to the terminal information.
Specifically, the cloud server may obtain terminal information of the terminal device in a corresponding manner, and send the terminal information to a router grouped with the same network as the terminal device, so that the router adds the terminal information to an authentication white list, so as to verify the terminal device based on the authentication white list.
In addition, the cloud server is used for managing the router, and when the network grouping information of the router is changed or the router information is changed, the cloud server sends the terminal information of the terminal equipment which is located in the same network grouping with the router to the router again, so that subsequent processing can be conveniently executed.
Correspondingly, when the wireless network access method is applied to the terminal equipment, the terminal equipment can be sequentially matched and associated with a matched network supported by a router positioned in the same network group, an authentication network and an internet access network when the terminal equipment needs to access the internet, so as to access the internet.
In some examples, referring to fig. 2, during wireless network access, the terminal device 200 may perform the following steps:
and S210, when the network pairing is determined to be needed, reading the first service set identification and the first password of the pairing network stored by the router, and associating with the pairing network of the router.
S220, acquiring a second service set identifier and a second password of the authentication network of the router, and disconnecting the pairing network to associate the authentication network.
S230, obtaining a third service set identifier and a third password of the Internet surfing network of the router of the same network packet, disconnecting the authentication network to associate the Internet surfing network, and completing network access.
It can be understood that when the terminal device needs to perform network pairing, the terminal device associates the corresponding network of the router according to the SSID and the password of the corresponding network stored in the flash memory of the terminal device.
Specifically, the terminal device stores the SSID of the pairing network, the authentication network and the internet access network of the router and the password thereof in advance; wherein the SSID of the mating network and its key are fixed; the SSID of the authentication network and the Internet network and the password thereof are acquired from the router during pairing and then stored in the local flash memory of the terminal equipment, and are not updated until the next pairing.
Further, when network pairing is needed, the terminal equipment firstly reads the SSID and the password (namely the first service set identifier and the first password) of the pairing network stored by the terminal equipment, then associates the SSID and the password of the pairing network with the pairing network of the corresponding router according to the SSID and the password of the pairing network, then acquires the SSID and the password (namely the second service set identifier and the second password) of the authentication network of the router from the router through the pairing network after the pairing network is associated, and then, opens the pairing network in a later step, and associates the authentication network of the router through the acquired second service set identifier and the second password; and after the authentication network is associated, acquiring the SSID and the password (namely the third service set identifier and the third password) of the internet surfing network of the router from the router through the authentication network, and then, after the authentication network is disconnected, associating the internet surfing network of the router through the acquired third service set identifier and the third password, thereby completing the network access of the terminal equipment.
It is worth to say that, the SSID of the authentication network of the router and the password thereof are generated randomly according to a software algorithm, and can be sent to the terminal equipment after being encrypted by a vendor specific information option field (namely a DHCP option43 field); the SSID of the internet network of the router and the password thereof can be freely configured, and the internet network of the router can be sent to the terminal equipment after being encrypted through the DHCP option43 field.
Furthermore, as an optional implementation manner, when the second service set identifier and the second password of the authentication network of the router are acquired, the vendor specific information option field (i.e., DHCP option43 field) issued by the router is acquired and parsed specifically through a dynamic host configuration protocol (i.e., DHCP protocol), so as to obtain the second service set identifier and the second password of the authentication network of the router; and when the third service set identifier and the third password of the internet surfing network of the router are acquired, the vendor specific information option field issued by the router is acquired and analyzed specifically through a dynamic host configuration protocol, so that the third service set identifier and the third password of the internet surfing network of the router are obtained.
That is, after the terminal device is associated to the pairing network and the authentication network, respectively analyzing the DHCP option43 field issued by the router in the process of acquiring the IP address through the DHCP protocol, acquiring the SSID and the password of the authentication network of the router, and the SSID and the password of the internet access network, and storing the SSID and the password in the local flash memory so as to be convenient for the subsequent association of the authentication network and the internet access network.
In this embodiment, the terminal device first associates with the pairing network of the router to establish communication with the router to obtain authentication network information (i.e., the second service set identifier and the second password) of the router, then the terminal device disconnects the pairing network, and further associates with the authentication network through the authentication network information to establish communication with the router to obtain internet network information (i.e., the third service set identifier and the third password) of the router, and finally the terminal device disconnects the authentication network, and further associates with the internet network through the internet network information to complete network pairing and access.
It should be noted that, in this embodiment, the terminal device determines that a network pairing process is required, including if it detects that no network pairing process is performed by itself; or if the network connection to the router is detected to be unsuccessful (it can be understood that the terminal device fails to connect to the network connection for multiple times, that is, the continuous failure times of the terminal device to connect to the network connection in the target time period is greater than a preset time threshold, where the target time period and the preset time threshold can be set according to actual requirements, and the embodiment is not limited to this), it is determined that network pairing is required. That is, when the terminal device detects that the terminal device is paired for the first time and is not associated to the internet network for many times successfully, the terminal device can sequentially execute association processes of the paired network, the authentication network and the internet network to realize network access.
For example, the specific scenario may be that after the SSID of the internet access network of the router and/or the password thereof is changed, after the terminal device attempts to associate with the internet access network for multiple times and fails, the wireless network access step of S310-S330 is automatically performed to obtain the SSID of the internet access network and the password thereof that are latest by the router, and network access is completed, and then the terminal device stores the SSID of the internet access network and the password thereof, so as to connect the internet access network, until the SSID or the password of the internet access network is changed again, and the wireless network access step is repeatedly performed again.
It can be understood that, if the terminal device needs to associate the internet surfing network of the router located in the same network packet to obtain the internet server, if it is determined that the terminal device needs to perform network pairing, the pairing network, the authentication network and the internet surfing network of the corresponding router are sequentially associated, so as to obtain and store the SSID of the internet surfing network and the password thereof, so as to complete network access. After the wireless network access step is executed once, the terminal equipment can automatically complete wireless network access directly according to the SSID and the password of the internet network stored by the terminal equipment under the condition that the SSID and the password of the internet network are not changed, and the network pairing is prevented from being repeatedly executed for a plurality of times, so that the network pairing efficiency is improved.
As an optional implementation manner, after the terminal device is associated with the pairing network of the router, the terminal device may further upload its own terminal information to the router, so that the router may report the terminal information to the cloud server, and further, the cloud server may send the terminal information to the router grouped with the same network as the terminal device, so that the router manages the terminal device and the terminal information thereof, and implement subsequent pairing verification.
Correspondingly, when the method is applied to the router, the router can provide internet service for the terminal equipment, and when the terminal equipment and the corresponding network of the router execute a pairing process, the terminal equipment can be subjected to pairing verification so as to improve the accuracy and reliability of network pairing and wireless network access.
Specifically, referring to fig. 3, during the wireless network access process, the router 300 may perform the following steps:
and S310, if the terminal equipment is determined to be associated with the pairing network, issuing a second service set identifier and a second password of the authentication network to the terminal equipment.
And S320, if the terminal equipment positioned in the same network group is determined to disconnect the pairing network and then is associated with the authentication network, a third service set identifier and a third password of the internet surfing network are issued to the terminal equipment.
The terminal device may establish communication with the router based on the associated pairing network, and further obtain authentication network information of the router, so that the router issues authentication network information (i.e. the second service set identifier and the second password) of the authentication network to the terminal device.
And when the router determines that the terminal equipment is associated with the authentication network after disconnecting the pairing network, the router transmits internet network information (namely a third service set identifier and a third password) of the internet network to the terminal equipment.
In one embodiment, the router is preset with an authentication white list, and the authentication white list includes terminal information of terminal devices that can be used for associating or connecting with an authentication network (i.e., terminal information of terminal devices that are located in the same network packet with the router), that is, when the terminal devices request to associate with the authentication network (i.e., before the terminal devices associate with the authentication network), the router can verify the terminal devices based on the authentication white list to determine whether the terminal devices have authority to associate with the authentication network.
Specifically, the router receives terminal information issued by the cloud server in advance, and adds the terminal information to a preset authentication white list, so that the terminal equipment is verified through the authentication white list later. Further, when the terminal equipment is associated with the pairing network and then requests to associate with the authentication network, the router verifies the terminal equipment through the authentication white list; if the authentication white list contains terminal information of the terminal equipment, transmitting internet surfing network information to the terminal equipment so as to enable the terminal equipment to be associated with an internet surfing network; if the authentication white list does not contain the terminal information of the terminal equipment, the internet surfing information is not issued to the terminal equipment; that is, if the authentication white list does not contain the terminal information of the terminal device, the router can refuse the terminal device to access the internet, and further the terminal device cannot receive the internet information issued by the router; it will be appreciated that the purpose of the authentication whitelist and/or authentication network is to enable a terminal device within the same network packet as the router to associate with the internet network of the router.
In this embodiment, the router supports a pairing network, an authentication network, and a surfing network; the pairing network and the authentication network are closed networks, and the terminal equipment can only communicate with a router after being associated with the network, can not access the internet and can not communicate with other terminal equipment of the same network; the pairing network is an unlimited access network, and any terminal equipment can be associated through verification; the authentication network is a limited access network, and only the terminal equipment in the authentication white list can be associated to access the network; the internet network is an open network, and the terminal equipment can access the internet and communicate with other network terminals after being associated with the network.
In addition, the router also supports cloud server management, receives terminal information issued by the cloud server, and adds the terminal information to the authentication white list.
In an embodiment, referring to fig. 4, the system further includes a router management terminal 400, where the router management terminal 400 is configured to support communication with the cloud server 100, perform basic management on the router 300, and add the same network packet to the router 300 and the terminal device 200 to be paired, so as to implement automatic pairing.
The user can log in the cloud server through the router management terminal, and the corresponding router and the terminal equipment to be paired are added into the same network packet, so that the network packets of the router and the terminal equipment are realized.
Further, the router management terminal is associated with a network of a router, and is communicated with a cloud server through the network of the router, so that the router management terminal is communicated with the cloud server to manage the router; in addition, the router management terminal is also used for providing an interface for managing each router, and other devices can correspondingly manage the router and the router information thereof through the interface.
It can be understood that the router management terminal is an interface of a cloud server or other device management router; when the router management terminal associates with the Internet of the router, the cloud server or other equipment establishes communication with the router management terminal to manage the router associated with the router management terminal and the router information thereof. Furthermore, the subsequent user can input the serial number of the terminal equipment through the login router management terminal, so that automatic pairing of the terminal equipment and the router can be realized, the network pairing process is not needed to be manually interfered, and the network pairing efficiency is improved. The router management terminal may be an electronic device such as a computer, and the specific type of the router management terminal may be set according to actual requirements, which is not limited herein.
It should be noted that in this embodiment, the terminal device does not need to send a corresponding instruction or command to the router for executing the verification and other processes in the network pairing and accessing process, and can directly associate with the corresponding network locally to complete network access, thereby simplifying the network pairing and accessing process correspondingly.
In addition, the network pairing and access process in the embodiment can correspondingly set a plurality of network pairing of the same type or different types according to actual requirements; by way of example, two paired networks are set, one paired network is a specific paired network, the other paired network is a common paired network, and further, the paired networks are associated with each other after the terminal equipment is controlled to be associated with the paired networks so as to improve compatibility of pairing of different networks, so that a subsequent cloud server or router can provide additional services for the terminal equipment based on the specific paired networks, for example, terminal equipment information associated with the specific paired networks can be intelligently and rapidly acquired, network pairing and access speed can be further improved, and efficiency can be improved.
In some examples, terminal devices of different brands can correspondingly set pairing networks of the brands according to own requirements, so that network access efficiency of the same brand is improved, and a cloud server or a router can quickly acquire terminal device information based on the specific pairing network, so that device management efficiency is improved.
According to the embodiment of the application, the automatic control of the network pairing of the terminal equipment and the router is realized, the network pairing process of the terminal equipment is prevented from being manually interfered, and the pairing efficiency is improved; and when the SSID and the password of the Internet network are modified later, the terminal equipment can still be automatically paired to acquire the latest SSID and the latest password, so that the quick access of the wireless network is realized, and the manpower resources and the time cost are saved.
The embodiment of the application also provides a terminal device, which can be, but is not limited to, a desktop computer, a notebook computer, a smart phone, a tablet and the like, and the existence form of the terminal device is not limited, and mainly depends on whether the terminal device needs to support an interface display function of a browser webpage or not. The terminal device comprises a processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program to enable the terminal device to execute the wireless network access method of the application, and the method comprises the following steps: when network pairing is determined to be needed, reading a first service set identifier and a first password of a pairing network stored by the router, and associating the first service set identifier and the first password with the pairing network of the router; acquiring a second service set identifier and a second password of an authentication network of the router, and disconnecting a pairing network to associate the authentication network; acquiring a third service set identifier and a third password of a network access network of a router positioned in the same network group, disconnecting an authentication network to associate the network access network, and completing network access; the network grouping is configured by a cloud server; furthermore, the embodiment realizes the automatic control of the network pairing of the terminal equipment and the router, avoids manual interference with the network pairing process of the terminal equipment, and improves the pairing efficiency; and when the SSID and the password of the Internet network are modified later, the terminal equipment can still be automatically paired to acquire the latest SSID and the latest password, so that the quick access of the wireless network is realized, and the manpower resources and the time cost are saved.
The processor may be an integrated circuit chip with signal processing capabilities. The processor may be a general purpose processor including at least one of a central processing unit (CentralProcessingUnit, CPU), a graphics processor (GraphicsProcessingUnit, GPU) and a network processor (NetworkProcessor, NP), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like that may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application.
The memory may be, but is not limited to, random access memory (RandomAccessMemory, RAM), read-only memory (ReadOnlyMemory, ROM), programmable read-only memory (Programmable read-OnlyMemory, PROM), erasable read-only memory (ErasableProgrammable read-OnlyMemory, EPROM), electrically erasable read-only memory (ElectroErasableProgrammable read-OnlyMemory, EEPROM), and the like. The memory is used for storing a computer program, and the processor can correspondingly execute the computer program after receiving the execution instruction.
Furthermore, the present application provides a computer storage medium for storing the computer program used in the terminal device, where the computer program implements the wireless network access method of the above embodiment when executed on a processor, and the method includes: when network pairing is determined to be needed, reading a first service set identifier and a first password of a pairing network stored by the router, and associating the first service set identifier and the first password with the pairing network of the router; acquiring a second service set identifier and a second password of an authentication network of the router, and disconnecting a pairing network to associate the authentication network; acquiring a third service set identifier and a third password of a network access network of a router positioned in the same network group, disconnecting an authentication network to associate the network access network, and completing network access; the network packets are configured by the cloud server.
It will be appreciated that the alternatives in the wireless network access method of the above embodiment are equally applicable to the present embodiment, and thus the description thereof will not be repeated here.
The computer storage medium may be a nonvolatile storage medium or a volatile storage medium. For example, the computer storage medium may include, but is not limited to,: a usb disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RAM, randomAccessMemory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, of the flow diagrams and block diagrams in the figures, which illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules or units in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a terminal device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application.