CN101163256A - Method and device for displaying home zone of mobile phone number - Google Patents

Method and device for displaying home zone of mobile phone number Download PDF

Info

Publication number
CN101163256A
CN101163256A CNA2006101171845A CN200610117184A CN101163256A CN 101163256 A CN101163256 A CN 101163256A CN A2006101171845 A CNA2006101171845 A CN A2006101171845A CN 200610117184 A CN200610117184 A CN 200610117184A CN 101163256 A CN101163256 A CN 101163256A
Authority
CN
China
Prior art keywords
phone number
mobile phone
database
home zone
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2006101171845A
Other languages
Chinese (zh)
Inventor
蔡世光
纪金东
顾中阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Appliances Shanghai Corp
Original Assignee
Inventec Appliances Shanghai Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inventec Appliances Shanghai Corp filed Critical Inventec Appliances Shanghai Corp
Priority to CNA2006101171845A priority Critical patent/CN101163256A/en
Publication of CN101163256A publication Critical patent/CN101163256A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method of showing the ownership region of the mobile phone number, including arranging a mobile phone number ownership region database inside a communication device; finding the received mobile phone number in the mobile phone number ownership region database by the preset finding method; showing the ownership region of the mobile phone number if the received mobile phone number is found out. At the same time, the invention also discloses a device for showing the ownership region of the mobile phone number. The invention can ensure that the communication device shows the ownership region of the mobile phone number automatically, which does not need the user to do any operation and is very convenient for using.

Description

