Movatterモバイル変換


[0]ホーム

URL:


CN106604258A - User identity identification card switching method and apparatus - Google Patents

User identity identification card switching method and apparatus
Download PDF

Info

Publication number
CN106604258A
CN106604258ACN201611181686.4ACN201611181686ACN106604258ACN 106604258 ACN106604258 ACN 106604258ACN 201611181686 ACN201611181686 ACN 201611181686ACN 106604258 ACN106604258 ACN 106604258A
Authority
CN
China
Prior art keywords
user identification
identification card
network
preset
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611181686.4A
Other languages
Chinese (zh)
Inventor
陈景冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ucloudlink New Technology Co Ltd
Original Assignee
Shenzhen Ucloudlink New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ucloudlink New Technology Co LtdfiledCriticalShenzhen Ucloudlink New Technology Co Ltd
Priority to CN201611181686.4ApriorityCriticalpatent/CN106604258A/en
Publication of CN106604258ApublicationCriticalpatent/CN106604258A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明适用于通信领域,提供了一种用户身份识别卡切换方法以及装置,所述方法包括:获取当前地理位置对应的历史网络使用数据;读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序;根据所述用户身份识别卡数据,获取当前网络状态信息;根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。本发明,通过当前地理位置的网络状态和用户身份识别卡数据,将终端中的用户身份识别卡自动切换为当前位置网络情况最优的用户身份识别卡,无需用户手动切换,可以时刻为用户提供最优通信服务,操作简单,使用方便。

The present invention is applicable to the communication field, and provides a method and device for switching user identification cards. The method includes: obtaining historical network usage data corresponding to the current geographic location; reading at least two pieces of user identification card data, and the user The identification card data includes a preset user identification card priority order; according to the user identification card data, the current network status information is obtained; according to the current network status information, the preset user identification card priority order And the historical network usage data is obtained according to a preset switching algorithm to obtain an optimal user identification card for accessing the network. According to the present invention, the user identification card in the terminal is automatically switched to the user identification card with the best network condition at the current location through the network status of the current geographic location and the data of the user identification card, without manual switching by the user, and can provide users with Optimal communication service, easy to operate and easy to use.

Description

Translated fromChinese
一种用户身份识别卡切换方法及装置A user identification card switching method and device

技术领域technical field

本发明属于通信领域,尤其涉及一种用户身份识别卡切换方法以及装置。The invention belongs to the field of communication, and in particular relates to a method and a device for switching a user identification card.

背景技术Background technique

随着移动设备(如手机、平板电脑等)以及互联网技术的普及,人们在通讯通信方面的需求也在推动着运营商通信服务的优化。SIM(SubscriberIdentity Module,用户身份识别模块)卡是由通信运营商分配给用户的身份识别卡,数字移动电话机使用该卡连接外部网络进行上网以及通讯。With the popularization of mobile devices (such as mobile phones, tablet computers, etc.) and Internet technology, people's demand for communication is also driving the optimization of communication services of operators. A SIM (Subscriber Identity Module, Subscriber Identity Module) card is an identity card assigned to a user by a communication operator, and a digital mobile phone uses the card to connect to an external network for Internet access and communication.

当配备一张或者多张所属运营商不同的SIM卡时,若用户发生位置的变化,会因每个运营商支持覆盖的范围有差异,导致正在使用的SIM卡可能出现无信号连接、通信不可用情况。针对上述问题,现有技术上,移动设备会提示用户当前网络不可用,需要用户拆下内嵌在终端的实体SIM卡进行更换或者手动切换适合该网络通信区域的SIM卡。When equipped with one or more SIM cards belonging to different operators, if the user’s location changes, the coverage area supported by each operator will be different, resulting in no signal connection and communication failure of the SIM card being used. Use the situation. In view of the above problems, in the prior art, the mobile device will prompt the user that the current network is unavailable, and the user needs to remove the physical SIM card embedded in the terminal for replacement or manually switch the SIM card suitable for the network communication area.

然而,现有移动设备的设计正朝着小型化一体化发展,许多设备会减少对置放SIM卡的考虑。例如,大多数手机会将SIM卡槽限制在长宽几毫米内,并且位于手机内部,这会对用户在手动更换SIM卡造成不便。此外,在多张SIM卡上,因不同的运营商存在不一样的网络通信覆盖区域,这会造成不能时刻为用户提供最优通讯通信服务的问题。However, the design of existing mobile devices is developing towards miniaturization and integration, and many devices will reduce the consideration of placing SIM cards. For example, most mobile phones limit the SIM card slot to a few millimeters in length and width, and it is located inside the phone, which will cause inconvenience for users to manually replace the SIM card. In addition, on multiple SIM cards, because different operators have different network communication coverage areas, this will cause the problem of not being able to provide users with optimal communication services at all times.

发明内容Contents of the invention

本发明实施例提供一种用户身份识别卡切换方法,旨在解决现有技术中,在在终端中配备了多张用户身份识别卡时,因不同的运营商存在不一样的网络通信覆盖区域,这会造成不能时刻为用户提供最优通讯通信服务的问题。The embodiment of the present invention provides a user identification card switching method, which aims to solve the problem in the prior art that when a terminal is equipped with multiple user identification cards, different operators have different network communication coverage areas. This will cause a problem that the optimal communication service cannot be provided to the user at all times.

本发明实施例是这样实现的,一种用户身份识别卡切换方法,包括如下步骤:The embodiment of the present invention is achieved like this, a kind of user identification card switching method, comprises the following steps:

获取当前地理位置对应的历史网络使用数据;Obtain historical network usage data corresponding to the current geographic location;

读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序;reading at least two pieces of user identification card data, the user identification card data including a preset priority sequence of user identification cards;

根据所述用户身份识别卡数据,获取当前网络状态信息;Obtain current network status information according to the user identification card data;

根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。According to the current network status information, the priority order of the preset user identification cards and the historical network usage data, according to a preset switching algorithm, an optimal user identification card is obtained to access the network.

本发明实施例还提供一种用户身份识别卡切换装置,包括:The embodiment of the present invention also provides a user identification card switching device, including:

历史网络使用数据获取单元,用于获取当前地理位置对应的历史网络使用数据;A historical network usage data acquisition unit, configured to acquire historical network usage data corresponding to the current geographic location;

用户身份识别卡数据读取单元,用于读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序;The user identification card data reading unit is used to read at least two pieces of user identification card data, and the user identification card data includes a preset priority sequence of user identification cards;

当前网络状态信息获取单元,用于根据所述用户身份识别卡数据,获取当前网络状态信息;A current network status information acquisition unit, configured to acquire current network status information according to the user identification card data;

网络接入单元,用于根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。The network access unit is configured to obtain the optimal user identification card according to the preset switching algorithm according to the current network state information, the priority sequence of the preset user identification card and the historical network usage data, so as to access into the network.

本发明实施例中,通过获取当前地理位置对应的历史网络使用数据;读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序;根据所述用户身份识别卡数据,获取当前网络状态信息;根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。通过当前地理位置的网络状态和用户身份识别卡数据,将终端中的用户身份识别卡自动切换为当前位置网络情况最优的用户身份识别卡,无需用户手动切换,可以时刻为用户提供最优通信服务,操作简单,使用方便。In the embodiment of the present invention, by obtaining the historical network usage data corresponding to the current geographic location; reading at least two user identification card data, the user identification card data includes the preset user identification card priority order; according to the According to the user identification card data, obtain the current network state information; according to the current network state information, the priority order of the preset user identification card and the historical network usage data, according to the preset switching algorithm, obtain the optimal user ID cards to access the network. Through the network status of the current geographical location and the data of the user identification card, the user identification card in the terminal is automatically switched to the user identification card with the best network condition at the current location, without manual switching by the user, and can provide users with optimal communication at all times Service, simple operation, easy to use.

附图说明Description of drawings

图1是本发明实施例提供的一种用户身份识别卡切换的具体实施场景图;Fig. 1 is a specific implementation scene diagram of a user identification card switching provided by an embodiment of the present invention;

图2是本发明实施例提供的一种用户身份识别卡切换方法的实现流程图;Fig. 2 is a flow chart of implementing a method for switching user identification cards provided by an embodiment of the present invention;

图3是本发明实施例提供的另一种用户身份识别卡切换方法的实现流程图;Fig. 3 is an implementation flowchart of another user identity card switching method provided by an embodiment of the present invention;

图4是本发明实施例提供的一种网络接入方法的实现流程图;FIG. 4 is an implementation flow chart of a network access method provided by an embodiment of the present invention;

图5是本发明实施例提供的又一种用户身份识别卡切换方法的实现流程图;FIG. 5 is a flow chart of another method for switching user identification cards provided by an embodiment of the present invention;

图6是本发明实施例提供的一种用户身份识别卡切换装置的结构示意图;Fig. 6 is a schematic structural diagram of a user identity card switching device provided by an embodiment of the present invention;

图7是本发明实施例提供的一种网络接入单元的结构示意图;FIG. 7 is a schematic structural diagram of a network access unit provided by an embodiment of the present invention;

图8是本发明实施例提供的第二网络接入子单元的结构示意图;FIG. 8 is a schematic structural diagram of a second network access subunit provided by an embodiment of the present invention;

图9是本发明实施例提供的另一种网络接入单元的结构示意图。Fig. 9 is a schematic structural diagram of another network access unit provided by an embodiment of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明实施例中,通过获取当前地理位置对应的历史网络使用数据;读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序;根据所述用户身份识别卡数据,获取当前网络状态信息;根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。通过当前地理位置的网络状态和用户身份识别卡数据,将终端中的用户身份识别卡自动切换为当前位置网络情况最优的用户身份识别卡,无需用户手动切换,可以时刻为用户提供最优通信服务,操作简单,使用方便。In the embodiment of the present invention, by obtaining the historical network usage data corresponding to the current geographic location; reading at least two user identification card data, the user identification card data includes the preset user identification card priority order; according to the According to the user identification card data, obtain the current network state information; according to the current network state information, the priority order of the preset user identification card and the historical network usage data, according to the preset switching algorithm, obtain the optimal user ID cards to access the network. Through the network status of the current geographical location and the data of the user identification card, the user identification card in the terminal is automatically switched to the user identification card with the best network condition at the current location, without manual switching by the user, and can provide users with optimal communication at all times Service, simple operation, easy to use.

图1示出了本发明实施例提供的一种用户身份识别卡切换的具体实施场景,详述如下:Fig. 1 shows a specific implementation scenario of a user identification card switching provided by an embodiment of the present invention, which is described in detail as follows:

参见图一,假如当前终端1中具有SIM卡11、SIM卡12以及虚拟SIM卡13,终端1通过搜索发现当前所在区域的周边存在4个基站,分别为基站21、基站22、基站23以及基站24,当终端1在基站21的范围内时,此时只有SIM卡11可接入,终端1自动启用SIM卡11接入网络,当终端1移出基站21的范围,进入基站22的范围时,此时只有SIM卡12可接入,终端1自动启用SIM卡12接入网络,当终端1移出基站2范围,进入基站23的范围时,此时有SIM卡12和虚拟SIM卡13可接入,此时根据预设的用户身份识别卡的优先级顺序,当有SIM卡12的优先级高于虚拟SIM卡13的优先级时,使用SIM卡12接入网络,当有SIM卡12的优先级低于虚拟SIM卡13的优先级时,使用虚拟SIM卡13接入网络。Referring to Figure 1, if the current terminal 1 has a SIM card 11, a SIM card 12, and a virtual SIM card 13, the terminal 1 finds that there are 4 base stations around the current area through searching, namely base station 21, base station 22, base station 23, and base station 24. When the terminal 1 is within the range of the base station 21, only the SIM card 11 can be accessed at this time, and the terminal 1 automatically enables the SIM card 11 to access the network. When the terminal 1 moves out of the range of the base station 21 and enters the range of the base station 22, At this time, only the SIM card 12 can be accessed, and the terminal 1 automatically enables the SIM card 12 to access the network. When the terminal 1 moves out of the range of the base station 2 and enters the range of the base station 23, the SIM card 12 and the virtual SIM card 13 can be accessed at this time At this time, according to the priority sequence of the preset user identification card, when the priority of the SIM card 12 is higher than the priority of the virtual SIM card 13, the SIM card 12 is used to access the network, and when the priority of the SIM card 12 is When the priority is lower than the priority of the virtual SIM card 13, use the virtual SIM card 13 to access the network.

同上,当进入到基站24的范围是,此时有SIM卡12以及虚拟SIM卡13可接入,此时根据预设的用户身份识别卡的优先级顺序,当有SIM卡12的优先级高于虚拟SIM卡13的优先级时,使用SIM卡12接入网络,当有SIM卡12的优先级低于虚拟SIM卡13的优先级时,使用虚拟SIM卡13接入网络。As above, when entering the range of the base station 24, there are SIM cards 12 and virtual SIM cards 13 that can be accessed at this time. At this time, according to the priority order of the preset user identification cards, when the priority of the SIM card 12 is high When the priority of the virtual SIM card 13 is used, the SIM card 12 is used to access the network, and when the priority of the SIM card 12 is lower than that of the virtual SIM card 13, the virtual SIM card 13 is used to access the network.

在本发明实施例中,终端1包括但不限于,手机,电脑、平板电脑、车载终端。In the embodiment of the present invention, the terminal 1 includes, but is not limited to, a mobile phone, a computer, a tablet computer, and a vehicle-mounted terminal.

实施例一、Embodiment one,

图2示出了本发明实施例提供的一种用户身份识别卡切换方法的实现流程,应用于终端,详述如下:FIG. 2 shows the implementation process of a method for switching user identification cards provided by an embodiment of the present invention, which is applied to a terminal, and is described in detail as follows:

在步骤S110中,获取当前地理位置对应的历史网络使用数据。In step S110, historical network usage data corresponding to the current geographic location is acquired.

在本发明实施例中,历史网络使用数据包括但不限于历史平均网络数据、历史平均用户体验数据,以及历史平均网速数据。In the embodiment of the present invention, historical network usage data includes but not limited to historical average network data, historical average user experience data, and historical average network speed data.

在本发明实施例中,通过对不同终端使用不同的运营商网络的组合,分别收集每种组合方式在当前地理位置的网络使用情况,通过计算平均数,获取到各种历史使用数据的平均数据。In the embodiment of the present invention, by using different combinations of operator networks for different terminals, the network usage of each combination in the current geographic location is collected separately, and the average data of various historical usage data is obtained by calculating the average .

作为本发明的一个实施例,历史网络使用数据可以通过终端提前向服务器下载,比如,当用户需要到A地出差,可以提前向服务器发送下载请求,接收服务器发送的A地相关的历史网络使用数据,并进行存储,以便在到达A地时进行使用。As an embodiment of the present invention, the historical network usage data can be downloaded to the server in advance through the terminal, for example, when the user needs to go on a business trip to A, he can send a download request to the server in advance, and receive the historical network usage data related to A sent by the server , and store it for use when arriving at point A.

作为本发明的另一个实施例,通过预设规则向服务器上报当前地理位置,以使服务器根据上报的地理位置,向终端发送当前地理位置的历史网络使用数据,比如,终端可以通过网络与服务器建立连接,当终端从A地到达B地时,可以向服务器上报B地的地理位置信息,以使服务器查询数据库,获取B地的历史网络使用数据,并发送给终端。As another embodiment of the present invention, the current geographic location is reported to the server through preset rules, so that the server sends the historical network usage data of the current geographic location to the terminal according to the reported geographic location. For example, the terminal can establish a Connection, when the terminal arrives at B from A, it can report the geographical location information of B to the server, so that the server can query the database, obtain the historical network usage data of B, and send it to the terminal.

其中,预设规则包括实时、定时、当终端的地理位置发送变化时上报一次。Wherein, the preset rules include real-time, timing, and reporting once when the geographic location of the terminal changes.

当为定时上报时,可以设置固定的时间点,比如,3点、5点,也可以设置为每间隔预设时间,比如,10分钟、20分钟等,具体可根据实际情况设置,本发明不做限定。When reporting regularly, you can set a fixed time point, such as 3 o'clock and 5 o'clock, or you can set it as a preset time every interval, such as 10 minutes, 20 minutes, etc., which can be set according to actual conditions. The present invention does not Do limited.

在步骤S120中,读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序。In step S120, at least two pieces of user identification card data are read, and the user identification card data includes a preset priority sequence of user identification cards.

在本发明实施例中,用户身份识别卡数据包括但不限于SIM识别码、SIM优先级顺序、SIM卡支持的运营商PLMN(Public Land Mobile Network,公共陆地移动网络)列表以及SIM卡可漫游的运营商PLMN列表。In the embodiment of the present invention, the user identification card data includes but is not limited to SIM identification code, SIM priority order, operator PLMN (Public Land Mobile Network, public land mobile network) list supported by the SIM card and SIM card can roam. Carrier PLMN list.

在本发明实施例中,终端至少包括两张用户身份识别卡,用户身份识别卡为实体用户身份识别卡或者虚拟用户身份识别卡,该实体用户身份识别卡为该通信终端中内置或者插入的SIM卡,该虚拟用户身份识别卡为该虚拟用户身份识别卡为通信终端预先未插入或内置SIM卡,需要从服务器下载的SIM卡,在服务器存放的虚拟用户身份识别卡,该虚拟用户身份识别卡包括SIM卡数据。In the embodiment of the present invention, the terminal includes at least two user identification cards, the user identification card is a physical user identification card or a virtual user identification card, and the physical user identification card is a built-in or inserted SIM in the communication terminal. Card, the virtual user identification card is the virtual user identification card is the SIM card that is not inserted or built-in in the communication terminal in advance, the SIM card that needs to be downloaded from the server, the virtual user identification card stored in the server, the virtual user identification card Includes SIM card data.

在本发明实施例中,用户身份识别卡优先级顺序为使用用户身份识别卡的优先顺序,比如,终端中包括用户身份识别卡A、用户身份识别卡B以及用户身份识别卡C,可以根据用户身份识别卡的资费、网络强度划分优先级,比如,当资费一致时,用户身份识别卡A的网络强度等级为优,用户身份识别卡B的网络强度为一般、用户身份识别卡C的网络强度为差,则优先级顺序为用户身份识别卡A>用户身份识别卡B>用户身份识别卡C。本发明中,用户身份识别卡的优先级顺序是系统预设的,也可以是用户自定义的。In the embodiment of the present invention, the priority order of user identification cards is the priority order of using user identification cards. For example, the terminal includes user identification card A, user identification card B, and user identification card C. The tariff and network strength of the ID card are prioritized. For example, when the tariff is the same, the network strength level of the user ID card A is excellent, the network strength of the user ID card B is average, and the network strength of the user ID card C is If it is poor, the order of priority is user identification card A > user identification card B > user identification card C. In the present invention, the priority sequence of the user identification card is preset by the system, and may also be user-defined.

在步骤S130中,根据所述用户身份识别卡数据,获取当前网络状态信息。In step S130, current network status information is acquired according to the user identification card data.

在本发明实施例中,网络状态信息包括但不限于当前是否已注册上网、当前注册上网的SIM卡对应的PLMN、是否正常通讯、在当前位置终端中设置的SIM卡可用的PLMN列表以及每个PLMN对应的网络制式、网络通讯质量、网络信号强度、网络速率、网络通讯质量。In the embodiment of the present invention, the network status information includes but is not limited to whether it is currently registered online, the PLMN corresponding to the SIM card currently registered online, whether the communication is normal, the list of PLMNs available for the SIM card set in the terminal at the current location, and each The network standard, network communication quality, network signal strength, network speed, and network communication quality corresponding to PLMN.

在本发明实施例中,通过获取用户身份识别卡数据后,通过对终端中的用户身份识别卡数据进行搜索,获取每个用户身份识别卡对应的网络状态信息,比如,在终端中的用户身份识别卡H,通过读取用户身份识别卡H的数据,获取到用户身份识别卡H在当前地理位置的PLMN列表、每个PLMN列表对应的网络制式,比如、4G、3G、2G等、通讯质量等网络状态。其中,PLMN列表可以包括与用户身份识别卡H签订漫游协议的运营商网络以及用户识别卡支持的运营商网络。In the embodiment of the present invention, after obtaining the user identity card data, by searching the user identity card data in the terminal, the network status information corresponding to each user identity card is obtained, for example, the user identity in the terminal The identification card H, by reading the data of the user identification card H, obtains the PLMN list of the user identification card H in the current geographical location, the network standard corresponding to each PLMN list, such as 4G, 3G, 2G, etc., communication quality Wait for the network status. Wherein, the PLMN list may include operator networks that have signed a roaming agreement with the subscriber identity card H and operator networks supported by the subscriber identity card.

在步骤S140中,根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。In step S140, according to the current network status information, the priority order of the preset user identification cards and the historical network usage data, according to the preset switching algorithm, obtain the optimal user identification card to access the network .

在本发明实施例中,预设的切换算法为,首先通过当前网络状态信息、预设用户身份识别卡优先级顺序以及历史网络使用数据,计算终端中所有的用户身份识别卡的评分,在通过预设的切换阈值,与用户身份识别卡的评分进行比对,获取高于预设切换阈值的用户身份识别卡,接入网络,并在有多个用户身份识别卡的评分高于预设的切换阈值时,根据预设的用户身份识别卡的优先级顺序,将优先级顺序最高的用户身份识别卡接入网络。In the embodiment of the present invention, the preset switching algorithm is as follows: first, calculate the scores of all user identification cards in the terminal through the current network status information, the priority order of the preset user identification cards, and historical network usage data, and then pass The preset switching threshold is compared with the score of the user identification card, and the user identification card that is higher than the preset switching threshold is obtained, connected to the network, and the score of multiple user identification cards is higher than the preset When switching the threshold, according to the preset priority order of the user identification cards, the user identification card with the highest priority is connected to the network.

在本发明实施例中,为避免频繁切换用户身份识别卡,可以设置多个切换阈值,比如,当终端中当前包括用户身份识别卡A、用户身份识别卡B,当前已经使用用户身份识别卡A,当用户移动了当前的地理位置时,根据切换算法,设置了切换阈值为5000,分别计算用户身份识别卡A和用户身份识别卡B的评分,得到用户身份识别卡A的评分为4000,用户身份识别卡B的评分为6000,则将用户身份识别卡A切换为用户身份识别卡B,为避免在使用过程中,频繁切换用户身份识别卡,此时可以设置第二切换阈值为6000,避免在使用过程过程中,将用户身份识别卡B切换为用户身份识别卡A。In the embodiment of the present invention, in order to avoid frequent switching of user identification cards, multiple switching thresholds can be set, for example, when the terminal currently includes user identification card A and user identification card B, and user identification card A is currently used , when the user moves the current geographic location, according to the switching algorithm, the switching threshold is set to 5000, and the scores of user identification card A and user identification card B are calculated respectively, and the score of user identification card A is 4000, and the user If the score of ID card B is 6000, switch user ID card A to user ID card B. In order to avoid frequent switching of user ID cards during use, you can set the second switching threshold to 6000 to avoid During use, switch user identification card B to user identification card A.

在本发明的实施例中,对预设的切换算法进行举例说明:In the embodiment of the present invention, the preset handover algorithm is illustrated as follows:

假设评分算法的各参数分别如下所示:The parameters of the hypothetical scoring algorithm are as follows:

比如,信号强度区间为(0-32)For example, the signal strength range is (0-32)

不可用信号强度在0-4,即信号强度<4判定不可用;The unavailable signal strength is between 0 and 4, that is, the signal strength <4 is unavailable;

可用信号强度在4-10,即信号强度>4并且<10判定可用;The available signal strength is between 4-10, that is, the signal strength is >4 and <10 is available;

良好信号强在10-12,即信号强度>10并且<12判定良好;A good signal strength is 10-12, that is, a signal strength >10 and <12 is considered good;

优秀信号强度>12即信号强度>12判定优秀。Excellent signal strength > 12 means that the signal strength > 12 is considered excellent.

网络运行速率如下所示:The network operation rate is as follows:

不可用网速<500kb/s,即网速<500kb/s,判定为不可用;The unavailable network speed is less than 500kb/s, that is, the network speed is less than 500kb/s, and it is judged as unavailable;

低速网速500kb/s-1Mb/s,即网速在500kb/s-1Mb/s之间,判定为低速;The low-speed network speed is 500kb/s-1Mb/s, that is, the network speed is between 500kb/s-1Mb/s, and it is judged as low-speed;

普通网速1Mb/s-5Mb/s,即网速在1Mb/s-5Mb/s之间,判定为普通;Ordinary network speed 1Mb/s-5Mb/s, that is, the network speed is between 1Mb/s-5Mb/s, it is judged as normal;

良好网速5Mb/s-10Mb/s,即网速在5Mb/s-10Mb/s之间,判定为良好;Good network speed 5Mb/s-10Mb/s, that is, the network speed is between 5Mb/s-10Mb/s, it is judged as good;

优秀网速>10Mb/s,即,当网速大于10Mb/s时,判定为优秀。Excellent network speed>10Mb/s, that is, when the network speed is greater than 10Mb/s, it is judged as excellent.

用户体验数据如下所示:The user experience data looks like this:

比如,用户体验数据区间(0-10)For example, user experience data range (0-10)

用户体验数据差评0-3,即用户体验数据在0-3之间时,为差评;User experience data negative evaluation 0-3, that is, when the user experience data is between 0-3, it is a negative evaluation;

用户体验数据一般3-6,即用户体验数据在3-6之间时,为一般;The user experience data is generally 3-6, that is, when the user experience data is between 3-6, it is average;

用户体验数据良好6-8,即用户体验数据在6-8之间时,为良好;The user experience data is good 6-8, that is, when the user experience data is between 6-8, it is good;

用户体验数据优秀8-10,即用户体验数据在8-10之间时,为优秀。The user experience data is excellent 8-10, that is, when the user experience data is between 8-10, it is excellent.

在本发明实施例中,假设评分算法以如下公式所示:In the embodiment of the present invention, it is assumed that the scoring algorithm is shown in the following formula:

S=(2*(Sa*Sc)/(Sa+Sc))*(Sd+Se/2)S=(2*(Sa*Sc)/(Sa+Sc))*(Sd+Se/2)

其中,Sa为参数a,表示信号强度的分数,如下所示:Among them, Sa is the parameter a, indicating the score of signal strength, as follows:

信号强度为不可用,即在0-4之间时:Sa=0;When the signal strength is unavailable, that is, when it is between 0-4: Sa=0;

信号强度为可用时,即在4-10之间时:Sa=40;When the signal strength is available, that is, between 4-10: Sa=40;

信号强度为良好时,即在10-12之间时:Sa=80;When the signal strength is good, that is, between 10-12: Sa=80;

信号强度为优秀时,即在>12时:Sa=100。When the signal strength is excellent, ie >12: Sa=100.

Sc为参数c,同样表示信号强度的分数,如下所示:Sc is the parameter c, which also represents the score of signal strength, as follows:

信号强度为不可用,即在0-4之间时:Sa=0;When the signal strength is unavailable, that is, when it is between 0-4: Sa=0;

信号强度为可用时,即在4-10之间时:Sa=40;When the signal strength is available, that is, between 4-10: Sa=40;

信号强度为良好时,即在10-12之间时:Sa=80;When the signal strength is good, that is, between 10-12: Sa=80;

信号强度为优秀时,即在>12时:Sa=100。When the signal strength is excellent, ie >12: Sa=100.

Sd为参数d,表示用户体验数据的分数,如下所示:Sd is the parameter d, indicating the score of user experience data, as follows:

用户体验数据在0-3之间时,为差评,Sd=0;When the user experience data is between 0-3, it is a bad review, Sd=0;

用户体验数据在3-6之间时,为一般,Sd=30;When the user experience data is between 3-6, it is average, Sd=30;

用户体验数据在6-8之间时,为良好,Sd=60;When the user experience data is between 6-8, it is good, Sd=60;

用户体验数据在8-10之间时,为优秀,Sd=100。When the user experience data is between 8-10, it is excellent, Sd=100.

Se为参数e,表示网速的对应分数,如下所示:Se is the parameter e, which represents the corresponding score of the network speed, as follows:

不可用网速,即网速<500kb/s时,Se=0Unavailable network speed, that is, when the network speed is <500kb/s, Se=0

低速网速,即网速在500kb/s-1Mb/s之间,Se=20;Low-speed network speed, that is, the network speed is between 500kb/s-1Mb/s, Se=20;

普通网速,即网速在1Mb/s-5Mb/s之间,Se=50;Ordinary network speed, that is, the network speed is between 1Mb/s-5Mb/s, Se=50;

良好网速,即网速在5Mb/s-10Mb/s之间,Se=80;Good network speed, that is, the network speed is between 5Mb/s-10Mb/s, Se=80;

优秀网速,即,当网速大于10Mb/s时,Se=100。Excellent network speed, that is, when the network speed is greater than 10Mb/s, Se=100.

根据上述评分算法以及各参数的取值,通过具体实施例进行进一步进行解释说明,假设某区域A的各参数数值如下所示:According to the above-mentioned scoring algorithm and the values of each parameter, further explanations are carried out through specific examples, assuming that the values of each parameter in a certain area A are as follows:

参数a为设备获取到的网络状态信息:Parameter a is the network status information obtained by the device:

运营商A信号强度=20,运营商B信号强度=8,运营商C信号强度=3;Operator A signal strength = 20, operator B signal strength = 8, operator C signal strength = 3;

其中,信号强度主要指4G/3G的信号强度,信号强度区间0-32。Among them, the signal strength mainly refers to the signal strength of 4G/3G, and the signal strength range is 0-32.

参数b为用户身份识别卡的优先级,运营商B的SIM卡>运营商A的SIM卡>运营商C的SIM卡;Parameter b is the priority of the user identification card, the SIM card of operator B > the SIM card of operator A > the SIM card of operator C;

参数c为本区域历史平均网络数据:The parameter c is the historical average network data of this region:

运营商A信号强度=18,运营商B信号强度=8,运营商C信号强度=6Carrier A signal strength = 18, Carrier B signal strength = 8, Carrier C signal strength = 6

参数d为本区域历史平均用户体验数据(满分10):Parameter d is the historical average user experience data in this area (full score: 10):

运营商A=8,运营商B=6,运营商C=4;Carrier A=8, Carrier B=6, Carrier C=4;

参数e为本区域历史平均网速数据:The parameter e is the historical average network speed data in this area:

运营商A=8M/s,运营商B=12M/s,运营商C=6M/s。Operator A=8M/s, operator B=12M/s, operator C=6M/s.

根据上述评分算法的公式,分别计算运营商A、运营商B以及运营商C的分数,如下所示:According to the formula of the scoring algorithm above, calculate the scores of operator A, operator B, and operator C respectively, as follows:

运营商A评分S=(2*(100*100)/(100+100))*(100+80/2)=14000Score of operator A = (2*(100*100)/(100+100))*(100+80/2)=14000

运营商B评分S=(2*(40*40)/(40+40))*(60+100/2)=4000Carrier B score S=(2*(40*40)/(40+40))*(60+100/2)=4000

运营商B评分S=(2*(0*40)/(40+40))*(30+80/2)=0Carrier B score S=(2*(0*40)/(40+40))*(30+80/2)=0

假设切换阀值=8000,Assuming switching threshold = 8000,

如果当前选择的是运营商B的sim卡,4000<8000<14000,则需切换到运营商AIf the current selection is the sim card of operator B, 4000<8000<14000, you need to switch to operator A

假设切换阀值=2000Suppose switching threshold=2000

如果当前选择的是运营商B的sim卡,2000<4000,则无需切换If the current selection is the sim card of operator B, 2000<4000, there is no need to switch

如果当前未选择sim卡,由于评分均大于2000,此时采用用户优先级高的SIM卡,即运营商B的SIM卡。If no SIM card is currently selected, since the scores are all greater than 2000, the SIM card with high user priority, that is, the SIM card of operator B, is used at this time.

在本发明实施例中,步骤S110和步骤S120的顺序不分先后,可以先执行步骤S110中,在执行步骤S120,可以先执行步骤S120中,在执行步骤S110。In this embodiment of the present invention, the order of step S110 and step S120 is not in particular order, step S110 may be executed first, and step S120 may be executed first, and step S110 may be executed first.

本发明实施例中,通过获取当前地理位置对应的历史网络使用数据;读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序;根据所述用户身份识别卡数据,获取当前网络状态信息;根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。通过当前地理位置的网络状态和用户身份识别卡数据,将终端中的用户身份识别卡自动切换为当前位置网络情况最优的用户身份识别卡,无需用户手动切换,可以时刻为用户提供最优通信服务,操作简单,使用方便。In the embodiment of the present invention, by obtaining the historical network usage data corresponding to the current geographic location; reading at least two user identification card data, the user identification card data includes the preset user identification card priority order; according to the According to the user identification card data, obtain the current network state information; according to the current network state information, the priority order of the preset user identification card and the historical network usage data, according to the preset switching algorithm, obtain the optimal user ID cards to access the network. Through the network status of the current geographical location and the data of the user identification card, the user identification card in the terminal is automatically switched to the user identification card with the best network condition at the current location, without manual switching by the user, and can provide users with optimal communication at all times Service, simple operation, easy to use.

实施例二、Embodiment two,

图3示出了本发明实施例提供的另一种用户身份识别卡切换方法的实现流程,当当前已使用用户身份识别卡时,所述根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络,包括:Fig. 3 shows the implementation flow of another user identification card switching method provided by an embodiment of the present invention. When the user identification card is currently used, the current network status information, the preset user identity The identification card priority order and the historical network usage data are obtained according to the preset switching algorithm to obtain the optimal user identification card to access the network, including:

在步骤S210中,根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,计算至少两个用户身份识别卡的评分。In step S210, calculate scores of at least two user identification cards according to the current network status information, the preset priority order of user identification cards and the historical network usage data.

在本发明实施例中,通过获取当前终端所在区域的历史网络使用数据,用户身份识别卡优先级以及本区域的网络状态信息,通过预设的评分算法分别计算每个用户身份识别卡的得分,比如,计算用户身份识别卡a的评分时,获取到用户身份识别卡属于运营商A的卡,得到运营商A的网络强度为20,历史平均信号强度为18,用户平均体验数据为8、平均网速为8,则根据上述评分算法公式,可得S=(2*(100*100)/(100+100))*(100+80/2)=14000,则用户身份识别卡a的在本区域的评分为14000,同上,终端中的其他用户身份识别卡也可根据上述方式进行计算。In the embodiment of the present invention, by obtaining the historical network usage data of the area where the current terminal is located, the priority of the user identification card and the network status information of the area, the score of each user identification card is calculated respectively through a preset scoring algorithm, For example, when calculating the score of user identification card a, the user identification card belongs to operator A, and the network strength of operator A is 20, the historical average signal strength is 18, the average user experience data is 8, and the average If the network speed is 8, then according to the above scoring algorithm formula, it can be obtained that S=(2*(100*100)/(100+100))*(100+80/2)=14000, then the user identification card a is The score in this area is 14000, as above, other user identification cards in the terminal can also be calculated according to the above method.

在步骤S220中将所述用户身份识别卡的评分分别与预设切换阈值进行比对。In step S220, the score of the user identification card is compared with a preset switching threshold.

在本发明实施例中,预设的切换阈值可为系统预设,用来作为一个标准值,与终端中各个用户身份识别卡的评分进行比对,比如,预设的切换阈值为8000,终端中具有第一用户身份识别卡和第二用户身份识别卡,通过计算后的得分分别为10000以及6000,通过与预设的切换阈值8000进行比对,得到第一用户身份识别卡评分高于预设的切换阈值,第二用户身份识别卡的评分低于预设的切换阈值。In the embodiment of the present invention, the preset switching threshold can be preset by the system and used as a standard value to compare with the scores of each user identification card in the terminal. For example, the preset switching threshold is 8000, and the terminal There is a first user identification card and a second user identification card, and the calculated scores are 10000 and 6000 respectively. By comparing with the preset switching threshold of 8000, it is obtained that the score of the first user identification card is higher than the preset The preset switching threshold, the score of the second user identification card is lower than the preset switching threshold.

在本发明实施例中,为避免频繁切换用户身份识别卡,可以设置多个切换阈值,比如,当终端中当前包括用户身份识别卡A、用户身份识别卡B,当前已经使用用户身份识别卡A,当用户移动了当前的地理位置时,根据切换算法,设置了切换阈值为5000,分别计算用户身份识别卡A和用户身份识别卡B的评分,得到用户身份识别卡A的评分为4000,用户身份识别卡B的评分为6000,则将用户身份识别卡A切换为用户身份识别卡B,为避免在使用过程中,频繁切换用户身份识别卡,此时可以设置第二切换阈值为6000,避免在使用过程过程中,将用户身份识别卡B切换为用户身份识别卡A。In the embodiment of the present invention, in order to avoid frequent switching of user identification cards, multiple switching thresholds can be set, for example, when the terminal currently includes user identification card A and user identification card B, and user identification card A is currently used , when the user moves the current geographic location, according to the switching algorithm, the switching threshold is set to 5000, and the scores of user identification card A and user identification card B are calculated respectively, and the score of user identification card A is 4000, and the user If the score of ID card B is 6000, switch user ID card A to user ID card B. In order to avoid frequent switching of user ID cards during use, you can set the second switching threshold to 6000 to avoid During use, switch user identification card B to user identification card A.

在步骤S230中,当所述当前已使用的用户身份识别卡的评分大于所述预设切换阈值时,不进行切换。In step S230, when the score of the currently used user identification card is greater than the preset switching threshold, switching is not performed.

在步骤S240中,当所述当前已使用的用户身份识别卡的评分小于所述预设切换阈值时,获取最优用户身份识别卡,并将所述当前已使用用户身份识别卡切换为所述最优用户身份识别卡,以接入网络。In step S240, when the score of the currently used user identification card is less than the preset switching threshold, obtain the optimal user identification card, and switch the currently used user identification card to the Optimal user identification card to access the network.

在本发明中,已使用的用户身份识别卡为当前终端中已经接入网络的用户身份识别卡,通过计算此用户身份识别卡的评分,并与预设的切换阈值进行比对,以判断是否需要切换用户身份识别卡,如,预设的切换阈值为7000,当已使用的用户身份识别卡计算得到的评分为9000时,由于9000>7000,则在本区域仍然可以使用已使用的用户身份识别卡啊,无需切换,当已使用的用户身份识别卡计算得到的评分为5000时,由于5000<7000,则说明已使用的用户身份识别卡在本区域并不适合使用,此时,依次将终端其他的用户身份识别卡的评分与预设阈值进行比对,选择出评分高于7000的用户身份识别卡,并在具有多个高于预设切换阈值的用户身份识别卡时,通过用户身份识别卡的优先级,选择优先级最高的用户身份识别卡接入网络。In the present invention, the used user identification card is the user identification card that has been connected to the network in the current terminal. By calculating the score of the user identification card and comparing it with the preset switching threshold, it is judged whether It is necessary to switch the user ID card. For example, the preset switching threshold is 7000. When the calculated score of the used user ID card is 9000, since 9000>7000, the used user ID can still be used in this area. Identification card, there is no need to switch. When the calculated score of the used user identification card is 5000, since 5000<7000, it means that the used user identification card is not suitable for use in this area. At this time, turn the The scores of other user identification cards of the terminal are compared with the preset threshold, and the user identification card with a score higher than 7000 is selected, and when there are multiple user identification cards higher than the preset switching threshold, pass the user ID The priority of the identification card, select the user identification card with the highest priority to access the network.

本发明实施例中,通过获取当前地理位置对应的历史网络使用数据;读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序;根据所述用户身份识别卡数据,获取当前网络状态信息;根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。通过当前地理位置的网络状态和用户身份识别卡数据,将终端中的用户身份识别卡自动切换为当前位置网络情况最优的用户身份识别卡,无需用户手动切换,可以时刻为用户提供最优通信服务,操作简单,使用方便。In the embodiment of the present invention, by obtaining the historical network usage data corresponding to the current geographic location; reading at least two user identification card data, the user identification card data includes the preset user identification card priority order; according to the According to the user identification card data, obtain the current network state information; according to the current network state information, the priority order of the preset user identification card and the historical network usage data, according to the preset switching algorithm, obtain the optimal user ID cards to access the network. Through the network status of the current geographical location and the data of the user identification card, the user identification card in the terminal is automatically switched to the user identification card with the best network condition at the current location, without manual switching by the user, and can provide users with optimal communication at all times Service, simple operation, easy to use.

实施例三、Embodiment three,

图4示出了本发明实施例提供的一种网络接入的方法的实现流程,其与实施例一相似,不同之处在于,Fig. 4 shows the implementation process of a network access method provided by an embodiment of the present invention, which is similar to Embodiment 1, except that,

所述当所述当前已使用用户身份识别卡的评分小于等于所述预设切换阈值时,获取最优用户身份识别卡,并将所述当前已使用用户身份识别卡切换为最优身份识别卡,以接入网络,包括:When the score of the currently used user identification card is less than or equal to the preset switching threshold, obtain the optimal user identification card, and switch the currently used user identification card to the optimal identification card , to access the network, including:

在步骤S310中,当所述当前已使用用户身份识别卡的评分小于所述预设切换阈值时,获取当前评分大于所述预设切换阈值的用户身份识别卡。In step S310, when the score of the currently used user identification card is less than the preset switching threshold, acquire the user identification card whose current score is greater than the preset switching threshold.

在本发明实施例中,当终端中当前已使用用户身份识别卡时,获取到当前已使用的用户身份识别卡所属的运营商,历史使用数据等参数,通过评分算法计算得到已使用的用户身份识别卡的评分为5000,由于预设的切换阈值为8000,因此当前已使用的用户身份识别卡的评分小于预算的切换阈值,则表示当前已使用的用户身份识别卡在本区域并不适合使用,因此,通过分别比对终端中其他的用户身份识别卡,可以获取到评分高于预设的切换阈值的用户身份识别卡,该用户身份识别卡可以为多个。In the embodiment of the present invention, when the user identification card is currently used in the terminal, the operator to which the currently used user identification card belongs, historical usage data and other parameters are obtained, and the used user identity is calculated by scoring algorithm The score of the identification card is 5000. Since the preset switching threshold is 8000, the score of the currently used user identification card is less than the budgeted switching threshold, which means that the currently used user identification card is not suitable for use in this area , therefore, by comparing with other user identification cards in the terminal, the user identification cards whose scores are higher than the preset switching threshold can be obtained, and there may be multiple user identification cards.

在步骤S320中,判断所述评分大于所述预设切换阈值的用户身份识别卡的个数是否大于等于2。In step S320, it is determined whether the number of user identification cards whose scores are greater than the preset switching threshold is greater than or equal to two.

在本发明实施例中,通过分别计算终端中的用户身份识别卡的评分,并与与预设的切换阈值进行比对,分别获取到各个用户身份识别卡的评分,通过与预设的切换阈值进行比对,在当前已使用的用户身份识别卡的评分低于预设的切换阈值时,获取到评分高于预设切换阈值的用户身份识别卡,比如,预设的切换阈值为8000,已使用的用户身份识别卡评分为5000,低于预设的切换阈值,此时分别将用户身份识别卡与预设的切换阈值进行比对,获取到评分高于预设的切换阈值的用户身份识别卡,并判断是否有两个或两个以上的用户身份识别卡高于预设的切换阈值。In the embodiment of the present invention, by calculating the scores of the user identification cards in the terminal respectively, and comparing with the preset switching threshold, the scores of each user identification card are respectively obtained, and by comparing with the preset switching threshold For comparison, when the score of the currently used user identification card is lower than the preset switching threshold, the user identification card with a score higher than the preset switching threshold is obtained. For example, the preset switching threshold is 8000, which has been The score of the user identification card used is 5000, which is lower than the preset switching threshold. At this time, the user identification card is compared with the preset switching threshold, and the user identification with a score higher than the preset switching threshold is obtained. card, and judge whether there are two or more user identification cards higher than the preset switching threshold.

在步骤S330中,当判断结果为否,则将所述当前已使用的用户身份识别卡切换为所述评分大于所述预设切换阈值的用户身份识别卡,以接入网络。In step S330, when the judgment result is negative, switch the currently used user identification card to a user identification card whose score is greater than the preset switching threshold, so as to access the network.

在步骤S340中,当判断结果为是,则根据所述用户身份识别卡优先级顺序,获取所述评分大于所述预设切换阈值的用户身份识别卡中优先级最高的用户身份识别卡;In step S340, when the judgment result is yes, according to the priority order of the user identification cards, obtain the user identification card with the highest priority among the user identification cards whose scores are greater than the preset switching threshold;

在步骤S350中,通过当前所述当前已使用用户身份识别卡切换为优先级最高的用户身份识别卡,接入网络。In step S350, the currently used user identification card is switched to the highest priority user identification card to access the network.

在本发明实施例中,当终端中的用户识别的评分高于预设的切换阈值的个数大于等于2时,则通过预设的用户身份识别卡的优先级,在评分高于预设的切换阈值的用户身份识别卡中,获取到优先级最高的用户身份识别卡,并接入网络,当终端中的用户身份识别卡的评分高于预设的切换阈值的个数小于2时,则将当终端中评分高于预设的切换阈值用户身份识别卡接入网络。In the embodiment of the present invention, when the number of user identification scores higher than the preset switching threshold in the terminal is greater than or equal to 2, the preset priority of the user identification card is used when the score is higher than the preset Among the user identification cards with the switching threshold, the user identification card with the highest priority is obtained and connected to the network. When the number of user identification cards in the terminal whose scores are higher than the preset switching threshold is less than 2, then When the score in the terminal is higher than the preset switching threshold, the user identification card is connected to the network.

作为本发明的一个实施例中,当通过计算得到终端中所有的用户身份识别卡的评分皆小于预设的切换阈值时,可以通过向服务器请求,获取最优的虚拟用户身份识别卡接入网络,或者依旧使用当前已使用的用户身份识别卡,不进行切换,或者使用终端中此时评分最高的用户身份识别卡接入网络,以保证此时可以给予条用户最优的网络服务。As an embodiment of the present invention, when the scores of all user identification cards in the terminal are calculated to be less than the preset switching threshold, the optimal virtual user identification card access network can be obtained by requesting the server , or still use the currently used user ID card without switching, or use the user ID card with the highest score in the terminal to access the network at this time, so as to ensure that the best network service can be given to the user at this time.

本发明实施例中,通过获取当前地理位置对应的历史网络使用数据;读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序;根据所述用户身份识别卡数据,获取当前网络状态信息;根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。通过当前地理位置的网络状态和用户身份识别卡数据,将终端中的用户身份识别卡自动切换为当前位置网络情况最优的用户身份识别卡,无需用户手动切换,可以时刻为用户提供最优通信服务,操作简单,使用方便。In the embodiment of the present invention, by obtaining the historical network usage data corresponding to the current geographic location; reading at least two user identification card data, the user identification card data includes the preset user identification card priority order; according to the According to the user identification card data, obtain the current network state information; according to the current network state information, the priority order of the preset user identification card and the historical network usage data, according to the preset switching algorithm, obtain the optimal user ID cards to access the network. Through the network status of the current geographical location and the data of the user identification card, the user identification card in the terminal is automatically switched to the user identification card with the best network condition at the current location, without manual switching by the user, and can provide users with optimal communication at all times Service, simple operation, easy to use.

实施例四、Embodiment four,

图5示出了本发明实施例提供的又一种用户身份识别卡切换方法的实现流程,其与实施例一相似,不同之处在于,当当前未使用用户身份识别卡时,所述根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络,包括:Fig. 5 shows the implementation process of another user identification card switching method provided by the embodiment of the present invention, which is similar to the first embodiment, except that when the user identification card is not currently used, the method according to the The current network state information, the priority sequence of the preset user identification card and the historical network usage data are obtained according to the preset switching algorithm to obtain the optimal user identification card to access the network, including:

在步骤S410中,根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,计算至少两个用户身份识别卡的评分。In step S410, calculate scores of at least two user identification cards according to the current network status information, the preset priority order of user identification cards and the historical network usage data.

在本发明实施例中,通过获取当前终端所在区域的历史网络使用数据,用户身份识别卡优先级以及本区域的网络状态信息,通过预设的评分算法分别计算每个用户身份识别卡的得分,比如,计算用户身份识别卡a的评分时,获取到用户身份识别卡属于运营商A的卡,得到运营商A的网络强度为20,历史平均信号强度为18,用户平均体验数据为8、平均网速为8,则根据上述评分算法公式,可得S=(2*(100*100)/(100+100))*(100+80/2)=14000,则用户身份识别卡a的在本区域的评分为14000,同上,终端中的其他用户身份识别卡也可根据上述方式进行计算。In the embodiment of the present invention, by obtaining the historical network usage data of the area where the current terminal is located, the priority of the user identification card and the network status information of the area, the score of each user identification card is calculated respectively through a preset scoring algorithm, For example, when calculating the score of user identification card a, the user identification card belongs to operator A, and the network strength of operator A is 20, the historical average signal strength is 18, the average user experience data is 8, and the average If the network speed is 8, then according to the above scoring algorithm formula, it can be obtained that S=(2*(100*100)/(100+100))*(100+80/2)=14000, then the user identification card a is The score in this area is 14000, as above, other user identification cards in the terminal can also be calculated according to the above method.

在步骤S420中,将所述用户身份识别卡的评分分别与预设切换阈值进行比对,获取评分高于所述预设切换阈值的用户身份识别卡。In step S420, the scores of the user identification cards are compared with preset switching thresholds respectively, and user identification cards with scores higher than the preset switching thresholds are obtained.

在本发明实施例中,预设的切换阈值可为系统预设,用来作为一个标准值,与终端中各个用户身份识别卡的评分进行比对,比如,预设的切换阈值为8000,终端中具有第一用户身份识别卡和第二用户身份识别卡,第三用户身份识别卡,通过计算后的得分分别为10000、6000、9000,通过与预设的切换阈值8000进行比对,得到第一用户身份识别卡评分以及第三用户身份识别卡高于预设的切换阈值,第二用户身份识别卡的评分低于预设的切换阈值,此时获取到评分高于预设切换阈值的用户身份识别卡位第一用户身份识别卡以及第三用户身份识别卡。In the embodiment of the present invention, the preset switching threshold can be preset by the system and used as a standard value to compare with the scores of each user identification card in the terminal. For example, the preset switching threshold is 8000, and the terminal There are the first user identification card, the second user identification card, and the third user identification card. The calculated scores are 10000, 6000, and 9000 respectively. By comparing with the preset switching threshold of 8000, the first The score of a user identification card and the third user identification card are higher than the preset switching threshold, and the score of the second user identification card is lower than the preset switching threshold. At this time, the users whose scores are higher than the preset switching threshold are obtained. The identification card is a first user identification card and a third user identification card.

在步骤S430中,根据所述用户身份识别卡优先级顺序,获取所述评分高于所述预设切换阈值的用户身份识别卡中优先级最高的用户身份识别卡,以接入网络。In step S430, according to the priority sequence of the user identification cards, the user identification card with the highest priority among the user identification cards whose scores are higher than the preset switching threshold is acquired to access the network.

在本发明实施例中,当获取到终端中评分高于预设切换阈值的用户身份识别卡为第一用户身份识别卡以及第三用户身份识别卡之后,根据获取的用户身份识别卡的优先级顺序,获取到优先级最高的用户身份识别卡,以接入网络,比如,预设的优先级顺序为第一用户身份识别卡>第三用户身份识别卡时,则此时使用第一用户身份识别卡接入网络。In the embodiment of the present invention, after obtaining the first user identification card and the third user identification card with a score higher than the preset switching threshold in the terminal, according to the priority of the acquired user identification card order, obtain the user ID card with the highest priority to access the network, for example, when the preset priority order is the first user ID card > the third user ID card, then use the first user ID card at this time The identification card is connected to the network.

本发明实施例中,通过获取当前地理位置对应的历史网络使用数据;读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序;根据所述用户身份识别卡数据,获取当前网络状态信息;根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。通过当前地理位置的网络状态和用户身份识别卡数据,将终端中的用户身份识别卡自动切换为当前位置网络情况最优的用户身份识别卡,无需用户手动切换,可以时刻为用户提供最优通信服务,操作简单,使用方便。In the embodiment of the present invention, by obtaining the historical network usage data corresponding to the current geographic location; reading at least two user identification card data, the user identification card data includes the preset user identification card priority order; according to the According to the user identification card data, obtain the current network state information; according to the current network state information, the priority order of the preset user identification card and the historical network usage data, according to the preset switching algorithm, obtain the optimal user ID cards to access the network. Through the network status of the current geographical location and the data of the user identification card, the user identification card in the terminal is automatically switched to the user identification card with the best network condition at the current location, without manual switching by the user, and can provide users with optimal communication at all times Service, simple operation, easy to use.

实施例五、Embodiment five,

图6示出了本发明实施例提供的一种用户身份识别卡切换装置的结构500,应用于终端,为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 6 shows a structure 500 of a user identity card switching device provided by an embodiment of the present invention, which is applied to a terminal. For ease of description, only parts related to the embodiment of the present invention are shown.

装置500包括:历史网络使用数据获取单元51、用户身份识别卡数据读取单元52、当前网络状态信息获取单元53以及网络接入单元54。The device 500 includes: a historical network usage data acquisition unit 51 , a user identification card data reading unit 52 , a current network status information acquisition unit 53 and a network access unit 54 .

历史网络使用数据获取单元51,用于获取当前地理位置对应的历史网络使用数据。The historical network usage data acquisition unit 51 is configured to acquire historical network usage data corresponding to the current geographic location.

在本发明实施例中,历史网络使用数据包括但不限于历史平均网络数据、历史平均用户体验数据,以及历史平均网速数据。In the embodiment of the present invention, historical network usage data includes but not limited to historical average network data, historical average user experience data, and historical average network speed data.

在本发明实施例中,通过对不同终端使用不同的运营商网络的组合,分别收集每种组合方式在当前地理位置的网络使用情况,通过计算平均数,获取到各种历史使用数据的平均数据。In the embodiment of the present invention, by using different combinations of operator networks for different terminals, the network usage of each combination in the current geographic location is collected separately, and the average data of various historical usage data is obtained by calculating the average .

作为本发明的一个实施例,历史网络使用数据可以通过终端提前向服务器下载,比如,当用户需要到A地出差,可以提前向服务器发送下载请求,接收服务器发送的A地相关的历史网络使用数据,并进行存储,以便在到达A地时进行使用。As an embodiment of the present invention, the historical network usage data can be downloaded to the server in advance through the terminal, for example, when the user needs to go on a business trip to A, he can send a download request to the server in advance, and receive the historical network usage data related to A sent by the server , and store it for use when arriving at point A.

作为本发明的另一个实施例,通过预设规则向服务器上报当前地理位置,以使服务器根据上报的地理位置,向终端发送当前地理位置的历史网络使用数据,比如,终端可以通过网络与服务器建立连接,当终端从A地到达B地时,可以向服务器上报B地的地理位置信息,以使服务器查询数据库,获取B地的历史网络使用数据,并发送给终端。As another embodiment of the present invention, the current geographic location is reported to the server through preset rules, so that the server sends the historical network usage data of the current geographic location to the terminal according to the reported geographic location. For example, the terminal can establish a Connection, when the terminal arrives at B from A, it can report the geographical location information of B to the server, so that the server can query the database, obtain the historical network usage data of B, and send it to the terminal.

其中,预设规则包括实时、定时、当终端的地理位置发送变化时上报一次。Wherein, the preset rules include real-time, timing, and reporting once when the geographic location of the terminal changes.

当为定时上报时,可以设置固定的时间点,比如,3点、5点,也可以设置为每间隔预设时间,比如,10分钟、20分钟等,具体可根据实际情况设置,本发明不做限定。When reporting regularly, you can set a fixed time point, such as 3 o'clock and 5 o'clock, or you can set it as a preset time every interval, such as 10 minutes, 20 minutes, etc., which can be set according to actual conditions. The present invention does not Do limited.

用户身份识别卡数据读取单元52,用于读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序。The user identification card data reading unit 52 is configured to read at least two pieces of user identification card data, and the user identification card data includes a preset priority sequence of user identification cards.

在本发明实施例中,用户身份识别卡数据包括但不限于SIM识别码、SIM优先级顺序、SIM卡支持的运营商PLMN列表以及SIM卡可漫游的运营商PLMN列表。In the embodiment of the present invention, the subscriber identity card data includes but not limited to SIM identification code, SIM priority order, operator PLMN list supported by the SIM card, and operator PLMN list that the SIM card can roam.

在本发明实施例中,终端至少包括两张用户身份识别卡,用户身份识别卡为实体用户身份识别卡或者虚拟用户身份识别卡,该实体用户身份识别卡为该通信终端中内置或者插入的SIM卡,该虚拟用户身份识别卡为该虚拟用户身份识别卡为通信终端预先未插入或内置SIM卡,需要从服务器下载的SIM卡,在服务器存放的虚拟用户身份识别卡,该虚拟用户身份识别卡包括SIM卡数据。In the embodiment of the present invention, the terminal includes at least two user identification cards, the user identification card is a physical user identification card or a virtual user identification card, and the physical user identification card is a built-in or inserted SIM in the communication terminal. Card, the virtual user identification card is the virtual user identification card is the SIM card that is not inserted or built-in in the communication terminal in advance, the SIM card that needs to be downloaded from the server, the virtual user identification card stored in the server, the virtual user identification card Includes SIM card data.

