CN115811703A - POS machine use area limit management method, system and readable medium thereof - Google Patents

POS machine use area limit management method, system and readable medium thereof Download PDF

Info

Publication number
CN115811703A
CN115811703A CN202211494844.7A CN202211494844A CN115811703A CN 115811703 A CN115811703 A CN 115811703A CN 202211494844 A CN202211494844 A CN 202211494844A CN 115811703 A CN115811703 A CN 115811703A
Authority
CN
China
Prior art keywords
position information
information set
legal
current
area
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.)
Granted
Application number
CN202211494844.7A
Other languages
Chinese (zh)
Other versions
CN115811703B (en
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.)
Guangzhou Kerss Electronics Co ltd
Original Assignee
Guangzhou Kerss Electronics Co ltd
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 Guangzhou Kerss Electronics Co ltd filed Critical Guangzhou Kerss Electronics Co ltd
Priority to CN202211494844.7A priority Critical patent/CN115811703B/en
Publication of CN115811703A publication Critical patent/CN115811703A/en
Application granted granted Critical
Publication of CN115811703B publication Critical patent/CN115811703B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a POS machine use area restriction management method, a system and a readable medium thereof, wherein the method comprises the steps of obtaining position information of a main base station and an adjacent base station in a current register area of a POS machine, storing the position information as a current position information set, reading and decrypting the current position information set from a safe storage area to obtain a legal position information set, and performing matching operation on the current position information set and the legal position information set; and when the intersection element number of the current position information set and the legal position information set reaches a threshold value, judging that the current registration area of the POS machine belongs to a safe use area. A many-to-many matching algorithm is adopted so as to improve the relative positioning stability, and in addition, the legal position information is automatically updated to realize the adaptation to the communication network environment, thereby achieving the purpose of reducing the misjudgment rate; and the stability and the accuracy are balanced by adding a threshold value and adjusting the threshold value and the upper limit value of the legal position information according to the position attribute of the safe use area.

Description

POS machine use area limit management method, system and readable medium thereof
Technical Field
The invention relates to the technical field of POS machine systems, in particular to a POS machine use area restriction management method, a POS machine use area restriction management system and a readable medium thereof.
Background
The POS machine is a special device for financial payment activities and supports payment of magnetic stripe cards, chip cards and flash payment cards. The POS may communicate in a number of ways, such as via telephone lines, modem, wireless cellular mobile network, bluetooth, etc. The wireless POS machine is specially used for a POS machine which contains a wireless communication device and supports communication through a wireless cellular mobile network.
With the popularization of the wireless POS (Point of Sales, point of sale), the security of cross-region use thereof is gradually concerned by customers or supervision such as banks, and the like, and then demands for limiting the use region of the wireless POS and preventing the transfer are generated. This means that the importance of POSitioning technology in wireless POS is gradually increasing, and currently, mobile internet location services are mainly initiated by a terminal, and rely on the terminal to actively initiate a Global POSitioning System (GPS) or network POSitioning to obtain location services. The GPS position acquisition needs the terminal to start the GPS and has the GPS service condition, and the network positioning has the problem of low positioning precision.
Positioning is performed using the neighbor base station information list, which favors relative positioning. The positioning mode is that all CGIs of adjacent base stations are collected to form a base station list of a safe use area, as long as a main base station CGI collected during detection is in the list, the current area is always within the range of the safe use area, if the current base station is not in the list, whether the adjacent base station is in the list is judged, if the adjacent base station is in the list, the adjacent base station is judged to be in the safe use area, otherwise, auxiliary positioning is calculated through a virtual position of an algorithm based on the conversion of single base station CGI into longitude and latitude, if the distance is smaller than a certain threshold value, the adjacent base station CGI is still judged to be in the safe use area, and if the distance is not smaller than the certain threshold value, the adjacent base station CGI is judged to be in the illegal area. The method has the advantages that the main algorithm is simple, the space-time overhead is low, but the auxiliary algorithm depends on a method based on propagation parameter positioning, and the defects of the auxiliary algorithm are also introduced.
Disclosure of Invention
The invention aims to provide a POS machine use area limitation management method, a POS machine use area limitation management system and a readable medium thereof, which can realize a relative positioning algorithm independent of any third-party database or server, thereby ensuring that the POS machine use area limitation management can be independently used for a long time at low cost.
In order to solve the technical problem, the application adopts a technical scheme that: a POS machine use area limitation management method is provided, and the method comprises the following steps:
acquiring position information of a main base station and adjacent base stations in a current registration area of a POS machine, and storing the position information as a current position information set;
reading and decrypting from a safe storage area to obtain a legal position information set, and performing matching operation on the current position information set and the legal position information set;
and when the intersection element number of the current position information set and the legal position information set reaches a threshold value, judging that the current registration area of the POS machine belongs to a safe use area.
Further, the method further comprises:
under the safe use area set by the POS machine, the current position information under the safe use area is collected for the first time, and the current position information is encrypted and stored as a legal position information set.
Further, the step of collecting the current location information in the safe use area for the first time and storing the current location information as a legal location information set by encryption further includes:
setting the threshold value and the upper limit value of the number of elements in the legal position information set according to the density of the base stations in the safe use area;
and when the current registration area of the POS machine belongs to a safe use area, adding the legal position information set which does not belong to the collected current position information to the legal position information set according to the signal intensity sequence until the legal position information set reaches the upper limit value.
Further, the method further comprises:
after position information of a main base station and adjacent base stations in a current registration area of a POS machine is obtained, the time and frequency of each base station position information appearing in a current position information set are recorded;
when the time when the base station position information does not appear reaches a preset time threshold, removing the base station position information from the legal position information set;
and adding the base station position information with the maximum frequency or the maximum signal intensity in a preset time threshold into the legal position information set.
Further, the method comprises:
when the threshold value is larger than the element number of the current position information set or the element number of the legal position information set, taking the minimum element number of the current position information set and the element number of the legal position information set as the threshold value;
and when the intersection element number of the current position information set and the legal position information set reaches the threshold value, judging that the current registration area of the POS machine belongs to a safe use area.
Further, the method further comprises:
when the POS machine has a plurality of safe use areas, setting a legal position information set corresponding to each safe use area;
acquiring a current position information set of the current registration area of the POS machine;
performing one-to-one matching operation on the current position information set and a plurality of legal position information sets;
and when the intersection element number of the current position information set and one legal position information set reaches a threshold value, judging that the current registration area of the POS machine belongs to a safe use area.
Further, the method further comprises:
after the current position information in the safe use area is collected for the first time, analyzing the current position information and recording MCC information and MNC information corresponding to a current main base station;
and reporting and prompting to initialize the legal position information set when the MCC information and the MNC information are detected to change.
Further, the method further comprises:
collecting and judging a network system of a POS machine, and collecting CGI information of a main base station and an adjacent base station in a current registration area when the POS machine is in a GSM system, wherein the current position information is base station CGI information; and when the POS machine is in a CDMA mode, adopting CGI information of the main base station in the current registration area and PN pilot code information of the main base station and the adjacent base stations.
Further, when the POS is in the CDMA standard, the method includes:
matching the CGI information of the main base station in the current registration area with a pre-stored legal CGI information set in a safe use area;
if the CGI information belongs to the legal CGI information set, judging that the current registration area of the POS machine belongs to a safe use area;
if the CGI information does not belong to the legal CGI information set, matching operation is carried out on the current PN pilot code information sets of the main base station and the adjacent base stations in the current registration area and a prestored legal PN pilot code information set under the safe use area;
and when the intersection element number of the current PN pilot code information set and the legal PN pilot code information set reaches a threshold value, judging that the current registration area of the POS machine belongs to a safe use area.
Optionally, after the number of intersection elements of the current PN pilot code information set and the legal PN pilot code information set reaches a threshold value, the method further includes:
judging whether the LAC information of the main base station in the current registration area belongs to a legal position information set:
if the LAC information of the main base station in the current registration area belongs to a legal position information set, judging whether the legal position information set reaches an upper limit value, and if so, judging that the current registration area of the POS machine belongs to a safe use area; otherwise, adding the CGI information of the main base station in the current registration area to the legal position information set;
if the LAC information of the main base station in the current registration area does not belong to a legal position information set, judging whether the number of different LAC information in the legal position information set exceeds 3, and if so, judging that the current registration area of the POS machine does not belong to a safe use area; if not, judging whether the legal position information set reaches an upper limit value.
Optionally, when the current registration area of the POS machine belongs to the safe use area, increasing, according to the signal strength sequence, a legal PN pilot code information set, which does not belong to the legal PN pilot code information set, in the acquired PN pilot code information of the main base station and the neighboring base station, to the legal PN pilot code information set until the legal PN pilot code information set reaches the upper limit value.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a POS relative positioning system, the system comprising:
the position information acquisition module is used for acquiring the position information of a main base station and adjacent base stations in the current registration area of the POS machine and storing the position information as a current position information set;
the legal position information access module is used for acquiring the current position information in the safe use area for the first time under the safe use area set by the POS machine and encrypting and storing the current position information into a legal position information set;
the relative positioning judgment module is used for reading and decrypting the information from the safe storage area to obtain a legal position information set, and the current position information set and the legal position information set are subjected to matching operation; and when the intersection element number of the current position information set and the legal position information set reaches a threshold value, judging that the current registration area of the POS machine belongs to a safe use area.
In order to solve the technical problem, the other technical scheme adopted by the application is as follows: there is provided a computer-readable storage medium having stored thereon program data for implementing the POS use area restriction management method as described above when the program data is executed by a processor.
The technical scheme of the invention has the beneficial effects that:
according to the POS machine use area limitation management method, the POS machine use area limitation management system and the readable medium thereof, matching operation is carried out on the current position information set and the legal position information set, and when the number of intersection elements of the current position information set and the legal position information set reaches a threshold value, the current registration area of the POS machine is judged to belong to a safe use area; a many-to-many matching algorithm is adopted so as to improve the relative positioning stability, and in addition, the adaptation to the communication network environment is realized by automatically updating the legal position information, so that the purpose of reducing the misjudgment rate is achieved; the stability of relative positioning is improved by automatic expansion of legal position information; and the stability and the accuracy are balanced by adding a threshold value and adjusting the threshold value and the upper limit value of the legal position information according to the position attribute of the safe use area. Therefore, the function of limiting and managing the use area of the POS machine is realized at low cost, and the POS machine has low misjudgment rate, high stability and sufficient accuracy.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a block diagram of a POS machine usage area restriction management method according to an embodiment of the present invention;
FIG. 2 is a block diagram of a threshold and upper threshold adaptive method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a legal location information adaptive updating method according to an embodiment of the present invention;
FIG. 4 is a block diagram of a threshold adaptive processing method according to an embodiment of the present invention;
FIG. 5 is a block diagram of a multipoint positioning processing method according to an embodiment of the present invention;
FIG. 6 is a block diagram of a method for limiting and managing the use area of a POS machine in a CDMA system according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a many-to-many matching algorithm according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating the structure of the system hardware of the POS device usage area restriction manager according to an embodiment of the present invention;
Detailed Description
The following further describes embodiments of the present invention with reference to the drawings. It should be noted that the description of the embodiments is provided to help understanding of the present invention, and is not intended to limit the present invention. In addition, the technical features involved in the respective embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Example 1
As shown in fig. 1, an embodiment of the present invention provides a method for limiting and managing a use area of a POS machine, where the method includes:
s101, acquiring position information of a main base station and adjacent base stations in a current registration area of a POS machine, and storing the position information as a current position information set;
s102, reading and decrypting from a safe storage area to obtain a legal position information set, and performing matching operation on the current position information set and the legal position information set;
s103, when the intersection element number of the current position information set and the legal position information set reaches a threshold value, judging that the current registration area of the POS machine belongs to a safe use area.
When the location information is CGI information, starting from the model of the cell, the number of elements of this CGI set may be determined to be 7, i.e., 1 primary base station plus 6 neighboring base stations. Therefore, the legal position information and the current position information are CGI sets, the algorithm is evolved from a many-to-one matching algorithm to a many-to-many matching algorithm, namely the intersection of the two position information sets is judged to be in a safe use area when not being an empty set, and otherwise, the intersection is judged to be in an illegal area. As shown in fig. 7, after the many-to-many matching algorithm is introduced, the position information becomes two shaded areas in the figure. When the base station A is removed and the base station X is established, the legal location CGI set is still M = { CGI-A, CGI-B, CGI-C, CGI-D, CGI-E, CGI-F, CGI-G }, at this time, if the wireless POS machine is registered to the base station C, the current location CGI set is theoretically N = { CGI-X, CGI-B, CGI-C, CGI-D, CGI-H, CGI-J }, M = { CGI-B, CGI-C, CGI-D } is not 0, namely the current location is still judged to be at a legal location. If the wireless POS machine is registered in an X base station, the current CGI set is N = { CGI-X, CGI-B, CGI-C, CGI-D, CGI-E, CGI-F and CGI-G }, M = { CGI-B, CGI-C, CGI-D, CGI-E, CGI-F and CGI-G }, is not 0, and the current position is judged to be a legal position in the same way.
Optionally, the method further includes:
under the safe use area set by the POS machine, the current position information under the safe use area is collected for the first time, and the current position information is encrypted and stored as a legal position information set.
As shown in fig. 2, the step of collecting the current location information in the secure use area for the first time, and storing the current location information as a legal location information set in an encrypted manner further includes:
s201, setting the threshold value and the upper limit value of the number of elements in the legal position information set according to the density of the base stations in the safe use area;
s202, when the current registration area of the POS machine belongs to a safe use area, adding the legal position information set which does not belong to the collected current position information to the legal position information set according to the signal intensity sequence until the legal position information set reaches the upper limit value.
For example, assume that the threshold value is defined as 4, i.e. the number of elements M # N is greater than or equal to 4, then it is determined as being in the safe-use area, otherwise it is determined as being in the illegal area.
As shown in fig. 3, the method further comprises:
s301, after position information of a main base station and adjacent base stations in a current registration area of the POS machine is obtained, the time and frequency of the position information of each base station appearing in the current position information set are recorded;
s302, when the time that the base station position information does not appear reaches a preset time threshold, removing the base station position information from the legal position information set;
and S303, adding the base station position information with the maximum frequency or the maximum signal intensity in a preset time threshold into the legal position information set.
In the actual environment, the base station may be removed due to the problems of city planning or wireless cellular mobile network planning, or an added temporary base station is added into a legal list, and then the temporary base station is removed in the actual environment. If these invalid base stations continue to remain in the legal location information set, the stability of relative positioning will be gradually affected, and even the correct decision cannot be made, so that the base stations cannot be used. To remove an invalid base station from the set of legitimate location information, the invalid base station needs to be identified first. The invalid base station is characterized in that: long periods of time do not occur in the current set of location information.
As shown in fig. 4, the method includes:
s401, when the threshold value is larger than the element number of the current position information set or the legal position information set, taking the minimum of the element number of the current position information set and the element number of the legal position information set as the threshold value;
s402, when the intersection element number of the current position information set and the legal position information set reaches the threshold value, judging that the current registration area of the POS machine belongs to a safe use area.
The number of intersections is not only 1, 2, 4 and 7, so that the threshold value should be adjustable and can be set between 1 and 7, but the threshold value should not be higher than the total number of elements in the legal position information set.
For the situation that the legal position information is insufficient, the threshold value needs to be temporarily reduced to the number of elements in the current legal position information set, that is, under the current condition, the threshold value of the highest level in the judgment capability range is set, and the threshold value does not change until the legal position information automatically increases and expands to be higher than the set threshold value.
If the number of elements in the current location information set is smaller than the threshold, the threshold also needs to be temporarily decreased to adjust the upper limit of the legal location information set of the number of elements in the current location information set.
As shown in fig. 5, the method further comprises:
s501, when the POS machine has a plurality of safe use areas, setting a legal position information set corresponding to each safe use area;
s502, acquiring a current position information set of the current registration area of the POS machine;
s503, performing one-to-one matching operation on the current position information set and a plurality of legal position information sets;
s504, when the intersection element number of the current position information set and one legal position information set reaches a threshold value, judging that the current registration area of the POS machine belongs to a safe use area.
Legal position information is changed from one original set to a plurality of sets, and a one-dimensional array is changed into a two-dimensional array on codes. Each set is stored in a separate relative positioning initialization phase. And performing intersection operation on each set in turn every time of relative positioning judgment, judging that the set is in a legal position as long as the intersection operation result of one set exceeds a threshold value, and judging that the set is in an illegal position if the intersection operation result of the set with all legal positions does not exceed the threshold value.
Optionally, the method further includes:
after the current position information in the safe use area is collected for the first time, analyzing the current position information and recording MCC information and MNC information corresponding to a current main base station; and reporting and prompting to initialize the legal position information set when detecting that the MCC information and the MNC information change.
Optionally, the method further includes:
acquiring and judging a network system of a POS machine, and acquiring CGI information of a main base station and a neighboring base station in a current registration area when the POS machine is in a GSM system, wherein the current position information is base station CGI information; and when the POS machine is in a CDMA mode, adopting CGI information of a main base station in the current registration area and PN pilot code information of the main base station and adjacent base stations.
CGI is a code that uniquely identifies a radio base station on a global scale, and is one of parameters that are often used in radio base station positioning technology. The CGI consists of an LAI (location area identity) and a CID (cell identity) in their coding order, and the LAI consists of an MCC (mobile country code), an MNC (mobile network code), and an LAC (location area code) in their coding order. For a network of any standard, it is always possible to acquire the CGI of the currently registered base station. For a network of GSM system, CGIs of neighboring base stations may be queried. For a network of CDMA system, CGIs of neighboring base stations cannot be queried.
In a general model of a CDMA system, a cell is divided into three sectors, each of which is 120 °, and is distinguished by a PN (pseudo noise) pilot code, which may represent a PN short code actually used. The PN short code has a length of 15 bits, but CDMA specifies that adjacent PN short codes need to be spaced by 64 chips, so that the actual PN short code is only 512, which can be represented by a PN pilot code with a code length of 9 bits. So that the PN pilot code takes on values between 0 and 511.
In the relative positioning algorithm under the CDMA system, after the CGI is replaced with the PN pilot code, the algorithm itself is not changed much, but a PN pilot code set is added in terms of a data structure, and the set is not directly added by adding member variables of 3 PN pilot codes to the data structure corresponding to each base station. Both the legal location information set and the current location information set are sets of PN pilot codes.
As shown in fig. 6, when the POS machine is in the CDMA mode, the method includes:
s601, matching the CGI information of the main base station in the current registration area with a pre-stored legal CGI information set in a safe use area; because the CGI information of the neighboring base station cannot be obtained, and the CGI cannot be corresponded to only the combination of 3 PN pilot codes, the relative positioning algorithm in the GSM system used here can only adopt the many-to-one matching algorithm of the legal position information and the current main base station.
S602, if the CGI information belongs to the legal CGI information set, judging that the current registration area of the POS machine belongs to a safe use area;
s603, if the CGI information does not belong to the legal CGI information set, matching operation is carried out on the current PN pilot code information sets of the main base station and the adjacent base stations in the current registration area and a prestored legal PN pilot code information set in a safe use area;
s604, when the number of intersection elements of the current PN pilot code information set and the legal PN pilot code information set reaches a threshold value, judging that the current registration area of the POS machine belongs to a safe use area.
When 3 PN pilot codes are used to replace a CGI, it is also necessary to calculate whether the number of intersections between two sets of PN pilot codes is greater than a threshold. Then, as long as the threshold value is high enough, the environmental probability of encountering the same PN pilot code combination is very low; on the premise of no regular distribution of PN pilot codes, the PN pilot codes can replace CGI in the many-to-many matching algorithm to realize the relative positioning function. When the number of any element in the two sets is less than 12, the judgment can not be carried out, the processing is directly carried out according to the illegal position, and meanwhile, the application program can be informed that the current wireless environment can not be positioned, so that the application program can prompt a user, and the problem after sale troubleshooting is further facilitated. Specifically, if the number of acquired PN pilot codes in the relative positioning initialization phase is less than 9, the relative positioning initialization phase is reported to fail.
Optionally, after the number of intersection elements of the current PN pilot code information set and the legal PN pilot code information set reaches a threshold value, the method further includes:
judging whether the LAC information of the main base station in the current registration area belongs to a legal position information set:
if the LAC information of the main base station in the current registration area belongs to a legal position information set, judging whether the legal position information set reaches an upper limit value, and if so, judging that the current registration area of the POS machine belongs to a safe use area; otherwise, adding the CGI information of the main base station in the current registration area to the legal position information set;
if the LAC information of the main base station in the current registration area does not belong to a legal position information set, judging whether the number of different LAC information in the legal position information set exceeds 3, and if so, judging that the current registration area of the POS machine does not belong to a safe use area; if not, judging whether the legal position information set reaches an upper limit value.
Optionally, when the current registration area of the POS machine belongs to the safe use area, increasing, according to the signal strength sequence, a legal PN pilot code information set, which does not belong to the legal PN pilot code information set, in the acquired PN pilot code information of the main base station and the neighboring base station, to the legal PN pilot code information set until the legal PN pilot code information set reaches the upper limit value.
Example 2
As shown in fig. 8, an embodiment of the present invention provides a POS relative positioning system 100, which includes:
a position information acquisition module 110, configured to acquire position information of a main base station and neighboring base stations in a current registration area of the POS machine, and store the position information as a current position information set;
a legal position information access module 120, configured to, in a safe use area set by the POS machine, initially acquire current position information in the safe use area, and encrypt and store the current position information as a legal position information set;
a relative positioning judgment module 130, configured to read and decrypt from a secure storage area to obtain a legal location information set, where the current location information set and the legal location information set perform matching operation; and when the intersection element number of the current position information set and the legal position information set reaches a threshold value, judging that the current registration area of the POS machine belongs to a safe use area.
Specifically, the position information acquisition module is responsible for calling a wireless communication device to drive and acquire the wireless environment information of the current wireless POS machine, and sending the environment information of the safe use area to the legal position information access module and the current position information to the relative positioning judgment module; the legal position information access module is responsible for accessing the legal position information transmitted by the position information acquisition module and providing the legal position information to the relative positioning judgment module when the relative positioning judgment is needed; and the relative positioning judgment module judges whether the current position is in the safe use area or not according to the transmitted current position information and the legal position information and outputs a judgment result.
The working process of the system is basically divided into two stages:
the initialization stage of the relative positioning function is the process that the position information acquisition module acquires the information of the safe use area and delivers the information to the legal position information access module for storage, the stage is executed when the relative positioning function is started, otherwise, the relative positioning judgment module cannot judge due to the absence of the legal position information in the use stage. However, since the initialization stage necessarily requires the wireless POS device to be in a safe use area, and the relative positioning function cannot be used yet, it is necessary to manually determine whether the current wireless POS device is in the safe use area. Meanwhile, legal position information is used as a judgment reference of relative positioning, and in order to avoid that an attacker tampers with the legal position information by executing a relative positioning initialization stage at an illegal position, the manual judgment must be limited by authority; in the actual use scenario, the authorized person turns on the function after the authorized person authenticates the wireless POS machine through a password or other authentication methods when the wireless POS machine is installed.
The position information acquisition module: the wireless communication device in the wireless POS machine is connected with the MCU through a serial port. And the wireless communication device interacts with the MCU through AT commands. Each wireless communication device may have AT commands to query the wireless communication device for current base station information. The receiving, sending and analyzing of the AT command are realized by the drive of the wireless communication device, so that the position information acquisition module only needs to call a related interface driven by the wireless communication device to acquire the current base station information from the wireless communication device, and according to the algorithm requirement of the relative positioning judgment module, the base station information is sorted and forms a data structure required by the algorithm to be transmitted to the legal position information access module and the relative positioning judgment module.
The position information acquisition module also needs to drive an operator for acquiring the SIM card through a wireless communication device, and if the operator is inconsistent with the storage of the previous legal position information access module, the operator is reported to change, and the initialization of the relative positioning function needs to be carried out again.
The legal position information access module is used for storing and reading the legal position information acquired at the initialization stage of the relative positioning function, and because the legal position information is the judgment reference of the whole relative positioning, if the information is falsified, the whole relative positioning loses the meaning, so the legal position information is encrypted and then stored in a safety area of the safety CPU.
The relative positioning judging module adopts a relative positioning algorithm to ensure low misjudgment rate, relative stability and accuracy, adopts a many-to-many matching algorithm to improve the relative positioning stability, and realizes the adaptation to the communication network environment by automatically updating legal position information so as to achieve the aim of reducing the misjudgment rate; the stability of relative positioning is improved by automatic expansion of legal position information; and the stability and the accuracy are balanced by adding a threshold value and adjusting the threshold value and the upper limit value of the legal position information according to the position attribute of the safe use area. Therefore, the function of limiting and managing the use area of the POS machine is realized at low cost, and the POS machine has lower misjudgment rate, higher stability and sufficient accuracy.
Example 3
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a POS machine use area limitation management program, and when the POS machine use area limitation management program is executed by a processor, the steps of the POS machine use area limitation management method are realized. It is understood that the computer-readable storage medium in this embodiment may be applied to a server, and for specific implementation, reference may be made to the foregoing embodiment, which is not described herein again.
According to the POS machine use area limitation management method, the POS machine use area limitation management system and the readable medium thereof, matching operation is carried out on the current position information set and the legal position information set, and when the number of intersection elements of the current position information set and the legal position information set reaches a threshold value, the current registration area of the POS machine is judged to belong to a safe use area; a many-to-many matching algorithm is adopted so as to improve the relative positioning stability, and in addition, the adaptation to the communication network environment is realized by automatically updating the legal position information, so that the purpose of reducing the misjudgment rate is achieved; the stability of relative positioning is improved by automatic expansion of legal position information; and the stability and the accuracy are balanced by adding a threshold value and adjusting the threshold value and the upper limit value of the legal position information according to the position attribute of the safe use area. Therefore, the function of limiting and managing the use area of the POS machine is realized at low cost, and the POS machine has low misjudgment rate, high stability and sufficient accuracy.

