CN106130896B - The selection switching method and system of a kind of router under more wifi hotspot environment - Google Patents
The selection switching method and system of a kind of router under more wifi hotspot environment Download PDFInfo
- Publication number
- CN106130896B CN106130896B CN201610479041.2A CN201610479041A CN106130896B CN 106130896 B CN106130896 B CN 106130896B CN 201610479041 A CN201610479041 A CN 201610479041A CN 106130896 B CN106130896 B CN 106130896B
- Authority
- CN
- China
- Prior art keywords
- wifi hotspot
- wifi
- current location
- location information
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/22—Alternate routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/32—Reselection being triggered by specific parameters by location or mobility data, e.g. speed data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of selection switching methods of the router under more wifi hotspot environment, include the following steps: step 1: obtaining current location information;Step 2: the corresponding wifi hotspot in current location being determined according to current location information, and obtains wifi hotspot information corresponding to wifi hotspot;Step 3: wifi hotspot is connected according to wifi hotspot information;Circulation carries out ping detection after step 4:wifi hot spot successful connection;Step 5: repeating step 1, update current location information, and judge current location information whether in the range corresponding to the wifi hotspot of step 2;If it is not, carrying out step 2 to 4, if so, carrying out step 4.The purpose of the present invention is to provide a kind of selection switching methods of the router under more wifi hotspot environment, this method can allow router that can work in the ambient stable of more WIFI hot spots, so that the application scenarios of router are more diversified, while the invention also discloses the systems corresponding to this method.
Description
Technical field
The present invention relates to field of communication technology, link keeps and switches in specifically a kind of embedded support programs layer
Policy selection method, specifically for be a kind of router under more wifi hotspot environment selection switching method and system.
Background technique
The router of the support WIFI client of present mainstream is typically only capable to one WIFI hot spot of connection, substantially this road
Fixed installation and some place are only suitable for by device, do not support that router is mobile and switches this application of WIFI hot spot.Also
This kind of routers do not support network connectivty to detect, and router can not judge when WIFI hot spot breaks down
Or make other operations.It can only make to find not surfing the Internet when with network just find the problem as user, then reinform dimension
The personnel of repairing repair.Network disconnect so the service of networking in need will be interrupted, lead to the network paralysis.If it is than
Loss caused by under relatively large network application even is difficult to imagine.
Summary of the invention
The purpose of the present invention is to provide a kind of selection switching method of the router under more wifi hotspot environment, this method
It can allow router that can work in the ambient stable of more WIFI hot spots, so that the application scenarios of router are more diversified, together
When the invention also discloses the systems corresponding to this method.
Specific technical solution of the invention are as follows: a kind of selection switching method of the router under more wifi hotspot environment,
Include the following steps:
Step 1: obtaining current location information;
Step 2: the corresponding wifi hotspot in current location being determined according to current location information, and it is right to obtain wifi hotspot institute
The wifi hotspot information answered;
Step 3: wifi hotspot is connected according to wifi hotspot information;
Circulation carries out ping detection after step 4:wifi hot spot successful connection, judges ping if ping detects recognition failures
Detect whether recognition failures number is more than preset times, if so, backup link is switched to, if it is not, then carrying out step 5;
Step 5: step 1 is repeated, and when in current the position not range corresponding to the wifi hotspot of step 2, into
Row step 2 is to 4, when current position is in the range corresponding to the wifi hotspot of step 2, carries out step 4.
In the selection switching method of the router under above-mentioned more wifi hotspot environment, in step 1, pass through locating module
Obtain current location information, the locating module be GPS positioning system, BEI-DOU position system, GLONASS positioning system or
Galilean satellite positioning system.
In the selection switching method of the router under above-mentioned more wifi hotspot environment, multiple wifi hotspot information and
Location information corresponding to wifi hotspot information is prestored in memory module;
The step 2 specifically: current location information and pre-stored location information are compared, determine present bit
The corresponding wifi hotspot information of confidence breath.
In the selection switching method of the router under above-mentioned more wifi hotspot environment, the wifi hotspot packet
Include SSID and password;The location information is the longitude and latitude of current location.
In the selection switching method of the router under above-mentioned more wifi hotspot environment, in step 3, if wifi hotspot connects
Failure is connect, then switches to backup link.
In the selection switching method of the router under above-mentioned more wifi hotspot environment, the backup link is to be based on
The network of wireless cellular network.
Meanwhile the invention also discloses the selection switching sides for realizing the router under above-mentioned more wifi hotspot environment
The system of method, comprises the following modules:
Locating module, for obtaining current location information;
Data obtaining module for determining the corresponding wifi hotspot in current location according to current location information, and obtains
Wifi hotspot information corresponding to wifi hotspot;
Wifi link block, for connecting wifi hotspot according to wifi hotspot information;
Ping detecting module carries out ping detection for circulation after wifi hotspot successful connection, if ping detection identification time
Number is more than preset times, then switches to backup link;
Control module for constantly updating current location information by locating module, and judges newest current position
Confidence breath controls data obtaining module, wifi whether in the range corresponding to the wifi hotspot having connected, according to judging result
Link block, ping detecting module connect next wifi hotspot, or control ping detecting module continues cycling through and carries out ping
Detection.
It further include memory module in the selection switching system of the router under above-mentioned more wifi hotspot environment, it is described
Memory module for storing location information corresponding to multiple wifi hotspot information and wifi hotspot information.
In the selection switching system of the router under above-mentioned more wifi hotspot environment, the locating module is GPS
Positioning system, BEI-DOU position system, GLONASS positioning system or Galilean satellite positioning system;
The wifi hotspot information includes SSID and password;
The location information is the longitude and latitude of current location.
In the selection switching system of the router under above-mentioned more wifi hotspot environment, the backup link is to be based on
The network of wireless cellular network.
Compared with prior art, the beneficial effects of the present invention are:
Method and system of the invention, which is directed to more WIFI hot spots, can mutually switch and design, and allow router can be
The ambient stable of more WIFI hot spots works, so that the application scenarios of router are more diversified.
The fault tolerant mechanism of PING detection of the invention even more ensures network connectivty, junction link handover mechanism road well
Wireless cellular network backup link can be quickly switched into the case where one or more WIFI hot spot failures by device, greatly improved
The stability of network.
Detailed description of the invention
Fig. 1 is the flow chart of the embodiment of the present invention 1;
Fig. 2 is the structural block diagram of the embodiment of the present invention 2.
Specific embodiment
With reference to embodiment, technical solution of the present invention is described in further detail, but do not constituted pair
Any restrictions of the invention.
Embodiment 1
As shown in Figure 1, a kind of selection switching method of the router under more wifi hotspot environment, includes the following steps:
Step 1: obtaining current location information;
Specifically, obtain current location information by locating module, the locating module be GPS positioning system,
BEI-DOU position system, GLONASS positioning system or Galilean satellite positioning system.Location information includes the longitude and latitude of current location
Degree.
Current location information is obtained using above-mentioned locating module and without the help of wifi hotspot and based on radio honeycomb
The network of net, therefore its stability is excellent, wide coverage, affected by environment small, this is helpful to the stability of this method.
This method location information current with frequency acquisition appropriate, to guarantee that the moment is in the covering of correct wifi hotspot
Under the conditions of;
Step 2: the corresponding wifi hotspot in current location being determined according to current location information, and it is right to obtain wifi hotspot institute
The wifi hotspot information answered;
It should be understood that the wifi hotspot information and location information of the present embodiment are prestored in memory module;
Each wifi hotspot corresponds to the position range as composed by multiple location informations, such as when current location information drops into this
When in position range, then it is exactly the wifi hotspot that the current location information is corresponding.
In specific industrial environment, in harbour environment, intersection between each region, as crossroad can exist
The problem of wifi coverage area crosses can preset destination in order to solve this problem when moving, according to destination and
Several optional routes are planned in origin, judge that it may from several optional routes according to acquired current location information
The route of traveling can determine unique corresponding to the route of feasible traveling when reaching wifi coverage area intersection
Wifi hotspot, and wifi hotspot information corresponding to wifi hotspot is obtained, the wifi hotspot in connection.
Step 3: wifi hotspot is connected according to wifi hotspot information;
In practical applications, the connection of wifi hotspot needs the wifi hotspot information prestored to specifically include SSID and password;
Under special circumstances, wifi hotspot breaks down, and at this moment there is the case where wifi hotspot can not connect, at this moment needs
It is switched to backup link;
The backup link of the present embodiment is the network based on wireless cellular network, such as 2G, 3G, 4G network, with the hair of science and technology
Exhibition, also may include 5G network etc..
Circulation carries out ping detection after step 4:wifi hot spot successful connection, judges ping if ping detects recognition failures
Detect whether recognition failures number is more than preset times, if so, backup link is switched to, if it is not, then carrying out step 5.
In industrial application, the purpose that circulation carries out ping detection after wifi hotspot successful connection is to ensure that network always
It can use.This and application environment of the invention be closely related, of the invention application environment be mostly the users such as harbour it is very more,
External environment complex environment, the case where being easy to appear network blockage, in this case, wifi connection, are normal, but data
Transmission can not but execute, and above-mentioned fault tolerant mechanism is precisely in order to the case where excluding the network blockage occurred when network busy.
Step 5: step 1 is repeated, and when in current the position not range corresponding to the wifi hotspot of step 2, into
Row step 2 is to 4, when current position is in the range corresponding to the wifi hotspot of step 2, carries out step 4.
The present embodiment, which is directed to more WIFI hot spots, can mutually switch and design, and allow router can be in more WIFI hot spots
Ambient stable work so that the application scenarios of router are more diversified.
The fault tolerant mechanism of PING detection of the invention even more ensures network connectivty, junction link handover mechanism road well
Wireless cellular network backup link can be quickly switched into the case where one or more WIFI hot spot failures by device, greatly improved
The stability of network.
Embodiment 2
As shown in Fig. 2, this is the present embodiment provides a kind of selection switching system of the router under more wifi hotspot environment
It unites in the router being integrated on mobile vehicle.
It specifically includes with lower module:
Locating module 1, for obtaining current location information;The locating module 1 is GPS positioning system, Beidou is fixed
Position system, GLONASS positioning system or Galilean satellite positioning system;The location information is the longitude and latitude of current location.
Data obtaining module 2 for determining the corresponding wifi hotspot in current location according to current location information, and obtains
Wifi hotspot information corresponding to wifi hotspot;The wifi hotspot information includes SSID and password.
Wifi link block 3, for connecting wifi hotspot according to wifi hotspot information;
Ping detecting module 4 carries out ping detection for circulation after wifi hotspot successful connection, if ping detection identification time
Number is more than preset times, then switches to backup link;The backup link is the network based on wireless cellular network.Backup link
Connection and communication be to be carried out by the backup link module 6 being arranged in this system.
Memory module 5, the memory module 5 is for storing corresponding to multiple wifi hotspot information and wifi hotspot information
Location information;
Control module 7 updates current location information for constantly passing through locating module 1, and judges newest current
Whether location information in the range corresponding to the wifi hotspot having connected, according to judging result control data obtaining module 2,
Wifi link block 3, ping detecting module 4 connect next wifi hotspot, or control ping detecting module 4 continue cycling through into
Row ping detection
In use, such as in harbour service environment, this system is mounted on counter truck, wifi hotspot
It is distributed in each range at harbour, is subject to the covering for reaching comprehensive.When this system is moved to first position, pass through
The positioning of locating module 1 obtains current location information, obtains corresponding wifi hotspot information by data obtaining module 2, passes through
Wifi link block 3 connects wifi hotspot, and backup link is switched to if connection failure, after being successfully connected wifi hotspot, leads to
Crossing ping detecting module 4 maintains the stability of connection to switch to backup link if connection is unstable.
This system, which is directed to more WIFI hot spots, can mutually switch and design, and allow router can be in the ring of more WIFI hot spots
Border steady operation, so that the application scenarios of router are more diversified.
The fault tolerant mechanism of the PING detection of this system even more ensures network connectivty, junction link handover mechanism road well
Wireless cellular network backup link can be quickly switched into the case where one or more WIFI hot spot failures by device, greatly improved
The stability of network.
Above-described is only presently preferred embodiments of the present invention, all made within the scope of the spirit and principles in the present invention
What modifications, equivalent substitutions and improvements etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of selection switching method of the router under more wifi hotspot environment, the method is by having locating module
Router implementation, which comprises the steps of:
Step 1: the router obtains current location information by locating module;
Step 2: the corresponding wifi hotspot in current location being determined according to current location information, and is obtained corresponding to wifi hotspot
Wifi hotspot information;
Step 3: wifi hotspot is connected according to wifi hotspot information;
Circulation carries out ping detection after step 4:wifi hot spot successful connection, judges that ping is detected if ping detects recognition failures
Whether recognition failures number is more than preset times, if so, backup link is switched to, if it is not, then carrying out step 5;
Step 5: repeat step 1, update current location information, and judge current location information whether step 2 wifi
In range corresponding to hot spot;If it is not, carrying out step 2 to 4, if so, carrying out step 4.
2. the selection switching method of the router under more wifi hotspot environment according to claim 1, which is characterized in that step
In rapid 1, current location information is obtained by locating module, the locating module is GPS positioning system, Beidou positioning system
System, GLONASS positioning system or Galilean satellite positioning system.
3. the selection switching method of the router under more wifi hotspot environment according to claim 1, which is characterized in that more
Location information corresponding to a wifi hotspot information and wifi hotspot information is prestored in memory module;
The step 2 specifically: current location information and pre-stored location information are compared, determine present bit confidence
The corresponding wifi hotspot information of breath.
4. the selection switching method of the router under more wifi hotspot environment according to claim 3, which is characterized in that institute
The wifi hotspot information stated includes SSID and password;The location information is the longitude and latitude of current location.
5. the selection switching method of the router under more wifi hotspot environment according to claim 1, which is characterized in that step
In rapid 3, if wifi hotspot connection failure, switches to backup link.
6. the selection switching method of the router under more wifi hotspot environment according to claim 5, which is characterized in that institute
The backup link stated is the network based on wireless cellular network.
7. a kind of selection switching side of the router under any more wifi hotspot environment for realizing claim 1 to 6
The system of method, which is characterized in that comprise the following modules:
Locating module, for obtaining current location information;
Data obtaining module for determining the corresponding wifi hotspot in current location according to current location information, and obtains wifi
Wifi hotspot information corresponding to hot spot;
Wifi link block, for connecting wifi hotspot according to wifi hotspot information;
Ping detecting module carries out ping detection for circulation after wifi hotspot successful connection, if ping detection identification number is super
Preset times are crossed, then switch to backup link;
Control module for constantly updating current location information by locating module, and judges newest current position letter
Breath controls data obtaining module, wifi connection whether in the range corresponding to the wifi hotspot having connected, according to judging result
Module, ping detecting module connect next wifi hotspot, or control ping detecting module continues cycling through and carries out ping detection.
8. system according to claim 7, which is characterized in that further include memory module, the memory module is for depositing
Store up location information corresponding to multiple wifi hotspot information and wifi hotspot information.
9. system according to claim 8, which is characterized in that the locating module is GPS positioning system, Beidou positioning
System, GLONASS positioning system or Galilean satellite positioning system;
The wifi hotspot information includes SSID and password;
The location information is the longitude and latitude of current location.
10. system according to claim 9, which is characterized in that the backup link is the net based on wireless cellular network
Network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610479041.2A CN106130896B (en) | 2016-06-23 | 2016-06-23 | The selection switching method and system of a kind of router under more wifi hotspot environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610479041.2A CN106130896B (en) | 2016-06-23 | 2016-06-23 | The selection switching method and system of a kind of router under more wifi hotspot environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106130896A CN106130896A (en) | 2016-11-16 |
CN106130896B true CN106130896B (en) | 2019-05-03 |
Family
ID=57266150
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610479041.2A Active CN106130896B (en) | 2016-06-23 | 2016-06-23 | The selection switching method and system of a kind of router under more wifi hotspot environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106130896B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107730401A (en) * | 2017-10-10 | 2018-02-23 | 桂林电子科技大学 | A kind of visitor's wisdom guide to visitors business model |
CN107992041A (en) * | 2017-12-06 | 2018-05-04 | 浙江大华技术股份有限公司 | A kind of AGV trolleies means of communication |
CN109511146A (en) * | 2018-12-29 | 2019-03-22 | 联想(北京)有限公司 | A kind of connection method, electronic equipment and network access equipment |
CN116347559B (en) * | 2023-01-13 | 2024-03-26 | 荣耀终端有限公司 | Network access method and network access device of electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102026190A (en) * | 2011-01-05 | 2011-04-20 | 西安电子科技大学 | Rapid and safe heterogeneous wireless network switching method |
CN103188752A (en) * | 2011-12-31 | 2013-07-03 | 北京大唐高鸿数据网络技术有限公司 | Network switching method achieving zero packet loss of mobile terminal under novel routing system |
CN103686896A (en) * | 2013-12-12 | 2014-03-26 | 广州市地下铁道总公司 | Method for switching wireless access points and terminal |
CN103889013A (en) * | 2012-12-19 | 2014-06-25 | 中国移动通信集团北京有限公司 | Cellular network and WLAN seamless switching method, device and client |
CN105516913A (en) * | 2014-09-22 | 2016-04-20 | 中兴通讯股份有限公司 | WIFI connection method and WIFI connection device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8290470B2 (en) * | 2007-08-13 | 2012-10-16 | Centurylink Intellectual Property Llc | System and method for providing location information to a public safety answering point during an emergency 911 call from a WiFi handset |
-
2016
- 2016-06-23 CN CN201610479041.2A patent/CN106130896B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102026190A (en) * | 2011-01-05 | 2011-04-20 | 西安电子科技大学 | Rapid and safe heterogeneous wireless network switching method |
CN103188752A (en) * | 2011-12-31 | 2013-07-03 | 北京大唐高鸿数据网络技术有限公司 | Network switching method achieving zero packet loss of mobile terminal under novel routing system |
CN103889013A (en) * | 2012-12-19 | 2014-06-25 | 中国移动通信集团北京有限公司 | Cellular network and WLAN seamless switching method, device and client |
CN103686896A (en) * | 2013-12-12 | 2014-03-26 | 广州市地下铁道总公司 | Method for switching wireless access points and terminal |
CN105516913A (en) * | 2014-09-22 | 2016-04-20 | 中兴通讯股份有限公司 | WIFI connection method and WIFI connection device |
Also Published As
Publication number | Publication date |
---|---|
CN106130896A (en) | 2016-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106130896B (en) | The selection switching method and system of a kind of router under more wifi hotspot environment | |
US10897745B2 (en) | Mapping and bridging wireless networks to provide better service | |
US9813873B2 (en) | Mobile device tracking prevention method and system | |
HRP20190102T1 (en) | Subscriber identification management broker for fixed/mobile networks | |
CN109479190A (en) | Mobility signalling loads are reduced | |
CN104412662A (en) | Determining network availability based on geographical location | |
US20070066312A1 (en) | Mobile ad hoc network system | |
CN101383768B (en) | Vehicle network data routing method based on digital map and mobile prediction | |
CN109479231A (en) | Mobility in Multi net voting wireless system | |
CN103313388A (en) | Method and device for positioning mobile communication terminal | |
SE524546C2 (en) | Method and apparatus for use with advanced positioning systems in cellular communication networks | |
JP2009049593A (en) | Network monitoring method, network monitoring device, line failure preventing system, program for network monitoring device | |
CN104380808A (en) | Determining availability of an access network | |
WO2013185686A2 (en) | Method and system for prompting signal covered area | |
US8824323B2 (en) | Wireless control plane failure handling in a split-plane deployment | |
CN103813364A (en) | Mobile self-organizing network interrupt data recovery method based on area perception | |
CN104378731A (en) | Blind switching or blind redirection method and system and associated equipment | |
KR100663885B1 (en) | A mobile communication network system and a mobility managing unit | |
CN104469735A (en) | SIM card application method and SIM card allocation method and device | |
CN106303940A (en) | Mobile terminal WLAN cut-in method and device | |
WO2006114056A1 (en) | Method and system for restrictiing roaming region of terminal and device thereof | |
El Korbi et al. | Coverage-connectivity based fault tolerance procedure in wireless sensor networks | |
US20090207766A1 (en) | Wireless network connection management system and method thereof | |
JPWO2011132546A1 (en) | Mobile communication system and mobile terminal | |
KR102199206B1 (en) | System, method and computing device for determining geo-fencing area. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 511356 Room 501, building 2, No. 63, Yong'an Avenue, Huangpu District, Guangzhou, Guangdong Patentee after: Guangzhou lubangtong Internet of things Technology Co.,Ltd. Address before: 510000 room F315, 95 daguanzhong Road, Tianhe District, Guangzhou City, Guangdong Province Patentee before: GUANGZHOU ROBUSTEL TECHNOLOGIES Co.,Ltd. |