Universal method and device for flow of multiple SIM cards

文档序号:1925770 发布日期:2021-12-03 浏览:21次 中文

阅读说明:本技术 一种多张sim卡流量通用方法及装置 (Universal method and device for flow of multiple SIM cards ) 是由 边毅 王孝斌 张琢 翟鸿鹏 李珠帅 冒艺涵 朱丽楠 张玉东 于 2021-09-03 设计创作,主要内容包括:本发明公开一种多张SIM卡流量通用方法及装置,包括:将跨运营商流量池和至少两张SIM卡进行绑定,跨运营商流量池绑定了预设套餐,SIM卡绑定的套餐的类型和流量大小与预设套餐的类型和流量大小相同;当至少两张SIM卡中的其中一张SIM卡被使用时,实时接收SIM卡的流量使用数据并根据流量使用数据对跨运营商流量池的总流量进行相应的扣除。(The invention discloses a general method and a general device for the flow of a plurality of SIM cards, comprising the following steps: binding a cross-operator flow pool with at least two SIM cards, binding a preset package in the cross-operator flow pool, wherein the type and the flow of the package bound by the SIM cards are the same as those of the preset package; when one of the at least two SIM cards is used, receiving the flow use data of the SIM card in real time and correspondingly deducting the total flow of the cross-operator flow pool according to the flow use data.)

1. A method for universal traffic of a plurality of SIM cards is characterized by comprising the following steps:

binding a cross-operator flow pool and at least two SIM cards, wherein the cross-operator flow pool is bound with a preset package, and the type and the flow of the package bound by the SIM cards are the same as those of the preset package;

and when one of the at least two SIM cards is used, receiving the flow use data of the SIM card in real time and correspondingly deducting the total flow of the cross-operator flow pool according to the flow use data.

2. The method of claim 1, wherein before binding the cross-carrier traffic pool to the preset package, the method further comprises:

and creating a cross-operator flow pool and binding the cross-operator flow pool with a preset package.

3. The method of claim 1, wherein before binding the cross-carrier traffic pool to the preset package, the method further comprises:

receiving a first instruction;

judging whether the preset packages bound by the at least two single operator flow pools are the same or not according to the first instruction;

if the preset packages bound by the at least two single operator flow pools are the same, combining the at least two single operator flow pools to obtain a cross-operator flow pool, wherein the packages bound by the cross-operator flow pool are the preset packages.

4. The method of claim 1, wherein deducting a total traffic across the operator traffic pool according to the traffic used by the SIM card, further comprises:

and if the total flow of the cross-operator flow pool is changed into 0, blocking the flow channels of all the SIM cards bound by the cross-operator flow pool.

5. The method of claim 1, wherein after binding the cross-carrier traffic pool with at least two SIM cards, the method further comprises:

and setting the total flow of the cross-operator flow pool as the number of the SIM cards bound by the cross-operator flow pool multiplied by the flow size of the preset package.

6. The method of claim 1, wherein after binding the cross-carrier traffic pool with at least two SIM cards, the method further comprises:

receiving a second instruction;

adding a preset flow packet to the cross-operator flow pool according to the second instruction and judging whether the total flow of the cross-operator flow pool before adding the preset flow packet is 0 or not;

and if the total flow of the cross-operator flow pool before the addition of the preset flow packet is 0, opening flow channels of all SIM cards bound by the cross-operator flow pool after the addition of the preset flow packet.

7. The method of claim 1, wherein when one of the at least two SIM cards is used, the method comprises:

and if the flow used by the used SIM card reaches a preset threshold value, carrying out early warning on the user of the SIM card or blocking a flow channel of the SIM card.

8. The method of claim 1, wherein deducting a total traffic across the operator traffic pool according to the traffic used by the SIM card, further comprises:

and if the total flow of the cross-operator flow pool is smaller than a preset percentage, executing a second preset strategy, wherein the second preset strategy is used for early warning the user to which the cross-operator flow pool belongs or blocking flow channels of all SIM cards bound to the cross-operator flow pool.

9. The method of claim 1, wherein after binding the inter-operator traffic pool with at least two SIM cards, the method further comprises:

and if the package bound by any one of the at least two SIM cards is stopped or not continuously charged within preset time after the package bound by any one of the at least two SIM cards is expired, unbinding the SIM card from the cross-operator flow pool.

10. A multi-SIM card flow universal device, comprising:

the processing module is used for binding a cross-operator flow pool and at least two SIM cards, wherein the cross-operator flow pool is bound with a preset package, the type and the flow size of the package bound by the SIM cards are the same as those of the preset package, and the operators to which the at least two SIM cards belong are different;

and the communication module is used for receiving the flow use data of the SIM card in real time and correspondingly deducting the total flow of the cross-operator flow pool according to the flow use data when one of the at least two SIM cards is used.

Technical Field

The invention relates to the field of communication, in particular to a general method and a general device for the flow of a plurality of SIM cards.

Background

In the current society, due to reasons of work and life, most mobile phones support dual-card dual-standby, most people have a plurality of SIM cards, and when a user uses a plurality of SIM cards, the user often uses only one SIM card for a long time, and other SIMs are used only occasionally, so that the flow in other unusual SIM cards is wasted, and the plurality of SIM cards can belong to different operators respectively, so that a method which can enable the flow in the plurality of SIM cards to be universal is urgently needed in the field.

Disclosure of Invention

The invention provides a method and a device for universal flow of multiple SIM cards, which at least solve the technical problems in the prior art.

One aspect of the present invention provides a general method for multiple SIM traffic, including:

binding a cross-operator flow pool and at least two SIM cards, wherein the cross-operator flow pool is bound with a preset package, the type and the flow size of the package bound by the SIM cards are the same as those of the preset package, and the operators to which the at least two SIM cards belong are different;

and when one of the at least two SIM cards is used, receiving the flow use data of the SIM card in real time and correspondingly deducting the total flow of the cross-operator flow pool according to the flow use data.

Wherein, before binding the cross-operator flow pool and the preset package, the method further comprises:

and creating a cross-operator flow pool and binding the cross-operator flow pool with a preset package.

Wherein, before binding the cross-operator flow pool and the preset package, the method further comprises:

receiving a first instruction;

judging whether preset packages bound by at least two single operator flow pools are the same or not according to the first instruction, wherein the operators to which the at least two single operator flow pools belong are different;

if the preset packages bound by the at least two single operator flow pools are the same, combining the at least two single operator flow pools to obtain a cross-operator flow pool, wherein the packages bound by the cross-operator flow pool are the preset packages.

Wherein, after deducting the total traffic of the cross-operator traffic pool according to the traffic used by the SIM card, the method further comprises:

and if the total flow of the cross-operator flow pool is changed into 0, blocking the flow channels of all the SIM cards bound by the cross-operator flow pool.

After the binding of the cross-operator traffic pool and the at least two SIM cards, the method further includes:

and setting the total flow of the cross-operator flow pool as the number of the SIM cards bound by the cross-operator flow pool multiplied by the flow size of the preset package.

After the binding of the cross-operator traffic pool and the at least two SIM cards, the method further includes:

receiving a second instruction;

adding a preset flow packet to the cross-operator flow pool according to the second instruction and judging whether the total flow of the cross-operator flow pool before adding the preset flow packet is 0 or not;

and if the total flow of the cross-operator flow pool before the addition of the preset flow packet is 0, opening flow channels of all SIM cards bound by the cross-operator flow pool after the addition of the preset flow packet.

Wherein, when one of the at least two SIM cards is used, the method comprises the following steps:

and if the flow used by the used SIM card reaches a preset threshold value, carrying out early warning on the user of the SIM card or blocking a flow channel of the SIM card.

Wherein, after deducting the total traffic of the cross-operator traffic pool according to the traffic used by the SIM card, the method further comprises:

and if the total flow of the cross-operator flow pool is smaller than a preset percentage, executing a second preset strategy, wherein the second preset strategy is used for early warning the user to which the cross-operator flow pool belongs or blocking flow channels of all SIM cards bound to the cross-operator flow pool.

Wherein, after binding the cross-operator flow pool and at least two SIM cards, the method further comprises:

and if the package bound by any one of the at least two SIM cards is stopped or not continuously charged within preset time after the package bound by any one of the at least two SIM cards is expired, unbinding the SIM card from the cross-operator flow pool.

Another aspect of the present invention provides a multi-SIM traffic universal apparatus, including:

the processing module is used for binding a cross-operator flow pool and at least two SIM cards, wherein the cross-operator flow pool is bound with a preset package, the type and the flow size of the package bound by the SIM cards are the same as those of the preset package, and the operators to which the at least two SIM cards belong are different;

and the communication module is used for receiving the flow use data of the SIM card in real time and correspondingly deducting the total flow of the cross-operator flow pool according to the flow use data when one of the at least two SIM cards is used.

In the method of the invention, the plurality of SIM cards are bound with the cross-operator flow pool, and the flow bound by the plurality of SIM cards is transposed into the cross-operator flow pool, so that a user can consume the flow in other SIM cards which are not commonly used only by using the flow of the commonly used SIM card, the plurality of SIM cards can belong to different operators, the user can also consume the flow in the SIM cards of other operators only by using the flow of the SIM card of the commonly used operator, the flow universality of the plurality of SIM cards is realized, the flow usage strategy is adopted to prevent the total flow of the cross-operator flow pool from generating extra cost after the total flow of the cross-operator flow pool is consumed, and the flow can be supplemented to a preset flow packet added to the cross-operator flow pool after the total flow of the cross-operator flow pool is consumed, and the flow packet does not need to be added to each SIM, thereby improving the use experience of the user, the operation of the user is convenient.

Drawings

Fig. 1 is a flow chart illustrating a general method for multiple SIM traffic according to an embodiment of the present invention;

fig. 2 is a schematic structural diagram of a multi-SIM traffic generic apparatus according to an embodiment of the present invention.

Detailed Description

In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In order to enable the traffic of multiple SIM cards to be common, as shown in fig. 1, an embodiment of the present invention provides a method for commonly using traffic of multiple SIM cards, where the method includes:

step 101, binding a cross-operator flow pool and at least two SIM cards, wherein the cross-operator flow pool is bound with a preset package, the type and the flow of the package bound by the SIM cards are the same as those of the preset package, and the operators to which the at least two SIM cards belong are different.

In this embodiment, there are two creating methods for the cross-operator traffic pool;

the method comprises the following steps: creating a cross-operator flow pool and binding the cross-operator flow pool with a preset package;

and directly creating a cross-operator flow pool and binding the cross-operator flow pool with a preset package.

The second method comprises the following steps: receiving a first instruction;

judging whether preset packages bound by at least two single operator flow pools are the same or not according to the first instruction, wherein the operators to which the at least two single operator flow pools belong are different;

if the preset packages bound by the at least two single operator flow pools are the same, combining the at least two single operator flow pools to obtain a cross-operator flow pool, wherein the packages bound by the cross-operator flow pool are the preset packages;

receiving a first instruction, wherein the first instruction comprises at least two single operator flow pools used for creating the cross-operator flow pool, judging whether the preset packages bound by the at least two single operator flow pools used for creating the cross-operator flow pool and contained in the first instruction are the same or not according to the first instruction, if the preset packages are different, creating the cross-operator flow pool fails, if the preset packages are the same, merging the at least two single operator flow pools used for creating the cross-operator flow pool and contained in the first instruction to obtain the cross-operator flow pool, and binding the created cross-operator flow pool with the preset packages which are the same as the single operator flow pool.

After the cross-operator flow pool is obtained, the cross-operator flow pool and at least two SIM cards need to be bound, at this time, whether the type and the flow size of a package bound by the SIM cards are the same as those of the package bound by the cross-operator flow pool or not needs to be judged, if the type and the flow size of the package bound by the SIM cards are different, the binding fails, and if the type and the flow size of the package bound by the SIM cards are the same, the SIM cards are bound with the cross-operator flow pool.

In step 101, after binding the cross-operator traffic pool and at least two SIM cards, in an implementation manner, the total traffic of the cross-operator traffic pool is set as the number of SIM cards bound by the cross-operator traffic pool multiplied by the traffic size of the preset package;

