CN109219044A - Switching method, mobile terminal and the computer readable storage medium of wireless network - Google Patents
Switching method, mobile terminal and the computer readable storage medium of wireless network Download PDFInfo
- Publication number
- CN109219044A CN109219044A CN201710548552.XA CN201710548552A CN109219044A CN 109219044 A CN109219044 A CN 109219044A CN 201710548552 A CN201710548552 A CN 201710548552A CN 109219044 A CN109219044 A CN 109219044A
- Authority
- CN
- China
- Prior art keywords
- network
- wifi network
- authentication
- wifi
- target
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/16—Performing reselection for specific purposes
- H04W36/18—Performing reselection for specific purposes for allowing seamless reselection, e.g. soft reselection
Abstract
The invention discloses a kind of switching methods of wireless network, if this method comprises: by mobile network provide network service when receive WIFI link order, judge whether the corresponding target WIFI network of the WIFI link order needs to carry out authentication;If desired authentication is carried out, then carries out authentication in the state of keeping mobile network, and judge whether authentication succeeds;If authenticating successfully, network service is provided by the target WIFI network.Invention additionally discloses a kind of mobile terminal and computer readable storage mediums.The present invention in mobile terminal when being attached WIFI network, it can be achieved that the seamless switching of network service, to improve the web experience of user.
Description
Technical field
The present invention relates to radio network technique field more particularly to a kind of switching method of wireless network, mobile terminal and
Computer readable storage medium.
Background technique
Current mobile terminal all supports mobile data network and WIFI network.And mobile terminal is in connection public place
After WIFI hot spot, outer net can not be often immediately accessed;Mobile terminal needs first to carry out authentication at this time, is proved to be successful when side
Outer net can be accessed.
And after existing mobile terminal and WIFI hot spot establish connection, it is immediately to cut network routing relation from mobile network
WIFI network is changed to, while carrying out authentication procedures.But since this verification process could will be completed after a period of time,
And mobile terminal can not provide network service by WIFI network in this verification process, i.e., in the process of network switching, there are one
Section " no network attachment time ", to reduce the experience of user.
Summary of the invention
The main purpose of the present invention is to provide a kind of switching method of wireless network, mobile terminal and computer-readable deposit
Storage media, it is intended to realize seamless switching of the mobile terminal from mobile network to WIFI network.
To achieve the above object, the present invention provides a kind of switching method of wireless network, and the switching method includes following
Step:
When providing network service by mobile network, if receiving WIFI link order, the WIFI connection is judged
Instruct whether corresponding target WIFI network needs to carry out authentication;
If the target WIFI network needs to carry out authentication, body is carried out in the state of keeping the mobile network
Part certification, and judge whether the authentication of the target WIFI network succeeds;
If the authentication success of the target WIFI network, provides network service by the target WIFI network.
Optionally, when providing network service by mobile network, if receiving WIFI link order, described in judgement
Whether the corresponding target WIFI network of WIFI link order needs the step of carrying out authentication to include:
When providing network service by mobile network, if receiving WIFI link order, the WIFI connection is obtained
Instruct the network ID of corresponding target WIFI network;
Audit memory judges the network ID that the target WIFI network whether is recorded in the memory, described in judgement
Whether target WIFI network needs to carry out authentication, wherein recording the WIFI network in need for carrying out identity in the memory
Network ID.
Optionally, the audit memory judges the network ID that the target WIFI network whether is recorded in the memory,
After judging whether the target WIFI network needs the step of carrying out authentication, further includes:
If the network ID of the target WIFI network is not recorded in the memory, it is determined that the target WIFI network is not
It needs to carry out authentication, and directly provides network service by the target WIFI network.
Optionally, the switching method further include:
Receive certification setting instruction when, according to user input setting information, in the memory record need into
The network ID of the WIFI network of row identity.
Optionally, the switching method further include:
When sending connection request to WIFI network, the portal server for receiving the WIFI network push is detected whether
Address;
If having received the portal server address of the WIFI network push, the WIFI is recorded in the memory
The network ID of network.
Optionally, the switching method further include:
When sending connection request to WIFI network, any access address is sent by the WIFI network, and detection is
It is no to receive the WIFI network return redirection message;
If having received the redirection message that the WIFI network returns, the WIFI network is recorded in the memory
Network ID.
Optionally, if the target WIFI network needs to carry out authentication, keeping the mobile network's
Authentication is carried out under state, and judge the target WIFI network authentication whether at the step of include:
If the target WIFI network needs to carry out authentication, in the state of keeping the mobile network, execute
The authentication of the target WIFI network operates, and records certification progress msg in memory according to verification process;
Judge whether the authentication of the target WIFI network succeeds according to the certification progress msg.
Optionally, if the target WIFI network needs to carry out authentication, keeping the mobile network's
Under state, the authentication operation of the target WIFI network is executed, and records certification progress in memory according to verification process
After the step of information, further includes:
Show certification degree of the progress information.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal include processor,
Memory and it is stored in the network switching program that can be executed on the memory and by the processor, the network switching
When program is executed by the processor, realize as above-mentioned wireless network switching method the step of.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Network switching program is stored on storage medium, wherein realizing when the network switching program is executed by processor as above-mentioned
The step of switching method of wireless network.
The present invention is by if receiving WIFI link order, judging institute when providing network service by mobile network
State whether the corresponding target WIFI network of WIFI link order needs to carry out authentication;If the target WIFI network need into
Row authentication then carries out authentication in the state of keeping the mobile network, and judges the target WIFI network
Whether authentication succeeds;If the authentication success of the target WIFI network, is provided by the target WIFI network
Network service.In the above manner, mobile terminal of the invention when being attached WIFI network, wouldn't disconnect original connection
Mobile network, but continue to provide network service by former mobile network;After connection authenticates successfully, mobile network is just disconnected
Connection, network routing relation is switched to WIFI network from mobile network, the seamless switching of network service is realized, to improve
The web experience of user.
Detailed description of the invention
Fig. 1 is the hardware structural diagram for the mobile terminal that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the switching method first embodiment of wireless network of the present invention;
Fig. 3 for described in Fig. 2 by mobile network provide network service when, if receiving WIFI link order, judge
Whether the corresponding target WIFI network of the WIFI link order needs to carry out the refinement flow diagram of authentication;
If Fig. 4 is that the target WIFI network described in Fig. 2 needs to carry out authentication, keeping the mobile network's
Authentication is carried out under state, and judges whether the authentication of the target WIFI network successfully refines flow diagram.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The main thought of the embodiment of the present invention is: when providing network service by mobile network, if receiving
WIFI link order, then judge whether the corresponding target WIFI network of the WIFI link order needs to carry out authentication;If
The target WIFI network needs to carry out authentication, then authentication is carried out in the state of keeping the mobile network, and
Judge whether the authentication of the target WIFI network succeeds;If the authentication success of the target WIFI network, leads to
It crosses the target WIFI network and network service is provided.
The present embodiments relate to the switching method of wireless network be mainly used in mobile terminal, which can pass through
Various ways are realized.For example, the mobile terminal can be smart phone, tablet computer, laptop, intelligent wearable device,
The mobile terminals such as portable media player.
Mobile terminal in subsequent descriptions will be illustrated with mobile phone, it will be appreciated by those skilled in the art that in addition to spy
Except the element that purpose Yong Yu not moved, the construction of embodiment according to the present invention can also apply to other types of movement
Terminal.
Referring to Fig.1, Fig. 1 is the hardware structural diagram of mobile terminal involved in the embodiment of the present invention.The present invention
In embodiment, mobile terminal may include processor 1001 (such as CPU), and communication bus 1002, user interface 1003, network connects
Mouth 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components;User interface
1003 may include display screen (Display), input unit such as keyboard (Keyboard);Network interface 1004 optionally can be with
Including standard wireline interface and wireless interface (such as WI-FI interface);Memory 1005 can be high speed RAM memory, can also be with
It is stable memory (non-volatile memory), such as magnetic disk storage, memory 1005 optionally can also be only
Stand on the storage device of aforementioned processor 1001.
Optionally, which can also include camera, RF (Radio Frequency, radio frequency) circuit, sensing
Device, voicefrequency circuit, WiFi module etc..Wherein, sensor such as optical sensor, motion sensor and other sensors.Tool
Body, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjusts the brightness of display screen, proximity sensor can according to lighting apparatus at a distance from object of reference, close display screen and/or
Backlight.As a kind of motion sensor, gravity accelerometer can detect (generally three axis) acceleration in all directions
Size, can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile terminal posture
Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Certainly, the movement
Terminal can also configure the other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, no longer superfluous herein
It states.
It will be understood by those skilled in the art that the hardware configuration of mobile terminal shown in Fig. 1 is not constituted to mobile whole
The restriction at end may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
With continued reference to Fig. 1, the memory 1005 in Fig. 1 as a kind of computer readable storage medium may include operation system
System, network communication module and network switching program.
In Fig. 1, network communication module is mainly used for connecting server, carries out data communication with server;And processor
1001 can call the network switching program stored in memory 1005, and execute following operation:
When providing network service by mobile network, if receiving WIFI link order, the WIFI connection is judged
Instruct whether corresponding target WIFI network needs to carry out authentication;
If the target WIFI network needs to carry out authentication, body is carried out in the state of keeping the mobile network
Part certification, and judge whether the authentication of the target WIFI network succeeds;
If the authentication success of the target WIFI network, provides network service by the target WIFI network.
Further, processor 1001 may call upon the network switching program stored in memory 1005, and execute with
Lower operation:
When providing network service by mobile network, if receiving WIFI link order, the WIFI connection is obtained
Instruct the network ID of corresponding target WIFI network;
Audit memory judges the network ID that the target WIFI network whether is recorded in the memory, described in judgement
Whether target WIFI network needs to carry out authentication, wherein recording the WIFI network in need for carrying out identity in the memory
Network ID.
Further, processor 1001 may call upon the network switching program stored in memory 1005, and execute with
Lower operation:
If the network ID of the target WIFI network is not recorded in the memory, it is determined that the target WIFI network is not
It needs to carry out authentication, and directly provides network service by the target WIFI network.
Further, processor 1001 may call upon the network switching program stored in memory 1005, and execute with
Lower operation:
Receive certification setting instruction when, according to user input setting information, in the memory record need into
The network ID of the WIFI network of row identity.
Further, processor 1001 may call upon the network switching program stored in memory 1005, and execute with
Lower operation:
When sending connection request to WIFI network, the portal server for receiving the WIFI network push is detected whether
Address;
If having received the portal server address of the WIFI network push, the WIFI is recorded in the memory
The network ID of network.
Further, processor 1001 may call upon the network switching program stored in memory 1005, and execute with
Lower operation:
When sending connection request to WIFI network, any access address is sent by the WIFI network, and detection is
It is no to receive the WIFI network return redirection message;
If having received the redirection message that the WIFI network returns, the WIFI network is recorded in the memory
Network ID.
Further, processor 1001 may call upon the network switching program stored in memory 1005, and execute with
Lower operation:
If the target WIFI network needs to carry out authentication, in the state of keeping the mobile network, execute
The authentication of the target WIFI network operates, and records certification progress msg in memory according to verification process;
Judge whether the authentication of the target WIFI network succeeds according to the certification progress msg.
Further, processor 1001 may call upon the network switching program stored in memory 1005, and execute with
Lower operation:
Show certification degree of the progress information.
Based on the hardware configuration of above-mentioned mobile terminal, each embodiment of switching method of wireless network of the present invention is proposed.
The present invention provides a kind of switching method of wireless network.
It is the flow diagram of the switching method first embodiment of wireless network of the present invention referring to Fig. 2, Fig. 2.
In the present embodiment, the switching method of the wireless network the following steps are included:
Step S210, when providing network service by mobile network, if receiving WIFI link order, described in judgement
Whether the corresponding target WIFI network of WIFI link order needs to carry out authentication;
Current mobile terminal all supports mobile network and WIFI network substantially.Telecom operators are mentioned in public places
The WIFI hot spot of confession is typically necessary carry out authentication, i.e. mobile terminal, can not be immediately after connecting this WIFI hot spot
Access outer net;WIFI hot spot can push the address information of portal server to terminal at this time;Mobile terminal is needed according to the address
Information carries out relevant registration operation and authentication;If authenticating successfully, allow user terminal access outer net.In this mode
Under, network routing relation is usually directly switched to WIFI from mobile network, still when connecting WIFI hot spot by mobile terminal
Since this verification process could will be completed after a period of time, and mobile terminal can not pass through WIFI net in this verification process
Network is serviced using network, i.e., in the process of network switching, there are one section " no network attachment times ", to reduce the body of user
It tests.
For above situation, the switching method of the wireless network in the present embodiment is realized when terminal connects WIFI network
From mobile network to the seamless switching of WIFI network.
Specifically, the mobile phone of user supports mobile network and WIFI in the present embodiment.User opens the movement in mobile phone
Network function, and watch network video in smart phone in a manner of mobile network and (can also be certainly using other nets
Network service, for example, using browser surf the web news, chatted using social software and good friend etc.).At this point, near user's discovery
There is available WIFI network (WIFI hot spot), then user clicks the WIFI connectivity option of mobile phone, to trigger WIFI connection
Instruction, so that the WIFI network near mobile phone connection, wherein user wishes that the WIFI of connection can be described as target WIFI network.When
Right user can also trigger WIFI link order by way of voice input or manual input commands.Mobile phone is receiving this
When WIFI link order, will tentatively it be connect according to the instruction with the foundation of target WIFI network.When establishing connection, mobile phone will also be obtained
The related network information for taking target WIFI network, network ID (SSID), working frequency, channel including target network etc..It is worth
Illustrate, when establishing connection with WIFI network, mobile phone does not disconnect mobile network immediately, and mobile phone can still pass through movement at this time
Network provides network service for user, i.e. user can still be watched network video on mobile phone by mobile network at this time or use it
Its network service, guarantee network service will not verification process progress and stop.
In the present embodiment, mobile phone judges when being connected to target WIFI network according to the network information of target WIFI network
Whether need to carry out authentication.And the method judged, it can be according to network information access related service website or detection
The mode of mobile phone own net connection is judged, can also be that the data information in inquiry mobile phone memory is judged.
Judgment method in the present embodiment is that will inquire the default authentication state table being stored in mobile phone EMS memory, according to the pre- setting authentication
The acquisition of information recorded in state table the target WIFI network is in access authority type information, to judge the mesh of current phone connection
Whether mark WIFI network needs to carry out authentication.It wherein presets and records progress authentication in need in authentication state table
The information of WIFI network, the network information of the target WIFI network according to the content in table and currently connected, it may be determined that target
Whether WIFI network needs to carry out authentication.If the target WIFI network does not need to carry out authentication, mobile phone exists
When establishing connection with target WIFI network, extraneous network can be connected by target WIFI network;But if target WIFI net
Network needs to carry out authentication, then mobile phone also needs to complete relevant authentication operation, can just connect extraneous network, mention for user
For network service.
Step S220, if the target WIFI network needs to carry out authentication, in the shape for keeping the mobile network
Authentication is carried out under state, and judges whether the authentication of the target WIFI network succeeds;
In the present embodiment, if target WIFI network needs to carry out authentication, mobile phone can export corresponding certification letter
Breath, so that user inputs relevant identity information (or information of other authentication requestings) according to authentication information.In this process,
Mobile phone not will disconnect original mobile network, but can keep the connection status of mobile network, and be user by mobile network
Network service is provided.During mobile phone executes authentication operation, it will constantly update default authentication state according to the progress of certification
The content of table;Meanwhile mobile phone will open corresponding mission thread, as soon as every pass through a predetermined period (i.e. at regular intervals),
Default authentication state table is inquired, to determine whether authentication operation succeeds.If after inquiry, discovery authentication operation is not completed,
Then mobile phone can still keep the connection status of current mobile network, provide network service by mobile network for user, and passing through
Default authentication state table is inquired again when next predetermined period, to determine whether authentication operation is completed, until determining
It authenticates successfully.
Step S230, if the authentication success of the target WIFI network, is provided by the target WIFI network
Network service.
In the present embodiment, in the authentication success of the target WIFI network, mobile phone can pass through target WIFI network
Connect extraneous network.Network used in network service is switched to target WIFI network by original mobile network by mobile phone at this time,
Network service is provided by target WIFI network for user;And user can disconnect mobile network during this time, pass through target
WIFI network watches network video on mobile phone or using other network service.
Further, mobile phone is when inquiring default authentication state table, it is possible to find that authentication has failed.Mobile phone at this time
It not will disconnect original mobile network, but the connection status of mobile network can be kept, and provided by mobile network for user
Network service, guarantee network service will not authentification failure and stop;Meanwhile mobile phone can export corresponding prompt information, with prompt
The authentication of ownership goal WIFI network has failed, and user can re-enter identity information (or information of other authentication requestings)
Carry out authentication.
In the present embodiment, when providing network service by mobile network, if receiving WIFI link order, institute is judged
State whether the corresponding target WIFI network of WIFI link order needs to carry out authentication;If the target WIFI network need into
Row authentication then carries out authentication in the state of keeping the mobile network, and judges the target WIFI network
Whether authentication succeeds;If the authentication success of the target WIFI network, is provided by the target WIFI network
Network service.In the above manner, the mobile terminal of the present embodiment when being attached WIFI network, wouldn't disconnect original connection
Mobile network, but continue to provide network service by former mobile network;After connection authenticates successfully, mobile network is just disconnected
Network routing relation is switched to WIFI network from mobile network, the seamless switching of network service is realized, to mention by the connection of network
The high web experience of user.
Referring to Fig. 3, Fig. 3 be described in Fig. 2 when providing network by mobile network and servicing, refer to if receiving WIFI connection
It enables, then judges whether the corresponding target WIFI network of the WIFI link order needs to carry out the refinement process signal of authentication
Figure.
Based on above-mentioned embodiment illustrated in fig. 2, switching method includes: in the present embodiment
Step S311, when providing network service by mobile network, if receiving WIFI link order, described in acquisition
The network ID of the corresponding target WIFI network of WIFI link order;
Step S312, audit memory judge the network ID that the target WIFI network whether is recorded in the memory, with
Judge whether the target WIFI network needs to carry out authentication, wherein recording progress identity in need in the memory
The network ID of WIFI network;
Step S320, identical as above-described embodiment Fig. 2 step S220, as detailed above, details are not described herein again;
Step S330, identical as above-described embodiment Fig. 2 step S230, as detailed above, details are not described herein again.
In the present embodiment, it is stored with default authentication state table in the memory of mobile phone, is recorded in this default authentication state table
The id information (SSID) of the WIFI network in need for carrying out authentication.Mobile phone by mobile network provide network service when,
If having received WIFI link order, mobile phone can will acquire the phase of target WIFI network in linking objective WIFI network
The network information is closed, wherein this network information is the network ID (SSID) for including target network, and certain network information may include it
Its content (such as network signal frequency, channel etc.).In the id information for getting WIFI network, it will pre- in audit memory
Setting authentication state table judges ID (the i.e. target WIFI net whether consistent with the ID of target network saved in default authentication state table
The network ID of network whether there is in default authentication state table), to judge whether target WIFI network needs to carry out authentication.
If the ID of the ID and target network saved in default authentication state table is inconsistent, the network ID of target WIFI network is not present in pre-
Setting authentication state table, then it is believed that target WIFI network do not need carry out authentication, then mobile phone with target WIFI
When network establishes connection, network used in network service directly can be switched into target WIFI network by original mobile network,
Network service is provided by target WIFI network for user;If the ID mono- of the ID and target network saved in default authentication state table
It causes, the network ID of target WIFI network is present in default authentication state table, then authenticates target WIFI network and need to carry out identity and recognize
Card, then mobile phone keeps the connection status of mobile network, it is that user continues to provide network service, and executes phase by mobile network
The authentication operation answered.
Further, it for the authentication of WIFI network, is realized generally by two ways.One is in terminal
When connecting WIFI network, the transmitting terminal (or server) of WIFI network pushes portal server address to terminal;Another kind is
The transmitting terminal (or server) of WIFI network is returned at any website of terminal access (sending any URL of http get) to terminal
It returns http and redirects message, so that terminal jumps to appointed website.According to both of these case, preset in authentication state table in mobile phone
WIFI network Web ID information, can be and in this way collect and record: specifically, mobile phone is when connect WIFI network, general
It can detect whether itself to have received the portal server address that WIFI network pushes;If having received the door of WIFI network push
Family server address, then it is assumed that the WIFI network is the network for needing to carry out authentication, and mobile phone will be in pre- setting authentication shape at this time
The network ID of the WIFI network is recorded in state table.It is, of course, also possible to be mobile phone when connecting WIFI network, sent out by WIFI network
It send any access network address to access any website, and detects whether that receiving the WIFI network returns to redirection message;If connecing
Have received the redirection message of WIFI network return, then it is assumed that the WIFI network is the network for needing to carry out authentication, at this time
Mobile phone will record the network ID of the WIFI network in default authentication state table.Certainly, in specific implementation, it can also be basis
The information that user is manually entered, record needs the network ID of the WIFI network of authentication in default authentication state table.Specifically
, if certain known WIFI is the WIFI for needing authentication to user originally, certification setting options, triggering directly can be clicked in mobile phone
Certification setting instruction, to input the network ID of known WIFI network in default authentication state table;Mobile phone is receiving the certification
When setting instruction, the setting information inputted according to user is updated into the default authentication state table, in the default authentication state
Record needs to carry out the network ID of the WIFI network of identity in table.
The shifting is being kept if Fig. 4 is that the target WIFI network described in Fig. 2 needs to carry out authentication referring to Fig. 4
Authentication is carried out in the state of dynamic network, and judges whether the authentication of the target WIFI network successfully refines process
Schematic diagram.
Based on above-mentioned embodiment illustrated in fig. 2, switching method includes: in the present embodiment
Step S410, identical as above-described embodiment Fig. 2 step S210, as detailed above, details are not described herein again;
Step S421, if the target WIFI network needs to carry out authentication, in the shape for keeping the mobile network
Under state, the authentication operation of the target WIFI network is executed, and records certification progress letter in memory according to verification process
Breath;
Step S422 judges whether the authentication of the target WIFI network succeeds according to the certification progress msg;
Step S430, identical as above-described embodiment Fig. 2 step S230, as detailed above, details are not described herein again.
In the present embodiment, it is stored with default authentication state table in the memory of mobile phone, includes in this default authentication state table
Need to carry out certification progress msg (the certification progress letter in certain mobile phone EMS memory in relation to WIFI network of the WIFI network of identity
Breath can also other forms stored).And default authentication state table can be as shown in the table:
WIFI network | Authentication starts | In authentication | Authentication is completed |
SSID_01 | False/True | False/True | 0/1/2 |
SSID_02 | False/True | False/True | 0/1/2 |
SSID_... | False/True | False/True | 0/1/2 |
SSID_xx | False/True | False/True | 0/1/2 |
Wherein, for above table, " WIFI network " arranges the network ID (SSID) for recording WIFI network;" identity is recognized
Card starts " column are for indicating whether that beginning authentication procedures are recorded as False if certification does not start, if certification has been opened
Begin, is then recorded as True;" in authentication " column, if certification does not start, are recorded as indicating authentication procedures
False is recorded as True if certification is carrying out;" authentication completion " is arranged for indicating whether authentication procedures are complete
At, if do not complete if be recorded as 0 (default), if certification complete but authentification failure be recorded as 1, if certification completion and authenticate successfully
Then it is recorded as 2.By inquiring this default authentication state table, that is, it can determine current WIFI network certification progress.And this table
In certification progress msg when real-time update carried out according to authentication state.For example, WIFI net of the mobile phone in newly connection SSID_01
When network, " authentication starts " column, " in authentication " column are recorded as False at this time, and " authentication completion " column are recorded as
0;Mobile phone is kept in the case where providing network service by the mobile network at this time, executes relevant authentication operation, together
When, the certification progress msg of default authentication state table will be also updated according to verification process;When authenticating beginning, by " authentication
Beginning " column are updated to " Ture " by " False ";Then when carrying out authentication operation, it will be arranged by " False " more " in authentication "
Newly it is " Ture ";When authenticating completion, " authentication completion " column will be updated according to authentication result;If authentification failure, by " 0 "
It is changed to " 1 ";If authenticating successfully, " 0 " is changed to " 2 ".Certainly, the certification progress in authentication state table is preset in specific implementation
It can also be recorded and be indicated with other forms, or it is arranged in default authentication state table according to actual use situation
Its content.
In the present embodiment, mobile phone is determining target according to the relevant information and default authentication state table of target WIFI network
When WIFI needs to carry out authentication, the connection of mobile network on the one hand will be kept, to continue to provide network service for user;Separately
On the one hand the authentication of performance objective WIFI network is operated, and updates the certification of default authentication state table according to verification process
Progress msg.Since the process needs of certification take some time, mobile phone can not monitor default authentication state table in real time
Update status, but inquire default authentication state table again after predetermined period, and judge according to the certification progress msg
Whether the authentication of the target WIFI network is completed.It, will be according to the information of " authentication completion " column when authenticating completion
Determine the result of certification.If authenticating successfully, network used in network service is switched to mesh by original mobile network by mobile phone
WIFI network is marked, provides network service by target WIFI network for user;And user can disconnect mobile network during this time,
Network video is watched on mobile phone by target WIFI network or using other network services.If authentication failed, mobile phone is simultaneously
It not will disconnect original mobile network, but the connection status of mobile network can be kept, and provide net by mobile network for user
Network service, guarantee network service will not authentification failure and stop;Meanwhile mobile phone can export corresponding prompt information, to prompt to use
The authentication of family target WIFI network has failed, user can re-enter identity information (or information of other authentication requestings) into
Row authentication.
Further, mobile phone can be carried out when inquiring the certification progress msg of default authentication state table with input authentication
Information is spent, so that user understands current certification progress.Certainly the mode exported is not unique, can be and shows in display screen
Relevant text or image information can also be the relevant progress prompt voice of output.
In addition, the present invention also provides a kind of network switching device, the network switching device includes:
First judgment module is used for when providing network service by mobile network, if receiving WIFI link order,
Judge whether the corresponding target WIFI network of the WIFI link order needs to carry out authentication;
Second judgment module is keeping the movement if needing to carry out authentication for the target WIFI network
Authentication is carried out in the state of network, and judges whether the authentication of the target WIFI network succeeds;
Service providing module, if the authentication success for the target WIFI network, passes through the target WIFI
Network with network service.
Further, the first judgment module includes:
Information acquisition unit is used for when providing network service by mobile network, if receiving WIFI link order,
Obtain the network ID of the corresponding target WIFI network of the WIFI link order;
Network judging unit is used for audit memory, judges whether record the target WIFI network in the memory
Network ID, to judge whether the target WIFI network needs to carry out authentication, wherein recorded in the memory it is in need into
The network ID of the WIFI network of row identity.
Further, the first judgment module further include:
Service rendering units, if the network ID for not recording the target WIFI network in the memory, it is determined that
The target WIFI network does not need to carry out authentication, and directly provides network service by the target WIFI network.
Further, the network switching device, further includes:
Information logging modle, for receive certification setting instruction when, according to user input setting information, described
Record needs to carry out the network ID of the WIFI network of identity in memory.
Further, the network switching device, further includes:
First detection module, for detecting whether to receive the WIFI net when sending connection request to WIFI network
The portal server address of network push;
First logging modle, if the portal server address for having received the WIFI network push, described
The network ID of the WIFI network is recorded in memory.
Further, the network switching device, further includes:
Second detection module, for being sent by the WIFI network any when sending connection request to WIFI network
Access address, and detect whether that receiving the WIFI network returns to redirection message;
Second logging modle, if the redirection message returned for having received the WIFI network, in the memory
The middle network ID for recording the WIFI network.
Further, second judgment module includes:
Information recording unit is keeping the movement if needing to carry out authentication for the target WIFI network
In the state of network, the authentication operation of the target WIFI network is executed, and is recorded and is recognized in memory according to verification process
Demonstrate,prove progress msg;
As a result judging unit, for judging that the authentication of the target WIFI network is according to the certification progress msg
No success.
Further, second judgment module further include:
Progress display unit, for showing certification degree of the progress information.
Wherein, the above-mentioned network switching device modules function corresponding, each with step each in above method embodiment
It can no longer be repeated one by one here with realization process.
Further, the present invention also provides a kind of computer readable storage mediums.
Network switching program is stored on computer readable storage medium of the present invention, wherein the network switching program is located
Manage device execute when, realize as above-mentioned wireless network switching method the step of.
Wherein, network switching program, which is performed realized method, can refer to the switching method of wireless network of the present invention
Each embodiment, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of switching method of wireless network, which is characterized in that the switching method the following steps are included:
When providing network service by mobile network, if receiving WIFI link order, the WIFI link order is judged
Whether corresponding target WIFI network needs to carry out authentication;
If the target WIFI network needs to carry out authentication, identity is carried out in the state of keeping the mobile network and is recognized
Card, and judge whether the authentication of the target WIFI network succeeds;
If the authentication success of the target WIFI network, provides network service by the target WIFI network.
2. switching method as described in claim 1, which is characterized in that it is described when providing network service by mobile network,
If receiving WIFI link order, judge whether the corresponding target WIFI network of the WIFI link order needs to carry out identity
The step of certification includes:
When providing network service by mobile network, if receiving WIFI link order, the WIFI link order is obtained
The network ID of corresponding target WIFI network;
Audit memory judges the network ID that the target WIFI network whether is recorded in the memory, to judge the target
Whether WIFI network needs to carry out authentication, wherein recording the network of the WIFI network in need for carrying out identity in the memory
ID。
3. switching method as claimed in claim 2, which is characterized in that the audit memory judges whether remember in the memory
Record has the network ID of the target WIFI network, to judge whether the target WIFI network needs the step of carrying out authentication
Later, further includes:
If the network ID of the target WIFI network is not recorded in the memory, it is determined that the target WIFI network does not need
Authentication is carried out, and directly provides network service by the target WIFI network.
4. switching method as claimed in claim 2, which is characterized in that the switching method further include:
When receiving certification setting instruction, according to the setting information that user inputs, record needs to carry out body in the memory
The network ID of the WIFI network of part.
5. switching method as claimed in claim 2, which is characterized in that the switching method further include:
When sending connection request to WIFI network, with detecting whether the portal server for receiving the WIFI network push
Location;
If having received the portal server address of the WIFI network push, the WIFI network is recorded in the memory
Network ID.
6. switching method as claimed in claim 2, which is characterized in that the switching method further include:
When sending connection request to WIFI network, any access address is sent by the WIFI network, and detect whether to connect
It receives the WIFI network and returns to redirection message;
If having received the redirection message that the WIFI network returns, the net of the WIFI network is recorded in the memory
Network ID.
7. switching method as described in claim 1, which is characterized in that if the target WIFI network needs to carry out identity
Certification, then carry out authentication in the state of keeping the mobile network, and judge that the identity of the target WIFI network is recognized
Whether successful step includes: card
If the target WIFI network needs to carry out authentication, in the state of keeping the mobile network, described in execution
The authentication of target WIFI network operates, and records certification progress msg in memory according to verification process;
Judge whether the authentication of the target WIFI network succeeds according to the certification progress msg.
8. switching method as described in claim 7, which is characterized in that if the target WIFI network needs to carry out body
Part certification, then in the state of keeping the mobile network, the authentication for executing the target WIFI network is operated, and according to
Verification process was recorded in memory after the step of certification progress msg, further includes:
Show certification degree of the progress information.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes processor, memory and is stored in described deposit
On reservoir and the network switching program that can be executed by the processor, when the network switching program is executed by the processor,
The step of realizing the switching method such as wireless network described in any item of the claim 1 to 8.
10. a kind of computer readable storage medium, which is characterized in that be stored with network on the computer readable storage medium and cut
Program is changed, wherein realizing such as nothing described in any item of the claim 1 to 8 when the network switching program is executed by processor
The step of switching method of gauze network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710548552.XA CN109219044A (en) | 2017-07-06 | 2017-07-06 | Switching method, mobile terminal and the computer readable storage medium of wireless network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710548552.XA CN109219044A (en) | 2017-07-06 | 2017-07-06 | Switching method, mobile terminal and the computer readable storage medium of wireless network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109219044A true CN109219044A (en) | 2019-01-15 |
Family
ID=64990926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710548552.XA Pending CN109219044A (en) | 2017-07-06 | 2017-07-06 | Switching method, mobile terminal and the computer readable storage medium of wireless network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109219044A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109831441A (en) * | 2019-02-22 | 2019-05-31 | 深圳市信锐网科技术有限公司 | A kind of identity authentication method, system and associated component |
WO2021036558A1 (en) * | 2019-08-23 | 2021-03-04 | Oppo广东移动通信有限公司 | Wireless network connection method and related apparatus |
CN113747422A (en) * | 2020-05-27 | 2021-12-03 | 中国联合网络通信集团有限公司 | Network service switching method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101411231A (en) * | 2006-02-13 | 2009-04-15 | 法国电信公司 | Method for allocating at least one access point to a mobile terminal in a cellular network, corresponding terminal, mobility server and programmes |
CN102970680A (en) * | 2011-09-01 | 2013-03-13 | 中兴通讯股份有限公司 | Method and device for network switching |
CN104980978A (en) * | 2015-06-30 | 2015-10-14 | 青岛海尔智能家电科技有限公司 | WiFi access point switching method and device |
US20160302064A1 (en) * | 2015-04-09 | 2016-10-13 | Industrial Technology Research Institute | Lte base station, ue and pre-association and pre-authentication methods thereof in wwan-wlan aggregation |
CN106358248A (en) * | 2015-07-14 | 2017-01-25 | 上海无线通信研究中心 | Wireless local area network (WLAN) switching method and device |
CN106792952A (en) * | 2016-12-22 | 2017-05-31 | 三星半导体(中国)研究开发有限公司 | The method and apparatus of Wireless Fidelity access point are connected to for terminal |
-
2017
- 2017-07-06 CN CN201710548552.XA patent/CN109219044A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101411231A (en) * | 2006-02-13 | 2009-04-15 | 法国电信公司 | Method for allocating at least one access point to a mobile terminal in a cellular network, corresponding terminal, mobility server and programmes |
CN102970680A (en) * | 2011-09-01 | 2013-03-13 | 中兴通讯股份有限公司 | Method and device for network switching |
US20160302064A1 (en) * | 2015-04-09 | 2016-10-13 | Industrial Technology Research Institute | Lte base station, ue and pre-association and pre-authentication methods thereof in wwan-wlan aggregation |
CN104980978A (en) * | 2015-06-30 | 2015-10-14 | 青岛海尔智能家电科技有限公司 | WiFi access point switching method and device |
CN106358248A (en) * | 2015-07-14 | 2017-01-25 | 上海无线通信研究中心 | Wireless local area network (WLAN) switching method and device |
CN106792952A (en) * | 2016-12-22 | 2017-05-31 | 三星半导体(中国)研究开发有限公司 | The method and apparatus of Wireless Fidelity access point are connected to for terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109831441A (en) * | 2019-02-22 | 2019-05-31 | 深圳市信锐网科技术有限公司 | A kind of identity authentication method, system and associated component |
CN109831441B (en) * | 2019-02-22 | 2021-10-22 | 深圳市信锐网科技术有限公司 | Identity authentication method, system and related components |
WO2021036558A1 (en) * | 2019-08-23 | 2021-03-04 | Oppo广东移动通信有限公司 | Wireless network connection method and related apparatus |
CN113747422A (en) * | 2020-05-27 | 2021-12-03 | 中国联合网络通信集团有限公司 | Network service switching method, device, equipment and storage medium |
CN113747422B (en) * | 2020-05-27 | 2024-02-02 | 中国联合网络通信集团有限公司 | Network service switching method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104270404B (en) | A kind of login method and device based on terminal iidentification | |
EP3188414B1 (en) | Method and apparatus for controlling smart device | |
EP3082299B1 (en) | Method, terminal and computer program for detecting the state of a network channel between a smart device and an iot server | |
CN104796385B (en) | Terminal binding method, apparatus and system | |
CN107943489B (en) | Data sharing method and mobile terminal | |
EP2975821A1 (en) | Network connection method and apparatus | |
CN103986969B (en) | application management method, device and system | |
CN105472771B (en) | Wireless connection method and device | |
CN103179168A (en) | Electronic device and method for sharing data through Bluetooth | |
WO2015039601A1 (en) | Methods, devices, terminal device and systems for pattern recognition | |
US20160255521A1 (en) | Method and apparatus for testing a smart device | |
WO2015027849A1 (en) | Methods, devices, and systems for correlating terminals | |
CN107682359B (en) | Application registration method and mobile terminal | |
CN104123341A (en) | Method and device for downloading file and route device | |
CN110049496A (en) | A kind of method for network access and mobile terminal | |
CN109219044A (en) | Switching method, mobile terminal and the computer readable storage medium of wireless network | |
CN104219038A (en) | Method and device for synchronizing data | |
CN106331370A (en) | Data transmission method and terminal device | |
CN109951889B (en) | Internet of things network distribution method and mobile terminal | |
CN114003322A (en) | Method, equipment and device for displaying real scene space of house and storage medium | |
CN108197264A (en) | Webpage accelerates display methods, device, mobile terminal and storage medium | |
CN108829481B (en) | Presentation method of remote controller interface based on control electronic equipment | |
CN106375096A (en) | Short message verification method and device | |
CN106028259A (en) | Data download method and terminal | |
CN111752450A (en) | Display method and device and electronic 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190115 |