A kind of method and device that shows home zone of mobile phone number
Technical field
The present invention relates to phone number and show the field, particularly relate to a kind of method and device that shows home zone of mobile phone number.
Background technology
We are in the process of using phone, mobile phone, usually can receive calling, note or the message of some strange landline telephones, mobile phone, if landline telephone, we can judge the ownership place of this fixed telephone number according to the fixed telephone number that shows, infer possible caller; But if mobile phone, phone number does not have fixing area code, and we just are difficult to directly learn according to the phone number that shows the ownership place of this phone number, infer possible caller, so just might bring some inconvenience to the user, cause unnecessary trouble.
Existing home zone of mobile phone number querying method generally has following several:
1, online enquiries; Login relevant inquiring website, as http://www.hao123.com/haoserver, this phone number of input is inquired about in the home zone of mobile phone number database that put within it the website, and is returned Query Result in phone number inquiry session frame.Query Result is the landline telephone area code of the ownership place and the ownership place of this phone number.
2, the query software inquiry is installed on computers; Relevant inquiring software is installed on computers, as cell-phone telephone number ownership place query software, this phone number of input at query interface, query software can be according to inquiring about in its built-in home zone of mobile phone number database, and returning Query Result, Query Result is the landline telephone area code of the ownership place and the ownership place of this phone number.
3, the software with query function is installed in mobile phone; Software with query function is installed in mobile phone,, is moved this software, import this phone number and inquire about as phone number inquiry 3.0java version.
Above-mentioned the 1st, 2 kind of home zone of mobile phone number querying method needs could realize under certain condition, promptly must have computer, and computer can be surfed the Net or relevant inquiring software has been installed, like this, the cellphone subscriber just can not inquire about timely to the phone number that receives, and practicality is relatively poor.
Though above-mentioned the 3rd kind of home zone of mobile phone number querying method can be inquired about timely to the phone number that receives, and requires user mobile phone must support the java form, do not have generality.And use this inquiry mode, need the user on mobile phone, to move this query software, import phone number to be checked again, can inquire about, the operation relative complex, the user uses very inconvenience.
Summary of the invention
Technical problem to be solved by this invention provides a kind of method and device that shows home zone of mobile phone number, can make communication equipment show the ownership place of phone number automatically, need not the user and carries out any operation, and it is extremely convenient to use.
A kind of method that shows home zone of mobile phone number of the present invention comprises: built-in mobile phone number attribution database in communication equipment; In described home zone of mobile phone number database, search the phone number that receives by the lookup method that presets; As find, show the ownership place of this phone number.
Preferably, also comprise: adopt the Huffman encoding compress mode, described home zone of mobile phone number database is compressed processing.
Preferably, the described lookup method that presets is: the phone number that inquiry receives in the built-in telephone directory of communication equipment, as find, then show the title of described phone number correspondence; As not finding, then adopt the binary search method in described home zone of mobile phone number database, to search.
Preferably, described binary search method is: suppose that high pointer position is H, low pointer position is L, and middle pointer position is M, and the phone number data that M points to are K, and the phone number data that receive are Q; Make H, L point to the upper and lower boundary of described home zone of mobile phone number database respectively, M is set is (L+M)/2;
If K=Q then reads the home zone of mobile phone number of M position;
If K<Q then makes L=M+1, and, compare K and Q once more by above-mentioned regular replacement M;
If K>Q then makes H=M-1, and, compare K and Q once more by above-mentioned regular replacement M.
Preferably, as find, also show the landline telephone area code of this phone number and ownership place thereof simultaneously.
Preferably, described home zone of mobile phone number database can upgrade.
Preferably, described communication equipment can be mobile phone or landline telephone.
A kind of device that shows home zone of mobile phone number of the present invention comprises receiving element, database, searches unit and display unit; Described receiving element is used to receive phone number; Described database is used for memory mobile phone number attribution data; The described unit of searching is used for adopting the binary search method to search the phone number that receives at described database, as finds, and reads its ownership place; Described display unit; Be used to show described ownership place.
Preferably, also comprise the coding and decoding unit, be used for adopting the Huffman encoding compress mode that the data of described database are compressed processing; Employing Hafman decoding mode reads the data in the described database.
Preferably, described binary search method is: suppose that high pointer position is H, low pointer position is L, and middle pointer position is M, and the phone number data that M points to are K, and the phone number data that receive are Q; Make H, L point to the upper and lower boundary of described home zone of mobile phone number database respectively, M is set is (L+M)/2;
If K=Q then reads the home zone of mobile phone number of M position;
If K<Q then makes L=M+1, and, compare K and Q once more by above-mentioned regular replacement M;
If K>Q then makes H=M-1, and, compare K and Q once more by above-mentioned regular replacement M.
Compared with prior art, the present invention has the following advantages:
The present invention is built-in mobile phone number attribution database in communication equipment, and automatic butt receives that phone number carries out searching of ownership place, and shows lookup result.The present invention does not have restricted requirement to communication equipment itself, has general applicability, and does not need the user to carry out any search operation, and it is extremely convenient to use.
Preferably, the present invention stores in the communication equipment after the home zone of mobile phone number database is adopted the negative graceful encoding compression processing in Kazakhstan again, can reduce the occupancy volume to the communication apparatus stores device with home zone of mobile phone number database lossless compress to original 1/4 size.
Preferably, the present invention adopts the binary search method to search in the home zone of mobile phone number database, with respect to sequential search, improves search efficiency, and data processing amount when the minimizing communication equipment is searched is saved and searched the time.
Description of drawings
Fig. 1 shows the embodiment flow chart of home zone of mobile phone number method for the present invention;
Fig. 2 shows the embodiment schematic diagram of home zone of mobile phone number device for the present invention;
Fig. 3 presets the lookup method flow chart for the present invention;
Fig. 4 is a binary search method flow diagram of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Core concept of the present invention is a built-in mobile phone number attribution database in communication equipment, and the phone number that automatic butt is received carries out searching of ownership place, and shows lookup result.The present invention does not have restricted requirement to communication equipment itself, has general applicability, and does not need the user to carry out any search operation, and it is extremely convenient to use.
The home zone of mobile phone number data are provided by telecom operators, and telecom operators are according to unified planning, and for distributing the phone number of certain field in each area, city, issue is also upgraded in real time on network.The home zone of mobile phone number database that provides on the network has 130-139,159,153 equal sign sections above 100,000, every number section is represented 10,000 numbers, phone number is by size sequence arrangement in the home zone of mobile phone number database of its data, and in case there is new number section to enable, database upgrades in time.
At present, available home zone of mobile phone number database has two kinds of forms on the network, and a kind of is trial edition (txt form), and file size is about 236k, and is as follows, is a part of data arrangement form in this database:
City, sequence number landline telephone area code field area
Beijing, 30 010 1300129 Beijing
Beijing, 31 010 1300130 Beijing
Tianjin, 32 022 1300131 Tianjin
Tianjin, 33 022 1300132 Tianjin
Tianjin, 34 022 1300133 Tianjin
Tianjin, 35 022 1300134 Tianjin
Another kind is a formal version (Xls form), and file size is about 2M, and is as shown in table 1, is a part of data arrangement form in this database:
Sequence number The landline telephone area code Field The area The city
30 010 1300129 Beijing Beijing
31 022 1300130 Beijing Beijing
32 022 1300131 Tianjin Tianjin
33 022 1300132 Tianjin Tianjin
34 022 1300133 Tianjin Tianjin
35 022 1300134 Tianjin Tianjin
Table 1
Though the home zone of mobile phone number database data amount of trial edition is less, number section of its storage is less, and result of use is not good.The home zone of mobile phone number database of formal version has section 100,000 numbers, and more than one hundred million telephone numbers be we can say and almost contained domestic all phone numbers.The home zone of mobile phone number database of the preferred formal version of the present invention downloads in the communication equipment, compress processing after, use in order to inquiry.
Communication equipment can be mobile phone or landline telephone, mobile phone especially, and its volume is less, inner memory span is limited, for reducing the home zone of mobile phone number database to communication apparatus stores device occupancy volume, can adopt the Huffman encoding compress mode, this database is handled compression handle.
Huffman encoding is a kind of lossless compression-encoding method, has very important application in data compression program.Huffman encoding is to construct the shortest coding of average length according to the probability that character occurs.In coding, if each code word size is in strict accordance with the backward arrangement of the size of the corresponding symbol appearing probability of code word institute, then Bian Ma average length is minimum.After adopting the Huffman encoding compression, the home zone of mobile phone number database of 2M can be compressed to the 500k size.
If whenever receive a phone number, begin to search successively from first phone number field in the home zone of mobile phone number database that communication equipment is all put within it, need the data volume of processing just obviously excessive, may cause the processing time longer, the user waits for the long time.The present invention utilizes in this database the phone number field by its size of data sequence arrangement, adopts the binary search method, improves the efficient of searching greatly, reduces the data processing amount of communication equipment.
The binary search method is to determine earlier the scope at phone number to be found place, adopts then by half that mode progressively reduces the scope, till the field of determining to find or can not find in database under this phone number.
Be that mobile phone is an example with communication equipment below, illustrate that the present invention shows the flow process of home zone of mobile phone number, consult Fig. 1, for the present invention shows the embodiment flow chart of home zone of mobile phone number method, concrete steps are as follows:
Step 101, in mobile phone built-in mobile phone number attribution database;
On network of relation, download the home zone of mobile phone number database of formal version, deposit in the mobile phone, adopt the negative graceful coding method in Kazakhstan that this home zone of mobile phone number database is compressed processing.
Step 102, in the home zone of mobile phone number database, search the phone number that receives by the lookup method that presets;
At first in the telephone directory of mobile phone inside, search the phone number that receives, as find, then directly show the title of this phone number correspondence; As not finding, then adopt the binary search method in the home zone of mobile phone number database, to search.
The binary search method is specially: suppose that high pointer position is H, low pointer position is L, and middle pointer position is M, and the phone number data at M place are K, and the phone number data that receive are Q;
Make H, L point to upper and lower boundary in the home zone of mobile phone number database respectively earlier, setting M is (L+M)/2;
If K=Q then reads the home zone of mobile phone number of M position;
If K<Q then makes L=M+1, and, compare K and Q once more by above-mentioned regular replacement M;
If K>Q then makes H=M-1, and, compare K and Q once more by above-mentioned regular replacement M;
Repeat said process, until K=Q, if M=L or H, then expression does not find.
Step 103, show the ownership place of this phone number.
As find, show the ownership place of this phone number, also show the landline telephone area code of this phone number and ownership place thereof simultaneously, as showing: 13811175148, Beijing, 010; If do not find, then only show this phone number.
For guaranteeing that the home zone of mobile phone number database can in time deposit newly-increased phone number field in, need the user in the certain hour database in the mobile phone to be upgraded at interval.Update method only needs the user in the mobile phone that related web site is downloaded nearest formal version home zone of mobile phone number database, and then compresses processing and get final product.
Consult Fig. 2, the embodiment schematic diagram for the present invention shows the home zone of mobile phone number device comprises receiving element 201, database 202, coding and decoding unit 203, searches unit 204 and display unit 205.
Database 202 stored are downloaded the home zone of mobile phone number database of formal version on network of relation, coding and decoding unit 203 adopts the negative graceful coding method in Kazakhstan that the data in the database 202 are compressed processing.
Receiving element 201 receives phone number, its this phone number is sent to searches unit 204.
Search unit 204 and in database 202, search the phone number that receives by the lookup method that presets.Search unit 204 and at first in the telephone directory of communication equipment inside, search this phone number, as find, then the name of this phone number correspondence is weighed up and deliver to display unit 205 and show; As not finding, then adopt the binary search method in database 202, to search.
The binary search method is specially: suppose that high pointer position is H, low pointer position is L, and middle pointer position is M, and the phone number data at M place are K, and the phone number data that receive are Q;
Make H, L point to upper and lower boundary in the home zone of mobile phone number database respectively earlier, setting M is (L+M)/2;
If K=Q then reads the home zone of mobile phone number of M position;
If K<Q then makes L=M+1, and, compare K and Q once more by above-mentioned regular replacement M;
If K>Q then makes H=M-1, and, compare K and Q once more by above-mentioned regular replacement M;
Repeat said process, until K=Q, if M=L or H, then expression does not find.
As find, searching 203 pairs of these information in 204 notice coding and decoding unit, unit decodes, and decoded data are sent to display unit 205 show, display unit 205 not only shows the ownership place of this phone number, the landline telephone area code that also shows this phone number and ownership place thereof simultaneously, as showing: 13811175148, Beijing, 010.If do not find, 205 of notice display units show this phone number.
Of the present inventionly preset the lookup method detailed process as shown in Figure 3, concrete steps are as follows:
Step 301, receive phone number;
Step 302, in the telephone directory of mobile phone inside, search, as find, directly show title corresponding in the telephone directory; As not finding, forward step 303 to;
Step 303, employing binary search method are searched in built-in home zone of mobile phone number database;
If step 304 finds, then show the landline telephone area code of this phone number, its ownership place and ownership place thereof; If do not find, then show this phone number.
The particular flow sheet of binary search method of the present invention as shown in Figure 4, concrete steps are as follows:
Step 401, suppose that high pointer position is H, low pointer position is L, and middle pointer position is M, and the phone number data that M points to are K, and the phone number data that receive are Q;
Step 402, make H, L point to the upper and lower boundary of phone number data in the home zone of mobile phone number database respectively;
Step 403, setting M are (L+M)/2;
Step 404, employing are breathed out negative graceful decoding and are read K, if K=Q then reads the information of M position;
Step 405, if K<Q, then make L=M+1, forward step 403 to; If K>Q then makes H=M-1, forward step 403 to; If M=L or M=H, then this phone number is not found in expression.
The present invention also may be used on fields such as strange landline telephone incoming call, Personal Handyphone System incoming call, only needs in communication equipment inside number ownership place data bank such as landline telephone, Personal Handyphone System to be set and gets final product.
More than to a kind of method and device that shows home zone of mobile phone number provided by the present invention, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a method that shows home zone of mobile phone number is characterized in that, comprising:
Built-in mobile phone number attribution database in communication equipment;
In described home zone of mobile phone number database, search the phone number that receives by the lookup method that presets;
As find, show the ownership place of this phone number.
2. method according to claim 1 is characterized in that, also comprises:
Adopt the Huffman encoding compress mode, described home zone of mobile phone number database is compressed processing.
3. method according to claim 1 and 2 is characterized in that, the described lookup method that presets is:
The phone number that inquiry receives in the built-in telephone directory of communication equipment, as find, the title of described phone number correspondence then shown; As not finding, then adopt the binary search method in described home zone of mobile phone number database, to search.
4. method according to claim 3 is characterized in that, described binary search method is:
Suppose that high pointer position is H, low pointer position is L, and middle pointer position is M, and the phone number data that M points to are K, and the phone number data that receive are Q; Make H, L point to the upper and lower boundary of described home zone of mobile phone number database respectively, M is set is (L+M)/2;
If K=Q then reads the home zone of mobile phone number of M position;
If K<Q then makes L=M+1, and, compare K and Q once more by above-mentioned regular replacement M;
If K>Q then makes H=M-1, and, compare K and Q once more by above-mentioned regular replacement M.
5. method according to claim 1 and 2 is characterized in that, as finds, and also shows the landline telephone area code of this phone number and ownership place thereof simultaneously.
6. method according to claim 1 and 2 is characterized in that, described home zone of mobile phone number database can upgrade.
7. method according to claim 1 and 2 is characterized in that described communication equipment can be mobile phone or landline telephone.
8. a device that shows home zone of mobile phone number is characterized in that, comprises receiving element, database, searches unit and display unit;
Described receiving element is used to receive phone number;
Described database is used for memory mobile phone number attribution data;
The described unit of searching is used for adopting the binary search method to search the phone number that receives at described database, as finds, and reads its ownership place;
Described display unit; Be used to show described ownership place.
9. device according to claim 8 is characterized in that, also comprises the coding and decoding unit, is used for adopting the Huffman encoding compress mode that the data of described database are compressed processing; Employing Hafman decoding mode reads the data in the described database.
10. according to Claim 8 or 9 described devices, it is characterized in that described binary search method is:
Suppose that high pointer position is H, low pointer position is L, and middle pointer position is M, and the phone number data that M points to are K, and the phone number data that receive are Q; Make H, L point to the upper and lower boundary of described home zone of mobile phone number database respectively, M is set is (L+M)/2;
If K=Q then reads the home zone of mobile phone number of M position;
If K<Q then makes L=M+1, and, compare K and Q once more by above-mentioned regular replacement M;
If K>Q then makes H=M-1, and, compare K and Q once more by above-mentioned regular replacement M.
CNA2006101171845A 2006-10-13 2006-10-13 Method and device for displaying home zone of mobile phone number Pending CN101163256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006101171845A CN101163256A (en) 2006-10-13 2006-10-13 Method and device for displaying home zone of mobile phone number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006101171845A CN101163256A (en) 2006-10-13 2006-10-13 Method and device for displaying home zone of mobile phone number