Claims (10)

1. A POS machine use area restriction management method is characterized by comprising the following steps:
acquiring position information of a main base station and an adjacent base station in a current registration area of a POS machine, and storing the position information as a current position information set;
reading and decrypting from a safe storage area to obtain a legal position information set, and performing matching operation on the current position information set and the legal position information set;
and when the intersection element number of the current position information set and the legal position information set reaches a threshold value, judging that the current registration area of the POS machine belongs to a safe use area.
2. The POS-use-area-restriction management method according to claim 1, further comprising:
under the safe use area set by the POS machine, the current position information under the safe use area is collected for the first time, and the current position information is encrypted and stored as a legal position information set.
3. The POS use area restriction management method according to claim 2, wherein the step of collecting, for the first time, current location information under the secure use area, and storing the current location information encrypted as a set of legal location information further comprises:
setting the threshold value and the upper limit value of the number of elements in the legal position information set according to the density of the base stations in the safe use area;
and when the current registration area of the POS machine belongs to a safe use area, adding the legal position information set which does not belong to the collected current position information to the legal position information set according to the signal intensity sequence until the legal position information set reaches the upper limit value.
4. The POS-use-area-restriction management method according to claim 3, further comprising:
after position information of a main base station and adjacent base stations in a current registration area of a POS machine is obtained, the time and frequency of each base station position information appearing in a current position information set are recorded;
when the time when the base station position information does not appear reaches a preset time threshold, removing the base station position information from the legal position information set;
and adding the base station position information with the maximum frequency or the maximum signal intensity in a preset time threshold into the legal position information set.
5. The POS-use-area-restriction management method according to claim 4, further comprising:
when the threshold value is larger than the element number of the current position information set or the element number of the legal position information set, taking the minimum element number of the current position information set and the element number of the legal position information set as the threshold value;
and when the intersection element number of the current position information set and the legal position information set reaches the threshold value, judging that the current registration area of the POS machine belongs to a safe use area.
6. The POS-use-area-restriction management method according to claim 2, further comprising:
the method further comprises the following steps:
when the POS machine has a plurality of safe use areas, setting a legal position information set corresponding to each safe use area;
acquiring a current position information set of the current registration area of the POS machine;
performing one-to-one matching operation on the current position information set and a plurality of legal position information sets;
and when the intersection element number of the current position information set and one legal position information set reaches a threshold value, judging that the current registration area of the POS machine belongs to a safe use area.
7. The POS-use-area-restriction management method according to claim 2, further comprising:
the method further comprises the following steps:
collecting and judging a network system of a POS machine, and collecting CGI information of a main base station and an adjacent base station in a current registration area when the POS machine is in a GSM system, wherein the current position information is base station CGI information; and when the POS machine is in a CDMA mode, adopting CGI information of a main base station in the current registration area and PN pilot code information of the main base station and adjacent base stations.
8. The POS-use-area-restriction management method according to claim 7, further comprising:
when the POS machine is in a CDMA standard, the method comprises the following steps:
matching the CGI information of the main base station in the current registration area with a pre-stored legal CGI information set in a safe use area;
if the CGI information belongs to the legal CGI information set, judging that the current registration area of the POS machine belongs to a safe use area;
if the CGI information does not belong to the legal CGI information set, matching operation is carried out on the current PN pilot code information sets of the main base station and the adjacent base stations in the current registration area and a prestored legal PN pilot code information set under the safe use area;
and when the intersection element number of the current PN pilot code information set and the legal PN pilot code information set reaches a threshold value, judging that the current registration area of the POS machine belongs to a safe use area.
9. A POS relative positioning system, comprising:
the position information acquisition module is used for acquiring the position information of a main base station and adjacent base stations in the current registration area of the POS machine and storing the position information as a current position information set;
the legal position information access module is used for acquiring the current position information in the safe use area for the first time under the safe use area set by the POS machine and encrypting and storing the current position information into a legal position information set;
the relative positioning judgment module is used for reading and decrypting the information from the safe storage area to obtain a legal position information set, and the current position information set and the legal position information set are subjected to matching operation; and when the intersection element number of the current position information set and the legal position information set reaches a threshold value, judging that the current registration area of the POS machine belongs to a safe use area.
10. A computer-readable storage medium having stored thereon program data for implementing the POS use area restriction management method according to any one of claims 1-8 when executed by a processor.
CN202211494844.7A 2022-11-26 2022-11-26 POS machine use area limit management method, POS machine use area limit management system and readable medium thereof Active CN115811703B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211494844.7A CN115811703B (en) 2022-11-26 2022-11-26 POS machine use area limit management method, POS machine use area limit management system and readable medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211494844.7A CN115811703B (en) 2022-11-26 2022-11-26 POS machine use area limit management method, POS machine use area limit management system and readable medium thereof

Publications (2)

Publication Number Publication Date
CN115811703A true CN115811703A (en) 2023-03-17
CN115811703B CN115811703B (en) 2023-07-14

Family

ID=85484238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211494844.7A Active CN115811703B (en) 2022-11-26 2022-11-26 POS machine use area limit management method, POS machine use area limit management system and readable medium thereof

Country Status (1)

Country Link
CN (1) CN115811703B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376460A (en) * 2013-08-12 2015-02-25 黄金富知识产权咨询(深圳)有限公司 Payment system and corresponding pos machine
US20180165667A1 (en) * 2016-12-09 2018-06-14 Mastercard International Incorporated Control of permissions for making transactions
CN109511153A (en) * 2018-10-31 2019-03-22 京信通信系统(中国)有限公司 A kind of base station connection control method, device, medium, computer equipment and system
CN110708657A (en) * 2018-06-25 2020-01-17 百度在线网络技术(北京)有限公司 Wireless access point connection method and device for mobile terminal
CN112469044A (en) * 2020-12-17 2021-03-09 国网辽宁省电力有限公司信息通信分公司 Edge access control method and controller for heterogeneous terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376460A (en) * 2013-08-12 2015-02-25 黄金富知识产权咨询(深圳)有限公司 Payment system and corresponding pos machine
US20180165667A1 (en) * 2016-12-09 2018-06-14 Mastercard International Incorporated Control of permissions for making transactions
CN110708657A (en) * 2018-06-25 2020-01-17 百度在线网络技术(北京)有限公司 Wireless access point connection method and device for mobile terminal
CN109511153A (en) * 2018-10-31 2019-03-22 京信通信系统(中国)有限公司 A kind of base station connection control method, device, medium, computer equipment and system
CN112469044A (en) * 2020-12-17 2021-03-09 国网辽宁省电力有限公司信息通信分公司 Edge access control method and controller for heterogeneous terminal

Also Published As

Publication number Publication date
CN115811703B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
KR101131590B1 (en) Method for terminal-based recognition of home base stations in a cellular mobile radio system by means of support by the mobile radio network
CN102239719B (en) Verifying neighbor cell
US5335278A (en) Fraud prevention system and process for cellular mobile telephone networks
US7835721B2 (en) Multiple security level mobile telecommunications device system and method
US20110202460A1 (en) Method and system for authorizing transactions based on relative location of devices
CN104604198A (en) Securing databases against piracy attacks
CN104837215A (en) Wireless access point connecting method and device
CN102982626B (en) A kind of method of POS terminal transfer alarm and device
CN103428699A (en) Registration binding and identity authentication method based on mobile phone hardware feature information
US20060153189A1 (en) Ad hoc communication system, mobile terminal, center, ad hoc communication method and ad hoc communication program
CN103634270A (en) A method for identifying validity of an access point, a system thereof and an access point discriminating server
BRPI0206845B1 (en) method and center of reference for identifying mobile terminal positions
CN109002875A (en) Two dimensional code encryption method, two dimensional code Transmission system and storage medium
US20020180583A1 (en) Authentication of subscriber station
CN101631313B (en) Method for network management and associated device
CN101990278B (en) Method of managing authorization of private node b in a wireless communication system and related device
CN108510357A (en) Improved shared bicycle smart lock framework control method and device
US10820265B2 (en) IoT device connectivity provisioning
CN103180861A (en) User verification device and user verification method
CN115811703A (en) POS machine use area limit management method, system and readable medium thereof
US20220295281A1 (en) System, module, circuitry and method
CN109474635A (en) A kind of electrical equipment distribution method and system based on barcode scanning technology
CN101990155B (en) Method for judging border cell as well as border cell data management platform and system
KR102004703B1 (en) Location-based authentication apparatus and system using geofencing
CN109379744B (en) Pseudo base station identification method and device and communication terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant