A kind of method, router, terminal and medium that configuration equipment networks
Technical field
This application involves but be not limited to Internet technical field more particularly to it is a kind of configuration equipment network method, routing
Device, terminal and medium.
Background technology
With the fast development of Internet of Things and the extensive use of equipment, wireless communication function such as WiFi (Wireless
Fidelity) function is the critically important function of equipment, and configuring the networking of the equipment with WiFi function becomes using equipment most base
One step of plinth and most critical.How to improve configuration success rate and also becomes technical staff's concern.
The configuration network access mode of mainstream includes following two at present:
One, using equipment as hot spot, after terminal connects hot spot, annunciator will configure the WiFi titles and password of networking;
Equipment reconnects WiFi after exiting hotspot pattern.
Two, WiFi titles and password are inputted at terminal end, broadcast packet is sent by terminal or configuration is wrapped.
Existing mode has the disadvantage that:
One, since the limitation of terminal itself causes terminal that can not scan the equipment for waiting for network connection configuration, use Android system
Although terminal can scan the equipment for waiting for network connection configuration after obtaining corresponding authority, WiFi permissions must be obtained.Various limitations
Resulting in terminal can not know which has wait for log equipment at present, some specific equipment can not also be selected to be configured.
Two, since the limitation of terminal itself cannot obtain the password of WiFi, so user is needed to be manually entered WiFi passwords,
And it is very easy to that mistake occurs during inputting password.If Password Input mistake can lead to configuration failure, and can not
The reason of knowing configuration error.It is easy that user is made to generate puzzlement in this way, and is difficult to investigate problem.
Three, equipment connection WiFi failures can be led to by configuring the modification of router password when networking, and need to reconfigure.
Invention content
In order to solve the above technical problem, the present invention provides a kind of method, router, terminal and Jie that configuration equipment networks
Matter.
The method that configuration equipment provided by the invention networks, is applied to router, including:
Structure waits for log equipment list;
It will wait for that log equipment list is sent to terminal;
The instruction that configuration target device networks is received from terminal, wherein target device is from waiting for selecting in log equipment list;
Configuration inbound information is sent to target device according to instruction, target device is made to access local according to configuration inbound information
Net.
The method that above-mentioned configuration equipment networks also has the characteristics that:
Configuring inbound information includes:The independent password generated according to the device identification of target device.
The method that above-mentioned configuration equipment networks also has the characteristics that:
Structure waits for that log equipment list includes:
Scanning for beacon frame;
Determine the beacon frame to network for applying for configuration;
The mark for waiting for log equipment is parsed from the beacon frame for applying for configuration networking;
Log equipment list is waited for according to waiting for that the mark of log equipment is built.
The method that above-mentioned configuration equipment networks also has the characteristics that:
After sending configuration inbound information to target device according to instruction, the method further includes:Statistics believe by log equipment
Breath.
The method that configuration equipment provided by the invention networks, is applied to terminal, including:
Log equipment list is waited for from router acquisition;
From waiting for log equipment list selection target equipment;
The instruction that configuration target device networks is sent to router, wherein this instruction is used to indicate router and is set to target
Preparation send the configuration inbound information of access to LAN.
The method that above-mentioned configuration equipment networks also has the characteristics that:
Configuring inbound information includes:The independent password generated according to the device identification of target device.
The method that above-mentioned configuration equipment networks also has the characteristics that:
After sending the instruction that configuration target device networks to router, the method further includes:It obtains from router
Net facility information.
The router that configuration equipment provided by the invention networks, including:
First structure module, log equipment list is waited for for building;
First sending module, for that will wait for that log equipment list is sent to terminal;
First receiving module, for from terminal receive configuration target device network instruction, wherein target device from wait for into
It is selected in net list of devices;
Second sending module makes target device according to matching for sending configuration inbound information to target device according to instruction
It is placed in net information access LAN.
The router that above-mentioned configuration equipment networks also has the characteristics that:
Configuring inbound information includes:The independent password generated according to the device identification of target device.
The router that above-mentioned configuration equipment networks also has the characteristics that:
First, which builds module, includes:
Scan module is used for scanning for beacon frame;
Determining module, for determining the beacon frame to network for applying for configuration;
Parsing module, for parsing the mark for waiting for log equipment from the beacon frame for applying for configuration networking;
Second structure module waits for that the mark structure of log equipment waits for log equipment list for basis.
The router that above-mentioned configuration equipment networks also has the characteristics that:
Router further includes after sending configuration inbound information to target device according to instruction, and the method further includes:Statistics
Log equipment information.
The terminal that configuration equipment provided by the invention networks, including:
First acquisition module, for waiting for log equipment list from router acquisition;
Selecting module, for from waiting for log equipment list selection target equipment;
Third sending module, for sending the instruction that configuration target device networks to router, wherein this instruction is for referring to
Show that router sends the configuration inbound information of access to LAN to target device.
The terminal that above-mentioned configuration equipment networks also has the characteristics that:
Configuring inbound information includes:The independent password generated according to the device identification of target device.
The terminal that above-mentioned configuration equipment networks also has the characteristics that:
Router further includes the second acquisition module, for obtaining log equipment information from router.
The present invention also provides a kind of computer readable storage medium, it is stored with computer program on this storage medium, this
The step of above method is realized when program is executed by processor.
The present invention also provides a kind of computer equipment, including memory, processor and storage are on a memory and can be
The step of computer program run on processor, this processor realizes the above method when executing above procedure.
The present invention has the following advantages:
One, terminal acquisition can be made to wait for log equipment list, and be explicitly presented to the user, user is allow independently to be selected
It selects.
Two, input WIFI network connection configuration information without user, user need to only select to carry out a key after the equipment to be configured to match
It sets, shortens configuration flow, prevent configuration failure problem caused by artificial input error.
Description of the drawings
The attached drawing for constituting the part of the present invention is used to provide further understanding of the present invention, schematic reality of the invention
Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart for the method that the configuration equipment in embodiment one applied to router networks;
Fig. 2 is the structure chart that the router that equipment networks is configured in embodiment one;
Fig. 3 is the flow chart for the method that the configuration equipment in embodiment two applied to terminal networks;
Fig. 4 is the structure chart that the terminal that equipment networks is configured in embodiment two;
Fig. 5 is the flow chart for the method that the configuration equipment in embodiment three applied to equipment networks.
Fig. 6 is the schematic diagram of a scenario in specific embodiment;
Fig. 7 is the flow chart for configuring equipment in specific embodiment and networking.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.It needs
Illustrate, in the absence of conflict, the features in the embodiments and the embodiments of the present application mutually can be combined arbitrarily.
Embodiment one
Fig. 1 is the method that the configuration equipment in embodiment one applied to router networks, including:
Step 101, structure waits for log equipment list;
Step 102, it will wait for that log equipment list is sent to terminal;
Step 103, the instruction that configuration target device networks is received from terminal, wherein this target device is from waiting for log equipment
It is selected in list;
Step 104, configuration inbound information is sent to target device according to above-metioned instruction, target device is made to be networked according to configuration
Information access LAN.
This method can make terminal acquisition wait for log equipment list, and explicitly be presented to the user, and user is allow to carry out certainly
Main selection;And input WIFI network connection configuration information without user, user need to only select to carry out a key after the equipment to be configured to match
It sets, shortens configuration flow, prevent configuration failure problem caused by artificial input error.
In step 101, structure waits for that log equipment list includes:
Scanning for beacon frame;
Determine the beacon frame to network for applying for configuration;
The mark for waiting for log equipment is parsed from the beacon frame for applying for configuration networking;
Log equipment list is waited for according to waiting for that the mark of log equipment is built.
Router can be arranged timer, timing scan beacon frame, by waiting for of being scanned in timer setting duration into
Net device build is at waiting for log equipment list.
Router and terminal pass through https protocol communications in step 102.
Router is that target device generates independent password in this method, and the configuration inbound information in step 104 includes basis
The independent password that the device identification of the target device generates.
After router receives the networking request for carrying this independent password from target device after step 104, foundation and target
The LAN connection of equipment.When the modification of the WiFi passwords of router, the independent password generated for target device is had no effect on, from
And make user that need not be reconfigured to equipment.
Further include statistics log equipment information after step 104.
Further include after step 104:Router is after terminal receives the inquiry request of log equipment, by the information of equipment
It is sent to terminal.The information of equipment can be IP, MAC Address etc..
Fig. 2 is the structure chart for configuring the router that equipment networks, this router includes:
First structure module, log equipment list is waited for for building;
First sending module, for that will wait for that log equipment list is sent to terminal;
First receiving module, for from terminal receive configuration target device network instruction, wherein target device from wait for into
It is selected in net list of devices;
Second sending module makes target device according to matching for sending configuration inbound information to target device according to instruction
It is placed in net information access LAN.
Wherein, configuration inbound information includes:The independent password generated according to the device identification of target device.
First, which builds module, includes:
Scan module is used for scanning for beacon frame;
Determining module, for determining the beacon frame to network for applying for configuration;
First parsing module, for parsing the mark for waiting for log equipment from the beacon frame for applying for configuration networking;
Second structure module waits for that the mark structure of log equipment waits for log equipment list for basis.
This router further includes comb meter module for counting log equipment information.
Embodiment two
Fig. 3 is the method that embodiment two is applied to that the configuration equipment of terminal networks, including:
Step 301, log equipment list is waited for from router acquisition;
Step 302, from waiting for log equipment list selection target equipment;
Step 303, the instruction that configuration target device networks is sent to router, wherein this instruction is used to indicate router
The configuration inbound information of access to LAN is sent to target device.
Configuration inbound information in step 303 includes the independent password generated according to the device identification of target device.
Further include obtaining log equipment information from router after step 303.
This method can make terminal acquisition wait for log equipment list, and explicitly be presented to the user, and user is allow to carry out certainly
Main selection;And input WIFI network connection configuration information without user, user need to only select to carry out a key after the equipment to be configured to match
It sets, shortens configuration flow, prevent configuration failure problem caused by artificial input error.
As shown in figure 4, the terminal that configuration equipment networks includes:
First acquisition module, for waiting for log equipment list from router acquisition;
Selecting module, for from waiting for log equipment list selection target equipment;
Third sending module, for sending the instruction that configuration target device networks to router, wherein this instruction is for referring to
Show that router sends the configuration inbound information of access to LAN to target device.
Wherein, configuration inbound information includes the independent password generated according to the device identification of target device.
This router further includes that the second acquisition module is used to obtain log equipment information from router.
Embodiment three
Fig. 5 is the method that embodiment three is applied to that the configuration equipment of equipment networks, including:
Step 501, into configuration mode;
Step 502, the beacon frame that broadcast networks for applying for configuration;
Step 503, configuration inbound information is received from router, parses access pin from configuration inbound information, uses
This access key accesses network.
Wherein,
Equipment reception user's touch command enters configuration mode in step 501, or after terminal receives user instruction
Into configuration-direct.
This equipment includes:
Configuration module, for entering configuration mode;
Broadcast module, for broadcasting the beacon frame to network for applying for configuration;
Second receiving module, for receiving configuration inbound information from router;
Second parsing module, for parsing access pin from configuration inbound information;
AM access module, for accessing network using this access key.
The present invention also provides computer readable storage medium, it is stored with computer program on this storage medium, this program quilt
The step of above method is realized when processor executes.
Specific embodiment
Fig. 6 is the application scenario diagram in specific embodiment, on the interface of terminal can display terminal obtain wait for log equipment
List.
As shown in fig. 7, the method for configuring equipment networking in specific embodiment includes:
Step 701, wait for that log equipment enters configuration mode, broadcast beacon frame, this beacon frame is for applying for that configuration networks
Beacon frame, the mark for waiting for log equipment is carried in this beacon frame.
Step 702, router structure waits for log equipment list.
Include specifically:
Scanning for beacon frame;Built-in timer in router, according to the timing length scanning for beacon frame of timer;
Determine the beacon frame to network for applying for configuration;
The mark for waiting for log equipment is parsed from the beacon frame for applying for configuration networking;
Log equipment list is waited for according to waiting for that the mark of log equipment is built.
This is waited for log equipment list caching or storage by router structure after log equipment list.
Step 703, terminal waits for log equipment list from router acquisition.
Terminal waits for log equipment list by http request from router acquisition.
Step 704, terminal is from waiting for log equipment list selection target equipment.
Terminal presentation waits for that log equipment list makes user that can check and waits for log equipment list, and user is from waiting for log equipment list
In select target device, terminal knows the target device that user selects depending on the user's operation.
Step 705, terminal sends the instruction that configuration target device networks to router, wherein this instruction is used to indicate road
The configuration inbound information of access to LAN is sent from device to target device.
Step 706, router sends configuration inbound information according to the instruction received to target device.This configuration, which networks, to be believed
The not instead of WIFI passwords for including in breath, the independent password that router is generated according to the device identification of target device.
Step 707, after equipment receives configuration inbound information, the independent password access office carried in configuration inbound information is used
Domain net.
Step 708, router statistics log equipment information.
Step 709, terminal is to query router log equipment information.
Descriptions above can combine implementation individually or in various ways, and these variants all exist
Within protection scope of the present invention.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way
Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.
One of ordinary skill in the art will appreciate that all or part of step in the above method can be instructed by program
Related hardware is completed, and program can be stored in computer readable storage medium, such as read-only memory, disk or CD.It can
The all or part of step of selection of land, above-described embodiment can also be realized using one or more integrated circuits, correspondingly, above-mentioned
The form that hardware may be used in each module/unit in embodiment is realized, can also be realized in the form of software function module.
The present invention is not limited to the combinations of the hardware and software of any particular form.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that article or equipment including a series of elements include not only those elements, but also includes not having
There is the other element being expressly recited, or further includes for this article or the intrinsic element of equipment.Do not limiting more
In the case of system, the element that is limited by sentence " including ... ", it is not excluded that including the element article or equipment in
There is also other identical elements.
The above examples are only used to illustrate the technical scheme of the present invention and are not limiting, reference only to preferred embodiment to this hair
It is bright to be described in detail.It will be understood by those of ordinary skill in the art that can modify to technical scheme of the present invention
Or equivalent replacement should all cover the claim model in the present invention without departing from the spirit of the technical scheme of the invention and range
In enclosing.