CN110213079A - A kind of router drop off-line configuration method, device and computer equipment - Google Patents

A kind of router drop off-line configuration method, device and computer equipment Download PDF

Info

Publication number
CN110213079A
CN110213079A CN201910336156.XA CN201910336156A CN110213079A CN 110213079 A CN110213079 A CN 110213079A CN 201910336156 A CN201910336156 A CN 201910336156A CN 110213079 A CN110213079 A CN 110213079A
Authority
CN
China
Prior art keywords
configuration
router
direct
configuration information
terminal device
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.)
Pending
Application number
CN201910336156.XA
Other languages
Chinese (zh)
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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201910336156.XA priority Critical patent/CN110213079A/en
Publication of CN110213079A publication Critical patent/CN110213079A/en
Pending legal-status Critical Current

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0053Allocation of signaling, i.e. of overhead other than pilot signals

Landscapes

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

Abstract

The invention discloses a kind of router drop off-line configuration method, device and computer equipments, are related to field of communication technology.Wherein, this method comprises: when detecting networking failure, the first router by include the first configuration information for being used to carry out network access selection, be used to carry out a key change planes setting the second configuration information and be used to carry out the preset configuration information collection of third configuration information of wireless relay setting and be sent to terminal device, then the configuration-direct that receiving terminal apparatus is fed back according to preset configuration information collection, and relevant configuration is carried out to the first router according to configuration-direct, in this way, improving the operability of configuration of routers and realizing router flexibly configuration abundant.

Description

A kind of router drop off-line configuration method, device and computer equipment
Technical field
The present invention relates to fields of communication technology more particularly to a kind of router drop off-line configuration method, device and computer to set It is standby.
Background technique
With the fast development of network communication, router gradually steps into huge numbers of families.Now currently, most of user's meeting Voluntarily router is configured.But the existing most operability of method for configuring routers is lower, it is difficult to realize flexibly rich Rich configuration.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State router drop off-line configuration method, device and the computer equipment of problem.
One aspect of the present invention provides a kind of router drop off-line configuration method, is applied to the first router, the side Method includes:
When detecting networking failure, preset configuration information collection is sent to terminal device;Wherein, the preset configuration letter Breath collection includes changing planes the second configuration information of setting for carrying out the first configuration information of network access selection, for carrying out a key And the third configuration information for carrying out wireless relay setting;
The configuration-direct that the terminal device is fed back according to the preset configuration information collection is received, according to the configuration-direct The first router is configured.
Optionally, the configuration-direct that the terminal device is fed back according to the preset configuration information collection is received, according to described The step of configuration-direct configures the first router, comprising:
If the configuration-direct is the first configuration-direct fed back according to first configuration information, parsing obtains described the The target network access for including in one configuration-direct;
It detects whether to network successfully based on the target network access;
When detect network successfully when, the first configuring request is sent to the terminal device, receives the terminal device Based on first configuring request feedback the first setting information, according to first setting information to the first router into Row configuration;
When detecting networking failure, Xiang Suoshu terminal device sends the contact method and the first prompt letter of operator Breath.
Optionally, successful step of networking is detected whether based on the target network access, comprising:
Send request protocol corresponding with the target network access;
Receive feedback protocols;
Judge whether the feedback protocols are consistent with the request protocol, if the feedback protocols and the request protocol are not Unanimously, determine networking failure;If the feedback protocols are consistent with the request protocol, request message is sent, judges whether to receive To the back message fed back based on the request message, if receiving the back message, judgement is networked successfully, if not receiving To the back message, networking failure is determined.
Optionally, the configuration-direct that the terminal device is fed back according to the preset configuration information collection is received, according to described The step of configuration-direct configures the first router, comprising:
If the configuration-direct is the second configuration-direct fed back based on second configuration information, with the second router It establishes in the state of communication connection, the internet information of the second router is detected, according to the internet information detected to described The internet information of the first router is configured;
At least one wireless data packet is detected and obtained, shows that rule sends at least one described packet radio according to setting To the terminal device so that at least one described packet radio is shown by the terminal device;
Selection instruction of the terminal device based at least one wireless data packet feedback shown is responded, according to described Instruction is chosen to configure the first router.
Optionally, the configuration-direct that the terminal device is fed back according to the preset configuration information collection is received, according to described The step of configuration-direct configures the first router, comprising:
If the configuration-direct is the third configuration-direct fed back based on the third configuration information, third router is grabbed Account, receive the password that the terminal device is sent, established according to the account and the password and the third router Communication connection;
Parsing obtains the setting wifi title for including in the third configuration-direct and setting wifi password, is set according to described Determine wifi title and the setting wifi password and configures wireless repeater for the first router.
Another aspect of the present invention provides a kind of router drop off-line configuration device, is applied to the first router, the dress It sets and includes:
Preset configuration information collection sending module, for when detecting networking failure, preset configuration information collection to be sent to Terminal device;Wherein, the preset configuration information collection include for carry out the first configuration information of network access selection, for into One key of row change planes setting the second configuration information and third configuration information for carrying out wireless relay setting;
Configuration of routers module refers to for receiving the terminal device according to the configuration that the preset configuration information collection is fed back It enables, the first router is configured according to the configuration-direct.
Optionally, the configuration of routers module receives the terminal device according to the preset configuration in the following manner The configuration-direct of information collection feedback, configures the first router according to the configuration-direct:
If the configuration-direct is the first configuration-direct fed back according to first configuration information, parsing obtains described the The target network access for including in one configuration-direct;
It detects whether to network successfully based on the target network access;
When detect network successfully when, the first configuring request is sent to the terminal device, receives the terminal device Based on first configuring request feedback the first setting information, according to first setting information to the first router into Row configuration;
When detecting networking failure, Xiang Suoshu terminal device sends the contact method and the first prompt letter of operator Breath.
Optionally, the configuration of routers module is based on the target network access in the following manner and detects whether to network Success:
Send request protocol corresponding with the target network access;
Receive feedback protocols;
Judge whether the feedback protocols are consistent with the request protocol, if the feedback protocols and the request protocol are not Unanimously, determine networking failure;If the feedback protocols are consistent with the request protocol, request message is sent, judges whether to receive To the back message fed back based on the request message, if receiving the back message, judgement is networked successfully, if not receiving To the back message, networking failure is determined.
Optionally, the configuration of routers module receives the terminal device according to the preset configuration in the following manner The configuration-direct of information collection feedback, configures the first router according to the configuration-direct:
If the configuration-direct is the second configuration-direct fed back based on second configuration information, with the second router It establishes in the state of communication connection, the internet information of the second router is detected, according to the internet information detected to described The internet information of the first router is configured;
At least one wireless data packet is detected and obtained, shows that rule sends at least one described packet radio according to setting To the terminal device so that at least one described packet radio is shown by the terminal device;
Selection instruction of the terminal device based at least one wireless data packet feedback shown is responded, according to described Instruction is chosen to configure the first router.
Optionally, the configuration of routers module receives the terminal device according to the preset configuration in the following manner The configuration-direct of information collection feedback, configures the first router according to the configuration-direct:
If the configuration-direct is the third configuration-direct fed back based on the third configuration information, third router is grabbed Account, receive the password that the terminal device is sent, established according to the account and the password and the third router Communication connection;
Parsing obtains the setting wifi title for including in the third configuration-direct and setting wifi password, is set according to described Determine wifi title and the setting wifi password and configures wireless repeater for the first router.
The invention discloses a kind of computer readable storage mediums, are stored thereon with computer program, and the program is processed The step of above method is realized when device executes.
The invention discloses a kind of computer equipment, including memory, processor and storage on a memory and can located The step of computer program run on reason device, the processor realizes the above method when executing described program.
The technical solution provided in the embodiment of the present application, has at least the following technical effects or advantages:
When detecting networking failure, the first router will include to be used to carry out the first of network access selection to match confidence Breath, for carry out a key change planes setting the second configuration information and third configuration information for carrying out wireless relay setting Preset configuration information collection is sent to terminal device, and then receiving terminal apparatus refers to according to the configuration that preset configuration information collection is fed back It enables, and relevant configuration is carried out to the first router according to configuration-direct, in this way, improving the operability of configuration of routers and real Router flexibly configuration abundant is showed.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
The application environment that Fig. 1 shows a kind of router drop off-line configuration method provided according to an embodiment of the present invention is shown It is intended to.
Fig. 2 shows a kind of flow charts of the router drop off-line configuration method provided according to an embodiment of the present invention.
Fig. 3 shows the schematic diagram for another sub-step that step S22 shown in Fig. 2 in one embodiment of the invention includes.
Fig. 4 shows the schematic diagram for another sub-step that step S222 shown in Fig. 3 in one embodiment of the invention includes.
Fig. 5 shows a kind of module frame chart of the router drop off-line configuration device provided according to an embodiment of the present invention.
Icon:
11- the first router;12- the second router;13- third router;14- terminal device;
20- router drop off-line configuration device;21- preset configuration information collection sending module;22- configuration of routers module.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of router drop off-line configuration method, device and computer equipments, existing to solve There is the method for configuring routers operability of technology lower, it is difficult to the technical issues of realizing flexibly configuration abundant.
As a kind of optional embodiment, Fig. 1 is according to a kind of configuration of routers side provided by one embodiment of the present invention The application environment schematic diagram of method, as seen from the figure, the method for configuring routers be applied to the first router 11, the first router 11 with Terminal device 14 communicate to connect, it will be understood that under some practical application scenes, the first router 11 can also and secondary route Device 12 or the communication connection of third router 13 so, it is possible to effectively improve configuration the first router 11 to realize corresponding configuration When operability, and then realize the first router 11 flexibly configuration abundant.
Fig. 2 is please referred to, for according to a kind of flow chart of method for configuring routers provided by one embodiment of the present invention, The step of this method is applied to the first router 11 in Fig. 1, includes to this method below is described in detail:
Preset configuration information collection is sent to terminal device when detecting networking failure by step S21.
It when the first router 11, which detects, is successfully connected cable, will continue to carry out networking detection, be lost when detecting to network When losing, preset configuration information collection is sent to terminal device 14 so that user is selected by terminal device 14.
In the present embodiment, it includes but is not limited to following three classes that preset configuration information, which is concentrated:
1) the first configuration information for the selection that network;
2) it changes planes the second configuration information of setting for carrying out a key;
3) for carrying out the third configuration information of wireless relay setting.
It is selected by the way that above-mentioned three classes configuration information is sent to terminal device 14 so that user passes through terminal device 14, And then realize subsequent configuration, can effectively improve configuration the first router 11 when operability, and then realize the first via by The flexibly configuration abundant of device 11.
Optionally, the first router 11 can judge whether to be successfully connected by the presence or absence of detection setting voltage signal Cable.For example, showing that net is completed in the wan mouth of the first router 10 when the first router 10 detects setting voltage signal The physical connection of line correspondingly if the first router 10 does not detect setting voltage signal, shows the first router 10 The wan mouthfuls of physical connections without completing cable.In the present embodiment, setting voltage signal can be a pulse signal, can also be with For a lasting electric signal, it is not limited thereto.
Step S22, the configuration-direct that receiving terminal apparatus is fed back according to configuration information, according to configuration-direct to the first via by Device is configured.
User selects three classes configuration information by terminal device 14, and passes through terminal device 14 to the first router The 11 corresponding configuration-directs of feedback.
The first router 11 configures the first router 11 according to the configuration-direct received, specifically, incorporated by reference to Refering to Fig. 3, in the present embodiment by step S221, step S222, step S223, step S224, step S225, step S226, Step S227, step S228 and step S239 lists one of implementation of step S22.
Step S221 judges the type of configuration-direct.
It is appreciated that the type of configuration-direct includes above-mentioned three classes.
If configuration-direct is the first configuration-direct corresponding with the first configuration information, step S222 is turned to.
If configuration-direct is the second configuration-direct corresponding with the second configuration information, step S225 is turned to.
If configuration-direct is third configuration-direct corresponding with third configuration information, step S228 is turned to.
Step S222 detects whether to network successfully based on target network access.
It is appreciated that parsing, which obtains in the first configuration-direct, includes if the first router 11 receives the first configuration-direct Target network access.
In the present embodiment, the first configuration information can be the selection of three kinds of network accesses, wherein three kinds of network accesses Are as follows: agreement (Dynamic Host Configuration Protocol, DHCP), point-to-point protocol is arranged in DynamicHost (Point-to-Point Protocol Over Ethernet, PPPoE) and static agreement, in other words, it can be understood as DHCP mode, pppoe mode and static schema.
In another example target network access is pppoe mode.
The first router 11 detects whether to network successfully based on target network access at this time.
Please refer to Fig. 4, in the present embodiment by step S2221, step S2222, step S2223, step S2224 and Step S2225 lists one of implementation of step S222.
Step S2221 judges whether request protocol is consistent with feedback protocols.
Firstly, the first router 11 judges whether link is connected to, in other words, the first router 10 and extraneous service are judged The link protocol of device whether match (under the business scenario, the wan mouth of one end of cable connection the first router 10, the other end Light cat be can connect to realize the communication with extraneous server).
Specifically, the first router 11 sends request protocol (PPPoE agreement) corresponding with target network access and receives The feedback protocols that extraneous server is sent, it is whether consistent with feedback protocols to judge request protocol, if unanimously, turning to step S2222, Otherwise, step S2224 is turned to.
Step S2222 judges whether to receive back message.
If request protocol is consistent with feedback protocols, the first router 11 continues to send request message and judges whether to receive The back message that extraneous server is fed back based on the request message, for example, request message can be the request of access some websites, Back message can be the link of the website.If the first router 11 receives back message after having sent request message, turn To step S2223, otherwise, step S2224 is turned to.
Step S2223, judgement are networked successfully.
Step S2224 determines networking failure.
Further, if networking successfully, step S223 is turned to, if networking failure, turns to step S224.
First configuring request is sent to terminal device by step S223, and it is anti-that receiving terminal apparatus is based on the first configuring request First setting information of feedback, configures the first router according to the first setting information.
In the present embodiment, the first configuring request is the solicited message (entrance) of the title that new wifi is arranged and password, the One setting information is the title and password of new wifi.
When the first router 11, which detects, networks successfully, the first configuring request is sent to terminal device 14, is received eventually The title and password for the new wifi that end equipment 14 is fed back, the first router 11 are configured according to the title and password of new wifi, For example, the title of new wifi can be revenge, password 12345678.
Step S224 sends the contact method and the first prompt information of operator to terminal device.
When the first router 11 detects networking failure, the first router 11 sends the connection of operator to terminal device 14 It is the information such as mode and re-starts the third prompt information of network access selection for prompt terminal equipment 14.
Step S225 detects the internet information of the second router in the state of establishing communication connection with the second router, It is configured according to internet information of the internet information detected to the first router.
It is appreciated that establishing communication link with the second router 12 if the first router 11 receives the second configuration-direct In the state of connecing and (being connected by cable), the first router 11 detects the online of the second router 12 by way of " running agreement " Mode, for example, the network access of the second router 12 is pppoe mode.Further, the first router 11 obtains secondary route The broadband account number cipher of the PPPoE of device 12 and the address wan mouth mac of the second router 12 optionally can also obtain second The maximum transmission unit value (Maximum Transmission Unit, MTU) of router 12, in the present embodiment, secondary route Network access, broadband account number cipher, the wan mouthfuls of addresses mac and the MTU value of device 12 can be understood as the online of the second router 12 Information.
Further, the first router 11 is configured according to the internet information of the second router 12 detected.
Step S226 detects and obtains at least one wireless data packet, shows that rule is wireless by least one according to setting Packet is sent to terminal device so that at least one packet radio is shown by terminal device.
After the first router 11 is configured according to the internet information of the second router 12 detected, continue detection week The wireless beacon data packet enclosed.For example, the first router 11 detect and the wireless beacon data packet that gets be it is multiple, the The wireless beacon data packet for detecting and getting can be ranked up according to setting displaying mechanism and then send by one router 11 To terminal device 14 so that terminal device 14 is selected.
In the present embodiment, wireless beacon data packet include wireless title, wireless mac, signal strength, encryption mode, The relevant informations such as frequency range.
Further, setting displaying mechanism includes but is not limited to the following contents:
According to 12wan mouthfuls of the second router of mac address calculation target mac0, calculate the wireless mac of each of detection acquisition With target mac0Difference absolute value, and wireless beacon data packet is ranked up according to sequence from small to large.
For example, wireless beacon data packet is beacon1、beacon2And beacon3, wherein beacon1It is corresponding wireless mac1, beacon2Corresponding wireless mac2, beacon3Corresponding wireless mac3
In another example calculated result is | mac2-mac0|<|mac1-mac0|<|mac3-mac0|, the first router 10 will at this time beacon1、beacon2And beacon3According to [beacon2、beacon1、beacon3] sequence be sent to terminal device 14 for User selects.In general, with target mac0Difference the smallest wireless mac of absolute value be the second router 12 nothing Line mac.
Further, can also according in wireless beacon data packet vendor name (360, tp, Huawei, rise, millet Deng) wireless beacon data packet is ranked up.
Further, wireless beacon data packet can also be ranked up according to signal strength.
The wireless beacon data packet for completing sequence is sent to terminal device 14 and is shown by the first router 11.
Step S227, selection instruction of the response terminal device based at least one wireless data packet feedback shown, root The first router is configured according to instruction is chosen.
Further, terminal device 14, which returns, chooses instruction, for example, user returns to selection by terminal device 14 Beacon2, the first router 11 is matched according to information such as wireless title, encryption mode, password and the frequency ranges of beacon2 at this time It sets, and then completes a key and change planes operation.In this way, being effectively simplified the parameter configuration of " new and old router ", the behaviour of user is reduced Make cost, the first router 11 is enabled directly to replace the second router 12, it is flexibly abundant to realize the first router 11 Configuration.
Step S228, grabs the account of third router, the password that receiving terminal apparatus is sent, according to account and password with Third router establishes communication connection.
It is appreciated that the account of third router 13 can be grabbed if the first router 11 receives third configuration-direct, and The password for the third router 13 that receiving terminal apparatus 14 is sent establishes communication link according to account and password and third router 13 It connects.
Step S229, parsing obtain the setting wifi title for including in third configuration-direct and setting wifi password, according to The first router is configured wireless repeater by setting wifi title and setting wifi password.
After the first router 11 and third router 13 establish communication connection, the parsing of the first router 11 obtains third The setting wifi title and setting wifi password for including in configuration-direct, then according to setting wifi title and setting wifi password Wireless repeater is configured by the first router 10.It so, it is possible for the function of the first router 10 to be extended, and then meet The needs of different practical application scenes, while also reducing the operating cost of user.
It should be appreciated that the first router 11 in the present embodiment can be understood as " new router ", 12 He of the second router Third router 13 can be understood as " old router ", wherein the second router 12 and third router 13 may refer to same A " old router ", also may refer to different old routers.It is illustrated below with several usage scenario examples:
Scene 1: user P1 carries the first router 11 (new router) and residence is gone to install, and the residence of user P1 is pre- It is first mounted with the second router 12 (old router), user P1 can be changed planes function transfer the by a key of the first router 11 The configuration of two routers 12, user P1 uses the first router 11 at this time, and the second router 12 is idle.After a period of time, User P2 leaves unused the first router 11, reuses the second router 12, and user P1 can pass through the first router 11 at this time Wireless relay function realize and by the first router 11 configure wireless repeater, wherein the first router 11 and secondary route Device 12 communicates to connect, and under the scene, " third router 13 " disclosed in above content can be understood as user P1 for first Router 11 is configured to the second router 12 of wireless repeater in this case.
Scene 2: user P1 carries the first router 11 (new router) and residence is gone to install, and the residence of user P1 is pre- It is first mounted with the second router 12 (old router), user P1 can be changed planes function transfer the by a key of the first router 11 The configuration of two routers 12, user P1 uses the first router 11 at this time, and the second router 12 is idle.After a period of time, User P1 does not use the first router 11 in its residence, carries the residence that the first router 11 goes to user P2, and user P2's lives Be mounted with third router 13, user P2 can be realized by the wireless relay function of the first router 11 by the first router 11 are configured to wireless repeater, wherein the first router 11 and third router 13 communicate to connect.
In this way, improving the operability of configuration of routers and realizing router flexibly configuration abundant.So that first Router 11 can play the part of different roles under different usage scenarios, improve the scalability of the first router 11.
As a kind of optional embodiment, Fig. 5 shows this as according to a kind of routing provided by one embodiment of the present invention The module frame chart of device off-line arrangement device 20, the router drop off-line configuration device 20 include preset configuration information collection sending module 21 With configuration of routers module 22.
Preset configuration information collection sending module 21, for when detecting networking failure, preset configuration information collection to be sent To terminal device;Wherein, the preset configuration information collection includes for carrying out the first configuration information of network access selection, being used for Carry out a key change planes setting the second configuration information and third configuration information for carrying out wireless relay setting.
Since preset configuration information collection sending module 21 is similar with the realization principle of step S21 in Fig. 2, do not make herein More explanations.
Configuration of routers module 22, the configuration fed back for receiving the terminal device according to the preset configuration information collection Instruction, configures the first router according to the configuration-direct.
Since configuration of routers module 22 is similar with the realization principle of step S22 in Fig. 2, do not say more herein It is bright.
Optionally, configuration of routers module 22 receives the terminal device in the following manner and is believed according to the preset configuration The configuration-direct of breath collection feedback, configures the first router according to the configuration-direct:
If the configuration-direct is the first configuration-direct fed back according to first configuration information, parsing obtains described the The target network access for including in one configuration-direct;It detects whether to network successfully based on the target network access;When detecting When networking successfully, the first configuring request is sent to the terminal device, the terminal device is received and is based on first configuration The first setting information for requesting feedback, configures the first router according to first setting information;When detecting When networking failure, Xiang Suoshu terminal device sends the contact method and the first prompt information of operator.
Since configuration of routers module 22 and step S222, step S223 in Fig. 3 are similar with the realization principle of step S224, Therefore do not illustrate more herein.
Optionally, configuration of routers module 22 in the following manner based on the target network access detect whether networking at Function: request protocol corresponding with the target network access is sent;Receive feedback protocols;Judge that the feedback protocols are asked with described It asks agreement whether consistent, if the feedback protocols and the request protocol are inconsistent, determines networking failure;If the feedback protocols It is consistent with the request protocol, request message is sent, judges whether to receive the back message based on request message feedback, If receiving the back message, judgement is networked successfully, if being not received by the back message, determines networking failure.
Due to step S2221 in configuration of routers module 22 and Fig. 4, step S2222, step S2223 and step S2224 Realization principle is similar, therefore does not illustrate more herein.
Optionally, configuration of routers module 22 receives the terminal device in the following manner and is believed according to the preset configuration The configuration-direct of breath collection feedback, configures the first router according to the configuration-direct: if the configuration-direct is Based on the second configuration-direct of second configuration information feedback, in the state of establishing communication connection with the second router, inspection The internet information for surveying the second router is carried out according to internet information of the internet information detected to the first router Configuration;At least one wireless data packet is detected and obtained, shows that at least one described packet radio is sent to by rule according to setting The terminal device is so that at least one described packet radio is shown by the terminal device.
Since configuration of routers module 22 and step S225, step S226 in Fig. 3 are similar with the realization principle of step S227, Therefore do not illustrate more herein.
Optionally, configuration of routers module 22 receives the terminal device in the following manner and is believed according to the preset configuration The configuration-direct of breath collection feedback, configures the first router according to the configuration-direct: if the configuration-direct is Based on the third configuration-direct of third configuration information feedback, the account of third router is grabbed, the terminal device is received The password of transmission is established according to the account and the password and the third router and is communicated to connect;Parsing obtains described the The setting wifi title and setting wifi password for including in three configuration-directs, according to the setting wifi title and the setting The first router is configured wireless repeater by wifi password.
Since configuration of routers module 22 and step S228 in Fig. 3 are similar with the realization principle of step S229, herein Do not illustrate more.
Based on inventive concept same in previous embodiment, the embodiment of the present invention also provides a kind of computer-readable storage The step of medium is stored thereon with computer program, and any the method above is realized when which is executed by processor.
Based on inventive concept same in previous embodiment, the embodiment of the present invention also provides a kind of computer equipment, wraps The computer program that includes memory, processor and storage on a memory and can run on a processor, the processor execute The step of any the method above is realized when described program.
The technical solution provided in the embodiment of the present application, has at least the following technical effects or advantages:
A kind of router drop off-line configuration method, device and computer equipment according to the present invention can detect networking When failure, it will include the first configuration information for being used to carry out network access selection, be used to carry out a key and change planes the second of setting The preset configuration information collection of configuration information and the third configuration information for carrying out wireless relay setting is sent to terminal device, Then the configuration-direct that receiving terminal apparatus is fed back according to preset configuration information collection, and according to configuration-direct to the first router into Row relevant configuration, in this way, improving the operability of configuration of routers and realizing router flexibly configuration abundant.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments Including certain features rather than other feature, but the combination of the feature of different embodiment means in the scope of the present invention Within and form different embodiments.For example, in the following claims, embodiment claimed it is any it One can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize gateway according to an embodiment of the present invention, proxy server, in system Some or all components some or all functions.The present invention is also implemented as executing side as described herein Some or all device or device programs (for example, computer program and computer program product) of method.It is such It realizes that program of the invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other shape Formula provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The invention discloses A1, a kind of router drop off-line configuration method, which is characterized in that is applied to the first router, institute The method of stating includes:
When detecting networking failure, preset configuration information collection is sent to terminal device;Wherein, the preset configuration letter Breath collection includes changing planes the second configuration information of setting for carrying out the first configuration information of network access selection, for carrying out a key And the third configuration information for carrying out wireless relay setting;
The configuration-direct that the terminal device is fed back according to the preset configuration information collection is received, according to the configuration-direct The first router is configured.
A2, method as described in a1, which is characterized in that it is anti-according to the preset configuration information collection to receive the terminal device The configuration-direct of feedback, the step of configuration according to the configuration-direct to the first router, comprising:
If the configuration-direct is the first configuration-direct fed back according to first configuration information, parsing obtains described the The target network access for including in one configuration-direct;
It detects whether to network successfully based on the target network access;
When detect network successfully when, the first configuring request is sent to the terminal device, receives the terminal device Based on first configuring request feedback the first setting information, according to first setting information to the first router into Row configuration;
When detecting networking failure, Xiang Suoshu terminal device sends the contact method and the first prompt letter of operator Breath.
A3, as described in A2 method, which is characterized in that successful step of networking is detected whether based on the target network access Suddenly, comprising:
Send request protocol corresponding with the target network access;
Receive feedback protocols;
Judge whether the feedback protocols are consistent with the request protocol, if the feedback protocols and the request protocol are not Unanimously, determine networking failure;If the feedback protocols are consistent with the request protocol, request message is sent, judges whether to receive To the back message fed back based on the request message, if receiving the back message, judgement is networked successfully, if not receiving To the back message, networking failure is determined.
A4, method as described in a1, which is characterized in that it is anti-according to the preset configuration information collection to receive the terminal device The configuration-direct of feedback, the step of configuration according to the configuration-direct to the first router, comprising:
If the configuration-direct is the second configuration-direct fed back based on second configuration information, with the second router It establishes in the state of communication connection, the internet information of the second router is detected, according to the internet information detected to described The internet information of the first router is configured;
At least one wireless data packet is detected and obtained, shows that rule sends at least one described packet radio according to setting To the terminal device so that at least one described packet radio is shown by the terminal device;
Selection instruction of the terminal device based at least one wireless data packet feedback shown is responded, according to described Instruction is chosen to configure the first router.
A5, method as described in a1, which is characterized in that it is anti-according to the preset configuration information collection to receive the terminal device The configuration-direct of feedback, the step of configuration according to the configuration-direct to the first router, comprising:
If the configuration-direct is the third configuration-direct fed back based on the third configuration information, third router is grabbed Account, receive the password that the terminal device is sent, established according to the account and the password and the third router Communication connection;
Parsing obtains the setting wifi title for including in the third configuration-direct and setting wifi password, is set according to described Determine wifi title and the setting wifi password and configures wireless repeater for the first router.
B6, a kind of router drop off-line configuration device, which is characterized in that be applied to the first router, described device includes:
Preset configuration information collection sending module, for when detecting networking failure, preset configuration information collection to be sent to Terminal device;Wherein, the preset configuration information collection include for carry out the first configuration information of network access selection, for into One key of row change planes setting the second configuration information and third configuration information for carrying out wireless relay setting;
Configuration of routers module refers to for receiving the terminal device according to the configuration that the preset configuration information collection is fed back It enables, the first router is configured according to the configuration-direct.
B7, the device as described in B6, which is characterized in that the configuration of routers module receives the end in the following manner The configuration-direct that end equipment is fed back according to the preset configuration information collection, according to the configuration-direct to the first router into Row configuration:
If the configuration-direct is the first configuration-direct fed back according to first configuration information, parsing obtains described the The target network access for including in one configuration-direct;
It detects whether to network successfully based on the target network access;
When detect network successfully when, the first configuring request is sent to the terminal device, receives the terminal device Based on first configuring request feedback the first setting information, according to first setting information to the first router into Row configuration;
When detecting networking failure, Xiang Suoshu terminal device sends the contact method and the first prompt letter of operator Breath.
B8, device as described in b7, which is characterized in that the configuration of routers module is based on the mesh in the following manner Net mode is put on to detect whether to network successfully:
Send request protocol corresponding with the target network access;
Receive feedback protocols;
Judge whether the feedback protocols are consistent with the request protocol, if the feedback protocols and the request protocol are not Unanimously, determine networking failure;If the feedback protocols are consistent with the request protocol, request message is sent, judges whether to receive To the back message fed back based on the request message, if receiving the back message, judgement is networked successfully, if not receiving To the back message, networking failure is determined.
B9, the device as described in B6, which is characterized in that the configuration of routers module receives the end in the following manner The configuration-direct that end equipment is fed back according to the preset configuration information collection, according to the configuration-direct to the first router into Row configuration:
If the configuration-direct is the second configuration-direct fed back based on second configuration information, with the second router It establishes in the state of communication connection, the internet information of the second router is detected, according to the internet information detected to described The internet information of the first router is configured;
At least one wireless data packet is detected and obtained, shows that rule sends at least one described packet radio according to setting To the terminal device so that at least one described packet radio is shown by the terminal device;
Selection instruction of the terminal device based at least one wireless data packet feedback shown is responded, according to described Instruction is chosen to configure the first router.
B10, the device as described in B6, which is characterized in that described in the configuration of routers module receives in the following manner The configuration-direct that terminal device is fed back according to the preset configuration information collection, according to the configuration-direct to the first router It is configured:
If the configuration-direct is the third configuration-direct fed back based on the third configuration information, third router is grabbed Account, receive the password that the terminal device is sent, established according to the account and the password and the third router Communication connection;
Parsing obtains the setting wifi title for including in the third configuration-direct and setting wifi password, is set according to described Determine wifi title and the setting wifi password and configures wireless repeater for the first router.
C11, a kind of computer readable storage medium, which is characterized in that be stored thereon with computer program, which is located Manage the step of realizing claim A1-A5 described in any item router drop off-line configuration methods when device executes.
D12, a kind of computer equipment, which is characterized in that on a memory and can be including memory, processor and storage The computer program run on processor, the processor are realized described in any one of claim A1-A5 when executing described program Router drop off-line configuration method the step of.

Claims (8)

1. a kind of router drop off-line configuration method, which is characterized in that be applied to the first router, which comprises
When detecting networking failure, preset configuration information collection is sent to terminal device;Wherein, the preset configuration information collection Including for carrying out network access selection the first configuration information, for carry out a key change planes setting the second configuration information and For carrying out the third configuration information of wireless relay setting;
The configuration-direct that the terminal device is fed back according to the preset configuration information collection is received, according to the configuration-direct to institute The first router is stated to be configured.
2. the method as described in claim 1, which is characterized in that receive the terminal device according to the preset configuration information collection The configuration-direct of feedback, the step of configuration according to the configuration-direct to the first router, comprising:
If the configuration-direct is the first configuration-direct fed back according to first configuration information, parsing obtains described first and matches Set the target network access for including in instruction;
It detects whether to network successfully based on the target network access;
When detect network successfully when, the first configuring request is sent to the terminal device, the terminal device is received and is based on First setting information of the first configuring request feedback, matches the first router according to first setting information It sets;
When detecting networking failure, Xiang Suoshu terminal device sends the contact method and the first prompt information of operator.
3. method according to claim 2, which is characterized in that detect whether that networking is successful based on the target network access Step, comprising:
Send request protocol corresponding with the target network access;
Receive feedback protocols;
Judge whether the feedback protocols are consistent with the request protocol, if the feedback protocols and the request protocol are different It causes, determines networking failure;If the feedback protocols are consistent with the request protocol, request message is sent, judges whether to receive Based on the back message of request message feedback, if receiving the back message, judgement is networked successfully, if being not received by The back message determines networking failure.
4. the method as described in claim 1, which is characterized in that receive the terminal device according to the preset configuration information collection The configuration-direct of feedback, the step of configuration according to the configuration-direct to the first router, comprising:
If the configuration-direct is the second configuration-direct fed back based on second configuration information, established with the second router In the state of communication connection, the internet information of the second router is detected, according to the internet information detected to described first The internet information of router is configured;
At least one wireless data packet is detected and obtained, shows that at least one described packet radio is sent to institute by rule according to setting Terminal device is stated so that at least one described packet radio is shown by the terminal device;
Selection instruction of the terminal device based at least one wireless data packet feedback shown is responded, according to the selection Instruction configures the first router.
5. the method as described in claim 1, which is characterized in that receive the terminal device according to the preset configuration information collection The configuration-direct of feedback, the step of configuration according to the configuration-direct to the first router, comprising:
If the configuration-direct is the third configuration-direct fed back based on the third configuration information, the account of third router is grabbed Number, the password that the terminal device is sent is received, is communicated according to the account and the password with third router foundation Connection;
Parsing obtains the setting wifi title for including in the third configuration-direct and setting wifi password, according to the setting The first router is configured wireless repeater by wifi title and the setting wifi password.
6. a kind of router drop off-line configuration device, which is characterized in that be applied to the first router, described device includes:
Preset configuration information collection sending module, for when detecting networking failure, preset configuration information collection to be sent to terminal Equipment;Wherein, the preset configuration information collection includes for carrying out the first configuration information of network access selection, for carrying out one Key change planes setting the second configuration information and third configuration information for carrying out wireless relay setting;
Configuration of routers module, the configuration-direct fed back for receiving the terminal device according to the preset configuration information collection, The first router is configured according to the configuration-direct.
7. a kind of computer readable storage medium, which is characterized in that be stored thereon with computer program, which is held by processor The step of router drop off-line configuration method described in any claim of claim 1-5 is realized when row.
8. a kind of computer equipment, which is characterized in that on a memory and can be in processor including memory, processor and storage The computer program of upper operation, the processor realize routing described in any claim of claim 1-5 when executing described program The step of device off-line arrangement method.
CN201910336156.XA 2019-04-24 2019-04-24 A kind of router drop off-line configuration method, device and computer equipment Pending CN110213079A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910336156.XA CN110213079A (en) 2019-04-24 2019-04-24 A kind of router drop off-line configuration method, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910336156.XA CN110213079A (en) 2019-04-24 2019-04-24 A kind of router drop off-line configuration method, device and computer equipment

Publications (1)

Publication Number Publication Date
CN110213079A true CN110213079A (en) 2019-09-06

Family

ID=67786261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910336156.XA Pending CN110213079A (en) 2019-04-24 2019-04-24 A kind of router drop off-line configuration method, device and computer equipment

Country Status (1)

Country Link
CN (1) CN110213079A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090219832A1 (en) * 2006-03-08 2009-09-03 Matsushita Electric Industrial Co., Ltd. Fast configuration of a default router for a mobile node in a mobile communication system
CN103716811A (en) * 2014-01-10 2014-04-09 余华生 Method and device for controlling wireless router through intelligent terminal
CN106230669A (en) * 2016-07-18 2016-12-14 乐视控股(北京)有限公司 Information getting method, device and terminal
CN109618019A (en) * 2018-12-25 2019-04-12 深圳创维数字技术有限公司 Dynamic address allocation service configuration method, apparatus, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090219832A1 (en) * 2006-03-08 2009-09-03 Matsushita Electric Industrial Co., Ltd. Fast configuration of a default router for a mobile node in a mobile communication system
CN103716811A (en) * 2014-01-10 2014-04-09 余华生 Method and device for controlling wireless router through intelligent terminal
CN106230669A (en) * 2016-07-18 2016-12-14 乐视控股(北京)有限公司 Information getting method, device and terminal
CN109618019A (en) * 2018-12-25 2019-04-12 深圳创维数字技术有限公司 Dynamic address allocation service configuration method, apparatus, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
360社区: "【大风车大课堂】之360安全路由一键换机功能的使用方法", 《HTTPS://BBS.360.CN/THREAD-14576036-1-1.HTML》 *
路由器之家: "360安全路由器无线中继的设置方法", 《HTTPS://WWW.WIN7SKY.COM/360/20170427-4263.HTML》 *

Similar Documents

Publication Publication Date Title
CN101443750B (en) Techniques for load balancing over a cluster of subscriber-aware application servers
US7516211B1 (en) Methods and apparatus to configure a communication port
CN104243210B (en) The method and system of remote access router administration page
CN102291320B (en) MAC (media access control) address learning method and edge device
CN104935488B (en) Tunnel agent in Enterprise SOA and its method
US8943184B2 (en) Abstract representation and provisioning of network services
CN102204220B (en) Method of discovery and communication with industrial equipment
CN103905574B (en) A kind of DNS Operational Visits method, DNS data synchronous method and equipment
CN106533813A (en) Method for remotely controlling upgrade of intelligent device
CN107181804B (en) The method for down loading and device of resource
CN108270882A (en) The analysis method and device of domain name, storage medium, electronic device
CN110213102A (en) Apparatus control method, device, electronic equipment and storage medium
CN109819498A (en) A kind of smart machine, the automatic distribution method and system of smart machine
EP3576347A1 (en) Network device snapshots
EP3588859B1 (en) Network device configuration versioning
CN108134695A (en) A kind of method and system based on APP rapid configuration routers
CN110691398A (en) Network interaction method, system, equipment and storage medium of intelligent equipment
CN112491603A (en) Equipment configuration method, device, equipment and storage medium
US20080180524A1 (en) Remote monitoring control method of network camera
CN104769891A (en) Method and apparatus to display information on a web browser based upon state of communication link
CN109558148A (en) Plug-in unit installation method, device, equipment and the storage medium of router
JP6074550B2 (en) Web page push method and apparatus, and terminal
CN109640181A (en) A method of home gateway is upgraded by set-top box
CN110213079A (en) A kind of router drop off-line configuration method, device and computer equipment
CN102780584B (en) Method and device for quickly accessing network management system of Ethernet equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190906

RJ01 Rejection of invention patent application after publication