Determining and reminding method of city, cellphone subscriber place or area
One. technical field
What the present invention relates to city, a kind of cellphone subscriber place determines and reminding method that it belongs to mobile communication and field of computer technology.
Two. background technology
The application of current phone more and more widely, according to statistics, now there is cellphone subscriber about 3.1 hundred million in China.These users are engaged in different work, thereby mobile communication is had different demands.The business people generally not too is concerned about mobile phone charge, only is concerned about that any moment can liaison; And some income wage-earners not high and that seldom go on business and students seldom use roaming function basically, are local call mostly.In order to satisfy requirements of different users, present two mobile communication carriers, China Mobile and the CHINAUNICOM group service that released one after another, the service of emotional affection set meal, dynamic it's up to me the service of Denging.A common feature of these services is exactly: require the user can only be in handling the zone of set meal or group service appointment just effective (normally in the city at cell-phone number place), in a single day and gone out this zone, then calculate (at this time often being long-distance roaming) by normal charge.For this part user, know that at any time own residing region or city then are very important.If the user is inapt to be known and have many scruple when then making a phone call in residing region or city, even spent a large amount of telephone chargess unconsciously.Whether the user is current roams if mobile phone as a smart mobile phone, can be reminded, even which place roams into, and will greatly satisfy this part user's needs.
Retrieval is found, application number is 200410007136.1, the applying date is that the Chinese invention patent of 2004.02.20 discloses a kind of solution and is: the method that adopts the registration of mobile terminal roaming regional location, this method comprises: the A. portable terminal is initiated position register request to network equipment, the network equipment that receives this request obtains the alternative transmission parameter of this regional mobile network identification number and system banner correspondence according to the corresponding relation that is provided with, and this alternate parameter is carried at sends to attaching position register in the position register request; B. attaching position register parses the mobile network identification number of this alternate parameter correspondence that this request carries and system banner number according to the corresponding relation that is provided with, judge that whether the mobile network identification number parse and system banner number be this portable terminal at the mobile network identification number in the current roaming zone that attaching position register is provided with and system banner number, if attaching position register sends the location registers success response to network equipment; Otherwise attaching position register sends the unsuccessful response of location registers to network equipment.
The defective of said method is, operator does not provide the service of location registers now, so when portable terminal was initiated position register request to network equipment, network can't be made correct reaction, can not receive registration success response or the unsuccessful response of registration that attaching position register is sent yet.
According to gsm protocol, mobile operator divides the movable signal covering area for different lane place, and for having specified only lane place identification code LAI in each lane place.The lane place is meant that travelling carriage (normally mobile phone) can move and not need to carry out the zone of position renewal arbitrarily, and it can be made up of one or several sub-districts, and in order to call out travelling carriage, paging signal is sent out in all base stations in a lane place simultaneously by system.Lane place identification code LAI is used for the request that the detection position is upgraded and channel switches.Obviously,, that is to say when the identification code of the lane place identification code is determined for the subscriber phone number location lane place, affirm and can not roam if the user when movable, can not roam in the lane place that phone number is determined certainly.
The lane place identification code comprises three parts, and as shown in Figure 1: the country under the only sign of the Mobile Country Code MCC MCC mobile subscriber is 460 as the MCC of China.Mobile network No. sign MNC is identifying the mobile radio communication of mobile user affiliation, in China, the MNC of China Mobile is 00, the MNC of CHINAUNICOM is 01, so as long as we pay close attention to lane place number LAC, that is to say, when lane place number LAC be subscriber phone number determine the lane place number time, can not roam certainly.Usually roaming is that unit determines with province or city, so the key of problem just is: how (1) obtains the lane place number; (2) how to determine the relation in lane place number and city.
After mobile phone is received the paging signal of base station, can from paging signal, identify Cell Global Identification CGI.CGI has global uniqueness, and its composition as shown in Figure 2.
Obviously, can from CGI, isolate lane place number LAC, just whenever receive the paging of a base station, just can obtain the lane place number LAC in current present position district.Therefore for determining whether mobile phone is roamed, will set up the corresponding relation of city (service of these types all is to be based upon in the scope of provincial or city level usually) and lane place number.
In actual use, city and lane place are not to concern one to one, are the relations of one-to-many, and big city such as Shanghai comprise the several position district, and little city also may include only a lane place.Add the variation along with number of mobile users in each city, the bandwidth of CU is also changing, and mobile operator can adjust lane place and lane place number, thereby can't set the fixing lane place number and the corresponding relation in city when mobile phone is produced.
Three, summary of the invention
The objective of the invention is to, point out the user whether to be in roaming state exactly, even point out where the user is current is in, can make the clear and definite unit costs of oneself conversing of user like this, and finally reach the purpose of saving cost of the phone call.
Mobile phone belongs to the communication products that certain intelligence is arranged, and certain memory and computing function are all arranged.Solution of the present invention is to train the mobile phone with certain intelligence by the user, makes it can tell finally whether mobile phone is current is in roaming, can also judge where rove under the sufficient situation of training.The main contents of user training are exactly to allow the mobile phone can clear lane place and the corresponding relation in operator appointed positions district, and how to use this corresponding relation to remind the user.Mobile phone can be reminded the user according to being provided with two kinds of display modes of user: only sign is this locality or roaming (getting final product with a little pattern identification); Identify current place city name or Netherlands, unknown city name or Netherlands are shown roaming state (user knows local city name or Netherlands certainly), this mode will show city name or Netherlands (using character string to show).
Technical scheme of the present invention is: the permanent memory write at mobile phone (is dialled the memory that battery or shutdown back information do not disappear, normally FLASH storage) sets up the mapping table of a city and operator's appointed positions area code sign indicating number in, this mapping table is not an one-to-one relationship, and a city can corresponding a plurality of lane place number.This form is fully by user management, the change of a lane place number of the every discovery of user's mobile phone, then judge the present located zone, then submit to the user to determine and preserve the city or the Netherlands of user's input if can't judge according to new lane place number and mapping table; Show roaming flag or present located city or regional information according to being provided with of user.
The user can add arbitrarily, and deletion is checked, revises any content in this table.The work that mobile phone is done mainly is exactly to obtain the lane place number to report to the user again, is saved in the form according to user's requirement.This table establish dual mode, a kind of mode is that the developer by mobile phone sets up in advance and is kept in the mobile phone, when mobile phone dispatched from the factory, this table was for empty; Also having a kind of mode is when the user starts the roam prompting function of mobile phone, as long as obtain the lane place number, judges whether this table exists earlier, if do not exist, creates this table of this sky.In use, when the roam prompting function of mobile phone is in open mode, when whenever obtaining a lane place number, just judge whether this lane place number is identical with a last lane place number, if it is identical, directly withdraw from, different if (the lane place change has just taken place), judge that then reposition area code sign indicating number is whether in table, if in table, judge then whether city, current place changes, if current city name or Netherlands are not then revised in change, if change, then revise current city name or Netherlands, and show roaming flag or current city or Netherlands according to being provided with of user; If the lane place number that obtains is not in form, then point out the user whether to preserve, if preserve, then ask the user to import place name, receive the place name of user's input after, if the user does not specify local city or Netherlands, then requiring the user to determine whether is local position area code sign indicating number, if user's selection is then to upgrade local city or Netherlands, if not, then do not carry out any operation.In the use afterwards, the user can be provided with switching variable, when switching variable when opening, as long as mobile phone obtains new lane place number, just point out the user whether to preserve, when the user confirms to preserve, then ask the user to import place name, the user also can select one in the ground list of file names is arranged certainly.Preserve when finishing and to inquire whether the user is made as local place name with current this place name.If switching variable is for closing, then upgrade and do not remind the user when obtaining new lane place number in the position, it is used as the part of not taking over a job handles, whether the user can initiatively inquire about at any time has new lane place number and is place name of each lane place number appointment.Among the present invention, the lane place number is managed by the user, so in theory, can keep synchronously by a direct sum mobile operator, in the time of the sometimes uncertain own institute of user possession, can directly call 1860 manual boards and inquire about own residing city.
Because the information of being preserved all is to be kept in the permanent memory, so the data that the user adds in city name or Netherlands and the lane place number mapping table are also more and more, the data of user's training just are many more, the intelligence of terminal is just high more, can identify more city, also identify more accurately.
The invention has the beneficial effects as follows the user can determine whether the current mobile phone that oneself carries is in roaming state, even where roam to,, thereby save telephone expenses preferably like this in very clear and definite oneself expense and time relation of when conversation.
Of the present inventionly a kind ofly than typical application be: Xiao Zhang and girlfriend Xiao Wang have done Familiarity Number, Xiao Zhang goes on business from Shanghai by train, just to the boundary of a piece of land, Nanjing, mobile phone just points out Xiao Zhang to enter the boundary of a piece of land, Nanjing, and Xiao Zhang just can make a phone call to Xiao Wang like this, only need 0.2 yuan/minute, if, be exactly roaming charges, clearly in Zhenjiang, in this way, Xiao Zhang can mode and the Xiao Wang's conversation to save most in the fastest time.
Four, description of drawings
Fig. 1 is the composition schematic diagram of lane place identification code LAI;
Fig. 2 is the composition schematic diagram of global cell identification CGI;
Fig. 3 is the display module flow chart;
Fig. 4 is the software processes flow chart;
Fig. 5 is that the user preserves reposition area code code operations flow chart.
Five, embodiment:
The present invention is further described below in conjunction with drawings and Examples.
Being provided with two switching variables at mobile phone, is respectively SwitchForRoaming, and whether its control opens the roam prompting function, and its value is that true time starts the roam prompting function; SwitchForNewLAC, popup menu prompting user whether when it is controlled at the new lane place number of one of every acquisition in the roam prompting function, its value is a true time, all can require the user to confirm whether preserve during the new lane place number of one of every acquisition.
Mobile phone uses a display module to come to show roaming state or current city of living in or area according to being provided with of user, the handling process of this module as shown in Figure 3: use a variable gtIndicatingMode to decide in the mobile phone and notify the user with which kind of pattern.When its value was 0, mobile phone only pointed out that the user is current to be in this locality or to be in roaming state, when roaming, as long as show a roaming flag, otherwise does not show roaming flag; When its value is 1, handset displays user city, current place or Netherlands.
Two variablees and a form are arranged in mobile phone, and these two variablees are respectively gtLocalCityName, the city name or the Netherlands at its place, in store cell-phone number registered place; GtCurrentCityName, its in store current place city name or Netherlands.List name is gtTableForCityNameAndLAC, and it preserves the corresponding relation between city name or Netherlands and the lane place number, and its form is as follows:
City name or Netherlands | Lane place number (LAC) |
Nanjing | XXX1 |
Shanghai | YYY1 |
Shanghai | YYY2 |
Shanghai | YYY3 |
Above-mentioned variable also is kept at (as being saved among the FLASH as file) in the permanent memory except preserving in internal memory, in the opening initialization process the above-mentioned data in the permanent memory is read in the internal memory.When change takes place in above-mentioned variate-value, also upgrade the related data in the permanent memory simultaneously, guarantee both unanimities.Guaranteed that like this user data do not lose, like this along with the data of user's training smart terminal more and more (valid data that add in the form are also more and more), terminal intelligent also more and more stronger, the city that can identify also gets more and more, and is more and more accurate.
The software processes flow process is as shown in Figure 4: behind the roam prompting function on, mobile phone is whenever received the paging signal of base station, can therefrom isolate lane place number LAC.Whenever obtain a lane place number, just it and previous lane place number are compared, if it is identical, do not carry out any operation and withdraw from,, then will deposit the lane place number in reposition area code sign indicating number and the mapping table relatively if different, if in the Location Area Identity tabulation, city name or the Netherlands of then judging its correspondence are current city name or Netherlands gtCurrentCityName, if do not do any operation and withdraw from; If not, then revise current city name or Netherlands variable gtCurrentCityName and withdraw from again to preserve new city name or Netherlands.If the lane place number that newly obtains is not in tabulation, then judge switching variable SwitchForNewLAC, if the value of SwitchForNewLAC be very, then require the user to import this city name or Netherlands, at last city name or Netherlands and new lane place number are added in the form.If the value of SwitchForNewLAC be false, then this lane place number and time of obtaining it are saved in during the lane place number that is untreated tabulates, be similar to the missed call of mobile phone or do not connect note, identical lane place number is only preserved one.The user can check, preserves, and deletes any lane place number in the lane place number tabulation of being untreated.If the roam prompting function is not opened, then the Location Area Identity sign indicating number is not done any operation, directly finish.
When the user selected to preserve the lane place number that is untreated in the tabulation of lane place number, the software operation on the mobile phone was as follows: receive the city name or the Netherlands of user's input earlier, then city name or Netherlands and lane place number are saved in the correspondence table; Judge that then whether SwitchForLocalLAC is true, if be true, then requires the user to be confirmed to be local number frequently, if then upgrade gtLocalCityName.Its handling process as shown in Figure 5.
Our hardware platform of adopting SKYWORKS company to provide of hardware: skyworks Pegasus solution, wherein single-chip microprocessor MCU is the CX805-32 based on ARM7TDMI, radio frequency baseband is Analog baseband:CX20524, radio frequency chip is CX 74063+CX77321, RAM is 4M, and readable and writable memory NOR is 16M.Operation system of software is RTXC, the GSM/GPRS protocol stack that protocol stack provides for SKYWORKS.The programming language that uses is standard C language.