The content of the invention
The method and terminal for recovering data service are provided in the embodiment of the present invention, to solve to recover terminal in the prior art
It is cumbersome during data service, the problem of influenceing user data service usage experience.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical scheme:
First aspect includes there is provided a kind of method for recovering data service, methods described:
Terminal determines to receive short message of answering a pager's call;
The terminal triggering modem restarting;
The terminal is attached to network side by modem restarting, so that the terminal recovers data industry
Business.
With reference in a first aspect, in the first possible implementation of first aspect, the terminal determines to receive again
Machine short message, including:
The message content of short message of the terminal according to preset time period to receiving is retrieved;
When retrieve in message content comprising it is default answer a pager's call keyword when, determine the corresponding short message of the message content
For short message of answering a pager's call.
With reference in a first aspect, or first aspect the first possible implementation, may at second of first aspect
Implementation in, before terminal triggering modem restarting, methods described also includes:Judge the modulatedemodulate
Adjust whether device is in idle condition;
The terminal triggering modem restarting includes:
When the modem is in idle condition, the modem restarting is triggered;
When the modem is in running order, then monitoring the modem from working condition entrance
After idle condition, the modem restarting is triggered.
With reference in a first aspect, or first aspect the first possible implementation, or second of first aspect may
Implementation, in the third possible implementation of first aspect, the terminal by the modem again
Startup is attached to network side, including:
The terminal sends Attach Request message by modem to the network equipment;
Receive the identification request message that the network equipment is sent according to the Attach Request message;
Identification request response is returned to the network equipment according to the identification request message;
Receive the network equipment and pass through attachment receiving that is rear, being returned to the terminal in the identification authentication to the terminal
Message;
Attachment completion message is sent to the network equipment according to the attachment received message.
Second aspect includes there is provided a kind of terminal for recovering data service, the terminal:
Determining unit, for determining to receive short message of answering a pager's call;
Trigger element, for after the determining unit determines to receive short message of answering a pager's call, triggering modem to be again
Start;
Recovery unit, for making the terminal be attached to network side by modem restarting, so that institute
State terminal and recover data service.
With reference to second aspect, in the first possible implementation of second aspect, the determining unit includes:
Message retrieval subelement, the message content for the short message according to preset time period to receiving is retrieved;
Message determination subelement, for when retrieve in message content comprising it is default answer a pager's call keyword when, it is determined that described
The corresponding short message of message content is short message of answering a pager's call.
With reference to the first possible implementation of second aspect, or second aspect, second in second aspect may
Implementation in, the terminal also includes:
Judging unit, for after the determining unit determines to receive short message of answering a pager's call, judging the modem
Whether idle condition is in;
The trigger element, specifically for when the modem is in idle condition, triggering the modulation /demodulation
Device restarts, and when the modem is in running order, is then monitoring the modem from working condition
Into after idle condition, the modem restarting is triggered.
It is possible with reference to the first possible implementation of second aspect, or second aspect, or second of second aspect
Implementation, in the third possible implementation of second aspect, the recovery unit includes:
Message transmission sub-unit, for sending Attach Request message to the network equipment by the modem;
Message sink subelement, for receiving the identification that the network equipment is sent according to the Attach Request message
Request message;
The message transmission sub-unit, is additionally operable to return to body to the network equipment according to the identification request message
Part identification request response;
The message sink subelement, is additionally operable to receive the network equipment and passes through in the identification authentication to the terminal
Afterwards, the attachment received message returned to the terminal;
The message transmission sub-unit, is additionally operable to be sent to the network equipment according to the attachment received message and has adhered to
Into message.
The third aspect includes there is provided a kind of terminal for recovering data service, the terminal:Network interface, modem
And processor, wherein,
The network interface, for receiving short message;
The processor, for it is determined that the network interface is received when answering a pager's call short message, triggering the modulation /demodulation
Device restarts, and the terminal is attached to network side by modem restarting, so that the terminal is extensive
Complex data business.
With reference to the third aspect, in the first possible implementation of the third aspect, the processor, specifically for by
The message content of the short message received according to preset time period to the network interface is retrieved, when retrieving message content
In comprising it is default answer a pager's call keyword when, the corresponding short message of the message content is determined to answer a pager's call short message.
With reference to the first possible implementation of the third aspect, or the third aspect, second in the third aspect may
Implementation in, the processor is additionally operable to judge whether the modem is in idle condition;
The processor, specifically for when the modem is in idle condition, triggering the modem
Restarting, when the modem is in running order, is then monitoring that the modem enters from working condition
Enter after idle condition, trigger the modem restarting.
It is possible with reference to the first possible implementation of the third aspect, or the third aspect, or second of the third aspect
Implementation, in the third possible implementation of the third aspect, the modem, specifically for by described
Network interface, Attach Request message is sent to the network equipment, is received the network equipment and is sent according to the Attach Request message
Identification request message, according to the identification request message to the network equipment return identification request respond
Message, receives the network equipment to the attachment received message of the identification authentication of the terminal by rear return, and according to institute
State attachment received message and send attachment completion message to the network equipment.
In the embodiment of the present invention, terminal determines to receive after short message of answering a pager's call, triggering modem restarting, and leads to
The restarting of toning modulator-demodulator is attached to network side, so that terminal recovers data service.Terminal in the embodiment of the present invention exists
Answer a pager's call recovery data service when, close power-on operation again without user, but by terminal after short message of answering a pager's call is received, it is automatic to touch
Modem restarting is sent out, so that recover data service after terminal completes network attachment, therefore operating process is simple, can
To recover the use of data service in the case where not influenceing end-user experience.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, and make of the invention real
Applying the above-mentioned purpose of example, feature and advantage can be more obvious understandable, below in conjunction with the accompanying drawings to technical side in the embodiment of the present invention
Case is described in further detail.
It is one embodiment flow chart for the method that the present invention recovers data service referring to Fig. 1:
Step 101:Terminal determines to receive short message of answering a pager's call.
Terminal in the embodiment of the present invention refers mainly to the various mobile terminals with functions for sending and receiving short messages, for example, mobile phone,
Personal digital assistant(Personal Digital Assistant, PDA)Deng.In the prior art, terminal generally passes through pre-payment
To realize data service, when terminal is because of defaulting subscriber, data service is prohibited, and is that terminal is supplemented with money again only in terminal user
After machine, data service can be just continuing with.
After terminal is supplemented with money, the short message of answering a pager's call of network side transmission can be received, but is due to that terminal is multiple except receiving
Outside machine short message, it is also possible to receive other short messages, therefore, terminal short can disappear according to preset time period to what is received
The message content of breath is retrieved, when retrieve in message content comprising it is default answer a pager's call keyword when, determine the message content
Corresponding short message is short message of answering a pager's call.In the present embodiment, keyword of answering a pager's call can include " answering a pager's call ", " payment amount of money " etc..
Step 102:Terminal triggering modem restarting.
When terminal after shutdown is supplemented with money, it is necessary to make terminal be attached to network side by restarting modem so that eventually
End can use data service.With reference to step 101, when terminal, which is received, answers a pager's call short message, terminal can trigger modem
Restarting, network side is attached to will pass through modem restarting.Wherein, terminal triggering modem is opened again
Dynamic concrete mode can be that terminal sends a reset command to modem(Reset).
Further, whether terminal can first judge a downward modulation modem before triggering modem restarting
In idle condition, if modem is in idle condition, terminal can directly trigger modem restarting,
If modem is in running order, terminal can be touched when modem enters idle condition from working condition
Send out modem restarting.Wherein, the state of modem can be represented by state interface functional value, for example, working as
When functional value is 0, represent that modem is in idle condition, when functional value is 1, represent that modem is in work shape
State;Therefore, terminal can call state interface function to obtain function when judging whether modem is in idle condition
Value, if functional value is 0, it is determined that modem is in idle condition, if functional value is 1, it is determined that modem
In running order, when modem is in running order, terminal can be according to predetermined period(For example, 1000 milliseconds)Adjust
Functional value is obtained with state interface function, to judge whether modem enters idle condition from working condition.
Step 103:Terminal is attached to network side by modem restarting, so that terminal recovers data service.
In the embodiment of the present invention, terminal is attached to network side by modem restarting to be included:Terminal exists
Triggering modem restart after, from modem to the network equipment send Attach Request message, receive the network equipment according to
The identification request message that Attach Request message is sent, identity is returned to according to the identification request message to the network equipment
Request response is recognized, the network equipment is received by rear, the attachment returned to terminal receives to disappear to the identification authentication of terminal
Breath, and attachment completion message is sent to the network equipment according to the attachment received message, with the process that this completes to be attached to network side,
So that terminal recovers data service.
As seen from the above-described embodiment, terminal, when answering a pager's call recovery data service, is closed out again without user in the embodiment
Machine is operated, but by terminal after short message of answering a pager's call is received, automatic triggering modem restarting, so as to be completed in terminal
Recover data service after network attachment, therefore operating process is simple, can recover in the case where not influenceing end-user experience
The use of data service.
It is another embodiment flow chart for the method that the present invention recovers data service referring to Fig. 2:
Step 201:The message content of short message of the terminal according to preset time period to receiving is retrieved.
Terminal in the embodiment of the present invention refers mainly to the various mobile terminals with Short Message Mobile Terminated, for example, mobile phone,
PDA etc..In the prior art, terminal generally realizes data service by pre-payment, when terminal because during defaulting subscriber, BOSS to
HLR sends the instruction for deleting GPRS signings, and the order for stopping GPRS functions is sent to terminal, and now terminal is gone attached from network
, detachment process includes:The network equipment sends attachment removal request message to terminal(GMM_DETACH_REQUEST), terminal to
The network equipment returns to attachment removal response message(GMM_DETACH_RESPONSE), the network equipment to terminal send attachment removal receive
Message(GMM_DETACH_ACCEPT), terminal to the network equipment send attachment removal completion message(GMM_DETACH_
COMPLETE), now terminal complete detachment process, the data service of terminal is prohibited, only filled in terminal user for terminal
After value is answered a pager's call, data service can be just continuing with.In each message transmitted in above-mentioned detachment process, GMM represents that GPRS is moved
Mobility management(GPRS Mobile Management).
In the present embodiment, after terminal is supplemented with money, the short message of answering a pager's call of network side transmission can be received, but be due to that terminal is removed
Receive and answer a pager's call outside short message, it is also possible to receive other short messages, therefore terminal is needed from all short messages for receiving
In retrieve short message of answering a pager's call.Wherein, terminal can just be entered when often receiving a short message to the message content of short message
Row retrieval, or the message content of short message that can also be according to the default time cycle to receiving are retrieved.
Step 202:When retrieve in message content comprising it is default answer a pager's call keyword when, determine that the message content is corresponding
Short message is short message of answering a pager's call.
In the present embodiment, for example, the content of short message of answering a pager's call of China Mobile is " dear client, your mobile phone has been answered a pager's call.
If not recovering normal talking also, it is proposed that you turn back on tries again ";CHINAUNICOM answer a pager's call short message for " you reminds in CHINAUNICOM,
You were paid the fees using payment card for mobile phone on the 19th in August in 2012, and payment amount of money is 100 yuan, be thanks!”.Terminal is according to default
When time cycle is retrieved to short message, if it is " multiple that keyword of answering a pager's call is retrieved from the message content of some short message
Machine ", " payment amount of money " etc., then can determine to have received short message of answering a pager's call.
Step 203:Judge whether modem is in idle condition, if so, then performing step 205;Otherwise;Perform step
Rapid 204.
, it is necessary to make terminal be attached to network side by restarting modem after terminal is supplemented with money, so that terminal can make
Use data service.In the prior art, terminal user makes the modem of terminal open again generally by the power-on operation again that shuts down
It is dynamic;In the present embodiment, terminal can again start shooting without shutdown, but when terminal is receiving the short message of answering a pager's call of network side transmission
When, modem restarting is controlled under open state.
Because in addition to data service, some business are also required to use modem in terminal, for example, voice communication,
Short message transmission etc., therefore terminal is after the short message of answering a pager's call of network side transmission is received, when modem is by some business
Take, if triggering modem restarting at once, can interrupt these business, cause Consumer's Experience not good enough, therefore this
In embodiment, whether terminal can not trigger modem restarting at once, but first judge modem in sky
Not busy state, if modem is in idle condition, terminal can directly trigger modem restarting, if adjusted
Modulator-demodulator is in running order, then further performs step 204.
Wherein, the state of modem can be represented by state interface functional value, for example, when functional value is 0, table
Show that modem is in idle condition, when functional value is 1, represent that modem is in running order;Therefore, terminal exists
When judging whether modem is in idle condition, state interface function can be called to obtain functional value, if functional value is
0, it is determined that modem is in idle condition, if functional value is 1, it is determined that modem is in running order.
Step 204:Whether monitoring modem enters idle condition from working condition, if so, then performing step 205;
Otherwise, return to step 204.
When terminal determines that modem is in running order in step 203, terminal, which can monitor modem, is
It is no to enter idle condition from working condition, after monitoring that modem enters idle condition, then to trigger modulation /demodulation
Device restarts.For example, terminal can be according to predetermined period(For example, 1000 milliseconds)State interface function is called to obtain function
Value, to judge whether modem enters idle condition from working condition, when the functional value that some cycle obtains is 0, then
Determine that modem enters idle condition from working condition.
Step 205:Terminal triggering modem restarting.
When step 203 judged result is that modem is in idle condition, then terminal can directly trigger modulatedemodulate
Device restarting is adjusted, to realize that terminal is re-attached to network side;When step 204 monitoring result be modem from work shape
State enters after idle condition, then the restarting of terminal triggering modem.Wherein, the concrete mode of triggering can for terminal to
Modem sends a reset command(Reset).
Step 206:Terminal is attached to network side by modem restarting, so that terminal recovers data service.
In the present embodiment, terminal restarted by modem be attached to the process of network side with it is of the prior art
Attaching process is consistent, i.e., terminal sends Attach Request message to the network equipment(GMM_ATTACH_REQUEST), the network equipment to
Terminal returns to identification request message(GMM_IDENTITY_REQUEST), terminal to the network equipment send identification response
Message(GMM_IDENTITY_RESPONSE), the network equipment to terminal send authentication and encryption request message(GMM_
AUTHENTICATION_AND_CYPHERING_REQUEST), terminal to the network equipment return authentication and encrypted response message
(GMM_AUTHENTICATION_AND_CYPHERING_RESPONSE), the network equipment is sent to terminal adheres to received message
(GMM_ATTACH_ACCEPT), terminal is returned to the network equipment adheres to completion message(GMM_ATTACH_COMPLETE), so that
Terminal completes to be attached to the process of network side, can begin to use data service.
As seen from the above-described embodiment, terminal, when answering a pager's call recovery data service, is closed out again without user in the embodiment
Machine is operated, but by terminal after short message of answering a pager's call is received, automatic triggering modem restarting, so as to be completed in terminal
Recover data service after network attachment, therefore operating process is simple, can recover in the case where not influenceing end-user experience
The use of data service.
It is corresponding with the embodiment that the present invention recovers the method for data service, implement present invention also offers application this method
The terminal embodiment of example.
It is one embodiment block diagram for the terminal that the present invention recovers data service referring to Fig. 3:
The terminal includes:Determining unit 310, trigger element 320 and recovery unit 330.
Determining unit 310, for determining to receive short message of answering a pager's call;
Trigger element 320, for after the determining unit 310 determines to receive short message of answering a pager's call, triggering modulation /demodulation
Device restarts;
Recovery unit 330, for making the terminal be attached to network side by modem restarting, so that
The terminal recovers data service.
In an optional implementation, determining unit 310 can include(Not shown in Fig. 3):
Message retrieval subelement, the message content for the short message according to preset time period to receiving is retrieved;
Message determination subelement, for when retrieve in message content comprising it is default answer a pager's call keyword when, it is determined that described
The corresponding short message of message content is short message of answering a pager's call.
In another optional implementation, recovery unit 330 can include(Not shown in Fig. 3):
Message transmission sub-unit, for sending Attach Request message to the network equipment by the modem;
Message sink subelement, for receiving the identification that the network equipment is sent according to the Attach Request message
Request message;
The message transmission sub-unit, is additionally operable to return to body to the network equipment according to the identification request message
Part identification request response;
The message sink subelement, is additionally operable to receive the network equipment and passes through in the identification authentication to the terminal
Afterwards, the attachment received message returned to the terminal;
The message transmission sub-unit, is additionally operable to be sent to the network equipment according to the attachment received message and has adhered to
Into message.
It is another embodiment block diagram for the terminal that the present invention recovers data service referring to Fig. 4:
The terminal includes:Determining unit 410, judging unit 420, trigger element 430 and recovery unit 440.
Wherein it is determined that unit 410, for determining to receive short message of answering a pager's call;
Judging unit 420, for after the determining unit 410 determines to receive short message of answering a pager's call, judging the modulation
Whether demodulator is in idle condition;
Trigger element 430, for when the modem is in idle condition, triggering the modem again
Start, when the modem is in running order, then monitoring that the modem is empty from working condition entrance
After not busy state, the modem restarting is triggered;
Recovery unit 440, for making the terminal be attached to network side by modem restarting, so that
The terminal recovers data service.
In an optional implementation, determining unit 410 can include(Not shown in Fig. 4):
Message retrieval subelement, the message content for the short message according to preset time period to receiving is retrieved;
Message determination subelement, for when retrieve in message content comprising it is default answer a pager's call keyword when, it is determined that described
The corresponding short message of message content is short message of answering a pager's call.
In another optional implementation, recovery unit 440 can include(Not shown in Fig. 4):
Message transmission sub-unit, for sending Attach Request message to the network equipment by the modem;
Message sink subelement, for receiving the identification that the network equipment is sent according to the Attach Request message
Request message;
The message transmission sub-unit, is additionally operable to return to body to the network equipment according to the identification request message
Part identification request response;
The message sink subelement, is additionally operable to receive the network equipment and passes through in the identification authentication to the terminal
Afterwards, the attachment received message returned to the terminal;
The message transmission sub-unit, is additionally operable to be sent to the network equipment according to the attachment received message and has adhered to
Into message.
It is one embodiment block diagram for the terminal that the present invention recovers data service referring to Fig. 5:
The terminal includes:Network interface 510, modem 520 and processor 530.
Wherein, the network interface 510, for receiving short message;
The processor 530, for it is determined that the network interface 510 is received when answering a pager's call short message, triggering is described to adjust
Modulator-demodulator 520 restarts, and the terminal is attached to network side by the modem 520 restarting, with
The terminal is set to recover data service.
In an optional implementation:
The processor 530, specifically for the short message that is received according to preset time period to the network interface
Message content is retrieved, when retrieve in message content comprising it is default answer a pager's call keyword when, determine the message content pair
The short message answered is short message of answering a pager's call.
In another optional implementation:
The processor 530, is additionally operable to judge whether the modem 520 is in idle condition;
The processor 530, specifically for when the modem 520 is in idle condition, triggering the modulation
Demodulator 520 restarts, and when the modem 520 is in running order, is then monitoring the modem
520 enter after idle condition from working condition, trigger the modem 520 and restart.
In another optional implementation:
The modem 520, specifically for by the network interface 510, attach request is sent to the network equipment
Message, receives the identification request message that the network equipment is sent according to the Attach Request message, according to the identity
Recognize that request message returns to identification request response to the network equipment, receive the network equipment to the end
The identification authentication at end is sent by the attachment received message of rear return, and according to the attachment received message to the network equipment
Adhere to completion message.
As seen from the above-described embodiment, terminal determines to receive after short message of answering a pager's call, triggering modem restarting, and
Network side is attached to by modem restarting, so that terminal recovers data service.Terminal in the embodiment of the present invention
When answering a pager's call recovery data service, power-on operation is closed again without user, but by terminal after short message of answering a pager's call is received, automatically
Modem restarting is triggered, so that recover data service after terminal completes network attachment, therefore operating process is simple,
The use of data service can be recovered in the case where not influenceing end-user experience.
It is required that those skilled in the art can be understood that the technology in the embodiment of the present invention can add by software
The mode of general hardware platform realize.Understood based on such, the technical scheme in the embodiment of the present invention substantially or
Say that the part contributed to prior art can be embodied in the form of software product, the computer software product can be deposited
Storage is in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are to cause a computer equipment(Can be with
It is personal computer, server, or network equipment etc.)Perform some part institutes of each embodiment of the invention or embodiment
The method stated.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.It is real especially for system
Apply for example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
The embodiments of the present invention described above are not intended to limit the scope of the present invention.It is any in the present invention
Spirit and principle within the modifications, equivalent substitutions and improvements made etc., should be included in the scope of the protection.