CN104159272A - CDMA (Code Division Multiple Access) cell locking method and system - Google Patents
CDMA (Code Division Multiple Access) cell locking method and system Download PDFInfo
- Publication number
- CN104159272A CN104159272A CN201410402947.5A CN201410402947A CN104159272A CN 104159272 A CN104159272 A CN 104159272A CN 201410402947 A CN201410402947 A CN 201410402947A CN 104159272 A CN104159272 A CN 104159272A
- Authority
- CN
- China
- Prior art keywords
- value
- cell
- cdma
- list
- value list
- 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
Links
Abstract
The invention provides a CDMA (Code Division Multiple Access) cell locking method. The method comprises the following steps: judging whether a cell locking function is used for the first time or not, if the cell locking function is used for the first time, inquiring the PN values of a current cell and peripheral cells to construct a first PN value list, setting a threshold value, inquiring the PN values of the current cell and the peripheral cells once again to construct a second PN value list, otherwise, directly inquiring the PN values of the current cell and the peripheral cells to construct a second PN list value; performing intersection operation on the second PN value list and the first PN value list to obtain the quantity of intersection elements; and judging whether the quantity of the intersection elements is smaller than the threshold value or not, if the quantity of the intersection elements is smaller than the threshold value, judging that telephone relocation occurs and triggering the cell locking function, otherwise, judging that the telephone relocation does not occur. The invention further provides a CDMA cell locking system. Through adoption of the method and the system, telephone relocation detection under a CDMA system is realized, and the application range of a wireless POS (Point of Sale) terminal is limited.
Description
Technical field
The present invention relates to the communications field, relate in particular to a kind of CDMA cell locking method and system.
Background technology
The use of radio POS terminal is more and more extensive at present, limit the use region of radio POS terminal, just need to import lock community function based on wireless technology, lock community function is just in order to prevent telephone-moving, therefore do not need to know latitude and longitude information, only need relative positioning.Under existing code division multiple access CDMA standard, because CDMA can only get the Cell Global Identification CGI (CellGlobalIdentifier) of base station, main plot, cannot get the CGI of peripheral cell, if only rely on the CGI information of main plot, carry out relative positioning, can there is because of the fluctuation of wireless environment the phenomenon of base station shifting, and it is higher to cause legal region to be mistaken for the probability in illegal region, cause the result of use of lock community function not good, if rely on the CGI information of main plot, carry out absolute fix, also need with third party's application interface API mutual, as mutual with the application interface of Google Maps, but can produce rate like this, and radio POS terminal adopts special network card more, connect public network also more difficult.
Summary of the invention
One of the technical problem to be solved in the present invention, is to provide a kind of CDMA cell locking method, and the telephone-moving that realizes radio POS terminal under CDMA standard detects.
One of the technical problem to be solved in the present invention is achieved in that a kind of CDMA cell locking method, and described method comprises the steps:
Step 1, judgement lock community function, whether for using first, if use first, enter step 2; Otherwise directly jump to step 3;
The PN value of step 2, inquiry current area and peripheral cell, sets up into a PN value list, determines the region that needs locking, and a threshold value is set;
The PN value of step 3, inquiry current area and peripheral cell, sets up into the 2nd PN value list;
Step 4, the 2nd PN value list and a PN value list are done to intersection operation, obtain common factor element number;
Step 5, judge whether common factor element number is less than threshold value, be if so, judged to telephone-moving, and trigger lock community function, otherwise, be judged to telephone-moving does not occur.
Further, the PN value of described current area and peripheral cell is to inquire about by the AT command interface of wireless module.
Further, described threshold value is surveyed by locality, according to the intensive situation in base station and the area size setting that needs locking.
Further, a described PN value list and the 2nd PN value list are respectively the set that the PN value of inquired current area and peripheral cell forms.
Further, 6 communities are got in described peripheral cell, and there are 3 PN values each community, and it is 21 list that a described PN value list and the 2nd PN value list are length the longest.
Two of the technical problem to be solved in the present invention, is to provide a kind of CDMA lock cell system, and the telephone-moving that realizes radio POS terminal under CDMA standard detects.
Two of the technical problem to be solved in the present invention is achieved in that a kind of CDMA lock cell system, and described system comprises:
Use first judge module: for judging that lock community function, whether for using first, if use first, needs first to call initialization module, then calling data collection module; Otherwise direct calling data collection module;
Initialization module: the PN value of inquiry current area and peripheral cell, set up into a PN value list, determine the region that needs locking, a threshold value is set;
Data collection module: for inquiring about the PN value of current area and peripheral cell, set up into the 2nd PN value list;
Computing module: for the 2nd PN value list and a PN value list are done to intersection operation, obtain common factor element number;
Telephone-moving judge module: for judging whether common factor element number is less than threshold value, be if so, judged to telephone-moving, and trigger lock community function, otherwise, be judged to telephone-moving does not occur.
Further, the PN value of described current area and peripheral cell is to inquire about by the AT command interface of wireless module.
Further, described threshold value is surveyed by locality, according to the intensive situation in base station and the area size setting that needs locking.
Further, a described PN value list and the 2nd PN value list are respectively the set that the PN value of inquired current area and peripheral cell forms.
Further, 6 communities are got in described peripheral cell, and there are 3 PN values each community, and it is 21 list that a described PN value list and the 2nd PN value list are length the longest.
Tool of the present invention has the following advantages: the present invention is by the common factor number of inquiring about community PN value, setting up PN value list, threshold value being set and calculating a PN value list and the 2nd PN value list, again by common factor number and threshold value are compared, judge whether telephone-moving, realization detects the telephone-moving of radio POS terminal under CDMA standard, it is low that this telephone-moving detects the probability of generation erroneous judgement, can meet significantly the normal use of lock community function.
Accompanying drawing explanation
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the inventive method flowchart.
Fig. 2 is system architecture diagram of the present invention.
Embodiment
Refer to Fig. 1, a kind of CDMA cell locking method, described method comprises the steps:
Whether step 1, judgement lock community function, for using first, if use first, enter step 2, otherwise directly jump to step 3;
Step 2, in the region of required locking, be legal region, by the AT command interface inquiry current area of wireless module and the PN value of 6 communities of periphery, there are 3 PN values each community, according to the PN value inquiring, setting up into length the longest is a PN value list of 21, the one PN value list is the set that the PN value of inquired current area and peripheral cell forms, threshold value is set, threshold value is to survey by locality, according to the intensive situation in base station and the area size that needs locking, arrange, generally, the threshold value that more intensive place, base station arranges is larger, need the larger threshold value setting in the region of locking larger, such as threshold value setting becomes 9 or 12, and in the place of remote or non-dense population areas, base station is also comparatively sparse, threshold value now can be set to less by 3 or 6,
The PN value of step 3, the inquiry of the AT command interface by wireless module current area and peripheral cell, sets up into the 2nd PN value list, and the 2nd PN value list is the set of the PN value composition of inquired current area and peripheral cell;
Step 4, the 2nd PN value list and a PN value list are done to intersection operation, obtain common factor element number;
Step 5, judge whether common factor element number is less than threshold value, and if so, region of living in is illegal region, is judged to telephone-moving, and trigger lock community function, otherwise region of living in is legal region, is judged to telephone-moving does not occur.
Refer to Fig. 2, a kind of CDMA lock cell system, described system comprises:
Use first judge module: for judging that lock community function, whether for using first, if use first, needs first to call initialization module, then calling data collection module; Otherwise direct calling data collection module;
Initialization module: in the region in needs locking, be legal region, by the AT command interface inquiry current area of wireless module and the PN value of 6 communities of periphery, there are 3 PN values each community, according to the PN value inquiring, setting up into length the longest is a PN value list of 21, the one PN value list is the set that the PN value of inquired current area and peripheral cell forms, threshold value is set, threshold value is to survey by locality, according to the intensive situation in base station and the area size that needs locking, arrange, generally, the threshold value that more intensive place, base station arranges is larger, need the larger threshold value setting in the region of locking larger, such as threshold value setting becomes 9 or 12, and in the place of remote or non-dense population areas, base station is also comparatively sparse, threshold value now can be set to less by 3 or 6,
Data collection module: the PN value for the AT command interface inquiry current area by wireless module with peripheral cell, set up into the 2nd PN value list, the 2nd PN value list is the set of the PN value composition of inquired current area and peripheral cell;
Computing module: for the 2nd PN value list and a PN value list are done to intersection operation, obtain common factor element number;
Telephone-moving judge module: for judging whether common factor element number is less than threshold value, and if so, region of living in is illegal region, is judged to telephone-moving, and trigger lock community function, otherwise region of living in is legal region, is judged to telephone-moving does not occur.
In addition, the one PN value list has defined and has needed ' locked ' zone, the 2nd PN value list that the PN value later inquiring is set up all needs and a PN value list comparison, the 2nd PN value list is used while judging telephone-moving before transaction, number and threshold value by identical PN value in two lists relatively judge whether still in regulation region, even therefore in the situation that using for the first time, the PN value that we also need to again inquire about current area and peripheral cell before transaction builds the 2nd PN value list, prevents after threshold value setting because telephone-moving is immediately misjudged as not telephone-moving.The span of PN is 0~511, totally 512, and what in this cell locking method, detect is the PN value of current area and 6 communities of periphery, totally 21, the distribution of supposing PN value in the network planning meets Classical Probability Spaces, and threshold value gets 6, is not that areal is but mistaken for legal probability and is approximately
this value approaches 0, therefore, can think as long as the network planning of operator does not deliberately repeat, and occurs that the possibility that illegal region is mistaken for legal region is very little.
Although more than described the specific embodiment of the present invention; but being familiar with those skilled in the art is to be understood that; our described specific embodiment is illustrative; rather than for the restriction to scope of the present invention; those of ordinary skill in the art are in equivalent modification and the variation done according to spirit of the present invention, all should be encompassed in the scope that claim of the present invention protects.
Claims (10)
1. a CDMA cell locking method, is characterized in that: described method comprises the steps:
Step 1, judgement lock community function, whether for using first, if use first, enter step 2; Otherwise directly jump to step 3;
The PN value of step 2, inquiry current area and peripheral cell, sets up into a PN value list, determines the region that needs locking, and a threshold value is set;
The PN value of step 3, inquiry current area and peripheral cell, sets up into the 2nd PN value list;
Step 4, the 2nd PN value list and a PN value list are done to intersection operation, obtain common factor element number;
Step 5, judge whether common factor element number is less than threshold value, be if so, judged to telephone-moving, and trigger lock community function, otherwise, be judged to telephone-moving does not occur.
2. a kind of CDMA cell locking method according to claim 1, is characterized in that: the PN value of described current area and peripheral cell is to inquire about by the AT command interface of wireless module.
3. a kind of CDMA cell locking method according to claim 1, is characterized in that: described threshold value is surveyed by locality, according to the intensive situation in base station and the area size setting that needs locking.
4. a kind of CDMA cell locking method according to claim 1, is characterized in that: a described PN value list and the 2nd PN value list are respectively the set that the PN value of inquired current area and peripheral cell forms.
5. according to a kind of CDMA cell locking method described in claim 1 to 4 any one, it is characterized in that: 6 communities are got in described peripheral cell, there are 3 PN values each community, and it is 21 list that a described PN value list and the 2nd PN value list are length the longest.
6. CDMA locks a cell system, it is characterized in that: described system comprises:
Use first judge module: for judging that whether lock community function is for using first, if initialization module is first called in use first, then calling data collection module; Otherwise direct calling data collection module;
Initialization module: for inquiring about the PN value of current area and peripheral cell, set up into a PN value list, determine the region that needs locking, a threshold value is set;
Data collection module: for inquiring about the PN value of current area and peripheral cell, set up into the 2nd PN value list;
Computing module: for the 2nd PN value list and a PN value list are done to intersection operation, obtain common factor element number;
Telephone-moving judge module: for judging whether common factor element number is less than threshold value, be if so, judged to telephone-moving, and trigger lock community function, otherwise, be judged to telephone-moving does not occur.
7. a kind of CDMA lock cell system according to claim 6, is characterized in that: the PN value of described current area and peripheral cell is to inquire about by the AT command interface of wireless module.
8. a kind of CDMA lock cell system according to claim 6, is characterized in that: described threshold value is surveyed by locality, according to the intensive situation in base station and the area size setting that needs locking.
9. a kind of CDMA lock cell system according to claim 6, is characterized in that: a described PN value list and the 2nd PN value list are respectively the set of the PN value composition of inquired current area and peripheral cell.
10. according to a kind of CDMA lock cell system described in claim 6 to 9 any one, it is characterized in that: 6 communities are got in described peripheral cell, there are 3 PN values each community, and it is 21 list that a described PN value list and the 2nd PN value list are length the longest.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410402947.5A CN104159272A (en) | 2014-08-15 | 2014-08-15 | CDMA (Code Division Multiple Access) cell locking method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410402947.5A CN104159272A (en) | 2014-08-15 | 2014-08-15 | CDMA (Code Division Multiple Access) cell locking method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104159272A true CN104159272A (en) | 2014-11-19 |
Family
ID=51884656
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410402947.5A Pending CN104159272A (en) | 2014-08-15 | 2014-08-15 | CDMA (Code Division Multiple Access) cell locking method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104159272A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1453948A (en) * | 2002-04-24 | 2003-11-05 | 三星电子株式会社 | Cell searching apparatus and method for supporting multi search function in mobile communication system |
US20070155401A1 (en) * | 2005-12-30 | 2007-07-05 | Trueposition Inc. | User plane uplink time difference of arrival (u-tdoa) |
US20070213067A1 (en) * | 2006-03-09 | 2007-09-13 | Patrick Li | Wireless communication handoffs within a macrocell |
CN101106815A (en) * | 2007-07-10 | 2008-01-16 | 中国移动通信集团江苏有限公司 | Novel communication solution method to lock cell |
CN101132217A (en) * | 2007-08-02 | 2008-02-27 | 重庆重邮信科(集团)股份有限公司 | Method and apparatus for implementing internal information interaction of repeater station adopting AT instruction |
CN101668285A (en) * | 2009-10-23 | 2010-03-10 | 中兴通讯股份有限公司 | Subdistrict locking method for mobile terminal and mobile terminal capable of locking subdistrict |
CN103152725A (en) * | 2013-03-25 | 2013-06-12 | 华为终端有限公司 | Method for realizing base station locking on mobile terminal and mobile terminal |
-
2014
- 2014-08-15 CN CN201410402947.5A patent/CN104159272A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1453948A (en) * | 2002-04-24 | 2003-11-05 | 三星电子株式会社 | Cell searching apparatus and method for supporting multi search function in mobile communication system |
US20070155401A1 (en) * | 2005-12-30 | 2007-07-05 | Trueposition Inc. | User plane uplink time difference of arrival (u-tdoa) |
US20070213067A1 (en) * | 2006-03-09 | 2007-09-13 | Patrick Li | Wireless communication handoffs within a macrocell |
CN101106815A (en) * | 2007-07-10 | 2008-01-16 | 中国移动通信集团江苏有限公司 | Novel communication solution method to lock cell |
CN101132217A (en) * | 2007-08-02 | 2008-02-27 | 重庆重邮信科(集团)股份有限公司 | Method and apparatus for implementing internal information interaction of repeater station adopting AT instruction |
CN101668285A (en) * | 2009-10-23 | 2010-03-10 | 中兴通讯股份有限公司 | Subdistrict locking method for mobile terminal and mobile terminal capable of locking subdistrict |
CN103152725A (en) * | 2013-03-25 | 2013-06-12 | 华为终端有限公司 | Method for realizing base station locking on mobile terminal and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102571910B (en) | Method for searching nearby users in social network, and server | |
US10873900B2 (en) | Method for wireless fidelity connection and related products | |
CN106658672A (en) | Wireless fidelity Wi-Fi connecting method and mobile terminal | |
CN104186016A (en) | Locating a mobile device | |
WO2018149149A1 (en) | Wi-fi connection method, mobile terminal and storage medium | |
WO2011067466A1 (en) | Method and apparatus for on-device positioning using compressed fingerprint archives | |
WO2020232999A1 (en) | Information security-based positioning data monitoring method and related device | |
CN103345516A (en) | Application program searching method based on application program icons and system | |
CN110674247A (en) | Barrage information intercepting method and device, storage medium and equipment | |
US20210233127A1 (en) | System and method for identifying wireless communication assets | |
WO2018010693A1 (en) | Method and apparatus for identifying information from rogue base station | |
CN110798804A (en) | Indoor positioning method and device | |
US20140052497A1 (en) | Correlating location data | |
US20120135757A1 (en) | Method of sharing mobile sensor, apparatus for verifying integrity, and mobile sensor sharing system | |
CN104023315A (en) | Password input method and device based on geographical location information | |
US20180068126A1 (en) | Privacy management | |
CN106686587A (en) | Wireless fidelity Wi-Fi connecting method and mobile terminal | |
CN104949672B (en) | A kind of search and navigation methods and systems of base station signal | |
CN108810803A (en) | Find the method and system of lost contact user | |
CN108882165B (en) | Navigation method and device | |
CN106777072B (en) | Method, equipment and system for providing presentation information | |
US10111037B1 (en) | System and method for collocation detection | |
Morales et al. | Faulty measurements impact on wireless local area network positioning performance | |
CN101848413B (en) | Place character description method and system | |
CN109672984B (en) | User position portrait evaluation method and device for financial business and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141119 |
|
RJ01 | Rejection of invention patent application after publication |