[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105376775B - Processing method, application processor and the mobile terminal of network communicating function exception - Google Patents

Processing method, application processor and the mobile terminal of network communicating function exception Download PDF

Info

Publication number
CN105376775B
CN105376775B CN201510824862.0A CN201510824862A CN105376775B CN 105376775 B CN105376775 B CN 105376775B CN 201510824862 A CN201510824862 A CN 201510824862A CN 105376775 B CN105376775 B CN 105376775B
Authority
CN
China
Prior art keywords
protocol stack
application processor
abnormal
modem
protocol
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.)
Expired - Fee Related
Application number
CN201510824862.0A
Other languages
Chinese (zh)
Other versions
CN105376775A (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 CN201510824862.0A priority Critical patent/CN105376775B/en
Publication of CN105376775A publication Critical patent/CN105376775A/en
Application granted granted Critical
Publication of CN105376775B publication Critical patent/CN105376775B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • H04W60/04Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration using triggered events

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of processing method of network communicating function exception, including:After the abnormal instruction message that application processor receiving modem is sent, the first currently used protocol stack of the modem is determined;Wherein, the abnormal instruction message indicates that the crash of the first protocol stack causes exception;If the first protocol stack crash causes abnormal number to be more than default number in preset time, the application processor closes first protocol stack and the second protocol stack except first protocol stack is selected from multiple protocol stacks that the modem is supported;The application processor opens the second protocol stack, and carries out network registry using the second protocol stack;If network registry success, the application processor record current location information.The embodiment of the invention also discloses a kind of application processor and mobile terminals.Using the present invention, the exception of network can be quickly detected and recovered.

Description

Processing method, application processor and the mobile terminal of network communicating function exception
Technical field
The present invention relates to the processing method of the communications field more particularly to a kind of network communicating function exception, application processors And mobile terminal.
Background technology
With the development of the communication technology, the type for the communication standard that mobile phone is supported is more and more, such as:One mobile phone is simultaneously It supports the communication standard of 2G, 3G and 4G of different operators, saves the inconvenience for replacing mobile phone.The high speed development of mobile Internet makes Data service occupies absolute proportion, so as to which the effect of the modem in mobile phone and status become more and more important, modem For by data to be sent be converted to radiofrequency signal and by device signal be converted to pending data, processing access layer (AS) and The signaling of Non-Access Stratum (NAS) and with AP processors into line interface etc..It is sufficiently complex in the mobile network environment residing for mobile phone In the case of, mobile phone often switches between different communication standards, during communication standard switches often Be abnormal so that mobile phone can not normal Networked communication, such as when protocol stack crashes.In order to solve can not Networked communication it is different Often, at present frequently with solution be:When mobile phone is moved to the new band of position, updates and ask to network side launch position, Network side again configures mobile phone, recovers the configuration parameter of modem;Or user find for a long time cannot network it is logical After letter, manually mobile terminal is carried out forcing to restart configuration parameter that is extensive or setting modem.But two schemes expend Time it is long, be unfavorable for user experience.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is, provides a kind of processing side of network communicating function exception Method, application processor and mobile terminal.Can solve network communicating function in the prior art be abnormal can not Networked communication feelings Under condition, recover network communicating function and take the problem of long.
In order to solve the above-mentioned technical problem, first aspect of the embodiment of the present invention provides a kind of network communicating function exception Processing method, including:
After the abnormal instruction message that application processor receiving modem is sent, determine that the modem currently makes First protocol stack;Wherein, the abnormal instruction message indicates that the crash of the first protocol stack causes exception;
If first protocol stack crash causes abnormal number to be more than default number in preset time, at the application Device is managed to close first protocol stack and selected from multiple protocol stacks that the modem is supported except the described first association Discuss the second protocol stack of stack;
The application processor opens the second protocol stack, and carries out network registry using the second protocol stack;
If network registry success, the application processor record current location information.
With reference to first aspect, in the first possible implementation, it is described to determine that the modem is currently used The first protocol stack after, the method further includes:
If the first protocol stack crash causes abnormal number to be less than or equal to default number in preset time, described Application processor resets the modem.
With reference to first aspect, it is described to determine that the modem is currently used in second of possible realization method The first protocol stack, including:
Source filename in the abnormal instruction message determines institute according to the wireless access technology RAT currently registered State the first currently used protocol stack of modem.
With reference to first aspect, in the third possible realization method, the method further includes:
If network registry failure or the location information change, the application processor recovers the more of the support The on off state of default protocol stack in a protocol stack or the application processor recover in multiple protocol stacks of the support The on off state of default protocol stack simultaneously resets the modem simultaneously.
Any one with reference to first aspect and in the first to the third possible realization method of first aspect, In four kinds of possible realization methods, the method further includes:
If first protocol stack crash causes abnormal abnormal cause not report, the application processor obtains described the The crash of one protocol stack causes abnormal abnormal cause and daily record;
The abnormal cause, the current location information and the daily record are reported to network side by the application processor And/or the display abnormal cause.
Any one in the 4th kind of possible realization method with reference to first aspect, in the 5th kind of possible realization method In, it is described that the abnormal cause, the current location information and the daily record are reported to network side and included:
It scans the wifi hotspot of surrounding and after communication connection is established with wifi hotspot, passes through the wifi for establishing communication connection The abnormal cause, the current location information and the daily record are reported to network side by hot spot.
Second aspect of the embodiment of the present invention provides a kind of application processor, including:
Determining module, for receiving modem send abnormal instruction message after, determine the modem work as Preceding the first protocol stack used;Wherein, the abnormal instruction message indicates that the first protocol stack crash causes exception;
Selecting module, if for the first protocol stack crash in preset time abnormal number is caused to be more than default time Number closes first protocol stack and removes described first from the selection in multiple protocol stacks that the modem is supported The second protocol stack of protocol stack;
Registration module for opening the second protocol stack, and carries out network registry using the second protocol stack;
If logging modle for network registry success, records current location information.
With reference to second aspect, in the first possible implementation, the application processor further includes:
Reseting module, if it is pre- for the first protocol stack crash in preset time abnormal number to be caused to be less than or equal to If number, reset the modem.
With reference to second aspect, in second of possible realization method, the determining module is specifically used for:
Source filename in the abnormal instruction message determines institute according to the wireless access technology RAT currently registered State the first currently used protocol stack of modem.
With reference to second aspect, in the third possible realization method, the application processor further includes:
Recovery module if changing for network registry failure or the location information, recovers the more of the support The on off state of default protocol stack in a protocol stack recovers opening for default protocol stack in multiple protocol stacks of the support Off status simultaneously resets the modem simultaneously.
With reference to second aspect and second aspect first to the third possible realization method in any one, In four kinds of possible realization methods, the application processor further includes:
Reporting module if for first protocol stack crash abnormal abnormal cause is caused not report, obtains described the The crash of one protocol stack causes abnormal abnormal cause and daily record;And by the abnormal cause, the current location information and The daily record is reported to network side and/or the display abnormal cause.
It is described by institute in the 5th kind of possible realization method with reference to the 4th kind of possible realization method of second aspect Abnormal cause, the current location information and the daily record is stated to be reported to network side and include:
It scans the wifi hotspot of surrounding and after communication connection is established with wifi hotspot, passes through the wifi for establishing communication connection The abnormal cause, the current location information and the daily record are reported to network side by hot spot.
The embodiment of the present invention provides a kind of mobile terminal, including the application processor described in above-mentioned any one.
Implement the embodiment of the present invention, have the advantages that:
Application processor receives the abnormal instruction that modem is sent when the crash of the first protocol stack causes exception and disappears Breath if the first protocol stack crash causes abnormal number to be more than default number in preset time, closes modem The first currently used protocol stack, selection is in addition to currently used protocol stack from multiple protocol stacks of modem support Second protocol stack, open second protocol stack simultaneously use second protocol stack registered network, in network in registration, record current Location information.It can not so be made in modem during normal communication by way of replacing protocol stack and re-starting network registry Modem autorecovery communicates normal, and it is long to avoid the problem that pressure takes caused by restarting mobile phone or location updating, Reduce the time of network disaster recovery.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram of the processing method of network communicating function exception provided in an embodiment of the present invention;
Fig. 2 is a kind of another flow signal of the processing method of network communicating function exception provided in an embodiment of the present invention Figure;
Fig. 3 is a kind of another flow signal of the processing method of network communicating function exception provided in an embodiment of the present invention Figure;
Fig. 4 is a kind of structure diagram of application processor provided in an embodiment of the present invention;
Fig. 5 is a kind of another structure diagram of application processor provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment belongs to the scope of protection of the invention.
It is that a kind of flow of processing method of network communicating function exception provided in an embodiment of the present invention is illustrated referring to Fig. 1 Figure, in embodiments of the present invention, the described method includes:
After the abnormal instruction message that S101, application processor receiving modem are sent, the modem is determined The first currently used protocol stack.
Wherein, the abnormal instruction message indicates that the crash of the first protocol stack causes exception.
Specifically, application processor full name is MAP, (Multimedia Application Processor, multimedia should With processor, abbreviation MAP), for extending the ultra-large collection of audio and video function and special purpose interface on the basis of low power consumption CPU It is the important component in smart mobile phone, application processor is general and baseband processor is two independent chips into circuit.Modulation Demodulator (Modulator and Demodulator, abbreviation Modem) is used to baseband signal being converted to radiofrequency signal, will penetrate Frequency signal is converted to baseband signal, the signaling of processing access layer (AS) and Non-Access Stratum (NAS) and is connect with AP processors Mouthful etc.;Modem supports various protocols stack.Protocol stack represents the summation of the corresponding various protocols of some communication standard, example Such as:Protocol stack includes global system for mobile communications (Global System for Mobile Communication, abbreviation GSM) Protocol stack, enhanced data rates for gsm evolution technology (Enhanced Data Rate for GSM Evolution, abbreviation EDGE) protocol stack, high speed downlink packet access technology (High Speed Downlink Packet Access, abbreviation HSPDA) Code Division Multiple Access (the Time Division-Synchronous Code Division of protocol stack, time division synchronous Multiple Access, abbreviation TD-SCDMA) protocol stack, time division duplex Long Term Evolution LTE (Time-Division Duplex Long Term Evolution, abbreviation TDD-LTE) protocol stack, frequency division duplex Long Term Evolution (Frequency-Division Duplex, abbreviation FDD-LTE) protocol stack etc..Again including multiple sub-protocol stacks, such as TD- below each communication standard protocol stack LTE protocol stack includes physical layer protocol stack, media access control layer (Media Access Control, abbreviation MAC) agreement again Stack, wireless spread-spectrum technology (Radio Link Control, abbreviation RLC) protocol stack, wireless heterogeneous networks (Radio Resource Contro, abbreviation RRC) protocol stack and network attached storage (Network Attached Storage, abbreviation NAS) protocol stack Deng details are not described herein again.
It should be noted that modem can be integrated in the inside of application processor AP or independently of should With a chip of processor, the present invention is not restricted.
Modem when an exception is detected, determines the first currently used protocol stack, and determines whether the first association Exception caused by stack crashes is discussed, if so, sending abnormal instruction message to application processor, may include in the exception instruction message The filename and abnormal cause of abnormal source file.It, can be according to source therein after application processor receives abnormal instruction message Filename determines the first protocol stack, and determines that abnormal cause crashes for the first protocol stack.
If the first protocol stack crash causes abnormal number to be more than default number in S102, preset time, described Application processor closes first protocol stack and removes institute from the selection in multiple protocol stacks that the modem is supported State the second protocol stack of the first protocol stack.
In specific implementation, application processor can record time and the abnormal cause that each protocol stack is abnormal, including The crash of one protocol stack causes abnormal time and number.According to record, it can determine whether that the crash of the first protocol stack causes in preset time Whether abnormal number is more than default number.Wherein, preset time and default number are pre-set parameter.
If specifically, the crash of the first protocol stack causes abnormal number to be more than default number in preset time, represent First protocol stack often crashes in a short time, then application processor needs to close the first protocol stack, prevents what protocol stack from crashing Problem repeated, and open other protocol stacks to connect mobile network.Application processor can be from multiple protocol stacks of support Selection one remove the first protocol stack second protocol stack, wherein second protocol stack should be in preset time crash cause it is abnormal Number is less than or equal to the protocol stack of the default number.
In some feasible embodiments, the strategy of modem selection can be:Selection is lower than the first protocol stack The protocol stack of level-one is as second protocol stack;Or the signal strength of the corresponding cell signal of each protocol stack of measurement surrounding, it will believe The protocol stack of number maximum intensity is as second protocol stack;Or protocol stack more higher leveled than the first protocol stack is selected as second protocol Stack;Or using the definite second protocol stack of other strategies, the present invention is not restricted.
S103, the application processor open the second protocol stack, and carry out network note using the second protocol stack Volume.
Specifically, after closing the first protocol stack, mobile terminal is by there is service state to be converted to non-service state, using processing Device opens the second protocol stack of selection, using second protocol stack carry out network registry, such as the process registered of LTE network as:It moves Dynamic terminal initiates attach request (attach request) to network side, if network side allows mobile terminal to access, to movement eventually End returns to attachment response (attach accept), represents network registry success, and mobile terminal has been converted to clothes by non-service state Business state;If network side does not allow mobile terminal to access, refusal/error message is returned to mobile terminal, represents that network registry loses It loses.
If the success of S104, network registry, the application processor record current location information.
Specifically, location information represents that logical place, location information can be small to mobile terminal in the mobile communication network Area identifies or regional location code or position tracking region etc., and the present invention is not restricted.If use second protocol stack registered network Success, then record current location information.
Implement the embodiment of the present invention, application processor receives modem and causes exception in the crash of the first protocol stack When the abnormal instruction message that sends, if the first protocol stack crash causes abnormal number to be more than default time in preset time Number closes the first currently used protocol stack of modem, and selection, which removes, in the multiple protocol stacks supported from modem works as Second protocol stack outside the preceding protocol stack used opens second protocol stack and uses second protocol stack registered network, registering During upper network, current location information is recorded.So modem can not normal communication when by replacing protocol stack again Carrying out the mode of network registry makes the normal of modem autorecovery communication, avoids forcing to restart mobile phone or location updating is made Into take the problem of long, reduce time of network disaster recovery.
It is a kind of another flow of the processing method of network communicating function exception provided in an embodiment of the present invention referring to Fig. 2 Schematic diagram, in embodiments of the present invention, the described method includes:
S201, modem detect that the crash of the first protocol stack causes exception.
Specifically, modem is mounted in mobile phone, it can be encapsulated as in application processor or be handled independently of application Device, the present invention are not restricted.Modem is mainly used in net for the mutual conversion between baseband signal and radiofrequency signal Network communication function.
Specifically, protocol stack represents the summation of the corresponding various protocols stack of some communication standard, such as:Protocol stack includes Gsm protocol stack, EDGE protocol stacks, HSPDA protocol stacks, TD-SCDMA protocol stacks, TDD-LTE protocol stacks, FDD-LTE protocol stacks Deng, again including multiple sub-protocol stacks below each communication standard protocol stack, such as:TD-LTE protocol stacks include physical layer protocol again Stack, media access control layer MAC protocol stack, wireless spread-spectrum technology rlc protocol stack, RRC protocol stacks, PDCP protocol stacks and NAS associations Discuss stack etc..Details are not described herein again.
Modem when an exception is detected, determines the first currently used protocol stack, and determines whether the first association It discusses abnormal caused by stack crashes.In some feasible embodiments, protocol stack can be checked in communication protocol in the process of running Signaling parameter and parameter combination, it is different to the configuration of these parameters in different networks or cell.When some cell or network During the parameter that the parameter of configuration is supported beyond protocol stack, protocol stack can be caused to crash.In addition, some protocol stacks fail to detect in advance EMS memory error or protocol stack loophole in itself protocol stack may also be caused to crash.Wherein common EMS memory error may include Memory overflow, memory overwriting access, quote wild pointer, the variable, stack overflow, the byte-aligned problem that access no initializtion etc..
S202, the modem send abnormal instruction message to application processor, indicate at the application processor Manage this exception.
Specifically, this abnormal method of modem instruction application processor processes can be:Modem to Application processor sends abnormal instruction message, which indicates that the crash of the first protocol stack causes exception.Using processing Device receives the exception indication information afterwards, it is necessary to handle corresponding exception.Wherein, can be included in abnormal instruction message The source filename of first protocol stack, the form present invention of abnormal instruction message are not restricted, and can be utilized and be expanded in existing message The mode of field is opened up to realize to realize or construct new message.It for example, can be according to " source file:The form of line number " is realized.
S203, application processor source filename in the abnormal instruction message or according to currently registering RAT determines the first currently used protocol stack of the modem.
In some feasible embodiments, application processor obtains the first currently used protocol stack of modem Method can be:The state flag bit of presentation protocol stack obtains currently used first in application processor inquiry modem Protocol stack, such as flag bit 1 represent corresponding protocol stack as opening, and flag bit 0 represents corresponding protocol stack to close shape State.
In other feasible embodiments, application processor can according to the source filename in abnormal instruction message, For example, if source filename is lte_rrc.c, it may determine that the first protocol stack is lte protocol stacks according to keyword lte therein. Alternatively, it can determine described first according to the wireless access technology (Radio Access Technology, RAT) currently registered Protocol stack.
S204, the application processor judge that the first protocol stack crash causes abnormal number to be more than in preset time Default number if so, performing step S205, otherwise resets the modem.
In specific implementation, application processor can record time and the abnormal cause that each protocol stack is abnormal, including The crash of one protocol stack causes abnormal time and number.According to record, it can determine whether that the crash of the first protocol stack causes in preset time Whether abnormal number is more than default number.Wherein, preset time and default number are pre-set parameter.
If specifically, the crash of the first protocol stack causes abnormal number to be more than default number in preset time, represent First protocol stack often crashes in a short time, and application processor can perform step S205.If the first agreement in preset time Stack crash causes abnormal number to be less than or equal to default number, represents time that the first protocol stack crashes in a short time It counts and infrequently, application processor can be attempted to solve abnormal by resetting modem at this time.
S205, the application processor are closed first protocol stack and are supported from the modem multiple Selection is except the second protocol stack of first protocol stack in protocol stack.
If specifically, the crash of the first protocol stack causes abnormal number to be more than default number in preset time, represent First protocol stack often crashes in a short time, then application processor needs to close the first protocol stack, prevents what protocol stack from crashing Problem repeated, and open other protocol stacks to connect mobile network.Application processor can be supported more from modem A second protocol stack for removing the first protocol stack is selected in a protocol stack, wherein second protocol stack should be crashed in preset time Abnormal number is caused to be less than or equal to the protocol stack of the default number.
In some feasible embodiments, the strategy of application processor selection can be:Selection is lower than the first protocol stack The protocol stack of level-one is as second protocol stack;Or the signal strength of the corresponding cell signal of each protocol stack of measurement surrounding, it will believe The protocol stack of number maximum intensity is as second protocol stack;Or protocol stack more higher leveled than the first protocol stack is selected as second protocol Stack;Or using the definite second protocol stack of other strategies, the present invention is not restricted.
S206, the application processor open the second protocol stack, and carry out network note using the second protocol stack Volume.
Specifically, after closing the first protocol stack, mobile terminal is by there is service state to be converted to non-service state, using processing Device opens the second protocol stack of selection, carries out network registry using second protocol stack, the process of network registry is:It moves to network Attach request (attach request) is initiated in side, if network side allows mobile terminal to access, returns to attachment to mobile terminal and rings It answers (attach accept), represents network registry success, mobile terminal has been converted to service state by non-service state;If net Network side does not allow mobile terminal to access, and refusal/error message is returned to mobile terminal, represents network registry failure.
If the success of S207, network registry, the application processor record current location information, then perform S210, and Start the concurrent process of S208.
Specifically, location information represents the mark for the logical place planned in advance in mobile communications network, for example, position is believed Breath includes cell ID or location area code etc..If using the success of second protocol stack registered network, current position is recorded Information.
S208, the application processor judge whether location information changes;If the determination result is YES, step is performed Otherwise S209 continues to execute step S208.
Specifically, application processor periodically obtains location information, upper obtain in the location information that currently obtains and once The location information taken performs S209 compared to when changing, and otherwise continues to obtain location information.For example, location information is cell Mark, mobile terminal are moved to another cell by a cell, represent that location information changes;Location information is the band of position Code, mobile terminal are moved to another band of position by a band of position, show that location information changes.Application processor The cycle present invention for obtaining location information is not restricted, and can be configured according to actual demand.
S209, the application processor recover the default protocol stack in multiple protocol stacks of the support on off state or The application processor recovers described in the on off state of the default protocol stack in multiple protocol stacks of the support and simultaneously reset Then modem performs S210.
Specifically, one in multiple protocol stacks that default protocol stack is supported for modem, it is pre-set association Stack is discussed, the association that all regions set the protocol stack of same acquiescence to be used as modem initial selected can be directed to herein Stack is discussed, single area can also be directed to or different default protocol stacks, this hair are set respectively in some region of multiple areas Bright embodiment is not limited in any way.Wherein, a kind of feasible embodiment is:It can be with each agreement of Premises modem The priority level of stack, such as:The priority level of each protocol stack can be set when modem dispatches from the factory;Alternatively, can be with During modem is configured in mobile terminal and is initialized, each protocol stack is used according to mobile terminal When network connection and network signal intensity situation set priority level;Etc..Another feasible embodiment is:It can be with The priority level of each protocol stack of modem is adjusted flexibly, such as:It can be according to mobile terminal in some band of position Network connection and network signal intensity situation during using each protocol stack set priority level;It alternatively, can be according to mobile whole The order of the common network formats at end sets the priority level of each protocol stack;It waits.It should be noted that some protocol stack Priority level is higher, illustrates that mobile terminal is based on the protocol stack and can obtain better network connection or stronger network signal. The highest protocol stack of priority level is commonly known as default protocol stack in modem, and modem be generally also according to Priority level realizes the network registry and Web vector graphic of mobile terminal from high to low order using each protocol stack.
If registering upper network not successfully using second protocol stack, application processor is according to previously known default protocol stack On off state recovers default protocol stack switch state or carries out reset operation to modem simultaneously.It, should after resetting operation It is worked with processor using default protocol stack.It is understood that default protocol stack herein both may be the first agreement Stack, it is also possible to other protocol stacks beyond the first protocol stack.It should be noted that if default protocol stack is the in the present embodiment One protocol stack (protocol stack that is i.e. pent, causing dedicated bearer processing generation exception), then, this step is equivalent to again Open the first protocol stack.
S210, the application processor judge first protocol stack crash cause abnormal abnormal cause whether on Report.
Specifically, the abnormal cause of Network Abnormal can be represented by reason-code, different abnormal causes corresponds to not With the reason for code, while abnormal cause can text description by way of represent, if the first protocol stack crash cause exception Abnormal cause reported, continue to execute S201, otherwise, perform S211.
S211, the application processor obtain the first protocol stack crash and cause abnormal abnormal cause and daily record.
In the embodiment of the present invention, abnormal cause crashes for the first protocol stack, and daily record may include abnormal time of origin, abnormal hair Location information when raw, information, abnormality processing mode, the abnormality processing result for causing abnormal protocol stack (i.e. the first protocol stack) Etc. information.
The abnormal cause, the current location information and the daily record are reported to by S212, the application processor Network side and/or the display abnormal cause.
Specifically, abnormal cause, current location information and daily record are reported to network side by application processor, wherein, it can In the case of connecting wifi hotspot in mobile terminal, above- mentioned information is reported to by network side by wifi hotspot, to save Flow.Or application processor can also include abnormal cause on the display screen of mobile terminal, be checked for user.
It should be noted that the S208 and S210 after S207 are performed parallel.
Implement the embodiment of the present invention, application processor is connected to the crash of the first protocol stack and the exception sent during exception is caused to refer to Show message, if the first protocol stack crash causes abnormal number to be more than default number in preset time, closing currently makes First protocol stack, second protocol stack of the selection in addition to currently used protocol stack, is opened from multiple protocol stacks of support It opens second protocol stack and uses second protocol stack registered network, in network on successful registration, record current location information, and When change in location or network registry fail, recover the on off state of default protocol stack or restart modem simultaneously.So Modem can not normal communication when made by way of replacing protocol stack and re-starting network registry modem from It moves and recovers the normal of communication, it is long to avoid the problem that pressure takes caused by restarting mobile phone or location updating, reduces network event Hinder the time recovered.
It is a kind of another flow of the processing method of network communicating function exception provided in an embodiment of the present invention referring to Fig. 3 Schematic diagram, in embodiments of the present invention, the described method includes:
S301, modem detect that the crash of the first protocol stack causes exception.
S302, the modem send abnormal instruction message to application processor, indicate at the application processor Manage this exception.
S303, application processor source filename in the abnormal instruction message or according to currently registering RAT determines the first currently used protocol stack of the modem.
S304, the application processor judge that the first protocol stack crash causes abnormal number to be more than in preset time Default number if so, performing step S305, otherwise resets the modem.
S305, the application processor are closed first protocol stack and are supported from the modem multiple Selection is except the second protocol stack of first protocol stack in protocol stack.
S306, the application processor open the second protocol stack, and carry out network note using the second protocol stack Volume.
In specific implementation, the specific embodiment of step S301 to S306 can refer to step S201 in embodiment illustrated in fig. 2 To the associated description of S206, this will not be repeated here.
S307, the application processor judge whether network registry succeeds, if so, going to S308, otherwise go to S309.
Specifically, if application processor performs S308, if application processor using network on second protocol stack successful registration It registers upper network not successfully using second protocol stack, performs S309.
S308, the application processor record current location information, then perform S312, and start and S310's and advance Journey.
Specifically, location information represents the mark for the logical place planned in advance in mobile communications network, for example, position is believed Breath includes cell ID or location area code etc..
S309, the application processor recover the default protocol stack in multiple protocol stacks of the support on off state or The application processor recovers described in the on off state of the default protocol stack in multiple protocol stacks of the support and simultaneously reset Modem.
Specifically, if application processor is failed registered network using second protocol stack, application processor determines to write from memory Recognize protocol stack, according to previously known default protocol stack switch state, recover default protocol stack switch state or simultaneously to modulation Demodulator carries out reset operation.A pre-set association in multiple protocol stacks that default protocol stack is supported for modem Discuss stack.After carrying out reset operation, application processor carries out network registry using default protocol stack, after network registry success, uses Default protocol stack works.
S310, the application processor judge whether location information changes;If the determination result is YES, step is performed Otherwise S311 continues to execute step S310.
Specifically, application processor periodically obtains location information, upper obtain in the location information that currently obtains and once The location information taken performs S311 compared to when changing, and otherwise continues to obtain location information.For example, location information is cell Mark, mobile terminal are moved to another cell by a cell, represent that location information changes;Location information is the band of position Code, mobile terminal are moved to another band of position by a band of position, show that location information changes.Application processor The cycle present invention for obtaining location information is not restricted, and can be configured according to actual demand.
S311, the application processor recover the default protocol stack in multiple protocol stacks of the support on off state or The application processor recovers described in the on off state of the default protocol stack in multiple protocol stacks of the support and simultaneously reset Then modem performs S312.
It is each in the multiple protocol stacks for causing and being supported before exception specifically, application processor the first protocol stack of acquisition crashes The current switch states of each protocol stack in multiple protocol stacks of support are restored to just by the corresponding initial switch state of protocol stack Beginning on off state.Modem support multiple protocol stacks every time only there are one protocol stack be opening, remaining agreement Stack is in off state.
S312, the application processor judge first protocol stack crash cause abnormal abnormal cause whether on Report if being judged as NO, performs S313.
Specifically, the abnormal cause of Network Abnormal can be represented by reason-code, different abnormal causes corresponds to not With the reason for code, while abnormal cause can text description by way of represent, if the first protocol stack crash cause exception Abnormal cause reported, then this abnormality processing terminates, otherwise, perform S313.
S313, the application processor obtain the first protocol stack crash and cause abnormal abnormal cause and daily record.
In the embodiment of the present invention, abnormal cause crashes for the first protocol stack, and daily record may include abnormal time of origin, abnormal hair Location information when raw, information, abnormality processing mode, the abnormality processing result for causing abnormal protocol stack (i.e. the first protocol stack) Etc. information.
The abnormal cause, the current location information and the daily record are reported to by S314, the application processor Network side and/or the display abnormal cause.
Specifically, abnormal cause, current location information and daily record are reported to network side by application processor, wherein, it can In the case of connecting wifi hotspot in mobile terminal, above- mentioned information is reported to by network side by wifi hotspot, to save Flow.Or application processor can also include abnormal cause on the display screen of mobile terminal, be checked for user.
It should be noted that after having performed S308, execution S310 and S312 that can be parallel.
Implement the embodiment of the present invention, application processor is connected to the crash of the first protocol stack and the exception sent during exception is caused to refer to Show message, if the first protocol stack crash causes abnormal number to be more than default number in preset time, closing currently makes First protocol stack, second protocol stack of the selection in addition to currently used protocol stack, is opened from multiple protocol stacks of support It opens second protocol stack and uses second protocol stack registered network, in network on successful registration, record current location information, and When change in location or network registry fail, recover the on off state of default protocol stack or restart modem simultaneously.So Modem can not normal communication when made by way of replacing protocol stack and re-starting network registry modem from It moves and recovers the normal of communication, it is long to avoid the problem that pressure takes caused by restarting mobile phone or location updating, reduces network event Hinder the time recovered.
It is a kind of structure diagram of application processor provided in an embodiment of the present invention, in the embodiment of the present invention referring to Fig. 4 In, the application processor 4 includes:Determining module 401, selecting module 402, registration module 403, logging modle 404.
Determining module 401, for receiving modem send abnormal instruction message after, determine the modem The first currently used protocol stack;Wherein, the abnormal instruction message indicates that the first protocol stack crash causes exception.
Selecting module 402, if it is default for the first protocol stack crash in preset time abnormal number to be caused to be more than Number, close first protocol stack and from the selection in multiple protocol stacks that the modem is supported except described The second protocol stack of first protocol stack.
Registration module 403 for opening the second protocol stack, and carries out network registry using the second protocol stack.
If logging modle 404 for network registry success, records current location information.
The embodiment of the present invention and embodiment of the method one are based on same design, and the technique effect brought is also identical, specific former Reason refer to the description of embodiment of the method one, and details are not described herein again.
Optionally, application processor 4 further includes:
Reseting module, if it is pre- for the first protocol stack crash in preset time abnormal number to be caused to be less than or equal to If number, reset the modem.
Optionally, determining module 401 can be specifically used for:
Source filename in the abnormal instruction message determines institute according to the wireless access technology RAT currently registered State the first currently used protocol stack of modem.
Optionally, application processor 4 may also include:
Recovery module if changing for network registry failure or the location information, recovers the more of the support The on off state of default protocol stack in a protocol stack recovers opening for default protocol stack in multiple protocol stacks of the support Off status simultaneously resets the modem simultaneously.
Optionally, application processor 4 may also include:
Reporting module if for first protocol stack crash abnormal abnormal cause is caused not report, obtains described the The crash of one protocol stack causes abnormal abnormal cause and daily record;And by the abnormal cause, the current location information and The daily record is reported to network side and/or the display abnormal cause.
Optionally, reporting module can be used for:
It scans the wifi hotspot of surrounding and after communication connection is established with wifi hotspot, passes through the wifi for establishing communication connection The abnormal cause, the current location information and the daily record are reported to network side by hot spot.
The embodiment of the present invention and embodiment of the method two and three are based on same design, and the technique effect brought is also identical, tool Body principle refer to the description of embodiment of the method two and three, and details are not described herein again.
It, in this embodiment, should for a kind of another structure diagram of application processor of the embodiment of the present invention referring to Fig. 5 With the processing method of the network communicating function exception described in processor is used to implement Fig. 1, application processor 5 includes CPU501, deposits Reservoir 502 and communication interface 503, the quantity of the CPU501 in application processor can be one or more, and Fig. 5 is with a CPU Exemplified by.In some embodiments of the present invention, CPU501, memory 502 and communication interface 503 can be connected by bus or other modes It connects, in Fig. 5 by taking bus connects as an example.
Wherein, batch processing code is stored in memory 502, and CPU501 is used to call the journey stored in memory 502 Sequence code, for performing following operation:
After the abnormal instruction message that receiving modem is sent, the first currently used association of the modem is determined Discuss stack;Wherein, the abnormal instruction message indicates that the crash of the first protocol stack causes exception;
If first protocol stack crash causes abnormal number to be more than default number in preset time, described the is closed One protocol stack and the second protocol for selecting to remove first protocol stack from multiple protocol stacks that the modem is supported Stack;
The second protocol stack is opened, and network registry is carried out using the second protocol stack;
If network registry success, records current location information.
In some embodiments of the invention, CPU501 performs the first agreement for determining that the modem is currently used After stack, it may also be used for:
If the first protocol stack crash causes abnormal number to be less than or equal to default number in preset time, reset The modem.
In some embodiments of the invention, CPU501 perform it is described determine the modem it is currently used the One protocol stack, including:
Source filename in the abnormal instruction message determines institute according to the wireless access technology RAT currently registered State the first currently used protocol stack of modem.
In some embodiments of the invention, CPU501 is additionally operable to perform:
If network registry failure or the location information change, recover silent in multiple protocol stacks of the support Recognize the on off state of protocol stack or the default protocol stack in multiple protocol stacks of the recovery support and reset the modulation simultaneously Demodulator.
In some embodiments of the invention, CPU501 is additionally operable to perform:
If the first protocol stack crash causes abnormal abnormal cause not report, obtain the first protocol stack crash and draw Play abnormal abnormal cause and daily record;
The abnormal cause, the current location information and the daily record are reported to described in network side and/or display Abnormal cause.
In some embodiments of the invention, what CPU501 was performed is described by the abnormal cause, the current position Information and daily record, which are reported to network side, to be included:
It scans the wifi hotspot of surrounding and after communication connection is established with wifi hotspot, passes through the wifi for establishing communication connection The abnormal cause, the current location information and the daily record are reported to network side by hot spot.
The embodiment of the present invention additionally provides a kind of mobile terminal for including above application processor, and mobile terminal is included but not It is limited to carryOr the mobile terminal of other operating systems, such as mobile electricity Words.Can also be other mobile terminals, such as with the above-knee of touch sensitive surface (for example, touch-screen display and/or Trackpad) Type computer or tablet computer or desktop computer.
In the following discussion, a kind of mobile terminal including display and touch sensitive surface is described.It should be appreciated, however, that Mobile terminal can include other one or more physical user-interface devices, such as physical keyboard, mouse and/or operation lever.
Mobile terminal usually supports a variety of application programs, it is such as following in one or more:Picture application program is presented Application program, word-processing application, webpage create application program, disk editor application program, spreadsheet applications, trip Play application program, telephony application, videoconference application, email application, instant message application program, forging Application program, photograph management application program, digital camera applications program, digital video camcorder application program, network are supported in refining Viewer applications, digital music player application, and/or video frequency player application program.
At least one shared physical user-interface device can be used in the various application programs that can be performed on mobile terminals, Such as touch sensitive surface.The corresponding information of the one or more functions and display of touch sensitive surface on mobile terminals can be answered from one kind It is adjusted with program and/or is changed to a kind of lower application program and/or is adjusted and/or changes in corresponding application programs.In this way, The shared physical structure (such as touch sensitive surface) of mobile terminal can be propped up using clearly user interface directly perceived for a user Hold various application programs.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosed power for being only a kind of preferred embodiment of the present invention, the present invention cannot being limited with this certainly Sharp scope one of ordinary skill in the art will appreciate that realizing all or part of flow of above-described embodiment, and is weighed according to the present invention Profit requires made equivalent variations, still falls within and invents covered scope.

Claims (11)

1. a kind of processing method of network communicating function exception, which is characterized in that including:
After the abnormal instruction message that application processor receiving modem is sent, determine that the modem is currently used First protocol stack;Wherein, the abnormal instruction message indicates that the crash of the first protocol stack causes exception;
If the first protocol stack crash causes abnormal number to be more than default number, the application processor in preset time It closes first protocol stack and is selected from multiple protocol stacks that the modem is supported except first protocol stack Second protocol stack;
The application processor opens the second protocol stack, and carries out network registry using the second protocol stack;
If network registry success, the application processor record current location information;
If registration failure, the application processor recovers the on off state of the default protocol stack in multiple protocol stacks of the support And the modem is resetted simultaneously, carry out network registry using the default protocol stack.
2. according to the method described in claim 1, it is characterized in that, it is described determine the modem it is currently used first After protocol stack, the method further includes:
If the first protocol stack crash causes abnormal number to be less than or equal to default number, the application in preset time Modem described in processor reset.
3. according to the method described in claim 1, it is characterized in that, it is described determine the modem it is currently used first Protocol stack, including:
Source filename in the abnormal instruction message determines the tune according to the wireless access technology RAT currently registered The first currently used protocol stack of modulator-demodulator.
4. the method as described in claim 1, which is characterized in that the method further includes:
If the location information changes, the application processor recovers the default protocol in multiple protocol stacks of the support The on off state of stack or the application processor recover the on off state of the default protocol stack in multiple protocol stacks of the support And the modem is resetted simultaneously.
5. such as Claims 1-4 any one of them method, which is characterized in that the method further includes:
If the first protocol stack crash causes abnormal abnormal cause not report, the application processor obtains first association View stack crash causes abnormal abnormal cause and daily record;
The application processor by the abnormal cause, the current location information and the daily record be reported to network side and/ Or the display abnormal cause.
6. a kind of application processor, which is characterized in that including:
Determining module, for receiving modem send abnormal instruction message after, determine that the modem currently makes First protocol stack;Wherein, the abnormal instruction message indicates that the first protocol stack crash causes exception;
Selecting module, if for the first protocol stack crash in preset time abnormal number is caused to be more than default number, It closes first protocol stack and removes first agreement from the selection in multiple protocol stacks that the modem is supported The second protocol stack of stack;
Registration module for opening the second protocol stack, and carries out network registry using the second protocol stack;
If logging modle for network registry success, records current location information;
If recovery module for registration failure, recovers the on off state of the default protocol stack in multiple protocol stacks of the support And the modem is resetted simultaneously;
The registration module is additionally operable to default protocol stack in the multiple protocol stacks for recovering the support in the recovery module After on off state simultaneously resets the modem simultaneously, the default protocol stack is used to carry out network registry.
7. application processor as claimed in claim 6, which is characterized in that the application processor further includes:
Reseting module, if it is default for the first protocol stack crash in preset time abnormal number to be caused to be less than or equal to Number resets the modem.
8. application processor as claimed in claim 6, which is characterized in that the determining module is specifically used for:
Source filename in the abnormal instruction message determines the tune according to the wireless access technology RAT currently registered The first currently used protocol stack of modulator-demodulator.
9. application processor as claimed in claim 6, which is characterized in that
The recovery module changes if being additionally operable to the location information, recovers silent in multiple protocol stacks of the support The on off state of the on off state for recognizing protocol stack or the default protocol stack in the multiple protocol stacks for recovering the support is simultaneously while multiple The position modem.
10. such as claim 6 to 9 any one of them application processor, which is characterized in that the application processor further includes:
Reporting module if for first protocol stack crash abnormal abnormal cause is caused not report, obtains first association View stack crash causes abnormal abnormal cause and daily record;And by the abnormal cause, the current location information and described Daily record is reported to network side and/or the display abnormal cause.
11. a kind of mobile terminal, which is characterized in that the mobile terminal includes answering as described in claim 6-10 any one Use processor.
CN201510824862.0A 2015-11-24 2015-11-24 Processing method, application processor and the mobile terminal of network communicating function exception Expired - Fee Related CN105376775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510824862.0A CN105376775B (en) 2015-11-24 2015-11-24 Processing method, application processor and the mobile terminal of network communicating function exception

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510824862.0A CN105376775B (en) 2015-11-24 2015-11-24 Processing method, application processor and the mobile terminal of network communicating function exception

Publications (2)

Publication Number Publication Date
CN105376775A CN105376775A (en) 2016-03-02
CN105376775B true CN105376775B (en) 2018-05-29

Family

ID=55378484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510824862.0A Expired - Fee Related CN105376775B (en) 2015-11-24 2015-11-24 Processing method, application processor and the mobile terminal of network communicating function exception

Country Status (1)

Country Link
CN (1) CN105376775B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686638A (en) * 2016-12-13 2017-05-17 广东欧珀移动通信有限公司 Network communication function abnormality processing method and network communication function abnormality processing device
CN108008800B (en) * 2017-11-29 2022-02-15 锐捷网络股份有限公司 Reset request processing method, device and equipment
CN110471832B (en) * 2019-06-25 2024-05-07 平安科技(深圳)有限公司 Processing method and device for program running and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102243698A (en) * 2010-05-13 2011-11-16 康佳集团股份有限公司 Method for realizing information security of intelligent terminal and intelligent terminal
CN103516546A (en) * 2013-08-19 2014-01-15 北京佳讯飞鸿电气股份有限公司 IP terminal device management system and method for double-center networking
CN103841615A (en) * 2012-11-22 2014-06-04 三星电子株式会社 Apparatus and method for selecting network in communication system
CN104081826A (en) * 2012-03-16 2014-10-01 Lg电子株式会社 Method and apparatus for processing NAS signaling request in wireless communication system
CN104902524A (en) * 2014-03-06 2015-09-09 中兴通讯股份有限公司 Method for terminal to automatically switch data link and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060007882A (en) * 2004-07-22 2006-01-26 주식회사 스카이텔레텍 Method for mode change between systems in multi-mode mobile phone in idle state

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102243698A (en) * 2010-05-13 2011-11-16 康佳集团股份有限公司 Method for realizing information security of intelligent terminal and intelligent terminal
CN104081826A (en) * 2012-03-16 2014-10-01 Lg电子株式会社 Method and apparatus for processing NAS signaling request in wireless communication system
CN103841615A (en) * 2012-11-22 2014-06-04 三星电子株式会社 Apparatus and method for selecting network in communication system
CN103516546A (en) * 2013-08-19 2014-01-15 北京佳讯飞鸿电气股份有限公司 IP terminal device management system and method for double-center networking
CN104902524A (en) * 2014-03-06 2015-09-09 中兴通讯股份有限公司 Method for terminal to automatically switch data link and terminal

Also Published As

Publication number Publication date
CN105376775A (en) 2016-03-02

Similar Documents

Publication Publication Date Title
CN105376773B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105357053B (en) Processing method, application processor and the user terminal of network communicating function exception
CN108599986B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN106686638A (en) Network communication function abnormality processing method and network communication function abnormality processing device
CN105357049B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105376785B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN106686637A (en) Processing method of network communication function abnormities and processing device
CN105376113B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105407461B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105376775B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN106488491A (en) The abnormal processing method and processing device of network communicating function
CN105376784B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105338663B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN108419258A (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105490838B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105634794B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105491604B (en) Processing method, modem and the user terminal of network communicating function exception
CN105376789B (en) Network communicating function abnormal processing method, modem and mobile terminal
CN105491608B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105517029B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105376774B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105376779B (en) A kind of network communicating function abnormality eliminating method, application processor and mobile terminal
CN108599987A (en) Processing method, application processor and the user terminal of network communicating function exception
CN108684056B (en) Processing method, modem, mobile terminal and the storage medium of network communicating function exception
CN108684054A (en) Processing method, modem and the mobile terminal of network communicating function exception

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

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

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

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

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

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180529