WO2021121019A1 - Sim card allocation method and apparatus, server and computer-readable storage medium - Google Patents

Sim card allocation method and apparatus, server and computer-readable storage medium Download PDF

Info

Publication number
WO2021121019A1
WO2021121019A1 PCT/CN2020/132852 CN2020132852W WO2021121019A1 WO 2021121019 A1 WO2021121019 A1 WO 2021121019A1 CN 2020132852 W CN2020132852 W CN 2020132852W WO 2021121019 A1 WO2021121019 A1 WO 2021121019A1
Authority
WO
WIPO (PCT)
Prior art keywords
idle
card
sim card
risk
user terminal
Prior art date
Application number
PCT/CN2020/132852
Other languages
French (fr)
Chinese (zh)
Inventor
刘珍慧
龚智辉
Original Assignee
深圳优克云联科技有限公司
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 深圳优克云联科技有限公司 filed Critical 深圳优克云联科技有限公司
Publication of WO2021121019A1 publication Critical patent/WO2021121019A1/en

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

Definitions

  • This application belongs to the field of SIM card technology, and in particular relates to a method, device, server, and computer-readable storage medium for allocating a SIM card.
  • SIM subscriber identity module, user identity module
  • a SIM (subscriber identity module, user identity module) card refers to a smart card used by a user terminal, which stores user identification data, authentication algorithms and keys, etc., which are used to perform operations on the user terminal before the user terminal accesses the communication network. Identification and authentication. If the user terminal uses a SIM card fixedly, problems such as poor signal and high roaming charges are likely to occur.
  • Cloud SIM card technology refers to the centralized storage and management of a large number of SIM cards on the server, and the sharing of SIM cards on different devices according to the real-time SIM card allocation method.
  • the SIM card may be called by different devices at a relatively long distance in a short period of time, causing the normal use of the SIM card to be misjudged by the operator as an abnormal use of the SIM card, which in turn causes the SIM card to be used abnormally.
  • the card was deactivated, causing losses to cloud card operators.
  • the embodiments of the present application provide a method, device, server, and computer-readable storage medium for allocating a SIM card, which can solve the problem that a normally used SIM card is misjudged by an operator as an abnormally used SIM card, thereby causing the SIM card to be disabled.
  • the first aspect of the embodiments of the present application provides a method for allocating a SIM card, which is applied to a server, and includes:
  • the SIM card allocation request carries location information of the user terminal
  • the attribute information of the idle card is acquired, and the risk factor of the idle card is calculated according to the location information of the user terminal and the attribute information of the idle card; wherein, the idle card
  • the attribute information of includes the corresponding location information when the idle card was released last time, and the idle duration of the idle card;
  • the second aspect of the embodiments of the present application provides a SIM card allocating device, which is configured in a server and includes:
  • a receiving unit configured to receive a SIM card allocation request sent by a user terminal; the SIM card allocation request carries location information of the user terminal;
  • the searching unit is configured to search the SIM card status information stored in the database of the server according to the SIM card allocation request, and determine whether there is an idle card in the server;
  • the calculating unit is configured to obtain the attribute information of the idle card if there is an idle card in the server, and calculate the risk factor of the idle card according to the location information of the user terminal and the attribute information of the idle card; wherein ,
  • the attribute information of the idle card includes the corresponding location information when the idle card was released last time, and the idle time length of the idle card;
  • the allocation unit is configured to allocate idle cards with the risk coefficient less than the first risk threshold 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 capable of running on the processor, and the processor implements the above method when the computer program is executed. A step of.
  • the fourth aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the foregoing method are implemented.
  • the embodiments of the present application provide a computer program product, which when the computer program product runs on a terminal device, enables the terminal device to execute the steps of the method.
  • the server by searching the SIM card status information stored in the database of the server according to the received SIM card allocation request sent by the user terminal, it is determined whether the server has an idle card, and when the server has an idle card, Calculate the risk coefficient of the idle card according to the location information of the user terminal and the attribute information of the idle card; then, allocate idle cards with a risk coefficient less than the first risk threshold to the user terminal; because the risk coefficient is based on The location information of the user terminal, the corresponding location information when the idle card was released last time, and the idle time of the idle card are calculated. Therefore, the risk factor can indicate the occurrence of different devices where the SIM card is located at a relatively long distance in a short period of time.
  • the possibility of calling problems, and the first risk threshold can be set to the maximum risk value that the operator can accept for the SIM card to be called by different devices at a relatively long distance in a short time, so that the risk factor is less than the first risk.
  • the SIM card allocated to the user terminal is a SIM card within the risk range acceptable to the operator, which solves the problem that the normal SIM card is misjudged by the operator as an abnormally used SIM card The problem.
  • 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 diagram of the first implementation process of a method for allocating a SIM card provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of an implementation process of calculating the risk coefficient of an idle card provided by an embodiment of the present application
  • FIG. 4 is a schematic diagram of a second implementation flow of a method for allocating a SIM card provided by an embodiment of the present application
  • FIG. 5 is a schematic diagram of a third implementation flow of a method for allocating a SIM card according to an embodiment of the present application
  • FIG. 6 is a schematic diagram of a fourth implementation process of a method for allocating a SIM card according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of the first implementation process of updating the status of the SIM card provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a SIM card allocating device provided by an embodiment of the present application.
  • Fig. 9 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • SIM subscriber identity module, user identity module
  • a SIM (subscriber identity module, user identity module) card refers to a smart card used by a user terminal, which stores user identification data, authentication algorithms and keys, etc., which are used to perform operations on the user terminal before the user terminal accesses the communication network. Identification and authentication. If the user terminal uses a SIM card fixedly, problems such as poor signal and high roaming charges are likely to occur.
  • Cloud SIM card technology refers to the centralized storage and management of a large number of SIM cards on the server, and the sharing of SIM cards on different devices according to the real-time SIM card allocation method.
  • the SIM card may be called by different devices at a relatively long distance in a short period of time, causing the normal use of the SIM card to be misjudged by the operator as an abnormal use of the SIM card, which in turn causes the SIM card to be used abnormally.
  • the card was deactivated, causing losses to cloud card operators.
  • a SIM card has just been allocated to a user terminal in Shenzhen and registered with the Shenzhen Mobile Network; 1 minute later, the card is allocated to a user terminal in Beijing and registered with the Beijing Mobile Network. Under normal circumstances, it is impossible for a user terminal to move from Shenzhen to Beijing within 1 minute. Therefore, the operator will misjudge the normally used SIM card as an abnormally used SIM card and disable the SIM card.
  • the embodiments of the present application provide a method, device, server, and computer-readable storage medium for allocating a SIM card, which can solve the problem that a normally used SIM card is misjudged by an operator as an abnormally used SIM card, thereby causing the SIM card to be misused. Deactivation, technical problems that bring losses to cloud card operators.
  • Fig. 1 shows a schematic diagram of interaction between a user terminal and a server provided in an embodiment of the present application.
  • the user terminal 11 can send a SIM card allocation request to the server 13 through a mobile communication network or other network (for example: WIFI network) 12; after receiving the SIM card allocation request sent by the user terminal 11, the server 13 can use the SIM card provided by this application
  • the card allocation method allocates a SIM card to the user terminal 11; after the SIM card is successfully allocated, the user terminal 11 can register the network with the operator, and then access the communication network.
  • the above-mentioned user terminal 11 may include a device capable of using a cloud SIM card, and the device may download the information of the SIM card allocated by the server and complete the authentication of the operator, and then access the communication network.
  • the aforementioned server 13 may include a card carrying device 131, a database 132, and a SIM card dispatching system 133; wherein the card carrying device 131 is a carrier device of a SIM card, which is used to read SIM card information and upload the SIM card information to the database 132;
  • the database 132 is used to manage the status of the SIM card, store basic information of the SIM card, store package flow billing information, record historical SIM card allocation information, etc.; the SIM card dispatch system 133 is used to allocate and dispatch SIM cards.
  • FIG 2 shows a schematic diagram of the implementation process of a method for allocating a SIM card provided by an embodiment of the present application.
  • the method can be applied to the server shown in Figure 1 and executed by the SIM card allocating device configured on the server, and is suitable for It is necessary to solve the technical problem that the normal used SIM card is misjudged by the operator as an abnormally used SIM card, which causes the SIM card to be deactivated and brings losses to the cloud card operator.
  • the SIM card allocation method may include step 201 to step 204.
  • Step 201 Receive a SIM card allocation request sent by a user terminal.
  • the aforementioned SIM card allocation request carries the location information of the user terminal; the location information may include the latitude and longitude information of the user terminal or the location information of the base station.
  • the user terminal when the user terminal sends a SIM card allocation request to the server through the base station, if the user terminal supports the Global Positioning System (GPS), the user terminal's longitude and latitude information can be obtained through the global positioning system and stored in the SIM card.
  • the allocation request carries the longitude and latitude information of the user terminal; if the user terminal does not support the Global Positioning System (GPS), the location information of the base station can be obtained during the network search of the user terminal, and the SIM card allocation request Carry the location information of the base station.
  • GPS Global Positioning System
  • the location information of the above base station may include the mobile device network code (Mobile Network Code, MNC), the mobile country code (Mobile Country Code, MCC), the location area code (Location Area Code, LAC), and the cell code (Cell ID).
  • MNC Mobile Network Code
  • MCC Mobile Country Code
  • LAC Location Area Code
  • Cell ID Cell ID
  • the server may include: determining whether the SIM card allocation request carries the location information of the base station; if the SIM card allocation request carries the location information of the base station , The latitude and longitude information of the user terminal can be obtained according to the location information of the base station.
  • SIM card allocation request may also carry other information such as the country information of the requested sub-card, and the time information of the requested sub-card, which is not limited in this application.
  • Step 202 Search the SIM card status information stored in the database of the server according to the SIM card allocation request, and determine whether there is an idle card in the server.
  • the database of the aforementioned server stores SIM card status information, and the SIM card status information indicates the current use status of the SIM card; for example, when the SIM card is allocated to the user terminal and has not been released, The SIM card is a non-idle card in a non-idle state; when the SIM card is not allocated to a user terminal, the SIM card is an idle card in an idle state.
  • the server can look up the SIM card status information stored in the server’s database according to the SIM card allocation request to determine whether the server has an idle card, and if the server does not have an idle card, it can send to the user terminal There is no card-divided information.
  • the user terminal can resend the SIM card allocation request, or the server can directly re-query the SIM card status information stored in the server’s database until the server has an idle card; if the server exists With an idle card, the risk factor of the idle card can be calculated to complete the allocation of the SIM card to the user terminal.
  • the above-mentioned searching for the SIM card status information stored in the database of the server according to the SIM card allocation request may further include: According to the requested sub-card country information in the SIM card allocation request, search for the SIM card status information of the SIM card corresponding to the requested sub-card country information stored in the database of the server, and determine whether the server has an idle state corresponding to the requested sub-card country information Card, and then allocate idle cards corresponding to that country to different countries.
  • Step 203 If there is an idle card in the server, the attribute information of the idle card is obtained, and the risk factor of the idle card is calculated according to the location information of the user terminal and the attribute information of the idle card.
  • the above-mentioned attribute information of the idle card may include the corresponding location information when the idle card was released last time, and the idle time length of the idle card.
  • the foregoing calculation of 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 Calculate the card splitting distance corresponding to the idle card according to the location information of the user terminal and the corresponding location information when the idle card was released last time.
  • the location information corresponding to the last time the idle card was released may include the latitude and longitude information corresponding to the last time the idle card was released.
  • the foregoing calculation of the sub-card distance corresponding to the idle card according to the location information of the user terminal and the corresponding location information when the idle card was released last time may include: according to the longitude and latitude information of the user terminal and the corresponding longitude and latitude when the idle card was released last time The information calculates the card distance corresponding to the idle card.
  • D represents the sub-card distance corresponding to the idle card
  • Lung1, Lat1 represent the longitude and latitude of the user terminal
  • Lung2, Lat2 represent the corresponding longitude and latitude when the idle card was released last time
  • a represents the user terminal's corresponding longitude and latitude
  • b represents the difference between the longitude of the user terminal and the corresponding longitude when the idle card was released last time
  • Shormin represents the radius of the earth.
  • Step 302 Determine the ratio of the card splitting distance to the idle time length of the idle card as the risk factor of the idle card.
  • R represents the risk coefficient of the idle card
  • D represents the distance to the card
  • T represents the idle time of the idle card
  • the attribute information of the idle card may also include time information corresponding to the last time the idle card was released. At this time, the idle time of the idle card may be divided according to the requested time in the SIM card allocation request. The information is calculated from the corresponding time information when the idle card was released last time.
  • the greater the ratio of the card distance to the idle time of the idle card that is, the greater the risk factor of the idle card, the shorter the interval between two uses of the SIM card and the larger the interval distance.
  • the allocation of an idle card to a user terminal is more likely to cause the problem that the SIM card is called by different devices at a relatively long distance in a short time; the smaller the ratio of the sub-card distance to the idle time of the idle card, the smaller the risk factor of the idle card, It means that the longer the interval between the two uses of the SIM card, the shorter the distance. Therefore, the allocation of the idle card to the user terminal is less likely to cause the problem that the SIM card is called by different devices at a relatively long distance in a short time. .
  • Step 204 Allocate idle cards with risk coefficients less than the first risk threshold to the user terminal.
  • the first risk threshold is the maximum risk value that the operator can accept when the SIM card is called by different devices at a relatively long distance in a short time. Therefore, an idle card with a risk coefficient less than the first risk threshold is allocated to the user In the terminal, the SIM card allocated to the user terminal can be a SIM card within the risk range acceptable to the operator, thereby solving the problem that the normally used SIM card is misjudged by the operator as an abnormally used SIM card.
  • the server can adjust the first risk threshold according to the needs of different countries or different operators.
  • the server by searching the SIM card status information stored in the database of the server according to the received SIM card allocation request sent by the user terminal, it is determined whether the server has an idle card, and when the server has an idle card, Calculate the risk coefficient of the idle card according to the location information of the user terminal and the attribute information of the idle card; then, allocate idle cards with a risk coefficient less than the first risk threshold to the user terminal; because the risk coefficient is based on The location information of the user terminal, the corresponding location information when the idle card was released last time, and the idle time of the idle card are calculated. Therefore, the risk factor can indicate the occurrence of different devices where the SIM card is located at a relatively long distance in a short period of time.
  • the possibility of calling problems, and the first risk threshold can be set to the maximum risk value that the operator can accept for the SIM card to be called by different devices at a relatively long distance in a short time, so that the risk factor is less than the first risk.
  • the SIM card allocated to the user terminal is a SIM card within the risk range acceptable to the operator, which solves the problem that the normal SIM card is misjudged by the operator as an abnormally used SIM card The problem.
  • the idle cards with a risk coefficient less than the first risk threshold there may be idle cards with a risk coefficient less than the second risk threshold. These idle cards are considered by the operator to appear that the SIM card is damaged in a short period of time. The risk of calling different devices at a longer distance is very low or even zero. Therefore, if there is an idle card with a risk coefficient less than the second risk threshold, you can directly select any idle card with a risk coefficient less than the second risk threshold. Assigned to the user terminal.
  • the foregoing step 204 may specifically include: step 401 to step 402.
  • Step 401 Determine whether there is an idle card with a risk coefficient less than a second risk threshold among idle cards with a risk coefficient less than a first risk threshold.
  • the above-mentioned second risk threshold is less than the first risk threshold.
  • Step 402 If there are idle cards with a risk coefficient less than the second risk threshold among the idle cards with a risk coefficient less than the first risk threshold, assign any idle card with a risk coefficient less than the second risk threshold to the user terminal.
  • the idle card with a risk coefficient less than the second risk threshold is an idle card that the operator believes that the SIM card will be called by different devices at a relatively long distance in a short period of time, the risk is very small or even zero. Therefore, assigning any idle card with a risk coefficient less than the second risk threshold to the user terminal can avoid the problem that the SIM card is called by different devices at a relatively long distance in a short time. It should be noted that in the process of SIM card allocation, the allocation priority of idle cards with a risk coefficient less than the second risk threshold is the same and the highest. As long as there are idle cards with a risk coefficient less than the second risk threshold, you can Priority is given to assigning any idle card with a risk coefficient less than the second risk threshold to the user terminal.
  • the risk coefficient is less than the first risk threshold idle card (that is, the risk coefficient is less than the first risk threshold and greater than the first risk threshold).
  • Idle card with risk threshold is an idle card considered by the operator that there is a risk that the SIM card will be called by different devices at a relatively long distance in a short time, but the risk can be accepted by the operator. Therefore, the risk can be selected The user terminal assigned to the idle card with the smallest coefficient minimizes the SIM card being called by different devices at a relatively long distance in a short period of time.
  • step 401 it may further include: step 403.
  • Step 403 If there is no idle card with a risk coefficient less than the second risk threshold among the idle cards with a risk coefficient less than the first risk threshold, sort the idle cards with a risk coefficient less than the first risk threshold, and rank the idle cards with a risk coefficient less than the first risk threshold. Among the idle cards with the risk threshold, the idle card with the smallest risk coefficient is allocated to the user terminal.
  • the risk coefficient is less than the first risk.
  • the smaller the risk coefficient the higher the priority assigned. Therefore, the idle cards with a risk coefficient less than the first risk threshold can be sorted, and the idle cards with a risk coefficient less than the first risk threshold can be sorted The idle card with the smallest risk factor is allocated to the user terminal.
  • For idle cards with a risk threshold assign any idle card with a risk coefficient less than the second risk threshold to the user terminal; if there is no idle card with a risk coefficient less than the second risk threshold among the idle cards with a risk coefficient less than the first risk threshold, Then sort the idle cards with a risk coefficient less than the first risk threshold, and allocate the idle card with the smallest risk coefficient among the idle cards with a risk coefficient less than the first risk threshold to the user terminal; so that the SIM card allocated to the user terminal is in operation
  • the server does not have a SIM card that can be allocated to the user terminal. At this time, the server can send a message that there is no card can be divided to the user terminal, and end the SIM card distribution. In the process of SIM card allocation, a new idle card may appear, such as a SIM card that has just been released. Therefore, in order to improve the success rate of SIM card allocation, in some embodiments of the present application, if there is no risk factor less than For an idle card with the first risk threshold, the server can re-search for a card that can be allocated for SIM card allocation. Specifically, as shown in FIG. 6, step 601 to step 604 can be included.
  • Step 601 Receive a SIM card allocation request sent by a user terminal.
  • the aforementioned SIM card allocation request carries the location information of the user terminal
  • Step 602 Search the SIM card status information stored in the database of the server according to the SIM card allocation request, and determine whether there is an idle card in the server.
  • step 603 if there is an idle card in the server, the attribute information of the idle card is obtained, and the risk factor of the idle card is calculated according to the location information of the user terminal and the attribute information of the idle card.
  • the attribute information of the idle card includes the corresponding location information when the idle card was released last time, and the idle time length of the idle card.
  • Step 604 If there is no idle card with a risk coefficient less than the first risk threshold in the server, recalculate the risk coefficient of the idle card in the server.
  • the risk coefficient of the idle card in the server can be calculated again, if there is an idle card with a risk coefficient less than the first risk threshold , And allocate an idle card with a risk coefficient less than the first risk threshold to the user terminal; if there is no idle card with a risk coefficient less than the first risk threshold, recalculate the risk coefficient of the idle card in the server until the risk coefficient is less than Idle card with the first risk threshold.
  • the risk coefficient of the idle card in the server is recalculated until an idle card with a risk coefficient less than the first risk threshold appears, so that the The SIM card for the user terminal is in an idle state, and the SIM card with the lowest possibility of being called by different devices at a long distance within a short time within the acceptable risk range of the operator, while improving the allocation of the SIM card Success rate.
  • the server may also receive SIM card release information sent by the user terminal, and update the status of the SIM card. Specifically, as shown in FIG. 7, it includes: step 701 to step 702.
  • Step 701 Acquire SIM card release information sent by the user terminal.
  • Step 702 Update the SIM card status information stored in the database of the server according to the SIM card release information.
  • SIM card release information may include information such as SIM card ownership organization information, user terminal equipment identification information, allocation country information, release time information, and release location information.
  • updating the SIM card status 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, and according to the The release time information in the SIM card release information determines the idle duration of the idle card, and the location information corresponding to the last time the idle card was released is determined according to the release location information in the SIM card release information.
  • the user terminal can release the SIM card.
  • the SIM card will re-enter the idle state and can be allocated to the user terminal again by the server. Therefore, the user terminal can Send the SIM card release information to the server; after obtaining the SIM card release information sent by the user terminal, the server can update the SIM card status information stored in the server’s database according to the SIM card release information to update the status of the SIM card to facilitate this The next allocation of the SIM card.
  • FIG. 8 is a schematic structural diagram of a SIM card allocating device 800 configured on a server according to an embodiment of the application.
  • the SIM card allocating device 800 may include: a receiving unit 801, a searching unit 802, a calculating unit 803, and an allocating unit 804.
  • the receiving unit 801 is configured to receive a SIM card allocation request sent by a user terminal; the SIM card allocation request carries location information of the user terminal;
  • the searching unit 802 is configured to search the SIM card status information stored in the database of the server according to the SIM card allocation request, and determine whether there is an idle card in the server;
  • the calculating unit 803 is configured to obtain the attribute information of the idle card if there is an idle card in the server, and calculate the risk coefficient of the idle card according to the location information of the user terminal and the attribute information of the idle card; Wherein, the attribute information of the idle card includes the corresponding location information when the idle card was released last time, and the idle time length of the idle card;
  • the allocating unit 804 is configured to allocate idle cards with the risk coefficient less than the first risk threshold to the user terminal.
  • the calculation unit 802 is further specifically configured to:
  • the ratio of the distance of the sub-card to the idle duration of the idle card is determined as the risk coefficient of the idle card.
  • the allocating unit 804 is further specifically configured to:
  • any idle card with a risk coefficient less than the second risk threshold is allocated to the user terminal.
  • the idle card with the smallest risk coefficient is allocated to the user terminal.
  • the risk coefficient of the idle card in the server is recalculated.
  • the SIM card allocating device may further include an update unit, configured to:
  • the server 9 may include a processor 90, a memory 91, and a computer program 92 stored in the memory 91 and running on the processor 90, such as a SIM card allocation program.
  • the processor 90 executes the computer program 92, the steps in the foregoing embodiments of the SIM card allocation method are implemented, for example, steps 201 to 204 shown in FIG. 2.
  • the processor 90 executes the computer program 92, the functions of the modules/units in the foregoing device embodiments, for example, the functions of the units 801 to 804 shown in FIG. 8 are realized.
  • the computer program may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 91 and executed by the processor 90 to complete the application.
  • the one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the server.
  • the computer program can be divided into a receiving unit, a search unit, a calculation unit, and an allocation unit.
  • each unit is used to receive a SIM card allocation request sent by a user terminal; the SIM card allocation request carries The location information of the user terminal; a searching unit for searching the SIM card status information stored in the database of the server according to the SIM card allocation request, and determining whether there is an idle card in the server; a computing unit, for determining whether the server has an idle card; If there is an idle card in the server, the attribute information of the idle card is acquired, and the risk factor of the idle card is calculated according to the location information of the user terminal and the attribute information of the idle card; wherein, the attribute of the idle card The information includes the location information corresponding to the last time the idle card was released, and the idle time length of the idle card; the allocation unit is configured to allocate the idle card with the risk coefficient less than the first risk threshold 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 and a memory 91.
  • FIG. 9 is only an example of a server, and does not constitute a limitation on the server. It may include more or less components than those shown in the figure, or a combination of certain components, or different components, such as the
  • the server may also include input and output devices, network access devices, buses, and so on.
  • the so-called processor 90 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital SIM card distributors (Digital Signal Processor, DSP), and Application Specific Integrated Circuits (ASIC) , Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 91 may be an internal storage unit of the server, such as a hard disk or memory of the server.
  • the memory 91 may also be an external storage device of the server, such as a plug-in hard disk equipped on the server, a smart memory card (Smart Media Card, SMC), a Secure Digital (SD) card, and a flash memory card. (Flash Card) and so on.
  • the storage 91 may also include both an internal storage unit of the server and an external storage device.
  • the memory 91 is used to store the computer program and other programs and data required by the server.
  • the memory 91 can also be used to temporarily store data that has been output or will be output.
  • the disclosed device/server and method may be implemented in other ways.
  • the device/server embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or Components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the present application implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through a computer program.
  • the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, it can implement the steps of the foregoing method embodiments.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (Read-Only Memory, ROM) , Random Access Memory (RAM), electrical carrier signal, telecommunications signal, and software distribution media, etc.
  • the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction.
  • the computer-readable medium Does not include electrical carrier signals and telecommunication signals.

