CN105376780B - Processing method, modem and the mobile terminal of network communicating function exception - Google Patents
Processing method, modem and the mobile terminal of network communicating function exception Download PDFInfo
- Publication number
- CN105376780B CN105376780B CN201510824976.5A CN201510824976A CN105376780B CN 105376780 B CN105376780 B CN 105376780B CN 201510824976 A CN201510824976 A CN 201510824976A CN 105376780 B CN105376780 B CN 105376780B
- Authority
- CN
- China
- Prior art keywords
- modem
- protocol stack
- abnormal cause
- internal storage
- storage access
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the invention discloses a kind of processing method of network communicating function exception, including:When modem detects internal storage access mistake, the abnormal cause of the internal storage access mistake is determined;If the occurrence number of identical abnormal cause reaches preset times in preset duration, the modem obtains the first currently used protocol stack;The modem 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 modem opens the second protocol stack, and carries out network registry using the second protocol stack;If network registry success, the modem record current location information;If network registry fails, the on off state of the default protocol stack in the multiple protocol stacks supported described in the modem recovery and/or reset operation is carried out.The embodiment of the present invention additionally provides a kind of modem and mobile terminal, using the present invention, can quickly detect and restore the exception of network.
Description
Technical field
The present invention relates to the processing method of the communications field more particularly to a kind of network communicating function exception, modems
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 data to be sent to be converted to radiofrequency signal and radiofrequency signal is converted to pending data, processing AS (Access
Stratum, access layer, abbreviation AS) and NAS (Non Access Stratum, Non-Access Stratum, abbreviation NAS) signaling, Yi Jiyu
AP processors are into line interface etc..Sufficiently complex in the mobile network environment residing for mobile phone, mobile phone is often in different communication systems
Switched between formula, communication standard switch during be often abnormal, mobile phone can not normal Networked communication, such as
EMS memory error.In order to solve can not Networked communication exception, the solution used at present is:Mobile phone is moved to new position area
It during domain, updates and asks to network side launch position, network side is again configured mobile phone, restores the configuration ginseng of modem
Number;Or user is had found after being unable to Networked communication for a long time, manually mobile terminal is carried out forcing to restart recovery or setting modulatedemodulate
Adjust the configuration parameter of device.But the time that two schemes expend is long, user is difficult to endure.
Invention content
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, modem and mobile terminal.Can solve data service in the prior art be abnormal can not in the case of Networked communication,
It can not automatically attempt to restore or restore communication service to 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:
When modem detects internal storage access mistake, the abnormal cause of the internal storage access mistake is determined;
If the occurrence number of identical abnormal cause reaches preset times in preset duration, the modem, which obtains, works as
Preceding the first protocol stack used;
The modem closes first protocol stack and the multiple protocol stacks supported from the modem
Middle selection is except the second protocol stack of first protocol stack;
The modem opens the second protocol stack, and carries out network registry using the second protocol stack;
If network registry success, the modem record current location information;
If network registry fails, the default protocol stack in the multiple protocol stacks supported described in the modem recovery
On off state and/or carry out reset operation.
With reference to first aspect, in the first possible implementation, it further includes:
If the occurrence number of identical abnormal cause is not up to preset times in preset duration, reset operation is carried out.
With reference to first aspect or the first possible realization method of first aspect, in second of possible realization method
In, if network registry success, after the modem records current location information, further includes:
If location information changes, the default protocol in the multiple protocol stacks supported described in the modem recovery
The on off state of stack and/or carry out reset operation.
Second of possible realization method with reference to first aspect, further includes:
If the abnormal cause of the internal storage access mistake does not report, abnormal cause and the day of the internal storage access mistake are obtained
Will;
The abnormal cause, the current location information and daily record are reported to network side and/or the display exception
Reason.
The third possible realization method with reference to first aspect, it is described by institute in the 4th kind of possible realization method
Abnormal cause, the current location information and daily record is stated to be reported to network side and include:
The Wireless Fidelity wifi hotspot of surrounding is scanned and after communication connection is established with wifi hotspot, by establishing communication link
The abnormal cause, the current location information and daily record are reported to network side by the wifi hotspot connect.
Second aspect of the embodiment of the present invention provides a kind of modem, including:
Determining module during for detecting internal storage access mistake, determines the abnormal cause of the internal storage access mistake;
Acquisition module if the occurrence number for abnormal cause identical in preset duration reaches preset times, is obtained and is worked as
Preceding the first protocol stack used;
Selecting module, for the multiple protocol stacks closed first protocol stack and supported from the modem
Middle selection is except the second protocol stack of first protocol stack;
Registration module for opening the second protocol stack, and carries out network registry using the second protocol stack;
Logging modle, if the registering result for the registration module is successfully, to record current location information;
First reseting module if the registering result for the registration module is failure, restores multiple associations of the support
It discusses the on off state of the default protocol stack in stack and/or carries out reset operation.
With reference to second aspect, in the first possible implementation, further include:
Second reseting module, if the occurrence number for abnormal cause identical in preset duration is not up to preset times,
Carry out reset operation.
With reference to the possible realization method of the first of second aspect or second aspect, in second of possible realization method
In, it further includes:
Recovery module if changing for location information, restores the default protocol in multiple protocol stacks of the support
The on off state of stack and/or carry out reset operation.
With reference to second of possible realization method of second aspect, in the third possible realization method, further include:
Reporting module if the abnormal cause for the internal storage access mistake does not report, obtains the internal storage access mistake
Abnormal cause and daily record;The abnormal cause, the current location information and daily record are reported to network side and/or display
The abnormal cause.
With reference to any one in second aspect to the third possible realization method, in the 4th kind of possible realization method
In, the reporting module is led to for the Wireless Fidelity wifi hotspot around scanning and after communication connection is established with wifi hotspot
It crosses the wifi hotspot established and communicated to connect and the abnormal cause, the current location information and daily record is reported to network side.
The third aspect of the embodiment of the present invention provides a kind of mobile terminal, including the modulation /demodulation described in above-mentioned any one
Device.
Implement the embodiment of the present invention, have the advantages that:
When modem detects internal storage access mistake, currently used protocol stack is closed, from multiple agreements of support
Other protocol stacks of currently used protocol stack are selected in stack, open other protocol stacks and register net using other protocol stacks
Network in network on successful registration, records current location information, in network on unregistered, restores default protocol stack and lays equal stress on
Open modem.Quickly be detected when modem can not work normally in this way, and pass through other protocol stacks into
The mode of row network registry makes modem automatically attempt to restore normal, avoids caused by forcing to restart mobile phone or location updating
The problem of long is taken, reduces the time of network disaster recovery.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below
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 structure diagram of modem provided in an embodiment of the present invention;
Fig. 4 is a kind of another structure diagram of modem 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 shall fall within the protection scope of the present invention.
It is a kind of processing method of network communicating function exception provided in an embodiment of the present invention referring to Fig. 1, of the invention real
It applies in example, the method includes:
When S101, modem detect internal storage access mistake, the abnormal cause of the internal storage access mistake is determined.
Specifically, modem is used to that baseband signal to be converted to radiofrequency signal and radiofrequency signal is converted to base
Band signal handles the signaling of AS and NAS and with AP application processors into line interface etc., applied to data service;Modulation /demodulation
Device supports various protocols stack.The mistake occurred during internal storage access misrepresentation modem access memory, such as:Between function
The pointer of transmission is null pointer, modem read memory cross the border or be written memory when the internal storage access mistake such as cross the border
Accidentally, wherein modem can utilize BSP (Board Support Package board suppot packages, abbreviation BSP) Programmable detection
Whether internal storage access occurs mistake, and after modem detects, and internal storage access mistake occurs, modem can occur
Collapse, can not be normally carried out data processing, user is caused to cannot get online.Protocol stack represents the corresponding a variety of associations of some communication standard
The summation of view, 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) protocol stack, time division synchronous Code Division Multiple Access (Time Division-Synchronous Code
Division 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. includes again below each communication standard protocol stack
Multiple sub-protocol stacks, details are not described herein again.The abnormal cause for causing internal storage access mistake is diversified, modem inspection
When measuring internal storage access mistake, need to position the abnormal cause of internal storage access mistake;For example, abnormal cause includes:Write operation
Location is crossed the border, read operation address out of range, transmits null pointer etc..
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.
If S102, the occurrence number of identical abnormal cause reaches preset times, the modem in preset duration
Obtain the first currently used protocol stack.
Specifically, preset duration and preset times are previously provided with, in preset duration internal modulation demodulator often detects
When depositing access errors, abnormal cause is determined, and stored count is carried out to various abnormal causes, when certain type of abnormal cause exists
Occurrence number in preset duration is more than preset times, shows that the currently used protocol stack of modem goes out in the process of running
Existing problem, modem need to obtain the first currently used protocol stack.Wherein preset duration, preset times and identical exception
The type present invention of reason is not restricted, and can be carried out according to actual demand self-defined.
S103, the modem 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.
Specifically, the first protocol stack is the protocol stack for causing internal storage access mistake, modem needs to close the first association
Stack is discussed, prevents internal storage access mistake from repeated.Modem selects one except the from the multiple protocol stacks itself supported
The second protocol stack of one protocol stack.Then, modem determines that selection is except the in multiple protocol stacks that modem is supported
The second protocol stack of one protocol stack, wherein, the strategy of modem selection can be:Selection level-one lower than the first protocol stack
Protocol stack is as second protocol stack;Or the signal strength of the corresponding cell signal of each protocol stack of surrounding is measured, by signal strength
Maximum protocol stack 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 determining second protocol stack of other strategies, the present invention is not restricted.
S104, the modem 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 becomes non-service state, and modem opens the of selection
Two protocol stacks carry out network registry using second protocol stack, for example, the process registered of LTE network as:Mobile terminal is to network side
Attach request (attach request) is initiated, if network side allows mobile terminal to access, attachment response is returned to mobile terminal
(attach accept), represents network registry success, and mobile terminal has been converted to service state by non-service state;If network
Side does not allow mobile terminal to access, and error message is returned to mobile terminal, represents network registry failure.
Whether S105, network registry succeed.
Specifically, if it is judged that it is yes, execution S106;If it is judged that being no, S107 is performed.
S106, the modem 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, records current location information.
The on off state of default protocol stack in the multiple protocol stacks supported described in S107, the modem recovery
And/or carry out reset operation.
Specifically, default protocol stack is pre-set protocol stack, default protocol stack is supported multiple for modem
One in protocol stack, it can be directed to all regions herein, the protocol stack of same acquiescence is set initially to be selected as modem
The protocol stack used is selected, single area can also be directed to or different acquiescences is set to assist respectively in some region of multiple areas
Stack is discussed, the embodiment of the present invention is not limited in any way.If failed using second protocol stack registered network, open pre-set silent
Recognize protocol stack and reset operation is carried out to modem, after resetting operation, modem is carried out using default protocol stack
Work.
Implement the embodiment of the present invention, when modem detects internal storage access mistake, close currently used agreement
Stack selects other protocol stacks of currently used protocol stack from multiple protocol stacks of support, opens other protocol stacks and makes
With other protocol stack registered networks, in network in registration, current location information is recorded, in network in failed registration,
Restore default protocol stack and restart modem.It can not be quickly detected during normal communication in modem in this way,
And modem is made automatically to restore the normal of communication by way of switching other protocol stacks and carrying out network registry, it avoids strong
System takes the problem of long caused by restarting mobile phone or location updating, reduces the time of network disaster recovery.
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. 2
Figure, in embodiments of the present invention, the method includes:
Whether S201, modem detect internal storage access mistake.
Specifically, modem is mounted in mobile phone, application processor AP (Application can be packaged in
Processor, abbreviation AP) in or independently of application processor, the present invention is not restricted.Modem is used for baseband signal
Mutual conversion between radiofrequency signal handles the signaling of AS and NAS and with AP application processors into line interface etc., mainly
Applied to data service.The mistake occurred during internal storage access misrepresentation modem access memory, the operation point to memory
For two kinds of read operation and write operation, the mistake occurred during read operation and write operation includes:Do not read or write in memory
It is incorrect etc. to enter correct data, reading or the address of write-in, such as:Internal storage access mistake includes:The finger transmitted between function
Needle is null pointer, and mistake occurs for the address for causing to read or memory being written;The memory memory that crosses the border or be written is read to get over
The internal storage access mistake such as boundary, the abnormal cause of internal storage access mistake can there are many, identical internal storage access mistake may be by not
Caused by same abnormal cause, arbitrary known means can be used to determine in the positioning of specific abnormal cause, and the present invention does not make
Limitation.Modem detect whether occur internal storage access mistake method can be:Start modem it is corresponding should
During with program, while start BSP programs, for the corresponding application program of modem during operation, the monitoring of BSP programs should
Internal storage access mistake whether occurs with routine access memory, if internal storage access mistake occurs, S202 is performed, if mistake does not occur
Accidentally, S201 is performed.When internal storage access mistake occurs, the corresponding application program of modem will be unable to normal operation or even lead
Program crashing is caused, since modem is mainly used for data service, internet can not be accessed by directly contributing user.
S202, the abnormal cause for determining the internal storage access mistake.
Wherein, the abnormal cause for causing internal storage access mistake is diversified, and modem detects internal storage access
During mistake, need to position the abnormal cause of internal storage access mistake;For example, abnormal cause includes:Write operation address out of range, read operation
Address out of range transmits null pointer etc..
Whether the occurrence number of identical abnormal cause reaches preset times in S203, preset duration.
Specifically, preset duration and preset times are previously provided with, in preset duration internal modulation demodulator often detects
When depositing access errors, abnormal cause is determined, and stored count is carried out to various abnormal causes, when certain type of abnormal cause exists
Occurrence number in preset duration is more than preset times, shows that the currently used protocol stack of modem goes out in the process of running
Existing problem, modem need to obtain the first currently used protocol stack.Wherein preset duration, preset times and identical exception
The type present invention of reason is not restricted, and can be carried out according to actual demand self-defined.Identical abnormal cause goes out in preset duration
When occurrence number reaches preset times, S204 is performed, otherwise, performs S205.
For example, pre-setting identical abnormal cause as write operation address out of range, preset duration is 1 hour, preset times
It is 10 times, when the number for being abnormal the internal storage access mistake that reason is write operation address out of range interior when 1 is small reaches 10 times,
S204 is performed, otherwise performs S205.
S204, the modem are closed the first currently used protocol stack and are supported from the Modem multiple
Selection is except the second protocol stack of first protocol stack in protocol stack.
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 occurrence number of identical abnormal cause in preset duration reaches preset times
When, determine the first currently used protocol stack.Using the first protocol stack internal storage access mistake occurs for modem, in order to prevent
Internal storage access mistake repeated, and modem needs to close the first protocol stack.Then, modem determines that itself is supported
Multiple protocol stacks in selection except the first protocol stack second protocol stack, wherein, the strategy of selection can be:Selection is than the first association
The protocol stack of the low level-one of stack is discussed as second protocol stack;Or the signal of the corresponding cell signal of each protocol stack of measurement surrounding is strong
Degree, using the protocol stack of signal strength maximum as second protocol stack;Or select protocol stack more higher leveled than the first protocol stack as
Second protocol stack;Or using the determining second protocol stack of other strategies, the present invention is not restricted.
S205, reset operation is carried out.
Specifically, modem is when the occurrence number of identical abnormal cause is not up to preset times in preset duration,
To itself carrying out reset operation, S201 is performed after resetting operation.
S206, the modem 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 converted to non-service state, and modem opens selection
Second protocol stack carries out network registry using second protocol stack, and the process of network registry is:It is mobile to be asked to network side initiation attachment
(attach request) is asked, if network side allows mobile terminal to access, attachment response (attach is returned to mobile terminal
Response), network registry success is represented, mobile terminal has been converted to service state;If network side does not allow mobile terminal to connect
Enter, error message is returned to mobile terminal, represent network registry failure.
Whether S207, network registry succeed.
Specifically, modem judge using second protocol stack whether network on successful registration, if the determination result is YES,
Perform S208;If judging result is no, S211 is performed.
S208, the modem record current location information.It should be noted that after having performed S208, it can
With parallel execution S209 and S212.
Specifically, location information represents the mark of logical place planned in advance in mobile communications network, for example, position is believed
Breath includes cell ID or location area code etc..
Whether S209, location information change.
Specifically, modem periodically obtains location information, in the location information that currently obtains and upper primary return
The location information gone, if the judging result of S209 is yes, performs S210 compared to when changing;If the judging result of S209 is
It is no, continue to execute S209.For example, location information is cell ID, mobile terminal is moved to another cell by a cell, represents
Location information changes;Location information is location area code, and mobile terminal is moved to another position by a band of position
Region shows that location information changes.The period present invention that modem obtains location information is not restricted, can basis
Actual demand is configured.
The on off state of default protocol stack in the multiple protocol stacks supported described in S210, the modem recovery
And/or carry out reset operation.
Specifically, modem, which obtains modem, detects the multiple protocol stacks supported before internal storage access mistake
In the corresponding initial switch state of each protocol stack, by the corresponding current switch shape of protocol stack each in multiple protocol stacks of support
State is restored to initial switch state;Then S212 is performed.Only there are one agreements every time for multiple protocol stacks that modem is supported
Stack is opening, remaining protocol stack is in off state.
The on off state of default protocol stack in the multiple protocol stacks supported described in S211, the modem recovery
And/or carry out reset operation.
Specifically, modem is using second protocol stack, the upper network of registration, modem determine acquiescence association not successfully
View stack and transmission reset instruction carry out reset operation to itself.Default protocol stack is one in multiple protocol stacks for being supported
Pre-set protocol stack can be directed to all regions and set the protocol stack of same acquiescence initial as modem herein
Protocol stack selected to use can also be directed to single area or set different acquiescences respectively in some region of multiple areas
Protocol stack, the embodiment of the present invention are not limited in any way.After carrying out reset operation, modem carries out net using default protocol stack
Network is registered, and after network registry success, is worked using default protocol stack.
S212, internal storage access mistake abnormal cause whether reported.
Specifically, the abnormal cause of internal storage access mistake can be represented by reason-code, different abnormal causes pair
The reason of different code is answered, while abnormal cause can be represented by way of text description, if the exception of internal storage access mistake
Reason reported, and continued to execute S201, and after the abnormal cause of internal storage access mistake had reported, user can be according to exception
Reason is adjusted or repairs, and continues to jump to S201 later by modem detection exception, if modem still detects
To internal storage access mistake, then the subsequent steps such as S202 are continued to execute.If the judging result of S212 is no, S213 is performed.
S213, the abnormal cause for obtaining the internal storage access mistake and daily record.
Wherein, daily record represents the operation information of modem access memory, and operation information includes:Operational order, operation
It time and returns the result.
S214, the abnormal cause, the current location information and daily record are reported to described in network side and/or display
Abnormal cause.
Specifically, abnormal cause, current location information and daily record are reported to network side by modem, 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 modem can also include abnormal cause on the display screen of mobile terminal, be checked for user.
After above- mentioned information reports, step S201 can be equally jumped to, exception is detected by modem, if modulatedemodulate
Device is adjusted still to detect internal storage access mistake, then continues to execute the subsequent steps such as S202.
By way of cycle, it can be ensured that the solution of internal storage access Problem-Error, after Resolving probiems, modem
Internal storage access mistake will not be detected again, and terminal can be restored to work normally
Implement the embodiment of the present invention, when modem detects internal storage access mistake, close currently used agreement
Stack selects other protocol stacks of currently used protocol stack from multiple protocol stacks of support, opens other protocol stacks and makes
With other protocol stack registered networks, in network in registration, current location information is recorded, in network on unregistered, is restored
Default protocol stack simultaneously restarts modem.It is quickly detected, and leads to when modem can not work normally in this way
Crossing the mode of network registry makes modem recovery normal, avoids forcing to take caused by restarting mobile phone or location updating long
The problem of, reduce time of network disaster recovery.
It is a kind of structure diagram of modem provided in an embodiment of the present invention, in the embodiment of the present invention referring to Fig. 3
In, the modem includes:Determining module 301, acquisition module 302, selecting module 303, registration module 304, record mould
305 and first reseting module 306 of block.
Determining module 301 during for detecting internal storage access mistake, determines the abnormal cause of the internal storage access mistake.
Acquisition module 302 if the occurrence number for abnormal cause identical in preset duration reaches preset times, obtains
The first currently used protocol stack.
Selecting module 303, for the multiple agreements closed first protocol stack and supported from the modem
Selection is except the second protocol stack of first protocol stack in stack.
Registration module 304 for opening the second protocol stack, and carries out network registry using the second protocol stack.
Logging modle 305, if the registering result for the registration module is successfully, to record current location information;
First reseting module 306 if the registering result for the registration module is failure, restores the multiple of the support
The on off state of default protocol stack in protocol stack and/or carry out reset operation.
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 please refers to the description of embodiment of the method one, and details are not described herein again.
Optionally, modem 3 further includes:
Second reseting module, if the occurrence number for abnormal cause identical in preset duration is not up to preset times,
Carry out reset operation.
Optionally, modem 3 further includes:
Recovery module if changing for location information, restores the default protocol in multiple protocol stacks of the support
The on off state of stack and/or carry out reset operation.
Optionally, modem 3 further includes:
Reporting module if the abnormal cause for the internal storage access mistake does not report, obtains the internal storage access mistake
Abnormal cause and daily record;The abnormal cause, the current location information and daily record are reported to network side and/or display
The abnormal cause.
The embodiment of the present invention and embodiment of the method two are based on same design, and the technique effect brought is also identical, specific former
Reason please refers to the description of embodiment of the method two, and details are not described herein again.
It is a kind of another structure diagram of modem of the embodiment of the present invention referring to Fig. 4, modem is used for
Realize Fig. 1 described in network communicating function exception processing method, modem including CPU_modem401, memory 402,
Base-Band Processing 403, communication interface/CPU_ap404 (remarks:In the case of modem single-chips, this is communication interface 404, is used
In with outside chip AP processors carry out communication interface;In the case of modem and ap are integrated in a chip, this is CPU_
Ap404, i.e., without communication interface) and baseband radio interface 405, the quantity of the CPU_modem401 in modem can be with
It is one or more, Fig. 4 (remarks by taking a CPU as an example:CPU described herein can also replace with DSP Digital Signal Processing
Device).In some embodiments of the present invention, CPU_modem401, memory 402, Base-Band Processing 403, communication interface/CPU_
Ap404 can be connected with baseband radio interface 405 by bus or other modes, in Fig. 4 by taking bus connects as an example.
Wherein, batch processing code is stored in memory 402, and CPU_modem401 deposits for calling in memory 402
The program code of storage, for performing the following operations:
When detecting internal storage access mistake, the abnormal cause of the internal storage access mistake is determined;
If the occurrence number of identical abnormal cause reaches preset times in preset duration, the first currently used association is obtained
Discuss stack;
Close first protocol stack and from multiple protocol stacks that the modem is supported selection except described the
The second protocol stack of one protocol 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;
If network registry fails, restore default protocol stack in multiple protocol stacks of the support on off state and/or
Carry out reset operation.
In some embodiments of the invention, processor is additionally operable to perform:
If the occurrence number of identical abnormal cause is not up to preset times in preset duration, reset operation is carried out.
In some embodiments of the invention, if processor performs the network registry success, the modem note
After recording current location information, it is additionally operable to perform:
If location information changes, restore the on off state of the default protocol stack in multiple protocol stacks of the support
And/or carry out reset operation.
In some embodiments of the invention, processor performs each agreement in multiple protocol stacks by the support
The corresponding current switch states of stack are restored to after the initial switch state;Or if the network registry is successful, the application
Processor records current location information;Or if network registry failure, the application processor restore the more of the support
Default protocol stack in a protocol stack and after carrying out reset operation to the modem, is additionally operable to perform:
If the abnormal cause of the internal storage access mistake does not report, abnormal cause and the day of the internal storage access mistake are obtained
Will;
The abnormal cause, the current location information and daily record are reported to network side and/or the display exception
Reason.
In some embodiments of the invention, processor perform it is described by the abnormal cause, the current position letter
Breath and daily record are 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 daily record are reported to network side by hot spot.
Wherein, Base-Band Processing 403 for handling baseband signal, and pass through bus and are interacted with other parts;
Wherein, block diagram " communication interface/CPU_ap " 404, in the case of modem single-chips, this block diagram 404 connects for communication
The interface that mouth communicates without CPU_ap, communication interface 404 as the AP processors for the outside with modem chips;
In the case of modem and ap are integrated in a chip, this block diagram 404 for CPU_ap without communication interface, CPU_modem leads to
It crosses bus and CPU_ap communicates without other communication interfaces;
Wherein, baseband radio interface 405, for carrying out interface communication with the radio frequency outside modem chip.
The embodiment of the present invention additionally provides a kind of mobile terminal for including above-mentioned modem, it should be appreciated that mobile terminal
Including but not limited to carryOr the mobile terminal of other operating systems, it is all
Such as mobile phone.Can also be other mobile terminals, such as with touch sensitive surface (for example, touch-screen display and/or touch-control
Plate) laptop 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 operating lever.
Mobile terminal usually supports a variety of application programs, it is such as following in it is 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 intuitive clearly user interface 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 when being executed, 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..
Above disclosed is only a kind of preferred embodiment of the present invention, cannot limit the power of the present invention with this certainly
Sharp range 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 range.
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 when being executed, 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..
Above disclosed is only a kind of preferred embodiment of the present invention, cannot limit the power of the present invention with this certainly
Sharp range 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 range.
Claims (7)
1. a kind of processing method of network communicating function exception, which is characterized in that including:
When modem detects internal storage access mistake, the abnormal cause of the internal storage access mistake is determined;
If the occurrence number of identical abnormal cause reaches preset times in preset duration, the modem acquisition currently makes
First protocol stack;
The modem is closed first protocol stack and is selected from multiple protocol stacks that the modem is supported
Select the second protocol stack except first protocol stack;First protocol stack and the second protocol stack correspond to a kind of movement respectively
Data network;
The modem opens the second protocol stack, and carries out network registry using the second protocol stack;
If network registry success, the modem record current location information;
If network registry fails, the switch of the default protocol stack in the multiple protocol stacks supported described in the modem recovery
State and/or carry out reset operation;
If the abnormal cause of the internal storage access mistake does not report, abnormal cause and the daily record of the internal storage access mistake are obtained;
It scans the Wireless Fidelity 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 daily record are reported to network side by hot spot.
2. the method as described in claim 1, which is characterized in that further include:
If the occurrence number of identical abnormal cause is not up to preset times in preset duration, reset operation is carried out.
3. method as claimed in claim 1 or 2, which is characterized in that if network registry success, the modem note
After recording current location information, further include:
If location information changes, default protocol stack in the multiple protocol stacks supported described in the modem recovery
On off state and/or carry out reset operation.
4. a kind of modem, which is characterized in that including:
Determining module during for detecting internal storage access mistake, determines the abnormal cause of the internal storage access mistake;
Acquisition module, if the occurrence number for abnormal cause identical in preset duration reaches preset times, acquisition currently makes
First protocol stack;
Selecting module, for closing first protocol stack and being selected from multiple protocol stacks that the modem is supported
Select the second protocol stack except first protocol stack;First protocol stack and the second protocol stack correspond to a kind of movement respectively
Data network;
Registration module for opening the second protocol stack, and carries out network registry using the second protocol stack;
Logging modle, if the registering result for the registration module is successfully, to record current location information;
First reseting module if the registering result for the registration module is failure, restores multiple protocol stacks of the support
In default protocol stack on off state and/or carry out reset operation;
Reporting module if the abnormal cause for the internal storage access mistake does not report, obtains the different of the internal storage access mistake
Normal reason and daily record;It scans the Wireless Fidelity wifi hotspot of surrounding and after communication connection is established with wifi hotspot, passes through foundation
The abnormal cause, the current location information and daily record are reported to network side by the wifi hotspot of communication connection.
5. modem as claimed in claim 4, which is characterized in that further include:
Second reseting module if the occurrence number for abnormal cause identical in preset duration is not up to preset times, carries out
Reset operation.
6. modem as described in claim 4 or 5, which is characterized in that further include:
Recovery module if changing for location information, restores default protocol stack in multiple protocol stacks of the support
On off state and/or carry out reset operation.
7. a kind of mobile terminal, which is characterized in that including the modem as described in claim 4-6 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510824976.5A CN105376780B (en) | 2015-11-24 | 2015-11-24 | Processing method, modem and the mobile terminal of network communicating function exception |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510824976.5A CN105376780B (en) | 2015-11-24 | 2015-11-24 | Processing method, modem and the mobile terminal of network communicating function exception |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105376780A CN105376780A (en) | 2016-03-02 |
CN105376780B true CN105376780B (en) | 2018-06-29 |
Family
ID=55378489
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510824976.5A Active CN105376780B (en) | 2015-11-24 | 2015-11-24 | Processing method, modem and the mobile terminal of network communicating function exception |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105376780B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101102317A (en) * | 2007-06-29 | 2008-01-09 | 中兴通讯股份有限公司 | Multi-protocol stack connection device and method |
CN102413529A (en) * | 2011-11-28 | 2012-04-11 | 青岛海信移动通信技术股份有限公司 | Multi-mode (including long term evolution (LTE) mode) application method and device of mobile terminal |
CN103631721A (en) * | 2012-08-23 | 2014-03-12 | 华为技术有限公司 | Method and system for isolating bad blocks in internal storage |
CN104081826A (en) * | 2012-03-16 | 2014-10-01 | Lg电子株式会社 | Method and apparatus for processing NAS signaling request in wireless communication system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3865668B2 (en) * | 2002-08-29 | 2007-01-10 | 富士通株式会社 | Mobile communication network system |
-
2015
- 2015-11-24 CN CN201510824976.5A patent/CN105376780B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101102317A (en) * | 2007-06-29 | 2008-01-09 | 中兴通讯股份有限公司 | Multi-protocol stack connection device and method |
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 |
CN103631721A (en) * | 2012-08-23 | 2014-03-12 | 华为技术有限公司 | Method and system for isolating bad blocks in internal storage |
Also Published As
Publication number | Publication date |
---|---|
CN105376780A (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 | |
CN105376776B (en) | Network communicating function abnormal processing method, application processor and mobile terminal | |
CN105357053B (en) | Processing method, application processor and the user terminal of network communicating function exception | |
CN105407461B (en) | Processing method, application processor and the mobile terminal of network communicating function exception | |
CN105376113B (en) | Processing method, modem and the mobile terminal of network communicating function exception | |
CN108601018A (en) | Processing method, application processor and the mobile terminal of network communicating function exception | |
CN105634794B (en) | Processing method, modem and the mobile terminal of network communicating function exception | |
CN105376775B (en) | Processing method, application processor and the mobile terminal of network communicating function exception | |
CN105338663A (en) | Method for treating network communication function abnormity, modem and mobile terminal | |
CN105490838B (en) | Processing method, modem and the mobile terminal of network communicating function exception | |
CN105376783B (en) | Processing method, modem and the mobile terminal of network communicating function exception | |
CN105376780B (en) | Processing method, modem and the mobile terminal of network communicating function exception | |
CN105491604A (en) | Network communication function abnormality processing method, modulator-demodulator and user terminal | |
CN105376784B (en) | Processing method, application processor and the mobile terminal of network communicating function exception | |
CN105376786B (en) | Processing method, application processor and the mobile terminal of network communicating function exception | |
CN105491609B (en) | Network communicating function abnormal processing method, modem and mobile terminal | |
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 | |
CN105491608B (en) | Processing method, application processor and the mobile terminal of network communicating function exception | |
CN105472648B (en) | Network communicating function abnormal processing method, modem and mobile terminal | |
CN105376789B (en) | Network communicating function abnormal processing method, modem and mobile terminal | |
CN108599987A (en) | Processing method, application processor and the user terminal of network communicating function exception | |
CN105376873B (en) | Processing method, modem and the mobile terminal of network communicating function exception | |
CN105376787A (en) | Method for processing network communication function abnormity and application processor | |
CN105491607B (en) | Processing method, application processor 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 | ||
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. |