在本发明实施例中,用户身份识别卡优先级顺序为使用用户身份识别卡的优先顺序,比如,终端中包括用户身份识别卡A、用户身份识别卡B以及用户身份识别卡C,可以根据用户身份识别卡的资费、网络强度划分优先级,比如,当资费一致时,用户身份识别卡A的网络强度等级为优,用户身份识别卡B的网络强度为一般、用户身份识别卡C的网络强度为差,则优先级顺序为用户身份识别卡A>用户身份识别卡B>用户身份识别卡C。本发明中,用户身份识别卡的优先级顺序是系统预设的,也可以是用户自定义的。In the embodiment of the present invention, the priority order of user identification cards is the priority order of using user identification cards. For example, the terminal includes user identification card A, user identification card B, and user identification card C. The tariff and network strength of the ID card are prioritized. For example, when the tariff is the same, the network strength level of the user ID card A is excellent, the network strength of the user ID card B is average, and the network strength of the user ID card C is If it is poor, the order of priority is user identification card A > user identification card B > user identification card C. In the present invention, the priority sequence of the user identification card is preset by the system, and may also be user-defined.

当前网络状态信息获取单元53,用于根据所述用户身份识别卡数据,获取当前网络状态信息。The current network state information obtaining unit 53 is configured to obtain current network state information according to the user identification card data.

在本发明实施例中,网络状态信息包括但不限于当前是否已注册上网、当前注册上网的SIM卡对应的PLMN、是否正常通讯、在当前位置终端中设置的SIM卡可用的PLMN列表以及每个PLMN对应的网络制式、网络通讯质量、网络信号强度、网络速率、网络通讯质量。In the embodiment of the present invention, the network status information includes but is not limited to whether it is currently registered online, the PLMN corresponding to the SIM card currently registered online, whether the communication is normal, the list of PLMNs available for the SIM card set in the terminal at the current location, and each The network standard, network communication quality, network signal strength, network speed, and network communication quality corresponding to PLMN.

在本发明实施例中,通过获取用户身份识别卡数据后,通过对终端中的用户身份识别卡数据进行搜索,获取每个用户身份识别卡对应的网络状态信息,比如,在终端中的用户身份识别卡H,通过读取用户身份识别卡H的数据,获取到用户身份识别卡H在当前地理位置的PLMN列表、每个PLMN列表对应的网络制式,比如、4G、3G、2G等、通讯质量等网络状态。其中,PLMN列表可以包括与用户身份识别卡H签订漫游协议的运营商网络以及用户识别卡支持的运营商网络。In the embodiment of the present invention, after obtaining the user identity card data, by searching the user identity card data in the terminal, the network status information corresponding to each user identity card is obtained, for example, the user identity in the terminal The identification card H, by reading the data of the user identification card H, obtains the PLMN list of the user identification card H in the current geographical location, the network standard corresponding to each PLMN list, such as 4G, 3G, 2G, etc., communication quality Wait for the network status. Wherein, the PLMN list may include operator networks that have signed a roaming agreement with the subscriber identity card H and operator networks supported by the subscriber identity card.

网络接入单元54,用于根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。The network access unit 54 is configured to obtain the optimal user identification card according to the preset switching algorithm according to the current network state information, the priority sequence of the preset user identification card and the historical network usage data, so as to Connect to the network.

在本发明实施例中,预设的切换算法为,首先通过当前网络状态信息、预设用户身份识别卡优先级顺序以及历史网络使用数据,计算终端中所有的用户身份识别卡的评分,在通过预设的切换阈值,与用户身份识别卡的评分进行比对,获取高于预设切换阈值的用户身份识别卡,接入网络,并在有多个用户身份识别卡的评分高于预设的切换阈值时,根据预设的用户身份识别卡的优先级顺序,将优先级顺序最高的用户身份识别卡接入网络。In the embodiment of the present invention, the preset switching algorithm is as follows: first, calculate the scores of all user identification cards in the terminal through the current network status information, the priority order of the preset user identification cards, and historical network usage data, and then pass The preset switching threshold is compared with the score of the user identification card, and the user identification card that is higher than the preset switching threshold is obtained, connected to the network, and the score of multiple user identification cards is higher than the preset When switching the threshold, according to the preset priority order of the user identification cards, the user identification card with the highest priority is connected to the network.

在本发明实施例中,为避免频繁切换用户身份识别卡,可以设置多个切换阈值,比如,当终端中当前包括用户身份识别卡A、用户身份识别卡B,当前已经使用用户身份识别卡A,当用户移动了当前的地理位置时,根据切换算法,设置了切换阈值为5000,分别计算用户身份识别卡A和用户身份识别卡B的评分,得到用户身份识别卡A的评分为4000,用户身份识别卡B的评分为6000,则将用户身份识别卡A切换为用户身份识别卡B,为避免在使用过程中,频繁切换用户身份识别卡,此时可以设置第二切换阈值为6000,避免在使用过程过程中,将用户身份识别卡B切换为用户身份识别卡A。In the embodiment of the present invention, in order to avoid frequent switching of user identification cards, multiple switching thresholds can be set, for example, when the terminal currently includes user identification card A and user identification card B, and user identification card A is currently used , when the user moves the current geographic location, according to the switching algorithm, the switching threshold is set to 5000, and the scores of user identification card A and user identification card B are calculated respectively, and the score of user identification card A is 4000, and the user If the score of ID card B is 6000, switch user ID card A to user ID card B. In order to avoid frequent switching of user ID cards during use, you can set the second switching threshold to 6000 to avoid During use, switch user identification card B to user identification card A.

在本发明的实施例中,对预设的切换算法进行举例说明:In the embodiment of the present invention, the preset handover algorithm is illustrated as follows:

假设评分算法的各参数分别如下所示:The parameters of the hypothetical scoring algorithm are as follows:

比如,信号强度区间为(0-32)For example, the signal strength range is (0-32)

不可用信号强度在0-4,即信号强度<4判定不可用;The unavailable signal strength is between 0 and 4, that is, the signal strength <4 is unavailable;

可用信号强度在4-10,即信号强度>4并且<10判定可用;The available signal strength is between 4-10, that is, the signal strength is >4 and <10 is available;

良好信号强在10-12,即信号强度>10并且<12判定良好;A good signal strength is 10-12, that is, a signal strength >10 and <12 is considered good;

优秀信号强度>12即信号强度>12判定优秀。Excellent signal strength > 12 means that the signal strength > 12 is considered excellent.

网络运行速率如下所示:The network operation rate is as follows:

不可用网速<500kb/s,即网速<500kb/s,判定为不可用;The unavailable network speed is less than 500kb/s, that is, the network speed is less than 500kb/s, and it is judged as unavailable;

低速网速500kb/s-1Mb/s,即网速在500kb/s-1Mb/s之间,判定为低速;The low-speed network speed is 500kb/s-1Mb/s, that is, the network speed is between 500kb/s-1Mb/s, and it is judged as low-speed;

普通网速1Mb/s-5Mb/s,即网速在1Mb/s-5Mb/s之间,判定为普通;Ordinary network speed 1Mb/s-5Mb/s, that is, the network speed is between 1Mb/s-5Mb/s, it is judged as normal;

良好网速5Mb/s-10Mb/s,即网速在5Mb/s-10Mb/s之间,判定为良好;Good network speed 5Mb/s-10Mb/s, that is, the network speed is between 5Mb/s-10Mb/s, it is judged as good;

优秀网速>10Mb/s,即,当网速大于10Mb/s时,判定为优秀。Excellent network speed>10Mb/s, that is, when the network speed is greater than 10Mb/s, it is judged as excellent.

用户体验数据如下所示:The user experience data looks like this:

比如,用户体验数据区间(0-10)For example, user experience data range (0-10)

用户体验数据差评0-3,即用户体验数据在0-3之间时,为差评;User experience data negative evaluation 0-3, that is, when the user experience data is between 0-3, it is a negative evaluation;

用户体验数据一般3-6,即用户体验数据在3-6之间时,为一般;The user experience data is generally 3-6, that is, when the user experience data is between 3-6, it is average;

用户体验数据良好6-8,即用户体验数据在6-8之间时,为良好;The user experience data is good 6-8, that is, when the user experience data is between 6-8, it is good;

用户体验数据优秀8-10,即用户体验数据在8-10之间时,为优秀。The user experience data is excellent 8-10, that is, when the user experience data is between 8-10, it is excellent.

在本发明实施例中,假设评分算法以如下公式所示:In the embodiment of the present invention, it is assumed that the scoring algorithm is shown in the following formula:

S=(2*(Sa*Sc)/(Sa+Sc))*(Sd+Se/2)S=(2*(Sa*Sc)/(Sa+Sc))*(Sd+Se/2)

其中,Sa为参数a,表示信号强度的分数,如下所示:Among them, Sa is the parameter a, indicating the score of signal strength, as follows:

信号强度为不可用,即在0-4之间时:Sa=0;When the signal strength is unavailable, that is, when it is between 0-4: Sa=0;

信号强度为可用时,即在4-10之间时:Sa=40;When the signal strength is available, that is, between 4-10: Sa=40;

信号强度为良好时,即在10-12之间时:Sa=80;When the signal strength is good, that is, between 10-12: Sa=80;

信号强度为优秀时,即在>12时:Sa=100。When the signal strength is excellent, ie >12: Sa=100.

Sc为参数c,同样表示信号强度的分数,如下所示:Sc is the parameter c, which also represents the score of signal strength, as follows:

信号强度为不可用,即在0-4之间时:Sa=0;When the signal strength is unavailable, that is, when it is between 0-4: Sa=0;

信号强度为可用时,即在4-10之间时:Sa=40;When the signal strength is available, that is, between 4-10: Sa=40;

信号强度为良好时,即在10-12之间时:Sa=80;When the signal strength is good, that is, between 10-12: Sa=80;

信号强度为优秀时,即在>12时:Sa=100。When the signal strength is excellent, ie >12: Sa=100.

Sd为参数d,表示用户体验数据的分数,如下所示:Sd is the parameter d, indicating the score of user experience data, as follows:

用户体验数据在0-3之间时,为差评,Sd=0;When the user experience data is between 0-3, it is a bad review, Sd=0;

用户体验数据在3-6之间时,为一般,Sd=30;When the user experience data is between 3-6, it is average, Sd=30;

用户体验数据在6-8之间时,为良好,Sd=60;When the user experience data is between 6-8, it is good, Sd=60;

用户体验数据在8-10之间时,为优秀,Sd=100。When the user experience data is between 8-10, it is excellent, Sd=100.

Se为参数e,表示网速的对应分数,如下所示:Se is the parameter e, which represents the corresponding score of the network speed, as follows:

不可用网速,即网速<500kb/s时,Se=0Unavailable network speed, that is, when the network speed is <500kb/s, Se=0

低速网速,即网速在500kb/s-1Mb/s之间,Se=20;Low-speed network speed, that is, the network speed is between 500kb/s-1Mb/s, Se=20;

普通网速,即网速在1Mb/s-5Mb/s之间,Se=50;Ordinary network speed, that is, the network speed is between 1Mb/s-5Mb/s, Se=50;

良好网速,即网速在5Mb/s-10Mb/s之间,Se=80;Good network speed, that is, the network speed is between 5Mb/s-10Mb/s, Se=80;

优秀网速,即,当网速大于10Mb/s时,Se=100。Excellent network speed, that is, when the network speed is greater than 10Mb/s, Se=100.

根据上述评分算法以及各参数的取值,通过具体实施例进行进一步进行解释说明,假设某区域A的各参数数值如下所示:According to the above-mentioned scoring algorithm and the values of each parameter, further explanations are carried out through specific examples, assuming that the values of each parameter in a certain area A are as follows:

参数a为设备获取到的网络状态信息:Parameter a is the network status information obtained by the device:

运营商A信号强度=20,运营商B信号强度=8,运营商C信号强度=3;Operator A signal strength = 20, operator B signal strength = 8, operator C signal strength = 3;

其中,信号强度主要指4G/3G的信号强度,信号强度区间0-32。Among them, the signal strength mainly refers to the signal strength of 4G/3G, and the signal strength range is 0-32.

参数b为用户身份识别卡的优先级,运营商B的SIM卡>运营商A的SIM卡>运营商C的SIM卡;Parameter b is the priority of the user identification card, the SIM card of operator B > the SIM card of operator A > the SIM card of operator C;

参数c为本区域历史平均网络数据:The parameter c is the historical average network data of this region:

运营商A信号强度=18,运营商B信号强度=8,运营商C信号强度=6Carrier A signal strength = 18, Carrier B signal strength = 8, Carrier C signal strength = 6

参数d为本区域历史平均用户体验数据(满分10):Parameter d is the historical average user experience data in this area (full score: 10):

运营商A=8,运营商B=6,运营商C=4;Carrier A=8, Carrier B=6, Carrier C=4;

参数e为本区域历史平均网速数据:The parameter e is the historical average network speed data in this area:

运营商A=8M/s,运营商B=12M/s,运营商C=6M/s。Operator A=8M/s, operator B=12M/s, operator C=6M/s.

根据上述评分算法的公式,分别计算运营商A、运营商B以及运营商C的分数,如下所示:According to the formula of the scoring algorithm above, calculate the scores of operator A, operator B, and operator C respectively, as follows:

运营商A评分S=(2*(100*100)/(100+100))*(100+80/2)=14000Score of operator A = (2*(100*100)/(100+100))*(100+80/2)=14000

运营商B评分S=(2*(40*40)/(40+40))*(60+100/2)=4000Carrier B score S=(2*(40*40)/(40+40))*(60+100/2)=4000

运营商B评分S=(2*(0*40)/(40+40))*(30+80/2)=0Carrier B score S=(2*(0*40)/(40+40))*(30+80/2)=0

假设切换阀值=8000,Assuming switching threshold = 8000,

如果当前选择的是运营商B的sim卡,4000<8000<14000,则需切换到运营商AIf the current selection is the sim card of operator B, 4000<8000<14000, you need to switch to operator A

假设切换阀值=2000Suppose switching threshold=2000

如果当前选择的是运营商B的sim卡,2000<4000,则无需切换If the current selection is the sim card of operator B, 2000<4000, there is no need to switch

如果当前未选择SIM卡,由于评分均大于2000,此时采用用户优先级高的SIM卡,即运营商B的SIM卡。If no SIM card is currently selected, since the scores are all greater than 2000, the SIM card with high user priority, that is, the SIM card of operator B, is used at this time.