Abstract

The present application is applicable to the technical field of SIM cards. Provided are a SIM card allocation method and apparatus, a server and a computer-readable storage medium. The SIM card allocation method is applied to a server, and comprises: receiving a SIM card allocation request sent by a user terminal; searching for, according to the SIM card allocation request, SIM card state information stored in a database of the server to determine whether the server has idle cards; if the server has idle cards, obtaining attribute information of the idle cards, and calculating risk coefficients of the idle cards according to location information of the user terminal and the attribute information of the idle cards; and allocating an idle card having a risk coefficient of less than a first risk threshold to the user terminal. The technical problem of loss to a cloud card operator caused by the deactivation of an SIM card due to that the normally used SIM card is misjudged by the operator as an abnormally used SIM card.

Description

一种SIM卡分配方法、装置、服务器和计算机可读存储介质SIM card allocation method, device, server and computer readable storage medium
本申请要求于2019年12月18日在中国专利局提交的、申请号为201911312209.0的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with application number 201911312209.0 filed at the Chinese Patent Office on December 18, 2019, the entire content of which is incorporated into this application by reference.
技术领域Technical field
本申请属于SIM卡技术领域,尤其涉及一种SIM卡分配方法、装置、服务器和计算机可读存储介质。This application belongs to the field of SIM card technology, and in particular relates to a method, device, server, and computer-readable storage medium for allocating a SIM card.
背景技术Background technique
SIM(subscriber identity module,用户身份模块)卡是指用户终端所使用的智能卡,其中存储有用户身份识别数据、鉴权算法及密钥等,用来在用户终端接入通讯网络前对用户终端进行识别和鉴权。若用户终端固定使用一张SIM卡,很容易出现信号差、漫游费用高等问题。A SIM (subscriber identity module, user identity module) card refers to a smart card used by a user terminal, which stores user identification data, authentication algorithms and keys, etc., which are used to perform operations on the user terminal before the user terminal accesses the communication network. Identification and authentication. If the user terminal uses a SIM card fixedly, problems such as poor signal and high roaming charges are likely to occur.
为了解决这些问题,云SIM卡技术应运而生。云SIM卡技术是指通过在服务器上集中存储和管理大量SIM卡,并根据实时的SIM卡分配方法实现SIM卡在不同设备上的共享使用。In order to solve these problems, cloud SIM card technology came into being. Cloud SIM card technology refers to the centralized storage and management of a large number of SIM cards on the server, and the sharing of SIM cards on different devices according to the real-time SIM card allocation method.
然而,在传统的云SIM卡技术中,SIM卡可能在短时间内被处于较远距离的不同设备调用,导致正常使用的SIM卡被运营商误判为异常使用的SIM卡,进而导致该SIM卡被停用,给云卡运营商带来损失。However, in the traditional cloud SIM card technology, the SIM card may be called by different devices at a relatively long distance in a short period of time, causing the normal use of the SIM card to be misjudged by the operator as an abnormal use of the SIM card, which in turn causes the SIM card to be used abnormally. The card was deactivated, causing losses to cloud card operators.
技术问题technical problem
本申请实施例提供一种SIM卡分配方法、装置、服务器和计算机可读存储介质,可以解决正常使用的SIM卡被运营商误判为异常使用的SIM卡,进而导致该SIM卡被停用,给云卡运营商带来损失的技术问题。The embodiments of the present application provide a method, device, server, and computer-readable storage medium for allocating a SIM card, which can solve the problem that a normally used SIM card is misjudged by an operator as an abnormally used SIM card, thereby causing the SIM card to be disabled. Technical problems that bring losses to cloud card operators.
技术解决方案Technical solutions
本申请实施例第一方面提供一种SIM卡分配方法,应用于服务器,包括:The first aspect of the embodiments of the present application provides a method for allocating a SIM card, which is applied to a server, and includes:
接收用户终端发送的SIM卡分配请求;所述SIM卡分配请求携带所述用户终端的位置信息;Receiving a SIM card allocation request sent by a user terminal; the SIM card allocation request carries location information of the user terminal;
根据所述SIM卡分配请求查找所述服务器的数据库中存储的SIM卡状态信息,确定所述服务器是否存在空闲卡;Searching the SIM card status information stored in the database of the server according to the SIM card allocation request, and determining whether there is an idle card in the server;
若所述服务器存在空闲卡,则获取所述空闲卡的属性信息,并根据所述用户终端的位置信息以及所述空闲卡的属性信息计算所述空闲卡的风险系数;其中,所述空闲卡的属性信息包括所述空闲卡上一次被释放时对应的位置信息,以及所述空闲卡的空闲时长;If there is an idle card in the server, the attribute information of the idle card is acquired, and the risk factor of the idle card is calculated according to the location information of the user terminal and the attribute information of the idle card; wherein, the idle card The attribute information of includes the corresponding location information when the idle card was released last time, and the idle duration of the idle card;
将所述风险系数小于第一风险阈值的空闲卡分配给所述用户终端。Allocating idle cards with the risk coefficient less than the first risk threshold to the user terminal.
本申请实施例第二方面提供的一种SIM卡分配装置,配置于服务器,包括:The second aspect of the embodiments of the present application provides a SIM card allocating device, which is configured in a server and includes:
接收单元,用于接收用户终端发送的SIM卡分配请求;所述SIM卡分配请求携带所述用户终端的位置信息;A receiving unit, configured to receive a SIM card allocation request sent by a user terminal; the SIM card allocation request carries location information of the user terminal;
查找单元,用于根据所述SIM卡分配请求查找所述服务器的数据库中存储的SIM卡状态信息,确定所述服务器是否存在空闲卡;The searching unit is configured to search the SIM card status information stored in the database of the server according to the SIM card allocation request, and determine whether there is an idle card in the server;
计算单元,用于若所述服务器存在空闲卡,则获取所述空闲卡的属性信息,并根据所述用户终端的位置信息以及所述空闲卡的属性信息计算所述空闲卡的风险系数;其中,所述空闲卡的属性信息包括所述空闲卡上一次被释放时对应的位置信息,以及所述空闲卡的空闲时长;The calculating unit is configured to obtain the attribute information of the idle card if there is an idle card in the server, and calculate the risk factor of the idle card according to the location information of the user terminal and the attribute information of the idle card; wherein , The attribute information of the idle card includes the corresponding location information when the idle card was released last time, and the idle time length of the idle card;
分配单元,用于将所述风险系数小于第一风险阈值的空闲卡分配给所述用户终端。The allocation unit is configured to allocate idle cards with the risk coefficient less than the first risk threshold 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 capable of running on the processor, and the processor implements the above method when the computer program is executed. A step of.
本申请实施例第四方面提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述方法的步骤。The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the foregoing method are implemented.
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行时实现方法的步骤。In the fifth aspect, the embodiments of the present application provide a computer program product, which when the computer program product runs on a terminal device, enables the terminal device to execute the steps of the method.
有益效果Beneficial effect
本申请实施例中,通过根据接收到的用户终端发送的SIM卡分配请求查找所述服务器的数据库中存储的SIM卡状态信息,确定服务器是否存在空闲卡,并在所述服务器存在空闲卡时,根据所述用户终端的位置信息以及所述空闲卡的属性信息计算所述空闲卡的风险系数;然后,将风险系数小于第一风险阈值的空闲卡分配给所述用户终端;由于风险系数是根据用户终端的位置信息、空闲卡上一次被释放时对应的位置信息,以及空闲卡的空闲时长计算得到的,因此,该风险系数可以表示发生SIM卡在短时间内被处于较远距离的不同设备调用问题的可能性,并且可以通过将第一风险阈值设置为运营商能够接受的发生SIM卡在短时间内被处于较远距离的不同设备调用风险的最大风险值,使得在将风险系数小于第一风险阈值的空闲卡分配给用户终端时,分配给用户终端的SIM卡是运营商可以接受的风险范围内的SIM卡,解决了正常使用的SIM卡被运营商误判为异常使用的SIM卡的问题。In the embodiment of the present application, by searching the SIM card status information stored in the database of the server according to the received SIM card allocation request sent by the user terminal, it is determined whether the server has an idle card, and when the server has an idle card, Calculate the risk coefficient of the idle card according to the location information of the user terminal and the attribute information of the idle card; then, allocate idle cards with a risk coefficient less than the first risk threshold to the user terminal; because the risk coefficient is based on The location information of the user terminal, the corresponding location information when the idle card was released last time, and the idle time of the idle card are calculated. Therefore, the risk factor can indicate the occurrence of different devices where the SIM card is located at a relatively long distance in a short period of time. The possibility of calling problems, and the first risk threshold can be set to the maximum risk value that the operator can accept for the SIM card to be called by different devices at a relatively long distance in a short time, so that the risk factor is less than the first risk. When an idle card with a risk threshold is allocated to a user terminal, the SIM card allocated to the user terminal is a SIM card within the risk range acceptable to the operator, which solves the problem that the normal SIM card is misjudged by the operator as an abnormally used SIM card The problem.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所 需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only of the present application. For some embodiments, for those of ordinary skill in the art, other drawings may be obtained based on these drawings without creative labor.
图1是本申请实施例提供的用户终端与服务器的交互示意图;FIG. 1 is a schematic diagram of interaction between a user terminal and a server according to an embodiment of the present application;
图2是本申请实施例提供的一种SIM卡分配方法的第一实现流程示意图;2 is a schematic diagram of the first implementation process of a method for allocating a SIM card provided by an embodiment of the present application;
图3是本申请实施例提供的计算空闲卡的风险系数的实现流程示意图;FIG. 3 is a schematic diagram of an implementation process of calculating the risk coefficient of an idle card provided by an embodiment of the present application;
图4是本申请实施例提供的一种SIM卡分配方法的第二实现流程示意图;4 is a schematic diagram of a second implementation flow of a method for allocating a SIM card provided by an embodiment of the present application;
图5是本申请实施例提供的一种SIM卡分配方法的第三实现流程示意图;FIG. 5 is a schematic diagram of a third implementation flow of a method for allocating a SIM card according to an embodiment of the present application;
图6是本申请实施例提供的一种SIM卡分配方法的第四实现流程示意图;FIG. 6 is a schematic diagram of a fourth implementation process of a method for allocating a SIM card according to an embodiment of the present application;
图7是本申请实施例提供的更新SIM卡的状态的第一实现流程示意图;FIG. 7 is a schematic diagram of the first implementation process of updating the status of the SIM card provided by an embodiment of the present application;
图8是本申请实施例提供的一种SIM卡分配装置的结构示意图;FIG. 8 is a schematic structural diagram of a SIM card allocating device provided by an embodiment of the present application;
图9是本申请实施例提供的服务器的结构示意图。Fig. 9 is a schematic structural diagram of a server provided by an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions, and advantages of this application clearer and clearer, the following further describes the application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not used to limit the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of the present application.
SIM(subscriber identity module,用户身份模块)卡是指用户终端所使用的智能卡,其中存储有用户身份识别数据、鉴权算法及密钥等,用来在用户终端接入通讯网络前对用户终端进行识别和鉴权。若用户终端固定使用一张SIM卡,很容易出现信号差、漫游费用高等问题。A SIM (subscriber identity module, user identity module) card refers to a smart card used by a user terminal, which stores user identification data, authentication algorithms and keys, etc., which are used to perform operations on the user terminal before the user terminal accesses the communication network. Identification and authentication. If the user terminal uses a SIM card fixedly, problems such as poor signal and high roaming charges are likely to occur.
为了解决这些问题,云SIM卡技术应运而生。云SIM卡技术是指通过在服务器上集中存储和管理大量SIM卡,并根据实时的SIM卡分配方法实现SIM卡在不同设备上的共享使用。In order to solve these problems, cloud SIM card technology came into being. Cloud SIM card technology refers to the centralized storage and management of a large number of SIM cards on the server, and the sharing of SIM cards on different devices according to the real-time SIM card allocation method.
然而,在传统的云SIM卡技术中,SIM卡可能在短时间内被处于较远距离的不同设备调用,导致正常使用的SIM卡被运营商误判为异常使用的SIM卡,进而导致该SIM卡被停用,给云卡运营商带来损失。However, in the traditional cloud SIM card technology, the SIM card may be called by different devices at a relatively long distance in a short period of time, causing the normal use of the SIM card to be misjudged by the operator as an abnormal use of the SIM card, which in turn causes the SIM card to be used abnormally. The card was deactivated, causing losses to cloud card operators.
例如,一张SIM卡刚刚分配给深圳的一个用户终端使用,并注册深圳移动网络;1分钟后,该卡又被分配给了北京的一个用户终端使用,并注册北京移动网络。正常情况下,一个用户终端在1分钟内不可能从深圳移动到北京,因此,运营商将误判该正常使用的SIM卡为异常使用的SIM卡,并停用该SIM卡。For example, a SIM card has just been allocated to a user terminal in Shenzhen and registered with the Shenzhen Mobile Network; 1 minute later, the card is allocated to a user terminal in Beijing and registered with the Beijing Mobile Network. Under normal circumstances, it is impossible for a user terminal to move from Shenzhen to Beijing within 1 minute. Therefore, the operator will misjudge the normally used SIM card as an abnormally used SIM card and disable the SIM card.
基于此,本申请实施例提供一种SIM卡分配方法、装置、服务器和计算机可读存储介质,可以解决正常使用的SIM卡被运营商误判为异常使用的SIM卡,进而导致该SIM卡被停用,给云卡运营商带来损失的技术问题。Based on this, the embodiments of the present application provide a method, device, server, and computer-readable storage medium for allocating a SIM card, which can solve the problem that a normally used SIM card is misjudged by an operator as an abnormally used SIM card, thereby causing the SIM card to be misused. Deactivation, technical problems that bring losses to cloud card operators.
为了说明本申请的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solution of the present application, specific embodiments are used for description below.
如图1示出了本申请实施例提供的用户终端与服务器的交互示意图。用户终端11可以通过移动通信网络或其他网络(例如:WIFI网络)12向服务器13发送SIM卡分配请求;服务器13在接收到用户终端11发送的SIM卡分配请求之后,可以根据本申请提供的SIM卡分配方法向用户终端11分配SIM卡;SIM卡分配成功后,用户终端11可以向运营商注册网络,进而接入通讯网络。Fig. 1 shows a schematic diagram of interaction between a user terminal and a server provided in an embodiment of the present application. The user terminal 11 can send a SIM card allocation request to the server 13 through a mobile communication network or other network (for example: WIFI network) 12; after receiving the SIM card allocation request sent by the user terminal 11, the server 13 can use the SIM card provided by this application The card allocation method allocates a SIM card to the user terminal 11; after the SIM card is successfully allocated, the user terminal 11 can register the network with the operator, and then access the communication network.
具体的,上述用户终端11可以包括能够使用云SIM卡的设备,该设备可以下载由服务器分配的SIM卡的信息并完成运营商的鉴权,进而接入通讯网络。上述服务器13可以包括载卡设备131、数据库132以及SIM卡调度系统133;其中,载卡设备131为SIM卡的载体设备,用于读取SIM卡信息,并将SIM卡信息上传到数据库132;数据库132用于管理SIM卡状态、存储SIM卡基础信息、存储套餐流量计费信息,记录SIM卡历史分配信息等;SIM卡调度系统133用于进行SIM卡的分配和调度。Specifically, the above-mentioned user terminal 11 may include a device capable of using a cloud SIM card, and the device may download the information of the SIM card allocated by the server and complete the authentication of the operator, and then access the communication network. The aforementioned server 13 may include a card carrying device 131, a database 132, and a SIM card dispatching system 133; wherein the card carrying device 131 is a carrier device of a SIM card, which is used to read SIM card information and upload the SIM card information to the database 132; The database 132 is used to manage the status of the SIM card, store basic information of the SIM card, store package flow billing information, record historical SIM card allocation information, etc.; the SIM card dispatch system 133 is used to allocate and dispatch SIM cards.
如图2示出了本申请实施例提供的一种SIM卡分配方法的实现流程示意图,该方法可以应用于上述图1所示的服务器,并由服务器上配置的SIM卡分配装置执行,适用于需解决正常使用的SIM卡被运营商误判为异常使用的SIM卡,进而导致该SIM卡被停用,给云卡运营商带来损失的技术问题的情形。所述SIM卡分配方法可以包括步骤201至步骤204。Figure 2 shows a schematic diagram of the implementation process of a method for allocating a SIM card provided by an embodiment of the present application. The method can be applied to the server shown in Figure 1 and executed by the SIM card allocating device configured on the server, and is suitable for It is necessary to solve the technical problem that the normal used SIM card is misjudged by the operator as an abnormally used SIM card, which causes the SIM card to be deactivated and brings losses to the cloud card operator. The SIM card allocation method may include step 201 to step 204.
步骤201,接收用户终端发送的SIM卡分配请求。Step 201: Receive a SIM card allocation request sent by a user terminal.
其中,上述SIM卡分配请求携带用户终端的位置信息;该位置信息可以包括用户终端的经纬度信息或者基站的位置信息。Wherein, the aforementioned SIM card allocation request carries the location information of the user terminal; the location information may include the latitude and longitude information of the user terminal or the location information of the base station.
具体的,在用户终端通过基站向服务器发送SIM卡分配请求时,若该用户终端支持全球定位系统(Global Positioning System,GPS),则可以通过全球定位系统获取用户终端的经纬度信息,并在SIM卡分配请求中携带用户终端的经纬度信息;若该用户终端不支持全球定位系统(Global Positioning System,GPS),则可以在用户终端进行搜网的过程中获取基站的位置信息,并在SIM卡分配请求中携带基站的位置信息。Specifically, when the user terminal sends a SIM card allocation request to the server through the base station, if the user terminal supports the Global Positioning System (GPS), the user terminal's longitude and latitude information can be obtained through the global positioning system and stored in the SIM card. The allocation request carries the longitude and latitude information of the user terminal; if the user terminal does not support the Global Positioning System (GPS), the location information of the base station can be obtained during the network search of the user terminal, and the SIM card allocation request Carry the location information of the base station.
其中,上述基站的位置信息可以包括基站的移动设备网络代码(Mobile Network Code,MNC)、移动设备国家代码(Mobile Country Code,MCC)、位置区码(Location Area Code,LAC)以及小区编码(Cell ID)。Wherein, the location information of the above base station may include the mobile device network code (Mobile Network Code, MNC), the mobile country code (Mobile Country Code, MCC), the location area code (Location Area Code, LAC), and the cell code (Cell ID).
在本申请的一些实施方式中,服务器在接收用户终端发送的SIM卡分配请求之后,可 以包括:判断SIM卡分配请求中是否携带基站的位置信息;若SIM卡分配请求中携带有基站的位置信息,则可以根据所述基站的位置信息获取用户终端的经纬度信息。In some embodiments of the present application, after the server receives the SIM card allocation request sent by the user terminal, it may include: determining whether the SIM card allocation request carries the location information of the base station; if the SIM card allocation request carries the location information of the base station , The latitude and longitude information of the user terminal can be obtained according to the location information of the base station.
需要说明的是,上述SIM卡分配请求还可以携带请求分卡国家信息、请求分卡时间信息等其他信息,本申请对此不做限定。It should be noted that the above-mentioned SIM card allocation request may also carry other information such as the country information of the requested sub-card, and the time information of the requested sub-card, which is not limited in this application.
步骤202,根据SIM卡分配请求查找服务器的数据库中存储的SIM卡状态信息,确定服务器是否存在空闲卡。Step 202: Search the SIM card status information stored in the database of the server according to the SIM card allocation request, and determine whether there is an idle card in the server.
在本申请的一些实施方式中,上述服务器的数据库中存储了SIM卡状态信息,该SIM卡状态信息表示SIM卡当前的使用状态;例如,当SIM卡被分配给用户终端且未被释放时,该SIM卡为处于非空闲状态的非空闲卡;当SIM卡未被分配给用户终端时,该SIM卡为处于空闲状态的空闲卡。In some implementation manners of the present application, the database of the aforementioned server stores SIM card status information, and the SIM card status information indicates the current use status of the SIM card; for example, when the SIM card is allocated to the user terminal and has not been released, The SIM card is a non-idle card in a non-idle state; when the SIM card is not allocated to a user terminal, the SIM card is an idle card in an idle state.
因此,在本申请的一些实施方式中,服务器可以根据SIM卡分配请求查找服务器的数据库中存储的SIM卡状态信息,确定服务器是否存在空闲卡,若服务器不存在空闲卡,则可以向用户终端发送无卡可分的信息,用户终端在接收到该消息后可以重新发送SIM卡分配请求,或者服务器可以直接重新查询服务器的数据库中存储的SIM卡状态信息,直至服务器存在空闲卡为止;若服务器存在空闲卡,则可以计算空闲卡的风险系数,以完成对用户终端的SIM卡分配。Therefore, in some embodiments of the present application, the server can look up the SIM card status information stored in the server’s database according to the SIM card allocation request to determine whether the server has an idle card, and if the server does not have an idle card, it can send to the user terminal There is no card-divided information. After receiving the message, the user terminal can resend the SIM card allocation request, or the server can directly re-query the SIM card status information stored in the server’s database until the server has an idle card; if the server exists With an idle card, the risk factor of the idle card can be calculated to complete the allocation of the SIM card to the user terminal.
进一步地,在本申请的一些实施方式中,若上述SIM卡分配请求信息中携带有请求分卡国家信息,上述根据SIM卡分配请求查找服务器的数据库中存储的SIM卡状态信息,还可以包括:根据SIM卡分配请求中的请求分卡国家信息,查找服务器的数据库中存储的与该请求分卡国家信息对应的SIM卡的SIM卡状态信息,确定服务器是否存在该请求分卡国家信息对应的空闲卡,进而对不同国家分配该国家对应的空闲卡。Further, in some embodiments of the present application, if the above-mentioned SIM card allocation request information carries the requested country information, the above-mentioned searching for the SIM card status information stored in the database of the server according to the SIM card allocation request may further include: According to the requested sub-card country information in the SIM card allocation request, search for the SIM card status information of the SIM card corresponding to the requested sub-card country information stored in the database of the server, and determine whether the server has an idle state corresponding to the requested sub-card country information Card, and then allocate idle cards corresponding to that country to different countries.
步骤203,若服务器存在空闲卡,则获取空闲卡的属性信息,并根据用户终端的位置信息以及空闲卡的属性信息计算空闲卡的风险系数。Step 203: If there is an idle card in the server, the attribute information of the idle card is obtained, and the risk factor of the idle card is calculated according to the location information of the user terminal and the attribute information of the idle card.
其中,上述空闲卡的属性信息可以包括空闲卡上一次被释放时对应的位置信息,以及空闲卡的空闲时长。Wherein, the above-mentioned attribute information of the idle card may include the corresponding location information when the idle card was released last time, and the idle time length of the idle card.
具体的,如图3所示,上述根据用户终端的位置信息以及空闲卡的属性信息计算空闲卡的风险系数,可以包括:步骤301至步骤302。Specifically, as shown in FIG. 3, the foregoing calculation of 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.
步骤301,根据用户终端的位置信息以及空闲卡上一次被释放时对应的位置信息计算空闲卡对应的分卡距离。Step 301: Calculate the card splitting distance corresponding to the idle card according to the location information of the user terminal and the corresponding location information when the idle card was released last time.
其中,空闲卡上一次被释放时对应的位置信息可以包括空闲卡上一次被释放时对应的经纬度信息。Wherein, the location information corresponding to the last time the idle card was released may include the latitude and longitude information corresponding to the last time the idle card was released.
相应的,上述根据用户终端的位置信息以及空闲卡上一次被释放时对应的位置信息计算空闲卡对应的分卡距离可以包括:根据用户终端的经纬度信息及空闲卡上一次被释放时对应的经纬度信息计算空闲卡对应的分卡距离。Correspondingly, the foregoing calculation of the sub-card distance corresponding to the idle card according to the location information of the user terminal and the corresponding location information when the idle card was released last time may include: according to the longitude and latitude information of the user terminal and the corresponding longitude and latitude when the idle card was released last time The information calculates the card distance corresponding to the idle card.
具体的,可以通过
Figure PCTCN2020132852-appb-000001
计算空闲卡对应的分卡距离;其中,D表示空闲卡对应的分卡距离;Lung1、Lat1表示用户终端的经纬度,Lung2、Lat2表示空闲卡上一次被释放时对应的经纬度;a表示用户终端的纬度和空闲卡上一次被释放时对应的纬度之差,b表示用户终端的经度和空闲卡上一次被释放时对应的经度之差;Shormin表示地球半径。
Specifically, you can pass
Figure PCTCN2020132852-appb-000001
Calculate the sub-card distance corresponding to the idle card; where D represents the sub-card distance corresponding to the idle card; Lung1, Lat1 represent the longitude and latitude of the user terminal, Lung2, Lat2 represent the corresponding longitude and latitude when the idle card was released last time; a represents the user terminal's corresponding longitude and latitude The difference between the latitude and the corresponding latitude when the idle card was released last time, b represents the difference between the longitude of the user terminal and the corresponding longitude when the idle card was released last time; Shormin represents the radius of the earth.
需要说明的是,其他计算空闲卡对应的分卡距离的方法同样适用于本申请,本申请在此不再赘述。It should be noted that other methods for calculating the distance of the sub-card corresponding to the idle card are also applicable to this application, and this application will not be repeated here.
步骤302,将分卡距离与空闲卡的空闲时长的比值确定为空闲卡的风险系数。Step 302: Determine the ratio of the card splitting distance to the idle time length of the idle card as the risk factor of the idle card.
也就是说,可以通过
Figure PCTCN2020132852-appb-000002
计算空闲卡的风险系数;其中,R表示空闲卡的风险系数,D表示分卡距离,T表示空闲卡的空闲时间。
In other words, you can pass
Figure PCTCN2020132852-appb-000002
Calculate the risk coefficient of the idle card; among them, R represents the risk coefficient of the idle card, D represents the distance to the card, and T represents the idle time of the idle card.
在本申请一些实施方式中,上述空闲卡的属性信息还可以包括空闲卡上一次被释放时对应的时间信息,此时,上述空闲卡的空闲时间可以根据SIM卡分配请求中的请求分卡时间信息与空闲卡上一次被释放时对应的时间信息计算得到。In some embodiments of the present application, the attribute information of the idle card may also include time information corresponding to the last time the idle card was released. At this time, the idle time of the idle card may be divided according to the requested time in the SIM card allocation request. The information is calculated from the corresponding time information when the idle card was released last time.
需要说明的是,分卡距离与空闲卡的空闲时长的比值越大,即空闲卡的风险系数越大,表示SIM卡前后两次使用的间隔时间越短、间隔距离越大,因此,将该空闲卡分配给用户终端更容易发生SIM卡在短时间内被处于较远距离的不同设备调用的问题;分卡距离与空闲卡的空闲时长的比值越小,即空闲卡的风险系数越小,表示SIM卡前后两次使用对应的间隔时间越长,间隔距离越短,因此,将该空闲卡分配给用户终端更不容易发生SIM卡在短时间内被处于较远距离的不同设备调用的问题。It should be noted that the greater the ratio of the card distance to the idle time of the idle card, that is, the greater the risk factor of the idle card, the shorter the interval between two uses of the SIM card and the larger the interval distance. The allocation of an idle card to a user terminal is more likely to cause the problem that the SIM card is called by different devices at a relatively long distance in a short time; the smaller the ratio of the sub-card distance to the idle time of the idle card, the smaller the risk factor of the idle card, It means that the longer the interval between the two uses of the SIM card, the shorter the distance. Therefore, the allocation of the idle card to the user terminal is less likely to cause the problem that the SIM card is called by different devices at a relatively long distance in a short time. .
步骤204,将风险系数小于第一风险阈值的空闲卡分配给所述用户终端。Step 204: Allocate idle cards with risk coefficients less than the first risk threshold to the user terminal.
其中,第一风险阈值是运营商能够接受的发生SIM卡在短时间内被处于较远距离的不同设备调用风险的最大风险值,因此,将风险系数小于第一风险阈值的空闲卡分配给用户终端,可以使分配给用户终端的SIM卡是运营商可以接受的风险范围内的SIM卡,进而解决了正常使用的SIM卡被运营商误判为异常使用的SIM卡的问题。Among them, the first risk threshold is the maximum risk value that the operator can accept when the SIM card is called by different devices at a relatively long distance in a short time. Therefore, an idle card with a risk coefficient less than the first risk threshold is allocated to the user In the terminal, the SIM card allocated to the user terminal can be a SIM card within the risk range acceptable to the operator, thereby solving the problem that the normally used SIM card is misjudged by the operator as an abnormally used SIM card.
由于不同国家、不同运营商对该风险的要求不同,因此,在本申请的一些实施方式中,服务器可以根据不同国家或不同运营商的需要,对第一风险阈值进行调整。Since different countries and different operators have different requirements on this risk, in some embodiments of this application, the server can adjust the first risk threshold according to the needs of different countries or different operators.
本申请实施例中,通过根据接收到的用户终端发送的SIM卡分配请求查找所述服务器的数据库中存储的SIM卡状态信息,确定服务器是否存在空闲卡,并在所述服务器存在空闲卡时,根据所述用户终端的位置信息以及所述空闲卡的属性信息计算所述空闲卡的风险系数;然后,将风险系数小于第一风险阈值的空闲卡分配给所述用户终端;由于风险系数是根据用户终端的位置信息、空闲卡上一次被释放时对应的位置信息,以及空闲卡的空闲时长计算得到的,因此,该风险系数可以表示发生SIM卡在短时间内被处于较远距离的不同设备调用问题的可能性,并且可以通过将第一风险阈值设置为运营商能够接受的发生SIM卡在短时间内被处于较远距离的不同设备调用风险的最大风险值,使得在将风险系数小于第一风险阈值的空闲卡分配给用户终端时,分配给用户终端的SIM卡是运营商可以接受的风险范围内的SIM卡,解决了正常使用的SIM卡被运营商误判为异常使用的SIM卡的问题。In the embodiment of the present application, by searching the SIM card status information stored in the database of the server according to the received SIM card allocation request sent by the user terminal, it is determined whether the server has an idle card, and when the server has an idle card, Calculate the risk coefficient of the idle card according to the location information of the user terminal and the attribute information of the idle card; then, allocate idle cards with a risk coefficient less than the first risk threshold to the user terminal; because the risk coefficient is based on The location information of the user terminal, the corresponding location information when the idle card was released last time, and the idle time of the idle card are calculated. Therefore, the risk factor can indicate the occurrence of different devices where the SIM card is located at a relatively long distance in a short period of time. The possibility of calling problems, and the first risk threshold can be set to the maximum risk value that the operator can accept for the SIM card to be called by different devices at a relatively long distance in a short time, so that the risk factor is less than the first risk. When an idle card with a risk threshold is allocated to a user terminal, the SIM card allocated to the user terminal is a SIM card within the risk range acceptable to the operator, which solves the problem that the normal SIM card is misjudged by the operator as an abnormally used SIM card The problem.
在本申请的一些实施方式中,上述风险系数小于第一风险阈值的空闲卡中可能存在风险系数小于第二风险阈值的空闲卡,这些空闲卡是运营商认为的出现SIM卡在短时间内被处于较远距离的不同设备调用的风险非常低甚至为0的空闲卡,因此,若存在风险系数小于第二风险阈值的空闲卡时,可以直接将任一风险系数小于第二风险阈值的空闲卡分配给用户终端。In some embodiments of the present application, among the idle cards with a risk coefficient less than the first risk threshold, there may be idle cards with a risk coefficient less than the second risk threshold. These idle cards are considered by the operator to appear that the SIM card is damaged in a short period of time. The risk of calling different devices at a longer distance is very low or even zero. Therefore, if there is an idle card with a risk coefficient less than the second risk threshold, you can directly select any idle card with a risk coefficient less than the second risk threshold. Assigned to the user terminal.
具体的,若上述服务器包括多张风险系数小于第一风险阈值的空闲卡,如图4所示,上述步骤204可以具体包括:步骤401至步骤402。Specifically, if the foregoing server includes multiple idle cards with a risk coefficient less than the first risk threshold, as shown in FIG. 4, the foregoing step 204 may specifically include: step 401 to step 402.
步骤401,判断风险系数小于第一风险阈值的空闲卡中是否存在风险系数小于第二风险阈值的空闲卡。Step 401: Determine whether there is an idle card with a risk coefficient less than a second risk threshold among idle cards with a risk coefficient less than a first risk threshold.
其中,上述第二风险阈值小于第一风险阈值。Wherein, the above-mentioned second risk threshold is less than the first risk threshold.
步骤402,若风险系数小于第一风险阈值的空闲卡中存在风险系数小于第二风险阈值的空闲卡,则将任一风险系数小于第二风险阈值的空闲卡分配给用户终端。Step 402: If there are idle cards with a risk coefficient less than the second risk threshold among the idle cards with a risk coefficient less than the first risk threshold, assign any idle card with a risk coefficient less than the second risk threshold to the user terminal.
在本申请的一些实施方式中,由于风险系数小于第二风险阈值的空闲卡是运营商认为的出现SIM卡在短时间内被处于较远距离的不同设备调用的风险非常小甚至为0的空闲卡,因此,将任一风险系数小于第二风险阈值的空闲卡分配给用户终端都可以避免出现SIM卡在短时间内被处于较远距离的不同设备调用的问题。需要说明的是,在进行SIM卡分配的过程中,风险系数小于第二风险阈值的空闲卡的分配优先级相同且最高,只要空闲卡中存在风险系数小于第二风险阈值的空闲卡,则可以优先将任一风险系数小于第二风险阈值的空闲卡分配给用户终端。In some embodiments of the present application, because the idle card with a risk coefficient less than the second risk threshold is an idle card that the operator believes that the SIM card will be called by different devices at a relatively long distance in a short period of time, the risk is very small or even zero. Therefore, assigning any idle card with a risk coefficient less than the second risk threshold to the user terminal can avoid the problem that the SIM card is called by different devices at a relatively long distance in a short time. It should be noted that in the process of SIM card allocation, the allocation priority of idle cards with a risk coefficient less than the second risk threshold is the same and the highest. As long as there are idle cards with a risk coefficient less than the second risk threshold, you can Priority is given to assigning any idle card with a risk coefficient less than the second risk threshold to the user terminal.
相应的,若风险系数小于第一风险阈值的空闲卡中不存在风险系数小于第二风险阈值的空闲卡,则风险系数小于第一风险阈值空闲卡(即风险系数小于第一风险阈值且大于第 二风险阈值的空闲卡)是运营商认为的有出现SIM卡在短时间内被处于较远距离的不同设备调用的风险,但该风险可以被运营商接受的空闲卡,因此,可以选择其中风险系数最小的空闲卡分配的用户终端,最大限度地避免SIM卡在短时间内被处于较远距离的不同设备调用。Correspondingly, if there is no idle card with a risk coefficient less than the second risk threshold among the idle cards with a risk coefficient less than the first risk threshold, the risk coefficient is less than the first risk threshold idle card (that is, the risk coefficient is less than the first risk threshold and greater than the first risk threshold). (2) Idle card with risk threshold) is an idle card considered by the operator that there is a risk that the SIM card will be called by different devices at a relatively long distance in a short time, but the risk can be accepted by the operator. Therefore, the risk can be selected The user terminal assigned to the idle card with the smallest coefficient minimizes the SIM card being called by different devices at a relatively long distance in a short period of time.
具体的,如图5所示,在上述步骤401之后,还可以包括:步骤403。Specifically, as shown in FIG. 5, after the above step 401, it may further include: step 403.
步骤403,若风险系数小于第一风险阈值的空闲卡中不存在风险系数小于第二风险阈值的空闲卡,则对风险系数小于第一风险阈值的空闲卡进行排序,并将风险系数小于第一风险阈值的空闲卡中风险系数最小的空闲卡分配给用户终端。Step 403: If there is no idle card with a risk coefficient less than the second risk threshold among the idle cards with a risk coefficient less than the first risk threshold, sort the idle cards with a risk coefficient less than the first risk threshold, and rank the idle cards with a risk coefficient less than the first risk threshold. Among the idle cards with the risk threshold, the idle card with the smallest risk coefficient is allocated to the user terminal.
在本申请的一些实施方式中,在进行SIM卡分配的过程中,当风险系数小于第一风险阈值的空闲卡中不存在风险系数小于第二风险阈值的空闲卡,则风险系数小于第一风险阈值的空闲卡中风险系数越小的空闲卡,分配的优先级越高,因此,可以对风险系数小于第一风险阈值的空闲卡进行排序,并将风险系数小于第一风险阈值的空闲卡中风险系数最小的空闲卡分配给用户终端。In some embodiments of the present application, during the process of SIM card allocation, when there is no idle card with a risk coefficient less than the second risk threshold among the idle cards with a risk coefficient less than the first risk threshold, the risk coefficient is less than the first risk. Among the idle cards with a threshold, the smaller the risk coefficient, the higher the priority assigned. Therefore, the idle cards with a risk coefficient less than the first risk threshold can be sorted, and the idle cards with a risk coefficient less than the first risk threshold can be sorted The idle card with the smallest risk factor is allocated to the user terminal.
本申请实施例中,通过判断风险系数小于第一风险阈值的空闲卡中是否存在风险系数小于第二风险阈值的空闲卡,若风险系数小于第一风险阈值的空闲卡中存在风险系数小于第二风险阈值的空闲卡,则将任一风险系数小于第二风险阈值的空闲卡分配给用户终端;若风险系数小于第一风险阈值的空闲卡中不存在风险系数小于第二风险阈值的空闲卡,则对风险系数小于第一风险阈值的空闲卡进行排序,并将风险系数小于第一风险阈值的空闲卡中风险系数最小的空闲卡分配给用户终端;使得分配给用户终端的SIM卡是在运营商可以接受的风险范围内发生在短时间内被处于较远距离的不同设备调用的可能性最低的SIM卡,最大限度地解决了正常使用的SIM卡被运营商误判为异常使用的SIM卡的问题。In this embodiment of the application, it is determined whether there are idle cards with a risk coefficient less than the second risk threshold among idle cards with a risk coefficient less than the first risk threshold, and if there are idle cards with a risk coefficient less than the first risk threshold, there are idle cards with a risk coefficient less than the second risk threshold. For idle cards with a risk threshold, assign any idle card with a risk coefficient less than the second risk threshold to the user terminal; if there is no idle card with a risk coefficient less than the second risk threshold among the idle cards with a risk coefficient less than the first risk threshold, Then sort the idle cards with a risk coefficient less than the first risk threshold, and allocate the idle card with the smallest risk coefficient among the idle cards with a risk coefficient less than the first risk threshold to the user terminal; so that the SIM card allocated to the user terminal is in operation The SIM card with the lowest possibility of being called by different devices at a relatively long distance within a risk range acceptable to the supplier, which minimizes the problem that the normal SIM card is misjudged by the operator as an abnormally used SIM card The problem.
一般地,若不存在风险系数小于第一风险阈值的空闲卡,则服务器不存在可以为用户终端分配的SIM卡,此时,服务器可以向用户终端发送无卡可分的消息,并结束SIM卡分配。由于在SIM卡分配过程中,可能出现新的空闲卡,例如:刚刚被释放的SIM卡,因此,为了提高SIM卡分配的成功率,在本申请的一些实施方式中,若不存在风险系数小于第一风险阈值的空闲卡,服务器可以重新寻找可以分配的卡进行SIM卡分配,具体的,如图6所示,可以包括步骤601至步骤604。Generally, if there is no idle card with a risk coefficient less than the first risk threshold, the server does not have a SIM card that can be allocated to the user terminal. At this time, the server can send a message that there is no card can be divided to the user terminal, and end the SIM card distribution. In the process of SIM card allocation, a new idle card may appear, such as a SIM card that has just been released. Therefore, in order to improve the success rate of SIM card allocation, in some embodiments of the present application, if there is no risk factor less than For an idle card with the first risk threshold, the server can re-search for a card that can be allocated for SIM card allocation. Specifically, as shown in FIG. 6, step 601 to step 604 can be included.
步骤601,接收用户终端发送的SIM卡分配请求。Step 601: Receive a SIM card allocation request sent by a user terminal.
其中,上述SIM卡分配请求携带所述用户终端的位置信息;Wherein, the aforementioned SIM card allocation request carries the location information of the user terminal;
步骤602,根据SIM卡分配请求查找服务器的数据库中存储的SIM卡状态信息,确定服务器是否存在空闲卡。Step 602: Search the SIM card status information stored in the database of the server according to the SIM card allocation request, and determine whether there is an idle card in the server.
步骤603,若服务器存在空闲卡,则获取空闲卡的属性信息,并根据用户终端的位置信息以及空闲卡的属性信息计算空闲卡的风险系数。In step 603, if there is an idle card in the server, the attribute information of the idle card is obtained, and the risk factor of the idle card is calculated according to the location information of the user terminal and the attribute information of the idle card.
其中,上述空闲卡的属性信息包括空闲卡上一次被释放时对应的位置信息,以及空闲卡的空闲时长。Wherein, the attribute information of the idle card includes the corresponding location information when the idle card was released last time, and the idle time length of the idle card.
步骤604,若服务器中不存在风险系数小于第一风险阈值的空闲卡,则重新计算服务器中空闲卡的风险系数。Step 604: If there is no idle card with a risk coefficient less than the first risk threshold in the server, recalculate 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 less than the first risk threshold in the server, the risk coefficient of the idle card in the server can be calculated again, if there is an idle card with a risk coefficient less than the first risk threshold , And allocate an idle card with a risk coefficient less than the first risk threshold to the user terminal; if there is no idle card with a risk coefficient less than the first risk threshold, recalculate the risk coefficient of the idle card in the server until the risk coefficient is less than Idle card with the first risk threshold.
本申请实施例中,通过若服务器中不存在风险系数小于第一风险阈值的空闲卡,则重新计算服务器中空闲卡的风险系数,直至出现风险系数小于第一风险阈值的空闲卡,使得在分配给用户终端的SIM卡是处于空闲状态的、在运营商可以接受的风险范围内发生在短时间内被处于较远距离的不同设备调用的可能性最低的SIM卡的同时,提高SIM卡分配的成功率。In the embodiment of this application, if there is no idle card with a risk coefficient less than the first risk threshold in the server, the risk coefficient of the idle card in the server is recalculated until an idle card with a risk coefficient less than the first risk threshold appears, so that the The SIM card for the user terminal is in an idle state, and the SIM card with the lowest possibility of being called by different devices at a long distance within a short time within the acceptable risk range of the operator, while improving the allocation of the SIM card Success rate.
需要说明的是,在上述将风险系数小于第一风险阈值的空闲卡分配给用户终端之后,用户终端可以释放该SIM卡,此时,该SIM卡将重新进入空闲状态,因此,在本申请的一些实施方式中,服务器还可以接收用户终端发送的SIM卡释放信息,对该SIM卡的状态进行更新。具体的,如图7所示,包括:步骤701至步骤702。It should be noted that after the above-mentioned idle card with a risk coefficient less than the first risk threshold is allocated to the user terminal, the user terminal can release the SIM card. At this time, the SIM card will enter the idle state again. In some embodiments, the server may also receive SIM card release information sent by the user terminal, and update the status of the SIM card. Specifically, as shown in FIG. 7, it includes: step 701 to step 702.
步骤701,获取用户终端发送的SIM卡释放信息。Step 701: Acquire SIM card release information sent by the user terminal.
步骤702,根据SIM卡释放信息更新服务器的数据库中存储的SIM卡状态信息。Step 702: Update the SIM card status information stored in the database of the server according to the SIM card release information.
其中,上述SIM卡释放信息可以包括SIM卡归属机构信息、用户终端设备标识信息、分配国家信息、释放时间信息,以及释放位置信息等信息。Wherein, the above-mentioned SIM card release information may include information such as SIM card ownership organization information, user terminal equipment identification information, allocation country information, release time information, and release location information.
相应的,在本申请的一些实施方式中,上述根据SIM卡释放信息更新服务器的数据库中存储的SIM卡状态信息可以包括:将所述释放信息对应的SIM卡标记为空闲卡,并根据所述SIM卡释放信息中的释放时间信息确定所述空闲卡的空闲时长,以及根据所述SIM卡释放信息中的释放位置信息确定该空闲卡上一次被释放时对应的位置信息。Correspondingly, in some embodiments of the present application, updating the SIM card status 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, and according to the The release time information in the SIM card release information determines the idle duration of the idle card, and the location information corresponding to the last time the idle card was released is determined according to the release location information in the SIM card release information.
本申请的实施例中,在用户终端完成SIM卡的使用之后,用户终端可以释放SIM卡,此时,该SIM卡将重新进入空闲状态,可以再次被服务器分配给用户终端,因此,用户终端可以向服务器发送SIM卡释放信息;服务器在获取用户终端发送的SIM卡释放信息之后, 可以根据SIM卡释放信息更新服务器的数据库中存储的SIM卡状态信息,以更新该SIM卡的状态,方便进行该SIM卡的下一次分配。In the embodiment of the present application, after the user terminal completes the use of the SIM card, the user terminal can release the SIM card. At this time, the SIM card will re-enter the idle state and can be allocated to the user terminal again by the server. Therefore, the user terminal can Send the SIM card release information to the server; after obtaining the SIM card release information sent by the user terminal, the server can update the SIM card status information stored in the server’s database according to the SIM card release information to update the status of the SIM card to facilitate this The next allocation of the SIM card.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为根据本申请,某些步骤可以采用其它顺序进行。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited by the described sequence of actions. Because according to this application, some steps can be performed in other order.
如图8所示为本申请实施例提供配置于服务器的一种SIM卡分配装置800的结构示意图,所述SIM卡分配装置800可以包括:接收单元801、查找单元802、计算单元803和分配单元804。As shown in FIG. 8 is a schematic structural diagram of a SIM card allocating device 800 configured on a server according to an embodiment of the application. The SIM card allocating device 800 may include: a receiving unit 801, a searching unit 802, a calculating unit 803, and an allocating unit 804.
接收单元801,用于接收用户终端发送的SIM卡分配请求;所述SIM卡分配请求携带所述用户终端的位置信息;The receiving unit 801 is configured to receive a SIM card allocation request sent by a user terminal; the SIM card allocation request carries location information of the user terminal;
查找单元802,用于根据所述SIM卡分配请求查找所述服务器的数据库中存储的SIM卡状态信息,确定所述服务器是否存在空闲卡;The searching unit 802 is configured to search the SIM card status information stored in the database of the server according to the SIM card allocation request, and determine whether there is an idle card in the server;
计算单元803,用于若所述服务器存在空闲卡,则获取所述空闲卡的属性信息,并根据所述用户终端的位置信息以及所述空闲卡的属性信息计算所述空闲卡的风险系数;其中,所述空闲卡的属性信息包括所述空闲卡上一次被释放时对应的位置信息,以及所述空闲卡的空闲时长;The calculating unit 803 is configured to obtain the attribute information of the idle card if there is an idle card in the server, and calculate the risk coefficient of the idle card according to the location information of the user terminal and the attribute information of the idle card; Wherein, the attribute information of the idle card includes the corresponding location information when the idle card was released last time, and the idle time length of the idle card;
分配单元804,用于将所述风险系数小于第一风险阈值的空闲卡分配给所述用户终端。The allocating unit 804 is configured to allocate idle cards with the risk coefficient less than the first risk threshold to the user terminal.
在本申请的一些实施方式中,所述计算单元802,还具体用于:In some implementation manners of the present application, the calculation unit 802 is further specifically configured to:
根据所述用户终端的位置信息以及所述空闲卡上一次被释放时对应的位置信息计算所述空闲卡对应的分卡距离;Calculating the card splitting distance corresponding to the idle card according to the location information of the user terminal and the corresponding location information when the idle card was released last time;
将所述分卡距离与所述空闲卡的空闲时长的比值确定为所述空闲卡的风险系数。The ratio of the distance of the sub-card to the idle duration of the idle card is determined as the risk coefficient of the idle card.
在本申请的一些实施方式中,所述分配单元804,还具体用于:In some implementation manners of the present application, the allocating unit 804 is further specifically configured to:
判断所述风险系数小于第一风险阈值的空闲卡中是否存在风险系数小于第二风险阈值的空闲卡;所述第二风险阈值小于所述第一风险阈值;Judging whether there is an idle card with a risk coefficient less than a second risk threshold among idle cards with a risk coefficient less than a first risk threshold; the second risk threshold is less than the first risk threshold;
若所述风险系数小于第一风险阈值的空闲卡中存在风险系数小于第二风险阈值的空闲卡,则将任一风险系数小于所述第二风险阈值的空闲卡分配给所述用户终端。If there are idle cards with a risk coefficient less than the second risk threshold among the idle cards with a risk coefficient less than the first risk threshold, then any idle card with a risk coefficient less than the second risk threshold is allocated to the user terminal.
若所述风险系数小于第一风险阈值的空闲卡中不存在风险系数小于第二风险阈值的空闲卡,则对所述风险系数小于第一风险阈值的空闲卡进行排序,并将所述风险系数小于第一风险阈值的空闲卡中风险系数最小的空闲卡分配给所述用户终端。If there are no idle cards with a risk coefficient less than the second risk threshold among the idle cards with the risk coefficient less than the first risk threshold, then sort the idle cards with the risk coefficient less than the first risk threshold and sort the risk coefficients. Among the idle cards smaller than the first risk threshold, the idle card with the smallest risk coefficient is allocated to the user terminal.
若所述服务器中不存在风险系数小于第一风险阈值的空闲卡,则重新计算所述服务器中空闲卡的风险系数。If there is no idle card with a risk coefficient less than the first risk threshold in the server, the risk coefficient of the idle card in the server is recalculated.
在本申请的一些实施方式中,所述SIM卡分配装置还可以包括更新单元,用于:In some embodiments of the present application, the SIM card allocating device may further include an update unit, configured to:
获取所述用户终端发送的SIM卡释放信息;Acquiring SIM card release information sent by the user terminal;
根据所述SIM卡释放信息更新所述服务器的数据库中存储的SIM卡状态信息。Update the SIM card status information stored in the database of the server according to the SIM card release information.
需要说明的是,为描述的方便和简洁,上述描述的SIM卡分配装置800的具体工作过程,可以参考图1至图7所述方法的对应过程,在此不再赘述。It should be noted that, for the convenience and brevity of the description, the specific working process of the SIM card allocating device 800 described above can be referred to the corresponding process of the method described in FIG. 1 to FIG. 7, which will not be repeated here.
如图9所示,为本申请实施例提供的一种服务器的示意图。该服务器9可以包括:处理器90、存储器91以及存储在所述存储器91中并可在所述处理器90上运行的计算机程序92,例如SIM卡分配程序。所述处理器90执行所述计算机程序92时实现上述各个SIM卡分配方法实施例中的步骤,例如图2所示的步骤201至204。或者,所述处理器90执行所述计算机程序92时实现上述各装置实施例中各模块/单元的功能,例如图8所示单元801至804的功能。As shown in FIG. 9, a schematic diagram of a server provided by an embodiment of this application. The server 9 may include a processor 90, a memory 91, and a computer program 92 stored in the memory 91 and running on the processor 90, such as a SIM card allocation program. When the processor 90 executes the computer program 92, the steps in the foregoing embodiments of the SIM card allocation method are implemented, for example, steps 201 to 204 shown in FIG. 2. Alternatively, when the processor 90 executes the computer program 92, the functions of the modules/units in the foregoing device embodiments, for example, the functions of the units 801 to 804 shown in FIG. 8 are realized.
所述计算机程序可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器91中,并由所述处理器90执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述服务器中的执行过程。例如,所述计算机程序可以被分割成接收单元、查找单元、计算单元和分配单元,各单元具体功能如下:接收单元,用于接收用户终端发送的SIM卡分配请求;所述SIM卡分配请求携带所述用户终端的位置信息;查找单元,用于根据所述SIM卡分配请求查找所述服务器的数据库中存储的SIM卡状态信息,确定所述服务器是否存在空闲卡;计算单元,用于若所述服务器存在空闲卡,则获取所述空闲卡的属性信息,并根据所述用户终端的位置信息以及所述空闲卡的属性信息计算所述空闲卡的风险系数;其中,所述空闲卡的属性信息包括所述空闲卡上一次被释放时对应的位置信息,以及所述空闲卡的空闲时长;分配单元,用于将所述风险系数小于第一风险阈值的空闲卡分配给所述用户终端。The computer program may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 91 and executed by the processor 90 to complete the application. The one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the server. For example, the computer program can be divided into a receiving unit, a search unit, a calculation unit, and an allocation unit. The specific functions of each unit are as follows: the receiving unit is used to receive a SIM card allocation request sent by a user terminal; the SIM card allocation request carries The location information of the user terminal; a searching unit for searching the SIM card status information stored in the database of the server according to the SIM card allocation request, and determining whether there is an idle card in the server; a computing unit, for determining whether the server has an idle card; If there is an idle card in the server, the attribute information of the idle card is acquired, and the risk factor of the idle card is calculated according to the location information of the user terminal and the attribute information of the idle card; wherein, the attribute of the idle card The information includes the location information corresponding to the last time the idle card was released, and the idle time length of the idle card; the allocation unit is configured to allocate the idle card with the risk coefficient less than the first risk threshold to the user terminal.
所述服务器可以是本地服务器,或者是云端服务器。所述服务器可包括,但不仅限于,处理器90、存储器91。本领域技术人员可以理解,图9仅仅是服务器的示例,并不构成对服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述服务器还可以包括输入输出设备、网络接入设备、总线等。The server may be a local server or a cloud server. The server may include, but is not limited to, a processor 90 and a memory 91. Those skilled in the art can understand that FIG. 9 is only an example of a server, and does not constitute a limitation on the server. It may include more or less components than those shown in the figure, or a combination of certain components, or different components, such as the The server may also include input and output devices, network access devices, buses, and so on.
所称处理器90可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字SIM卡分配器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管 逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 90 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital SIM card distributors (Digital Signal Processor, DSP), and Application Specific Integrated Circuits (ASIC) , Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
所述存储器91可以是所述服务器的内部存储单元,例如服务器的硬盘或内存。所述存储器91也可以是所述服务器的外部存储设备,例如所述服务器上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器91还可以既包括所述服务器的内部存储单元也包括外部存储设备。所述存储器91用于存储所述计算机程序以及所述服务器所需的其他程序和数据。所述存储器91还可以用于暂时地存储已经输出或者将要输出的数据。The memory 91 may be an internal storage unit of the server, such as a hard disk or memory of the server. The memory 91 may also be an external storage device of the server, such as a plug-in hard disk equipped on the server, a smart memory card (Smart Media Card, SMC), a Secure Digital (SD) card, and a flash memory card. (Flash Card) and so on. Further, the storage 91 may also include both an internal storage unit of the server and an external storage device. The memory 91 is used to store the computer program and other programs and data required by the server. The memory 91 can also be used to temporarily store data that has been output or will be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In practical applications, the above functions can be allocated to different functional units and modules as needed. Module completion, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Form realization can also be realized in the form of software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/服务器和方法,可以通过其它的方式实现。例如,以上所描述的装置/服务器实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device/server and method may be implemented in other ways. For example, the device/server embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or Components can be combined or integrated into another system, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的 部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, it can implement the steps of the foregoing method embodiments. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (Read-Only Memory, ROM) , Random Access Memory (RAM), electrical carrier signal, telecommunications signal, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium Does not include electrical carrier signals and telecommunication signals.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, a person of ordinary skill in the art should understand that it can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of protection of this application.

Claims (10)

  1. 一种SIM卡分配方法,应用于服务器,其特征在于,所述SIM卡分配方法包括:A method for allocating a SIM card applied to a server, wherein the method for allocating a SIM card includes:
    接收用户终端发送的SIM卡分配请求;所述SIM卡分配请求携带所述用户终端的位置信息;Receiving a SIM card allocation request sent by a user terminal; the SIM card allocation request carries location information of the user terminal;
    根据所述SIM卡分配请求查找所述服务器的数据库中存储的SIM卡状态信息,确定所述服务器是否存在空闲卡;Searching the SIM card status information stored in the database of the server according to the SIM card allocation request, and determining whether there is an idle card in the server;
    若所述服务器存在空闲卡,则获取所述空闲卡的属性信息,并根据所述用户终端的位置信息以及所述空闲卡的属性信息计算所述空闲卡的风险系数;其中,所述空闲卡的属性信息包括所述空闲卡上一次被释放时对应的位置信息,以及所述空闲卡的空闲时长;If there is an idle card in the server, the attribute information of the idle card is acquired, and the risk factor of the idle card is calculated according to the location information of the user terminal and the attribute information of the idle card; wherein, the idle card The attribute information of includes the corresponding location information when the idle card was released last time, and the idle duration of the idle card;
    将所述风险系数小于第一风险阈值的空闲卡分配给所述用户终端。Allocating idle cards with the risk coefficient less than the first risk threshold to the user terminal.
  2. 如权利要求1所述的SIM卡分配方法,其特征在于,所述根据所述用户终端的位置信息以及所述空闲卡的属性信息计算所述空闲卡的风险系数,包括:The method for allocating a SIM card according to claim 1, wherein the calculating the risk factor of the idle card according to the location information of the user terminal and the attribute information of the idle card comprises:
    根据所述用户终端的位置信息以及所述空闲卡上一次被释放时对应的位置信息计算所述空闲卡对应的分卡距离;Calculating the card splitting distance corresponding to the idle card according to the location information of the user terminal and the corresponding location information when the idle card was released last time;
    将所述分卡距离与所述空闲卡的空闲时长的比值确定为所述空闲卡的风险系数。The ratio of the distance of the sub-card to the idle duration of the idle card is determined as the risk coefficient of the idle card.
  3. 如权利要求1所述的SIM卡分配方法,其特征在于,若所述服务器包括多张风险系数小于第一风险阈值的空闲卡,则所述将所述风险系数小于第一风险阈值的空闲卡分配给所述用户终端,包括:The method for allocating a SIM card according to claim 1, wherein if the server includes a plurality of idle cards with a risk coefficient smaller than a first risk threshold, the idle card with the risk coefficient smaller than the first risk threshold is reduced Allocating to the user terminal includes:
    判断所述风险系数小于第一风险阈值的空闲卡中是否存在风险系数小于第二风险阈值的空闲卡;所述第二风险阈值小于所述第一风险阈值;Judging whether there is an idle card with a risk coefficient less than a second risk threshold among idle cards with a risk coefficient less than a first risk threshold; the second risk threshold is less than the first risk threshold;
    若所述风险系数小于第一风险阈值的空闲卡中存在风险系数小于第二风险阈值的空闲卡,则将任一风险系数小于所述第二风险阈值的空闲卡分配给所述用户终端。If there are idle cards with a risk coefficient less than the second risk threshold among the idle cards with a risk coefficient less than the first risk threshold, then any idle card with a risk coefficient less than the second risk threshold is allocated to the user terminal.
  4. 如权利要求3所述的SIM卡分配方法,其特征在于,在所述判断所述风险系数小于第一风险阈值的空闲卡中是否存在风险系数小于第二风险阈值的空闲卡之后,包括:The method for allocating a SIM card according to claim 3, wherein after determining whether there is an idle card with a risk coefficient smaller than a second risk threshold among the idle cards with a risk coefficient smaller than the first risk threshold, the method comprises:
    若所述风险系数小于第一风险阈值的空闲卡中不存在风险系数小于第二风险阈值的空闲卡,则对所述风险系数小于第一风险阈值的空闲卡进行排序,并将所述风险系数小于第一风险阈值的空闲卡中风险系数最小的空闲卡分配给所述用户终端。If there are no idle cards with a risk coefficient less than the second risk threshold among the idle cards with the risk coefficient less than the first risk threshold, then sort the idle cards with the risk coefficient less than the first risk threshold and sort the risk coefficients. Among the idle cards smaller than the first risk threshold, the idle card with the smallest risk coefficient is allocated to the user terminal.
  5. 如权利要求1-4任意一项所述的SIM卡分配方法,其特征在于,在所述根据所述用户终端的位置信息以及所述空闲卡的属性信息计算所述空闲卡的风险系数之后,包括:The method for allocating a SIM card according to any one of claims 1 to 4, wherein after calculating the risk factor of the idle card according to the location information of the user terminal and the attribute information of the idle card, include:
    若所述服务器中不存在风险系数小于第一风险阈值的空闲卡,则重新计算所述服务器中空闲卡的风险系数。If there is no idle card with a risk coefficient less than the first risk threshold in the server, the risk coefficient of the idle card in the server is recalculated.
  6. 如权利要求1-4任意一项所述的SIM卡分配方法,其特征在于,在所述将所述风险系数小于第一风险阈值的空闲卡分配给所述用户终端之后,包括:The method for allocating a SIM card according to any one of claims 1 to 4, wherein after allocating an idle card with the risk coefficient less than a first risk threshold to the user terminal, the method comprises:
    获取所述用户终端发送的SIM卡释放信息;Acquiring SIM card release information sent by the user terminal;
    根据所述SIM卡释放信息更新所述服务器的数据库中存储的SIM卡状态信息。Update the SIM card status information stored in the database of the server according to the SIM card release information.
  7. 一种SIM卡分配装置,应用于服务器,其特征在于,所述SIM卡分配装置包括:A SIM card allocating device applied to a server, wherein the SIM card allocating device includes:
    接收单元,用于接收用户终端发送的SIM卡分配请求;所述SIM卡分配请求携带所述用户终端的位置信息;A receiving unit, configured to receive a SIM card allocation request sent by a user terminal; the SIM card allocation request carries location information of the user terminal;
    查找单元,用于根据所述SIM卡分配请求查找所述服务器的数据库中存储的SIM卡状态信息,确定所述服务器是否存在空闲卡;The searching unit is configured to search the SIM card status information stored in the database of the server according to the SIM card allocation request, and determine whether there is an idle card in the server;
    计算单元,用于若所述服务器存在空闲卡,则获取所述空闲卡的属性信息,并根据所述用户终端的位置信息以及所述空闲卡的属性信息计算所述空闲卡的风险系数;其中,所述空闲卡的属性信息包括所述空闲卡上一次被释放时对应的位置信息,以及所述空闲卡的空闲时长;The calculating unit is configured to obtain the attribute information of the idle card if there is an idle card in the server, and calculate the risk factor of the idle card according to the location information of the user terminal and the attribute information of the idle card; wherein , The attribute information of the idle card includes the corresponding location information when the idle card was released last time, and the idle time length of the idle card;
    分配单元,用于将所述风险系数小于第一风险阈值的空闲卡分配给所述用户终端。The allocation unit is configured to allocate idle cards with the risk coefficient less than the first risk threshold to the user terminal.
  8. 如权利要求7所述的SIM卡分配装置,其特征在于,所述SIM卡分配装置还包括:8. The SIM card allocating device of claim 7, wherein the SIM card allocating device further comprises:
    更新单元,用于获取所述用户终端发送的SIM卡释放信息;根据所述SIM卡释放信息更新所述服务器的数据库中存储的SIM卡状态信息。The update unit is used to obtain the SIM card release information sent by the user terminal; and update the SIM card status information stored in the database of the server according to the SIM card release information.
  9. 一种服务器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1-6任一项所述方法的步骤。A server comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program as claimed in claims 1-6 Any of the steps of the method.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-6任一项所述方法的步骤。A computer-readable storage medium storing a computer program, wherein the computer program implements the steps of the method according to any one of claims 1 to 6 when the computer program is executed by a processor.
PCT/CN2020/132852 2019-12-18 2020-11-30 Sim card allocation method and apparatus, server and computer-readable storage medium WO2021121019A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2021121019A1 true WO2021121019A1 (en) 2021-06-24

Family

ID=76344012

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/132852 WO2021121019A1 (en) 2019-12-18 2020-11-30 Sim card allocation method and apparatus, 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
CN114190916A (en) * 2021-12-07 2022-03-18 河南省儿童医院郑州儿童医院 Child respiration monitoring method and system based on fabric sensor

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282701A (en) * 2015-09-06 2016-01-27 深圳优克云联科技有限公司 Distribution method, device and system of subscriber identity module cards
CN105898735A (en) * 2016-03-24 2016-08-24 南京佰联信息技术有限公司 Method for obtaining SIM information and equipment
US20170170856A1 (en) * 2015-12-10 2017-06-15 Shenzhen Dimior Technologies Co., Ltd. Cloud sim card pool system
CN107071733A (en) * 2017-04-17 2017-08-18 深圳市途鸽信息有限公司 Virtual SIM card service supporting method and server, communication means and SIM card server and mobile device
CN107105427A (en) * 2017-04-28 2017-08-29 天津泰岳小漫科技有限公司 Communication means and device based on passage SIM card
CN108430059A (en) * 2018-03-19 2018-08-21 深圳市优克联新技术有限公司 Method, apparatus, system and the readable storage medium storing program for executing of Subscriber Identity Module distribution

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105451356B (en) * 2014-06-23 2020-02-18 香港优克网络技术有限公司 SIM card resource allocation method and device
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
US10536840B2 (en) * 2016-10-19 2020-01-14 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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282701A (en) * 2015-09-06 2016-01-27 深圳优克云联科技有限公司 Distribution method, device and system of subscriber identity module cards
US20170170856A1 (en) * 2015-12-10 2017-06-15 Shenzhen Dimior Technologies Co., Ltd. Cloud sim card pool system
CN105898735A (en) * 2016-03-24 2016-08-24 南京佰联信息技术有限公司 Method for obtaining SIM information and equipment
CN107071733A (en) * 2017-04-17 2017-08-18 深圳市途鸽信息有限公司 Virtual SIM card service supporting method and server, communication means and SIM card server and mobile device
CN107105427A (en) * 2017-04-28 2017-08-29 天津泰岳小漫科技有限公司 Communication means and device based on passage SIM card
CN108430059A (en) * 2018-03-19 2018-08-21 深圳市优克联新技术有限公司 Method, apparatus, system and the readable storage medium storing program for executing of Subscriber Identity Module distribution

Cited By (2)

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

Also Published As

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

Similar Documents

Publication Publication Date Title
US11146502B2 (en) Method and apparatus for allocating resource
CN109327627A (en) Telephone number recognition methods, device and storage medium based on block chain
US10064044B2 (en) Method and apparatus for determining roaming status of terminal, terminal, and server
WO2021114025A1 (en) Incremental data determination method, incremental data determination apparatus, server and terminal device
CN109348434B (en) Scene information sending method, sending device and terminal equipment
WO2019205324A1 (en) Task allocation method and system, and terminal device
WO2021121019A1 (en) Sim card allocation method and apparatus, server and computer-readable storage medium
CN111066333A (en) Device capable of acquiring ESIM configuration file
CA3139693A1 (en) Dynamic allocation of computing resources
CN109088949B (en) Matching method of Internet of things services and MME
CN113573334B (en) Method and device for determining resident area of user
CN108008973B (en) Method, device and server for associating application program
CN113449986A (en) Service distribution method, device, server and storage medium
CN110636522B (en) Method and device for determining coverage quality of communication network
CN109842482B (en) Information synchronization method, system and terminal equipment
WO2021121176A1 (en) Method and device for updating status information of sim card, and server
US11395129B2 (en) Virtual sim card acquisition method, subscriber terminal and server
CN110493735B (en) Short message processing method and device
CN110750602A (en) Method and device for determining site to which order address belongs
CN109246686B (en) Multi-card user address book updating method and device based on cloud technology
CN109362079B (en) Data processing method and device
WO2021121175A1 (en) Sim card allocation method and apparatus, and server and computer-readable storage medium
CN111400520A (en) Construction method of face recognition library, face payment method, device and system
CN111161067A (en) Method and device for determining transaction route
CN113127847A (en) Data management method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20902354

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20902354

Country of ref document: EP

Kind code of ref document: A1