CN109862603A - APN adaptive approach, mobile terminal and readable storage medium storing program for executing - Google Patents
APN adaptive approach, mobile terminal and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109862603A CN109862603A CN201910245440.6A CN201910245440A CN109862603A CN 109862603 A CN109862603 A CN 109862603A CN 201910245440 A CN201910245440 A CN 201910245440A CN 109862603 A CN109862603 A CN 109862603A
- Authority
- CN
- China
- Prior art keywords
- apn
- parameter
- new
- mobile terminal
- user
- 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
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of APN adaptive approach, mobile terminal and readable storage medium storing program for executing, which comprises the modem of mobile terminal sends connection request to network side according to preset APN parameter;Receive the activation EPS bearer context solicited message that the lateral mobile terminal of network is sent;Judge whether carry ESM_CAUSE parameter in the activation EPS bearer context solicited message;If carrying ESM_CAUSE parameter in the request message of the activation EPS bearer context, increase an APN information, and improves the priority of newly-increased APN information.The present invention is increased the APN of new type automatically and improves the priority of new APN, make to be connected to the network again with new APN when connection error occurs for preset APN, until successful connection, promotes the success rate and user experience of access network.
Description
Technical field
The present invention relates to technical field of mobile terminals more particularly to a kind of APN adaptive approach, mobile terminal and readable deposit
Storage media.
Background technique
APN (Access Point Name) refers to a kind of network access technique, is must configure when passing through surfing Internet with cell phone one
A parameter, which kind of access way it determines mobile phone by access network.For mobile phone user, accessible outside
Network type has very much, such as: Internet, WAP site, conglomerate's internal network, industry internal private network.And it is different
The mode of range and access that can access of access point be different, network side will access after how knowing mobile phone activation
Which network is to distribute the IP of which network segment, this will be distinguished by APN, i.e. APN determines that the mobile phone of user passes through
Which kind of access way accesses which type of network.Parameter in APN has APN network identity, MCC, MNC, protocol type etc..
Currently, if, dialing failure, user often can not be true during wireless terminal is with preset APN parameter dial-up connection
Surely the reason of failing have to reattempt to dialing or directly exit dialing, this leads to not the application for preferably supporting user.
Summary of the invention
It is a primary object of the present invention to propose a kind of APN adaptive approach, mobile terminal and readable storage medium storing program for executing, it is intended to
A kind of having higher success rate and user experience superior technique means for access network is provided.
To achieve the above object, the present invention provides a kind of APN adaptive approach, is applied to mobile terminal, including following step
It is rapid:
The modem of mobile terminal sends connection request to network side according to preset APN parameter;
Receive the activation EPS bearer context solicited message that the lateral mobile terminal of network is sent;
Judge whether carry ESM_CAUSE parameter in the activation EPS bearer context solicited message;
If carrying ESM_CAUSE parameter in the request message of the activation EPS bearer context, increase by one
APN information, and improve the priority of newly-increased APN information.
Further, if carrying ESM_ in the request message of the method activation EPS bearer context
CAUSE parameter then increases an APN information, and the priority for improving newly-increased APN information further comprises:
If carrying ESM_CAUSE parameter in the request message of the activation EPS bearer context, increase by one
APN type is the APN of IPV4, and improves the priority of newly-increased APN information.
Further, the method also includes:
Issuing the user with current APN parameter possibly can not normally surf the Internet, if the inquiry retried using new parameter, if connect
The feedback that user is retried using new parameter is received, then modem sends again to network side according to new APN parameter and connects
Request.
Further, if carrying ESM_ in the request message of the method activation EPS bearer context
CAUSE parameter then increases an APN information, and the priority for improving newly-increased APN information further comprises:
If carrying ESM_CAUSE parameter in the request message of the activation EPS bearer context, increase by one
APN type is the APN of IPV6, and improves the priority of newly-increased APN information.
Further, the method also includes:
Issuing the user with current APN parameter possibly can not normally surf the Internet, if the inquiry retried using new parameter, if connect
The feedback that user is retried using new parameter is received, then modem sends again to network side according to new APN parameter and connects
Request.
Further, the step of the method issues the user with current APN parameter and possibly can not normally surf the Internet, if uses
The inquiry that new parameter retries, if receiving the feedback that user is retried using new parameter, modem is joined according to new APN
Number sends connection request to network side again:
Current APN parameter is issued the user in a manner of popping up pop-up possibly can not normally surf the Internet, if use new parameter
The inquiry retried, if receiving the feedback that user is retried using new parameter, modem according to new APN parameter again
Connection request is sent to network side.
Further, if carried in the request message of the step of the method activation EPS bearer context
ESM_CAUSE parameter then increases an APN information, and the priority for improving newly-increased APN information includes: later
If not carrying ESM_CAUSE parameter in the request message of the activation EPS bearer context, do not do
Processing.
Further, the method also includes steps: new APN parameter being marked and saved after being successfully accessed.
To achieve the above object, the present invention also provides a kind of mobile terminals, including memory, processor and at least one quilt
It stores in the memory and is configured as the application program executed by the processor, at least one described application program quilt
It is configured for executing APN adaptive approach described in any of the above-described claim.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer-readable storages
APN self-adapting program is stored on medium, the APN self-adapting program is realized described in any of the above embodiments when being executed by processor
The step of APN adaptive approach.
APN adaptive approach, mobile terminal and readable storage medium storing program for executing proposed by the present invention, by accessing net in mobile terminal
During network, the parameter that APN access request returns is checked, if the parameter returned shows APN access request because of certain of APN
Parameter is abnormal is refused by network, then increases new APN and reattempt to access with new APN parameter, general after being successfully accessed
New APN parameter is marked and is saved, and improves the success rate and user experience of access network.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the APN adaptive approach implementation process schematic diagram that first embodiment of the invention provides;
Fig. 4 is the APN adaptive approach implementation process schematic diagram that second embodiment of the invention provides;
Fig. 5 is the APN adaptive approach implementation process schematic diagram that third embodiment of the invention provides.
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.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code
DivisionMultiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Embodiment one
First embodiment of the invention provides a kind of APN adaptive approach, be applied to mobile terminal, as shown in figure 3, include with
Lower step:
The modem of S11, mobile terminal send connection request to network side according to preset APN parameter;
Modem (English name Modem) is commonly called as " cat ", is a kind of computer hardware, for the number computer
Signal translate into can along ordinary telephone line transmit pulse signal, and these pulse signals can by the route other end another
Modem receives, and is translated into the language that computer can be understood.
APN is used to identify in GPRS backbone network external PDN to be used.PDN (Packet data network, grouping
Data network, namely what is often called Internet.
APN is made of following two parts:
APN network identity: being that user passes through GGSN/PGW (Gateway GPRS Support Node, GPRS gateway support
Node/PDN Gateway, packet data network gateway) it may be connected to the mark of external network, which is distributed by network operator
To ISP (Internet Service Provider, Internet Service Provider) or company, it is secured to Internet domain name
It unanimously, is the essential component part of APN.
APN network operator's mark: the network belonged to for identifying GGSN/PGW is the optional component part of APN.
Preset APN parameter is carried in PDN connectivity request Msg message, including information such as APN
Title, protocol type etc..
S12 receives the activation EPS bearer context solicited message that the lateral mobile terminal of network is sent;
Network side can send Activate EPS bearer context request Msg to mobile terminal, wherein can
ESM_CAUSE parameter can be carried, can also will not carry ESM_CAUSE parameter.EPS(Evolved Packet System)
That is evolved packet system, is the 3G UMTS latest evolution standard that 3GPP standard committee formulates, and mainly includes that wireless interface is long-term
Evolution (Long Term Evolution, LTE) and system architecture evolution (System Architecture Evolution,
SAE).EPS carrying (EPS Bearer) is provided to be routed from the public IP for giving Data Network Gateway to user terminal.One EPS is held
Load is the IP stream for meeting certain service quality (Quality of Service, QoS) between packet data network gateway and UE.
S13 judges whether carry ESM_CAUSE parameter in the activation EPS bearer context solicited message;Such as
It is activated described in fruit in the request message of EPS bearer context and carries ESM_CAUSE parameter, then S14 is executed, if described
It activates in the request message of EPS bearer context and does not carry ESM_CAUSE parameter, then execute S15;
S14 increases an APN information, and improves the priority of newly-increased APN information.
Newly-increased APN information includes IPV4 or IPV6.IPV4 (the Internet Protocol version of Global Internet
4, Internet Protocol Version 4, referred to as net association version 4) address resource increasingly exhaustion, the address IPV4 will sink into without the available shape of institute
State;The network of operator must be to IPV6 (Internet Protocol Version 6, Internet Protocol Version 6, referred to as net
Assist version 6) evolution, support the wireless terminal of IPV6 also just to come into being.After IPV6 technical application, IPV4 technology can't be immediately
It is banned, there is the scene that IPV4 and IPV6 coexist whithin a period of time,
The rule of APN dialing mode: if wireless terminal configuration APN type be IPV4, if with IPV4 mode to network side
Initiate dial-up connection;If user configuration APN type be IPV6, if can determine with IPV6 mode to network side initiate dialing connect
It connects;If user configuration APN type be IPV4V6, if can determine with double APN modes to network side initiate dial-up connection.
Specifically, as a kind of optional mode: if in the request message of the activation EPS bearer context
ESM_CAUSE parameter is carried, then increases the APN that an APN type is IPV4, and improves the priority of newly-increased APN information, and to
User issues current APN parameter and possibly can not normally surf the Internet, if the inquiry retried using new parameter, if user selects weight
Examination, then click associated button, the mobile terminal feedback ready to receive retried to user using new parameter, then modem according to
New APN parameter sends connection request to network side again.It is preferred that issuing the user with current APN parameter in a manner of popping up pop-up
It possibly can not normally surf the Internet, if the inquiry retried using new parameter.New APN parameter is marked and saved after being successfully accessed
Come.
As optional another way, if carried in the request message of the activation EPS bearer context
ESM_CAUSE parameter then increases the APN that APN type is IPV6, and improves the priority of newly-increased APN information, and to user
Issuing current APN parameter possibly can not normally surf the Internet, if the inquiry retried using new parameter, if user's selection retries,
Click associated button, the mobile terminal feedback ready to receive retried to user using new parameter, then modem according to newly
APN parameter sends connection request to network side again.It may it is preferred that issuing the user with current APN parameter in a manner of popping up pop-up
It can not normally surf the Internet, if the inquiry retried using new parameter.New APN parameter is marked and saved after being successfully accessed.
Such as following table, network side is directed to the APN, error code information #50 (the PDP type IPV4 of feedback of I PV4V6 type
Onlyallowed), indicate only to allow IPV4 protocol stack, #51 (PDP type IPV6 only allowed) indicates only to allow
IPV6 protocol stack, #52 (single address bearers only allowed), expression only allow to carry single address.If
The response message of network side feedback is the activation request refuse information for carrying error code information, indicates IPV6 and IPV4 two-way link
It is all connected with failure, the reason of error code information indicates connection failure.
S15 is not processed.
The APN adaptive approach that the present embodiment is realized, by during connection of mobile terminal into network, checking that APN connects
Enter the parameter that request returns, is refused because a certain parameter of APN is abnormal by network if the parameter returned shows APN access request
Absolutely, then increase new APN and access is reattempted to new APN parameter, new APN parameter is marked and saved after being successfully accessed
Get up, improves the success rate and user experience of access network.
Embodiment two
Second embodiment of the invention provides a kind of APN adaptive approach, as shown in figure 4, it is applied to mobile terminal, including with
Lower step:
The modem of S21, mobile terminal send connection request to network side according to preset APN parameter;
Modem (English name Modem) is commonly called as " cat ", is a kind of computer hardware, for the number computer
Signal translate into can along ordinary telephone line transmit pulse signal, and these pulse signals can by the route other end another
Modem receives, and is translated into the language that computer can be understood.
APN is used to identify in GPRS backbone network external PDN to be used.PDN (Packet data network, grouping
Data network, namely what is often called Internet.
APN is made of following two parts:
APN network identity: being that user passes through GGSN/PGW (Gateway GPRS Support Node, GPRS gateway support
Node/PDN Gateway, packet data network gateway) it may be connected to the mark of external network, which is distributed by network operator
To ISP (Internet Service Provider, Internet Service Provider) or company, it is secured to Internet domain name
It unanimously, is the essential component part of APN.
APN network operator's mark: the network belonged to for identifying GGSN/PGW is the optional component part of APN.
Preset APN parameter is carried in PDN connectivity requestMsg message, including information such as APN
Title, protocol type etc..
S22 receives the activation EPS bearer context solicited message that the lateral mobile terminal of network is sent;
Network side can send Activate EPS bearer context request Msg to mobile terminal, wherein can
ESM_CAUSE parameter can be carried, can also will not carry ESM_CAUSE parameter.EPS (EvolvedPacket System) is i.e.
Evolved packet system, is the 3G UMTS latest evolution standard that 3GPP standard committee formulates, and mainly includes that wireless interface is drilled for a long time
Into (Long Term Evolution, LTE) and system architecture evolution (System Architecture Evolution, SAE).
EPS carrying (EPS Bearer) is provided to be routed from the public IP for giving Data Network Gateway to user terminal.One EPS carrying is point
Meet the IP stream of certain service quality (Quality of Service, QoS) between group Data Network Gateway and UE.
S23 judges whether carry ESM_CAUSE parameter in the activation EPS bearer context solicited message;Such as
It is activated described in fruit in the request message of EPS bearer context and carries ESM_CAUSE parameter, then executed S24, otherwise execute
S25;
S24 increases the APN that an APN type is IPV4, and improves the priority of newly-increased APN information;It issues the user with and works as
Preceding APN parameter possibly can not normally surf the Internet, if the inquiry retried using new parameter, if receiving user uses new parameter weight
The feedback of examination, then modem sends connection request to network side again according to new APN parameter.
Specifically, increasing the APN that an APN type is IPV4, other parameters are constant, annotate as " network recommendation ", raising
The priority of newly-increased APN information.It is preferred that issued the user in a manner of popping up pop-up current APN parameter possibly can not it is normal on
Net, if the inquiry retried using new parameter clicks associated button, mobile terminal is ready to receive if user's selection retries
The feedback retried to user using new parameter, then modem sends connection to network side again according to new APN parameter and asks
It asks.New APN parameter is marked and saved after being successfully accessed.
IPV4 (Internet Protocol version4, the Internet Protocol Version 4, referred to as net association of Global Internet
4) address resource is increasingly exhausted for version, and the address IPV4 will sink into without the available state of institute;The network of operator must be to IPV6
(Internet Protocol Version 6, Internet Protocol Version 6, referred to as net association version 6) evolution, supports that IPV6's is wireless
Terminal is also just come into being.After IPV6 technical application, IPV4 technology can't be banned immediately, be existed whithin a period of time
The scene that IPV4 and IPV6 coexist,
The rule of APN dialing mode: if wireless terminal configuration APN type be IPV4, if with IPV4 mode to network side
Initiate dial-up connection;If user configuration APN type be IPV6, if can determine with IPV6 mode to network side initiate dialing connect
It connects;If user configuration APN type be IPV4V6, if can determine with double APN modes to network side initiate dial-up connection.
Such as following table, network side is directed to the APN, error code information #50 (the PDP type IPV4 of feedback of I PV4V6 type
Onlyallowed), indicate only to allow IPV4 protocol stack, #51 (PDP type IPV6 only allowed) indicates only to allow
IPV6 protocol stack, #52 (single address bearers only allowed), expression only allow to carry single address.If
The response message of network side feedback is the activation request refuse information for carrying error code information, indicates IPV6 and IPV4 two-way link
It is all connected with failure, the reason of error code information indicates connection failure
S25 is not processed.
The APN adaptive approach that the present embodiment is realized, by during connection of mobile terminal into network, checking that APN connects
Enter the parameter that request returns, is refused because a certain parameter of APN is abnormal by network if the parameter returned shows APN access request
Absolutely, then the APN that N type is IPV4, other parameters are constant, annotate the priority that newly-increased APN information is improved for " network recommendation ",
And access is reattempted to new APN parameter, new APN parameter is marked and saved after being successfully accessed, improves access net
The success rate and user experience of network.
Embodiment three
Third embodiment of the invention provides a kind of APN adaptive approach, be applied to mobile terminal, as shown in figure 5, include with
Lower step:
The modem of S31, mobile terminal send connection request to network side according to preset APN parameter;
Modem (English name Modem) is commonly called as " cat ", is a kind of computer hardware, for the number computer
Signal translate into can along ordinary telephone line transmit pulse signal, and these pulse signals can by the route other end another
Modem receives, and is translated into the language that computer can be understood.
APN is used to identify in GPRS backbone network external PDN to be used.PDN (Packet data network, grouping
Data network, namely what is often called Internet.
APN is made of following two parts:
APN network identity: being that user passes through GGSN/PGW (Gateway GPRS Support Node, GPRS gateway support
Node/PDN Gateway, packet data network gateway) it may be connected to the mark of external network, which is distributed by network operator
To ISP (Internet Service Provider, Internet Service Provider) or company, it is secured to Internet domain name
It unanimously, is the essential component part of APN.
APN network operator's mark: the network belonged to for identifying GGSN/PGW is the optional component part of APN.
Preset APN parameter is carried in PDN connectivity requestMsg message, including information such as APN
Title, protocol type etc..
S32 receives the activation EPS bearer context solicited message that the lateral mobile terminal of network is sent;
Network side can send Activate EPS bearer context request Msg to mobile terminal, wherein can
ESM_CAUSE parameter can be carried, can also will not carry ESM_CAUSE parameter.EPS(Evolved Packet System)
That is evolved packet system, is the 3G UMTS latest evolution standard that 3GPP standard committee formulates, and mainly includes that wireless interface is long-term
Evolution (Long Term Evolution, LTE) and system architecture evolution (System Architecture Evolution,
SAE).EPS carrying (EPS Bearer) is provided to be routed from the public IP for giving Data Network Gateway to user terminal.One EPS is held
Load is the IP stream for meeting certain service quality (Quality of Service, QoS) between packet data network gateway and UE.
S33 judges whether carry ESM_CAUSE parameter in the activation EPS bearer context solicited message;Such as
It is activated described in fruit in the request message of EPS bearer context and carries ESM_CAUSE parameter, then follow the steps S34, otherwise
Execute step S35;
S34 increases the APN that an APN type is IPV6, and improves the priority of newly-increased APN information;It issues the user with and works as
Preceding APN parameter possibly can not normally surf the Internet, if the inquiry retried using new parameter, if receiving user uses new parameter weight
The feedback of examination, then modem sends connection request to network side again according to new APN parameter.
Specifically, increasing the APN that an APN type is IPV6, other parameters are constant, annotate as " network recommendation ", raising
The priority of newly-increased APN information.It is preferred that issued the user in a manner of popping up pop-up current APN parameter possibly can not it is normal on
Net, if the inquiry retried using new parameter clicks associated button, mobile terminal is ready to receive if user's selection retries
The feedback retried to user using new parameter, then modem sends connection to network side again according to new APN parameter and asks
It asks.New APN parameter is marked and saved after being successfully accessed.
IPV4 (Internet Protocol version4, the Internet Protocol Version 4, referred to as net association of Global Internet
4) address resource is increasingly exhausted for version, and the address IPV4 will sink into without the available state of institute;The network of operator must be to IPV6
(Internet Protocol Version 6, Internet Protocol Version 6, referred to as net association version 6) evolution, supports that IPV6's is wireless
Terminal is also just come into being.After IPV6 technical application, IPV4 technology can't be banned immediately, be existed whithin a period of time
The scene that IPV4 and IPV6 coexist,
The rule of APN dialing mode: if wireless terminal configuration APN type be IPV4, if with IPV4 mode to network side
Initiate dial-up connection;If user configuration APN type be IPV6, if can determine with IPV6 mode to network side initiate dialing connect
It connects;If user configuration APN type be IPV4V6, if can determine with double APN modes to network side initiate dial-up connection.
Such as following table, network side is directed to the APN, error code information #50 (the PDP type IPV4 of feedback of I PV4V6 type
Onlyallowed), indicate only to allow IPV4 protocol stack, #51 (PDP type IPV6 only allowed) indicates only to allow
IPV6 protocol stack, #52 (single address bearers only allowed), expression only allow to carry single address.If
The response message of network side feedback is the activation request refuse information for carrying error code information, indicates IPV6 and IPV4 two-way link
It is all connected with failure, the reason of error code information indicates connection failure.
S35 is not processed.
The APN adaptive approach that the present embodiment is realized, by during connection of mobile terminal into network, checking that APN connects
Enter the parameter that request returns, is refused because a certain parameter of APN is abnormal by network if the parameter returned shows APN access request
Absolutely, then the APN that N type is IPV6, other parameters are constant, annotate the priority that newly-increased APN information is improved for " network recommendation ",
And access is reattempted to new APN parameter, new APN parameter is marked and saved after being successfully accessed, improves access net
The success rate and user experience of network.
Example IV
Fourth embodiment of the invention provides a kind of mobile terminal, as shown in Figure 1, including memory 109,110 and of processor
At least one is stored in the memory 109 and is configured as the application program executed by the processor 110, it is described extremely
It is adaptive that a few application program is configurable for executing the APN of embodiment one, embodiment two, embodiment three described in any one
Induction method.
Embodiment five
Fifth embodiment of the invention also provides a kind of computer readable storage medium, on the computer readable storage medium
It is stored with APN self-adapting program, embodiment one is realized when the APN self-adapting program is executed by processor, embodiment two, is implemented
The step of APN adaptive approach of the example three described in any one.
It should be noted that, in this document, term "comprising", " comprising " or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device 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 device 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 device.
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 a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of APN adaptive approach is applied to mobile terminal, comprising the following steps:
The modem of mobile terminal sends connection request to network side according to preset APN parameter;
Receive the activation EPS bearer context solicited message that the lateral mobile terminal of network is sent;
Judge whether carry ESM_CAUSE parameter in the activation EPS bearer context solicited message;
If carrying ESM_CAUSE parameter in the request message of the activation EPS bearer context, increase an APN
Information, and improve the priority of newly-increased APN information.
2. APN adaptive approach according to claim 1, it is characterised in that: if the method activation EPS
ESM_CAUSE parameter is carried in the request message of bearer context, then increases an APN information, and improves newly-increased APN letter
The priority of breath further comprises:
If carrying ESM_CAUSE parameter in the request message of the activation EPS bearer context, increase an APN
Type is the APN of IPV4, and improves the priority of newly-increased APN information.
3. APN adaptive approach according to claim 2, it is characterised in that: the method also includes:
Issuing the user with current APN parameter possibly can not normally surf the Internet, if the inquiry retried using new parameter, if received
The feedback that user is retried using new parameter, then modem sends connection request to network side again according to new APN parameter.
4. APN adaptive approach according to claim 1, it is characterised in that: if the method activation EPS
ESM_CAUSE parameter is carried in the request message of bearer context, then increases an APN information, and improves newly-increased APN letter
The priority of breath further comprises:
If carrying ESM_CAUSE parameter in the request message of the activation EPS bearer context, increase an APN
Type is the APN of IPV6, and improves the priority of newly-increased APN information.
5. APN adaptive approach according to claim 4, it is characterised in that: the method also includes:
Issuing the user with current APN parameter possibly can not normally surf the Internet, if the inquiry retried using new parameter, if received
The feedback that user is retried using new parameter, then modem sends connection request to network side again according to new APN parameter.
6. the APN adaptive approach according to claim 3 or 5, it is characterised in that: the step of the method issues the user with
Current APN parameter possibly can not normally surf the Internet, if the inquiry retried using new parameter, if receiving user uses new parameter
The feedback retried, then modem according to new APN parameter again to network side send connection request further comprise:
Current APN parameter is issued the user in a manner of popping up pop-up possibly can not normally surf the Internet, if be retried using new parameter
Inquiry, if receiving the feedback that user is retried using new parameter, modem is according to new APN parameter again to net
Network side sends connection request.
7. APN adaptive approach according to claim 1, which is characterized in that if the activation of the step of the method
ESM_CAUSE parameter is carried in the request message of EPS bearer context, then increases an APN information, and is improved newly-increased
Include: after the priority of APN information
If not carrying ESM_CAUSE parameter in the request message of the activation EPS bearer context, it is not processed.
8. the APN adaptive approach according to claim 3 or 5, which is characterized in that the method also includes steps: success
New APN parameter is marked and saved after access.
9. a kind of mobile terminal, including memory, processor and at least one be stored in the memory and be configured as
The application program executed by the processor, which is characterized in that at least one described application program is configurable for right of execution
Benefit requires APN adaptive approach described in any one of 1 to 8 claim.
10. a kind of computer readable storage medium, which is characterized in that be stored with APN on the computer readable storage medium certainly
Program is adapted to, is realized when the APN self-adapting program is executed by processor such as APN described in any item of the claim 1 to 8 certainly
The step of adaptive method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910245440.6A CN109862603A (en) | 2019-03-28 | 2019-03-28 | APN adaptive approach, mobile terminal and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910245440.6A CN109862603A (en) | 2019-03-28 | 2019-03-28 | APN adaptive approach, mobile terminal and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109862603A true CN109862603A (en) | 2019-06-07 |
Family
ID=66902336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910245440.6A Pending CN109862603A (en) | 2019-03-28 | 2019-03-28 | APN adaptive approach, mobile terminal and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109862603A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112074001A (en) * | 2020-08-27 | 2020-12-11 | 展讯半导体(成都)有限公司 | Network access method and communication device |
CN112423287A (en) * | 2020-10-27 | 2021-02-26 | 深圳市广和通无线股份有限公司 | Control method and device for registration network, computer equipment and storage medium |
CN113382458A (en) * | 2021-06-28 | 2021-09-10 | 西安广和通无线通信有限公司 | Equipment network-resident dialing method, computer equipment and storage medium |
CN113938988A (en) * | 2021-09-30 | 2022-01-14 | 东莞华贝电子科技有限公司 | Public data network PDN connection method, terminal and storage medium |
CN114268929A (en) * | 2021-12-21 | 2022-04-01 | 展讯通信(天津)有限公司 | Service activation method and related equipment |
CN115243363A (en) * | 2022-07-26 | 2022-10-25 | 西安广和通无线软件有限公司 | Network registration method, related device, equipment and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101790158A (en) * | 2009-01-23 | 2010-07-28 | 大唐移动通信设备有限公司 | Connection initiation processing method and device of packet data network |
CN103369510A (en) * | 2012-04-10 | 2013-10-23 | 中兴通讯股份有限公司 | APN information configuration method and device |
CN106413039A (en) * | 2016-10-31 | 2017-02-15 | 努比亚技术有限公司 | APN adaptive configuration device and method |
CN106658501A (en) * | 2016-12-19 | 2017-05-10 | 中国移动通信集团江苏有限公司 | Method for building PDN connection based on verification and equipment |
CN107948976A (en) * | 2017-12-01 | 2018-04-20 | 广东欧珀移动通信有限公司 | The detection method and device of LTE network access result, computer-readable storage medium |
CN108924950A (en) * | 2017-04-21 | 2018-11-30 | 中兴通讯股份有限公司 | A kind of method and device for establishing carrying |
US20180352449A1 (en) * | 2015-11-19 | 2018-12-06 | Lg Electronics Inc. | Operation method for terminal operating in congested network situation in wireless communication system and apparatus therefor |
-
2019
- 2019-03-28 CN CN201910245440.6A patent/CN109862603A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101790158A (en) * | 2009-01-23 | 2010-07-28 | 大唐移动通信设备有限公司 | Connection initiation processing method and device of packet data network |
CN103369510A (en) * | 2012-04-10 | 2013-10-23 | 中兴通讯股份有限公司 | APN information configuration method and device |
US20180352449A1 (en) * | 2015-11-19 | 2018-12-06 | Lg Electronics Inc. | Operation method for terminal operating in congested network situation in wireless communication system and apparatus therefor |
CN106413039A (en) * | 2016-10-31 | 2017-02-15 | 努比亚技术有限公司 | APN adaptive configuration device and method |
CN106658501A (en) * | 2016-12-19 | 2017-05-10 | 中国移动通信集团江苏有限公司 | Method for building PDN connection based on verification and equipment |
CN108924950A (en) * | 2017-04-21 | 2018-11-30 | 中兴通讯股份有限公司 | A kind of method and device for establishing carrying |
CN107948976A (en) * | 2017-12-01 | 2018-04-20 | 广东欧珀移动通信有限公司 | The detection method and device of LTE network access result, computer-readable storage medium |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112074001A (en) * | 2020-08-27 | 2020-12-11 | 展讯半导体(成都)有限公司 | Network access method and communication device |
CN112423287A (en) * | 2020-10-27 | 2021-02-26 | 深圳市广和通无线股份有限公司 | Control method and device for registration network, computer equipment and storage medium |
CN113382458A (en) * | 2021-06-28 | 2021-09-10 | 西安广和通无线通信有限公司 | Equipment network-resident dialing method, computer equipment and storage medium |
CN113382458B (en) * | 2021-06-28 | 2023-08-11 | 西安广和通无线通信有限公司 | Equipment network-resident dialing method, computer equipment and storage medium |
CN113938988A (en) * | 2021-09-30 | 2022-01-14 | 东莞华贝电子科技有限公司 | Public data network PDN connection method, terminal and storage medium |
CN113938988B (en) * | 2021-09-30 | 2024-02-27 | 东莞华贝电子科技有限公司 | Public data network PDN connection method, terminal and storage medium |
CN114268929A (en) * | 2021-12-21 | 2022-04-01 | 展讯通信(天津)有限公司 | Service activation method and related equipment |
CN114268929B (en) * | 2021-12-21 | 2023-08-11 | 展讯通信(天津)有限公司 | Service activation method and related equipment |
CN115243363A (en) * | 2022-07-26 | 2022-10-25 | 西安广和通无线软件有限公司 | Network registration method, related device, equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109862603A (en) | APN adaptive approach, mobile terminal and readable storage medium storing program for executing | |
CN110351704A (en) | A kind of paging control method, dual-card dual-standby terminal and computer readable storage medium | |
CN107027114A (en) | A kind of SIM card switching method, equipment and computer-readable recording medium | |
CN109982402B (en) | Terminal voice calling method, mobile terminal and computer readable storage medium | |
CN107040541A (en) | A kind of Ad blocking method, device and computer-readable medium | |
CN108768775A (en) | Information processing method, electronic equipment and computer storage media | |
CN107707450A (en) | A kind of method, apparatus and computer-readable recording medium for transmitting file | |
CN107172605B (en) | Emergency call method, mobile terminal and computer readable storage medium | |
CN110300435A (en) | A kind of communication pattern switching method, terminal and computer readable storage medium | |
CN109246315A (en) | Call processing method, mobile terminal, the readable storage medium storing program for executing of game on line process | |
CN107124428A (en) | A kind of method, equipment and the storage medium of raising VoLTE call successful rates | |
CN110149644A (en) | Terminal communication control method, terminal device and computer readable storage medium | |
CN109901980A (en) | Serial ports log grabs circuit, method, terminal and computer readable storage medium | |
CN109274818A (en) | Method for down loading, mobile terminal and the computer storage medium of application program | |
CN108494943A (en) | Message sink sends processing method, terminal and computer readable storage medium | |
CN111427709B (en) | Application program splitting control method, device and computer readable storage medium | |
CN107360558A (en) | Emergency call control method, communication terminal and computer-readable recording medium | |
CN109525699A (en) | Good friend's adding method, device, mobile terminal and readable storage medium storing program for executing | |
CN107770356A (en) | A kind of communication establishing method, equipment and computer-readable recording medium | |
CN109618377A (en) | Call processing method, terminal, network side apparatus and computer readable storage medium | |
CN109389394A (en) | A kind of multi-screen payment control method, equipment and computer readable storage medium | |
CN109522276A (en) | Application icon management method, terminal and computer readable storage medium | |
CN108199964A (en) | A kind of transmission method, terminal, server and computer readable storage medium | |
CN110175052A (en) | A kind of method, apparatus and computer readable storage medium of file opening | |
CN110167004A (en) | A kind of network registering method, mobile terminal 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190607 |