本发明实施例中,通过获取当前地理位置对应的历史网络使用数据;读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序;根据所述用户身份识别卡数据,获取当前网络状态信息;根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。通过当前地理位置的网络状态和用户身份识别卡数据,将终端中的用户身份识别卡自动切换为当前位置网络情况最优的用户身份识别卡,无需用户手动切换,可以时刻为用户提供最优通信服务,操作简单,使用方便。In the embodiment of the present invention, by obtaining the historical network usage data corresponding to the current geographic location; reading at least two user identification card data, the user identification card data includes the preset user identification card priority order; according to the According to the user identification card data, obtain the current network state information; according to the current network state information, the priority order of the preset user identification card and the historical network usage data, according to the preset switching algorithm, obtain the optimal user ID cards to access the network. Through the network status of the current geographical location and the data of the user identification card, the user identification card in the terminal is automatically switched to the user identification card with the best network condition at the current location, without manual switching by the user, and can provide users with optimal communication at all times Service, simple operation, easy to use.

实施例六、Embodiment six,

图7示出了本发明实施例提供的一种网络接入单元的结构,为了便于说明,仅示出了与本发明实施例相关的部分。Fig. 7 shows the structure of a network access unit provided by the embodiment of the present invention, and for the convenience of description, only the parts related to the embodiment of the present invention are shown.

当当前已使用用户身份识别卡时,所述网络接入单元54,包括:第一评分计算子单元541、比对子单元542、第一网络接入子单元543以及第二网络接入子单元544。When the user identification card is currently used, the network access unit 54 includes: a first score calculation subunit 541, a comparison subunit 542, a first network access subunit 543 and a second network access subunit 544.

第一评分计算子单元541,用于根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,计算至少两个用户身份识别卡的评分。The first score calculation subunit 541 is configured to calculate the scores of at least two user identification cards according to the current network status information, the preset priority sequence of user identification cards and the historical network usage data.

在本发明实施例中,通过获取当前终端所在区域的历史网络使用数据,用户身份识别卡优先级以及本区域的网络状态信息,通过预设的评分算法分别计算每个用户身份识别卡的得分,比如,计算用户身份识别卡a的评分时,获取到用户身份识别卡属于运营商A的卡,得到运营商A的网络强度为20,历史平均信号强度为18,用户平均体验数据为8、平均网速为8,则根据上述评分算法公式,可得S=(2*(100*100)/(100+100))*(100+80/2)=14000,则用户身份识别卡a的在本区域的评分为14000,同上,终端中的其他用户身份识别卡也可根据上述方式进行计算。In the embodiment of the present invention, by obtaining the historical network usage data of the area where the current terminal is located, the priority of the user identification card and the network status information of the area, the score of each user identification card is calculated respectively through a preset scoring algorithm, For example, when calculating the score of user identification card a, the user identification card belongs to operator A, and the network strength of operator A is 20, the historical average signal strength is 18, the average user experience data is 8, and the average If the network speed is 8, then according to the above scoring algorithm formula, it can be obtained that S=(2*(100*100)/(100+100))*(100+80/2)=14000, then the user identification card a is The score in this area is 14000, as above, other user identification cards in the terminal can also be calculated according to the above method.

比对子单元542,用于将所述用户身份识别卡的评分分别与预设切换阈值进行比对。The comparing subunit 542 is configured to compare the score of the user identification card with a preset switching threshold.

在本发明实施例中,预设的切换阈值可为系统预设,用来作为一个标准值,与终端中各个用户身份识别卡的评分进行比对,比如,预设的切换阈值为8000,终端中具有第一用户身份识别卡和第二用户身份识别卡,通过计算后的得分分别为10000以及6000,通过与预设的切换阈值8000进行比对,得到第一用户身份识别卡评分高于预设的切换阈值,第二用户身份识别卡的评分低于预设的切换阈值。In the embodiment of the present invention, the preset switching threshold can be preset by the system and used as a standard value to compare with the scores of each user identification card in the terminal. For example, the preset switching threshold is 8000, and the terminal There is a first user identification card and a second user identification card, and the calculated scores are 10000 and 6000 respectively. By comparing with the preset switching threshold of 8000, it is obtained that the score of the first user identification card is higher than the preset The preset switching threshold, the score of the second user identification card is lower than the preset switching threshold.

在本发明实施例中,为避免频繁切换用户身份识别卡,可以设置多个切换阈值,比如,当终端中当前包括用户身份识别卡A、用户身份识别卡B,当前已经使用用户身份识别卡A,当用户移动了当前的地理位置时,根据切换算法,设置了切换阈值为5000,分别计算用户身份识别卡A和用户身份识别卡B的评分,得到用户身份识别卡A的评分为4000,用户身份识别卡B的评分为6000,则将用户身份识别卡A切换为用户身份识别卡B,为避免在使用过程中,频繁切换用户身份识别卡,此时可以设置第二切换阈值为6000,避免在使用过程过程中,将用户身份识别卡B切换为用户身份识别卡A。In the embodiment of the present invention, in order to avoid frequent switching of user identification cards, multiple switching thresholds can be set, for example, when the terminal currently includes user identification card A and user identification card B, and user identification card A is currently used , when the user moves the current geographic location, according to the switching algorithm, the switching threshold is set to 5000, and the scores of user identification card A and user identification card B are calculated respectively, and the score of user identification card A is 4000, and the user If the score of ID card B is 6000, switch user ID card A to user ID card B. In order to avoid frequent switching of user ID cards during use, you can set the second switching threshold to 6000 to avoid During use, switch user identification card B to user identification card A.

第一网络接入子单元543,用于当所述当前已使用的用户身份识别卡的评分大于所述预设切换阈值时,不进行切换。The first network access subunit 543 is configured not to switch when the score of the currently used user identification card is greater than the preset switching threshold.

第二网络接入子单元544,用于当所述当前已使用的用户身份识别卡的评分小于所述预设切换阈值时,获取最优用户身份识别卡,并将所述当前已使用用户身份识别卡切换为所述最优身份识别卡,以接入网络。The second network access subunit 544 is configured to obtain the optimal user identification card when the score of the currently used user identification card is less than the preset switching threshold, and transfer the currently used user identification card to The identification card is switched to the optimal identification card to access the network.

在本发明中,已使用的用户身份识别卡为当前终端中已经接入网络的用户身份识别卡,通过计算此用户身份识别卡的评分,并与预设的切换阈值进行比对,以判断是否需要切换用户身份识别卡,如,预设的切换阈值为7000,当已使用的用户身份识别卡计算得到的评分为9000时,由于9000>7000,则在本区域仍然可以使用已使用的用户身份识别卡啊,无需切换,当已使用的用户身份识别卡计算得到的评分为5000时,由于5000<7000,则说明已使用的用户身份识别卡在本区域并不适合使用,此时,依次将终端其他的用户身份识别卡的评分与预设阈值进行比对,选择出评分高于7000的用户身份识别卡,并在具有多个高于预设切换阈值的用户身份识别卡时,通过用户身份识别卡的优先级,选择优先级最高的用户身份识别卡接入网络。In the present invention, the used user identification card is the user identification card that has been connected to the network in the current terminal. By calculating the score of the user identification card and comparing it with the preset switching threshold, it is judged whether It is necessary to switch the user ID card. For example, the preset switching threshold is 7000. When the calculated score of the used user ID card is 9000, since 9000>7000, the used user ID can still be used in this area. Identification card, there is no need to switch. When the calculated score of the used user identification card is 5000, since 5000<7000, it means that the used user identification card is not suitable for use in this area. At this time, turn the The scores of other user identification cards of the terminal are compared with the preset threshold, and the user identification card with a score higher than 7000 is selected, and when there are multiple user identification cards higher than the preset switching threshold, pass the user ID The priority of the identification card, select the user identification card with the highest priority to access the network.

本发明实施例中,通过获取当前地理位置对应的历史网络使用数据;读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序;根据所述用户身份识别卡数据,获取当前网络状态信息;根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。通过当前地理位置的网络状态和用户身份识别卡数据,将终端中的用户身份识别卡自动切换为当前位置网络情况最优的用户身份识别卡,无需用户手动切换,可以时刻为用户提供最优通信服务,操作简单,使用方便。In the embodiment of the present invention, by obtaining the historical network usage data corresponding to the current geographic location; reading at least two user identification card data, the user identification card data includes the preset user identification card priority order; according to the According to the user identification card data, obtain the current network state information; according to the current network state information, the priority order of the preset user identification card and the historical network usage data, according to the preset switching algorithm, obtain the optimal user ID cards to access the network. Through the network status of the current geographical location and the data of the user identification card, the user identification card in the terminal is automatically switched to the user identification card with the best network condition at the current location, without manual switching by the user, and can provide users with optimal communication at all times Service, simple operation, easy to use.

实施例七、Embodiment seven,

图8示出了本发明实施例提供的第二网络接入子单元544的结构,为了便于说明,仅示出了本发明实施例相关的部分。FIG. 8 shows the structure of the second network access subunit 544 provided by the embodiment of the present invention. For convenience of description, only the relevant parts of the embodiment of the present invention are shown.

第二网络接入子单元544包括:第一用户身份识别卡获取模块5441、判断模块5442、第一网络接入模块5443、第二用户身份识别卡获取模块5444以及第二网络接入模块5445。The second network access subunit 544 includes: a first user identification card acquisition module 5441 , a judging module 5442 , a first network access module 5443 , a second user identification card acquisition module 5444 and a second network access module 5445 .

所述当所述当前已使用用户身份识别卡的评分小于等于所述预设切换阈值时,获取最优用户身份识别卡,并将所述当前已使用用户身份识别卡切换为最优身份识别卡,以接入网络,包括:When the score of the currently used user identification card is less than or equal to the preset switching threshold, obtain the optimal user identification card, and switch the currently used user identification card to the optimal identification card , to access the network, including:

第一用户身份识别卡获取模块5441,用于当所述当前已使用用户身份识别卡的评分小于所述预设切换阈值时,获取当前评分大于所述预设切换阈值的用户身份识别卡。The first user identification card acquisition module 5441 is configured to acquire a user identification card whose current score is greater than the preset switching threshold when the score of the currently used user identification card is less than the preset switching threshold.

在本发明实施例中,当终端中当前已使用用户身份识别卡时,获取到当前已使用的用户身份识别卡所属的运营商,历史使用数据等参数,通过评分算法计算得到已使用的用户身份识别卡的评分为5000,由于预设的切换阈值为8000,因此当前已使用的用户身份识别卡的评分小于预算的切换阈值,则表示当前已使用的用户身份识别卡在本区域并不适合使用,因此,通过分别比对终端中其他的用户身份识别卡,可以获取到评分高于预设的切换阈值的用户身份识别卡,该用户身份识别卡可以为多个。In the embodiment of the present invention, when the user identification card is currently used in the terminal, the operator to which the currently used user identification card belongs, historical usage data and other parameters are obtained, and the used user identity is calculated by scoring algorithm The score of the identification card is 5000. Since the preset switching threshold is 8000, the score of the currently used user identification card is less than the budgeted switching threshold, which means that the currently used user identification card is not suitable for use in this area , therefore, by comparing with other user identification cards in the terminal, the user identification cards whose scores are higher than the preset switching threshold can be obtained, and there may be multiple user identification cards.

判断模块5442,用于判断所述评分大于所述预设切换阈值的用户身份识别卡的个数是否大于等于2。A judging module 5442, configured to judge whether the number of user identification cards whose scores are greater than the preset switching threshold is greater than or equal to two.

在本发明实施例中,通过分别计算终端中的用户身份识别卡的评分,并与与预设的切换阈值进行比对,分别获取到各个用户身份识别卡的评分,通过与预设的切换阈值进行比对,在当前已使用的用户身份识别卡的评分低于预设的切换阈值时,获取到评分高于预设切换阈值的用户身份识别卡,比如,预设的切换阈值为8000,已使用的用户身份识别卡评分为5000,低于预设的切换阈值,此时分别将用户身份识别卡与预设的切换阈值进行比对,获取到评分高于预设的切换阈值的用户身份识别卡,并判断是否有两个或两个以上的用户身份识别卡高于预设的切换阈值。In the embodiment of the present invention, by calculating the scores of the user identification cards in the terminal respectively, and comparing with the preset switching threshold, the scores of each user identification card are respectively obtained, and by comparing with the preset switching threshold For comparison, when the score of the currently used user identification card is lower than the preset switching threshold, the user identification card with a score higher than the preset switching threshold is obtained. For example, the preset switching threshold is 8000, which has been The score of the user identification card used is 5000, which is lower than the preset switching threshold. At this time, the user identification card is compared with the preset switching threshold, and the user identification with a score higher than the preset switching threshold is obtained. card, and judge whether there are two or more user identification cards higher than the preset switching threshold.

第一网络接入模块5443,用于当判断结果为否,则将所述当前已使用的用户身份识别卡切换为所述评分大于所述预设切换阈值的用户身份识别卡,以接入网络。The first network access module 5443 is configured to switch the currently used user identification card to a user identification card whose score is greater than the preset switching threshold when the judgment result is negative, so as to access the network .

第二用户身份识别卡获取单元5444,用于当判断结果为是,则根据所述用户身份识别卡优先级顺序,获取所述评分大于所述预设切换阈值的用户身份识别卡中优先级最高的用户身份识别卡;The second user identification card acquisition unit 5444 is configured to obtain the highest priority among the user identification cards whose scores are greater than the preset switching threshold according to the priority order of the user identification cards when the judgment result is yes user identification card;

第二网络接入模块5445,用于通过当前所述当前已使用用户身份识别卡切换为优先级最高的用户身份识别卡,接入网络。The second network access module 5445 is configured to switch the currently used user identification card to the highest priority user identification card to access the network.

在本发明实施例中,当终端中的用户识别的评分高于预设的切换阈值的个数大于等于2时,则通过预设的用户身份识别卡的优先级,在评分高于预设的切换阈值的用户身份识别卡中,获取到优先级最高的用户身份识别卡,并接入网络,当终端中的用户身份识别卡的评分高于预设的切换阈值的个数小于2时,则将当终端中评分高于预设的切换阈值用户身份识别卡接入网络。In the embodiment of the present invention, when the number of user identification scores higher than the preset switching threshold in the terminal is greater than or equal to 2, the preset priority of the user identification card is used when the score is higher than the preset Among the user identification cards with the switching threshold, the user identification card with the highest priority is obtained and connected to the network. When the number of user identification cards in the terminal whose scores are higher than the preset switching threshold is less than 2, then When the score in the terminal is higher than the preset switching threshold, the user identification card is connected to the network.