the total flow across the carrier traffic pool is the number of SIM cards bound to the carrier traffic pool multiplied by the flow size of the preset package, for example, if 5 SIM cards are bound to a certain carrier traffic pool and the flow size of the preset package across the carrier traffic pool is 1G, the total flow across the carrier traffic pool is 5 × 1G and is equal to 5G.

In step 101, after binding the cross-operator traffic pool and at least two SIM cards, in another possible implementation, receiving a second instruction;

adding a preset flow packet to the cross-operator flow pool according to the second instruction and judging whether the total flow of the cross-operator flow pool before adding the preset flow packet is 0 or not;

and if the total flow of the cross-operator flow pool before the addition of the preset flow packet is 0, opening flow channels of all SIM cards bound by the cross-operator flow pool after the addition of the preset flow packet.

Receiving a second instruction, where the second instruction includes a preset flow packet to be added to the cross-operator flow pool, and adding the preset flow packet to the cross-operator flow pool according to the second instruction, where a total flow of the cross-operator flow pool is a sum of a flow size of a preset package and a flow number of the SIM card bound to the cross-operator flow pool, for example, a certain cross-operator flow pool is bound with 5 SIM cards, a flow size of the preset package of the cross-operator flow pool is 1G, and the cross-operator flow pool is added with a flow packet of 5G, so that the total flow of the cross-operator flow pool is 5 x 1G plus 5G equal to 10G, and it is necessary to determine whether a total flow of the cross-operator flow pool before adding the preset flow packet is 0 after adding the preset flow packet to the cross-operator flow pool, and if not, the operation is not performed, and if the number is 0, opening the traffic channels of all the SIM cards bound across the operator traffic pool.

In step 101, after binding the cross-operator traffic pool and the at least two SIM cards, in an implementation manner, if a package bound by any one of the at least two SIM cards is inactive or not available within a preset time after the package bound by the SIM card is expired, the SIM card is unbound from the cross-operator traffic pool;

and if the package bound by any one of the SIM cards bound with the cross-operator flow pool is stopped or not continuously charged within preset time after the package bound by any one of the SIM cards bound with the cross-operator flow pool is expired, unbinding the SIM card from the cross-operator flow pool, and updating the total flow of the cross-operator flow pool in real time after unbinding.

And 102, when one of the at least two SIM cards is used, receiving the flow use data of the SIM card in real time and correspondingly deducting the total flow of the cross-operator flow pool according to the flow use data.

After the SIM card is bound to the cross-operator flow pool, when any SIM card in the cross-operator flow pool is used, the flow use data of the SIM card is received in real time, and the total flow of the cross-operator flow pool is correspondingly deducted according to the flow use data.

In step 102, when one of the at least two SIM cards is used, in an implementation manner, if the total traffic of the cross-operator traffic pool becomes 0, blocking traffic channels of all SIM cards bound to the cross-operator traffic pool;

if the total traffic of the cross-operator traffic pool becomes 0, it means that the traffic of all the SIM cards bound to the cross-operator traffic pool is used up, and then the traffic channels of all the SIM cards bound to the cross-operator traffic pool are blocked.

In step 102, when one of the at least two SIM cards is used, in an implementation manner, if a flow rate used by the used SIM card reaches a preset threshold, a user of the SIM card is warned or a flow rate channel of the SIM card is blocked;

after a plurality of SIM cards are bound with the cross-operator flow pool, a preset threshold value can be set for the flow use of any one SIM card, and when the flow used by the SIM card reaches the preset threshold value, the user of the SIM card is warned or the flow channel of the SIM card is blocked.

In step 102, when one of the at least two SIM cards is used, in an implementation manner, if the total flow of the cross-operator flow pool is less than a preset percentage, performing an early warning on a user to which the cross-operator flow pool belongs or blocking flow channels of all SIM cards bound to the cross-operator flow pool;

after binding a plurality of SIM cards with the cross-operator flow pool, a preset percentage of an upper limit of the usage flow can be set for the cross-operator flow pool, and when the total flow of the cross-operator flow pool is used to the preset percentage, the users to which the cross-operator flow pool belongs are warned or the flow channels of all the SIM cards bound with the cross-operator flow pool are blocked.