Publications (1)

Publication Number Publication Date
CN101163256A true CN101163256A (en) 2008-04-16

Family

ID=39298064

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006101171845A Pending CN101163256A (en) 2006-10-13 2006-10-13 Method and device for displaying home zone of mobile phone number

Country Status (1)

Country Link
CN (1) CN101163256A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662996A (en) * 2012-03-15 2012-09-12 北京播思软件技术有限公司 Method for rapid data classification
CN102869005A (en) * 2012-09-12 2013-01-09 青岛海信移动通信技术股份有限公司 Method for mobile terminal to process homed data and mobile terminal
CN103281442A (en) * 2013-05-08 2013-09-04 广东欧珀移动通信有限公司 Method, system and communication equipment for distinguishing several numbers of one contact person
CN107786712A (en) * 2016-08-30 2018-03-09 北京神州泰岳软件股份有限公司 A kind of compression and storage method and device of contact person in address list information
CN109684303A (en) * 2018-12-10 2019-04-26 世纪龙信息网络有限责任公司 Communications codes attribution inquiry method, device, computer equipment and storage medium
CN110662217A (en) * 2018-06-29 2020-01-07 中兴通讯股份有限公司 Method, equipment and server for updating mobile phone number segment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662996A (en) * 2012-03-15 2012-09-12 北京播思软件技术有限公司 Method for rapid data classification
CN102869005A (en) * 2012-09-12 2013-01-09 青岛海信移动通信技术股份有限公司 Method for mobile terminal to process homed data and mobile terminal
CN102869005B (en) * 2012-09-12 2015-02-18 青岛海信移动通信技术股份有限公司 Method for mobile terminal to process homed data and mobile terminal
CN103281442A (en) * 2013-05-08 2013-09-04 广东欧珀移动通信有限公司 Method, system and communication equipment for distinguishing several numbers of one contact person
CN103281442B (en) * 2013-05-08 2015-12-02 广东欧珀移动通信有限公司 A kind of method, system and communication equipment distinguishing the many numbers of same contact person
CN107786712A (en) * 2016-08-30 2018-03-09 北京神州泰岳软件股份有限公司 A kind of compression and storage method and device of contact person in address list information
CN110662217A (en) * 2018-06-29 2020-01-07 中兴通讯股份有限公司 Method, equipment and server for updating mobile phone number segment
CN109684303A (en) * 2018-12-10 2019-04-26 世纪龙信息网络有限责任公司 Communications codes attribution inquiry method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101163256A (en) Method and device for displaying home zone of mobile phone number
KR20000071504A (en) Method and Apparatus for Generating Idle Loop Screen Displays on Wireless Computing Devices
KR20110052356A (en) Method for providing contact merging service in portable terminal
CN101499080A (en) Method and system for fast acquiring information service on mobile terminal
CN102710864B (en) Method for playing incoming call ringtone
CN101459725A (en) Intelligent inquiry method oriented to mobile Internet on mobile terminal
CN101184054A (en) Method, system and server of implementing product or service reservation through network
CN103986780A (en) Information pushing method based on mobile terminal and mobile terminal
CN1917510B (en) Method for accessing address list, and system of address list
CN101106784B (en) Information sorting and method, system and device for establishing initial network communication contact book
CN104572752A (en) Method and device for finding positioning method by application program
JP4881546B2 (en) Wide-area simultaneous update of database information in mobile communication devices
CN102567376A (en) Method and device for recommending personalized search results
CN106412204B (en) Method and system for automatic service dialing
CN103118162A (en) Method for automatically displaying calling information on called cellphone
US20100107122A1 (en) System for Providing Widget Type Idle-Screen
CN102083053B (en) Method and system for acquiring backward information by virtue of telephone information desk
CN1893444A (en) Systems and methods for application management
CN101626628B (en) Digital number and web address mapping and pushing system
CN101212787A (en) Personalized information publishing method and system
KR100758047B1 (en) Method and apparatus for providing contents information service by using short message service
CN103095891A (en) Method, device and terminal of quickly inputting information of business card
CN201100950Y (en) Intelligent redirection WAP gateway
CN101087330A (en) A search device and method of mobile phone
CN1413043A (en) Mobile communication device with function of sending short message regularly and its method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080416