作为本发明的一个实施例中,当通过计算得到终端中所有的用户身份识别卡的评分皆小于预设的切换阈值时,可以通过向服务器请求,获取最优的虚拟用户身份识别卡接入网络,或者依旧使用当前已使用的用户身份识别卡,不进行切换,或者使用终端中此时评分最高的用户身份识别卡接入网络,以保证此时可以给予条用户最优的网络服务。As an embodiment of the present invention, when the scores of all user identification cards in the terminal are calculated to be less than the preset switching threshold, the optimal virtual user identification card access network can be obtained by requesting the server , or still use the currently used user ID card without switching, or use the user ID card with the highest score in the terminal to access the network at this time, so as to ensure that the best network service can be given to the user at this time.

本发明实施例中,通过获取当前地理位置对应的历史网络使用数据;读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序;根据所述用户身份识别卡数据,获取当前网络状态信息;根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。通过当前地理位置的网络状态和用户身份识别卡数据,将终端中的用户身份识别卡自动切换为当前位置网络情况最优的用户身份识别卡,无需用户手动切换,可以时刻为用户提供最优通信服务,操作简单,使用方便。In the embodiment of the present invention, by obtaining the historical network usage data corresponding to the current geographic location; reading at least two user identification card data, the user identification card data includes the preset user identification card priority order; according to the According to the user identification card data, obtain the current network state information; according to the current network state information, the priority order of the preset user identification card and the historical network usage data, according to the preset switching algorithm, obtain the optimal user ID cards to access the network. Through the network status of the current geographical location and the data of the user identification card, the user identification card in the terminal is automatically switched to the user identification card with the best network condition at the current location, without manual switching by the user, and can provide users with optimal communication at all times Service, simple operation, easy to use.

实施例八、Embodiment eight,

图9示出了本发明实施例提供的另一种网络接入单元54的结构,为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 9 shows the structure of another network access unit 54 provided by the embodiment of the present invention. For convenience of description, only the parts related to the embodiment of the present invention are shown.

当当前未使用用户身份识别卡时,网络接入单元54,还包括:第二评分计算子单元545、用户身份识别卡获取子单元546以及第三网络接入子单元547。When the user identification card is not currently used, the network access unit 54 further includes: a second score calculation subunit 545 , a user identification card acquisition subunit 546 and a third network access subunit 547 .

第二评分计算子单元545,用于根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,计算至少两个用户身份识别卡的评分The second score calculation subunit 545 is configured to calculate the scores of at least two user identification cards according to the current network status information, the preset priority sequence of user identification cards and the historical network usage data

在本发明实施例中,通过获取当前终端所在区域的历史网络使用数据,用户身份识别卡优先级以及本区域的网络状态信息,通过预设的评分算法分别计算每个用户身份识别卡的得分,比如,计算用户身份识别卡a的评分时,获取到用户身份识别卡属于运营商A的卡,得到运营商A的网络强度为20,历史平均信号强度为18,用户平均体验数据为8、平均网速为8,则根据上述评分算法公式,可得S=(2*(100*100)/(100+100))*(100+80/2)=14000,则用户身份识别卡a的在本区域的评分为14000,同上,终端中的其他用户身份识别卡也可根据上述方式进行计算。In the embodiment of the present invention, by obtaining the historical network usage data of the area where the current terminal is located, the priority of the user identification card and the network status information of the area, the score of each user identification card is calculated respectively through a preset scoring algorithm, For example, when calculating the score of user identification card a, the user identification card belongs to operator A, and the network strength of operator A is 20, the historical average signal strength is 18, the average user experience data is 8, and the average If the network speed is 8, then according to the above scoring algorithm formula, it can be obtained that S=(2*(100*100)/(100+100))*(100+80/2)=14000, then the user identification card a is The score in this area is 14000, as above, other user identification cards in the terminal can also be calculated according to the above method.

用户身份识别卡获取子单元546,用于将所述用户身份识别卡的评分分别与预设切换阈值进行比对,获取评分高于所述预设切换阈值的用户身份识别卡。The user identification card acquisition subunit 546 is configured to compare the scores of the user identification cards with preset switching thresholds, and obtain user identification cards with scores higher than the preset switching thresholds.

在本发明实施例中,预设的切换阈值可为系统预设,用来作为一个标准值,与终端中各个用户身份识别卡的评分进行比对,比如,预设的切换阈值为8000,终端中具有第一用户身份识别卡和第二用户身份识别卡,第三用户身份识别卡,通过计算后的得分分别为10000、6000、9000,通过与预设的切换阈值8000进行比对,得到第一用户身份识别卡评分以及第三用户身份识别卡高于预设的切换阈值,第二用户身份识别卡的评分低于预设的切换阈值,此时获取到评分高于预设切换阈值的用户身份识别卡位第一用户身份识别卡以及第三用户身份识别卡。In the embodiment of the present invention, the preset switching threshold can be preset by the system and used as a standard value to compare with the scores of each user identification card in the terminal. For example, the preset switching threshold is 8000, and the terminal There are the first user identification card, the second user identification card, and the third user identification card. The calculated scores are 10000, 6000, and 9000 respectively. By comparing with the preset switching threshold of 8000, the first The score of a user identification card and the third user identification card are higher than the preset switching threshold, and the score of the second user identification card is lower than the preset switching threshold. At this time, the users whose scores are higher than the preset switching threshold are obtained. The identification card is a first user identification card and a third user identification card.

第三网络接入子单元547,用于根据所述用户身份识别卡优先级顺序,获取所述评分高于所述预设切换阈值的用户身份识别卡中优先级最高的用户身份识别卡,以接入网络。The third network access subunit 547 is configured to obtain, according to the priority order of the user identification cards, the user identification card with the highest priority among the user identification cards whose scores are higher than the preset switching threshold, to Connect to the network.

在本发明实施例中,当获取到终端中评分高于预设切换阈值的用户身份识别卡为第一用户身份识别卡以及第三用户身份识别卡之后,根据获取的用户身份识别卡的优先级顺序,获取到优先级最高的用户身份识别卡,以接入网络,比如,预设的优先级顺序为第一用户身份识别卡>第三用户身份识别卡时,则此时使用第一用户身份识别卡接入网络。In the embodiment of the present invention, after obtaining the first user identification card and the third user identification card with a score higher than the preset switching threshold in the terminal, according to the priority of the acquired user identification card order, obtain the user ID card with the highest priority to access the network, for example, when the preset priority order is the first user ID card > the third user ID card, then use the first user ID card at this time The identification card is connected to the network.

本发明实施例中,通过获取当前地理位置对应的历史网络使用数据;读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序;根据所述用户身份识别卡数据,获取当前网络状态信息;根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。通过当前地理位置的网络状态和用户身份识别卡数据,将终端中的用户身份识别卡自动切换为当前位置网络情况最优的用户身份识别卡,无需用户手动切换,可以时刻为用户提供最优通信服务,操作简单,使用方便。In the embodiment of the present invention, by obtaining the historical network usage data corresponding to the current geographic location; reading at least two user identification card data, the user identification card data includes the preset user identification card priority order; according to the According to the user identification card data, obtain the current network state information; according to the current network state information, the priority order of the preset user identification card and the historical network usage data, according to the preset switching algorithm, obtain the optimal user ID cards to access the network. Through the network status of the current geographical location and the data of the user identification card, the user identification card in the terminal is automatically switched to the user identification card with the best network condition at the current location, without manual switching by the user, and can provide users with optimal communication at all times Service, simple operation, easy to use.

本领域普通技术人员可以理解,实现上述实施例方法中的全部或者部分步骤是可以通过程序来指令相关的硬件来完成的,所述的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘、光盘、闪盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. Storage media, such as ROM/RAM, magnetic disk, optical disk, flash disk, etc.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.

Claims (15)

Translated fromChinese
1.一种用户身份识别卡切换方法,应用于终端,其特征在于,所述方法包括:1. A user identification card switching method applied to a terminal, characterized in that the method comprises:获取当前地理位置对应的历史网络使用数据;Obtain historical network usage data corresponding to the current geographic location;读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序;reading at least two pieces of user identification card data, the user identification card data including a preset priority sequence of user identification cards;根据所述用户身份识别卡数据,获取当前网络状态信息;Obtain current network status information according to the user identification card data;根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。According to the current network status information, the priority order of the preset user identification cards and the historical network usage data, according to a preset switching algorithm, an optimal user identification card is obtained to access the network.2.如权利要求1所述的用户身份识别卡切换方法,其特征在于,当当前已使用用户身份识别卡时,所述根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络,包括:2. The method for switching user identification cards according to claim 1, wherein, when the user identification card is currently used, said current network state information, said preset user identification card priority The sequence and the historical network usage data, according to the preset switching algorithm, obtain the optimal user identification card to access the network, including:根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,计算至少两个用户身份识别卡的评分;calculating scores for at least two user identification cards according to the current network status information, the preset priority order of user identification cards, and the historical network usage data;将所述用户身份识别卡的评分分别与预设切换阈值进行比对;Comparing the score of the user identification card with the preset switching threshold respectively;当所述当前已使用的用户身份识别卡的评分大于所述预设切换阈值时,不进行切换;When the score of the currently used user identification card is greater than the preset switching threshold, switching is not performed;当所述当前已使用的用户身份识别卡的评分小于所述预设切换阈值时,获取最优用户身份识别卡,并将所述当前已使用的用户身份识别卡切换为所述最优身份识别卡,以接入网络。When the score of the currently used user identification card is less than the preset switching threshold, obtain the optimal user identification card, and switch the currently used user identification card to the optimal identification card card to access the network.3.如权利要求2所述的用户身份识别卡切换方法,其特征在于,所述当所述当前已使用的用户身份识别卡的评分小于等于所述预设切换阈值时,获取最优用户身份识别卡,并将所述当前已使用的用户身份识别卡切换为最优身份识别卡,以接入网络,包括:3. The method for switching user identification cards according to claim 2, wherein when the score of the currently used user identification card is less than or equal to the preset switching threshold, the optimal user identity card is obtained. identification card, and switching the currently used user identification card to an optimal identification card to access the network, including:当所述当前已使用的用户身份识别卡的评分小于所述预设切换阈值时,获取当前评分大于所述预设切换阈值的用户身份识别卡;When the score of the currently used user identification card is less than the preset switching threshold, acquiring a user identification card whose current score is greater than the preset switching threshold;判断所述评分大于所述预设切换阈值的用户身份识别卡的个数是否大于等于2;Judging whether the number of user identification cards whose scores are greater than the preset switching threshold is greater than or equal to 2;当判断结果为否,则将所述当前已使用的用户身份识别卡切换为所述评分大于所述预设切换阈值的用户身份识别卡,以接入网络。When the judgment result is no, switch the currently used user identification card to a user identification card whose score is greater than the preset switching threshold, so as to access the network.4.如权利要求3所述的用户身份识别卡切换方法,其特征在于,所述判断所述评分大于所述预设切换阈值的用户身份识别卡的个数是否大于等于2,之后还包括:4. The method for switching user identification cards according to claim 3, wherein said judging whether the number of user identification cards whose scores are greater than the preset switching threshold is greater than or equal to 2, and then further comprising:当判断结果为是,则根据所述用户身份识别卡优先级顺序,获取所述评分大于所述预设切换阈值的用户身份识别卡中优先级最高的用户身份识别卡;When the judgment result is yes, according to the priority order of the user identification cards, obtain the user identification card with the highest priority among the user identification cards whose scores are greater than the preset switching threshold;通过所述当前已使用的用户身份识别卡切换为优先级最高的用户身份识别卡,接入网络。Access to the network by switching the currently used user identification card to the user identification card with the highest priority.5.如权利要求1所述的用户身份识别卡切换方法,其特征在于,当当前未使用用户身份识别卡时,所述根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络,包括:5. The method for switching user identification cards according to claim 1, wherein, when the user identification card is not currently in use, said current network state information, said preset priority of the user identification card The sequence and the historical network usage data, according to the preset switching algorithm, obtain the optimal user identification card to access the network, including:根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,计算至少两个用户身份识别卡的评分;calculating scores for at least two user identification cards according to the current network status information, the preset priority order of user identification cards, and the historical network usage data;将所述用户身份识别卡的评分分别与预设切换阈值进行比对,获取评分高于所述预设切换阈值的用户身份识别卡;Comparing the scores of the user identification cards with preset switching thresholds respectively, and acquiring user identification cards with scores higher than the preset switching thresholds;根据所述用户身份识别卡优先级顺序,获取所述评分高于所述预设切换阈值的用户身份识别卡中优先级最高的用户身份识别卡,以接入网络。According to the priority order of the user identification cards, the user identification card with the highest priority among the user identification cards whose scores are higher than the preset switching threshold is acquired to access the network.6.如权利要求1所述的用户身份识别卡切换方法,其特征在于,所述网络状态信息包括当前可用的PLMN列表以及每个PLMN对应的网络制式、网络通讯质量、网络信号强度、网络速率。6. The user identification card switching method as claimed in claim 1, wherein the network status information includes a list of currently available PLMNs and a network system corresponding to each PLMN, network communication quality, network signal strength, and network speed .7.如权利要求1所述的用户身份识别卡切换方法,其特征在于,所述历史网络使用数据包括用户平均体验数据、历史平均网络强度、历史平均网络速率。7. The method for switching user identification cards according to claim 1, wherein the historical network usage data includes user average experience data, historical average network strength, and historical average network speed.8.如权利要求1所述的用户身份识别卡切换方法,其特征在于,所述获取当前地理位置对应的历史网络使用数据、与所述读取至少两张用户身份识别卡数据的顺序不分先后。8. The method for switching user identification cards according to claim 1, wherein said obtaining historical network usage data corresponding to the current geographic location is indistinguishable from the sequence of reading at least two user identification card data Successively.9.一种用户身份识别卡切换装置,其特征在于,所述装置包括:9. A user identification card switching device, characterized in that the device comprises:历史网络使用数据获取单元,用于获取当前地理位置对应的历史网络使用数据;A historical network usage data acquisition unit, configured to acquire historical network usage data corresponding to the current geographic location;用户身份识别卡数据读取单元,用于读取至少两张用户身份识别卡数据,所述用户身份识别卡数据包括预设的用户身份识别卡优先级顺序;The user identification card data reading unit is used to read at least two pieces of user identification card data, and the user identification card data includes a preset priority sequence of user identification cards;当前网络状态信息获取单元,用于根据所述用户身份识别卡数据,获取当前网络状态信息;A current network status information acquisition unit, configured to acquire current network status information according to the user identification card data;网络接入单元,用于根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,按照预设切换算法,获取最优用户身份识别卡,以接入网络。The network access unit is configured to obtain the optimal user identification card according to the preset switching algorithm according to the current network state information, the priority sequence of the preset user identification card and the historical network usage data, so as to access into the network.10.如权利要求9所述的用户身份识别卡切换装置,其特征在于,当当前已使用用户身份识别卡时,所述网络接入单元,包括:10. The user identification card switching device according to claim 9, wherein when the user identification card is currently used, the network access unit includes:第一评分计算子单元,用于根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,计算至少两个用户身份识别卡的评分;A first score calculation subunit, configured to calculate the scores of at least two user identification cards according to the current network status information, the preset priority order of user identification cards, and the historical network usage data;比对子单元,用于将所述用户身份识别卡的评分分别与预设切换阈值进行比对;The comparing subunit is used to compare the score of the user identification card with the preset switching threshold respectively;第一网络接入子单元,用于当所述当前已使用的用户身份识别卡的评分大于所述预设切换阈值时,不进行切换;The first network access subunit is configured not to switch when the score of the currently used user identification card is greater than the preset switching threshold;第二网络接入子单元,用于当所述当前已使用的用户身份识别卡的评分小于所述预设切换阈值时,获取最优用户身份识别卡,并将所述当前已使用的用户身份识别卡切换为所述最优身份识别卡,以接入网络。The second network access subunit is configured to acquire the optimal user identity card when the score of the currently used user identity card is less than the preset switching threshold, and transfer the currently used user identity The identification card is switched to the optimal identification card to access the network.11.如权利要求10所述的用户身份识别卡切换装置,其特征在于,所述第二网络接入子单元包括,包括:11. The subscriber identity card switching device according to claim 10, wherein the second network access subunit comprises:第一用户身份识别卡获取模块,用于当所述当前已的使用用户身份识别卡的评分小于所述预设切换阈值时,获取当前评分大于所述预设切换阈值的用户身份识别卡;A first user identification card acquisition module, configured to obtain a user identification card whose current score is greater than the preset switching threshold when the score of the currently used user identification card is less than the preset switching threshold;判断模块,用于判断所述评分大于所述预设切换阈值的用户身份识别卡的个数是否大于等于2;A judging module, configured to judge whether the number of user identification cards whose scores are greater than the preset switching threshold is greater than or equal to 2;第一网络接入模块,用于当判断结果为否,则将所述当前已使用的用户身份识别卡切换为所述评分大于所述预设切换阈值的用户身份识别卡,以接入网络。The first network access module is configured to switch the currently used user identification card to a user identification card whose score is greater than the preset switching threshold to access the network when the judgment result is negative.12.如权利要求11所述的用户身份识别卡切换装置,其特征在于,所述装置还包括:12. The user identification card switching device according to claim 11, wherein the device further comprises:第二用户身份识别卡获取模块,用于当判断结果为是,则根据所述用户身份识别卡优先级顺序,获取所述评分大于所述预设切换阈值的用户身份识别卡中优先级最高的用户身份识别卡;The second user identification card acquisition module is configured to obtain the user identification card with the highest priority among the user identification cards whose scores are greater than the preset switching threshold according to the priority order of the user identification cards when the judgment result is yes user identification card;第二网络接入模块,用于通过当前所述当前已使用用户身份识别卡切换为优先级最高的用户身份识别卡,接入网络。The second network access module is configured to access the network by switching the currently used user identification card to the user identification card with the highest priority.13.如权利要求9所述的用户身份识别卡切换装置,其特征在于,当当前未使用用户身份识别卡时,所述网络接入单元,还包括:13. The user identification card switching device according to claim 9, wherein when the user identification card is not currently in use, the network access unit further includes:第二评分计算子单元,用于根据所述当前网络状态信息、所述预设用户身份识别卡优先级顺序以及所述历史网络使用数据,计算至少两个用户身份识别卡的评分;A second scoring calculation subunit, configured to calculate the scores of at least two user identification cards according to the current network status information, the preset priority order of user identification cards, and the historical network usage data;用户身份识别卡获取子单元,用于将所述用户身份识别卡的评分分别与预设切换阈值进行比对,获取评分高于所述预设切换阈值的用户身份识别卡;The user identification card acquisition subunit is used to compare the scores of the user identification cards with the preset switching thresholds respectively, and obtain the user identification cards whose scores are higher than the preset switching thresholds;第三网络接入子单元,用于根据所述用户身份识别卡优先级顺序,获取所述评分高于所述预设切换阈值的用户身份识别卡中优先级最高的用户身份识别卡,以接入网络。The third network access subunit is configured to obtain, according to the priority order of the user identification cards, the user identification card with the highest priority among the user identification cards whose scores are higher than the preset switching threshold, so as to access into the network.14.如权利要求9所述的用户身份识别卡切换装置,其特征在于,所述网络状态信息包括当前可用的PLMN列表以及每个PLMN对应的网络制式、网络通讯质量、网络信号强度、网络速率。14. The user identification card switching device as claimed in claim 9, wherein the network status information includes a list of currently available PLMNs and the network standard, network communication quality, network signal strength, and network speed corresponding to each PLMN .15.如权利要求9所述的用户身份识别卡切换装置,其特征在于,所述历史网络使用数据包括用户平均体验数据、历史平均网络强度、历史平均网络速率。15. The user identification card switching device according to claim 9, wherein the historical network usage data includes user average experience data, historical average network strength, and historical average network speed.
CN201611181686.4A2016-12-202016-12-20User identity identification card switching method and apparatusPendingCN106604258A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201611181686.4ACN106604258A (en)2016-12-202016-12-20User identity identification card switching method and apparatus

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201611181686.4ACN106604258A (en)2016-12-202016-12-20User identity identification card switching method and apparatus

Publications (1)

Publication NumberPublication Date
CN106604258Atrue CN106604258A (en)2017-04-26

Family

ID=58600058

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201611181686.4APendingCN106604258A (en)2016-12-202016-12-20User identity identification card switching method and apparatus

Country Status (1)

CountryLink
CN (1)CN106604258A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107295594A (en)*2017-08-072017-10-24广东欧珀移动通信有限公司 Network switching method, device and mobile terminal
CN107548114A (en)*2017-08-282018-01-05新华三技术有限公司A kind of switching method and apparatus of SIM card
CN108012300A (en)*2017-12-052018-05-08深圳鼎智通讯股份有限公司Android intelligent terminal SIM card automatic switching method
CN108848453A (en)*2018-08-172018-11-20上海小镜信息科技有限公司Plurality of SIM cards multi-operator network integration system and SIM card switch and supplement with money charging method
CN108880631A (en)*2018-07-062018-11-23维沃移动通信有限公司A kind of information transmit-receive switching method and terminal
CN108990077A (en)*2018-08-062018-12-11广东电网有限责任公司SIM card signal detecting method, device and terminal
CN110611941A (en)*2019-08-232019-12-24珠海格力电器股份有限公司Network switching method and device
WO2020038076A1 (en)*2018-08-202020-02-27中兴通讯股份有限公司Network switching method and apparatus, terminal and storage medium
CN110913346A (en)*2019-11-212020-03-24Oppo(重庆)智能科技有限公司SIM card configuration method, terminal and storage medium
CN111106844A (en)*2019-12-312020-05-05上海寰创通信科技股份有限公司Switching method of universal user identification card of vehicle-mounted access unit
CN111373777A (en)*2017-10-092020-07-03华为技术有限公司Soft SIM card network access control method and equipment
CN111770437A (en)*2020-06-092020-10-13Oppo广东移动通信有限公司 Method, device, terminal and storage medium for determining data card
CN111787576A (en)*2020-05-222020-10-16苏州华兴源创科技股份有限公司Vehicle-mounted communication device, communication system and communication method
CN112004252A (en)*2020-08-112020-11-27北京小米移动软件有限公司Terminal communication method and device, terminal and storage medium
CN114650620A (en)*2020-12-182022-06-21夏普株式会社 Connection method of user equipment and user equipment
CN114666782A (en)*2020-12-032022-06-24中移物联网有限公司Card number switching method and device, electronic equipment and positioning system
CN115136629A (en)*2021-01-082022-09-30北京小米移动软件有限公司Network access method, device, communication equipment and storage medium
EP4061054A4 (en)*2019-12-112023-01-11Huawei Technologies Co., Ltd. NETWORK SWITCHING METHOD AND ELECTRONIC DEVICE

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101610450A (en)*2009-07-282009-12-23深圳华为通信技术有限公司A kind of network selecting method and equipment
CN102655664A (en)*2011-03-042012-09-05联想移动通信科技有限公司Method for seamlessly switching networks by mobile terminal, and mobile terminal
CN104168594A (en)*2014-08-262014-11-26深圳市中兴移动通信有限公司Communication control method and device of mobile terminal
CN105813233A (en)*2016-04-192016-07-27深圳优克云联科技有限公司Communication strategy configuring method and device
CN106131931A (en)*2016-08-162016-11-16深圳优克云联科技有限公司A kind of network selecting method, Apparatus and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101610450A (en)*2009-07-282009-12-23深圳华为通信技术有限公司A kind of network selecting method and equipment
CN102655664A (en)*2011-03-042012-09-05联想移动通信科技有限公司Method for seamlessly switching networks by mobile terminal, and mobile terminal
CN104168594A (en)*2014-08-262014-11-26深圳市中兴移动通信有限公司Communication control method and device of mobile terminal
CN105813233A (en)*2016-04-192016-07-27深圳优克云联科技有限公司Communication strategy configuring method and device
CN106131931A (en)*2016-08-162016-11-16深圳优克云联科技有限公司A kind of network selecting method, Apparatus and system

Cited By (27)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107295594B (en)*2017-08-072019-01-11Oppo广东移动通信有限公司Network switching method and device and mobile terminal
CN107295594A (en)*2017-08-072017-10-24广东欧珀移动通信有限公司 Network switching method, device and mobile terminal
CN107548114A (en)*2017-08-282018-01-05新华三技术有限公司A kind of switching method and apparatus of SIM card
CN107548114B (en)*2017-08-282020-10-27新华三技术有限公司SIM card switching method and device
CN111373777A (en)*2017-10-092020-07-03华为技术有限公司Soft SIM card network access control method and equipment
CN108012300A (en)*2017-12-052018-05-08深圳鼎智通讯股份有限公司Android intelligent terminal SIM card automatic switching method
CN108880631A (en)*2018-07-062018-11-23维沃移动通信有限公司A kind of information transmit-receive switching method and terminal
CN108880631B (en)*2018-07-062020-07-10维沃移动通信有限公司Information receiving and transmitting switching method and terminal
CN108990077B (en)*2018-08-062022-05-03广东电网有限责任公司SIM card signal detection method and device and computer terminal
CN108990077A (en)*2018-08-062018-12-11广东电网有限责任公司SIM card signal detecting method, device and terminal
CN108848453A (en)*2018-08-172018-11-20上海小镜信息科技有限公司Plurality of SIM cards multi-operator network integration system and SIM card switch and supplement with money charging method
CN108848453B (en)*2018-08-172024-01-19上海小镜信息科技有限公司Multi-SIM card multi-operator network fusion system
WO2020038076A1 (en)*2018-08-202020-02-27中兴通讯股份有限公司Network switching method and apparatus, terminal and storage medium
CN110856225A (en)*2018-08-202020-02-28中兴通讯股份有限公司Network switching method, device, terminal and storage medium
CN110611941A (en)*2019-08-232019-12-24珠海格力电器股份有限公司Network switching method and device
CN110913346A (en)*2019-11-212020-03-24Oppo(重庆)智能科技有限公司SIM card configuration method, terminal and storage medium
CN110913346B (en)*2019-11-212022-01-11Oppo(重庆)智能科技有限公司SIM card configuration method, terminal and storage medium
EP4061054A4 (en)*2019-12-112023-01-11Huawei Technologies Co., Ltd. NETWORK SWITCHING METHOD AND ELECTRONIC DEVICE
JP2023505561A (en)*2019-12-112023-02-09華為技術有限公司 Network handover method and electronic device
CN111106844A (en)*2019-12-312020-05-05上海寰创通信科技股份有限公司Switching method of universal user identification card of vehicle-mounted access unit
CN111787576A (en)*2020-05-222020-10-16苏州华兴源创科技股份有限公司Vehicle-mounted communication device, communication system and communication method
CN111770437A (en)*2020-06-092020-10-13Oppo广东移动通信有限公司 Method, device, terminal and storage medium for determining data card
CN112004252A (en)*2020-08-112020-11-27北京小米移动软件有限公司Terminal communication method and device, terminal and storage medium
CN114666782A (en)*2020-12-032022-06-24中移物联网有限公司Card number switching method and device, electronic equipment and positioning system
CN114666782B (en)*2020-12-032023-12-12中移物联网有限公司 Card number switching method, device, electronic equipment and positioning system
CN114650620A (en)*2020-12-182022-06-21夏普株式会社 Connection method of user equipment and user equipment
CN115136629A (en)*2021-01-082022-09-30北京小米移动软件有限公司Network access method, device, communication equipment and storage medium

Similar Documents

PublicationPublication DateTitle
CN106604258A (en)User identity identification card switching method and apparatus
US20170170856A1 (en)Cloud sim card pool system
US20090163173A1 (en)Unauthorized call activity detection in a cellular communication system
CN110602764B (en)Network searching method, device, storage medium and terminal
EP3136800B1 (en)Method for updating rplmn information, and user equipment
WO2020259306A1 (en)Network search configuration method, registration method, apparatus, and system
CN106231655A (en)A kind of network registry, collocation method, Apparatus and system
CN106470455A (en)System and method for dynamic radio operator exchange system
WO2014166185A1 (en)Method for automatic network search of mobile terminal and mobile terminal
US10819845B2 (en)Country-specific telephone number system analysis system using machine learning technique, and telephone connection method using same
US9967806B2 (en)Device and method for selecting a visited network
WO2016041171A1 (en)Method and apparatus for determining terminal roaming status, terminal and server
KR20160130275A (en)Terminal and method for terminal automatically switching data link
CN104378751A (en)Method, equipment and system for gaining remote access to cellular mobile networks
WO2017181480A1 (en)Connecting method and device for network access point
CN104837180A (en)Intelligent handset roaming network-searching method and device
CN101895966A (en)Public land mobile network searching method and device
CN106793009B (en) A kind of network search method and mobile terminal
CN108093404B (en) An information processing method and device
CN105636016A (en)Method, apparatus, and system for network connection
CN104285473B (en) Method and apparatus for multi-priority access in a wireless network system
CN101883353B (en)International roaming activating method and device as well as communication system
CN106488495A (en) Base station selection method and device based on base station signal quality
CN112822755B (en)APN matching method, terminal and storage medium
CN112970276B (en) Communication processing method, device, mobile terminal and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20170426


[8]ページ先頭

©2009-2025 Movatter.jp