WO2021121176A1 - Method and device for updating status information of sim card, and server - Google Patents

Method and device for updating status information of sim card, and server Download PDF

Info

Publication number
WO2021121176A1
WO2021121176A1 PCT/CN2020/136032 CN2020136032W WO2021121176A1 WO 2021121176 A1 WO2021121176 A1 WO 2021121176A1 CN 2020136032 W CN2020136032 W CN 2020136032W WO 2021121176 A1 WO2021121176 A1 WO 2021121176A1
Authority
WO
WIPO (PCT)
Prior art keywords
sim card
card
idle
frozen state
frozen
Prior art date
Application number
PCT/CN2020/136032
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 WO2021121176A1 publication Critical patent/WO2021121176A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/30Network data restoration; Network data reliability; Network data fault tolerance

Definitions

  • SIM Subscriber Identity module (user identity module) card refers to the smart card used by the user terminal, which stores user identification data, authentication algorithm and key, etc., used to identify and authenticate the user terminal before the user terminal accesses the communication network. right. 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 updating the status information of a SIM card, which can solve the problem that a normal SIM card is misjudged by an operator as an abnormally used SIM card, thereby causing the SIM card to be Deactivation, technical problems that bring losses to cloud card operators.
  • the first aspect of the embodiments of the present application provides a method for updating status information of a SIM card, which is applied to a server, and includes:
  • the SIM card corresponding to the SIM card release information is marked as an idle card in the frozen state; wherein the idle card in the frozen state is used to indicate that the server will be idle in the frozen state
  • the card is confirmed as a SIM card that cannot be allocated.
  • a receiving unit configured to receive SIM card release information sent by the first user terminal
  • the update unit is configured to mark the SIM card corresponding to the SIM card release information as an idle card in a frozen state according to the SIM card release information; wherein the idle card in the frozen state is used to instruct the server to The idle card in the frozen state is confirmed as a SIM card that cannot be allocated.
  • 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 SIM card that has just been released by the first user terminal is made An idle card marked as frozen; because an idle card in a frozen state is considered by the server to be a SIM card that cannot be allocated, when the server receives the SIM card allocation request sent by the second user terminal, the first user will not be The SIM card that has just been released from the terminal is allocated to the second user terminal, so the SIM card will not be called by different devices at a relatively long distance in a short time. This solves the problem that the normal SIM card is misjudged by the operator as abnormal The problem with the SIM card used.
  • FIG. 1 is a schematic diagram of interaction between a user terminal and a server according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of an implementation process of marking an idle card in a frozen state as an idle card in a non-frozen state according to an embodiment of the present application
  • FIG. 4 is a schematic diagram of the implementation flow of step 301 provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a first 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 second implementation flow of a method for allocating a SIM card according to an embodiment of the present application
  • FIG. 7 is a schematic structural diagram of a device for updating status information of a SIM card provided by an embodiment of the present application.
  • Fig. 8 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • SIM Subscriber Identity module (user identity module) card refers to the smart card used by the user terminal, which stores user identification data, authentication algorithm and key, etc., used to identify and authenticate the user terminal before the user terminal accesses the communication network. right. 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 updating SIM card status information, which can solve the problem that a normal SIM card is misjudged by an operator as an abnormally used SIM card.
  • the deactivation of the SIM card caused technical problems for 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 may send a SIM card allocation request to the server 13 through a mobile communication network or other network (for example, a WIFI network) 12; after receiving the SIM card allocation request sent by the user terminal 11, the server 13 may allocate a non-SIM card to the user terminal 11 An idle card in a frozen state; after the SIM card is successfully allocated, the user terminal 11 can register with the operator to the network, and then access the communication network.
  • a mobile communication network or other network for example, a WIFI network
  • the user terminal 11 After the user terminal 11 completes the use of the SIM card, it can release the SIM card and send SIM card release information to the server 13 through the mobile communication network or other networks 12; the server 13 receives the SIM card release information sent by the user terminal 11,
  • the use status of the SIM card can be updated according to the method for updating the status information of the SIM card provided in this application.
  • 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 updating SIM card status information provided by an embodiment of the present application.
  • This method can be applied to the server shown in Figure 1 above, and is determined by the SIM card status information configured on the server.
  • the update device execution is applicable to the situation where the normal use of the SIM card is misjudged by the operator as an abnormal use of the SIM card, which causes the SIM card to be deactivated and causes losses to the cloud card operator.
  • the SIM card allocation method may include step 201 to step 202.
  • Step 201 Receive SIM card release information sent by the first user terminal.
  • the above-mentioned SIM card release information is the information sent by the first user terminal to the server when the first user terminal releases the SIM card corresponding to the SIM card release information, and the SIM card release information is used to instruct the server to release the SIM card corresponding to the SIM card release information.
  • the status of use is updated.
  • 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.
  • Step 202 Mark the SIM card corresponding to the SIM card release information as an idle card in a frozen state according to the SIM card release information.
  • the server After receiving the SIM card release information sent by the first user terminal, the server will mark the SIM card corresponding to the SIM card release information as an idle card; at this time, if the second user terminal is farther away from the first terminal Sending a SIM card allocation request to the server, the server can allocate the SIM card to the second user terminal, which may cause the operator to misjudge the SIM card as an abnormally used SIM card.
  • the server may mark the SIM card corresponding to the SIM card release information as an idle card in a frozen state; wherein, the above-mentioned idle card in the frozen state is used for Instruct the server to confirm the idle card in the frozen state as a SIM card that cannot be allocated, that is, any second user terminal sends a SIM card allocation request to the server, and the server will not allocate the SIM card to the second user terminal, thereby avoiding the problem.
  • the SIM card was misjudged by the operator as an abnormally used SIM card.
  • the server can perform real-time monitoring or regular scanning of the status information of the SIM card stored in the database, When the use state of the idle card in the frozen state is updated to the frozen state and the accumulated time period reaches the frozen time period that the SIM card needs to be frozen, the idle card in the frozen state can be marked as an idle card in the non-frozen state, so that the SIM card The card can be allocated again.
  • the method includes: step 301 to step 302.
  • Step 301 Obtain the freezing duration for which the SIM card needs to be frozen.
  • Step 302 When the accumulated time period during which the use state of the SIM card is updated to the frozen state reaches the frozen time period for which the SIM card needs to be frozen, mark the SIM card as an idle card in a non-frozen state.
  • the SIM card status information stored in the database of the server is searched according to the SIM card allocation request, and the idle card in the non-frozen state is allocated to the second user terminal, so that the idle card in the frozen state is released
  • the SIM card in the near future will not be allocated to the second user terminal, which solves the problem that the normal use of the SIM card is misjudged by the operator as an abnormal use of the SIM card.
  • the foregoing allocation unit is also specifically used for:
  • the allocation priority of the idle card in the non-frozen state is calculated according to the attribute information of the idle card in the non-frozen state and the distribution priority weight corresponding to each type of attribute information in the attribute information.
  • the specific working process of the device 700 for updating the status information of the SIM card described above may refer to the corresponding process of the method described in FIG. 1 to FIG. 6, which will not be repeated here.
  • the server 8 may include a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and running on the processor 80, such as a SIM card allocation program.
  • the processor 80 executes the computer program 82, the steps in the foregoing embodiments of the SIM card allocation method are implemented, for example, steps 201 to 202 shown in FIG. 2.
  • the processor 80 executes the computer program 82, the functions of the modules/units in the foregoing device embodiments, for example, the functions of the units 701 to 702 shown in FIG. 7 are realized.
  • each unit is used to receive the SIM card release information sent by the first user terminal; the update unit is used to release the SIM card according to the Information, the SIM card corresponding to the SIM card release information is marked as an idle card in a frozen state; wherein the idle card in the frozen state is used to instruct the server to confirm the idle card in the frozen state as unassignable SIM card.
  • the server may be a local server or a cloud server.
  • the server may include, but is not limited to, a processor 80 and a memory 81.
  • FIG. 8 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 80 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, a digital SIM card distributor (Digital Signal Processor, DSP), and an application specific integrated circuit (Application Specific Integrated Circuit). Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates 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 81 may be an internal storage unit of the server, such as a hard disk or memory of the server.
  • the memory 81 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), Secure Digital (Secure Digital, SD) card, flash card (Flash Card), etc.
  • the memory 81 may also include both an internal storage unit of the server and an external storage device.
  • the memory 81 is used to store the computer program and other programs and data required by the server.
  • the memory 81 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 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 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 (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.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present application is applicable to the technical field of SIM cards, and provides a method and a device for updating status information of a SIM card, a server and a computer-readable storage medium. The method for updating status information of a SIM card is applied to a server, and comprises: receiving SIM card release information sent by a first user terminal; and marking, according to the SIM card release information, a SIM card corresponding to the SIM card release information as an idle card in a frozen state. The idle card in a frozen state is used for instructing the server to confirm the idle card in a frozen state as a SIM card that cannot be allocated, and accordingly the SIM card will not be called by different devices at a long distance in a short time, solving the technical problem that a normally used SIM card is misdetermined as an anomalously used SIM card by an operator, and thus the SIM card is deactivated, which brings about losses to a cloud card operator.

Description

一种SIM卡状态信息的更新方法、装置和服务器Method, device and server for updating status information of SIM card
本申请要求于2019年12月18日在中国专利局提交的、申请号为201911310465.6的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with application number 201911310465.6 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 technical field of SIM cards, and in particular relates to a method, device and server for updating status information of a SIM card.
背景技术Background technique
SIM(subscriber identity module,用户身份模块)卡是指用户终端所使用的智能卡,其中存储有用户身份识别数据、鉴权算法及密钥等,用来在用户终端接入通讯网络前对用户终端进行识别和鉴权。若用户终端固定使用一张SIM卡,很容易出现信号差、漫游费用高等问题。SIM(subscriber Identity module (user identity module) card refers to the smart card used by the user terminal, which stores user identification data, authentication algorithm and key, etc., used to identify and authenticate the user terminal before the user terminal accesses the communication network. right. 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 updating the status information of a SIM card, which can solve the problem that a normal SIM card is misjudged by an operator as an abnormally used SIM card, thereby causing the SIM card to be Deactivation, 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 updating status information of a SIM card, which is applied to a server, and includes:
接收第一用户终端发送的SIM卡释放信息;Receiving the SIM card release information sent by the first user terminal;
根据所述SIM卡释放信息,将所述SIM卡释放信息对应的SIM卡标记为冻结状态的空闲卡;其中,所述冻结状态的空闲卡用于指示所述服务器将处于所述冻结状态的空闲卡确认为不可以分配的SIM卡。According to the SIM card release information, the SIM card corresponding to the SIM card release information is marked as an idle card in the frozen state; wherein the idle card in the frozen state is used to indicate that the server will be idle in the frozen state The card is confirmed as a SIM card that cannot be allocated.
本申请实施例第二方面提供的一种SIM卡状态信息的更新装置,配置于服务器,包括:The device for updating SIM card status information provided in the second aspect of the embodiments of the present application is configured on a server and includes:
接收单元,用于接收第一用户终端发送的SIM卡释放信息;A receiving unit, configured to receive SIM card release information sent by the first user terminal;
更新单元,用于根据所述SIM卡释放信息,将所述SIM卡释放信息对应的SIM卡标记为冻结状态的空闲卡;其中,所述冻结状态的空闲卡用于指示所述服务器将所述冻结状态的空闲卡确认为不可以分配的SIM卡。The update unit is configured to mark the SIM card corresponding to the SIM card release information as an idle card in a frozen state according to the SIM card release information; wherein the idle card in the frozen state is used to instruct the server to The idle card in the frozen state is confirmed as a SIM card that cannot be allocated.
本申请实施例第三方面提供一种服务器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述方法的步骤。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.
本申请实施例中,通过接收第一用户终端发送的SIM卡释放信息,并将所述SIM卡释放信息对应的SIM卡标记为冻结状态的空闲卡;使得第一用户终端刚释放不久的SIM卡被标记为冻结状态的空闲卡;由于冻结状态的空闲卡是被服务器认为不可以分配的SIM卡,因此,在服务器接收到第二用户终端发送的SIM卡分配请求时,不会将第一用户终端刚释放不久的SIM卡分配给第二用户终端,因而SIM卡不会出现在短时间内被处于较远距离的不同设备调用的情况,解决了正常使用的SIM卡被运营商误判为异常使用的SIM卡的问题。In the embodiment of the present application, by receiving the SIM card release information sent by the first user terminal, and marking the SIM card corresponding to the SIM card release information as an idle card in a frozen state; the SIM card that has just been released by the first user terminal is made An idle card marked as frozen; because an idle card in a frozen state is considered by the server to be a SIM card that cannot be allocated, when the server receives the SIM card allocation request sent by the second user terminal, the first user will not be The SIM card that has just been released from the terminal is allocated to the second user terminal, so the SIM card will not be called by different devices at a relatively long distance in a short time. This solves the problem that the normal SIM card is misjudged by the operator as abnormal The problem with the SIM card used.
附图说明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 needed 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 updating SIM card status information provided by an embodiment of the present application;
图3是本申请实施例提供的将冻结状态的空闲卡标记为非冻结状态的空闲卡的实现流程示意图;FIG. 3 is a schematic diagram of an implementation process of marking an idle card in a frozen state as an idle card in a non-frozen state according to an embodiment of the present application;
图4是本申请实施例提供的步骤301的实现流程示意图;FIG. 4 is a schematic diagram of the implementation flow of step 301 provided by an embodiment of the present application;
图5是本申请实施例提供的一种SIM卡分配方法的第一实现流程示意图;FIG. 5 is a schematic diagram of a first 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 second implementation flow of a method for allocating a SIM card according to an embodiment of the present application;
图7是本申请实施例提供的一种SIM卡状态信息的更新装置的结构示意图;FIG. 7 is a schematic structural diagram of a device for updating status information of a SIM card provided by an embodiment of the present application;
图8是本申请实施例提供的服务器的结构示意图。Fig. 8 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卡,很容易出现信号差、漫游费用高等问题。SIM(subscriber Identity module (user identity module) card refers to the smart card used by the user terminal, which stores user identification data, authentication algorithm and key, etc., used to identify and authenticate the user terminal before the user terminal accesses the communication network. right. 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 updating SIM card status information, which can solve the problem that a normal SIM card is misjudged by an operator as an abnormally used SIM card. The deactivation of the SIM card caused technical problems for 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卡分配请求之后,可以向用户终端11分配非冻结状态的空闲卡;SIM卡分配成功后,用户终端11可以向运营商注册网络,进而接入通讯网络。在用户终端11完成对SIM卡的使用后,可以释放该SIM卡并通过移动通信网络或其他网络12向服务器13发送SIM卡释放信息;服务器13在接收到用户终端11发送的SIM卡释放信息,可以根据本申请提供的SIM卡状态信息的更新方法对SIM卡的使用状态进行更新。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 may send a SIM card allocation request to the server 13 through a mobile communication network or other network (for example, a WIFI network) 12; after receiving the SIM card allocation request sent by the user terminal 11, the server 13 may allocate a non-SIM card to the user terminal 11 An idle card in a frozen state; after the SIM card is successfully allocated, the user terminal 11 can register with the operator to the network, and then access the communication network. After the user terminal 11 completes the use of the SIM card, it can release the SIM card and send SIM card release information to the server 13 through the mobile communication network or other networks 12; the server 13 receives the SIM card release information sent by the user terminal 11, The use status of the SIM card can be updated according to the method for updating the status information of the SIM card provided in this application.
具体的,上述用户终端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至步骤202。Figure 2 shows a schematic diagram of the implementation process of a method for updating SIM card status information provided by an embodiment of the present application. This method can be applied to the server shown in Figure 1 above, and is determined by the SIM card status information configured on the server. The update device execution is applicable to the situation where the normal use of the SIM card is misjudged by the operator as an abnormal use of the SIM card, which causes the SIM card to be deactivated and causes losses to the cloud card operator. The SIM card allocation method may include step 201 to step 202.
步骤201,接收第一用户终端发送的SIM卡释放信息。Step 201: Receive SIM card release information sent by the first user terminal.
其中,上述SIM卡释放信息是第一用户终端在释放SIM卡释放信息对应的SIM卡时,向服务器发送的信息,并且,该SIM卡释放信息用于指示服务器对SIM卡释放信息对应的SIM卡的使用状态进行更新。Wherein, the above-mentioned SIM card release information is the information sent by the first user terminal to the server when the first user terminal releases the SIM card corresponding to the SIM card release information, and the SIM card release information is used to instruct the server to release the SIM card corresponding to the SIM card release information. The status of use is updated.
在本申请的一些实施方式中,上述SIM卡释放信息可以包括SIM卡归属机构信息、用户终端设备标识信息、分配国家信息、释放时间信息,以及释放位置信息等信息。In some embodiments of the present application, 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.
步骤202,根据SIM卡释放信息,将SIM卡释放信息对应的SIM卡标记为冻结状态的空闲卡。Step 202: Mark the SIM card corresponding to the SIM card release information as an idle card in a frozen state according to the SIM card release information.
一般地,服务器在接收到第一用户终端发送的SIM卡释放信息后,会将SIM卡释放信息对应的SIM卡标记为空闲卡;此时,若与第一终端距离较远的第二用户终端向服务器发送SIM卡分配请求,服务器可以把该SIM卡分配给第二用户终端,进而可能导致该SIM卡被运营商误判为异常使用的SIM卡。Generally, after receiving the SIM card release information sent by the first user terminal, the server will mark the SIM card corresponding to the SIM card release information as an idle card; at this time, if the second user terminal is farther away from the first terminal Sending a SIM card allocation request to the server, the server can allocate the SIM card to the second user terminal, which may cause the operator to misjudge the SIM card as an abnormally used SIM card.
本申请实施方式中,服务器在接收到第一用户终端发送的SIM卡释放信息后,可以将SIM卡释放信息对应的SIM卡标记为冻结状态的空闲卡;其中,上述冻结状态的空闲卡用于指示服务器将冻结状态的空闲卡确认为不可以分配的SIM卡,即,任一第二用户终端向服务器发送SIM卡分配请求,服务器不会将该SIM卡分配给第二用户终端,进而避免该SIM卡被运营商误判为异常使用的SIM卡。In the embodiment of the present application, after receiving the SIM card release information sent by the first user terminal, the server may mark the SIM card corresponding to the SIM card release information as an idle card in a frozen state; wherein, the above-mentioned idle card in the frozen state is used for Instruct the server to confirm the idle card in the frozen state as a SIM card that cannot be allocated, that is, any second user terminal sends a SIM card allocation request to the server, and the server will not allocate the SIM card to the second user terminal, thereby avoiding the problem. The SIM card was misjudged by the operator as an abnormally used SIM card.
需要说明的是,当SIM卡被标记为冻结状态的空闲卡达到一定的时长后,再次将该SIM卡分配给第二用户终端时,由于此时与上次释放的时间点距离足够长的时间,将不会出现SIM卡被运营商误判为异常使用的SIM卡的情况,因此,在本申请的一些实施方式中,服务器可以对数据库中存储的SIM卡状态信息进行实时监控或者定时扫描,当冻结状态的空闲卡的使用状态被更新为冻结状态的累积时长达到该SIM卡需要被冻结的冻结时长时,可以将该冻结状态的空闲卡标记为非冻结状态的空闲卡,进而使得该SIM卡可以再次被分配。It should be noted that when the SIM card is marked as frozen and the idle card reaches a certain period of time, when the SIM card is allocated to the second user terminal again, because the time is long enough from the time of the last release. , The SIM card will not be misjudged by the operator as an abnormally used SIM card. Therefore, in some embodiments of this application, the server can perform real-time monitoring or regular scanning of the status information of the SIM card stored in the database, When the use state of the idle card in the frozen state is updated to the frozen state and the accumulated time period reaches the frozen time period that the SIM card needs to be frozen, the idle card in the frozen state can be marked as an idle card in the non-frozen state, so that the SIM card The card can be allocated again.
具体的,如图3所示,在上述根据SIM卡释放信息,将SIM卡释放信息对应的SIM卡标记为冻结状态的空闲卡之后,包括:步骤301至步骤302。Specifically, as shown in FIG. 3, after the SIM card corresponding to the SIM card release information is marked as an idle card in the frozen state according to the SIM card release information, the method includes: step 301 to step 302.
步骤301,获取SIM卡需要被冻结的冻结时长。Step 301: Obtain the freezing duration for which the SIM card needs to be frozen.
步骤302,在SIM卡的使用状态被更新为冻结状态的累积时长达到SIM卡需要被冻结的冻结时长时,将SIM卡标记为非冻结状态的空闲卡。Step 302: When the accumulated time period during which the use state of the SIM card is updated to the frozen state reaches the frozen time period for which the SIM card needs to be frozen, mark the SIM card as an idle card in a non-frozen state.
其中,上述SIM卡需要被冻结的冻结时长是指运营商认为的SIM卡上一次被释放到该SIM卡可以再次被分配之间需要经过的时间长度。The above-mentioned freezing time period during which the SIM card needs to be frozen refers to the length of time that the operator considers to pass between when the SIM card was released last time and when the SIM card can be allocated again.
在本申请的一些实施方式中,服务器可以将使用状态被更新为冻结状态的累积时长达到SIM卡需要被冻结的冻结时长的SIM卡标记为非冻结状态的空闲卡;其中,上述非冻结状态的空闲卡用于指示服务器将非冻结状态的空闲卡确认为可以分配的SIM卡。In some embodiments of the present application, the server may mark the SIM card whose use status is updated to the frozen state for the accumulated time period that reaches the frozen time required for the SIM card to be frozen as an idle card in the non-frozen state; wherein, the above-mentioned non-frozen state The idle card is used to instruct the server to confirm the non-frozen idle card as a SIM card that can be allocated.
当SIM卡的使用状态被更新为冻结状态的累积时长达到SIM卡需要被冻结的冻结时长时,表示该SIM卡已经被释放足够长的时间,因此,若将该SIM卡分配给第二用户终端,该SIM卡不会被运营商误判为异常使用的SIM卡,即,该SIM卡可以再次被分配。When the use state of the SIM card is updated to the frozen state and the accumulated time period reaches the freezing time period that the SIM card needs to be frozen, it means that the SIM card has been released for a long enough time. Therefore, if the SIM card is allocated to the second user terminal , The SIM card will not be misjudged by the operator as an abnormally used SIM card, that is, the SIM card can be allocated again.
需要说明的是,若上述SIM卡释放信息中携带有SIM卡的释放位置,则上述SIM卡需要被冻结的冻结时长可以根据SIM卡释放信息中携带的SIM卡的释放位置进行计算。It should be noted that if the release position of the SIM card is carried in the SIM card release information, the freezing duration for which the SIM card needs to be frozen can be calculated according to the release position of the SIM card carried in the SIM card release information.
具体的,如图4所示,在本申请的一些实施方式中,上述获取SIM卡需要被冻结的冻结时长,可以包括:步骤401至步骤403。Specifically, as shown in FIG. 4, in some embodiments of the present application, obtaining the freezing time length for which the SIM card needs to be frozen may include: step 401 to step 403.
步骤401,获取SIM卡释放信息中携带的SIM卡的释放位置。Step 401: Acquire the release position of the SIM card carried in the SIM card release information.
步骤402,计算SIM卡的释放位置与SIM卡下一次可能被使用的位置之间的距离的最大值。Step 402: Calculate the maximum value of the distance between the release position of the SIM card and the position where the SIM card may be used next time.
例如,当上述服务器每次都是为用户终端分配同一省份的SIM卡时,则一张释放位置为深圳市的SIM卡计算得到的SIM卡的释放位置与SIM卡下一次可能被使用的位置之间的距离的最大值为深圳市与广东省整个边界线上任一点的距离的最大值。For example, when the above-mentioned server allocates a SIM card from the same province to the user terminal each time, the release position of a SIM card calculated from a SIM card in Shenzhen is between the release position of the SIM card and the position where the SIM card may be used next time. The maximum value of the distance between Shenzhen and Guangdong Province is the maximum value of any point on the entire boundary line between Shenzhen and Guangdong.
步骤403,根据SIM卡的释放位置与SIM卡下一次可能被使用的位置之间的距离的最大值,计算SIM卡需要被冻结的冻结时长。Step 403: According to the maximum value of the distance between the release position of the SIM card and the position where the SIM card may be used next time, calculate the freezing time for which the SIM card needs to be frozen.
在本申请的一些实施方式中,上述服务器可以计算SIM卡的释放位置与SIM卡下一次可能被使用的位置之间的距离的最大值,SIM卡的释放位置与SIM卡下一次可能被使用的位置之间的距离的最大值越大,表示需要较长的时间才能保证该SIM卡不会被运营商误判为异常使用的SIM卡,因此,计算得到的SIM卡需要被冻结的冻结时长越长;SIM卡的释放位置与SIM卡下一次可能被使用的位置之间的距离的最大值越小,则表示需要较短的时间即可保证该SIM卡不会被运营商误判为异常使用的SIM卡,因此,计算得到的SIM卡需要被冻结的冻结时长越短。In some embodiments of the present application, the above-mentioned server may calculate the maximum value of the distance between the release position of the SIM card and the position where the SIM card may be used next time, and the release position of the SIM card and the position where the SIM card may be used next time. The greater the maximum distance between the locations, the longer it takes to ensure that the SIM card will not be misjudged by the operator as an abnormally used SIM card. Therefore, the calculated freezing time for the SIM card to be frozen is longer. Long; the smaller the maximum value of the distance between the release position of the SIM card and the position where the SIM card may be used next time, it means that a shorter time is needed to ensure that the SIM card will not be misjudged by the operator as abnormal use Therefore, the calculated freezing time for the SIM card to be frozen is shorter.
具体的,上述根据SIM卡的释放位置与SIM卡下一次可能被使用的位置之间的距离的最大值,计算SIM卡需要被冻结的冻结时长可以包括:根据F=a*L计算SIM卡需要被冻结的冻结时长;其中,F表示SIM卡需要被冻结的冻结时长;L表示SIM卡的释放位置与SIM卡下一次可能被使用的位置之间的距离的最大值;a为SIM卡运营商根据实际应用设置的参数。Specifically, according to the maximum value of the distance between the release position of the SIM card and the position where the SIM card may be used next time, calculating the freezing duration for the SIM card to be frozen may include: calculating the requirement of the SIM card according to F=a*L Frozen freezing duration; where F represents the freezing duration for the SIM card to be frozen; L represents the maximum distance between the release position of the SIM card and the position where the SIM card may be used next time; a is the SIM card operator Set the parameters according to the actual application.
本申请的实施例中,通过根据SIM卡的释放位置与SIM卡下一次可能被使用的位置之间的距离的最大值,计算SIM卡需要被冻结的冻结时长,使得在保证SIM卡不会被运营商误判为异常使用的SIM卡的同时,可以对SIM卡需要被冻结的冻结时长根据SIM卡不同的释放位置进行动态调整,而不是固定地为SIM卡设置一个相同且较长的冻结时长(例如,冻结时长为所有SIM卡的释放位置与SIM卡下一次可能被使用的位置之间的距离的最大值中的最大值),缩短了SIM卡上一次被释放与可以再次被分配之间的时长,提高了SIM卡的利用率。In the embodiment of the present application, the maximum value of the distance between the release position of the SIM card and the position where the SIM card may be used next time is used to calculate the freezing time that the SIM card needs to be frozen, so as to ensure that the SIM card will not be frozen. When the operator misjudges the SIM card used abnormally, it can dynamically adjust the freezing time for the SIM card to be frozen according to the different release positions of the SIM card, instead of fixedly setting the same and longer freezing time for the SIM card (For example, the freeze duration is the maximum value of the maximum distance between the release position of all SIM cards and the position where the SIM card may be used next time), which shortens the time between the last time the SIM card is released and the time it can be allocated again The duration of time has improved the utilization rate of the SIM card.
在本申请的一些实施方式中,上述获取SIM卡需要被冻结的冻结时长还可以包括:根据SIM卡释放信息中携带的SIM卡的释放位置所在分配区域的区域信息,计算SIM卡需要被冻结的冻结时长。In some embodiments of the present application, acquiring the freezing duration for which the SIM card needs to be frozen may also include: calculating the amount of time the SIM card needs to be frozen according to the area information of the allocation area where the release position of the SIM card is carried in the SIM card release information. Freeze time.
其中,上述区域信息可以包括:区域面积大小、区域边界跨度等信息。Wherein, the above-mentioned area information may include: area size, area boundary span and other information.
需要说明的是,区域面积越大,表示需要较长的时间才能保证该SIM卡不会被运营商误判为异常使用的SIM卡,因此,计算得到的SIM卡需要被冻结的冻结时长越长;同样的,区域边界跨度越大,表示需要较长的时间才能保证该SIM卡不会被运营商误判为异常使用的SIM卡,因此,计算得到的SIM卡需要被冻结的冻结时长越长。It should be noted that the larger the area, the longer it takes to ensure that the SIM card will not be misjudged by the operator as an abnormally used SIM card. Therefore, the calculated SIM card needs to be frozen for a longer period of time. ; Similarly, the larger the area boundary span, the longer it takes to ensure that the SIM card will not be misjudged by the operator as an abnormally used SIM card. Therefore, the calculated SIM card needs to be frozen for a longer period of time. .
并且,由于上述SIM卡需要被冻结的冻结时长是根据SIM卡释放信息中携带的SIM卡的释放位置所在分配区域的区域信息计算得到的,因此,同一个分配区域的SIM卡在释放后需要被冻结的冻结时长相同。In addition, since the freezing time for the SIM card to be frozen is calculated according to the area information of the allocation area where the release position of the SIM card is carried in the SIM card release information, therefore, the SIM cards in the same allocation area need to be released after being released. The freezing duration of freezing is the same.
例如,当上述服务器每次都是为用户终端分配同一省份的SIM卡时,释放位置为广州的SIM卡与释放位置为深圳的SIM卡在释放后需要被冻结的冻结时长是相同的;释放位置为深圳的SIM卡与释放位置为北京的SIM卡在释放后需要被冻结的冻结时长是不同的,并且,由于广东省的面积以及边界跨度比北京大,因此,释放位置为深圳的SIM卡在释放后需要被冻结的冻结时长比释放位置为北京的SIM卡在释放后需要被冻结的冻结时长更长。For example, when the above-mentioned server allocates a SIM card from the same province to the user terminal every time, the freeze duration for the SIM card with the release location in Guangzhou and the SIM card with the release location in Shenzhen to be frozen after release is the same; the release location The freezing time for a SIM card in Shenzhen and a SIM card with a release location in Beijing that needs to be frozen after release is different. Moreover, since the area and border span of Guangdong Province is larger than that of Beijing, the SIM card in the release location is Shenzhen. The freezing time that needs to be frozen after release is longer than the freezing time that a SIM card whose release position is Beijing needs to be frozen after being released.
本申请的实施例中,通过获取SIM卡需要被冻结的冻结时长,并在SIM卡的使用状态被更新为冻结状态的累积时长达到SIM卡需要被冻结的冻结时长时,将SIM卡标记为非冻结状态的空闲卡;使得服务器可以将该SIM卡分配给第二用户终端,实现了同一张SIM卡的多次分配。In the embodiment of the present application, by obtaining the freezing duration for which the SIM card needs to be frozen, and when the accumulated duration of the SIM card's use status is updated to the frozen state reaches the freezing duration for which the SIM card needs to be frozen, the SIM card is marked as non-free. An idle card in a frozen state; enabling the server to allocate the SIM card to the second user terminal, realizing multiple allocations of the same SIM card.
在本申请的一些实施方式中,如图5所示,服务器可以为第二用户终端分配非冻结状态的空闲卡;具体可以包括步骤501至步骤503。In some embodiments of the present application, as shown in FIG. 5, the server may allocate an idle card in a non-frozen state to the second user terminal; specifically, it may include step 501 to step 503.
其中,上述第二用户终端可以包括第一用户终端。Wherein, the above-mentioned second user terminal may include a first user terminal.
步骤501,接收第二用户终端发送的SIM卡分配请求。Step 501: Receive a SIM card allocation request sent by a second user terminal.
步骤502,根据SIM卡分配请求查找服务器的数据库中存储的SIM卡状态信息,确定服务器是否存在非冻结状态的空闲卡。Step 502: Search the SIM card status information stored in the database of the server according to the SIM card allocation request, and determine whether the server has an idle card in a non-frozen state.
步骤503,若服务器存在非冻结状态的空闲卡,则将非冻结状态的空闲卡分配给第二用户终端。Step 503: If there is an idle card in the non-frozen state in the server, the idle card in the non-frozen state is allocated to the second user terminal.
其中,上述SIM卡分配请求携带第二用户终端的位置信息;该位置信息可以包括第二用户终端的经纬度信息或者基站的位置信息。Wherein, the aforementioned SIM card allocation request carries the location information of the second user terminal; the location information may include the latitude and longitude information of the second user terminal or the location information of the base station.
具体的,在第二用户终端通过移动通信网络或其他网络向服务器发送SIM卡分配请求时,若该第二用户终端支持全球定位系统(Global Positioning System,GPS),则可以通过全球定位系统获取第二用户终端的经纬度信息,并在SIM卡分配请求中携带第二用户终端的经纬度信息;若该第二用户终端不支持全球定位系统,则可以在第二用户终端进行搜网的过程中获取基站的位置信息,并在SIM卡分配请求中携带基站的位置信息。Specifically, when the second user terminal sends a SIM card allocation request to the server through the mobile communication network or other networks, if the second user terminal supports the Global Positioning System (Global Positioning System) Positioning System, GPS), the longitude and latitude information of the second user terminal can be obtained through the global positioning system, and the longitude and latitude information of the second user terminal can be carried in the SIM card allocation request; if the second user terminal does not support the global positioning system, then The location information of the base station may be acquired during the network search by the second user terminal, and the location information of the base station may be carried in the SIM card allocation request.
其中,上述基站的位置信息可以包括基站的移动设备网络代码(Mobile Network Code,MNC)、移动设备国家代码(Mobile Country Code,MCC)、位置区码(Location Area Code,LAC)以及小区编码(Cell ID)。Wherein, the location information of the base station may include the mobile network code (Mobile Network Code, MNC) of the base station, and the Mobile Country Code (Mobile Country Code) of the base station. Code, MCC), Location Area Code (LAC), and Cell ID (Cell ID).
需要说明的是,上述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.
在本申请的一些实施方式中,上述服务器的数据库中可以存储SIM卡状态信息,该SIM卡状态信息表示SIM卡当前的使用状态;例如,当SIM卡被分配给用户终端且未被释放时,该SIM卡为非冻结状态的非空闲卡;当SIM卡被释放并且使用状态被更新为冻结状态的累积时长未达到所述SIM卡需要被冻结的冻结时长时,该SIM卡为冻结状态的空闲卡;当SIM卡被释放并且使用状态被更新为冻结状态的累积时长达到所述SIM卡需要被冻结的冻结时长时,该SIM卡为非冻结状态的空闲卡。In some embodiments of the present application, the database of the aforementioned server may store 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-frozen state; when the SIM card is released and the usage status is updated to a frozen state, the accumulated time period does not reach the freezing time period for which the SIM card needs to be frozen, the SIM card is idle in the frozen state Card; when the SIM card is released and the use state is updated to the frozen state for the accumulated time period that the SIM card needs to be frozen, the SIM card is an idle card in a non-frozen state.
因此,在本申请的一些实施方式中,上述服务器可以根据SIM卡分配请求查找服务器的数据库中存储的SIM卡状态信息,确定服务器是否存在非冻结状态的空闲卡,若上述服务器不存在非冻结状态的空闲卡,则可以向第二用户终端发送无卡可分的信息,第二用户终端在接收到该消息后可以重新向服务器发送SIM卡分配请求,或者可以直接重新查询服务器的数据库中存储的SIM卡状态信息,直至服务器存在非冻结状态的空闲卡为止;若服务器存在非冻结状态的空闲卡,则将非冻结状态的空闲卡分配给第二用户终端。Therefore, in some embodiments of the present application, the aforementioned 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 in a non-frozen state, and if the aforementioned server does not have a non-frozen state If you have an idle card, you can send a card-free divisible message to the second user terminal. After receiving the message, the second user terminal can re-send the SIM card allocation request to the server, or can directly re-query the server’s database. Status information of the SIM card until the server has an idle card in the non-frozen state; if the server has an idle card in the non-frozen state, the non-frozen idle card is allocated to the second user terminal.
本申请的实施例中,根据SIM卡分配请求查找服务器的数据库中存储的SIM卡状态信息,并将非冻结状态的空闲卡分配给第二用户终端,使得处于冻结状态的空闲卡,即被释放不久的SIM卡不会被分配给第二用户终端,解决了正常使用的SIM卡被运营商误判为异常使用的SIM卡的问题。In the embodiment of the present application, the SIM card status information stored in the database of the server is searched according to the SIM card allocation request, and the idle card in the non-frozen state is allocated to the second user terminal, so that the idle card in the frozen state is released The SIM card in the near future will not be allocated to the second user terminal, which solves the problem that the normal use of the SIM card is misjudged by the operator as an abnormal use of the SIM card.
在本申请的一些实施方式中,上述将非冻结状态的空闲卡分配给第二用户终端可以根据非冻结状态的空闲卡的属性信息进行分配,其中,该属性信息可以包括非冻结状态的空闲卡的剩余流量大小、套餐有效期、信号强度、通信质量、资费中的一种或多种信息。In some embodiments of the present application, the above-mentioned allocating the idle card in the non-frozen state to the second user terminal may be allocated according to the attribute information of the idle card in the non-frozen state, where the attribute information may include the idle card in the non-frozen state. One or more of the remaining traffic size, package validity period, signal strength, communication quality, tariff.
具体的,如图6所示,上述将非冻结状态的空闲卡分配给第二用户终端,可以包括:步骤601至步骤602。Specifically, as shown in FIG. 6, allocating the idle card in the non-freezing state to the second user terminal may include: step 601 to step 602.
步骤601,获取非冻结状态的空闲卡的属性信息,并根据非冻结状态的空闲卡的属性信息计算非冻结状态的空闲卡的分配优先级。Step 601: Obtain the attribute information of the idle card in the non-frozen state, and calculate the allocation priority of the idle card in the non-frozen state according to the attribute information of the idle card in the non-frozen state.
步骤602,将非冻结状态的空闲卡中分配优先级最高的非冻结状态的空闲卡分配给所述第二用户终端。Step 602: Allocate the idle card in the non-frozen state with the highest allocation priority among the idle cards in the non-frozen state to the second user terminal.
需要说明的是,非冻结状态的空闲卡的剩余流量越多、套餐有效期越长、信号强度越强、通信质量越好、资费越低,表示该非冻结状态的空闲卡更能够满足用户的需求,服务器可以更优先地将该非冻结状态的空闲卡分配给第二用户终端,因此,计算得到的非冻结状态的空闲卡的分配优先级更高。It should be noted that the more remaining traffic of the non-frozen idle card, the longer the package validity period, the stronger the signal strength, the better the communication quality, and the lower the tariff, it means that the non-frozen idle card can better meet the needs of users. , The server can allocate the idle card in the non-frozen state to the second user terminal more preferentially. Therefore, the calculated allocation priority of the idle card in the non-frozen state is higher.
由于在不同的情景下,用户对剩余流量大小、套餐有效期、信号强度、通信质量、资费的要求各不相同,因而服务器在对SIM卡进行分配时需要对不同的属性信息赋予不同的权重;因此,在本申请的一些实施方式中,上述获取非冻结状态的空闲卡的属性信息,根据非冻结状态的空闲卡的属性信息计算非冻结状态的空闲卡的分配优先级,还可以包括:获取非冻结状态的空闲卡的属性信息,以及属性信息中每种属性信息对应的分配优先级权重;根据非冻结状态的空闲卡的属性信息及属性信息中每种属性信息对应的分配优先级权重计算非冻结状态的空闲卡的分配优先级。In different scenarios, users have different requirements for the amount of remaining traffic, package validity, signal strength, communication quality, and tariff. Therefore, the server needs to assign different weights to different attribute information when assigning SIM cards; therefore In some embodiments of the present application, acquiring the attribute information of the idle card in the non-frozen state, and calculating the allocation priority of the idle card in the non-frozen state according to the attribute information of the idle card in the non-frozen state may also include: obtaining the attribute information of the idle card in the non-frozen state. The attribute information of the idle card in the frozen state and the distribution priority weight corresponding to each attribute information in the attribute information; the non-frozen idle card attribute information and the distribution priority weight corresponding to each attribute information in the attribute information are calculated according to the attribute information of the idle card in the non-frozen state and the distribution priority weight corresponding to each attribute information in the attribute information. The allocation priority of an idle card in a frozen state.
其中,上述属性信息中每种属性信息对应的分配优先级权重可以为运营商根据实际应用中用户对剩余流量大小、套餐有效期、信号强度、通信质量、资费的要求的需求,为每种属性信息设置的与每种属性信息对应的分配优先级权重Among them, the distribution priority weight corresponding to each attribute information in the above attribute information can be the operator's requirements for the remaining traffic size, package validity period, signal strength, communication quality, and tariff requirements of users in actual applications, and for each attribute information The assigned priority weight corresponding to each attribute information set
本申请的实施例中,通过计算非冻结状态的空闲卡的分配优先级,并将非冻结状态的空闲卡中分配优先级最高的非冻结状态的空闲卡分配给所述第二用户终端,使得分配给第二用户终端的非冻结状态的空闲卡能够最大程度地满足用户的需求。In the embodiment of the present application, the allocation priority of idle cards in the non-frozen state is calculated, and the idle card in the non-frozen state with the highest allocation priority among the idle cards in the non-frozen state is allocated to the second user terminal, so that The idle card in the non-frozen state allocated to the second user terminal can meet the needs of the user to the greatest extent.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为根据本申请,某些步骤可以采用其它顺序进行。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.
如图7所示为本申请实施例提供配置于服务器的一种SIM卡状态信息的更新装置700的结构示意图,所述SIM卡状态信息的更新装置700可以包括:接收单元701和更新单元702。FIG. 7 is a schematic structural diagram of a SIM card status information updating apparatus 700 configured on a server according to an embodiment of the application. The SIM card status information updating apparatus 700 may include a receiving unit 701 and an updating unit 702.
接收单元701,用于接收第一用户终端发送的SIM卡释放信息;The receiving unit 701 is configured to receive SIM card release information sent by the first user terminal;
更新单元702,用于根据所述SIM卡释放信息,将所述SIM卡释放信息对应的SIM卡标记为冻结状态的空闲卡;其中,所述冻结状态的空闲卡用于指示所述服务器将所述冻结状态的空闲卡确认为不可以分配的SIM卡。The update unit 702 is configured to mark the SIM card corresponding to the SIM card release information as an idle card in a frozen state according to the SIM card release information; wherein the idle card in the frozen state is used to instruct the server to remove all The idle card in the freezing state is confirmed as a SIM card that cannot be allocated.
在本申请的一些实施方式中,上述更新单元702,还具体用于:In some implementation manners of the present application, the above-mentioned update unit 702 is further specifically configured to:
获取所述SIM卡需要被冻结的冻结时长;Acquiring the freezing time period during which the SIM card needs to be frozen;
在所述SIM卡的使用状态被更新为冻结状态的累积时长达到所述SIM卡需要被冻结的冻结时长时,将所述SIM卡标记为非冻结状态的空闲卡;其中,所述非冻结状态的空闲卡用于指示所述服务器将所述非冻结状态的空闲卡确认为可以分配的SIM卡。When the accumulated time period during which the use state of the SIM card is updated to the frozen state reaches the frozen time period for which the SIM card needs to be frozen, the SIM card is marked as an idle card in a non-frozen state; wherein, the non-frozen state The idle card in is used to instruct the server to confirm the idle card in the non-frozen state as a SIM card that can be allocated.
在本申请的一些实施方式中,上述SIM卡状态信息的更新装置还包括计算单元,用于:In some embodiments of the present application, the device for updating the status information of the SIM card further includes a computing unit, configured to:
获取所述SIM卡释放信息中携带的SIM卡的释放位置;Acquiring the release position of the SIM card carried in the SIM card release information;
计算所述SIM卡的释放位置与所述SIM卡下一次可能被使用的位置之间的距离的最大值;Calculating the maximum value of the distance between the release position of the SIM card and the position where the SIM card may be used next time;
根据所述SIM卡的释放位置与所述SIM卡下一次可能被使用的位置之间的距离的最大值,计算所述SIM卡需要被冻结的冻结时长。According to the maximum value of the distance between the release position of the SIM card and the position where the SIM card may be used next time, the freezing time period during which the SIM card needs to be frozen is calculated.
在本申请的一些实施方式中,上述SIM卡状态信息的更新装置还包括分配单元,用于:In some embodiments of the present application, the device for updating the status information of the SIM card further includes an allocating unit, configured to:
接收所述第二用户终端发送的SIM卡分配请求;Receiving a SIM card allocation request sent by the second 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 the server has an idle card in a non-frozen state;
若所述服务器存在非冻结状态的空闲卡,则将所述非冻结状态的空闲卡分配给所述第二用户终端。If there is an idle card in the non-frozen state in the server, the idle card in the non-frozen state is allocated to the second user terminal.
在本申请的一些实施方式中,上述分配单元,还具体用于:In some implementation manners of the present application, the foregoing allocation unit is also specifically used for:
获取所述非冻结状态的空闲卡的属性信息,并根据所述非冻结状态的空闲卡的属性信息计算所述非冻结状态的空闲卡的分配优先级;所述非冻结状态的空闲卡的属性信息包括所述非冻结状态的空闲卡的剩余流量大小、套餐有效期、信号强度、通信质量、资费中的一种或多种信息;Acquire the attribute information of the idle card in the non-frozen state, and calculate the allocation priority of the idle card in the non-frozen state according to the attribute information of the idle card in the non-frozen state; the attributes of the idle card in the non-frozen state The information includes one or more of the remaining data size of the idle card in the non-frozen state, the validity period of the package, the signal strength, the communication quality, and the tariff;
将所述非冻结状态的空闲卡中分配优先级最高的非冻结状态的空闲卡分配给所述第二用户终端。Allocating the idle card in the non-frozen state with the highest allocation priority among the idle cards in the non-frozen state to the second user terminal.
在本申请的一些实施方式中,上述分配单元,还具体用于:In some implementation manners of the present application, the foregoing allocation unit is also specifically used for:
获取所述非冻结状态的空闲卡的属性信息,以及所述属性信息中每种属性信息对应的分配优先级权重;Acquiring the attribute information of the idle card in the non-frozen state, and the distribution priority weight corresponding to each attribute information in the attribute information;
根据所述非冻结状态的空闲卡的属性信息及所述属性信息中每种属性信息对应的分配优先级权重计算所述非冻结状态的空闲卡的分配优先级。The allocation priority of the idle card in the non-frozen state is calculated according to the attribute information of the idle card in the non-frozen state and the distribution priority weight corresponding to each type of attribute information in the attribute information.
需要说明的是,为描述的方便和简洁,上述描述的SIM卡状态信息的更新装置700的具体工作过程,可以参考图1至图6所述方法的对应过程,在此不再赘述。It should be noted that, for the convenience and conciseness of the description, the specific working process of the device 700 for updating the status information of the SIM card described above may refer to the corresponding process of the method described in FIG. 1 to FIG. 6, which will not be repeated here.
如图8所示,为本申请实施例提供的一种服务器的示意图。该服务器8可以包括:处理器80、存储器81以及存储在所述存储器81中并可在所述处理器80上运行的计算机程序82,例如SIM卡分配程序。所述处理器80执行所述计算机程序82时实现上述各个SIM卡分配方法实施例中的步骤,例如图2所示的步骤201至202。或者,所述处理器80执行所述计算机程序82时实现上述各装置实施例中各模块/单元的功能,例如图7所示单元701至702的功能。As shown in FIG. 8, a schematic diagram of a server provided by an embodiment of this application. The server 8 may include a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and running on the processor 80, such as a SIM card allocation program. When the processor 80 executes the computer program 82, the steps in the foregoing embodiments of the SIM card allocation method are implemented, for example, steps 201 to 202 shown in FIG. 2. Alternatively, when the processor 80 executes the computer program 82, the functions of the modules/units in the foregoing device embodiments, for example, the functions of the units 701 to 702 shown in FIG. 7 are realized.
所述计算机程序可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器81中,并由所述处理器80执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述服务器中的执行过程。例如,所述计算机程序可以被分割成接收单元和更新单元,各单元具体功能如下:接收单元,用于接收第一用户终端发送的SIM卡释放信息;更新单元,用于根据所述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 81 and executed by the processor 80 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 and an update unit. The specific functions of each unit are as follows: the receiving unit is used to receive the SIM card release information sent by the first user terminal; the update unit is used to release the SIM card according to the Information, the SIM card corresponding to the SIM card release information is marked as an idle card in a frozen state; wherein the idle card in the frozen state is used to instruct the server to confirm the idle card in the frozen state as unassignable SIM card.
所述服务器可以是本地服务器,或者是云端服务器。所述服务器可包括,但不仅限于,处理器80、存储器81。本领域技术人员可以理解,图8仅仅是服务器的示例,并不构成对服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述服务器还可以包括输入输出设备、网络接入设备、总线等。The server may be a local server or a cloud server. The server may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art can understand that FIG. 8 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.
所称处理器80可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字SIM卡分配器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 80 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, a digital SIM card distributor (Digital Signal Processor, DSP), and an application specific integrated circuit (Application Specific Integrated Circuit). Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates 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.
所述存储器81可以是所述服务器的内部存储单元,例如服务器的硬盘或内存。所述存储器81也可以是所述服务器的外部存储设备,例如所述服务器上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器81还可以既包括所述服务器的内部存储单元也包括外部存储设备。所述存储器81用于存储所述计算机程序以及所述服务器所需的其他程序和数据。所述存储器81还可以用于暂时地存储已经输出或者将要输出的数据。The memory 81 may be an internal storage unit of the server, such as a hard disk or memory of the server. The memory 81 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), Secure Digital (Secure Digital, SD) card, flash card (Flash Card), etc. Further, the memory 81 may also include both an internal storage unit of the server and an external storage device. The memory 81 is used to store the computer program and other programs and data required by the server. The memory 81 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 (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 updating status information of a SIM card, applied to a server, characterized in that the method for updating status information of the SIM card status information includes:
    接收第一用户终端发送的SIM卡释放信息;Receiving the SIM card release information sent by the first user terminal;
    根据所述SIM卡释放信息,将所述SIM卡释放信息对应的SIM卡标记为冻结状态的空闲卡;其中,所述冻结状态的空闲卡用于指示所述服务器将所述冻结状态的空闲卡确认为不可以分配的SIM卡。According to the SIM card release information, the SIM card corresponding to the SIM card release information is marked as an idle card in a frozen state; wherein the idle card in the frozen state is used to instruct the server to remove the idle card in the frozen state Confirmed as a SIM card that cannot be allocated.
  2. 如权利要求1所述的SIM卡状态信息的更新方法,其特征在于,在所述根据所述SIM卡释放信息,将所述SIM卡释放信息对应的SIM卡标记为冻结状态的空闲卡之后,包括: The method for updating the status information of the SIM card according to claim 1, wherein after the SIM card corresponding to the SIM card release information is marked as an idle card in a frozen state according to the SIM card release information, include:
    获取所述SIM卡需要被冻结的冻结时长;Acquiring the freezing time period during which the SIM card needs to be frozen;
    在所述SIM卡的使用状态被更新为冻结状态的累积时长达到所述SIM卡需要被冻结的冻结时长时,将所述SIM卡标记为非冻结状态的空闲卡;其中,所述非冻结状态的空闲卡用于指示所述服务器将所述非冻结状态的空闲卡确认为可以分配的SIM卡。When the accumulated time period during which the use state of the SIM card is updated to the frozen state reaches the frozen time period for which the SIM card needs to be frozen, the SIM card is marked as an idle card in a non-frozen state; wherein, the non-frozen state The idle card in is used to instruct the server to confirm the idle card in the non-frozen state as a SIM card that can be allocated.
  3. 如权利要求2所述的SIM卡状态信息的更新方法,其特征在于,所述获取所述SIM卡需要被冻结的冻结时长,包括: The method for updating the status information of the SIM card according to claim 2, wherein said acquiring the freezing time length during which the SIM card needs to be frozen comprises:
    获取所述SIM卡释放信息中携带的SIM卡的释放位置;Acquiring the release position of the SIM card carried in the SIM card release information;
    计算所述SIM卡的释放位置与所述SIM卡下一次可能被使用的位置之间的距离的最大值;Calculating the maximum value of the distance between the release position of the SIM card and the position where the SIM card may be used next time;
    根据所述SIM卡的释放位置与所述SIM卡下一次可能被使用的位置之间的距离的最大值,计算所述SIM卡需要被冻结的冻结时长。According to the maximum value of the distance between the release position of the SIM card and the position where the SIM card may be used next time, the freezing time period during which the SIM card needs to be frozen is calculated.
  4. 如权利要求1所述的SIM卡状态信息的更新方法,其特征在于,所述SIM卡状态信息的更新方法还包括: The method for updating the status information of the SIM card according to claim 1, wherein the method for updating the status information of the SIM card further comprises:
    接收所述第二用户终端发送的SIM卡分配请求;Receiving a SIM card allocation request sent by the second 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 the server has an idle card in a non-frozen state;
    若所述服务器存在非冻结状态的空闲卡,则将所述非冻结状态的空闲卡分配给所述第二用户终端。If there is an idle card in the non-frozen state in the server, the idle card in the non-frozen state is allocated to the second user terminal.
  5. 如权利要求4所述的SIM卡状态信息的更新方法,其特征在于,所述将所述非冻结状态的空闲卡分配给所述第二用户终端,包括: The method for updating the status information of the SIM card according to claim 4, wherein the allocating the idle card in the non-frozen state to the second user terminal comprises:
    获取所述非冻结状态的空闲卡的属性信息,并根据所述非冻结状态的空闲卡的属性信息计算所述非冻结状态的空闲卡的分配优先级;所述非冻结状态的空闲卡的属性信息包括所述非冻结状态的空闲卡的剩余流量大小、套餐有效期、信号强度、通信质量、资费中的一种或多种信息;Acquire the attribute information of the idle card in the non-frozen state, and calculate the allocation priority of the idle card in the non-frozen state according to the attribute information of the idle card in the non-frozen state; the attributes of the idle card in the non-frozen state The information includes one or more of the remaining data size of the idle card in the non-frozen state, the validity period of the package, the signal strength, the communication quality, and the tariff;
    将所述非冻结状态的空闲卡中分配优先级最高的非冻结状态的空闲卡分配给所述第二用户终端。Allocating the idle card in the non-frozen state with the highest allocation priority among the idle cards in the non-frozen state to the second user terminal.
  6. 如权利要求5所述的SIM卡状态信息的更新方法,其特征在于,所述获取所述非冻结状态的空闲卡的属性信息,根据所述非冻结状态的空闲卡的属性信息计算所述非冻结状态的空闲卡的分配优先级,包括: The method for updating the status information of the SIM card according to claim 5, wherein the obtaining the attribute information of the idle card in the non-frozen state, and calculating the attribute information of the idle card in the non-frozen state. The allocation priority of idle cards in the frozen state includes:
    获取所述非冻结状态的空闲卡的属性信息,以及所述属性信息中每种属性信息对应的分配优先级权重;Acquiring the attribute information of the idle card in the non-frozen state, and the distribution priority weight corresponding to each attribute information in the attribute information;
    根据所述非冻结状态的空闲卡的属性信息及所述属性信息中每种属性信息对应的分配优先级权重计算所述非冻结状态的空闲卡的分配优先级。The allocation priority of the idle card in the non-frozen state is calculated according to the attribute information of the idle card in the non-frozen state and the distribution priority weight corresponding to each type of attribute information in the attribute information.
  7. 一种SIM卡状态信息的更新装置,配置于服务器,其特征在于,所述SIM卡状态信息的更新装置包括: A device for updating status information of a SIM card, configured on a server, characterized in that the device for updating status information of a SIM card includes:
    接收单元,用于接收第一用户终端发送的SIM卡释放信息;A receiving unit, configured to receive SIM card release information sent by the first user terminal;
    更新单元,用于根据所述SIM卡释放信息,将所述SIM卡释放信息对应的SIM卡标记为冻结状态的空闲卡;其中,所述冻结状态的空闲卡用于指示所述服务器将所述冻结状态的空闲卡确认为不可以分配的SIM卡。The update unit is configured to mark the SIM card corresponding to the SIM card release information as an idle card in a frozen state according to the SIM card release information; wherein the idle card in the frozen state is used to instruct the server to The idle card in the frozen state is confirmed as a SIM card that cannot be allocated.
  8. 如权利要求7所述的SIM卡状态信息的更新装置,其特征在于,所述更新单元还用于: The device for updating the status information of the SIM card according to claim 7, wherein the updating unit is further configured to:
    获取所述SIM卡需要被冻结的冻结时长;Acquiring the freezing time period during which the SIM card needs to be frozen;
    在所述SIM卡的使用状态被更新为冻结状态的累积时长达到所述SIM卡需要被冻结的冻结时长时,将所述SIM卡标记为非冻结状态的空闲卡;其中,所述非冻结状态的空闲卡用于指示所述服务器将所述非冻结状态的空闲卡确认为可以分配的SIM卡。When the accumulated time period during which the use state of the SIM card is updated to the frozen state reaches the frozen time period for which the SIM card needs to be frozen, the SIM card is marked as an idle card in a non-frozen state; wherein, the non-frozen state The idle card in is used to instruct the server to confirm the idle card in the non-frozen state as a SIM card that can be allocated.
  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/136032 2019-12-18 2020-12-14 Method and device for updating status information of sim card, and server WO2021121176A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911310465.6 2019-12-18
CN201911310465.6A CN112995985B (en) 2019-12-18 2019-12-18 SIM card state information updating method and device and server

Publications (1)

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

Family

ID=76343999

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/136032 WO2021121176A1 (en) 2019-12-18 2020-12-14 Method and device for updating status information of sim card, and server

Country Status (2)

Country Link
CN (1) CN112995985B (en)
WO (1) WO2021121176A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115310931A (en) * 2022-07-21 2022-11-08 深圳市正东源科技有限公司 Smart card management platform and management system thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014180324A1 (en) * 2013-05-08 2014-11-13 华为技术有限公司 Method and relevant apparatus for implementing national roaming of mobile terminal
CN105072602A (en) * 2015-07-14 2015-11-18 深圳市斯凯荣科技有限公司 SIM/USIM distribution system, and card distribution, card release and card switching methods thereof
CN106658569A (en) * 2016-12-16 2017-05-10 深圳市优克联新技术有限公司 Method, device and system for improving utilization rate of user identification card
CN107333292A (en) * 2017-07-10 2017-11-07 深圳市优克联新技术有限公司 A kind of SIM card state judging method and device
CN109995930A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Process handling method and device, electronic equipment, computer readable storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE530040T1 (en) * 2003-08-01 2011-11-15 Research In Motion Ltd SUBSCRIBER IDENTITY MODULE INITIALIZATION PROCEDURE
KR101714790B1 (en) * 2010-10-29 2017-03-10 삼성전자주식회사 Method and apparatus for communicating of portable terminal using a plurality of sim cards
US20130150013A1 (en) * 2011-12-12 2013-06-13 Broadcom Corporation Intelligent Resource Control in Multiple SIM User Equipment
WO2014105995A1 (en) * 2012-12-27 2014-07-03 Jasper Wireless, Inc. A system and method for responding to aggressive behavior associated with wireless devices
EP2953388A1 (en) * 2014-06-06 2015-12-09 Buzzinbees Sas System and method for handling inactive SIM cards
CN105578449A (en) * 2016-03-02 2016-05-11 深圳市思博威尔斯科技有限公司 Method and device for changing virtual SIM card
CN106231581A (en) * 2016-07-14 2016-12-14 努比亚技术有限公司 Terminal and the method reclaiming Virtual User identification card resource thereof
CN107040654A (en) * 2017-03-21 2017-08-11 深圳市金立通信设备有限公司 A kind of auxiliary traveling method and terminal based on scene
CN107592634B (en) * 2017-08-10 2020-05-22 澳克多普有限公司 Method and system for realizing multi-network coverage based on cloud SIM technology
CN110572816B (en) * 2019-10-12 2022-07-29 天津泰岳小漫科技有限公司 Method and device for supplementing available number of cloud SIM cards

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014180324A1 (en) * 2013-05-08 2014-11-13 华为技术有限公司 Method and relevant apparatus for implementing national roaming of mobile terminal
CN105072602A (en) * 2015-07-14 2015-11-18 深圳市斯凯荣科技有限公司 SIM/USIM distribution system, and card distribution, card release and card switching methods thereof
CN106658569A (en) * 2016-12-16 2017-05-10 深圳市优克联新技术有限公司 Method, device and system for improving utilization rate of user identification card
CN107333292A (en) * 2017-07-10 2017-11-07 深圳市优克联新技术有限公司 A kind of SIM card state judging method and device
CN109995930A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Process handling method and device, electronic equipment, computer readable storage medium

Also Published As

Publication number Publication date
CN112995985A (en) 2021-06-18
CN112995985B (en) 2022-01-28

Similar Documents

Publication Publication Date Title
US20190230004A1 (en) Network slice management method and management unit
EP3783936A1 (en) Cloud sim card management server, binding apparatus, management method, binding method and system
CN110519074B (en) Service area management method and device
CN105139641A (en) WiFi relay station-based vehicle scheduling method and system
AU2014410607B2 (en) Hardware resource management method, hardware resource location query method and related apparatus
CN111641989B (en) Protocol data unit session establishing method and related device
CN109417501B (en) Method and equipment for arranging network resources
CN111132238A (en) Network access method and device
WO2021204299A1 (en) Policy determination method and device, and system
CN105095313A (en) Data access method and equipment
WO2021121019A1 (en) Sim card allocation method and apparatus, server and computer-readable storage medium
CN111490890A (en) Hierarchical registration method, device, storage medium and equipment based on micro-service architecture
CN111641702A (en) Heartbeat message management method and device
CN111066333A (en) Device capable of acquiring ESIM configuration file
WO2021121176A1 (en) Method and device for updating status information of sim card, and server
CN110796367A (en) Equipment information management method and device based on information remote identification and terminal
US20180176781A1 (en) Method and device for managing wireless access point
CN109600254A (en) The generation method and related system of full link log
CN103945433A (en) Method and device for determining area with weak network coverage
CN112399388A (en) Method, device and system for realizing edge calculation
US11395129B2 (en) Virtual sim card acquisition method, subscriber terminal and server
CN114691734A (en) Cache control method and device, computer readable medium and electronic device
US20220078133A1 (en) Management for managing resource allocation in an edge computing system
WO2022205666A1 (en) System, method and apparatus for allocating cloud card, terminal device, server, and medium
WO2021121175A1 (en) Sim card allocation method and apparatus, and server and computer-readable storage medium

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: 20901851

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: 20901851

Country of ref document: EP

Kind code of ref document: A1