CN108601018B - Processing method for network communication function abnormity, application processor and mobile terminal - Google Patents

Processing method for network communication function abnormity, application processor and mobile terminal Download PDF

Info

Publication number
CN108601018B
CN108601018B CN201810220940.XA CN201810220940A CN108601018B CN 108601018 B CN108601018 B CN 108601018B CN 201810220940 A CN201810220940 A CN 201810220940A CN 108601018 B CN108601018 B CN 108601018B
Authority
CN
China
Prior art keywords
protocol stack
network
application processor
modem
pdn connection
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
Application number
CN201810220940.XA
Other languages
Chinese (zh)
Other versions
CN108601018A (en
Inventor
李伟清
陈燕绿
蔚宝珠
张强
王旭康
周千里
杜渊华
蔡文龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810220940.XA priority Critical patent/CN108601018B/en
Publication of CN108601018A publication Critical patent/CN108601018A/en
Application granted granted Critical
Publication of CN108601018B publication Critical patent/CN108601018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a method for processing network communication function abnormity, an application processor and a mobile terminal, wherein the method comprises the following steps: when an application processor receives an abnormal message which is sent by a modem and carries a network abnormal reason, acquiring a first protocol stack currently used by the modem; when the frequency of the network abnormity reason in the preset time period is judged to reach the preset frequency, the application processor closes the first protocol stack and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem; the application processor starts the second protocol stack and uses the second protocol stack to perform network registration; and when the network registration of the second protocol stack is successful, the application processor records the current position. The embodiment of the invention can quickly repair the network abnormity caused by PDN connection failure, thereby recovering the communication function in time and reducing the time for recovering the network abnormity.

Description

Processing method for network communication function abnormity, application processor and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a processing method of network communication function abnormity, an application processor and a mobile terminal.
Background
With the rapid development of the fourth generation mobile communication technology (4G), more and more mobile terminals supporting the 4G communication system are provided, and the mobile terminals supporting the 4G communication system also support the 2G and 3G communication systems, so as to ensure the normal communication of the user. The high-speed development of mobile communication technology makes data traffic occupy an absolute weight, so that the role and position of a modem in a mobile terminal are increasingly important, the modem is used for converting data to be transmitted into radio frequency signals and converting the radio frequency signals into data to be processed, processing signaling of an Access Stratum (AS) and a non-access stratum (NAS), interfacing with an AP processor, and the like.
Taking a mobile phone as an example, in daily life, the mobile phone is constantly in an environment with various communication systems, and the mobile phone often has a situation that the mobile phone cannot connect to a network, for example, a public data network PDN connection fails. In order to solve the abnormality that the network cannot be connected, the existing solution is: after a long time of network connection failure, the user manually forces the handset to restart to recover the configuration parameters of the modem. However, the existing scheme cannot solve the problem that the mobile phone cannot be connected to the network in time, and also consumes too much time of the user, which brings inconvenience to the user.
Disclosure of Invention
The embodiment of the invention provides a method for processing network communication function abnormity, an application processor and a mobile terminal, which can quickly repair network abnormity caused by PDN connection failure, thereby recovering the communication function in time and reducing the time for recovering the network abnormity.
A first aspect of an embodiment of the present invention provides a method for processing a network communication function exception, where the method includes:
when an application processor receives an abnormal message which is sent by a modem and carries a network abnormal reason, acquiring a first protocol stack currently used by the modem, wherein the network abnormal reason is a public data network PDN connection failure;
the application processor judges whether the frequency of the network abnormity reason in a preset time period reaches a preset frequency
When the frequency of the network abnormity reason in the preset time period reaches the preset frequency, the application processor closes the first protocol stack and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem;
the application processor starts the second protocol stack and uses the second protocol stack to perform network registration;
and when the network registration of the second protocol stack is successful, the application processor records the current position.
A second aspect of an embodiment of the present invention provides an application processor, which may include:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first protocol stack currently used by a modem when receiving an abnormal message which is sent by the modem and carries a network abnormal reason, and the network abnormal reason is the failure of public data network PDN connection;
a judging unit, configured to judge whether the number of times of the PDN connection failure within a preset time period reaches a preset number of times;
a selecting unit, configured to close the first protocol stack and select a second protocol stack, other than the first protocol stack, from multiple supported protocol stacks when the determining unit determines that the number of times of PDN connection failures within the preset time period reaches the preset number of times;
a registration unit, configured to start the second protocol stack and perform network registration by using the second protocol stack;
and the recording unit is used for recording the current position by the application processor when the network registration of the second protocol stack is successful.
A third aspect of the embodiments of the present invention provides a mobile terminal, including the application processor provided in the second aspect.
In the embodiment of the invention, when an application processor receives an abnormal message which is sent by a modem and carries a network abnormal reason, a first protocol stack which is currently used by the modem is obtained, the network abnormal reason is a public data network PDN connection failure, the application processor judges whether the PDN connection failure times in a preset time period reach preset times, when the PDN connection failure times in the preset time period reach the preset times, the first protocol stack is closed, a second protocol stack except the first protocol stack is selected from a plurality of protocol stacks which are supported, then the second protocol stack is opened and the second protocol stack is used for network registration, and finally when the second protocol stack network registration is successful, the current position is recorded, so that the application processor can quickly repair the network abnormal caused by the PDN connection failure, and further recover the communication function in time, the problem of overlong time consumption caused by forcibly restarting the mobile terminal is avoided, and the time for recovering the network from abnormity is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for processing network communication function abnormality according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another method for processing network communication function abnormality according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another method for handling network communication function abnormality according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an application processor according to an embodiment of the present invention;
FIG. 5 is a block diagram of another application processor according to an embodiment of the present invention;
FIG. 6 is a block diagram of another application processor according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another application processor according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method for processing the network communication function abnormity, the application processor and the mobile terminal provided by the embodiment of the invention can be applied to solving the scene of network abnormity caused by public data network PDN connection failure, for example, when the application processor receives an abnormal message which is sent by a modem and carries the reason of network abnormity, a first protocol stack currently used by the modem is obtained, and the reason of network abnormity is the public data network PDN connection failure; then the application processor judges whether the frequency of the network abnormity reason in a preset time period reaches a preset frequency, and when the frequency of the network abnormity reason in the preset time period reaches the preset frequency, the application processor closes the first protocol stack and selects a second protocol stack except the first protocol stack from a plurality of supported protocol stacks; then the application processor starts the second protocol stack and uses the second protocol stack to perform network registration; and finally, when the network registration of the second protocol stack is successful, the application processor records the scene of the current position. According to the embodiment of the invention, when the modem detects that the PDN connection fails, the application processor closes the protocol stack causing network abnormality, opens other protocol stacks and records the current position when other protocol stacks register the network successfully, so that the mobile terminal can normally surf the internet and communicate, the problem of a time-consuming process caused by restarting the mobile terminal is avoided, the time for recovering the network abnormality is reduced, the waiting time of a user is saved, and the user experience is improved.
The mobile terminal in the embodiment of the present invention may include, but is not limited to, an electronic device supporting a communication system and having a modem, such as a mobile phone, a PAD (tablet computer), and a smart wearable device. The mobile terminal in the embodiment of the invention takes a mobile phone as an example.
The following describes in detail a method for handling network communication function abnormality according to an embodiment of the present invention with reference to fig. 1 to 3.
Referring to fig. 1, a flow chart of a method for handling network communication function abnormality according to an embodiment of the present invention is shown, where the method includes steps S101 to S105.
S101, when an application processor receives an abnormal message which is sent by a modem and carries a network abnormal reason, a first protocol stack which is currently used by the modem is obtained, and the network abnormal reason is a public data network PDN connection failure.
Specifically, the Application Processor is called MAP (Multimedia Application Processor, MAP for short) for expanding the audio and video functions and the very large scale integrated circuit of the dedicated interface on the basis of the low power consumption CPU, and is an important component in the smart phone, and the Application Processor is generally an independent chip from the baseband Processor.
Public Data Network (PDN) is a wide area Network established by telecommunication operators, providing services and technologies for accessing the wide area Network, and providing high-quality Data transmission services for users. A PDN is a packet-switched or circuit-switched service provided by a local or long-distance telecommunications office, typically including x.25, frame relay, switched multi-megabit data services, or asynchronous transfer mode, and circuit-switched services including dial-up lines, switched 56 lines, and integrated services digital networks. The mobile terminal accesses the PDN through an Access Point Name (APN), and different APNs also correspond to different PDN networks and are defined by an operator. The APN is a network access technology, which is a parameter that must be configured when a mobile phone accesses the internet, and determines which access mode the mobile phone accesses the network. There are many types of external networks that can be accessed by a mobile phone user, such as the Internet, WAP sites, corporate intranet, and intra-industry private networks. The range and access mode of different access points are different, and how the network side knows which network the mobile phone will access after activation, and thus allocates IP of which network segment, is to be distinguished by the APN, that is, the APN determines what network the mobile phone of the user accesses through which access mode. PDN connects network control center and user network device to communicate data through modem, to reach network access purpose. And when the mobile phone is successfully connected with the PDN, the user can normally surf the Internet through the mobile phone, and once the PDN connection is failed to be established, the mobile phone cannot normally surf the Internet.
The modem is used for converting baseband signals into radio frequency signals, converting radio frequency signals into baseband signals, processing signaling of an Access Stratum (AS) and a non-access stratum (NAS), interfacing with an AP processor, and the like, and supports various protocol stacks. It should be noted that the modem is integrated in the mobile terminal. And the modem detects whether the PDN connection is successfully established in real time in the operation process, and when the PDN connection failure is detected, the connection establishment between the modem and the PDN fails at the moment. And the mobile terminal initiates to establish a new PDN connection by sending a PDN connection request message, and the network side establishes a new default bearer for the new PDN connection. The reasons causing the failure of the PDN connection establishment comprise that the network side refuses the PDN connection establishment, the PDN connection establishment request message sent by the mobile terminal is overtime or the radio resource control protocol RRC layer indicates the failure of the PDN connection establishment request sending. Reasons for the network side to reject the PDN connection establishment request include: operator blocking, APN unknown, PDN type unknown, authentication failure, disallowed PDN type IPv4, disallowed PDN type IPv6, designated APN disallowing multiple PDNs or resource limited, etc.
The protocol stack represents a sum of a plurality of protocols corresponding to a certain communication system, for example: the protocol stacks comprise a GSM protocol stack, an EDGE protocol stack, an HSPDA protocol stack, a TD-SCDMA protocol stack, a TDD-LTE protocol stack, an FDD-LTE protocol stack and the like, and a plurality of sub protocol stacks are arranged below each communication system protocol stack, which is not described again. The modem supports a plurality of protocol stacks, and the specific support of which types of protocol stacks is determined by the communication system supported by the mobile terminal, namely, by the manufacturer of the mobile terminal. And when the modem detects that the PDN connection fails, sending an abnormal message carrying a network abnormal reason to the application processor, wherein the abnormal message is used for informing the application processor to process the network abnormality. Wherein the network anomaly reason is a public data network PDN connection failure. And when the application processor receives the exception message sent by the modem, acquiring a first protocol stack currently used by the modem.
And S102, judging whether the PDN connection failure times reach preset times within a preset time period.
Specifically, the application processor determines whether the number of times of PDN connection failure within a preset time period reaches a preset number of times. And the preset time period and the preset times are set by a manufacturer of the mobile terminal. The application processor needs to confirm that the network abnormality is caused by the PDN connection failure, and if the number of times of the PDN connection failure reaches the preset number of times within the preset time period, it may be determined that the network abnormality is caused by the PDN connection failure.
And S103, when the number of times of PDN connection failure reaches the preset number of times within the preset time period, the application processor closes the first protocol stack and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem.
Specifically, when it is determined that the number of times of PDN connection failure within the preset time period reaches the preset number of times, the application processor closes the first protocol stack, and selects a second protocol stack other than the first protocol stack from among a plurality of protocol stacks supported by the modem. The first protocol stack is a protocol stack that causes the PDN connection failure, and therefore the application processor needs to close the first protocol stack and select a protocol stack other than the first protocol stack, that is, the second protocol stack. Wherein there is a low priority in the plurality of protocol stacks supported by the modem, and one possible implementation is as follows: the priority levels of the various protocol stacks of the modem may be preset, for example: the priority level of each protocol stack can be set when the modem leaves a factory; or, in the process that the modem is configured in the mobile terminal and initialized, setting a priority level according to the network connection and the network signal strength when the mobile terminal uses each protocol stack; and so on. Another possible implementation is: the priority levels of the various protocol stacks of the modem can be flexibly adjusted, for example: setting a priority level according to the network connection and the network signal strength when the mobile terminal uses each protocol stack in a certain position area; or, the priority level of each protocol stack may be set according to the sequence of the common network communication system of the mobile terminal; and so on. It should be noted that the higher the priority level of a certain protocol stack is, the better network connection or stronger network signal can be obtained by the mobile terminal based on the protocol stack. The protocol stack with the highest priority in the modems is generally called as a default protocol stack, and the modems generally use the protocol stacks to realize network registration and network use of the mobile terminal from high to low in order of priority.
Optionally, the application processor selects a protocol stack one level lower than the first protocol stack as the second protocol stack; or measuring the signal intensity of cell signals corresponding to each surrounding protocol stack, and taking the protocol stack with the maximum signal intensity as the second protocol stack; or the application processor selects a protocol stack one level higher than the first protocol stack as the second protocol stack; or other strategies may be used to determine the second protocol stack, although the invention is not limited in this respect. For example, the first protocol stack is a TDD-LTE protocol stack, that is, a mobile 4G network is not available at this time, and the application processor selects a GSM protocol stack as the second protocol stack, that is, a 2G network.
And S104, the application processor starts the second protocol stack and uses the second protocol stack to perform network registration.
Specifically, the application processor opens the second protocol stack after closing the first protocol stack and performs network registration using the second protocol stack. After the application processor closes the first protocol stack, the mobile terminal becomes in a no-service state, so the application processor needs to open the selected second protocol stack and perform network registration by using the second protocol stack, for example, the LTE network registration process is as follows: the mobile terminal initiates an attach request (attach request) to a network side, if the network side allows the mobile terminal to access, an attach response (attach accept) is returned to the mobile terminal, when the mobile terminal receives the attach response, network registration is successful, and the mobile terminal is converted from a non-service state to a service state; if the network side does not allow the mobile terminal to access, returning rejection/error information to the mobile terminal, which indicates that the network registration fails.
And S105, when the network registration of the second protocol stack is successful, the application processor records the current position.
Specifically, when the network registration of the second protocol stack is successful, the application processor records the current position. The location represents a logical location of the mobile terminal in the mobile communication network, and the location may be a cell identifier, a location area code, a location tracking area, or the like. Location Area Code (LAC) is an Area set for paging in a mobile communication system, covering a geographical Area, and is generally divided into administrative areas (a county or a district) at the beginning, and is now flexible and divided into paging volumes. When the paging volume under one LAC reaches an early warning threshold, the system must be split. To determine the location of a mobile station, the coverage area of each public land mobile network is divided into a number of location areas, and Location Area Codes (LACs) are used to identify the different location areas. The current location is the current logical location of the mobile terminal in the mobile communication network, and may include a current location area code, a current cell identifier, and the like where the mobile terminal is located.
In the embodiment of the invention, when an application processor receives an abnormal message which is sent by a modem and carries a network abnormal reason, a first protocol stack which is currently used by the modem is obtained, the network abnormal reason is a public data network PDN connection failure, the application processor judges whether the PDN connection failure times in a preset time period reach preset times, when the PDN connection failure times in the preset time period reach the preset times, the first protocol stack is closed, a second protocol stack except the first protocol stack is selected from a plurality of supported protocol stacks, then the second protocol stack is opened and network registration is carried out by using the second protocol stack, and finally when the network registration of the second protocol stack is successful, the current position is recorded, so that the application processor can quickly repair the network abnormal caused by the PDN connection failure, and further recover the communication function in time, the problem of overlong time consumption caused by forcibly restarting the mobile terminal is avoided, and the time for recovering the network from abnormity is reduced.
Referring to fig. 2, a flow chart of another method for handling network communication function abnormality according to an embodiment of the present invention is shown, where the method includes steps S201 to S213.
S201, when detecting that the public data network PDN connection fails, the modem sends an abnormal message carrying the reason of the network abnormality to the application processor.
Specifically, when detecting a failure of a public data network PDN connection, the modem sends an exception message carrying a cause of the network exception to the application processor. And the exception message is used for informing the application processor to process the network exception, wherein the network exception is caused by the PDN connection failure. The public data network is a wide area network established by telecommunication operators, provides services and technologies for accessing the wide area network, and provides high-quality data transmission services for users. A PDN is a packet-switched or circuit-switched service provided by a local or long-distance telecommunications office, typically including x.25, frame relay, switched multi-megabit data services, or asynchronous transfer mode, and circuit-switched services including dial-up lines, switched 56 lines, and integrated services digital networks. And the mobile terminal accesses the PDN through the APN, and different APNs also correspond to different PDN networks and are defined by operators. The APN is a network access technology, which is a parameter that must be configured when a mobile phone accesses the internet, and determines which access mode the mobile phone accesses the network. There are many types of external networks that can be accessed by a mobile phone user, such as the Internet, WAP sites, corporate intranet, and intra-industry private networks. The range and access mode of different access points are different, and how the network side knows which network the mobile phone will access after activation, and thus allocates IP of which network segment, is to be distinguished by the APN, that is, the APN determines what network the mobile phone of the user accesses through which access mode. PDN connects network control center and user network device to communicate data through modem, to reach network access purpose. And when the mobile phone is successfully connected with the PDN, the user can normally surf the Internet through the mobile phone, and once the PDN connection is failed to be established, the mobile phone cannot normally surf the Internet.
The modem is used for converting baseband signals into radio frequency signals, processing signaling of an Access Stratum (AS) and a non-access stratum (NAS), interfacing with an AP processor, and the like, and supports various protocol stacks. It should be noted that the modem is integrated in the mobile terminal. And the modem detects whether the PDN connection is successfully established in real time in the operation process, and when the PDN connection failure is detected, the connection establishment between the modem and the PDN fails at the moment. And the mobile terminal initiates to establish a new PDN connection by sending a PDN connection request message, and the network side establishes a new default bearer for the new PDN connection. The reasons causing the failure of the PDN connection establishment comprise that the network side refuses the PDN connection establishment, the PDN connection establishment request message sent by the mobile terminal is overtime or the radio resource control protocol RRC layer indicates the failure of the PDN connection establishment request sending. Reasons for the network side to reject the PDN connection establishment request include: operator blocking, APN unknown, PDN type unknown, authentication failure, disallowed PDN type IPv4, disallowed PDN type IPv6, designated APN disallowing multiple PDNs or resource limited, etc.
S202, when the application processor receives the abnormal message, acquiring a first protocol stack currently used by the modem.
Specifically, when the application processor receives the exception message sent by the modem, a first protocol stack currently used by the modem is acquired. The first protocol stack is one of a plurality of protocol stacks supported by the modem.
S203, judging whether the frequency of the network abnormity reason in the preset time period reaches the preset frequency.
Specifically, the application processor determines whether the number of times of PDN connection failure within a preset time period reaches a preset number of times. And the preset time period and the preset times are set by a manufacturer of the mobile terminal. The application processor needs to confirm that the network abnormality is caused by the PDN connection failure, and if the number of times of the PDN connection failure reaches the preset number of times within the preset time period, it may be determined that the network abnormality is caused by the PDN connection failure.
And S204, when the number of times of PDN connection failure reaches the preset number of times in the preset time period, the application processor closes the first protocol stack and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem.
Specifically, when it is determined that the number of times of PDN connection failure within the preset time period reaches the preset number of times, the application processor closes the first protocol stack, and selects a second protocol stack other than the first protocol stack from among a plurality of protocol stacks supported by the modem. The protocol stack causing the PDN connection failure is the first protocol stack, so the application processor needs to close the first protocol stack and select a protocol stack other than the first protocol stack, that is, the second protocol stack, from a plurality of protocol stacks supported by the modem. Wherein there is a low priority in the plurality of protocol stacks supported by the modem, and one possible implementation is as follows: the priority levels of the various protocol stacks of the modem may be preset, for example: the priority level of each protocol stack can be set when the modem leaves a factory; or, in the process that the modem is configured in the mobile terminal and initialized, setting a priority level according to the network connection and the network signal strength when the mobile terminal uses each protocol stack; and so on. Another possible implementation is: the priority levels of the various protocol stacks of the modem can be flexibly adjusted, for example: setting a priority level according to the network connection and the network signal strength when the mobile terminal uses each protocol stack in a certain position area; or, the priority level of each protocol stack may be set according to the sequence of the common network communication system of the mobile terminal; and so on. It should be noted that the higher the priority level of a certain protocol stack is, the better network connection or stronger network signal can be obtained by the mobile terminal based on the protocol stack. The protocol stack with the highest priority in the modems is generally called as a default protocol stack, and the modems generally use the protocol stacks to realize network registration and network use of the mobile terminal from high to low in order of priority.
Optionally, the application processor selects a protocol stack one level lower than the first protocol stack as the second protocol stack; or measuring the signal intensity of cell signals corresponding to each surrounding protocol stack, and taking the protocol stack with the maximum signal intensity as the second protocol stack; or the application processor selects a protocol stack one level higher than the first protocol stack as the second protocol stack; or other strategies may be used to determine the second protocol stack, although the invention is not limited in this respect. For example, the first protocol stack is a TDD-LTE protocol stack, that is, a mobile 4G network is not available at this time, and the application processor selects a GSM protocol stack as the second protocol stack, that is, a 2G network.
S205, when the number of times of PDN connection failure in the preset time period does not reach the preset number of times, the application processor executes reset operation on the modem.
Specifically, when the number of times of PDN connection failure within the preset time period is determined to be smaller than the preset number of times, the application processor performs a reset operation on the modem, that is, the application processor triggers the modem to automatically restart to recover the normal operation of the modem, so that a user does not need to manually operate the modem, and the automatic processing capability of the mobile terminal is improved.
S206, the application processor starts the second protocol stack and uses the second protocol stack to perform network registration.
Specifically, the application processor opens the second protocol stack after closing the first protocol stack and performs network registration using the second protocol stack. After the application processor closes the first protocol stack, the mobile terminal becomes out of service, so the application processor needs to open the selected second protocol stack and perform network registration using the second protocol stack, for example, the LTE network registration process is as follows: the mobile terminal initiates an attach request (attach request) to a network side, if the network side allows the mobile terminal to access, an attach response (attach accept) is returned to the mobile terminal, when the mobile terminal receives the attach response, network registration is successful, and the mobile terminal is converted from a non-service state to a service state; if the network side does not allow the mobile terminal to access, returning rejection/error information to the mobile terminal, which indicates that the network registration fails.
And S207, the application processor judges whether the network registration of the second protocol stack is successful.
Specifically, the second protocol stack may successfully register to the network or may not register to the network during the network registration process. When the network registration is unsuccessful, it can be understood that the second protocol stack is not available at this time, and the mobile terminal is still unable to surf the internet normally by using the second protocol stack, at this time, step S209 is executed. When the second protocol stack network registration is successful, step S208 is executed.
S208, the application processor records the current position.
Specifically, when the network registration of the second protocol stack is successful, the application processor records the current position. The location represents a logical location of the mobile terminal in the mobile communication network, and the location may be a cell identifier, a location area code, a location tracking area, or the like. The location area code is an area set for paging in a mobile communication system, covers a geographical area, is generally divided into administrative areas (a county or a district) at the beginning, and is flexible at present, and is divided into paging volumes. When the paging volume under one LAC reaches an early warning threshold, the system must be split. To determine the location of a mobile station, the coverage area of each public land mobile network is divided into a number of location areas, and Location Area Codes (LACs) are used to identify the different location areas. The current location is the current logical location of the mobile terminal in the mobile communication network, and may include a current location area code, a current cell identifier, and the like where the mobile terminal is located. The application processor executes step S211 after executing step S208, and starts the parallel process of step S210.
S209, the application processor recovers the default protocol stack switch states in the plurality of protocol stacks supported by the modem, or recovers the default protocol stack switch states in the plurality of protocol stacks supported by the modem and simultaneously performs a reset operation on the modem.
Specifically, when the network registration of the second protocol stack fails, the application processor acquires and restores the switch states of the default protocol stacks in the plurality of protocol stacks supported by the modem, or restores the switch states of the default protocol stacks in the plurality of protocol stacks supported by the modem and simultaneously performs a reset operation on the modem. The default protocol stack may be the first protocol stack, or may be a protocol stack other than the first protocol stack. It should be noted that if the default protocol stack is the first protocol stack (i.e., the protocol stack that has been turned off and caused the PDN connection failure), this step is equivalent to turning back the first protocol stack. The application processor executes reset operation on the modem, namely the application processor triggers the modem to automatically restart so as to recover the normal work of the modem, manual operation of a user is not needed, and the automatic processing capacity of the mobile terminal is improved.
S210, the application processor judges whether the current position changes.
Specifically, the application processor periodically acquires a position and determines whether the current position changes, and when the current acquired position changes compared with the last acquired position, step S209 is executed; when the current acquired position and the last acquired position are the same, the process continues to step S210. For example, when the location is a cell identifier, the mobile terminal moves from one cell to another cell, which indicates that the location has changed; when the location is a location area code, the mobile terminal moves from one location area to another indicating that the location has changed. The period of acquiring the position by the application processor is not limited in the embodiment of the present invention, and may be set according to actual requirements.
Since the current location is changed, it can be understood that the modem can successfully connect to the PDN at the changed location, and the mobile terminal can normally surf the internet, so the application processor acquires and restores the on-off state of a default protocol stack in a plurality of protocol stacks supported by the modem, or restores the on-off state of the default protocol stack in the plurality of protocol stacks supported by the modem and simultaneously performs a reset operation on the modem.
S211, the application processor judges whether the network abnormity reason is reported.
Specifically, the application processor determines whether the network anomaly reason is reported, where the network anomaly reason is the PDN connection failure. Because there are various reasons for causing network anomaly, for example, memory access error, location update failure, and other anomaly reasons, and different anomaly reasons may correspond to different codes, the application processor needs to determine whether the network anomaly reason for the PDN connection failure is reported. And executing step S212 and/or step S213 when it is determined that the network anomaly cause is not reported. After step S208 and step S209, step S211 may be executed.
And S212, the application processor acquires the PDN connection failure log and reports the network abnormal reason, the PDN connection failure log and the current position to a network side.
Specifically, when it is determined in step S211 that the reason for the network anomaly is not reported, the application processor obtains the log of the PDN connection failure, and reports the reason for the network anomaly, the log of the PDN connection failure, and the current location to the network side, so that research and development personnel of the mobile terminal can know about the anomaly, thereby improving the mobile terminal in a targeted manner. Wherein the log of the PDN connection failure represents operation information of the application processor in the PDN connection failure process, and the operation information includes: operation instruction, operation time and return result. The application processor can report the information to the network side through the wifi hotspot under the condition that the mobile terminal scans surrounding wifi hotspots and is connected with the wifi hotspot, so that the flow is saved.
S213, the application processor sends the network abnormal reason to a display device for displaying.
Specifically, when it is determined in step S211 that the network anomaly reason is not reported, the application processor sends the network anomaly reason to the display terminal of the mobile terminal for displaying, so that the user can clearly know the reason why the internet cannot be accessed before.
It should be noted that step S212 and step S213 may be executed simultaneously, step S213 may be executed after step S212 is executed, or only step S212 or step S213 may be executed.
In the embodiment of the invention, when an application processor receives an abnormal message which is sent by the modem and carries a reason of network abnormality, a first protocol stack which is currently used by the modem, the reason of network abnormality is a public data network PDN connection failure, the application processor judges whether the number of times of PDN connection failure reaches a preset number in a preset time period, when the number of times of PDN connection failure reaches the preset number in the preset time period, the first protocol stack is closed, a second protocol stack except the first protocol stack is selected from a plurality of supported protocol stacks, then the second protocol stack is opened and network registration is carried out by using the second protocol stack, and finally when the network registration of the second protocol stack is successful, the current position is recorded, so that the modem is recovered to be normal by a network registration mode, and the application processor can rapidly repair the network abnormality caused by the PDN connection failure, and then the communication function is recovered in time, the problem of overlong time consumption caused by forcibly restarting the mobile terminal is avoided, and the time for recovering the network abnormity is reduced.
Referring to fig. 3, a flowchart of another method for handling network communication function abnormality according to an embodiment of the present invention is shown, where the method includes steps S301 to S310.
S301, when detecting the PDN connection failure of the public data network, the modem sends an abnormal message carrying the reason of the network abnormality to the application processor.
S302, when the application processor receives the abnormal message, acquiring a first protocol stack currently used by the modem.
And S303, judging whether the PDN connection failure times reach preset times within a preset time period.
S304, when the number of times of PDN connection failure in the preset time period is judged to reach the preset number of times, the application processor closes the first protocol stack and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem.
S305, the application processor starts the second protocol stack and uses the second protocol stack to perform network registration.
The specific implementation process of steps S301 to S305 in the embodiment of the present invention can refer to the specific description of steps 201 to S205 in the embodiment shown in fig. 2, and is not described herein again.
S306, when the network registration of the second protocol stack is successful, the application processor records the current position.
Specifically, when the network registration of the second protocol stack is successful, the application processor records the current position. The location represents a logical location of the mobile terminal in the mobile communication network, and the location may be a cell identifier, a location area code, a location tracking area, or the like. The location area code is an area set for paging in a mobile communication system, covers a geographical area, is generally divided into administrative areas (a county or a district) at the beginning, and is flexible at present, and is divided into paging volumes. When the paging volume under one LAC reaches an early warning threshold, the system must be split. To determine the location of a mobile station, the coverage area of each public land mobile network is divided into a number of location areas, and Location Area Codes (LACs) are used to identify the different location areas. The current location is the current logical location of the mobile terminal in the mobile communication network, and may include a current location area code, a current cell identifier, and the like where the mobile terminal is located. Unlike the second embodiment, the third embodiment does not deal with the case where the network registration of the second protocol stack fails.
S307, the application processor judges whether the current position changes.
S308, the application processor restores the default protocol stack switch states in the plurality of protocol stacks supported by the modem, or restores the default protocol stack switch states in the plurality of protocol stacks supported by the modem and performs a reset operation on the modem at the same time.
S309, the application processor judges whether the network abnormal reason is reported.
And S310, the application processor acquires the PDN connection failure log and reports the network abnormal reason, the PDN connection failure log and the current position to a network side.
S311, the application processor sends the network abnormal reason to a display device for displaying.
The specific implementation process of steps S307 to S311 in the embodiment of the present invention can refer to the specific description of steps 209 to S213 in the embodiment shown in fig. 2, and is not described herein again.
In the embodiment of the invention, when an application processor receives an abnormal message which is sent by the modem and carries a reason of network abnormality, a first protocol stack which is currently used by the modem, the reason of network abnormality is a public data network PDN connection failure, the application processor judges whether the number of times of PDN connection failure reaches a preset number in a preset time period, when the number of times of PDN connection failure reaches the preset number in the preset time period, the first protocol stack is closed, a second protocol stack except the first protocol stack is selected from a plurality of supported protocol stacks, then the second protocol stack is opened and network registration is carried out by using the second protocol stack, and finally when the network registration of the second protocol stack is successful, the current position is recorded, so that the modem is recovered to be normal by a network registration mode, and the application processor can rapidly repair the network abnormality caused by the PDN connection failure, and then the communication function is recovered in time, the problem of overlong time consumption caused by forcibly restarting the mobile terminal is avoided, and the time for recovering the network abnormity is reduced.
The application processor provided by the embodiment of the present invention will be described in detail with reference to fig. 4 and 5. It should be noted that, the application processors shown in fig. 4 and fig. 5 are used for executing the method of the embodiment shown in fig. 1 to fig. 3 of the present invention, for convenience of description, only the portions related to the embodiment of the present invention are shown, and details of the technology are not disclosed, please refer to the embodiment shown in fig. 1 to fig. 3 of the present invention.
Referring to fig. 4, which is a schematic structural diagram of an application processor according to an embodiment of the present invention, the application processor 10 includes an obtaining unit 101, a determining unit 102, a selecting unit 103, a registering unit 104, and a recording unit 105.
An obtaining unit 101, configured to obtain, when receiving an exception message that is sent by a modem and carries a cause of a network exception, a first protocol stack currently used by the modem, where the cause of the network exception is a PDN connection failure.
In specific implementation, the application processor 10 is a very large scale integrated circuit used for expanding audio and video functions and a dedicated interface on the basis of a low power consumption CPU, and is an important component in a smart phone, and the application processor and the baseband processor are generally two independent chips.
The public data network is a wide area network established by telecommunication operators, provides services and technologies for accessing the wide area network, and provides high-quality data transmission services for users. A PDN is a packet-switched or circuit-switched service provided by a local or long-distance telecommunications office, typically including x.25, frame relay, switched multi-megabit data services, or asynchronous transfer mode, and circuit-switched services including dial-up lines, switched 56 lines, and integrated services digital networks. And the mobile terminal accesses the PDN through the APN, and different APNs also correspond to different PDN networks and are defined by operators. The APN is a network access technology, which is a parameter that must be configured when a mobile phone accesses the internet, and determines which access mode the mobile phone accesses the network. There are many types of external networks that can be accessed by a mobile phone user, such as the Internet, WAP sites, corporate intranet, and intra-industry private networks. The range and access mode of different access points are different, and how the network side knows which network the mobile phone will access after activation, and thus allocates IP of which network segment, is to be distinguished by the APN, that is, the APN determines what network the mobile phone of the user accesses through which access mode. PDN connects network control center and user network device to communicate data through modem, to reach network access purpose. And when the mobile phone is successfully connected with the PDN, the user can normally surf the Internet through the mobile phone, and once the PDN connection is failed to be established, the mobile phone cannot normally surf the Internet.
The modem is used for converting baseband signals into radio frequency signals, converting the radio frequency signals into the baseband signals, processing signaling of an Access Stratum (AS) and a non-access stratum (NAS), interfacing with an AP processor and the like, and supports various protocol stacks. It should be noted that the modem is integrated in the mobile terminal. And the modem detects whether the PDN connection is successfully established in real time in the operation process, and when the PDN connection failure is detected, the connection establishment between the modem and the PDN fails at the moment. And the mobile terminal initiates to establish a new PDN connection by sending a PDN connection request message, and the network side establishes a new default bearer for the new PDN connection. The reasons causing the failure of the PDN connection establishment comprise that the network side refuses the PDN connection establishment, the PDN connection establishment request message sent by the mobile terminal is overtime or the radio resource control protocol RRC layer indicates the failure of the PDN connection establishment request sending. Reasons for the network side to reject the PDN connection establishment request include: operator blocking, APN unknown, PDN type unknown, authentication failure, disallowed PDN type IPv4, disallowed PDN type IPv6, designated APN disallowing multiple PDNs or resource limited, etc.
The protocol stack represents a sum of a plurality of protocols corresponding to a certain communication system, for example: the protocol stacks comprise a GSM protocol stack, an EDGE protocol stack, an HSPDA protocol stack, a TD-SCDMA protocol stack, a TDD-LTE protocol stack, an FDD-LTE protocol stack and the like, and a plurality of sub protocol stacks are arranged below each communication system protocol stack, which is not described again. The modem supports a plurality of protocol stacks, and the specific support of which types of protocol stacks is determined by the communication system supported by the mobile terminal, namely, by the manufacturer of the mobile terminal. When the modem detects that the PDN connection fails, an exception message carrying a cause of a network exception is sent to the application processor 10, where the exception message is used to notify the application processor 10 to process the network exception. Wherein the network anomaly reason is a public data network PDN connection failure. When the application processor 10 receives the exception message sent by the modem, the obtaining unit 101 obtains a first protocol stack currently used by the modem.
A determining unit 102, configured to determine whether the number of times of the PDN connection failure within a preset time period reaches a preset number of times.
In a specific implementation, the determining unit 102 determines whether the number of times of the PDN connection failure within a preset time period reaches a preset number of times. And the preset time period and the preset times are set by a manufacturer of the mobile terminal. The application processor 10 needs to confirm that the network anomaly is caused by the PDN connection failure at this time, and if the number of times of the PDN connection failure reaches the preset number of times within the preset time period, it may be determined that the network anomaly is caused by the PDN connection failure at this time.
A selecting unit 103, configured to close the first protocol stack and select a second protocol stack, other than the first protocol stack, from multiple protocol stacks supported by the modem.
In a specific implementation, when the determining unit 102 determines that the number of times of the PDN connection failure within the preset time period reaches the preset number of times, the selecting unit 103 closes the first protocol stack, and selects a second protocol stack, other than the first protocol stack, from a plurality of protocol stacks supported by the modem. The first protocol stack is a protocol stack that causes the PDN connection failure, and therefore the selecting unit 103 needs to close the first protocol stack and select a protocol stack other than the first protocol stack, that is, the second protocol stack. Wherein there is a low priority in the plurality of protocol stacks supported by the modem, and one possible implementation is as follows: the priority levels of the various protocol stacks of the modem may be preset, for example: the priority level of each protocol stack can be set when the modem leaves a factory; or, in the process that the modem is configured in the mobile terminal and initialized, setting a priority level according to the network connection and the network signal strength when the mobile terminal uses each protocol stack; and so on. Another possible implementation is: the priority levels of the various protocol stacks of the modem can be flexibly adjusted, for example: setting a priority level according to the network connection and the network signal strength when the mobile terminal uses each protocol stack in a certain position area; or, the priority level of each protocol stack may be set according to the sequence of the common network communication system of the mobile terminal; and so on. It should be noted that the higher the priority level of a certain protocol stack is, the better network connection or stronger network signal can be obtained by the mobile terminal based on the protocol stack. The protocol stack with the highest priority in the modems is generally called as a default protocol stack, and the modems generally use the protocol stacks to realize network registration and network use of the mobile terminal from high to low in order of priority.
Optionally, the selecting unit 103 selects a protocol stack one level lower than the first protocol stack as the second protocol stack; or measuring the signal intensity of cell signals corresponding to each surrounding protocol stack, and taking the protocol stack with the maximum signal intensity as the second protocol stack; or the selecting unit 103 selects a protocol stack one level higher than the first protocol stack as the second protocol stack; or other strategies may be used to determine the second protocol stack, although the invention is not limited in this respect. For example, the first protocol stack is a TDD-LTE protocol stack, that is, the mobile 4G network is not available at this time, and the selecting unit 103 selects a GSM protocol stack as the second protocol stack, that is, the 2G network.
A registering unit 104, configured to open the second protocol stack and perform network registration using the second protocol stack.
In a specific implementation, after the selecting unit 103 closes the first protocol stack, the registering unit 104 opens the second protocol stack and performs network registration using the second protocol stack. After the selecting unit 103 closes the first protocol stack, the mobile terminal becomes in a no-service state, so the registering unit 104 needs to open the selected second protocol stack and perform network registration using the second protocol stack, for example, the LTE network registration process is as follows: the mobile terminal initiates an attach request (attach request) to a network side, if the network side allows the mobile terminal to access, an attach response (attach accept) is returned to the mobile terminal, when the mobile terminal receives the attach response, network registration is successful, and the mobile terminal is converted from a non-service state to a service state; if the network side does not allow the mobile terminal to access, returning rejection/error information to the mobile terminal, which indicates that the network registration fails.
A recording unit 105, configured to record the current location when the network registration of the second protocol stack is successful.
In a specific implementation, when the network registration of the second protocol stack is successful, the recording unit 105 records the current location. The location represents a logical location of the mobile terminal in the mobile communication network, and the location may be a cell identifier, a location area code, a location tracking area, or the like. Location Area Code (LAC) is an area set for paging in a mobile communication system, covering a geographical area, and is generally divided into administrative areas (a county or a district) at the beginning, and is now flexible to be divided into paging volumes. When the paging volume under one LAC reaches an early warning threshold, the system must be split. To determine the location of a mobile station, the coverage area of each public land mobile network is divided into a number of location areas, and Location Area Codes (LACs) are used to identify the different location areas. The current location is the current logical location of the mobile terminal in the mobile communication network, and may include a current location area code, a current cell identifier, and the like where the mobile terminal is located.
In the embodiment of the invention, when the failure of public data network PDN connection is detected, the currently used first protocol stack is obtained, whether the failure frequency of PDN connection in a preset time period reaches the preset frequency is judged, when the failure frequency of PDN connection in the preset time period reaches the preset frequency is judged, the first protocol stack is closed, a second protocol stack except the first protocol stack is selected from a plurality of supported protocol stacks, then the second protocol stack is opened and network registration is carried out by using the second protocol stack, and finally, when the network registration of the second protocol stack is successful, the current position is recorded, so that the network abnormity caused by the PDN connection failure is quickly repaired, the communication function is timely recovered, the problem of long time consumption caused by forcibly restarting the mobile terminal is avoided, and the time for recovering the network abnormity is reduced.
Referring to fig. 5, which is a schematic structural diagram of another modem according to an embodiment of the present invention, the modem 20 includes an obtaining unit 201, a determining unit 202, a selecting unit 203, a registering unit 204, a recording unit 205, a recovering unit 206, and a reporting unit 207. For specific implementation processes of the obtaining unit 201, the selecting unit 203, the registering unit 204, and the recording unit 205, reference may be made to specific descriptions of the obtaining unit 101, the selecting unit 103, the registering unit 103, and the recording unit 105 in the embodiment shown in fig. 4, and details are not described here again.
An obtaining unit 201, configured to obtain, when receiving an exception message that is sent by a modem and carries a cause of a network exception, a first protocol stack currently used by the modem, where the cause of the network exception is a PDN connection failure.
A determining unit 202, configured to determine whether the number of times of the PDN connection failure within a preset time period reaches a preset number of times.
In a specific implementation, in the specific implementation process that the determining unit 202 determines whether the number of times of the PDN connection failure within the preset time period reaches the preset number of times, refer to specific description of the determining unit 102 in fig. 3, which is not described herein again.
A selecting unit 203, configured to close the first protocol stack and select a second protocol stack, other than the first protocol stack, from multiple protocol stacks supported by the modem when the determining unit determines whether the number of times of PDN connection failures within the preset time period reaches the preset number of times.
A registering unit 204, configured to open the second protocol stack and perform network registration using the second protocol stack.
A recording unit 205, configured to record the current location when the network registration of the second protocol stack is successful.
A recovering unit 206, configured to recover, when network registration of the second protocol stack fails, or when the current location changes, a default protocol stack switch state in a plurality of protocol stacks supported by the modem; or, restoring the default protocol stack switch state in a plurality of protocol stacks supported by the modem and simultaneously executing the reset operation on the modem.
In a specific implementation, when the network registration of the second protocol stack fails, the recovering unit 206 obtains and recovers the switch states of the default protocol stacks in the plurality of protocol stacks supported by the modem, or recovers the switch states of the default protocol stacks in the plurality of protocol stacks supported by the modem and simultaneously performs a reset operation on the modem. The default protocol stack may be the first protocol stack, or may be a protocol stack other than the first protocol stack. It should be noted that if the default protocol stack is the first protocol stack (i.e., the protocol stack that has been turned off and caused the PDN connection failure), this step is equivalent to turning back the first protocol stack.
Since the current location is changed, it is understood that the modem can successfully connect to the PDN at the changed location, and the mobile terminal can normally surf the internet, so the recovery unit 206 obtains and recovers the on-off state of a default protocol stack in a plurality of protocol stacks supported by the modem, or recovers the on-off state of the default protocol stack in the plurality of protocol stacks supported by the modem and simultaneously performs a reset operation on the modem.
The determining unit 202 is further configured to determine whether a network anomaly reason is reported.
In a specific implementation, the determining unit 202 determines whether a network anomaly reason is reported, where the network anomaly reason is that the PDN connection fails. Since there are various reasons for causing network anomaly, for example, memory access error, location update failure, and other anomaly reasons, and different anomaly reasons may correspond to different codes, the determining unit 202 needs to determine whether the network anomaly reason for PDN connection failure is reported. When the determining unit 202 determines that the network anomaly reason is not reported, the reporting unit 207 is called.
A reporting unit 207, configured to, when the determining unit determines that the reason for the network anomaly is not reported, obtain a log of the PDN connection failure, and report the reason for the network anomaly, the log of the PDN connection failure, and the current location to a network side; and/or the reporting unit is used for sending the network abnormity reason to a display device for displaying.
In a specific implementation, when the determining unit 202 determines that the network anomaly reason is not reported, the reporting unit 207 obtains the log of the PDN connection failure, and reports the network anomaly reason, the log of the PDN connection failure, and the current location to a network side, so that research and development personnel of the mobile terminal can know about the anomaly, thereby improving the mobile terminal in a targeted manner. Wherein the log of the PDN connection failure represents operation information of the application processor in the PDN connection failure process, and the operation information includes: operation instruction, operation time and return result. The reporting unit 207 is specifically configured to report the information to the network side through the wifi hotspot when the mobile terminal scans a wifi hotspot around and connects to the wifi hotspot, so as to save traffic. And/or, when the determining unit 202 determines that the network anomaly reason is not reported, the reporting unit 207 sends the network anomaly reason to a display terminal of the mobile terminal for displaying, so that a user can clearly know the reason why the internet cannot be accessed before.
In the embodiment of the invention, when an application processor receives an abnormal message which is sent by the modem and carries a reason of network abnormality, a first protocol stack which is currently used by the modem, the reason of network abnormality is a public data network PDN connection failure, the application processor judges whether the number of times of PDN connection failure reaches a preset number in a preset time period, when the number of times of PDN connection failure reaches the preset number in the preset time period, the first protocol stack is closed, a second protocol stack except the first protocol stack is selected from a plurality of supported protocol stacks, then the second protocol stack is opened and network registration is carried out by using the second protocol stack, and finally when the network registration of the second protocol stack is successful, the current position is recorded, so that the modem is recovered to be normal by a network registration mode, and the application processor can rapidly repair the network abnormality caused by the PDN connection failure, and then the communication function is recovered in time, the problem of overlong time consumption caused by forcibly restarting the mobile terminal is avoided, and the time for recovering the network abnormity is reduced.
Fig. 6 is a schematic structural diagram of another application processor according to an embodiment of the present invention. In this schematic diagram, a modem is not integrated, as shown in fig. 6, an application processor is used to implement the method for processing network communication function exception described in fig. 1, the application processor 6 includes a CPU _ ap601, a memory 602, and a communication interface 603, the number of the CPU _ ap601 in the application processor may be one or more, and fig. 6 takes one CPU as an example. In some embodiments of the present invention, the CPU _ ap601, the memory 602, and the communication interface 603 may be connected by a bus or other means, and fig. 6 illustrates a bus connection as an example.
The communication interface 603 is used for communicating with a modem outside the application processor chip;
wherein, a set of program codes is stored in the memory 602, and the CPU _ ap601 is used for calling the program codes stored in the memory 602, and is used for executing the following operations:
when an abnormal message which is sent by a modem and carries a network abnormal reason is received, acquiring a first protocol stack currently used by the modem, wherein the network abnormal reason is a public data network PDN connection failure;
judging whether the frequency of the network abnormity causes in a preset time period reaches a preset frequency or not;
when the frequency of the network abnormity reason in the preset time period reaches the preset frequency, closing the first protocol stack, and selecting a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem;
starting the second protocol stack, and using the second protocol stack to perform network registration;
and when the network registration of the second protocol stack is successful, the application processor records the current position.
In an alternative embodiment, after the processor 601 starts the second protocol stack and performs network registration using the second protocol stack, the following steps are further performed:
when the network registration of the second protocol stack fails, restoring the default protocol stack switch state in a plurality of protocol stacks supported by the modem;
or, restoring the default protocol stack switch state in a plurality of protocol stacks supported by the modem and simultaneously executing the reset operation on the modem.
In an alternative embodiment, the processor 601, after recording the current location when the network registration of the second protocol stack is successful, further performs the following steps:
when the current position changes, restoring the default protocol stack switch state in a plurality of protocol stacks supported by the modem;
or, restoring the default protocol stack switch state in a plurality of protocol stacks supported by the modem and simultaneously executing the reset operation on the modem.
In an alternative embodiment, processor 601 further performs the steps of:
judging whether the network abnormal reason is reported or not;
when the network abnormal reason is not reported, acquiring a log of PDN connection failure, and reporting the network abnormal reason, the log of PDN connection failure and the current position to a network side;
and/or sending the network abnormity reason to a display device for displaying.
In an optional embodiment, the processor 601 reports the network anomaly reason, the PDN connection failure log, and the current location to a network side, specifically performing the following steps:
and scanning surrounding wifi hotspots, and after establishing communication connection with the wifi hotspots, reporting the network abnormal reason, the PDN connection failure log and the current position to a network side through the wifi hotspots establishing communication connection.
Referring to fig. 7, a schematic structural diagram of another application processor according to an embodiment of the present invention is shown, in which a modem is integrated. CPU _ ap701 of fig. 7 performs the same operation as CPU _ ap601 of fig. 6, except that the interaction of CPU _ ap701 of this figure with the modem is over a bus (whereas fig. 6 is over communication interface 603).
The embodiment of the invention also provides a mobile terminal comprising the application processor, and the mobile terminal comprises but is not limited to a mobile terminal carrying an iOS, Android, Microsoft or other operating systems, such as a mobile phone. Other mobile terminals are also possible, such as a laptop or tablet computer or desktop computer with a touch-sensitive surface (e.g., a touch screen display and/or a touch pad).
In the following discussion, a mobile terminal including a display and a touch-sensitive surface is presented. It should be understood, however, that the mobile terminal may include one or more other physical user interface devices, such as a physical keyboard, mouse, and/or joystick.
Mobile terminals typically support a variety of applications, such as one or more of the following: a drawing application, a rendering application, a word processing application, a web page creation application, a disc editing application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a digital video camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications executable on the mobile terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the mobile terminal may be adjusted and/or varied from one application to the next and/or within the corresponding application. In this way, a common physical architecture of the mobile terminal (such as a touch-sensitive surface) may support various applications with a user interface that is intuitive and clear to the user.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (7)

1. A method for processing network communication function abnormity is characterized by comprising the following steps:
when an application processor receives an abnormal message which is sent by a modem and carries a network abnormal reason, acquiring a first protocol stack currently used by the modem, wherein the network abnormal reason is a public data network PDN connection failure;
the application processor judges whether the frequency of the network abnormity reasons in a preset time period reaches a preset frequency or not;
when the frequency of the network abnormity reason in the preset time period reaches the preset frequency, the application processor closes the first protocol stack and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem;
the application processor starts the second protocol stack and uses the second protocol stack to perform network registration;
when the second protocol stack network registration is successful, the application processor records the current position;
and when the network registration of the second protocol stack fails, the application processor restores the switch state of a default protocol stack in a plurality of protocol stacks supported by the modem and simultaneously executes the reset operation on the modem, and after the modem is reset, the network registration is carried out by using the default protocol stack.
2. The method of claim 1, wherein after the application processor records the current location when the second protocol stack network registration is successful, further comprising:
when the current position changes, the application processor restores default protocol stack switch states in a plurality of protocol stacks supported by the modem;
or, the application processor restores default protocol stack switch states in a plurality of protocol stacks supported by the modem and simultaneously executes reset operation on the modem.
3. The method of claim 1, further comprising:
the application processor judges whether the network abnormal reason is reported;
when the network abnormal reason is not reported, the application processor acquires the log of the PDN connection failure, and reports the network abnormal reason, the log of the PDN connection failure and the current position to a network side;
and/or the application processor sends the network abnormity reason to a display device for displaying.
4. An application processor, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first protocol stack currently used by a modem when receiving an abnormal message which is sent by the modem and carries a network abnormal reason, and the network abnormal reason is the failure of public data network PDN connection;
a judging unit, configured to judge whether the number of times of the PDN connection failure within a preset time period reaches a preset number of times;
a selecting unit, configured to close the first protocol stack and select a second protocol stack, other than the first protocol stack, from multiple supported protocol stacks when the determining unit determines that the number of times of PDN connection failures within the preset time period reaches the preset number of times;
a registration unit, configured to start the second protocol stack and perform network registration using the second protocol stack;
the recording unit is used for recording the current position when the network registration of the second protocol stack is successful;
a recovery unit, configured to recover a default protocol stack switch state in a plurality of protocol stacks supported by the modem and perform a reset operation on the modem at the same time;
the registering unit is further configured to perform network registration using the default protocol stack after the modem is reset.
5. The application processor of claim 4,
the judging unit is further configured to judge whether the network anomaly reason is reported;
the application processor further comprises:
a reporting unit, configured to, when the determining unit determines that the reason for the network anomaly is not reported, obtain a log of the PDN connection failure, and report the reason for the network anomaly, the log of the PDN connection failure, and the current location to a network side;
and/or the reporting unit is used for sending the network abnormity reason to a display device for displaying.
6. A mobile terminal, characterized in that it comprises an application processor according to any of claims 4-5.
7. A storage medium having stored therein program instructions which, when executed by an application processor, implement the method of any one of claims 1 to 3.
CN201810220940.XA 2015-11-24 2015-11-24 Processing method for network communication function abnormity, application processor and mobile terminal Active CN108601018B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810220940.XA CN108601018B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity, application processor and mobile terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510824752.4A CN105491603B (en) 2015-11-24 2015-11-24 Network communicating function abnormal processing method, application processor and mobile terminal
CN201810220940.XA CN108601018B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity, application processor and mobile terminal

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510824752.4A Division CN105491603B (en) 2015-11-24 2015-11-24 Network communicating function abnormal processing method, application processor and mobile terminal

Publications (2)

Publication Number Publication Date
CN108601018A CN108601018A (en) 2018-09-28
CN108601018B true CN108601018B (en) 2021-06-15

Family

ID=55678234

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201510824752.4A Active CN105491603B (en) 2015-11-24 2015-11-24 Network communicating function abnormal processing method, application processor and mobile terminal
CN201810220940.XA Active CN108601018B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity, application processor and mobile terminal

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201510824752.4A Active CN105491603B (en) 2015-11-24 2015-11-24 Network communicating function abnormal processing method, application processor and mobile terminal

Country Status (1)

Country Link
CN (2) CN105491603B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106255142B (en) * 2016-09-05 2019-10-29 努比亚技术有限公司 A kind of mobile terminal and its exception information report method
CN106982450B (en) * 2017-05-27 2020-10-30 奇酷互联网络科技(深圳)有限公司 Communication exception handling method and device and mobile terminal
CN107135519A (en) * 2017-06-15 2017-09-05 广东欧珀移动通信有限公司 The detection method and device of abnormality processing function
CN107295550A (en) * 2017-06-22 2017-10-24 广东欧珀移动通信有限公司 The detection method and device of abnormality processing function

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992949A (en) * 2005-12-26 2007-07-04 三星电子株式会社 Method for acquiring handover network in multi-mode terminal and multi-mode terminal therefor
CN101068437A (en) * 2007-04-03 2007-11-07 中兴通讯股份有限公司 Double-mode mobile terminal standby network switching method
CN101222768A (en) * 2008-01-31 2008-07-16 中兴通讯股份有限公司 Method for user's set acquiring access point name, grouping domain system
CN102413545A (en) * 2011-11-23 2012-04-11 中兴通讯股份有限公司 Network selection method and device of multimode terminal
CN102413529A (en) * 2011-11-28 2012-04-11 青岛海信移动通信技术股份有限公司 Multi-mode (including long term evolution (LTE) mode) application method and device of mobile terminal
EP2420084A4 (en) * 2009-04-13 2012-06-20 Huawei Tech Co Ltd System and method for supporting handovers between different radio access technologies of a wireless communications system
CN102984683A (en) * 2008-04-28 2013-03-20 华为技术有限公司 Method, device and system to achieve switching in wireless network
CN104081826A (en) * 2012-03-16 2014-10-01 Lg电子株式会社 Method and apparatus for processing NAS signaling request in wireless communication system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102317B (en) * 2007-06-29 2010-09-29 中兴通讯股份有限公司 Multi-protocol stack connection device and method
WO2010078255A1 (en) * 2008-12-29 2010-07-08 Interdigital Patent Holdings, Inc. Method and apparatus for tracking area update procedure and eps bearer contexts representation
CN101572899A (en) * 2009-05-31 2009-11-04 中兴通讯股份有限公司 Switching device based on multi-system network and method thereof
US9167373B2 (en) * 2010-10-14 2015-10-20 Nokia Technologies Oy Multiple SIM support with single modem software architecture
CN103582039B (en) * 2012-08-02 2017-12-15 中兴通讯股份有限公司 Mobile phone AT command handling methods and equipment when losing covering and standard switching
US8965373B2 (en) * 2012-12-07 2015-02-24 Broadcom Corporation Mobile terminated call establishment during inter radio access technology (IRAT) re-direction
US9420556B2 (en) * 2013-10-09 2016-08-16 Blackberry Limited Method and apparatus for handling circuit switched calls at a user equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992949A (en) * 2005-12-26 2007-07-04 三星电子株式会社 Method for acquiring handover network in multi-mode terminal and multi-mode terminal therefor
CN101068437A (en) * 2007-04-03 2007-11-07 中兴通讯股份有限公司 Double-mode mobile terminal standby network switching method
CN101222768A (en) * 2008-01-31 2008-07-16 中兴通讯股份有限公司 Method for user's set acquiring access point name, grouping domain system
CN102984683A (en) * 2008-04-28 2013-03-20 华为技术有限公司 Method, device and system to achieve switching in wireless network
EP2420084A4 (en) * 2009-04-13 2012-06-20 Huawei Tech Co Ltd System and method for supporting handovers between different radio access technologies of a wireless communications system
CN102413545A (en) * 2011-11-23 2012-04-11 中兴通讯股份有限公司 Network selection method and device of multimode terminal
CN102413529A (en) * 2011-11-28 2012-04-11 青岛海信移动通信技术股份有限公司 Multi-mode (including long term evolution (LTE) mode) application method and device of mobile terminal
CN104081826A (en) * 2012-03-16 2014-10-01 Lg电子株式会社 Method and apparatus for processing NAS signaling request in wireless communication system

Also Published As

Publication number Publication date
CN105491603B (en) 2018-03-27
CN108601018A (en) 2018-09-28
CN105491603A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
EP3337245B1 (en) Method and apparatus for handling abnormality of network communication function and storage medium
CN105376773B (en) Processing method, application processor and the mobile terminal of network communicating function exception
WO2018107895A1 (en) Network-communication function exception processing method and processing apparatus, terminal device, and computer storage medium
CN108601018B (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN108738054B (en) Processing method for network communication function abnormity, modem, mobile terminal and storage medium
CN105357053A (en) Network communication functional abnormity processing method, application processor and user terminal
CN105357049A (en) Network communication functional abnormity processing method, application processor and mobile terminal
CN105376772A (en) Network communication function anomaly processing method, modem and mobile terminal
CN105338663B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN108307417B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105491604A (en) Network communication function abnormality processing method, modulator-demodulator and user terminal
CN108684054B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN108282804B (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN105376786B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN108347740B (en) Processing method for network communication function abnormity and application processor
CN108462973B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105376873B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105517029A (en) Processing method for network communication function abnormity, application processor, and mobile terminal
CN105491607B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105472648A (en) Network communication function abnormity processing method, modem and mobile terminal
CN105376774A (en) Processing method of network communication function abnormity, modem and mobile terminal
CN105491608A (en) Processing method for network communication function exception, application processor and mobile terminal
CN105491605A (en) Network communication function abnormality processing method, modulator-demodulator and mobile terminal
CN105357704B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105357705A (en) Network communication functional abnormity processing method, application processor and mobile terminal

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant