CN107295500B - SIM card data control method and device and computer equipment - Google Patents

SIM card data control method and device and computer equipment Download PDF

Info

Publication number
CN107295500B
CN107295500B CN201710326808.2A CN201710326808A CN107295500B CN 107295500 B CN107295500 B CN 107295500B CN 201710326808 A CN201710326808 A CN 201710326808A CN 107295500 B CN107295500 B CN 107295500B
Authority
CN
China
Prior art keywords
card
identity
card slot
phonesubid
phone
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.)
Active
Application number
CN201710326808.2A
Other languages
Chinese (zh)
Other versions
CN107295500A (en
Inventor
周汉心
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201710326808.2A priority Critical patent/CN107295500B/en
Publication of CN107295500A publication Critical patent/CN107295500A/en
Application granted granted Critical
Publication of CN107295500B publication Critical patent/CN107295500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier

Landscapes

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

Abstract

The invention relates to a SIM card data control method, a SIM card data control device, a storage medium and computer equipment. And monitoring a card changing or pulling event, loading card information after the card changing or pulling event is triggered, and acquiring a network request after the card information is loaded. And updating the phone identity PhoneSubId of the card slot according to the network request, registering a data network according to the updated phone identity PhoneSubId, and after successfully registering the data network, accessing the network through data dialing. When a card change or card pull event occurs, the phone identity PhoneSubId of the card slot is updated before the terminal registers the data network. Because the registration data is accessed to the corresponding SIM card according to the phone identity PhoneSubId of the card slot, the phone identity PhoneSubId of the card slot is updated to be in the latest state, and the correct corresponding relation between the phone identity PhoneSubId of the card slot and the SIM card is ensured.

Description

SIM card data control method and device and computer equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling SIM card data, a storage medium, and a computer device.
Background
SIM (Subscriber Identity Module) cards, also called smart cards, Subscriber Identity cards, must be installed in a mobile terminal to enable the communication functions. The dual-card dual-standby mobile phone refers to a mobile phone, and can be used for simultaneously installing two SIM cards, and the two SIM cards are both in a standby state. When two SIM cards in the dual-card dual-standby mobile phone are exchanged with the card slot or only one SIM card is inserted, but the SIM card is exchanged with the other card slot at present, the mobile phone cannot sense the SIM card and cannot register a data network, so that a user cannot use the data network to carry out services such as surfing the internet, receiving and sending short messages, receiving and sending multimedia messages and the like. Therefore, under the circumstances, it is an urgent problem to solve the problem that the user uses the data network to surf the internet normally, receive and send short messages and receive and send multimedia messages.
Disclosure of Invention
Therefore, it is necessary to provide a SIM card data control method, device, storage medium and computer equipment that can ensure that a user can surf the internet normally, receive and send short messages and multimedia messages.
A SIM card data control method, the method comprising:
monitoring a card change or card pull event;
when the card changing or pulling event is triggered, card information is loaded;
when the card information is loaded, acquiring a network request;
updating the phone identity PhoneSubId of the card slot according to the network request;
registering a data network according to the updated phone identity PhoneSubId;
and after the data network is successfully registered, surfing the Internet by data dialing.
In one embodiment, the updating the phone identity PhoneSubId of the card slot according to the network request includes:
judging whether a card is in the card slot or not;
if yes, judging whether a phone identity PhoneSubId stored in the card slot is equal to an identity SubId of a card currently inserted into the card slot, wherein the phone identity PhoneSubId stored in the card slot is the identity SubId of the card in the card slot before the card is replaced or pulled;
and if not, updating the phone identity PhoneSubId stored in the card slot to the identity SubId of the inserted card.
In one embodiment, after determining whether there is a card in the card slot, the method includes:
and if no card exists in the card slot, updating the phone identity PhoneSubId stored in the card slot to an invalid value.
In one embodiment, after determining whether the card slot has stored the phone identity phonesubbid equal to the identity SubId of the card currently inserted into the card slot if the card is present in the card slot, the method includes:
if the phone identity PhoneSubId already stored in the card slot is equal to the identity SubId of the card currently inserted into the card slot, the card slot already stores the phone identity PhoneSubId unchanged.
In one embodiment, the method further comprises:
when the default data card is reset in the dual-card dual-standby mode, acquiring the identity SubId of the card to be set as the default data card;
judging whether the identity SubId of the card to be set as the default data card is equal to the identity SubId of the original default data card;
and if the data card identification numbers are not equal, updating the identification number SubId of the default data card to be the identification number SubId of the card to be set as the default data card.
A SIM card data control apparatus, the apparatus comprising:
the monitoring module is used for monitoring card changing or card pulling events;
the card information loading module is used for loading card information after the card changing or pulling event is triggered;
the network request acquisition module is used for acquiring a network request after the card information is loaded;
the phone identity PhoneSubId updating module of the card slot is used for updating the phone identity PhoneSubId of the card slot according to the network request;
the data network registration module is used for registering a data network according to the updated phone identity PhoneSubId;
and the data dialing module is used for surfing the internet through data dialing after the data network is successfully registered.
In one embodiment, the phone identity PhoneSubId update module of the card slot includes:
the card judging module is used for judging whether a card is in the card slot or not;
the identity judgment module is used for judging whether a phone identity PhoneSubId stored in the card slot is equal to an identity SubId of a card currently inserted into the card slot if the phone identity PhoneSubId stored in the card slot is the identity SubId of the card in the card slot before card replacement or card unplugging of the card slot;
and the updating module is used for updating the phone identity PhoneSubId stored in the card slot into the identity SubId of the inserted card if the phone identity PhoneSubId is not equal to the phone identity PhoneSubId stored in the card slot.
In one embodiment, the phone identity of the card slot PhoneSubId update module further includes:
and the card-free module is used for updating the phone identity PhoneSubId stored in the card slot into an invalid value if the card is not stored in the card slot.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
monitoring a card change or card pull event;
when the card changing or pulling event is triggered, card information is loaded;
when the card information is loaded, acquiring a network request;
updating the phone identity PhoneSubId of the card slot according to the network request;
registering a data network according to the updated phone identity PhoneSubId;
and after the data network is successfully registered, surfing the Internet by data dialing.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
monitoring a card change or card pull event;
when the card changing or pulling event is triggered, card information is loaded;
when the card information is loaded, acquiring a network request;
updating the phone identity PhoneSubId of the card slot according to the network request;
registering a data network according to the updated phone identity PhoneSubId;
and after the data network is successfully registered, surfing the Internet by data dialing.
The SIM card data control method, the SIM card data control device, the SIM card data control storage medium and the computer equipment monitor a card changing or pulling event, load card information after the card changing or pulling event is triggered, and acquire a network request after the card information is loaded. And updating the phone identity PhoneSubId of the card slot according to the network request, registering a data network according to the updated phone identity PhoneSubId, and after successfully registering the data network, accessing the network through data dialing. When a card change or card pull event occurs, the phone identity PhoneSubId of the card slot is updated before the terminal registers the data network. Because the registration data is corresponding to the corresponding SIM card according to the phone identity PhoneSubId of the card slot, the phone identity PhoneSubId of the card slot is updated to be in the latest state, so that the corresponding relation between the phone identity PhoneSubId of the card slot and the SIM card is ensured to be correct, namely the correct SIM card is used for dial-up networking. Therefore, the problem that the data are mistakenly cut into an empty or wrong card slot when the subsequent services such as network connection, short message receiving and sending and multimedia message receiving are carried out is avoided, and the users cannot use the services or carry out the services through the wrong card.
Drawings
Fig. 1 is an application environment diagram in which two cards are inserted into a dual-card dual-standby mobile phone in one embodiment;
FIG. 2 is a diagram of an application environment in which the two cards of FIG. 1 are interchanged;
fig. 3 is an application environment diagram of a dual-card dual-standby mobile phone in an embodiment in which one card is pulled out and inserted into another card slot;
FIG. 4 is a flow chart of a method for SIM card data control in one embodiment;
FIG. 5 is a flow chart of a method for SIM card data control in one embodiment;
FIG. 6 is a flow diagram of a method for SIM card data control in one embodiment;
FIG. 7 is a flow diagram of a method for SIM card data control in one embodiment;
FIG. 8 is a flow diagram of a method for SIM card data control in one embodiment;
FIG. 9 is a diagram illustrating an exemplary SIM card data control device;
fig. 10 is a schematic structural diagram of a phone identity PhoneSubId update module of the card slot in fig. 9;
fig. 11 is a schematic structural diagram of a phone identity PhoneSubId update module of the card slot in fig. 9.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, but rather should be construed as broadly as the present invention is capable of modification in various respects, all without departing from the spirit and scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The SIM card data control method provided by the embodiment of the present invention can be applied to the environment shown in fig. 1. Referring to fig. 1, the card holder of the dual-card dual-standby mobile phone has two card slots, a first card slot 102a and a second card slot 104a, and the first SIM card 102 is inserted into the first card slot 102a and the second SIM card 104 is inserted into the second card slot 104 a.
Each SIM card has a unique ic id (integrated circuit card identification code) that is fixed in the SIM card, and different SIM cards can be identified by the ic id.
As shown in fig. 2, the first SIM card 102 and the second SIM card 104 may be exchanged, that is, the first SIM card 102 is inserted into the second card 104a, and the second SIM card 104 is inserted into the first card 102 a.
The SIM card data control method provided by the embodiment of the present invention can also be applied to the environment shown in fig. 3. Only one SIM card is inserted into the dual-card dual-standby mobile phone, and the first SIM card 102 is pulled out of the first card slot 102a and inserted into the second card slot 104 a.
In one embodiment, as shown in fig. 4, there is provided a SIM card data control method, including:
and step 410, intercepting a card change or card pull event.
The dual-card dual-standby mobile phone is a mobile phone which supports two SIM cards at the same time, and the two SIM cards can be in standby state at the same time but cannot be in call at the same time. When in standby, the telephone numbers corresponding to any SIM card can be called, but if one of the SIM cards is in a conversation, the other telephone number cannot receive the call and cannot dial the call. The dual-card dual-standby handset listens for a card change event as shown in fig. 2 or a card pull event as shown in fig. 3.
And step 420, loading card information after the card changing or pulling event is triggered.
When the card-changing event shown in fig. 2 is triggered, the card inserted into the card slot i is changed from the SIM card i to the SIM card ii. And the card inserted into the second card slot is changed from the second SIM card to the first SIM card. The mobile phone starts a card information loading process to obtain the ICCIDs of the SIM card I and the SIM card II, and then allocates a different identity identifier SubId to each ICCID, namely allocates a different identity identifier SubId to the SIM card I and the SIM card II respectively to distinguish the two cards. The ICCID of each SIM card is different, and the assigned id SubId is also different, but the assigned id SubId is the same for any insertion of the same card.
When the card-pulling event shown in fig. 3 is triggered, the first card is pulled out of the first card slot and inserted into the second card slot. The mobile phone starts a card information loading flow, and only the card information is loaded for the first time. And obtaining the ICCID of the card I, and then distributing a different identity identifier SubId to the ICCID, wherein no card exists in the card slot I, and the card I is in the card slot II.
Step 430, after the card information is loaded, a network request is obtained.
And after the card information is loaded, the mobile phone acquires a network request from a certain card.
Step 440, updating the phone identity PhoneSubId of the card slot according to the network request.
Telephone (Phone) objects are the core of the entire Telephony (Telephony) service, and the main Telephony services (iccsm interface manager, iccphenobok interface manager, phonesubbinfo) and data connection functions are provided by specific Phone objects, including CDMAPhone, CDMALTEPhone, GSMPhone, and SipPhone. Each card slot corresponds to a Phone object.
In general, the Phone identity phonesubbid of the card slot (i.e., the Phone object corresponding to the card slot) is assigned with the value of the identity SubId of the card inserted into the card slot. However, when the card change event shown in fig. 2 occurs, the card i is changed from the card slot i to the card slot ii, and the Phone identity phonesubbid of the Phone object corresponding to the card slot is not updated to the identity SubId of the currently inserted card in time yet. At this time, the mobile phone acquires the network request from the first card, finds the corresponding phonesubbid according to the SubId of the first card, and finds the card slot one according to the phonesubbid, so that the situation that the data is mistakenly cut into the card slot one by the mobile phone occurs, but the card slot one is not actually inserted into the card slot one. Therefore, if the card II is inserted into the card slot I, the data network is registered by using the card II, and therefore the user experience is very poor.
When the card pulling event shown in fig. 3 occurs, the first card is pulled out of the first card slot and then inserted into the second card slot, and the first card slot has no card therein. The Phone identity PhoneSubId of the Phone object corresponding to the card slot one cannot find that the card slot is empty in time, and the PhoneSubId also stores the value of the SubId of the card one. The mobile phone finds the corresponding PhoneSubId according to the SubId of the card I, and then finds the card slot I according to the PhoneSubId, so that the data of the mobile phone is mistakenly switched to the card slot I, and the data network cannot be registered if the card slot I is empty, and the user experience is very poor.
Therefore, after the mobile phone obtains the network request, the phone identity phonesubbid of the card slot is updated. Specifically, whether a card exists in the card slot is judged, if yes, whether the phonesubbid stored in the Phone object corresponding to the card slot is equal to the identity subld of the currently inserted card in the card slot is judged, and the identity subld of the inserted card is obtained in the card information loading process. If the card slot ID is equal to the phone ID PhoneSubId, the phone ID PhoneSubId stored in the card slot is not processed, and if the card slot ID is not equal to the phone ID PhoneSubId stored in the card slot, the phone ID PhoneSubId stored in the card slot is updated to the ID SubId of the inserted. And if no card exists in the card slot, updating the phone identity PhoneSubId stored in the card slot to an invalid value.
And step 450, registering the data network according to the updated telephone identity PhoneSubId.
And the mobile phone registers the data network according to the updated phone identity PhoneSubId. Specifically, when a card change as shown in fig. 2 occurs, the phone identity phonesubbid already held in each card slot is updated to the identity SubId of the inserted card. The mobile phone obtains a network request from the first card, finds the corresponding PhoneSubId according to the SubId of the first card, and finds that the card slot II is the card slot I according to the PhoneSubId, so that the mobile phone correctly cuts data into the card slot II, and the card slot I is the card slot I inserted into the card slot II.
When the card pulling as shown in fig. 3 occurs, namely, the user pulls the first card out of the first card slot and inserts the second card slot, if there is no card in the first card slot, the phone identity phonesubbid stored in the first card slot is updated to an invalid value, and the phone identity phonesubbid stored in the second card slot is updated to the identity SubId of the currently inserted card (card one). Therefore, the mobile phone obtains the network request from the first card, finds the corresponding PhoneSubId according to the SubId of the first card, and finds the card slot II according to the PhoneSubId, so that the mobile phone can correctly cut the data into the card slot II, and the card I is inserted into the card slot II. And the mobile phone registers the card I in a data network through the interface of the card slot II.
Step 460, after successfully registering the data network, the network is accessed through data dialing.
After the mobile phone successfully registers the data network through the card, the mobile phone can access the internet through data dialing.
In this embodiment, after a card change or card removal event occurs, the phone identity phonesubbid of the card slot is updated before the mobile phone registers in the data network. Because the registration data is corresponding to the corresponding SIM card according to the Phone identity PhoneSubId of the card slot (corresponding Phone object), the Phone identity PhoneSubId of the card slot is updated to be in the latest state, so that the corresponding relation between the Phone identity PhoneSubId of the card slot and the SIM card is ensured to be corresponding in real time, namely the correct SIM card is used for dial-up networking. Therefore, the problem that the data are mistakenly cut into an empty or wrong card slot when the subsequent services such as network connection, short message receiving and sending and multimedia message receiving are carried out is avoided, and the users cannot use the services or carry out the services through the wrong card.
In one embodiment, as shown in fig. 5, updating the phone identity phonesubbid of the card slot according to a network request includes:
step 441, determine whether there is a card in the card slot.
The process of inserting and pulling the card can be sent by a broadcast message, the mobile phone can acquire the state of the SIM card by receiving the broadcast message, if the broadcast is provided with IccCardConnstants, INTENT _ VALUE _ ICC _ ABSENT, the card is shown to be pulled out, the card slot is not provided with the card currently, and if the broadcast is not provided with IccCardConnstants, INTENT _ VALUE _ ICC _ ABSENT, the card slot is shown to be provided with the card.
Step 442, if yes, it is determined whether the phone identity phonesubbid already stored in the card slot is equal to the identity SubId of the card currently inserted into the card slot, and the phone identity phonesubbid already stored in the card slot is the identity SubId of the card in the card slot before the card is replaced or unplugged.
If the card is in the card slot, judging whether the phone identity PhoneSubId stored in the card slot is equal to the identity SubId of the currently inserted card in the card slot, wherein the identity SubId of the inserted card is obtained in the card information loading process. The Phone identification phonesubbid already held by the card slot (corresponding Phone object) is the identification SubId of the last inserted card recorded by the card slot before the card is changed or pulled out. The value of the card identity SubId is assigned to the card slot (corresponding Phone object) Phone identity phonesubbid the last time the card was inserted.
Step 443, if not, updating the phone identity phonesubbid already stored in the card slot to the identity SubId of the inserted card.
If the Phone identity phonesubbid already held by the card slot (corresponding Phone object) is not equal to the identity SubId of the card currently inserted in the card slot, then the value of the identity SubId of the currently inserted card is assigned to the phonesubbid of the card slot (corresponding Phone object).
In this embodiment, it is determined whether a card is present in the card slot, and when a card is present in the card slot, it is determined whether the Phone identity phonesubbid already stored in the card slot (corresponding Phone object) is equal to the identity sublid of the currently inserted card. If they are not equal, it means that the card is changed or pulled out, and the card slot (corresponding Phone object) phonesubbid may be changed. At this time, the Phone identity phonesubbid already stored in the card slot (corresponding Phone object) should be verified in time, and whether the Phone identity phonesubbid already stored in the card slot (corresponding Phone object) is consistent with the value of the identity subld of the currently inserted card is verified. This avoids errors in subsequently selecting which card to register with the data network based on the phonesubbid of the card slot (corresponding Phone object).
In one embodiment, as shown in fig. 6, after determining whether there is a card in the card slot, the method includes:
and step 444, if no card exists in the card slot, updating the phone identity PhoneSubId stored in the card slot to an invalid value.
If icccardcs on stations, event _ VALUE _ ICC _ exception is carried in the broadcast, which indicates that the card is already unplugged, the card slot currently has no card. The Phone identity phonesubbid that the card slot (corresponding Phone object) already holds is updated to an invalid value.
In this embodiment, when it is determined that there is no card in a certain card slot, phonesubbid of the card slot (corresponding Phone object) is updated to an invalid value. If the invalid value obtained by the mobile Phone is that subsequent data network registration cannot be performed, the phonesubbid of the card slot (corresponding Phone object) is updated to the invalid value, and the situation that the mobile Phone switches the data to the card slot corresponding to the phonesubbid as the invalid value is avoided.
In one embodiment, as shown in fig. 7, if there is a card in the card slot, after determining whether the card slot has stored the phone identity phonesubbid equal to the identity SubId of the card currently inserted in the card slot, the method includes:
in step 445, if the phone identity phonesubbid already stored in the card slot is equal to the identity SubId of the card currently inserted into the card slot, the phone identity phonesubbid already stored in the card slot is unchanged.
In this embodiment, after the card may be inserted and pulled out for multiple times, the card inserted into a certain card slot last time is originally inserted back into the card slot, so that the Phone identity phonesubbid already stored in the card slot (corresponding Phone object) is equal to the identity subld of the card currently inserted into the card slot. This is true, and the Phone identity phonesubbid that the card slot (corresponding Phone object) already holds remains unchanged.
In one embodiment, as shown in fig. 8, the method further comprises:
step 470, when the default data card is reset in the dual-card dual-standby mode, the identity SubId of the card to be set as the default data card is obtained.
The default data card is a card which is used by default when the mobile phone carries out services such as internet surfing, short message receiving and sending, multimedia message receiving and sending and the like. Each SIM card has a unique ICCID, the mobile phone starts the card information loading process, and each ICCID is allocated with a different sub Id, namely the SIM card is allocated with a different sub Id to distinguish different cards. And when the default data card is reset in the dual-card dual-standby mode, acquiring the identity SubId of the card to be set as the default data card.
Step 480, determine whether the identity SubId of the card to be set as the default data card is equal to the identity SubId of the original default data card.
The defaultDataSub is used for marking a default data card, assigning the value of the identification SubId of the card originally set as the default data card to the default identification defaultDataSub, and judging whether the identification SubId of the card to be set as the default data card is equal to the default DataSub or not.
And step 490, if not, updating the identity SubId of the default data card to the identity SubId of the card to be set as the default data card.
If the identity, SubId, of the card to be set as the default data card is not equal to the defaultDataSub, the value of the identity, SubId, of the card to be set as the default data card is assigned to the defaultDataSub, that is, the value of the defaultDataSub is updated.
For example, the first card is a mobile card, the second card is a universal card, the first card is set as a default data card by the user, the subId of the first card is 3, the subId of the second card is 4, and the defaultDataSub of the default data card is originally set to 3. If the user manually modifies the default data card at the moment, the second default data card is set. At this time, it is necessary to first obtain the subId of the card two that the user wants to set as the default data card is 4, then compare whether the value 4 of the subId of the card two is equal to the value 3 of the original defaultDataSub, and if not, update the value of the defaultDataSub to 4. Therefore, when a user registers a data network by using the default data card and performs internet access, short message sending and receiving, multimedia message sending and receiving and other services through data dialing, the card (namely, the second card) which is set as the default data card by the user is used, and errors are avoided.
In this embodiment, when the default data card is reset in the dual-card dual-standby mode, it is determined whether the identity subld of the card to be set as the default data card is consistent with the original defaultDataSub, and if not, the identity subld of the card to be set as the default data card is set as the defaultDataSub. The default data card can be found through the defaultDataSub, and then the user can use the default data card to register a data network and dial up the data to perform the services of surfing the internet, receiving and sending short messages, receiving and sending multimedia messages and the like.
In one embodiment, as shown in fig. 9, there is also provided a SIM card data control apparatus 900, including: the card information management system comprises a monitoring module 910, a card information loading module 920, a network request acquisition module 930, a card slot phone identity PhoneSubId updating module 940, a data network registration module 950 and a data dialing module 960.
The monitoring module 910 is configured to monitor a card change or card removal event;
a card information loading module 920, configured to load card information when a card change or card removal event is triggered;
a network request obtaining module 930, configured to obtain a network request after the card information is loaded;
the phone identity PhoneSubId updating module 940 of the card slot is used for updating the phone identity PhoneSubId of the card slot according to the network request;
a data network registration module 950, configured to register a data network according to the updated phone identity phonesubbid;
the data dialing module 960 is configured to perform network access through data dialing after a data network is successfully registered.
In one embodiment, as shown in fig. 10, the phone identity PhoneSubId update module 940 of the card slot includes: the card slot has a card determining module 941, an id determining module 942, and an updating module 943.
A card determining module 941 for determining whether a card is present in the card slot;
an identity determination module 942, configured to determine whether a phone identity phonesubbid already stored in the card slot is equal to an identity SubId of a card currently inserted into the card slot if the phone identity phonesubbid already stored in the card slot is equal to the identity SubId of the card in the card slot before the card is replaced or removed;
an updating module 943, configured to update the phone identity phonesubbid already stored in the card slot to the identity SubId of the inserted card if the phone identity phonesubbid is not equal to the phone identity phonesubbid.
In one embodiment, as shown in fig. 11, the phone identity of the card slot PhoneSubId update module 940 further includes: and a card-less module 944, configured to update the phone identity phonesubbid that is already stored in the card slot to an invalid value if there is no card in the card slot.
In one embodiment, there is also provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of: and monitoring a card changing or pulling event, loading card information after the card changing or pulling event is triggered, and acquiring a network request after the card information is loaded. And updating the phone identity PhoneSubId of the card slot according to the network request, registering a data network according to the updated phone identity PhoneSubId, and after successfully registering the data network, accessing the network through data dialing.
In one embodiment, updating the phone identity PhoneSubId of the card slot according to a network request includes: and judging whether a card exists in the card slot, if so, judging whether the phone identity PhoneSubId stored in the card slot is equal to the identity SubId of the currently inserted card in the card slot, wherein the phone identity PhoneSubId stored in the card slot is the identity SubId of the card in the card slot before card replacement or card pulling. And if not, updating the phone identity PhoneSubId stored in the card slot to the identity SubId of the inserted card.
In one embodiment, after determining whether a card is present in the card slot, the method includes: and if no card exists in the card slot, updating the phone identity PhoneSubId stored in the card slot to an invalid value.
In one embodiment, if there is a card in the card slot, after determining whether the card slot has saved the phone identity phonesubbid equal to the identity SubId of the card currently inserted in the card slot, the method includes: if the phone identity phonesubbid already stored in the card slot is equal to the identity SubId of the card currently inserted into the card slot, the phone identity phonesubbid already stored in the card slot is unchanged.
In one embodiment, the method further comprises: and when the default data card is reset in the dual-card dual-standby mode, acquiring the identity SubId of the card to be set as the default data card. And judging whether the identity SubId of the card to be set as the default data card is equal to the identity SubId of the original default data card. And if the data card identification numbers are not equal, updating the identification number SubId of the default data card to be set as the identification number SubId of the default data card.
In one embodiment, there is also provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: and monitoring a card changing or pulling event, loading card information after the card changing or pulling event is triggered, and acquiring a network request after the card information is loaded. And updating the phone identity PhoneSubId of the card slot according to the network request, registering a data network according to the updated phone identity PhoneSubId, and after successfully registering the data network, accessing the network through data dialing.
In one embodiment, updating the phone identity PhoneSubId of the card slot according to a network request includes: and judging whether a card exists in the card slot, if so, judging whether the phone identity PhoneSubId stored in the card slot is equal to the identity SubId of the currently inserted card in the card slot, wherein the phone identity PhoneSubId stored in the card slot is the identity SubId of the card in the card slot before card replacement or card pulling. And if not, updating the phone identity PhoneSubId stored in the card slot to the identity SubId of the inserted card.
In one embodiment, after determining whether a card is present in the card slot, the method includes: and if no card exists in the card slot, updating the phone identity PhoneSubId stored in the card slot to an invalid value.
In one embodiment, if there is a card in the card slot, after determining whether the card slot has saved the phone identity phonesubbid equal to the identity SubId of the card currently inserted in the card slot, the method includes: if the phone identity phonesubbid already stored in the card slot is equal to the identity SubId of the card currently inserted into the card slot, the phone identity phonesubbid already stored in the card slot is unchanged.
In one embodiment, the method further comprises: and when the default data card is reset in the dual-card dual-standby mode, acquiring the identity SubId of the card to be set as the default data card. And judging whether the identity SubId of the card to be set as the default data card is equal to the identity SubId of the original default data card. And if the data card identification numbers are not equal, updating the identification number SubId of the default data card to be set as the identification number SubId of the default data card.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. A SIM card data control method, the method comprising:
monitoring a card change or card pull event;
when the card changing or pulling event is triggered, card information is loaded;
when the card information is loaded, acquiring a network request;
updating the phone identity PhoneSubId of the card slot according to the network request, comprising: judging whether a card is in the card slot or not; if yes, judging whether a phone identity PhoneSubId stored in the card slot is equal to an identity SubId of a card currently inserted into the card slot, wherein the phone identity PhoneSubId stored in the card slot is the identity SubId of the card in the card slot before the card is replaced or pulled; if not, updating the phone identity PhoneSubId stored in the card slot to the identity SubId of the inserted card;
registering a data network according to the updated phone identity PhoneSubId;
and after the data network is successfully registered, surfing the Internet by data dialing.
2. The method of claim 1, wherein said determining if a card is present in the card slot comprises:
and if no card exists in the card slot, updating the phone identity PhoneSubId stored in the card slot to an invalid value.
3. The method of claim 1, wherein determining whether the card slot has stored a phone identity phonesubbid equal to an identity SubId of a card currently inserted in the card slot, if any, comprises:
if the phone identity PhoneSubId already stored in the card slot is equal to the identity SubId of the card currently inserted into the card slot, the card slot already stores the phone identity PhoneSubId unchanged.
4. The method of claim 1, further comprising:
when the default data card is reset in the dual-card dual-standby mode, acquiring the identity SubId of the card to be set as the default data card;
judging whether the identity SubId of the card to be set as the default data card is equal to the identity SubId of the original default data card;
and if the data card identification numbers are not equal, updating the identification number SubId of the default data card to be the identification number SubId of the card to be set as the default data card.
5. An apparatus for controlling data of a SIM card, the apparatus comprising:
the monitoring module is used for monitoring card changing or card pulling events;
the card information loading module is used for loading card information after the card changing or pulling event is triggered;
the network request acquisition module is used for acquiring a network request after the card information is loaded;
the phone identity PhoneSubId updating module of the card slot is used for updating the phone identity PhoneSubId of the card slot according to the network request, and comprises the following steps: the card judging module is used for judging whether a card is in the card slot or not; the identity judgment module is used for judging whether a phone identity PhoneSubId stored in the card slot is equal to an identity SubId of a card currently inserted into the card slot if the phone identity PhoneSubId stored in the card slot is the identity SubId of the card in the card slot before card replacement or card unplugging of the card slot; the updating module is used for updating the phone identity PhoneSubId stored in the card slot into the identity SubId of the inserted card if the phone identity PhoneSubId is not equal to the phone identity PhoneSubId stored in the card slot;
the data network registration module is used for registering a data network according to the updated phone identity PhoneSubId;
and the data dialing module is used for surfing the internet through data dialing after the data network is successfully registered.
6. The apparatus of claim 5, wherein the phone identity of the card slot (PhoneSubId) update module further comprises:
and the card-free module is used for updating the phone identity PhoneSubId stored in the card slot into an invalid value if the card is not stored in the card slot.
7. A computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, carries out the steps of:
monitoring a card change or card pull event;
when the card changing or pulling event is triggered, card information is loaded;
when the card information is loaded, acquiring a network request;
updating the phone identity PhoneSubId of the card slot according to the network request;
registering the data network according to the updated phone identity PhoneSubId, comprising: judging whether a card is in the card slot or not; if yes, judging whether a phone identity PhoneSubId stored in the card slot is equal to an identity SubId of a card currently inserted into the card slot, wherein the phone identity PhoneSubId stored in the card slot is the identity SubId of the card in the card slot before the card is replaced or pulled; if not, updating the phone identity PhoneSubId stored in the card slot to the identity SubId of the inserted card;
and after the data network is successfully registered, surfing the Internet by data dialing.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of:
monitoring a card change or card pull event;
when the card changing or pulling event is triggered, card information is loaded;
when the card information is loaded, acquiring a network request;
updating the phone identity PhoneSubId of the card slot according to the network request, comprising: judging whether a card is in the card slot or not; if yes, judging whether a phone identity PhoneSubId stored in the card slot is equal to an identity SubId of a card currently inserted into the card slot, wherein the phone identity PhoneSubId stored in the card slot is the identity SubId of the card in the card slot before the card is replaced or pulled; if not, updating the phone identity PhoneSubId stored in the card slot to the identity SubId of the inserted card;
registering a data network according to the updated phone identity PhoneSubId;
and after the data network is successfully registered, surfing the Internet by data dialing.
CN201710326808.2A 2017-05-10 2017-05-10 SIM card data control method and device and computer equipment Active CN107295500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710326808.2A CN107295500B (en) 2017-05-10 2017-05-10 SIM card data control method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710326808.2A CN107295500B (en) 2017-05-10 2017-05-10 SIM card data control method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN107295500A CN107295500A (en) 2017-10-24
CN107295500B true CN107295500B (en) 2020-01-07

Family

ID=60095087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710326808.2A Active CN107295500B (en) 2017-05-10 2017-05-10 SIM card data control method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN107295500B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109769279B (en) * 2019-01-15 2021-07-20 深圳市万普拉斯科技有限公司 Out-of-service state control method and device and mobile terminal
CN113556721B (en) * 2020-04-23 2022-11-04 深圳市万普拉斯科技有限公司 User identity identification card account switching method and device, storage medium and equipment
CN114567856A (en) * 2022-02-09 2022-05-31 维沃移动通信有限公司 Dialing method and device and electronic equipment
CN114599024B (en) * 2022-03-10 2023-12-19 北京中广瑞波科技股份有限公司 Device for processing multiple user identity modules

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530626A (en) * 2015-12-22 2016-04-27 东莞酷派软件技术有限公司 Network mode configuration method and mobile terminal
CN105657644A (en) * 2016-01-28 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Main data card setting method and terminal
CN106028308A (en) * 2016-05-20 2016-10-12 深圳市万普拉斯科技有限公司 Hot plug multi-card data control method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530626A (en) * 2015-12-22 2016-04-27 东莞酷派软件技术有限公司 Network mode configuration method and mobile terminal
CN105657644A (en) * 2016-01-28 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Main data card setting method and terminal
CN106028308A (en) * 2016-05-20 2016-10-12 深圳市万普拉斯科技有限公司 Hot plug multi-card data control method and system

Also Published As

Publication number Publication date
CN107295500A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
CN107295500B (en) SIM card data control method and device and computer equipment
US8260355B2 (en) Portable communication terminal, program executed by portable communication terminal
EP2965553B1 (en) Method and apparatus for multisim devices with embedded sim functionality
CN102833699B (en) Method, system and the mobile communication terminal of simulation bilateral function
KR20090130981A (en) Apparatus and method for operating dual mode of mobile communication terminal
EP2925032A1 (en) Profile download for subscribing to network in wireless communication system
CN108616869B (en) Multi-card multi-standby system, method, device, communication device and computer readable storage medium
CN111371657A (en) Network configuration method and system of intelligent household appliance and intelligent household appliance
CN109495875B (en) SIM card selection method and device, electronic equipment and storage medium
KR20100098797A (en) Apparatus and method for operating dual mode of portable terminal
CN110475229B (en) Method and device for accessing service data, computer equipment and storage medium
EP2911431A1 (en) Communications system, mobile communications device, transition control device, transition control method, and transition control program
CN103747434A (en) Relevant contact person address list automatic updating system and method in case of number change
CN112673659A (en) Method and electronic device for automatically switching between multiple profiles in an ESIM
WO2016123822A1 (en) Data transmission method and device, and terminal
EP2685780A1 (en) Mobile phone and data processing method therefor
CN111278000A (en) Method, device, terminal and storage medium for binding mobile phone number
CN105407202A (en) Method and terminal for remote query of contact information
CN103118358A (en) Unique identification mobile phone user registration method
CN107548054B (en) Master-slave equipment switching method of eSIM card, slave equipment and eSIM card management server
CN114401492A (en) Incoming call information notification method, incoming call information notification device, call notification server, and storage medium
CN109246280B (en) Address book cloud processing method and device, computer equipment and readable storage medium
EP2094036A2 (en) Storage system of mobile terminal and access control method
CN107426090B (en) Information processing method, device, medium, electronic device, server and system
CN105979552B (en) Method and system for using manual PLMN selection mode

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant