A kind of interim cut-in method and system of wireless network
Technical field
The present invention relates to and field of communication technology, more particularly to the interim cut-in method and system of a kind of wireless network.
Background technique
With the development of network technology, home broadband number of users gradually increases, simultaneously because the application of mobile terminal, is used
Family also improves a new stratum for the demand of wireless network, i.e. wireless network is important in occupation of one in family life
Position.In the prior art, the foundation of family wireless network is usually that wireless router is used to carry out wireless coverage, and user will move
Dynamic terminal wireless title corresponding with wireless router establishes a connection hence into wireless network.And due to wireless in the market
Router quality is uneven, and user can often use some second-rate wireless routers, so as to cause damage so that
Wireless network interrupts;In addition, the suspension phenomenon that many home broadbands will appear in use, such as due to modem
It breaks down and leads to network failure, cause wireless router can not regular supply wireless network indirectly.
If wireless network interrupts, user is used mobile terminal and carries out critical network operation, such as is related to
The network activities such as stock exchange, the Alipay transaction of personal property, feed without timely network, will be easy to cause user not
It can operate to lose transaction property in time, influence user benefit, even if not causing any property loss, can also be brought not to user
Just.
Therefore, the present inventor, which feels the above problem very, the necessity of its improvement, is engaged in related fields then with its many years
Design and professional manufacturing experience, energetically carry out research for a kind of interim cut-in method of wireless network and system and change
It is good, develop the present invention finally under careful consideration of the conditions of all parties.
Summary of the invention
For above situation, the shortcomings that in order to overcome the prior art, the embodiment of the invention provides a kind of wireless networks
Interim cut-in method and system, when effectively can solve to break in a network due to no timely network supply so that into
The mobile terminal user of row critical network operant activity causes damages or inconvenient problem.
The embodiment of the present invention adopts the following technical scheme that
A kind of interim cut-in method of wireless network, which comprises
The interim access mechanism establishment step of network:
In the step, first movement terminal user is temporarily connect by the first movement terminal to the transmission of the second mobile terminal
Enter the foundation request of mechanism;On the basis of allowing foundation, second mobile terminal will acquire the first movement terminal
Wireless MAC address and be sent to the second wireless router, second wireless router records the wireless MAC address simultaneously
It is stored in address database;Wherein second wireless router has been established with second mobile terminal and wirelessly connects
It connects, the first movement terminal is the mobile terminal used in the range locating for family A, and first wireless router is in
In range locating for the A of front yard, it is wirelessly connected for being established with the first movement terminal;Second mobile terminal refers in family B
The mobile terminal used in locating range;Second wireless router refer to used in the range locating for family B without route
By device;
Network temporarily accesses step:
In the step, the first movement terminal be will test with whether the wireless connection of the first wireless router disconnects, if
Access request will be sent to second wireless router by disconnecting the then first movement terminal;Second wireless router exists
When receiving the access request that the first movement terminal is sent, the wireless MAC address of the first movement terminal will acquire simultaneously
It is compared with wireless MAC address stored in the address database, if having coincidence phenomenon, described second
Wireless router will be established directly with the first movement terminal and will be wirelessly connected.
Preferably, the method also includes:
In the interim access mechanism establishment step of network, second mobile terminal user can be mobile by described second
Terminal setting network interim turn-on time is simultaneously associated with the wireless MAC address got by it;The first movement terminal exists
While wireless MAC address is sent to second wireless router, also network associated with the wireless MAC address is faced
When turn-on time be sent to second wireless router;Second wireless router is recording the wireless MAC address and is inciting somebody to action
It, will also record associated with wireless MAC address network when temporarily accessing while it is stored in the address database
Between and be stored in the address database;
The network temporarily accesses in step, and second wireless router will acquire and the first movement terminal wireless
The associated network of MAC Address interim turn-on time, and judge that the time being wirelessly connected is established with the first movement terminal is
No to reach the network interim turn-on time, second wireless router will be cut off and the first movement terminal if reaching
Wireless connection, and before cutting, first wireless router will also send cutting information and give the first movement terminal.
Preferably, the method also includes:
The network temporarily accesses in step, nothing of the first movement terminal in detection and first wireless router
Before whether line connection disconnects, power supply confirmation request will be sent to first wireless router;First wireless router exists
After receiving the power supply confirmation request that the first movement terminal is sent, by the power supply status to first wireless router into
Row confirms and will confirm that result feeds back to the first movement terminal;The first movement terminal is according to confirmation result judgement
Whether the power supply connection of the first wireless router is normal, then performs the next step if normal suddenly, i.e., the described first movement terminal will be examined
It surveys with whether the wireless connection of the first wireless router disconnects.
A kind of interim access system of wireless network, the system comprises first movement terminals, the second mobile terminal, first
Wireless router and the second wireless router, the first movement terminal are the mobile ends used in the range locating for family A
It holds, in the first wireless router range locating for family A, is used for and the first movement terminal is established and is wirelessly connected;Institute
It states the second mobile terminal and refers to the mobile terminal used in the range locating for family B;Second wireless router, which refers to, is in
The wireless router used in range locating for the B of front yard;Wherein the first movement terminal includes:
Request sending module is established, for first movement terminal user by the request sending module of establishing to the second shifting
Dynamic terminal sends the foundation request of interim access mechanism;
It is wirelessly connected detection module, is detected for the first movement terminal by the wirelesss connection detection module and the
Whether the wireless connection of one wireless router disconnects;
Access request sending module, for the first movement terminal by the access request sending module to described the
Two wireless routers send access request;
Wherein second mobile terminal includes:
Address acquisition module obtains the first movement by the address acquisition module for second mobile terminal
The wireless MAC address of terminal;
Address sending module, it is by the address sending module that the first movement is whole for second mobile terminal
The wireless MAC address at end is simultaneously sent to the second wireless router;
Wherein second wireless router includes:
Address storage module records the wireless MAC by the address storage module for second wireless router
Address is simultaneously stored in address database;
Address comparison module will acquire described first by the address comparison module for second wireless router
Simultaneously it is compared with wireless MAC address stored in the address database for the wireless MAC address of mobile terminal;
Wireless connection establishes module, for second wireless router by it is described wireless connection establish module directly with
The first movement terminal, which is established, to be wirelessly connected.
Preferably, second mobile terminal further include:
Time setup module, it is interim by time setup module setting network for second mobile terminal user
Turn-on time;
Relating module is temporarily accessed the network of setting by the relating module for second mobile terminal
Time is associated with the wireless MAC address got;
The first movement terminal further include:
Time delivery module, will with the wireless MAC by the time delivery module for the first movement terminal
The associated network in location interim turn-on time is sent to second wireless router;
Second wireless router further include:
Time storage module, it is wireless with this by time storage module record for second wireless router
The associated network of MAC Address interim turn-on time is simultaneously stored in the address database;
Time-obtaining module is obtained and described first for second wireless router by the time-obtaining module
The associated network in mobile terminal wireless MAC address interim turn-on time;
Time judgment module passes through the time judgment module and the first movement for second wireless router
Terminal establishes whether the time being wirelessly connected reaches the network interim turn-on time;
Be wirelessly connected cutting module, for second wireless router by wirelesss connection cut off module cut off and
The wireless connection of the first movement terminal;
Information sending module is cut off, is being cut off for second wireless router by the cutting information sending module
Cutting information will be sent before gives the first movement terminal.
Preferably, the first movement terminal further include:
Power supply confirmation request sending module passes through the power supply confirmation request sending module for the first movement terminal
Power supply confirmation request is sent to first wireless router;
First wireless router further include:
Power supply confirmation module, it is wireless to described first by the power supply confirmation module for first wireless router
The power supply status of router is confirmed and will confirm that result feeds back to the first movement terminal;
The first movement terminal further include: power supply connection judgment module passes through described for the first movement terminal
Power supply connection judgment module judges whether the power supply connection of first wireless router is normal according to confirmation result.
Technical solution provided in an embodiment of the present invention has the benefit that using technical solution of the present invention, passes through
The interim access mechanism of network is established, i.e. two parties reach a casual network borrow agreement, when first movement terminal user's
When broadband leads to not supply network since appearance is abnormal, the wireless connection of first movement terminal and the first wireless router will
It disconnects, at this point, the second wireless router will establish the wireless connection of a restriction duration with the first movement terminal automatically,
To solve the wireless network urgent need of first movement terminal user, ensures and carried out the of critical network operant activity
While the interests of one mobile terminal user, the degree of convenience of the user is also improved.
Detailed description of the invention
In order to which the above-mentioned and other purposes of the present invention, feature, advantage can be clearer and more comprehensible, embodiment will hereafter be described
Needed in attached drawing make one and simply introduce, it should be apparent that, the accompanying drawings in the following description is only of the invention one
A little embodiments, for those of ordinary skill in the art, do not pay create it is laborious under the premise of, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of application connection signal for the interim access mechanism method for building up of network that the embodiment of the present invention one provides
Figure;
Fig. 2 is a kind of application connection schematic diagram for the interim cut-in method of network that the embodiment of the present invention one provides;
Fig. 3 is a kind of application connection signal of the interim access mechanism method for building up of network provided by Embodiment 2 of the present invention
Figure;
Fig. 4 is a kind of application connection schematic diagram of the interim cut-in method of network provided by Embodiment 2 of the present invention;
Fig. 5 is a kind of application connection schematic diagram for the interim cut-in method of network that the embodiment of the present invention three provides;
Fig. 6 is a kind of interim access system structural schematic diagram for wireless network that the embodiment of the present invention four provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiment is only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
His embodiment, belongs to protection scope of the present invention.
In following embodiment of the present invention, the mobile terminal include, but are not limited to have the smart phone of touch screen,
Tablet computer, net book, PDA(Portable Digital Assistant), intelligent wearable equipment etc..
Embodiment one
Fig. 1 and Fig. 2 is please referred to, Fig. 1 is the interim access mechanism foundation side of a kind of network that the embodiment of the present invention one provides
The application connection schematic diagram of method, Fig. 2 are a kind of showing using connection for the interim cut-in method of network that the embodiment of the present invention one provides
It is intended to.Specifically, the method includes networks temporarily to access machine the present embodiment provides a kind of interim cut-in method of wireless network
Establishment step and network processed temporarily access step, wherein in the interim access mechanism establishment step of the network, first movement
Terminal user is requested by the first movement terminal to the foundation that the second mobile terminal sends interim access mechanism;Based on permission
On the basis of foundation, second mobile terminal will acquire the wireless MAC address of the first movement terminal and be sent to
Second wireless router, second wireless router record the wireless MAC address and are stored in address database;Its
Described in the second wireless router and second mobile terminal wireless connection has been established;
It is temporarily accessed in step in the network, the first movement terminal will test wireless with the first wireless router
Whether connection disconnects, and the first movement terminal will send access request to second wireless router if disconnecting;It is described
Second wireless router will acquire the first movement terminal when receiving the access request that the first movement terminal is sent
Wireless MAC address and it is compared with wireless MAC address stored in the address database, if having coincidence
Phenomenon, then second wireless router will be established directly with the first movement terminal and will be wirelessly connected.
Wherein, it when the execution network temporarily accesses step, first has to complete the interim access mechanism foundation of the network
Step.
For example, there are family A and family B in set environment, in the present embodiment, the first movement terminal, which refers to, is in
The mobile terminal used in range locating for the A of front yard, unlimited fixed number amount can be singular a or a plurality of;Described first is wireless
Router refers to the wireless router used in the range locating for family A, for wirelessly connecting with first movement terminal foundation
It connects;Second mobile terminal refers to the mobile terminal used in the range locating for family B;Second wireless router refers to
The wireless router used in the range locating for family B.
One premise environment of the present embodiment are as follows: first movement terminal present position belongs to second wireless routing
In the signal cover of device.
Wherein, the first movement terminal user is faced by the first movement terminal to second mobile terminal transmission
When access mechanism foundation request when, the wireless MAC address of the first movement terminal will be carried in request.Second is mobile whole
It holds in the foundation request for receiving the interim access mechanism, user can be by executing refusal on second mobile terminal
The operation of foundation and the operation for allowing to establish.
It is temporarily accessed in step in the network, whether the first movement terminal is effective by real-time perfoming network function
Confirmation disconnects the determining wireless connection with first wireless router, when confirming that network function is invalid in disconnection
Meanwhile the first movement terminal will send access request to second wireless router.Wherein, in the access request
The wireless MAC address of the first movement terminal will be carried.
The first movement terminal sends the concrete mode of access request to second wireless router are as follows:
The first movement terminal shifts to an earlier date the corresponding wireless title of the second wireless router described in remarks in system, disconnected
While opening, it is corresponding wireless that the first movement terminal finds second wireless router in the wireless title searched
Title, the first movement terminal will send access to the corresponding wireless title of second wireless router and ask after finding
It asks.
Wherein, second wireless router directly is established to be wirelessly connected with the first movement terminal and be referred to without described
First movement terminal inputs second wireless router and corresponds to the password of wireless title, but it is wireless to be directly entered described second
In the corresponding wireless network of router.
Embodiment two
Fig. 3 and Fig. 4 is please referred to, Fig. 3 is a kind of interim access mechanism foundation side of network provided by Embodiment 2 of the present invention
The application connection schematic diagram of method, Fig. 4 are a kind of showing using connection for interim cut-in method of network provided by Embodiment 2 of the present invention
It is intended to.As one embodiment of the present invention, the method also includes:
In the interim access mechanism establishment step of network, second mobile terminal user can be mobile by described second
Terminal setting network interim turn-on time is simultaneously associated with the wireless MAC address got by it;The first movement terminal exists
While wireless MAC address is sent to second wireless router, also network associated with the wireless MAC address is faced
When turn-on time be sent to second wireless router;Second wireless router is recording the wireless MAC address and is inciting somebody to action
It, will also record associated with wireless MAC address network when temporarily accessing while it is stored in the address database
Between and be stored in the address database;
The network temporarily accesses in step, and second wireless router will acquire and the first movement terminal wireless
The associated network of MAC Address interim turn-on time, and judge that the time being wirelessly connected is established with the first movement terminal is
No to reach the network interim turn-on time, second wireless router will be cut off and the first movement terminal if reaching
Wireless connection, and before cutting, first wireless router will also send cutting information and give the first movement terminal.
Wherein, the turn-on time is configured by second mobile terminal user, such as 0.5h, 1h, 2h etc..
Assuming that the time is set as 1h, then second mobile terminal is associated with the wireless MAC address got by the time,
It is i.e. that 1h is associated with the wireless MAC address.
In the present embodiment, second wireless router have clocking capability, second wireless router with it is described
While first movement terminal establishes wireless connection, clocking capability will be opened, i.e. judgement establishes nothing with the first movement terminal
Whether the time of line connection reaches 1h.
Specifically, when judging that the time reaches the previous preset time period of 1h, such as at the 55th minute, described first is wireless
Router will send cutting information and give the first movement terminal, thus when the first movement end user web being prompted to connect
Between will reach.
Embodiment three
Referring to FIG. 5, Fig. 5 is a kind of application connection signal for the interim cut-in method of network that the embodiment of the present invention three provides
Figure.As one embodiment of the present invention, the method also includes:
The network temporarily accesses in step, nothing of the first movement terminal in detection and first wireless router
Before whether line connection disconnects, power supply confirmation request will be sent to first wireless router;First wireless router exists
After receiving the power supply confirmation request that the first movement terminal is sent, by the power supply status to first wireless router into
Row confirms and will confirm that result feeds back to the first movement terminal;The first movement terminal is according to confirmation result judgement
Whether the power supply connection of the first wireless router is normal, then performs the next step if normal suddenly, i.e., the described first movement terminal will be examined
It surveys with whether the wireless connection of the first wireless router disconnects.
In practical application, the wireless connection of first wireless router and the first movement terminal disconnects reason may
It equally will the company of will disconnect when the power switch of first wireless router is closed not due to network or equipment fault
It connects.
Therefore, in the present embodiment, the first wireless router described first will test whether power supply status is in opening state
State generates confirmation result if being in are as follows: opens;If be not on the contrary, confirmation result is generated are as follows: close.Work as confirmation
When as a result to open, the first movement terminal judges that the power supply connection of first wireless router is normal, is otherwise judged as
It is abnormal;When being judged as normal, the first movement terminal will test with the wireless connection of first wireless router whether
It disconnects.
As a kind of deformation of the present embodiment, the first movement terminal judges according to confirmation result described first without route
When normal by the power supply connection of device, first wireless router will also send power detecting to modem connected to it
Request, the modem will test whether power supply is opened and feed back testing result after receiving power detecting request;When
Testing result is to open, and the first movement terminal will test with whether the wireless connection of the first wireless router disconnects.
If function described in the present embodiment method is realized in the form of SFU software functional unit and as independent product pin
It sells or in use, can store in a storage medium readable by a compute device.Based on this understanding, the embodiment of the present invention
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, this is soft
Part product is stored in a storage medium, including some instructions are used so that calculating equipment (it can be personal computer,
Server, mobile computing device or network equipment etc.) execute all or part of step of each embodiment the method for the present invention
Suddenly.And storage medium above-mentioned includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random
The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk.
Example IV
Referring to FIG. 6, Fig. 6 is a kind of interim access system structural representation for wireless network that the embodiment of the present invention four provides
Figure.Specifically, present embodiments providing a kind of interim access system 40 of wireless network, the system comprises first movement terminals
401, the second mobile terminal 402, the first wireless router 403 and the second wireless router 404, wherein the first movement is whole
End 401 includes:
Request sending module 405 is established, establishes request sending module by described for 401 user of first movement terminal
405 send the foundation request of interim access mechanism to the second mobile terminal 402;
It is wirelessly connected detection module 406, passes through the wireless connection detection module for the first movement terminal 401
Whether 406 detections and the wireless connection of the first wireless router 403 disconnect;
Access request sending module 407 passes through the access request sending module for the first movement terminal 401
407 send access request to second wireless router 404;
Wherein second mobile terminal 402 includes:
Address acquisition module 408 obtains institute by the address acquisition module 408 for second mobile terminal 402
State the wireless MAC address of first movement terminal 401;
Address sending module 409, will be described by the address sending module 409 for second mobile terminal 402
The wireless MAC address of first movement terminal 401 is simultaneously sent to the second wireless router 404;
Wherein second wireless router 404 includes:
Address storage module 410 is recorded for second wireless router 404 by the address storage module 410
The wireless MAC address is simultaneously stored in address database;
Address comparison module 411 will be obtained for second wireless router 404 by the address comparison module 411
Take the wireless MAC address of the first movement terminal 401 and the wireless MAC address by it and stored by the address database
It is compared;
Wireless connection establishes module 412, establishes module by the wireless connection for second wireless router 404
412 directly establish wireless connection with the first movement terminal 401.
As one embodiment of the present invention, in the present embodiment, second mobile terminal 402 further include:
Time setup module 413 is set for 402 user of the second mobile terminal by the time setup module 413
Set network interim turn-on time;
Relating module 414, for second mobile terminal 402 by the relating module 414 by the net of setting
Network interim turn-on time is associated with the wireless MAC address got;
The first movement terminal 401 further include:
Time delivery module 415, will be with this by the time delivery module 415 for the first movement terminal 401
The associated network in wireless MAC address interim turn-on time is sent to second wireless router 404;
Second wireless router 404 further include:
Time storage module 416 is recorded for second wireless router 404 by the time storage module 416
Associated with wireless MAC address network interim turn-on time is simultaneously stored in the address database;
Time-obtaining module 417 is obtained for second wireless router 404 by the time-obtaining module 417
Network interim turn-on time associated with the 401 wireless MAC address of first movement terminal;
Time judgment module 418 passes through the time judgment module 418 and institute for second wireless router 404
It states first movement terminal 401 and establishes whether the time being wirelessly connected reaches the network interim turn-on time;
It is wirelessly connected cutting module 419, module is cut off by the wireless connection for second wireless router 404
The wireless connection of 419 cuttings and the first movement terminal 401;
Information sending module 420 is cut off, passes through the cutting information sending module for second wireless router 404
420 will send cutting information before cutting gives the first movement terminal 401.
As one embodiment of the present invention, in the present embodiment, the first movement terminal 401 further include:
Power supply confirmation request sending module 421 is sent out for the first movement terminal 401 by the power supply confirmation request
Module 421 is sent to send power supply confirmation request to first wireless router 403;
First wireless router 403 further include:
Power supply confirmation module 422 passes through 422 pairs of institutes of the power supply confirmation module for first wireless router 403
The power supply status for stating the first wireless router 403 is confirmed and will confirm that result feeds back to the first movement terminal 401;
The first movement terminal 401 further include: power supply connection judgment module 423 is used for the first movement terminal 401
Judging that the power supply of first wireless router 403 connects according to confirmation result by the power supply connection judgment module 423 is
It is no normal.
It should be understood that the specific implementation process of above-mentioned modules (can be implemented with above method embodiment in example IV
Example one to three) description it is corresponding, be not described in detail herein.
System provided by above-described embodiment four is only the example of the division of the above functional modules actually answered
In, it can according to need and be completed by different functional modules appeal function distribution, i.e., by the internal junction in the system
Structure is divided into different functional modules, to complete all or part of the functions described above.In addition, provided by the above embodiment
System and method for embodiment belongs to same design, and specific implementation process is detailed in embodiment of the method, herein will be without repeating.On
It is for illustration only to state serial number of the embodiment of the present invention, does not represent the advantages or disadvantages of the embodiments.
Following advantages can be achieved in the present invention:
By the present invention, using technical solution of the present invention, by establishing the interim access mechanism of network, i.e. two parties reach
Agreement is borrowed at a casual network, when the broadband of first movement terminal user leads to not supply network due to occurring abnormal
When, first movement terminal and the wireless connection of the first wireless router will be switched off, at this point, the second wireless router will automatically with
The first movement terminal establishes the wireless connection of a restriction duration, to solve the wireless network of first movement terminal user
Urgent need is also promoted while having ensured the interests for the first movement terminal user for carrying out critical network operant activity
The degree of convenience of the user.