In the method of the invention, the plurality of SIM cards are bound with the cross-operator flow pool, and the flow bound by the plurality of SIM cards is transposed into the cross-operator flow pool, so that a user can consume the flow in other SIM cards which are not commonly used only by using the flow of the commonly used SIM card, the plurality of SIM cards can belong to different operators, the user can also consume the flow in the SIM cards of other operators only by using the flow of the SIM card of the commonly used operator, the flow universality of the plurality of SIM cards is realized, the flow usage strategy is adopted to prevent the total flow of the cross-operator flow pool from generating extra cost after the total flow of the cross-operator flow pool is consumed, and the flow can be supplemented to a preset flow packet added to the cross-operator flow pool after the total flow of the cross-operator flow pool is consumed, and the flow packet does not need to be added to each SIM, thereby improving the use experience of the user, the operation of the user is convenient.

An embodiment of the present invention further provides a general device for traffic of multiple SIM cards, as shown in fig. 2, the device includes:

the processing module 10 is configured to bind a cross-operator traffic pool and at least two SIM cards, where the cross-operator traffic pool binds a preset package, a type and a traffic size of the package bound by the SIM cards are the same as those of the preset package, and the operators to which the at least two SIM cards belong are different;

the communication module 20 is configured to receive traffic usage data of the at least two SIM cards in real time when one of the at least two SIM cards is used, and perform corresponding deduction on total traffic across the operator traffic pool according to the traffic usage data.

The processing module 10 is further configured to create a cross-operator traffic pool and bind the cross-operator traffic pool to a preset package.

The communication module 20 is further configured to receive a first instruction;

the processing module 10 is further configured to determine whether the preset packages bound by the at least two single operator traffic pools are the same according to the first instruction;

the processing module 10 is further configured to, if the preset packages bound to the at least two single operator flow pools are the same, merge the at least two single operator flow pools to obtain a cross-operator flow pool, where the packages bound to the cross-operator flow pool are the preset packages.

The processing module 10 is further configured to block traffic channels of all the SIM cards bound to the inter-operator traffic pool if the total traffic of the inter-operator traffic pool becomes 0.

The processing module 10 is further configured to set a total traffic of the cross-operator traffic pool as a number of the SIM cards bound to the cross-operator traffic pool multiplied by a traffic size of the preset package.

The communication module 20 is further configured to receive a second instruction;

the processing module 10 is further configured to add a preset flow packet to the inter-operator flow pool according to the second instruction and determine whether a total flow of the inter-operator flow pool before the addition of the preset flow packet is 0;

the processing module 10 is further configured to open the flow channels of all the SIM cards bound to the inter-operator flow pool after adding the preset flow packet if the total flow of the inter-operator flow pool before adding the preset flow packet is 0.

The processing module 10 is further configured to perform an early warning on a user of the SIM card or block a traffic channel of the SIM card if traffic used by the used SIM card reaches a preset threshold.

The processing module 10 is further configured to execute a second preset policy if the total traffic of the cross-operator traffic pool is smaller than a preset percentage, where the second preset policy is to pre-warn a user to which the cross-operator traffic pool belongs or block traffic channels of all SIM cards bound to the cross-operator traffic pool.

The processing module 10 is further configured to unbind the SIM card from the cross-operator traffic pool if the package bound by any one of the at least two SIM cards is stopped or not renewed within a preset time after the expiration of the package bound by the SIM card.

In addition to the above-described methods and apparatus, embodiments of the present application may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the methods according to the various embodiments of the present application described in the "exemplary methods" section of this specification, above.

The computer program product may be written with program code for performing the operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.

Furthermore, embodiments of the present application may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform steps in a method according to various embodiments of the present application described in the "exemplary methods" section above of this specification.

The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

The foregoing describes the general principles of the present application in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present application are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present application. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the foregoing disclosure is not intended to be exhaustive or to limit the disclosure to the precise details disclosed.

The block diagrams of devices, apparatuses, systems referred to in this application are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".

It should also be noted that in the devices, apparatuses, and methods of the present application, the components or steps may be decomposed and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of the present application.

The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the application to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:室内定位方法、装置、设备及计算机可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类