Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The control method and the terminal of the area communication that the embodiment of the invention is provided below in conjunction with accompanying drawing are described in detail.
Embodiment one:
As shown in Figure 1, the control method of the area communication that the embodiment of the invention provides comprises:
101, obtain the present located area information.
Terminal can be by receiving the broadcast that the base station issues, and parse current area information from described broadcast;
Here said area information can be location area information or route district information, and this area information also can be location area information and route district information certainly.
102, described current region information and the localized area information that prestores are compared.
The localized area information that terminal prestores in can the memory block with the current region information that gets access to and terminal is compared, and correspondingly carries out subsequent operation according to comparison result then;
Wherein, described localized area can be the zone that allows described terminal to communicate.
103, if described current region belongs to described localized area, then terminal is carried out registration process.
Wherein, by current region information and the localized area information that prestores are compared, if when current region information belongs to the localized area information that prestores, promptly current region belongs to the localized area, the process that terminal just can be registered.
In the present embodiment, the executive agent of above steps can be a user terminal, and this user terminal can be a wireless terminal, for example mobile phone, perhaps data card.
In order to realize above-mentioned control method better, the embodiment of the invention also provides a kind of terminal that realizes area communication, and as shown in Figure 2, described terminal comprises:
Acquiring unit 21 is used to obtain the present located area information;
Comparingunit 22 is used for described current region information and the localized area information that prestores are compared;
Registeringunit 23 is used for carrying out registration process when described current region belongs to described localized area.
The control method of the area communication that the embodiment of the invention provides and terminal, judge by terminal self but whether the present located zone is communication zone, but and in current zone of living in for finishing the network registration process of terminal under the situation of communication zone, thereby realize the control in the zone that can communicate to described terminal; Method that provides in the present embodiment and terminal can the mode of non-limiting SIM card realizes that terminal communicates in the appointed area by limiting terminal.
Embodiment two:
Come the control method of area communication that the embodiment of the invention is provided to be described in detail with a specific embodiment below.In the present embodiment, the lane place that can communicate by setting terminal equipment is come its communication zone is limited; Because (Location Area Code is unique LAC) to the lane place identification code of each province of the whole nation, such as the location area information LAC=44049 of certain city A, therefore can represent location area information by the lane place identification code.
Particularly, as shown in Figure 3, the control method of the area communication that provides in the embodiment of the invention may further comprise the steps:
301, will limit in the memory block that location area information is saved in terminal, wherein said qualification lane place can be the geographic area that allows described terminal to communicate.
In the present embodiment, location area information embodies by the lane place identification code, and therefore, above-mentioned steps just is saved in the lane place identification code LAC0 of needs lockings in the memory block of terminal; Wherein, described lane place identification code LAC0 correspondence can be a province, also can be the set in a plurality of provinces.
Wherein,step 301 can be to finish before terminal equipment dispatches from the factory, and in the process of using described terminal, only need carry outstep 302 tostep 305 and get final product.
302, terminal receives the broadcast that the base station issues, and parses the lane place identification code LAC1 of current present position from the broadcast that receives.
Carry lane place identification code (LAC) in this broadcast (BCCH), therefore,, just can extract the lane place identification code of current present position by resolving this broadcast.
303, terminal compares the lane place identification code LAC0 that preserves in the lane place identification code LAC1 of current present position and the terminal storage district.
If described LAC1 belongs to the scope that described LAC0 writes down, then carry outstep 304; Otherwise, execution instep 305.
304, terminal is carried out network registry and the follow-up process (such as attachment flow) that satisfies protocol requirement.
Like this, can carry out normal CS territory (Circuit Switched Domain, circuit commutative field) business the back user that succeeds in registration.
305, terminal stops network registration process, and the user can't normally use terminal to communicate.
After this, terminal can be monitored broadcast always, and repeated execution ofsteps 302 to 305.
In the present embodiment, also need to consider following phenomenon: the lane place identification code LAC0 of described localized area is kept in the memory block of terminal, and the lane place identification code LAC1 of the current present position that terminal parses from broadcast may just be kept in the buffer memory.Like this, if the present position-region identification code that terminal parses from the broadcast that listens to all will compare with LAC0 at every turn, can be consuming time longer.Whether therefore, the lane place identification code of the last time of writing down in up-to-date present position-region identification code that can at first terminal be got access at every turn and the buffer memory compares, change to judge present position-region; If described present position-region has changed, so more up-to-date present position-region identification code that gets access to and described LAC0 are compared, to determine that whether current region is the communication zone under the described terminal, whether promptly described terminal can communicate at current region.
Need to prove, in the foregoing description, be kept at the lane place identification code LAC0 of terminal and the lane place identification code LAC1 of current present position in advance for the ease of distinguishing, the lane place identification code of preservation in advance and the lane place identification code of current present position are distinguished with LAC0 and LAC1, be for the ease of setting forth, the embodiment of the invention not being construed as limiting.
The control method of the area communication that the embodiment of the invention provides, by the location area information in the terminal parses network broadcast message, and then but the communication zone information of preserving in the location area information that gets access to and the terminal compared, to determine but whether terminal present located lane place is communication zone, but and in current zone of living in for finishing the network registration process of terminal under the situation of communication zone, thereby realize the control in the zone that can communicate to described terminal; The method that provides in the embodiment of the invention can realize limiting at the area communication of terminal by end side, and promptly described terminal can only communicate in the appointed area.
Embodiment three:
Come the control method of area communication that the embodiment of the invention is provided to be described in detail with a specific embodiment below.In the present embodiment, the route district that can communicate by setting terminal equipment comes its communication zone is limited; Because (Routing Area Code is unique RAC) to the route district identification code of each province of the whole nation, such as the route district information RAC=44049 of certain city A, therefore can represent route district information by route district identification code.
Particularly, as shown in Figure 4, the control method of the area communication that provides in the embodiment of the invention may further comprise the steps:
401, will limit route district information and be saved in the memory block of terminal, wherein said qualification route district can be the Routing Area that allows described terminal to communicate.
In the present embodiment, route district information embodies by route district identification code, and therefore, above-mentioned steps just is saved in the route district identification code RAC0 of needs lockings in the memory block of terminal; Wherein, described route district identification code RAC0 correspondence can be a province, also can be the set in a plurality of provinces.
Wherein, step 401 can be to finish before terminal equipment dispatches from the factory, and in the process of using described terminal, only need carry out step 402 to step 405 and get final product.
402, terminal receives the broadcast that the base station issues, and parses the route district identification code RAC1 of current present position from the broadcast that receives.
Carry route district identification code (RAC) in this broadcast (BCCH), therefore,, just can extract the route district identification code of current present position by resolving this broadcast.
403, terminal compares the route district identification code RAC0 that preserves in the route district identification code RAC1 of current present position and the terminal storage district.
If described RAC1 belongs to the scope that described RAC0 writes down, then carry out step 404; Otherwise, execution in step 405.
404, terminal is carried out network registry and the follow-up process (such as attachment flow) that satisfies protocol requirement.
Like this, can carry out normal CS territory business the back user that succeeds in registration.
405, terminal stops network registration process, and the user can't normally use terminal to communicate.
After this, terminal can be monitored broadcast always, and repeated execution of steps 402 to 405.
Need to prove, in the foregoing description, be kept at the route district identification code RAC0 of terminal and the route district identification code RAC1 of current present position in advance for the ease of distinguishing, the route district identification code of preservation in advance and the route district identification code of current present position are distinguished with RAC0 and RAC1, be for the ease of setting forth, the embodiment of the invention not being construed as limiting.
In the present embodiment, also need to consider following phenomenon: the route district identification code RAC0 of described localized area is kept in the memory block of terminal, and the route district identification code RAC1 of the current present position that terminal parses from broadcast may just be kept in the buffer memory.Like this, if the current route district identification code that terminal parses from the broadcast that listens to all will compare with RAC0 at every turn, can be consuming time longer.Whether therefore, the route district identification code of the last time of writing down in up-to-date current route district's identification code that can at first terminal be got access at every turn and the buffer memory compares, change to judge current route district; If described current route district has changed, so more up-to-date current route district's identification code and the described RAC0 that gets access to compared, to determine that whether current region is the communication zone under the described terminal, whether promptly described terminal can communicate at current region.
The control method of the area communication that the embodiment of the invention provides, by the route district information in the terminal parses network broadcast message, and then but the communication zone information of preserving in the route district information that gets access to and the terminal compared, to determine but whether terminal present located route district is communication zone, but and in current zone of living in for finishing the network registration process of terminal under the situation of communication zone, thereby realize the control in the zone that can communicate to described terminal; The method that provides in the embodiment of the invention can realize limiting at the area communication of terminal by end side, and promptly described terminal can only communicate in the appointed area.
In the foregoing description two and embodiment three, be to come the scheme that provides in the embodiment of the invention is described as area information with location area information and route district information respectively; Except above-mentioned implementation, location area information and route district information can also be combined as area information, its specific implementation process is similar with the description among embodiment two or the embodiment three, repeats no more herein.
Embodiment four:
Corresponding to above-mentioned zone control of communication method, present embodiment provides a kind of terminal that realizes area communication, and as shown in Figure 5, this terminal comprises acquiringunit 51, comparingunit 52, registeringunit 53 andpreserves unit 54; Particularly,
Before described terminal is dispatched from the factory, at first localized area information is saved in the memory block of described terminal by preservingunit 54; The zone of described localized area for allowing described terminal to communicate; Wherein, described area information can be location area information or route district information, and certain described area information also can be information area information and route district information.
In the process of the described terminal of follow-up use, acquiringunit 51 is used to obtain the present located area information; The localized area information that prestores in the current region information that comparingunit 52 gets access to described acquiringunit 51 and the memory block of described terminal is compared; If described current region information belongs to described localized area, then registeringunit 53 such as can register at process, so that the user carries out normal CS territory business.
Wherein, described acquiringunit 51 further comprises:
Receiver module 511 is used to receive the broadcast that the base station issues;
Parsingmodule 512 is used for resolving current region information from described broadcast.
Described comparingunit 52 further comprises:
Judge module 521 is used for after terminal whenever receives a broadcast, judges according to the positional information of wherein carrying whether current region information changes;
Comparingmodule 522 is used for when described current region information changes, and described current region information and the localized area information that prestores are compared.
Wherein, for above-mentioned all embodiment, this terminal can be wireless terminal, for example mobile phone, or data card, and the embodiment of the invention is not limited thereto.
The terminal of the realization area communication that present embodiment provides, by resolving the current region information in the network broadcast message, and then but the communication zone information of preserving in the current region information that gets access to and the terminal compared, to determine but whether terminal present located zone is communication zone, but and in current zone of living in for finishing the network registration process of terminal under the situation of communication zone, thereby realize the control in the zone that can communicate to terminal; The terminal that provides in the present embodiment can be by self realizing the area communication qualification at terminal.
By the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform, can certainly all implement by hardware.Based on such understanding, all or part of can the embodying that technical scheme of the present invention contributes to background technology with the form of software product, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.