CN113055982B - Network access method, network access device and mobile terminal - Google Patents
Network access method, network access device and mobile terminal Download PDFInfo
- Publication number
- CN113055982B CN113055982B CN202010398650.1A CN202010398650A CN113055982B CN 113055982 B CN113055982 B CN 113055982B CN 202010398650 A CN202010398650 A CN 202010398650A CN 113055982 B CN113055982 B CN 113055982B
- Authority
- CN
- China
- Prior art keywords
- network
- mode
- network access
- determining
- channel
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/20—Selecting an access point
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application discloses a network access method, a network access device, a mobile terminal and a computer readable storage medium, wherein the method comprises the following steps: acquiring a network access mode in which the mobile terminal is currently located; determining at least one network channel associated with the network access mode; determining a target network channel among the at least one network channel; and performing network access based on the target network channel. By the scheme, the flexibility of network access of the mobile terminal can be improved.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network access method, a network access apparatus, a mobile terminal, and a computer-readable storage medium.
Background
Currently, the network to which the mobile terminal is connected is generally controlled by the user himself. In order to realize the balanced load of the network, the user can access the used mobile terminal to the designated network according to the self requirement. However, in the situation that the user requirement and the network status change frequently, the network access method of the current mobile terminal still needs to be improved in flexibility.
Disclosure of Invention
The application provides a network access method, a network access device, a mobile terminal and a computer readable storage medium, which can improve the flexibility of network access.
In a first aspect, the present application provides a network access method, including:
acquiring a network access mode in which the mobile terminal is currently located;
determining at least one network channel associated with the network access mode;
determining a target network channel in the at least one network channel;
and performing network access based on the target network channel.
In a second aspect, the present application provides a network access apparatus, including:
an obtaining unit, configured to obtain a network access mode in which the mobile terminal is currently located;
an association determining unit, configured to determine at least one network channel associated with the network access mode;
a target determining unit, configured to determine a target network channel among the at least one network channel;
and the access unit is used for carrying out network access based on the target network channel.
In a third aspect, the present application provides a mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the method of the first aspect as described above.
As can be seen from the above, according to the present application, the network access mode in which the mobile terminal is currently located is first obtained, then at least one network channel associated with the network access mode is determined, then a target network channel is determined in the at least one network channel, and finally network access is performed based on the target network channel. According to the scheme, multiple network access modes are preset in the mobile terminal, and the usable network channel is configured for each network access mode, so that a user only needs to select the network access mode to be used for the mobile terminal, and the subsequent mobile terminal can automatically find out a proper target network channel under the associated network channel according to the selected network access mode and perform network access through the target network channel, and the flexibility of the mobile terminal in accessing the network is greatly improved. It is to be understood that, for the beneficial effects of the second aspect to the fifth aspect, reference may be made to the relevant description in the first aspect, and details are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic implementation flow diagram of a network access method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a network architecture of a mobile terminal in a network access method according to an embodiment of the present application;
fig. 3 is a schematic diagram of different application scenarios in a network access method according to an embodiment of the present application;
fig. 4 is a block diagram of a network access device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Example one
Referring to fig. 1, a network access method provided in an embodiment of the present application is described below, where the network access method in the embodiment of the present application is applied to a mobile terminal, and includes:
in the embodiment of the present application, the mobile terminal may provide a plurality of network access modes to the user, for example, the network access modes may be required to be selected by the user in the form of a drop-down box in a selection page of the network access modes. Of course, the user may also reselect the network access mode of the mobile terminal according to the user's requirement, which is not limited herein.
Optionally, the user may pre-define at least one time period in the mobile terminal, and select a network access mode corresponding to each time period; step 101 may be embodied as: acquiring the current moment; determining the time period of the current time according to a preset time period-network access mode association table; and searching the network access mode corresponding to the time period of the current moment in the time period-network access mode association table to be used as the network access mode of the mobile terminal.
Optionally, the user may pre-define at least one location range in the mobile terminal, and select a network access mode corresponding to each location range; then step 101 may be embodied as: acquiring a current position; determining the position range of the current position according to a preset position range-network access mode association table; and searching a network access mode corresponding to the position range of the current position in the position range-network access mode association table as the network access mode of the mobile terminal.
Optionally, if the user does not select the required network access mode in the mobile terminal in advance, the mobile terminal will be in a default network access mode, where the default network access mode is usually an automatic mode.
in the embodiment of the present application, as shown in fig. 2, the network channels may be divided into two types: one is a general purpose network and one is a private network. It can be understood that the universal network corresponds to a universal frequency band and a universal Access Point (APN), and generally, the universal network is provided by an operator, so that the universal frequency band and the universal APN are specified by the corresponding operator; the dedicated network corresponds to a dedicated band and a dedicated APN, which are generally specified by the user himself. Of course, the network channel is not limited to the general network and the private network, and the type of the network channel is not limited herein.
For example, cellular Mobile networks such as Global System for Mobile Communications (GSM) networks, wideband Code Division Multiple Access (W-CDMA) networks, time Division-Synchronous Code Division Multiple Access (TD-SCDMA) networks, and fifth generation Mobile communication technology (5 g) are common general-purpose networks, and the types of general-purpose networks are not limited herein. Because the mobile networks of different operators have different frequency bands, when the mobile terminal performs network access through a general network, the mobile terminal can automatically and sequentially select different frequency bands to perform registration and access of the mobile network according to conditions. Moreover, different operators have different common APNs, for example, a common APN for chinese mobile is cmnet/cmiot, a common APN for chinese telecom is 3gnet, and a common APN for chinese telecom is ctnet, so that the mobile terminal can access the service network through the common APN of the operator. Typically, the frequency bands associated with the general network are those that the mobile terminal hardware itself can support and are stored locally to the mobile terminal by default.
For another example, when the mobile terminal performs network access through a private network, the mobile terminal may register with the mobile network in a designated frequency band and access the service network using a designated APN. Generally, the frequency band and the APN associated with the private network are both specified by the user, for example, in addition to providing the user with a pull-down box for selecting the required network access mode on the selection interface of the network access mode, the user may also provide an input box for inputting private network parameters associated with the private network, where the private network parameters include the frequency band and the APN.
It can be understood that the network tunnel in this application refers to a complete application network formed by a mobile terminal registering to a mobile network with a certain frequency band and accessing to a service network with a certain APN. The user can preset the associated network channel for each network access mode according to the self requirement, so that the mobile terminal can find the most appropriate network channel, namely the target network channel, under the network channel associated with the currently selected network access mode.
For example, the embodiment of the present application provides three different network access modes, which are an automatic mode, a dedicated mode and a general mode. In particular, the automatic mode is associated with a general purpose network and a private network; the private mode is associated with a private network; the general mode is also associated with the general network and the private network, that is, in the automatic mode, the mobile terminal can determine a target network channel in the general network and the private network; in the special mode, the mobile terminal directly determines the special network as a target network channel; in the general mode, the mobile terminal can determine the target network channel under the general network and the special network. Although both the automatic mode and the generic mode can be targeted to network channels in both the generic network and the private network, there is still a difference between them: in the automatic mode, the priority of the private network is higher than that of the general network; in the general mode, the priority of the private network is equal to the priority of the general network. Thus, when the network access mode of the mobile terminal is the auto mode or the general mode, the target network path can be determined in the private network and the general network according to the priority of the network path.
Of course, the user can also set other network access modes according to his/her needs, which is not limited herein, for example, a general priority mode can also be set, the general priority mode is associated with the general network and the private network, and the priority of the general network is higher than that of the private network. It can be considered that different network access modes give different network access policies. Specifically, the network access policy is determined by the network channel (and the priority of the network channel) associated with the network access mode.
in the embodiment of the application, the mobile terminal determines the target network channel from the network channels associated with the current network access mode. Specifically, if the number of network channels associated with the current network access mode is 1, the uniquely associated network channel may be directly determined as the target network channel; if the number of the network channels associated with the current network access mode is greater than 1, searching and determining the target network channel can be performed according to the sequence of the priorities among different network channels from high to low.
And step 104, performing network connection based on the target network channel.
In the embodiment of the application, after the target network channel is found, network access can be performed in the target network channel, so that the mobile terminal can access the mobile network and the service network. It should be noted that, in the case that the network access mode of the mobile terminal is not changed, and the network quality of the accessed mobile network is not changed, the mobile terminal will generally always maintain access to the mobile network; under the condition that the network access mode of the mobile terminal is changed, returning to execute the step 101 and the subsequent steps to re-determine the target network channel and re-perform network access in the newly determined target network channel; and under the condition that the network quality of the mobile network accessed by the mobile terminal is deteriorated, searching whether other mobile networks can be accessed in the target network channel again.
Alternatively, when the current network access mode is the automatic mode or the general mode, considering that more than 2 network tunnels may be associated with the automatic mode and the general mode, in order to find the most suitable target network tunnel, the step of determining the target network tunnel in the private network and the general network according to the priority of the network tunnel may specifically include:
a1, determining candidate network channels in a private network and a general network according to the sequence of priorities from high to low;
and A2, if the candidate network channel meets the preset condition, determining the candidate network channel as a target network channel.
If the mobile terminal is in the automatic mode, the automatic mode is associated with both the general network and the private network, so that the private network can be determined as a candidate network channel according to the sequence of the priorities among different network channels from high to low, and network access is attempted through the candidate network channel; if the network access can not be carried out through the candidate network channel, the general network is determined as a new candidate network channel, and the network access is tried to be carried out through the new candidate network channel. That is, in the automatic mode, access to the private network may be attempted first; access to the general network is attempted only if access to the private network fails. It is considered that there is a priority order (private network priority) between the private network and the general network.
If the mobile terminal is in the common mode, although the common mode is associated with both the common network and the private network, since the priorities of the common network and the private network are equal in the common mode, one of the network channels can be determined as a candidate network channel in a random manner, and network access through the candidate network channel is attempted; if the network access can not be carried out through the candidate network channel, another network channel is determined as a new candidate network channel, and the network access is tried to be carried out through the new candidate network channel. Or, one of the network channels may be determined as a candidate network channel according to the current network condition, and network access is attempted through the candidate network channel; if the network access can not be carried out through the candidate network channel, another network channel is determined as a new candidate network channel, and the network access is tried to be carried out through the new candidate network channel. Alternatively, network access may be attempted through both the general-purpose network and the private network. That is, in the general mode, the mobile terminal can access a private network or a general network. It is considered that there is no priority between the private network and the general network.
In some embodiments, in the case that the candidate network channel is a private network, the preset condition may be a quality condition. Considering that the private network has its own specific frequency range, the frequency band associated with the private network may be acquired first; then detecting whether the frequency band has an accessible mobile network; if the frequency band has an accessible mobile network, detecting whether the network quality of the mobile network meets a quality condition; if the network quality of the mobile network meets the quality condition, acquiring an APN associated with a private network; then detecting whether the APN can be accessed to a service network; the private network is determined as the target network tunnel only if the service network is accessible through the APN. It is noted that the frequency bands associated with the private network and the APNs associated with the private network are typically specified by the user. That is, for a private network, on one hand, it is required to detect whether there is a mobile network whose network quality satisfies a quality condition based on a frequency band specified by a user; on the other hand, it is also necessary to detect whether a service network is accessible based on the APN specified by the user. Private networks are not available for several situations: there is no accessible mobile network in the frequency band associated with the private network (i.e., the user-specified frequency band); or, an accessible mobile network exists in the frequency band associated with the private network, but the network quality of the mobile network does not meet the quality condition; alternatively, APNs associated with private networks (i.e., user-specified APNs) may not be accessible to the services network. It can be seen that the private network can be determined as the target network channel only when there is an accessible mobile network in the frequency band associated with the private network, and the network quality of the mobile network meets the quality requirement and can be accessed to the service network through the APN associated with the private network.
In particular, the network quality of the mobile network may be determined by the signal strength of the mobile network. Generally speaking, the greater the signal strength of a mobile network indicates the better the network quality of the mobile network; therefore, in the embodiment of the present application, a signal threshold may be preset, and as long as the signal strength of the mobile network is greater than the signal threshold, it may be determined that the network quality of the mobile network meets the quality condition, so as to ensure the network quality of the mobile network accessed subsequently when performing network access based on the private network.
Specifically, the determination of whether the service network is accessible through the access point may be made by a Domain Name System (DNS) query and/or an attempt to connect with a preset server. In the embodiment of the application, in order to ensure that the service network is actually available, it is determined that the mobile terminal can access the service network through the APN associated with the private network only when the DNS query result indicates success and the connection result with the preset server indicates success.
Optionally, in a case that the target network channel is a private network, if it is found by detection that there are more than two mobile networks meeting the quality condition in the frequency band associated with the private network, for the more than two mobile networks meeting the quality condition, the mobile terminal may further rank, based on the radio access system, the signal strength, and/or the tariff condition of the mobile networks, the more than two mobile networks meeting the quality condition, and determine, based on the ranking order, which mobile network the mobile terminal is to access to finally.
Optionally, in a case that the target network channel is a private network, after step 104, the network access method provided in this embodiment of the present application further includes:
locking the frequency band used by the mobile terminal as the frequency band where the mobile network accessed currently is located;
and locking the APN used by the mobile terminal as the APN used by the currently accessed service network.
When the determined target network channel is a private network, the mobile terminal can access to the mobile network through the frequency band specified by the user and access to the service network through the APN specified by the user. Based on this, after the network is successfully accessed through the private network, the network setting of the mobile terminal may be locked, specifically, the frequency band used by the mobile terminal is locked as the frequency band where the currently accessed mobile network is located (that is, the frequency band specified by the user), and the APN used by the mobile terminal is locked as the APN used by the currently accessed service network (that is, the APN specified by the user), so that the mobile terminal can continuously use the private network parameters (including the frequency band and the APN) specified by the user for network access, thereby reducing the load of the public network and realizing load balancing.
Referring to fig. 3, fig. 3 shows a possible application scenario when the network access method proposed in the embodiment of the present application is applied, which is detailed as follows:
the user can select the network access mode to be adopted by the mobile terminal from the network access mode selection page displayed by the mobile terminal, and when the user does not select the network access mode, the mobile terminal defaults to be the automatic mode. Meanwhile, the user can also input private network parameters (i.e. input frequency band and APN) of the private network in the selection page. If the user selects the special mode on the selection interface of the network access mode but does not input any private network parameter, a reminding message can be output to remind the user that the network access mode can be selected as the private network after the private network parameter needs to be input.
If the network access mode adopted by the mobile terminal is the automatic mode, the mobile terminal can perform network access in the private network and the general network because the automatic mode is associated with two network channels of the private network and the general network. In the automatic mode, the network access policy adopted by the method is as follows: considering that the priority of the private network is higher in the automatic mode, the mobile terminal will try to access the private network preferentially, and the flow specifically includes: the mobile terminal tries to access the network through the pre-configured private network parameters (such as a designated frequency band and a designated APN) of the private network, and when the mobile network with network quality meeting quality conditions exists in the designated frequency band and can access the service network through the designated APN, the mobile terminal is determined to be successfully accessed to the network based on the private network parameters, and at the moment, the mobile terminal realizes network access operation based on the private network; on the contrary, if the network cannot be successfully accessed in the private network (including the situation that no mobile network exists in the specified frequency band, the situation that the mobile network exists in the specified frequency band but the network quality of the mobile network does not meet the quality condition, and the situation that the mobile terminal cannot be accessed to the service network based on the specified APN), the mobile terminal can continuously attempt to access to the general network; that is, in the automatic mode, there is a priority order of access between the general network and the private network (private network priority).
If the network access mode adopted by the mobile terminal is the dedicated mode, the dedicated mode is only associated with a network channel of the dedicated network, and therefore, the mobile terminal only performs network access in the dedicated network. In the dedicated mode, the network access policy adopted by the method is as follows: considering that the automatic mode is only associated with the private network, the mobile terminal tries to access the network through private network parameters (such as a designated frequency band and a designated APN) of the private network configured in advance, and when a mobile network with network quality meeting quality conditions exists in the designated frequency band and can access a service network through the designated APN, the mobile terminal is determined to be successful in accessing the network based on the private network parameters, and at the moment, the mobile terminal realizes network access operation based on the private network; otherwise, if the network cannot be successfully accessed in the private network (including the situation that no mobile network exists in the designated frequency band, the situation that the mobile network exists in the designated frequency band but the network quality of the mobile network does not meet the quality condition, and the situation that the mobile network cannot be accessed to the service network based on the designated APN), outputting a reminding message to remind the user that the current network access fails.
If the network access mode adopted by the mobile terminal is the universal mode, the universal mode is associated with two network channels, namely the private network and the universal network, so that the mobile terminal can perform network access in the private network and the universal network. In the general mode, the network access policy adopted by the method is as follows: considering that the priorities of the general network and the special network are the same in the general mode, the mobile terminal can follow the normal network access flow and try to access the general network or try to access the special network according to the current network condition; that is, in the general mode, there is no priority of access between the general network and the private network. Specifically, the procedure of attempting to access to the private network is given in the foregoing, and will not be described herein.
As can be seen from the above, in the embodiment of the present application, the mobile terminal is preset with a plurality of different network access modes, and the network channels (and the priorities of the network channels) associated with the different network access modes are different; by the user selecting the network access mode of the mobile terminal, the mobile terminal can intelligently select the most appropriate network channel to perform network access in the selected network access mode, and the flexibility of network access of the mobile terminal is greatly improved.
Example two
A second embodiment of the present application provides a network access apparatus, which may be integrated in a mobile terminal, as shown in fig. 4, a network access apparatus 400 in the embodiment of the present application includes:
an obtaining unit 401, configured to obtain a network access mode in which the mobile terminal is currently located;
an association determining unit 402, configured to determine at least one network channel associated with the network access mode;
a target determining unit 404, configured to determine a target network channel among the at least one network channel;
an accessing unit 404, configured to perform network access based on the target network channel.
Optionally, the association determining unit 402 includes:
a first association determining subunit, configured to determine, if the network access mode is an automatic mode, that a network channel associated with the network access mode is a general network and a private network, and a priority of the private network is higher than a priority of the general network;
a second association determining subunit, configured to determine, if the network access mode is a dedicated mode, that a network channel associated with the network access mode is a dedicated network;
a third association determining subunit, configured to determine, if the network access mode is a general mode, that network channels associated with the network access mode are a general network and a private network, and a priority of the private network is equal to a priority of the general network;
accordingly, the target determining unit 404 includes:
a first target determination subunit, configured to determine a target network channel in the private network and the general network according to a priority of the network channel if the network access mode is an automatic mode or a general mode;
and the second target determination subunit is used for determining the private network as a target network channel if the network access mode is the private mode.
Optionally, the target determining unit 404 includes:
the candidate network channel determining subunit is used for determining candidate network channels in the special network and the general network according to the sequence of the priority levels from high to low;
and the target network channel determining subunit is used for determining the candidate network channel as the target network channel if the candidate network channel meets the preset condition.
Optionally, the preset condition includes a quality condition, and the target network channel determining subunit includes:
a frequency band obtaining subunit, configured to obtain a frequency band associated with a private network if the candidate network channel is the private network;
a mobile network detection subunit, configured to detect whether an accessible mobile network exists in the frequency band;
a quality detection subunit, configured to detect whether a network quality of the mobile network meets the quality condition if an accessible mobile network exists in the frequency band;
an access point acquiring subunit, configured to acquire an access point associated with a private network if the network quality of the mobile network satisfies the quality condition;
a service network detection subunit, configured to detect whether a service network is accessible through the access point;
and the channel determining subunit is used for determining the private network as a target network channel if the service network can be accessed.
Optionally, the quality detecting subunit includes:
a quality information acquiring subunit, configured to acquire a signal strength of the mobile network;
a quality result determining subunit, configured to determine that the network quality meets the quality condition if the signal strength is greater than a preset signal threshold; if the signal strength is not greater than the signal threshold, determining that the network quality does not satisfy the quality condition;
optionally, the service network detecting subunit includes:
a result obtaining subunit, configured to obtain, based on the access point, a domain name system protocol DNS query result and a connection result with a preset server;
a service network access result determining subunit, configured to determine that the service network can be accessed if the DNS query result indicates success and the connection result indicates success; and if the DNS query result indicates failure and/or the connection result indicates failure, determining that the service network cannot be accessed.
Optionally, if the target network channel is a private network, the network access apparatus 400 further includes:
a frequency band locking unit, configured to lock a frequency band used by the mobile terminal to a frequency band in which a currently accessed mobile network is located;
and an access point locking unit, configured to lock the access point used by the mobile terminal as the access point used by the currently accessed service network.
As can be seen from the above, in the embodiment of the present application, the mobile terminal is preset with a plurality of different network access modes, and the network channels (and the priorities of the network channels) associated with the different network access modes are different; by the user selecting the network access mode of the mobile terminal, the mobile terminal can intelligently select the most appropriate network channel to perform network access in the selected network access mode, and the flexibility of network access of the mobile terminal is greatly improved.
EXAMPLE III
Referring to fig. 5, a mobile terminal 5 in the embodiment of the present application includes: a memory 501, one or more processors 502 (only one shown in fig. 5), and a computer program stored on the memory 501 and executable on the processors. Wherein: the memory 501 is used for storing software programs and modules, and the processor 502 executes various functional applications and data processing by running the software programs and units stored in the memory 501, so as to acquire resources corresponding to the preset events. Specifically, the processor 502 realizes the following steps by running the above-mentioned computer program stored in the memory 501:
acquiring a network access mode in which the mobile terminal is currently positioned;
determining at least one network channel associated with the network access mode;
searching a target network channel in the at least one network channel;
and performing network access based on the target network channel.
Assuming that the foregoing is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the determining at least one network path associated with the network access mode includes:
if the network access mode is an automatic mode, determining that the network channel associated with the network access mode is a general network and a special network, and the priority of the special network is higher than that of the general network;
if the network access mode is a special mode, determining that a network channel associated with the network access mode is a special network;
if the network access mode is a general mode, determining that the network channel associated with the network access mode is a general network and a special network, and the priority of the special network is equal to that of the general network;
accordingly, the determining the target network channel in the at least one network channel includes:
if the network access mode is an automatic mode or a general mode, determining a target network channel in the special network and the general network according to the priority of the network channel;
and if the network access mode is the special mode, determining the special network as a target network channel.
In a third possible implementation manner provided on the basis of the second possible implementation manner, the determining a target network path in the private network and the general network according to the priority of the network path includes:
determining candidate network channels in the private network and the general network according to the sequence of the priority levels from high to low;
and if the candidate network channel meets the preset condition, determining the candidate network channel as a target network channel.
In a fourth possible implementation manner based on the third possible implementation manner, the determining, if the candidate network channel satisfies a preset condition, the preset condition includes:
if the candidate network channel is a private network, acquiring a frequency band associated with the private network;
detecting whether the frequency band has an accessible mobile network;
if the frequency band has an accessible mobile network, detecting whether the network quality of the mobile network meets the quality condition;
if the network quality of the mobile network meets the quality condition, acquiring an access point associated with a private network;
detecting whether the access point can be accessed to a service network or not;
and if the service network can be accessed, determining the private network as a target network channel.
In a fifth possible implementation based on the fourth possible implementation, the detecting whether the network quality of the mobile network satisfies the quality condition includes:
acquiring the signal intensity of the mobile network;
if the signal strength is greater than a preset signal threshold, determining that the network quality meets the quality condition;
if the signal strength is not greater than the signal threshold, determining that the network quality does not satisfy the quality condition.
In a sixth possible implementation manner provided on the basis of the fourth possible implementation manner, the detecting whether the service network associated with the access point is accessible includes:
acquiring a domain name system protocol (DNS) query result and a connection result with a preset server based on the access point;
if the DNS query result indicates success and the connection result indicates success, determining that the service network can be accessed;
and if the DNS query result indicates failure and/or the connection result indicates failure, determining that the service network cannot be accessed.
In a seventh possible implementation manner based on the first possible implementation manner, the second possible implementation manner, the third possible implementation manner, the fourth possible implementation manner, the fifth possible implementation manner, or the sixth possible implementation manner, if the target network channel is a private network, the processor 502 further implements the following steps when running the computer program stored in the memory 501 after the network access is performed based on the target network channel:
locking the frequency band used by the mobile terminal as the frequency band of the currently accessed mobile network;
and locking the access point used by the mobile terminal as the access point used by the currently accessed service network.
It should be understood that, in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
As can be seen from the above, in the embodiment of the present application, the mobile terminal is preset with a plurality of different network access modes, and the network channels (and the priorities of the network channels) associated with the different network access modes are different; by the user independently selecting the network access mode of the mobile terminal, the mobile terminal can intelligently select the most appropriate network channel to perform network access in the selected network access mode, and the flexibility of network access of the mobile terminal is greatly improved.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of external device software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the above-described modules or units is only one logical functional division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by the present application, and the computer program can also be executed by associated hardware, and the computer program can be stored in a computer readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments described above can be realized. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable storage medium may include: any entity or device capable of carrying the above-described computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer readable Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier signal, telecommunications signal, software distribution medium, and the like. It should be noted that the computer readable storage medium may contain other contents which can be appropriately increased or decreased according to the requirements of the legislation and the patent practice in the jurisdiction, for example, in some jurisdictions, the computer readable storage medium does not include an electrical carrier signal and a telecommunication signal according to the legislation and the patent practice.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present application, and they should be construed as being included in the present application.
Claims (9)
1. A network access method is applied to a mobile terminal and comprises the following steps:
acquiring a network access mode in which the mobile terminal is currently located; wherein, the network access mode comprises an automatic mode, a special mode and a general mode;
determining at least one network channel associated with the network access mode;
determining a target network channel among the at least one network channel;
performing network access based on the target network channel;
the acquiring of the network access mode in which the mobile terminal is currently located includes:
acquiring the current moment;
determining the time period of the current time according to a preset time period-network access mode association table;
searching a network access mode corresponding to the time period of the current moment in the time period-network access mode association table to be used as the network access mode of the mobile terminal at the current moment;
wherein the determining at least one network channel associated with the network access mode comprises:
if the network access mode is the automatic mode, determining that the network channel associated with the network access mode is a general network and a special network, and the priority of the special network is higher than that of the general network;
if the network access mode is a special mode, determining that a network channel associated with the network access mode is a special network;
if the network access mode is a general mode, determining that the network channel associated with the network access mode is a general network and a special network, and the priority of the special network is equal to that of the general network;
accordingly, the determining a target network channel among the at least one network channel comprises:
if the network access mode is an automatic mode or a general mode, determining a target network channel in the special network and the general network according to the priority of the network channel;
and if the network access mode is the special mode, determining the special network as a target network channel.
2. The network access method of claim 1, wherein the determining the target network path in the private network and the general network according to the priority of the network path comprises:
determining candidate network channels in the private network and the general network according to the sequence of the priority levels from high to low;
and if the candidate network channel meets the preset condition, determining the candidate network channel as a target network channel.
3. The network access method of claim 2, wherein the predetermined condition comprises a quality condition, and the determining the candidate network channel as the target network channel if the candidate network channel satisfies the predetermined condition comprises:
if the candidate network channel is a private network, acquiring a frequency band associated with the private network;
detecting whether an accessible mobile network exists in the frequency band;
if the frequency band has an accessible mobile network, detecting whether the network quality of the mobile network meets the quality condition;
if the network quality of the mobile network meets the quality condition, acquiring an access point associated with a private network;
detecting whether a service network can be accessed through the access point;
and if the service network can be accessed, determining the private network as a target network channel.
4. The network access method of claim 3, wherein the detecting whether the network quality of the mobile network satisfies the quality condition comprises:
acquiring the signal strength of the mobile network;
if the signal strength is greater than a preset signal threshold, determining that the network quality meets the quality condition;
if the signal strength is not greater than the signal threshold, determining that the network quality does not satisfy the quality condition.
5. The network access method of claim 3, wherein the detecting whether a service network is accessible through the access point comprises:
acquiring a domain name system protocol (DNS) query result and a connection result with a preset server based on the access point;
if the DNS query result indicates success and the connection result indicates success, determining that the service network can be accessed;
and if the DNS query result indicates failure and/or the connection result indicates failure, determining that the service network cannot be accessed.
6. The network access method according to any of claims 1 to 5, wherein if the target network tunnel is a private network, after the network access based on the target network tunnel, the network access method further comprises:
locking the frequency band used by the mobile terminal as the frequency band of the currently accessed mobile network;
and locking the access point used by the mobile terminal as the access point used by the currently accessed service network.
7. A network access apparatus, applied to a mobile terminal, comprising:
an obtaining unit, configured to obtain a network access mode in which the mobile terminal is currently located; the network access mode comprises an automatic mode, a special mode and a general mode; the obtaining of the network access mode in which the mobile terminal is currently located includes: acquiring the current moment; determining the time period of the current time according to a preset time period-network access mode association table; searching a network access mode corresponding to the time period of the current moment in the time period-network access mode association table as the network access mode of the mobile terminal;
an association determining unit for determining at least one network channel associated with the network access mode;
a target determination unit, configured to determine a target network channel among the at least one network channel;
the access unit is used for carrying out network access based on the target network channel;
wherein the association determining unit includes:
a first association determining subunit, configured to determine, if the network access mode is an automatic mode, that a network channel associated with the network access mode is a general network and a private network, and a priority of the private network is higher than a priority of the general network;
a second association determining subunit, configured to determine, if the network access mode is a dedicated mode, that a network channel associated with the network access mode is a dedicated network;
a third association determining subunit, configured to determine, if the network access mode is a general mode, that network channels associated with the network access mode are a general network and a private network, and a priority of the private network is equal to a priority of the general network;
accordingly, the object determination unit comprises:
a first target determination subunit, configured to determine a target network channel in the private network and the general network according to a priority of the network channel if the network access mode is an automatic mode or a general mode;
and the second target determination subunit is used for determining the private network as a target network channel if the network access mode is the private mode.
8. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010398650.1A CN113055982B (en) | 2020-05-12 | 2020-05-12 | Network access method, network access device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010398650.1A CN113055982B (en) | 2020-05-12 | 2020-05-12 | Network access method, network access device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113055982A CN113055982A (en) | 2021-06-29 |
CN113055982B true CN113055982B (en) | 2022-11-25 |
Family
ID=76507564
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010398650.1A Active CN113055982B (en) | 2020-05-12 | 2020-05-12 | Network access method, network access device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113055982B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114025412B (en) * | 2021-11-03 | 2024-03-26 | 中国联合网络通信集团有限公司 | Service access method, system, device and storage medium |
CN114374749A (en) * | 2021-12-29 | 2022-04-19 | 中国电信股份有限公司 | Network access method and device |
CN114726794B (en) * | 2022-04-14 | 2024-06-04 | 深圳市优克联新技术有限公司 | Method, device and equipment for providing network channel and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105282809A (en) * | 2015-11-17 | 2016-01-27 | 小米科技有限责任公司 | Network model switching method and apparatus, and terminal equipment |
CN105357724A (en) * | 2015-10-30 | 2016-02-24 | 维沃移动通信有限公司 | Network selection method and mobile terminal |
CN105916117A (en) * | 2016-07-06 | 2016-08-31 | 广东欧珀移动通信有限公司 | Network control method, network control device and mobile terminal |
CN107889178A (en) * | 2017-12-08 | 2018-04-06 | 囯网河北省电力有限公司电力科学研究院 | Acquisition terminal network formats switching method and terminal device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8929341B2 (en) * | 2013-04-06 | 2015-01-06 | Meru Networks | Access point for surveillance of anomalous devices |
CN104918300B (en) * | 2014-03-12 | 2019-06-25 | 马维尔国际贸易有限公司 | Device and method for mobile communication |
-
2020
- 2020-05-12 CN CN202010398650.1A patent/CN113055982B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105357724A (en) * | 2015-10-30 | 2016-02-24 | 维沃移动通信有限公司 | Network selection method and mobile terminal |
CN105282809A (en) * | 2015-11-17 | 2016-01-27 | 小米科技有限责任公司 | Network model switching method and apparatus, and terminal equipment |
CN105916117A (en) * | 2016-07-06 | 2016-08-31 | 广东欧珀移动通信有限公司 | Network control method, network control device and mobile terminal |
CN107889178A (en) * | 2017-12-08 | 2018-04-06 | 囯网河北省电力有限公司电力科学研究院 | Acquisition terminal network formats switching method and terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN113055982A (en) | 2021-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11856507B2 (en) | Network search and configuring method, registration method, device and system | |
CN113055982B (en) | Network access method, network access device and mobile terminal | |
US11388600B2 (en) | Method and electronic device for automatically switching among plurality of profiles in ESIM | |
US11412434B2 (en) | Cell selection method and terminal | |
JP2012514439A (en) | Method and apparatus for signal scanning and signal acquisition for multiple radio interface devices | |
US11805397B2 (en) | IMEI binding and dynamic IMEI provisioning for wireless devices | |
US9686670B2 (en) | Electronic device with frequency band scanning order | |
US20220322088A1 (en) | Network roaming method, terminal device, and computer readable storage medium | |
JP2018522482A (en) | Reduction of call failure rate in multi-subscriber module compatible devices | |
US20220286835A1 (en) | Method and device for preparing emergency call and storage medium | |
US10264137B2 (en) | Method and system to control expense and usage of subscriptions in a mobile device | |
WO2018170697A1 (en) | Network access method and device | |
US20230052844A1 (en) | Device imei/imeisv/tac screening and steering while roaming in wireless networks | |
US9883051B2 (en) | Method and system for usage of manual PLMN selection mode | |
US20230284121A1 (en) | Method, device and computer program product for wireless communication | |
CN113055961A (en) | Wireless network connection method, device, router and storage medium | |
US10911933B1 (en) | Steering of roaming based on device type in wireless networks | |
US20150113595A1 (en) | Network access method and terminal | |
CN114827898B (en) | Internet surfing configuration method, device, equipment and medium | |
EP4114055B1 (en) | Information obtaining method and apparatus, electronic device, and computer readable storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |