Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of acquisition methods of roaming state of mobile terminal, is intended to solve the problem that can't obtain roaming state of mobile terminal in the prior art in real time.
The embodiment of the invention is achieved in that a kind of acquisition methods of roaming state of mobile terminal, comprises the steps:
Send location update request message, described location update request message is carried the roaming state of mobile terminal solicited message;
Receiving position upgrades accepts message, and the renewal of described position is accepted message and carried roaming state of mobile terminal information.
The embodiment of the invention also provides a kind of portable terminal, and described portable terminal comprises:
The location update request message sending module is used to send location update request message, and described location update request message is carried the roaming state of mobile terminal solicited message;
The position is upgraded and is accepted the message sink module, is used for the receiving position renewal and accepts message, and the renewal of described position is accepted message and carried roaming state of mobile terminal information.
The embodiment of the invention also provides a kind of indicating means of roaming state of mobile terminal, and described method comprises the steps:
The location update request message that mobile terminal receive sends, described location update request message is carried the roaming state of mobile terminal solicited message;
Obtain described roaming state of mobile terminal information;
Accept message to described portable terminal home position renewal, the renewal of described position is accepted message and is carried described roaming state of mobile terminal information.
The embodiment of the invention also provides a kind of mobile communications network, and described network comprises:
The exchange network element, be used for the location update request message that mobile terminal receive sends, described location update request message is carried the roaming state of mobile terminal solicited message, send and upgrade lane place message, described renewal lane place message is carried described roaming state of mobile terminal solicited message, receive the renewal lane place and accept message, described renewal lane place is accepted message and is carried roaming state of mobile terminal information, and upgrade to described portable terminal home position and to accept message, described position is upgraded and is accepted message and carry described roaming state of mobile terminal information; And
Roaming state obtains network element, be used to receive the described renewal lane place message that described exchange network element sends, obtain described roaming state of mobile terminal information, and return the renewal lane place to described exchange network element and accept message, described renewal lane place is accepted message and is carried described roaming state of mobile terminal information.
The embodiment of the invention also provides a kind of mobile communication system, and described system comprises:
Portable terminal is used to send location update request message, and described location update request message is carried the roaming state of mobile terminal solicited message, and receiving position upgrades and to accept message, and described position is upgraded and accepted message and carry roaming state of mobile terminal information;
Mobile communications network, be used to receive the location update request message that described portable terminal sends, obtain described roaming state of mobile terminal information, and accept message to described portable terminal home position renewal, the renewal of described position is accepted message and is carried described roaming state of mobile terminal information.
In the embodiment of the invention, in the location update request message that mobile communications network sends, carry the roaming state of mobile terminal solicited message at portable terminal, and upgrade the roaming state that the roaming state of mobile terminal information of accepting to carry in the message is obtained portable terminal according to the position that mobile communications network returns.Thereby in the position updating process of portable terminal, obtain the roaming state of portable terminal in real time, the prompting mobile phone users rationally uses mobile communication business, avoids when mobile phone users is ignorant the outer mobile communication expense of amount because roaming state of mobile terminal changes.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, by in the location update request message that mobile communications network sends, carrying the roaming state of mobile terminal solicited message that is used to indicate whether to provide roaming state of mobile terminal information at portable terminal, and message is accepted in the position renewal that receives the roaming state of mobile terminal information of carrying of mobile communications network transmission, thereby be implemented in the position updating process of portable terminal, obtain the roaming state of portable terminal in real time.
The realization flow figure of the acquisition methods of the roaming state of mobile terminal that Fig. 1 provides for first embodiment of the invention, details are as follows:
In step S101, portable terminal sends location update request message to mobile communications network, this location update request message is carried the roaming state of mobile terminal solicited message, and this roaming state of mobile terminal solicited message is used to indicate mobile communications network whether roaming state of mobile terminal information is provided.Wherein, roaming state of mobile terminal comprises: local non-roaming state, domestic Home Network roaming state, domestic across-network roaming state, international Home Network roaming state and international across-network roaming state.This roaming state of mobile terminal solicited message can be that roaming state of mobile terminal provides sign, carry roaming state of mobile terminal in the location update request message form of sign being provided can be to increase an information unit in existing location update request message newly, also can be on the information unit basis of existing location update request message, carry out multiplexing.
As above shown in the table, current, the 3rd of 8 hytes of first of location update request message is not defined use, therefore can define this position provides flag bit for roaming state of mobile terminal, as to define this position be 1 o'clock, the indication mobile communications network provides roaming state of mobile terminal information, and this position is 0 o'clock, and roaming state of mobile terminal information is not provided.
In step S102, message is accepted in the position renewal that receives the mobile communications network transmission, and this position renewal is accepted message and carried roaming state of mobile terminal information.This roaming state of mobile terminal information is this VLR Visitor Location Register type that the attaching position register of this portable terminal obtains according to the VLR Visitor Location Register number that upgrades this portable terminal that carries in the location message, and this VLR Visitor Location Register type comprises: local type, domestic Home Network type, domestic inter-network type, international Home Network type and international inter-network type.
For the roaming state of real-time indicating mobile terminal, described method also comprises the steps:
In step S103, according to roaming state of mobile terminal information, the indicating mobile terminal roaming state.Concrete implementation can be, the roaming state of mobile terminal roaming type code with the sign portable terminal is set in portable terminal, according to roaming state of mobile terminal information, upgrade the mobile terminal roaming type code, portable terminal is according to the roaming state of this mobile terminal roaming type code indicating mobile terminal.Wherein the implementation of the roaming state of indicating mobile terminal can have multiple, as the special icon that adopts ad-hoc location or symbol roaming state by the display screen indicating mobile terminal of portable terminal.
The realization flow figure of the acquisition methods of the roaming state of mobile terminal that Fig. 2 provides for second embodiment of the invention, wherein step S201, step S202 are identical with step S101, step S102 in the present invention's first enforcement, difference is, the acquisition methods of the roaming state of mobile terminal that second embodiment of the invention provides also comprises the steps: after step S202
In step S203, when receiving the mobile communication business request,, produce the prompting that this mobile communication business is used according to roaming state of mobile terminal.As mobile phone users telephone calling business when roaming, the prompting mobile phone users is current for roaming state, perhaps points out mobile phone users rationally to control the air time etc.
The realization flow figure of the acquisition methods of the roaming state of mobile terminal that Fig. 3 provides for third embodiment of the invention, wherein step S301, step S302 are identical with step S101, step S102 in the first embodiment of the invention, difference is, the acquisition methods of the roaming state of mobile terminal that third embodiment of the invention provides also comprises the steps: after step S302
In step S303, when receiving the mobile communication business request, according to roaming state of mobile terminal, restriction is to the use of this mobile communication business.As mobile phone users telephone calling business when roaming, limiting telephone call duration etc. are to save the mobile communication expense.
The portable terminal that the embodiment of the invention provides comprises: the location update request message sending module, be used to send location update request message, this location update request message is carried the roaming state of mobile terminal solicited message, this roaming state of mobile terminal solicited message is used to indicate whether to provide roaming state of mobile terminal information, and it can be that roaming state of mobile terminal provides sign.The position is upgraded and is accepted the message sink module, is used for the receiving position renewal and accepts message, and this position renewal is accepted message and carried roaming state of mobile terminal information.
For the roaming state of real-time indicating mobile terminal, the portable terminal that the embodiment of the invention provides also comprises: the roaming state indicating module is used for the roaming state according to roaming state of mobile terminal information indicating mobile terminal; Reminding module is used for producing the prompting to mobile communication business under roaming state of mobile terminal; Limiting module is used for limiting the use to mobile communication business under roaming state of mobile terminal.
The realization flow figure of the indicating means of the roaming state of mobile terminal that Fig. 4 provides for the embodiment of the invention, details are as follows:
In step S401, the location update request message that mobile terminal receive sends, this location update request message is carried the roaming state of mobile terminal solicited message, this roaming state of mobile terminal solicited message is used to indicate whether to provide roaming state of mobile terminal information, and it can be that roaming state of mobile terminal provides sign.Carrying roaming state of mobile terminal in the location update request message provides sign as mentioned above, repeats no more.
In step S402, obtain roaming state of mobile terminal information.In the position updating process of portable terminal, the attaching position register of portable terminal is accepted the renewal location message of the VLR Visitor Location Register transmission of portable terminal, this renewal location message is carried this VLR Visitor Location Register number, this attaching position register obtains this VLR Visitor Location Register type according to this VLR Visitor Location Register number, and this VLR Visitor Location Register type is roaming state of mobile terminal information.
In step S403, send the position renewal and accept message, this position renewal is accepted message and is carried roaming state of mobile terminal information.
Below (Global System for Mobile Communications GSM) is example, describes the realization flow of the indicating means of roaming state of mobile terminal in detail with global system for mobile communications.
GSM comprise mobile switching centre (Mobile Switch Center, MSC), VLR Visitor Location Register (Visit Location Register, VLR) and attaching position register (Home Location Register, HLR).When portable terminal enters new lane place in the MSC overlay area, when promptly VLR is constant, the position updating process of portable terminal will not relate to HLR, promptly need not upgrade HLR, otherwise the position updating process of portable terminal will be referred to HLR, promptly must upgrade HLR.
The location area updating flow chart that relates to HLR that Fig. 5 provides for the embodiment of the invention, details are as follows:
1, MSC receives the location update request message of carrying the roaming state of mobile terminal solicited message, and this roaming state of mobile terminal solicited message is used to indicate whether to provide roaming state of mobile terminal information, and it can be that roaming state of mobile terminal provides sign.
2, MSC sends to VLR and upgrades lane place message, and this renewal lane place message is carried roaming state of mobile terminal provides sign.
3, VLR sends to HLR and upgrades location message, and this renewal location message is carried this VLR number.
4, HLR obtains this VLR type according to upgrading the VLR number that location message is carried.This VLR type is roaming state of mobile terminal information, because this VLR type is respectively to should roaming state of mobile terminal, as the corresponding local non-roaming state of local type, Home Network roaming state in the domestic Home Network type corresponding country, across-network roaming state in the domestic inter-network type corresponding country, the corresponding international Home Network roaming state of international Home Network type, the corresponding international across-network roaming state of international inter-network type.
Be preset with VLR number prefix and VLR type correspondence table among the HLR, its corresponding relation is as shown in the table:
The VLR number prefix information |
The VLR type information |
VLR prefix 1 |
Local type |
VLR prefix 2 |
Domestic Home Network type |
VLR prefix 3 |
Domestic inter-network type |
VLR prefix 4 |
International Home Network type |
VLR prefix 5 |
International inter-network type |
HLR will upgrade in the VLR number that carries in the location message and the above-mentioned correspondence table VLR number prefix and mate, and maximum coupling obtains this VLR type.
5, HLR returns the renewal position and accepts message to VLR.This renewal position is accepted message and is carried roaming state of mobile terminal information, this roaming state of mobile terminal information can be the information unit of accepting to increase newly in the message in existing renewal position, also can be carry out on accepting the basis of information unit of message in existing renewal position multiplexing.
6, VLR stores this renewal position and accepts the roaming state of mobile terminal information that message is carried.
7, VLR returns the renewal lane place and accepts message to MSC.When MSC sends to roaming state of mobile terminal that the renewal lane place message of VLR carries when providing the sign indication that roaming state of mobile terminal information is provided, this renewal lane place is accepted message and is carried roaming state of mobile terminal information.
8, the MSC home position upgrades and accepts message to portable terminal.When MSC receives renewal lane place that VLR sends when accepting message and carrying roaming state of mobile terminal information, this position is upgraded and is accepted message and carry roaming state of mobile terminal information.
The location area updating flow chart that does not relate to HLR that Fig. 6 provides for the embodiment of the invention, details are as follows:
1, MSC receives and carries the location update request message that roaming state of mobile terminal provides sign.
2, MSC sends to VLR and carries the renewal lane place message that roaming state of mobile terminal provides sign.
3, VLR reads the roaming state of mobile terminal information of storage.Roaming state of mobile terminal information VLR is obtained and be stored in to the roaming state of mobile terminal information of this storage from HLR for this VLR in the position updating process that relates to for the first time HLR.
4, VLR sends the renewal lane place and accepts message to MSC.When MSC sends to roaming state of mobile terminal that the renewal lane place message of VLR carries when providing the sign indication that roaming state of mobile terminal information is provided, this renewal lane place is accepted message and is carried roaming state of mobile terminal information.。
5, the MSC home position upgrades and accepts message to portable terminal.When MSC receives renewal lane place that VLR sends when accepting message and carrying roaming state of mobile terminal information, this position is upgraded and is accepted message and carry roaming state of mobile terminal information.。
The mobile communications network that the embodiment of the invention provides comprises: the exchange network element, be used for the location update request message that mobile terminal receive sends, carry the roaming state of mobile terminal solicited message in this location update request message, send and upgrade lane place message, this renewal lane place message is carried the roaming state of mobile terminal solicited message, receive the renewal lane place and accept message, described renewal lane place is accepted message and is carried roaming state of mobile terminal information, and upgrade to the portable terminal home position and to accept message, this position is upgraded and is accepted message and carry roaming state of mobile terminal information; Roaming state obtains network element, is used for obtaining roaming state of mobile terminal information according to the renewal lane place message that the exchange network element sends, and returns the renewal lane place to the exchange network element and accept message, and this renewal lane place is accepted message and carried roaming state of mobile terminal information.
When the position of portable terminal is updated to the renewal that relates to attaching position register, the exchange network element comprises mobile switching centre, be used for the location update request message that mobile terminal receive sends, this location update request message is carried the roaming state of mobile terminal solicited message, send and upgrade lane place message, this renewal lane place message is carried the roaming state of mobile terminal solicited message, receive the renewal lane place and accept message, this renewal lane place is accepted message and is carried roaming state of mobile terminal information, and upgrade to the portable terminal home position and to accept message, this position is upgraded and is accepted message and carry roaming state of mobile terminal information; Roaming state obtains network element and comprises VLR Visitor Location Register and attaching position register, wherein this VLR Visitor Location Register is used to receive the renewal lane place message that mobile switching centre sends, this renewal lane place message is carried the roaming state of mobile terminal solicited message, and to attaching position register transmission renewal location message, this renewal location message is carried this VLR Visitor Location Register number, reception is accepted message from the renewal position that attaching position register returns, this renewal position is accepted message and is carried roaming state of mobile terminal information, memory mobile terminal roaming state information, return the renewal lane place to mobile switching centre and accept message, when upgrading roaming state of mobile terminal solicited message indication that lane place message carries roaming state of mobile terminal information is provided, this renewal lane place is accepted message and is carried roaming state of mobile terminal information.Attaching position register is used to receive the renewal location message that VLR Visitor Location Register sends, the VLR Visitor Location Register number that carries according to this renewal location message obtains this VLR Visitor Location Register type, this VLR Visitor Location Register type is roaming state of mobile terminal information, return the renewal position to this VLR Visitor Location Register and accept message, this renewal position is accepted message and is carried roaming state of mobile terminal information.
When the position of portable terminal is updated to the renewal that does not relate to attaching position register, the exchange network element comprises mobile switching centre, be used for the location update request message that mobile terminal receive sends, this location update request message is carried the roaming state of mobile terminal solicited message, send and upgrade lane place message, this renewal lane place message is carried the roaming state of mobile terminal solicited message, receive the renewal lane place and accept message, this renewal lane place is accepted message and is carried roaming state of mobile terminal information, and upgrade to the portable terminal home position and to accept message, this position is upgraded and is accepted message and carry roaming state of mobile terminal information; The roaming state network element comprises VLR Visitor Location Register, be used for receiving renewal lane place message, this renewal lane place message is carried the roaming state of mobile terminal solicited message, read the roaming state of mobile terminal information of storage, return the renewal lane place to mobile switching centre and accept message, when upgrading roaming state of mobile terminal solicited message indication that lane place message carries roaming state of mobile terminal information is provided, this renewal lane place is accepted message and is carried roaming state of mobile terminal information.
The structural representation of the mobile communication system that Fig. 7 provides for the embodiment of the invention, details are as follows:
The location update request message sending module 711 of portable terminal sends location update request message to the mobile switching centre 721 of mobile communications network, this location update request message is carried the roaming state of mobile terminal solicited message, and this roaming state of mobile terminal solicited message can be that roaming state of mobile terminal provides sign.Mobile switching centre 721 sends and upgrades the VLR Visitor Location Register 722 of lane place message to mobile communications network, and this renewal lane place message is carried roaming state of mobile terminal provides sign.This VLR Visitor Location Register 722 sends and upgrades location message to this attaching position register 723, and this renewal location message is carried this VLR Visitor Location Register 721 numbers.This attaching position register 723 carries out the maximum coupling with these VLR Visitor Location Register 722 numbers and the VLR Visitor Location Register prefix and the VLR Visitor Location Register prefix in the VLR Visitor Location Register type correspondence table that default in wherein, obtain this VLR Visitor Location Register type, this VLR Visitor Location Register type is roaming state of mobile terminal information.This attaching position register 723 returns the renewal position to this VLR Visitor Location Register 722 and accepts message, and this renewal position is accepted message and carried roaming state of mobile terminal information.Message is accepted in the renewal position that these VLR Visitor Location Register 722 these attaching position registers 723 of reception return, memory mobile terminal roaming state information, this VLR Visitor Location Register 722 will return the renewal lane place to this mobile switching centre 721 and accept message, and this renewal lane place is accepted message and carried roaming state of mobile terminal information.This mobile switching centre 721 accepts the renewal of message sink module 712 home positions to the renewal of the position of portable terminal and accepts message, and this position renewal is accepted message and carried roaming state of mobile terminal information.Roaming state for real-time indicating mobile terminal, the roaming state indicating module 713 of portable terminal is used for the roaming state according to roaming state of mobile terminal information indicating mobile terminal, the reminding module 714 of portable terminal is used for producing the prompting that mobile communication business is used at roaming state, and the limiting module 715 of portable terminal is used in the use of roaming state restriction to mobile communication business.
In sum, in embodiments of the present invention, by in location update request message, carrying the roaming state of mobile terminal solicited message, mobile communications network obtains roaming state of mobile terminal information, and return the position renewal of carrying roaming state of mobile terminal information and accept message, portable terminal can obtain the roaming state of portable terminal in real time in its position updating process, the roaming state of indicating mobile terminal, the prompting mobile subscriber rationally uses mobile communication business, or restriction is to the use of mobile communication business.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.