CN112995909A - SIM card distribution method, device, server and computer readable storage medium - Google Patents

SIM card distribution method, device, server and computer readable storage medium Download PDF

Info

Publication number
CN112995909A
CN112995909A CN201911312209.0A CN201911312209A CN112995909A CN 112995909 A CN112995909 A CN 112995909A CN 201911312209 A CN201911312209 A CN 201911312209A CN 112995909 A CN112995909 A CN 112995909A
Authority
CN
China
Prior art keywords
card
idle
risk
sim card
user terminal
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
CN201911312209.0A
Other languages
Chinese (zh)
Other versions
CN112995909B (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.)
Shenzhen Youke Yunlian Technology Co ltd
Original Assignee
Shenzhen Youke Yunlian Technology 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 Shenzhen Youke Yunlian Technology Co ltd filed Critical Shenzhen Youke Yunlian Technology Co ltd
Priority to CN201911312209.0A priority Critical patent/CN112995909B/en
Priority to PCT/CN2020/132852 priority patent/WO2021121019A1/en
Publication of CN112995909A publication Critical patent/CN112995909A/en
Application granted granted Critical
Publication of CN112995909B publication Critical patent/CN112995909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1442Charging, metering or billing arrangements for data wireline or wireless communications at network operator level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Accounting & Taxation (AREA)
  • Business, Economics & Management (AREA)
  • Remote Sensing (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The application is applicable to the technical field of SIM cards, and provides an SIM card distribution method, an SIM card distribution device, a server and a computer-readable storage medium, wherein the SIM card distribution method is applied to the server and comprises the following steps: receiving an SIM card allocation request sent by a user terminal; searching SIM card state information stored in a database of the server according to the SIM card allocation request, and determining whether the server has an idle card; if the server has an idle card, acquiring attribute information of the idle card, and calculating a risk coefficient of the idle card according to the position information of the user terminal and the attribute information of the idle card; and allocating the idle card with the risk coefficient smaller than the first risk threshold value to the user terminal, so that the technical problems that the normally used SIM card is judged as the abnormally used SIM card by an operator by mistake, the SIM card is stopped and the cloud card operator is lost are solved.

Description

SIM card distribution method, device, server and computer readable storage medium
Technical Field
The present application belongs to the technical field of SIM cards, and in particular, to a SIM card distribution method, apparatus, server, and computer-readable storage medium.
Background
A Subscriber Identity Module (SIM) card refers to a smart card used by a user terminal, in which user identity identification data, an authentication algorithm, a secret key, and the like are stored, and is used to identify and authenticate the user terminal before the user terminal accesses a communication network. If the user terminal fixedly uses one SIM card, the problems of poor signal, high roaming cost and the like easily occur.
To solve these problems, the cloud SIM card technology has been developed. The cloud SIM card technology is that a large number of SIM cards are stored and managed on a server in a centralized mode, and the SIM cards are shared and used on different devices according to a real-time SIM card allocation method.
However, in the conventional cloud SIM card technology, the SIM card may be called by different devices at a longer distance in a short time, which causes the SIM card normally used to be misjudged as the SIM card abnormally used by the operator, and further causes the SIM card to be disabled, thereby causing a loss to the cloud operator.
Disclosure of Invention
The embodiment of the application provides a method, a device, a server and a computer readable storage medium for distributing an SIM card, which can solve the technical problem that the normally used SIM card is judged as an abnormally used SIM card by an operator by mistake, so that the SIM card is stopped and loss is brought to a cloud card operator.
A first aspect of the embodiments of the present application provides a SIM card allocation method, which is applied to a server, and includes:
receiving an SIM card allocation request sent by a user terminal; the SIM card allocation request carries the position information of the user terminal;
searching SIM card state information stored in a database of the server according to the SIM card allocation request, and determining whether the server has an idle card;
if the server has an idle card, acquiring attribute information of the idle card, and calculating a risk coefficient of the idle card according to the position information of the user terminal and the attribute information of the idle card; the attribute information of the idle card comprises corresponding position information when the idle card is released last time and idle duration of the idle card;
and distributing the idle card with the risk coefficient smaller than a first risk threshold value to the user terminal.
A second aspect of the present application provides an SIM card allocating apparatus, configured on a server, including:
a receiving unit, configured to receive an SIM card allocation request sent by a user terminal; the SIM card allocation request carries the position information of the user terminal;
the searching unit is used for searching the SIM card state information stored in the database of the server according to the SIM card distribution request and determining whether the server has an idle card;
the computing unit is used for acquiring the attribute information of the idle card if the server has the idle card, and computing the risk coefficient of the idle card according to the position information of the user terminal and the attribute information of the idle card; the attribute information of the idle card comprises corresponding position information when the idle card is released last time and idle duration of the idle card;
and the allocation unit is used for allocating the idle card with the risk coefficient smaller than a first risk threshold value to the user terminal.
A third aspect of the embodiments of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the above method when executing the computer program.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the above method.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on a terminal device, causes the terminal device to perform the steps of the method.
In the embodiment of the application, SIM card state information stored in a database of a server is searched according to a received SIM card distribution request sent by a user terminal, whether the server has an idle card or not is determined, and when the server has the idle card, a risk coefficient of the idle card is calculated according to position information of the user terminal and attribute information of the idle card; then, distributing the idle card with the risk coefficient smaller than a first risk threshold value to the user terminal; because the risk coefficient is calculated according to the position information of the user terminal, the position information corresponding to the idle card when the idle card is released last time, and the idle time length of the idle card, the risk coefficient can represent the possibility that the SIM card is called by different devices which are far away in a short time, and the first risk threshold value can be set as the maximum risk value of the risk that the operator can accept that the SIM card is called by different devices which are far away in a short time, so that when the idle card with the risk coefficient smaller than the first risk threshold value is allocated to the user terminal, the SIM card allocated to the user terminal is the SIM card within the risk range which the operator can accept, and the problem that the normally used SIM card is mistakenly judged as the abnormally used SIM card by the operator is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of interaction between a user terminal and a server according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a first implementation flow of a SIM card allocation method provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of an implementation flow for calculating a risk factor of an idle card according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a second implementation of a SIM card allocation method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a third implementation of a SIM card allocation method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a fourth implementation of a SIM card allocation method according to an embodiment of the present application;
fig. 7 is a schematic flowchart of a first implementation of updating a state of a SIM card according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a SIM card dispensing apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
A Subscriber Identity Module (SIM) card refers to a smart card used by a user terminal, in which user identity identification data, an authentication algorithm, a secret key, and the like are stored, and is used to identify and authenticate the user terminal before the user terminal accesses a communication network. If the user terminal fixedly uses one SIM card, the problems of poor signal, high roaming cost and the like easily occur.
To solve these problems, the cloud SIM card technology has been developed. The cloud SIM card technology is that a large number of SIM cards are stored and managed on a server in a centralized mode, and the SIM cards are shared and used on different devices according to a real-time SIM card allocation method.
However, in the conventional cloud SIM card technology, the SIM card may be called by different devices at a longer distance in a short time, which causes the SIM card normally used to be misjudged as the SIM card abnormally used by the operator, and further causes the SIM card to be disabled, thereby causing a loss to the cloud operator.
For example, one SIM card is just allocated to one user terminal of Shenzhen for use, and registers the Shenzhen mobile network; after 1 minute, the card is again assigned to a user terminal in Beijing and registered with the Beijing mobile network. Normally, a user terminal cannot move from shenzhen to beijing within 1 minute, so the operator misjudges the normally used SIM card as an abnormally used SIM card and deactivates the SIM card.
Based on this, the embodiment of the application provides a method, a device, a server and a computer-readable storage medium for allocating an SIM card, which can solve the technical problem that an operator misjudges a normally used SIM card as an abnormally used SIM card, so that the SIM card is deactivated and loss is brought to a cloud card operator.
In order to explain the technical means of the present application, the following description will be given by way of specific examples.
Fig. 1 shows a schematic diagram of interaction between a user terminal and a server provided by an embodiment of the present application. The user terminal 11 may send a SIM card assignment request to the server 13 through the mobile communication network or other network (e.g., WIFI network) 12; after receiving the SIM card allocation request sent by the user terminal 11, the server 13 may allocate an SIM card to the user terminal 11 according to the SIM card allocation method provided in the present application; after the SIM card is successfully assigned, the user terminal 11 may register a network with the operator, and then access the communication network.
Specifically, the user terminal 11 may include a device capable of using a cloud SIM card, and the device may download information of the SIM card allocated by the server and complete authentication of an operator, so as to access the communication network. The server 13 may include a card loading device 131, a database 132, and a SIM card scheduling system 133; the card loading device 131 is a carrier device of a SIM card, and is configured to read information of the SIM card and upload the information of the SIM card to the database 132; the database 132 is used for managing the state of the SIM card, storing basic information of the SIM card, storing package flow charging information, recording historical distribution information of the SIM card, and the like; SIM card scheduling system 133 is used to perform SIM card allocation and scheduling.
Fig. 2 shows a schematic flow chart of an implementation of a SIM card allocation method provided in an embodiment of the present application, where the method is applicable to the server shown in fig. 1, and is executed by an SIM card allocation device configured on the server, and is suitable for solving a situation that a normally used SIM card is erroneously determined by an operator as an abnormally used SIM card, which further causes the SIM card to be deactivated, and causes a loss to a cloud card operator. The SIM card assignment method may include steps 201 to 204.
Step 201, receiving a SIM card allocation request sent by a user terminal.
The SIM card allocation request carries the position information of the user terminal; the location information may include latitude and longitude information of the user terminal or location information of the base station.
Specifically, when the user terminal sends an SIM card allocation request to the server through the base station, if the user terminal supports a Global Positioning System (GPS), the latitude and longitude information of the user terminal may be obtained through the GPS, and the latitude and longitude information of the user terminal is carried in the SIM card allocation request; if the user terminal does not support a Global Positioning System (GPS), the location information of the base station may be obtained during the network searching process of the user terminal, and the location information of the base station is carried in the SIM card allocation request.
The Location information of the base station may include a Mobile Network Code (MNC), a Mobile Country Code (MCC), a Location Area Code (LAC), and a Cell ID of the base station.
In some embodiments of the present application, after receiving the SIM card allocation request sent by the user terminal, the server may include: judging whether the SIM card allocation request carries the position information of the base station or not; if the SIM card allocation request carries the location information of the base station, the latitude and longitude information of the user terminal may be obtained according to the location information of the base station.
It should be noted that the SIM card allocation request may also carry other information such as country information of requesting card allocation, time information of requesting card allocation, and the like, which is not limited in the present application.
Step 202, searching the SIM card state information stored in the database of the server according to the SIM card allocation request, and determining whether the server has an idle card.
In some embodiments of the present application, the database of the server stores SIM card status information, where the SIM card status information indicates a current usage status of the SIM card; for example, when a SIM card is assigned to a user terminal and is not released, the SIM card is a non-idle card in a non-idle state; when the SIM card is not assigned to the user terminal, the SIM card is an idle card in an idle state.
Therefore, in some embodiments of the present application, the server may search SIM card state information stored in the database of the server according to the SIM card allocation request, determine whether the server has an idle card, if the server does not have an idle card, may send information that no card can be divided to the user terminal, and the user terminal may resend the SIM card allocation request after receiving the information, or the server may directly resend the SIM card state information stored in the database of the server until the server has an idle card; if the server has an idle card, the risk coefficient of the idle card can be calculated to complete the SIM card distribution of the user terminal.
Further, in some embodiments of the present application, if the SIM card allocation request information carries country information requesting card allocation, the searching for SIM card state information stored in a database of a server according to the SIM card allocation request may further include: according to the country information of the request card distribution in the SIM card distribution request, searching the SIM card state information of the SIM card corresponding to the country information of the request card distribution stored in a database of the server, determining whether the server has an idle card corresponding to the country information of the request card distribution, and further distributing the idle card corresponding to the country to different countries.
Step 203, if the server has an idle card, acquiring attribute information of the idle card, and calculating a risk coefficient of the idle card according to the position information of the user terminal and the attribute information of the idle card.
The attribute information of the idle card may include position information corresponding to the last time the idle card is released, and an idle duration of the idle card.
Specifically, as shown in fig. 3, the calculating the risk coefficient of the idle card according to the location information of the user terminal and the attribute information of the idle card may include: step 301 to step 302.
Step 301, calculating the card distribution distance corresponding to the idle card according to the position information of the user terminal and the position information corresponding to the idle card when the idle card is released last time.
The position information corresponding to the last time the idle card is released may include longitude and latitude information corresponding to the last time the idle card is released.
Correspondingly, the calculating the card separation distance corresponding to the idle card according to the position information of the user terminal and the position information corresponding to the idle card when the idle card is released last time may include: and calculating the card distribution distance corresponding to the idle card according to the longitude and latitude information of the user terminal and the longitude and latitude information corresponding to the idle card when the idle card is released last time.
In particular, can be prepared by
Figure BDA0002324825990000071
Calculating a card distributing distance corresponding to the idle card; d represents the card separation distance corresponding to the idle card; lung1 and Lat1 represent longitude and latitude of the user terminal, and Lung2 and Lat2 represent corresponding longitude and latitude when the idle card is released last time; a represents the difference between the latitude of the user terminal and the corresponding latitude when the idle card is released last time, b represents the difference between the longitude of the user terminal and the corresponding longitude when the idle card is released last time; shormin represents the earth radius.
It should be noted that other methods for calculating the card separation distance corresponding to the idle card are also applicable to the present application, and are not described herein again.
Step 302, determining the ratio of the card separation distance to the idle time of the idle card as the risk coefficient of the idle card.
That is, can pass
Figure BDA0002324825990000081
Calculating a risk coefficient of an idle card; wherein, R represents the risk coefficient of the idle card, D represents the card separation distance, and T represents the idle time of the idle card.
In some embodiments of the present application, the attribute information of the idle card may further include time information corresponding to the last time the idle card is released, and at this time, the idle time of the idle card may be calculated according to the request card distribution time information in the SIM card allocation request and the time information corresponding to the last time the idle card is released.
It should be noted that, the larger the ratio of the card separation distance to the idle time of the idle card, that is, the larger the risk coefficient of the idle card, the shorter the interval time between two uses of the SIM card, the larger the interval distance, therefore, the problem that the SIM card is called by different devices at a longer distance in a short time is more likely to occur when the idle card is allocated to the user terminal; the smaller the ratio of the card separation distance to the idle time of the idle card is, that is, the smaller the risk coefficient of the idle card is, the longer the interval time corresponding to the two uses of the SIM card before and after is, the shorter the interval distance is, and therefore, the problem that the SIM card is called by different devices located at a longer distance in a short time by allocating the idle card to the user terminal is less likely to occur.
And 204, distributing the idle card with the risk coefficient smaller than the first risk threshold value to the user terminal.
The first risk threshold is the maximum risk value which can be accepted by an operator and in which the SIM card is called by different devices at a longer distance in a short time, so that an idle card with a risk coefficient smaller than the first risk threshold is allocated to the user terminal, the SIM card allocated to the user terminal can be the SIM card within the risk range accepted by the operator, and the problem that the normally used SIM card is mistakenly judged as the abnormally used SIM card by the operator is solved.
Since different countries and different operators have different requirements for the risk, in some embodiments of the present application, the server may adjust the first risk threshold according to the needs of different countries or different operators.
In the embodiment of the application, SIM card state information stored in a database of a server is searched according to a received SIM card distribution request sent by a user terminal, whether the server has an idle card or not is determined, and when the server has the idle card, a risk coefficient of the idle card is calculated according to position information of the user terminal and attribute information of the idle card; then, distributing the idle card with the risk coefficient smaller than a first risk threshold value to the user terminal; because the risk coefficient is calculated according to the position information of the user terminal, the position information corresponding to the idle card when the idle card is released last time, and the idle time length of the idle card, the risk coefficient can represent the possibility that the SIM card is called by different devices which are far away in a short time, and the first risk threshold value can be set as the maximum risk value of the risk that the operator can accept that the SIM card is called by different devices which are far away in a short time, so that when the idle card with the risk coefficient smaller than the first risk threshold value is allocated to the user terminal, the SIM card allocated to the user terminal is the SIM card within the risk range which the operator can accept, and the problem that the normally used SIM card is mistakenly judged as the abnormally used SIM card by the operator is solved.
In some embodiments of the present application, among the idle cards with a risk coefficient smaller than the first risk threshold, there may be idle cards with a risk coefficient smaller than the second risk threshold, where the idle cards are idle cards that an operator considers that a SIM card appears and that the risk of being called by different devices at a longer distance in a short time is very low or even 0, and therefore, if there is an idle card with a risk coefficient smaller than the second risk threshold, any idle card with a risk coefficient smaller than the second risk threshold may be directly allocated to the user terminal.
Specifically, if the server includes a plurality of idle cards with risk coefficients smaller than the first risk threshold, as shown in fig. 4, the step 204 may specifically include: step 401 to step 402.
Step 401, it is determined whether there is an idle card with a risk coefficient smaller than a second risk threshold in the idle cards with a risk coefficient smaller than the first risk threshold.
Wherein the second risk threshold is less than the first risk threshold.
Step 402, if there is an idle card with a risk coefficient smaller than a second risk threshold in the idle cards with a risk coefficient smaller than the first risk threshold, allocating any idle card with a risk coefficient smaller than the second risk threshold to the user terminal.
In some embodiments of the present application, since the idle card with the risk coefficient smaller than the second risk threshold is an idle card that is considered by the operator to have a very small risk of being called by a different device at a longer distance in a short time, or even 0, allocating any idle card with the risk coefficient smaller than the second risk threshold to the user terminal can avoid the problem of having a SIM card being called by a different device at a longer distance in a short time. It should be noted that, in the process of allocating the SIM cards, the idle cards with risk coefficients smaller than the second risk threshold have the same and the highest allocation priority, and as long as there is an idle card with a risk coefficient smaller than the second risk threshold in the idle cards, any idle card with a risk coefficient smaller than the second risk threshold may be preferentially allocated to the user terminal.
Accordingly, if there is no idle card with a risk coefficient smaller than the second risk threshold from among the idle cards with a risk coefficient smaller than the first risk threshold (that is, the idle card with a risk coefficient smaller than the first risk threshold and larger than the second risk threshold), the idle card with a risk coefficient smaller than the first risk threshold is considered by the operator to be an idle card that the SIM card is considered by the operator to be called by different devices at a longer distance in a short time, but the risk can be accepted by the operator.
Specifically, as shown in fig. 5, after the step 401, the method may further include: step 403.
Step 403, if there is no idle card with a risk coefficient smaller than the second risk threshold in the idle cards with a risk coefficient smaller than the first risk threshold, sorting the idle cards with a risk coefficient smaller than the first risk threshold, and allocating the idle card with the minimum risk coefficient in the idle cards with a risk coefficient smaller than the first risk threshold to the user terminal.
In some embodiments of the present application, in the process of allocating the SIM card, when there is no idle card with a risk coefficient smaller than the second risk threshold in the idle cards with a risk coefficient smaller than the first risk threshold, the priority of allocation is higher for the idle card with a smaller risk coefficient in the idle cards with a risk coefficient smaller than the first risk threshold, so that the idle cards with a risk coefficient smaller than the first risk threshold may be sorted, and the idle card with the smallest risk coefficient in the idle cards with a risk coefficient smaller than the first risk threshold is allocated to the user terminal.
In the embodiment of the application, by judging whether an idle card with a risk coefficient smaller than a second risk threshold exists in the idle cards with the risk coefficients smaller than the first risk threshold, if an idle card with a risk coefficient smaller than the second risk threshold exists in the idle cards with a risk coefficient smaller than the first risk threshold, any idle card with a risk coefficient smaller than the second risk threshold is allocated to the user terminal; if no idle card with the risk coefficient smaller than the second risk threshold exists in the idle cards with the risk coefficient smaller than the first risk threshold, sorting the idle cards with the risk coefficient smaller than the first risk threshold, and allocating the idle card with the minimum risk coefficient in the idle cards with the risk coefficient smaller than the first risk threshold to the user terminal; the SIM card distributed to the user terminal is the SIM card with the lowest possibility of being called by different devices at a longer distance in a short time within the risk range accepted by an operator, and the problem that the normally used SIM card is judged as the abnormally used SIM card by the operator is solved to the maximum extent.
Generally, if there is no idle card with a risk coefficient smaller than the first risk threshold, the server does not have a SIM card that can be allocated to the user terminal, and at this time, the server may send a message that no card can be divided to the user terminal, and end the SIM card allocation. Since during the SIM card assignment process, new idle cards may appear, for example: therefore, in order to improve the success rate of SIM card allocation, in some embodiments of the present application, if there is no idle card with a risk coefficient smaller than the first risk threshold, the server may re-search for an allocable card for SIM card allocation, specifically, as shown in fig. 6, steps 601 to 604 may be included.
Step 601, receiving a SIM card allocation request sent by a user terminal.
The SIM card allocation request carries the position information of the user terminal;
step 602, searching the SIM card status information stored in the database of the server according to the SIM card allocation request, and determining whether the server has an idle card.
Step 603, if the server has an idle card, acquiring attribute information of the idle card, and calculating a risk coefficient of the idle card according to the position information of the user terminal and the attribute information of the idle card.
The attribute information of the idle card comprises corresponding position information when the idle card is released last time and idle time of the idle card.
Step 604, if there is no idle card with a risk coefficient smaller than the first risk threshold in the server, recalculating the risk coefficient of the idle card in the server.
In some embodiments of the present application, if there is no idle card with a risk coefficient smaller than the first risk threshold in the server, the risk coefficient may be calculated again for the idle card in the server, and if there is an idle card with a risk coefficient smaller than the first risk threshold, the idle card with a risk coefficient smaller than the first risk threshold is allocated to the user terminal; and if the idle card with the risk coefficient smaller than the first risk threshold does not exist, recalculating the risk coefficient of the idle card in the server until the idle card with the risk coefficient smaller than the first risk threshold appears.
In the embodiment of the application, if the idle card with the risk coefficient smaller than the first risk threshold does not exist in the server, the risk coefficient of the idle card in the server is recalculated until the idle card with the risk coefficient smaller than the first risk threshold appears, so that the success rate of SIM card allocation is improved while the SIM card allocated to the user terminal is the SIM card which is in an idle state and has the lowest possibility of being called by different devices in a short time and in a longer distance within a risk range acceptable by an operator.
It should be noted that, after the idle card with the risk coefficient smaller than the first risk threshold is allocated to the user terminal, the user terminal may release the SIM card, and at this time, the SIM card enters the idle state again. Specifically, as shown in fig. 7, the method includes: step 701 to step 702.
Step 701, obtaining SIM card release information sent by a user terminal.
Step 702, updating the SIM card status information stored in the database of the server according to the SIM card release information.
The SIM card release information may include information such as SIM card attribution mechanism information, user terminal device identification information, distribution country information, release time information, and release location information.
Accordingly, in some embodiments of the present application, the updating the SIM card state information stored in the database of the server according to the SIM card release information may include: marking the SIM card corresponding to the release information as an idle card, determining the idle time of the idle card according to the release time information in the SIM card release information, and determining the corresponding position information of the idle card when the idle card is released last time according to the release position information in the SIM card release information.
In the embodiment of the application, after the user terminal finishes using the SIM card, the user terminal can release the SIM card, and at the moment, the SIM card enters an idle state again and can be distributed to the user terminal by the server again, so that the user terminal can send SIM card release information to the server; after the server obtains the SIM card release information sent by the user terminal, the server may update the SIM card state information stored in the database of the server according to the SIM card release information to update the state of the SIM card, thereby facilitating the next distribution of the SIM card.
It should be noted that, for simplicity of description, the foregoing method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders.
As shown in fig. 8, a schematic structural diagram of a SIM card distribution apparatus 800 configured in a server according to an embodiment of the present invention is provided, where the SIM card distribution apparatus 800 may include: a receiving unit 801, a searching unit 802, a calculating unit 803 and an assigning unit 804.
A receiving unit 801, configured to receive a SIM card allocation request sent by a user terminal; the SIM card allocation request carries the position information of the user terminal;
a searching unit 802, configured to search, according to the SIM card allocation request, SIM card state information stored in a database of the server, and determine whether an idle card exists in the server;
a calculating unit 803, configured to, if an idle card exists in the server, obtain attribute information of the idle card, and calculate a risk coefficient of the idle card according to the location information of the user terminal and the attribute information of the idle card; the attribute information of the idle card comprises corresponding position information when the idle card is released last time and idle duration of the idle card;
an allocating unit 804, configured to allocate the idle card with the risk coefficient smaller than the first risk threshold to the user terminal.
In some embodiments of the present application, the calculating unit 802 is further specifically configured to:
calculating the card distributing distance corresponding to the idle card according to the position information of the user terminal and the corresponding position information when the idle card is released last time;
and determining the ratio of the card distribution distance to the idle time of the idle card as the risk coefficient of the idle card.
In some embodiments of the present application, the allocating unit 804 is further specifically configured to:
judging whether idle cards with the risk coefficients smaller than a second risk threshold exist in the idle cards with the risk coefficients smaller than the first risk threshold; the second risk threshold is less than the first risk threshold;
and if the idle cards with the risk coefficients smaller than the second risk threshold exist in the idle cards with the risk coefficients smaller than the first risk threshold, allocating any idle card with the risk coefficient smaller than the second risk threshold to the user terminal.
If the idle cards with the risk coefficients smaller than the first risk threshold do not exist in the idle cards with the risk coefficients smaller than the second risk threshold, the idle cards with the risk coefficients smaller than the first risk threshold are sorted, and the idle card with the minimum risk coefficient in the idle cards with the risk coefficients smaller than the first risk threshold is allocated to the user terminal.
And if the server does not have an idle card with the risk coefficient smaller than the first risk threshold value, recalculating the risk coefficient of the idle card in the server.
In some embodiments of the present application, the SIM card assignment device may further include an updating unit configured to:
obtaining SIM card release information sent by the user terminal;
and updating the SIM card state information stored in the database of the server according to the SIM card release information.
It should be noted that, for convenience and simplicity of description, the specific working process of the SIM card distribution apparatus 800 described above may refer to the corresponding process of the method described in fig. 1 to fig. 7, and is not described herein again.
Fig. 9 is a schematic diagram of a server according to an embodiment of the present application. The server 9 may include: a processor 90, a memory 91 and a computer program 92, such as a SIM card assignment program, stored in said memory 91 and operable on said processor 90. The processor 90, when executing the computer program 92, implements the steps in the above-described embodiments of the SIM card assignment method, such as the steps 201 to 204 shown in fig. 2. Alternatively, the processor 90, when executing the computer program 92, implements the functions of each module/unit in each device embodiment described above, for example, the functions of the units 801 to 804 shown in fig. 8.
The computer program may be divided into one or more modules/units, which are stored in the memory 91 and executed by the processor 90 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the server. For example, the computer program may be divided into a receiving unit, a searching unit, a calculating unit and an allocating unit, and each unit may specifically function as follows: a receiving unit, configured to receive an SIM card allocation request sent by a user terminal; the SIM card allocation request carries the position information of the user terminal; the searching unit is used for searching the SIM card state information stored in the database of the server according to the SIM card distribution request and determining whether the server has an idle card; the computing unit is used for acquiring the attribute information of the idle card if the server has the idle card, and computing the risk coefficient of the idle card according to the position information of the user terminal and the attribute information of the idle card; the attribute information of the idle card comprises corresponding position information when the idle card is released last time and idle duration of the idle card; and the allocation unit is used for allocating the idle card with the risk coefficient smaller than a first risk threshold value to the user terminal.
The server may be a local server or a cloud server. The server may include, but is not limited to, a processor 90, a memory 91. Those skilled in the art will appreciate that fig. 9 is merely an example of a server and is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or different components, e.g., the server may also include input-output devices, network access devices, buses, etc.
The Processor 90 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 91 may be an internal storage unit of the server, such as a hard disk or a memory of the server. The memory 91 may also be an external storage device of the server, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the server. Further, the memory 91 may also include both an internal storage unit of the server and an external storage device. The memory 91 is used for storing the computer program and other programs and data required by the server. The memory 91 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/server and method may be implemented in other ways. For example, the above-described apparatus/server embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A SIM card distributing method is applied to a server, and is characterized by comprising the following steps:
receiving an SIM card allocation request sent by a user terminal; the SIM card allocation request carries the position information of the user terminal;
searching SIM card state information stored in a database of the server according to the SIM card allocation request, and determining whether the server has an idle card;
if the server has an idle card, acquiring attribute information of the idle card, and calculating a risk coefficient of the idle card according to the position information of the user terminal and the attribute information of the idle card; the attribute information of the idle card comprises corresponding position information when the idle card is released last time and idle duration of the idle card;
and distributing the idle card with the risk coefficient smaller than a first risk threshold value to the user terminal.
2. The SIM card allocation method according to claim 1, wherein the calculating the risk factor of the free card according to the location information of the user terminal and the attribute information of the free card comprises:
calculating the card distributing distance corresponding to the idle card according to the position information of the user terminal and the corresponding position information when the idle card is released last time;
and determining the ratio of the card distribution distance to the idle time of the idle card as the risk coefficient of the idle card.
3. The SIM card distribution method according to claim 1, wherein if the server includes a plurality of idle cards with risk coefficients smaller than a first risk threshold, the distributing the idle cards with risk coefficients smaller than the first risk threshold to the user terminal includes:
judging whether idle cards with the risk coefficients smaller than a second risk threshold exist in the idle cards with the risk coefficients smaller than the first risk threshold; the second risk threshold is less than the first risk threshold;
and if the idle cards with the risk coefficients smaller than the second risk threshold exist in the idle cards with the risk coefficients smaller than the first risk threshold, allocating any idle card with the risk coefficient smaller than the second risk threshold to the user terminal.
4. The SIM card allocation method according to claim 3, wherein after the determining whether there is an idle card with a risk coefficient smaller than a second risk threshold in the idle cards with the risk coefficient smaller than a first risk threshold, the method includes:
if the idle cards with the risk coefficients smaller than the first risk threshold do not exist in the idle cards with the risk coefficients smaller than the second risk threshold, the idle cards with the risk coefficients smaller than the first risk threshold are sorted, and the idle card with the minimum risk coefficient in the idle cards with the risk coefficients smaller than the first risk threshold is allocated to the user terminal.
5. The SIM card allocation method according to any of claims 1 to 4, wherein after the calculating the risk factor of the free card according to the location information of the user terminal and the attribute information of the free card, the method comprises:
and if the server does not have an idle card with the risk coefficient smaller than the first risk threshold value, recalculating the risk coefficient of the idle card in the server.
6. The SIM card allocation method according to any of claims 1 to 4, wherein after allocating the idle card with the risk coefficient smaller than the first risk threshold to the user terminal, the method comprises:
obtaining SIM card release information sent by the user terminal;
and updating the SIM card state information stored in the database of the server according to the SIM card release information.
7. An apparatus for distributing SIM cards, applied to a server, the apparatus comprising:
a receiving unit, configured to receive an SIM card allocation request sent by a user terminal; the SIM card allocation request carries the position information of the user terminal;
the searching unit is used for searching the SIM card state information stored in the database of the server according to the SIM card distribution request and determining whether the server has an idle card;
the computing unit is used for acquiring the attribute information of the idle card if the server has the idle card, and computing the risk coefficient of the idle card according to the position information of the user terminal and the attribute information of the idle card; the attribute information of the idle card comprises corresponding position information when the idle card is released last time and idle duration of the idle card;
and the allocation unit is used for allocating the idle card with the risk coefficient smaller than a first risk threshold value to the user terminal.
8. The SIM card dispensing device of claim 7, wherein the SIM card dispensing device further comprises:
the updating unit is used for acquiring SIM card release information sent by the user terminal; and updating the SIM card state information stored in the database of the server according to the SIM card release information.
9. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1-6 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201911312209.0A 2019-12-18 2019-12-18 SIM card distribution method, device, server and computer readable storage medium Active CN112995909B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911312209.0A CN112995909B (en) 2019-12-18 2019-12-18 SIM card distribution method, device, server and computer readable storage medium
PCT/CN2020/132852 WO2021121019A1 (en) 2019-12-18 2020-11-30 Sim card allocation method and apparatus, server and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911312209.0A CN112995909B (en) 2019-12-18 2019-12-18 SIM card distribution method, device, server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112995909A true CN112995909A (en) 2021-06-18
CN112995909B CN112995909B (en) 2022-05-24

Family

ID=76344012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911312209.0A Active CN112995909B (en) 2019-12-18 2019-12-18 SIM card distribution method, device, server and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN112995909B (en)
WO (1) WO2021121019A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117641517A (en) * 2024-01-26 2024-03-01 深圳优克云联科技有限公司 Multifunctional SIM card and distribution method thereof, card distribution system and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114190916B (en) * 2021-12-07 2023-05-23 河南省儿童医院郑州儿童医院 Fabric sensor-based child respiration monitoring method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072602A (en) * 2015-07-14 2015-11-18 深圳市斯凯荣科技有限公司 SIM/USIM distribution system, and card distribution, card release and card switching methods thereof
CN105451356A (en) * 2014-06-23 2016-03-30 香港优克网络技术有限公司 Method and device for allocating SIM card resources
CN106488430A (en) * 2015-08-31 2017-03-08 中兴通讯股份有限公司 A kind of method processing virtual SIM card information, terminal and system
US20180109942A1 (en) * 2016-10-19 2018-04-19 David LIPOVKOV System and method for sim virtualization of sim and sim-less mobile terminals
CN109275135A (en) * 2018-09-27 2019-01-25 惠州Tcl移动通信有限公司 Choosing method, storage medium and the mobile terminal of virtual SIM card resource

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282701B (en) * 2015-09-06 2018-09-25 深圳优克云联科技有限公司 A kind of method, apparatus and system of Subscriber Identity Module distribution
CN105554728A (en) * 2015-12-10 2016-05-04 深圳市迪讯飞科技有限公司 Cloud SIM card pool system
CN105898735A (en) * 2016-03-24 2016-08-24 南京佰联信息技术有限公司 Method for obtaining SIM information and equipment
CN107071733B (en) * 2017-04-17 2020-08-04 上海途鸽数据科技有限公司 Virtual SIM card service support method and server, communication method and SIM card server and mobile equipment
CN107105427B (en) * 2017-04-28 2020-03-06 天津泰岳小漫科技有限公司 Communication method and device based on channel SIM card
CN108430059B (en) * 2018-03-19 2022-02-11 深圳市优克联新技术有限公司 Method, device and system for distributing user identification card and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105451356A (en) * 2014-06-23 2016-03-30 香港优克网络技术有限公司 Method and device for allocating SIM card resources
CN105072602A (en) * 2015-07-14 2015-11-18 深圳市斯凯荣科技有限公司 SIM/USIM distribution system, and card distribution, card release and card switching methods thereof
CN106488430A (en) * 2015-08-31 2017-03-08 中兴通讯股份有限公司 A kind of method processing virtual SIM card information, terminal and system
US20180109942A1 (en) * 2016-10-19 2018-04-19 David LIPOVKOV System and method for sim virtualization of sim and sim-less mobile terminals
CN109275135A (en) * 2018-09-27 2019-01-25 惠州Tcl移动通信有限公司 Choosing method, storage medium and the mobile terminal of virtual SIM card resource

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117641517A (en) * 2024-01-26 2024-03-01 深圳优克云联科技有限公司 Multifunctional SIM card and distribution method thereof, card distribution system and electronic equipment

Also Published As

Publication number Publication date
CN112995909B (en) 2022-05-24
WO2021121019A1 (en) 2021-06-24

Similar Documents

Publication Publication Date Title
US10897704B2 (en) Method of connecting a terminal device to network, a terminal device and a non-transitory computer readable storage medium
CN107105427B (en) Communication method and device based on channel SIM card
CN105139641A (en) WiFi relay station-based vehicle scheduling method and system
CN110611876B (en) Indoor asset management method, device and system
CN112995909B (en) SIM card distribution method, device, server and computer readable storage medium
CN109087089B (en) Payment method, payment device and terminal equipment
CN111066333A (en) Device capable of acquiring ESIM configuration file
CN110472216B (en) Method and device for determining field, storage medium and electronic device
CN112039861A (en) Risk identification method and device, electronic equipment and computer readable storage medium
CN109088949B (en) Matching method of Internet of things services and MME
CN109246280B (en) Address book cloud processing method and device, computer equipment and readable storage medium
CN112995985B (en) SIM card state information updating method and device and server
CN112995900B (en) SIM card distribution method, device, server and computer readable storage medium
CN109842482B (en) Information synchronization method, system and terminal equipment
CN108985729A (en) A kind of method and device of account charging
CN107180281B (en) Path planning optimization method, device and equipment for electric automobile
CN113194521B (en) Network searching method and device for 5G communication module, computer equipment and storage medium
CN111669765B (en) Network capacity expansion method and device, control equipment and storage medium
CN110717752B (en) Electronic resource processing method, device, server and readable storage medium
CN110493735B (en) Short message processing method and device
CN114461418A (en) Inter-process communication method and device and electronic equipment
CN115705476A (en) Information display method and device, electronic equipment and computer readable medium
CN109246686B (en) Multi-card user address book updating method and device based on cloud technology
CN103067850B (en) Mobile communication service cost inquiry method and device and system
EP3533662A1 (en) Method and electronic device for managing power supply devices

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40054551

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant