CN113973295B - Network access control method, related device, equipment and computer storage medium - Google Patents

Network access control method, related device, equipment and computer storage medium Download PDF

Info

Publication number
CN113973295B
CN113973295B CN202010728862.1A CN202010728862A CN113973295B CN 113973295 B CN113973295 B CN 113973295B CN 202010728862 A CN202010728862 A CN 202010728862A CN 113973295 B CN113973295 B CN 113973295B
Authority
CN
China
Prior art keywords
network
sim card
terminal
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.)
Active
Application number
CN202010728862.1A
Other languages
Chinese (zh)
Other versions
CN113973295A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010728862.1A priority Critical patent/CN113973295B/en
Publication of CN113973295A publication Critical patent/CN113973295A/en
Application granted granted Critical
Publication of CN113973295B publication Critical patent/CN113973295B/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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

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

Abstract

The embodiment of the application provides a network access control method, a related device, equipment and a computer storage medium, wherein the network access control method comprises the following steps: the terminal determines that the first subscriber identity module SIM card is charged, judges whether a network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card, and if not, executes a network residing function through a modem of the terminal so as to enable the first SIM card to be accessed into the first preset network. The method expands a network access control mechanism and improves the intelligence of network access control.

Description

Network access control method, related device, equipment and computer storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network access control method, a related apparatus, a device, and a computer storage medium.
Background
With the rapid development of the communication technology field, people use mobile phones and other mobile devices into which a Subscriber Identity Module (SIM) card is inserted, and can access corresponding networks to make calls, send short messages, watch live broadcasts, play games, visit treasures and the like under the condition that the SIM card is not arrearage and shut down, so that great convenience is brought to the life of the users, and after the SIM card is arrearage and shut down, the resident network of the SIM card can fall back to a third generation mobile communication technology 3G network or a second generation mobile communication technology 2G network.
In the prior art, after the user recharges, the SIM card can be re-accessed to the fifth generation mobile communication technology 5G network or the fourth generation mobile communication technology 4G network preset by the user only when the user restarts the mobile phone, switches on and off the flight mode, and the like, which is complex to operate and not intelligent enough.
Disclosure of Invention
The application discloses a network access control method, a related device, equipment and a computer storage medium, which can realize that when an SIM card is recharged and the network to which the SIM card is currently accessed is not the network preset by a user, the SIM card is accessed to the network preset by the user through a modem at the local terminal to execute a network residing function, thereby improving the intelligence of network access control.
In a first aspect, an embodiment of the present application provides a network access control method, including:
the terminal determines that the first Subscriber Identity Module (SIM) card is charged;
the terminal judges whether a network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card;
and if not, the terminal executes a network residing function through a local modem so as to enable the first SIM card to be accessed into the first preset network.
According to the embodiment of the application, the terminal determines that the first subscriber identity module SIM card is recharged, judges whether the network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card, and if not, executes a network residing function through a local modem so that the first SIM card is accessed into the first preset network. That is to say, when the SIM card is recharged and the network to which the SIM card is currently connected is not the network preset by the user, the terminal can execute the network-resident function through the modem of the terminal, so that the SIM card is connected to the network preset by the user.
With reference to the first aspect, in some embodiments, the determining, by the terminal, that the first subscriber identity SIM card has been recharged includes: the terminal determines that the first SIM card is charged when detecting that the first SIM card finishes dialing a charged phone; and/or when the terminal receives the recharging short message of the first SIM card, determining that the first SIM card is recharged.
Therefore, in the network access control method, the terminal can determine that the SIM card is charged when detecting that the charging phone is dialed through the first SIM card and/or receiving the charging short message of the first SIM card, and the effectiveness of network access control is improved.
With reference to the first aspect, in some embodiments, the determining, by the terminal, whether a network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card includes: the terminal acquires a first network type of a network to which the first SIM card is currently accessed; the terminal acquires a second network type of the first preset network; the terminal compares the first network type with the second network type; if the first network type is different from the second network type, the terminal determines that the network to which the first SIM card is currently accessed is not the first preset network.
Therefore, in the network access control method, the terminal can judge whether the network currently accessed by the SIM card is the network preset by the user according to the network type of the network currently accessed by the SIM card and the network type of the network preset by the user, and the effectiveness of determining the charged SIM card is improved.
With reference to the first aspect, in some embodiments, the obtaining, by the terminal, a first network type of a network to which the first SIM card is currently accessed includes: the terminal acquires a first card slot identification code of the first SIM card; and the terminal acquires the first network type according to the first card slot identification code.
Therefore, in the network access control method, the terminal can acquire the network type of the network currently accessed by the SIM card, and the intelligence of network access control is further improved.
With reference to the first aspect, in some embodiments, the obtaining, by the terminal, the second network type of the first preset network includes: the terminal acquires a first card slot identification code of the first SIM card; and the terminal queries network mode information by taking the first card slot identification code as a query identifier to obtain the second network type, wherein the network mode information comprises the corresponding relation between the card slot identification code and the second network type.
Therefore, in the network access control method, the terminal can acquire the network type of the network of the SIM card set by the user, and the intelligence of network access control is further improved.
With reference to the first aspect, in some embodiments, the executing, by the terminal, a network-residing function through a modem of the terminal, so that the first SIM card is accessed to the first preset network includes: the terminal generates a network connection request according to the first preset network; the terminal sends the network connection request to a server through the modem; the terminal receives a network connection response fed back by the server; and the terminal accesses the first SIM card into the first preset network according to the network connection response.
Therefore, in the network access control method, the terminal can realize the SIM card to be accessed into the network preset by the user through the interaction of the local modem and the network side equipment, and the intelligence of the network access control is further improved.
With reference to the first aspect, in some embodiments, after the terminal determines whether a network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card, the method further includes: and if so, the terminal ends the current processing.
Therefore, in the network access control method, the terminal can end the current processing process when the network to which the SIM card is currently accessed is determined to be the network preset by the user.
In combination with the first aspect, in some embodiments, the method further comprises: and when detecting that the first SIM card is accessed into the first preset network, the terminal displays prompt information of the network with the recovered first SIM card on a display interface.
Therefore, in the network access control method, the terminal can push prompt information to the user to prompt the user when the SIM card is accessed to the network preset by the user again.
In a second aspect, an embodiment of the present application provides a network access control apparatus, including:
the determining module is used for determining that the first Subscriber Identity Module (SIM) card is charged;
the judging module is used for judging whether a network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card;
and the network access module is used for executing a network residing function through a local modem so as to enable the first SIM card to be accessed into the first preset network.
With reference to the second aspect, in some embodiments, in the determining that the first subscriber identity SIM card has been recharged, the determining module is specifically configured to: when detecting that a recharging phone is dialed through the first SIM card, determining that the first SIM card is recharged; and/or determining that the first SIM card is charged when the charging short message of the first SIM card is received.
With reference to the second aspect, in some embodiments, in the determining whether the network currently accessed by the first SIM card is the first preset network corresponding to the first SIM card, the determining module is specifically configured to: acquiring a first network type of a network to which the first SIM card is currently accessed; acquiring a second network type of the first preset network; comparing the first network type with the second network type; and if the first network type is different from the second network type, determining that the network currently accessed by the first SIM card is not the first preset network.
With reference to the second aspect, in some embodiments, in the aspect of obtaining the first network type of the network to which the first SIM card is currently accessed, the determining module is specifically configured to: acquiring a first card slot identification code of the first SIM card; and acquiring the first network type according to the first card slot identification code.
With reference to the second aspect, in some embodiments, in the aspect of obtaining the second network type of the first preset network, the determining module is specifically configured to: acquiring a first card slot identification code of the first SIM card; and inquiring network mode information by taking the first card slot identification code as an inquiry identifier to obtain the second network type, wherein the network mode information comprises the corresponding relation between the card slot identification code and the second network type.
With reference to the second aspect, in some embodiments, in the aspect that the local modem performs a network residence function so as to enable the first SIM card to access the first preset network, the network access module is specifically configured to: generating a network connection request according to the first preset network; sending the network connection request to a server through the modem; receiving a network connection response fed back by the server; and accessing the first SIM card into the first preset network according to the network connection response.
In combination with the second aspect, in some embodiments, the apparatus further comprises: and the process ending module is used for ending the current processing if the network currently accessed by the first SIM card is the first preset network corresponding to the first SIM card after judging whether the network currently accessed by the first SIM card is the first preset network corresponding to the first SIM card.
In combination with the second aspect, in some embodiments, the apparatus further comprises: and the display module is used for displaying prompt information of the network recovered by the first SIM card on a display interface when the first SIM card is detected to be accessed into the first preset network.
In a third aspect, an embodiment of the present application provides a network access control apparatus, including: one or more processors, memory, a modem, and one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for the steps of the network access control method of any of the first aspects.
In a fourth aspect, an embodiment of the present application provides a computer storage medium, which is characterized by comprising computer instructions, when the computer instructions are executed on an electronic device, the electronic device is caused to execute the network access control method according to any one of the first aspect.
It is to be understood that the network access control apparatus of the second aspect and the computer storage medium of the third aspect are both configured to perform the method of any of the first aspect. Therefore, the beneficial effects achieved by the method can refer to the beneficial effects in the corresponding method, and are not described herein again.
Drawings
The drawings used in the embodiments of the present application are described below.
Fig. 1 is a schematic diagram of a network access control system according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a network access control method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an interface provided by an embodiment of the present application;
FIG. 4 is a schematic view of another interface provided by embodiments of the present application;
fig. 5 is a flowchart illustrating another network access control method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a network access control apparatus according to an embodiment of the present application;
fig. 7 is a block diagram illustrating functional modules of a network access control device according to an embodiment of the present disclosure.
Detailed Description
The embodiments of the present application will be described below with reference to the drawings. The terminology used in the description of the embodiments herein is for the purpose of describing particular embodiments herein only and is not intended to be limiting of the application.
Referring to fig. 1, fig. 1 is a schematic diagram of a network access control system according to an embodiment of the present disclosure. As shown in fig. 1, the touch network access control system 100 may include a terminal 101 and a server 102, where the terminal includes a modem, and the terminal 101 and the server 102 may interact with each other through the modem to implement control over an access network of a SIM card in the terminal 101.
The terminal 101 includes a corresponding program capable of executing the steps in the network access control method provided by the present application to implement the SIM card accessing the network preset by the user.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a network access control method according to an embodiment of the present disclosure. As shown in fig. 2, the network access control method includes steps s201-s203, which are as follows:
s201, the terminal determines that the first Subscriber Identity Module (SIM) card is charged;
the network access control method can be applied to an electronic device capable of inserting a SIM card, the electronic device including a modem, and an application program can run on the electronic device, wherein the electronic device can be various SIM card-insertable handheld devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), mobile Station (MS), and the like, without being limited in particular.
The terminal can be inserted with at least one SIM card, and the first SIM card can be any one SIM card inserted into the terminal.
The step of determining that the first Subscriber Identity Module (SIM) card is charged by the terminal comprises the following steps: the terminal determines that the first SIM card is charged when detecting that the first SIM card finishes dialing a charged phone; and/or when the terminal receives the recharging short message of the first SIM card, determining that the first SIM card is recharged.
When the terminal detects that the first SIM card completes dialing of a recharge phone call, the specific implementation manner for determining that the first SIM card has been recharged may be: when the terminal detects that a call is dialed through the first SIM card, the terminal acquires a currently dialed number; the terminal compares the number dialed currently with each recharging number in a pre-stored recharging number list; and if the currently dialed number is matched with any recharging number in the recharging number list, the terminal determines that the first SIM card is recharged when detecting that the current call is ended. Wherein the top-up number list includes at least one top-up number.
The terminal may obtain a recharge number list from an operator according to a preset first time interval, and update the prestored recharge number list, where the preset first time interval may be one month, the preset first time interval may also be 7 days, the preset first time interval may also be 15 days, the preset first time interval may also be another first time interval, and the preset first time interval is not specifically limited.
When the terminal receives the recharge short message of the first SIM card, the specific implementation manner for determining that the first SIM card has been recharged may be: the terminal acquires the content of the short message when receiving the short message corresponding to the first SIM card; the terminal judges whether a recharging associated field exists in the short message content, wherein the recharging associated field is used for reflecting that the current short message is a recharging short message; and if the recharging associated field exists in the short message content, the terminal determines that the first SIM card is recharged.
The recharging associated field is not limited specifically, such as "payment amount", "recharging amount", "recharge" for the local machine.
Taking a mobile phone as an example, after a user recharges a first SIM card, the terminal 101 receives a recharging short message sent by an operator, and on a display interface, at this time, the terminal can identify the content of the recharging short message by means of image identification or text identification. Fig. 3 is a schematic interface diagram provided in the embodiment of the present application, and as shown in fig. 3, taking a mobile phone as an example, the recharge short message may be "you have recharged 50 yuan for the native phone.
s202, the terminal determines whether a network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card;
the method for judging whether the network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card by the terminal comprises the following steps A11-A14:
a11, the terminal acquires a first network type of a network to which the first SIM card is currently accessed;
the method for acquiring the first network type of the network to which the first SIM card is currently accessed by the terminal includes: the terminal acquires a first card slot identification code of the first SIM card; and the terminal acquires the first network type according to the first card slot identification code.
Specifically, in the implementation, the method for acquiring the network type is telephonymanager. Getnetworktype (phone Id), the parameter phone Id is a card slot identification code corresponding to the SIM card, generally 0 or 1, and the acquired network type includes NR (5G), LTE (4G), UMTS (3G), and GPRS (2G).
A12, the terminal acquires a second network type of the first preset network;
the terminal acquiring a second network type of the first preset network includes: the terminal acquires a first card slot identification code of the first SIM card; and the terminal queries network mode information by taking the first card slot identification code as a query identifier to obtain the second network type, wherein the network mode information comprises the corresponding relation between the card slot identification code and the second network type.
The terminal system provides an open interface for setting a Network mode, which is generally a phone set Preferred Network Type (Network Type), the parameter Network Type is a value of a Network mode desired to be set, and the Network mode of the SIM card can be set by calling the interface.
And the user can set the network mode corresponding to the first SIM card by himself through the open interface.
When a user sets a network mode, the terminal system stores network mode information of the network mode of the SIM card set by the user in a database of the terminal, if the terminal is a new terminal, the network mode information (including a network type) of the network mode of the SIM card set by a terminal operator is stored in the database, the network type is generally 5G or 4G, and after the SIM card is inserted into the card slot, the card slot identification code, the SIM card and the network mode are in one-to-one correspondence, so that the database can be inquired through the card slot identification code of the SIM card to obtain the preset network type of the SIM card.
A13, the terminal compares the first network type with the second network type;
and A14, if the first network type is different from the second network type, the terminal determines that the network currently accessed by the first SIM card is not the first preset network.
And s203, if not, the terminal executes a network residing function through a local modem so as to enable the first SIM card to access the first preset network.
The terminal triggers a Modem of a local terminal to start a network-residing function so that the first SIM card is accessed into the first preset network, and the method comprises the following steps: the terminal generates a network connection request according to the first preset network; the terminal sends the network connection request to a server through the modem; the terminal receives a network connection response fed back by the server; and the terminal accesses the first SIM card into the first preset network according to the network connection response.
The implementation manner of the terminal generating the network connection request according to the first preset network may be: and the terminal calls the phone set Preferred Network Type interface to re-issue the Network mode set by the user to the Modem of the terminal, if the user successfully supplements the value so that the first SIM card is not in the halt filling state any more, the Network mode setting is re-issued, and then the Network accessed by the first SIM card can be restored to the Network of the Network Type set by the user through the interaction of the Modem and the server, and the Modem does not need to be restarted in the process.
The terminal executes a network residence function through a modem of the terminal, so that the implementation manner of accessing the first SIM card into the first preset network may be: and after a preset second time interval, the terminal executes a network residing function through a local modem so as to enable the first SIM card to be accessed into the first preset network. The second time interval may be 15 minutes, the second time interval may also be 30 minutes, the second time interval may also be one hour, the second time interval may also be other time intervals, the second time interval is not specifically limited, that is, a period of time after the recharging call is dialed, or a period of time after the recharging short message is received, the network residence function is executed by the modem of the terminal, so that the first SIM card is accessed to the first preset network.
The order of occurrence of s201 and s202 is not particularly limited, and s201 may occur before s202, or s202 may occur before s 201.
According to the embodiment of the application, the terminal determines that the first subscriber identity module SIM card is recharged, judges whether the network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card, and if not, executes a network residing function through a local modem so that the first SIM card is accessed into the first preset network. That is to say, when the SIM card is recharged and the network to which the SIM card is currently connected is not the network preset by the user, the terminal can execute the network-resident function through the modem of the terminal, so that the SIM card is connected to the network preset by the user.
In one possible example, after the terminal determines whether a network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card, the method further includes: and if so, the terminal ends the current processing.
Therefore, in the network access control method, the terminal can end the current processing process when the network currently accessed by the SIM card is determined to be the network preset by the user.
In one possible example, the method further comprises: and when detecting that the first SIM card is accessed into the first preset network, the terminal displays prompt information of the network with the recovered first SIM card on a display interface.
If the network accessed by the first SIM card is restored to the network of the network type set by the user after the network mode setting is issued again, the network mode is successfully and automatically restored after the user recharges, and at the moment, a notice can be popped up to prompt the user that the network of the first SIM card is automatically restored.
Fig. 4 is a schematic interface diagram provided in an embodiment of the present application, and as shown in fig. 4, when the terminal determines that the first SIM card is charged and the network to which the first SIM card is currently accessed is not the network preset by the user, and the terminal switches the currently accessed network to the network preset by the user through interaction between the modem and the server of the terminal, the terminal may prompt the user that the network of the first SIM card is recovered.
Therefore, in the network access control method, the terminal can push prompt information to the user to prompt the user when the SIM card is accessed to the network preset by the user again, and user experience is improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating another network access control method according to an embodiment of the present application. As shown in fig. 5, the network access control method includes the following steps s301 to s304, which are as follows:
s301, when detecting that a call is dialed through a first SIM card, the terminal acquires a currently dialed number;
s302, the terminal compares the currently dialed number with each recharging number in a pre-stored recharging number list;
s303, the terminal determining whether a network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card;
s304, if the currently dialed number matches with any recharging number in the recharging number list and the currently accessed network of the first SIM card is not the first preset network corresponding to the first SIM card, the terminal executes a network residing function through the modem of the terminal when detecting that the current call is finished, so that the first SIM card is accessed to the first preset network.
Here, the local modem may be triggered to execute the network residing function by the way that the terminal re-issues the network mode setting to the local modem.
The occurrence order of s302 and s303 is not particularly limited, and s302 may occur before s303, or s302 may occur after s 303.
According to the embodiment of the application, the terminal determines that the first subscriber identity module SIM card is recharged, judges whether the network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card, and if not, executes a network residing function through a local modem so that the first SIM card is accessed into the first preset network. That is to say, when the SIM card is recharged and the network to which the SIM card is currently accessed is not the network preset by the user, the terminal can execute the network residing function through the modem of the terminal, so that the SIM card is accessed to the network preset by the user.
In addition, the terminal can automatically switch the network of the SIM card to the network set by the user according to the condition that the user dials the recharging phone to determine that the SIM card is recharged when the SIM card is stopped and the user dials the recharging phone to recharge the SIM card.
Next, an application scenario of the network access control method provided in the embodiment of the present application is described.
The first method is that aiming at a call-making scene, when a user makes a call, whether the number to be dialed is an operator recharging number is judged, whether a resident network (namely a currently accessed network) of a current SIM card is matched with a network corresponding to a network mode set by the user is judged, if the number to be dialed is the operator recharging number and the resident network (namely the currently accessed network) of the current SIM card is matched with the network corresponding to the network mode set by the user, the modem of the local terminal is triggered to re-park the network by retransmitting the network mode setting to the modem of the local terminal so that the current SIM card is accessed into the network corresponding to the network mode set by the user, and the process can ensure that the SIM card is not dropped and does not need to restart the modem of the local terminal.
And secondly, aiming at a short message receiving scene, when a terminal receives a short message, judging whether the received short message is supplemented with a short message or not, judging whether a resident network (namely a currently accessed network) of the current SIM card is matched with a network corresponding to a network mode set by a user or not, if the received short message is supplemented with the short message and the resident network (namely the currently accessed network) of the current SIM card is matched with the network corresponding to the network mode set by the user, triggering the modem of the local terminal to re-reside in the network in a mode of re-issuing network mode setting to the modem of the local terminal so as to enable the current SIM card to be accessed into the network corresponding to the network mode set by the user, wherein the process ensures that the SIM card cannot be dropped, and can ensure that the SIM card cannot be dropped without restarting the modem of the local terminal.
It should be noted that the network access control method may also be applied to other application scenarios, and is not limited herein.
Referring to fig. 6 in accordance with the embodiments shown in fig. 5 and fig. 5, fig. 6 is a schematic structural diagram of a network access control apparatus 600 according to an embodiment of the present application, as shown in fig. 6, the network access control apparatus 600 includes one or more processors 610, a memory 620, a modem 630, a communication interface 640, and one or more programs 621, where the one or more programs 621 are stored in the memory 620 and configured to be executed by the one or more processors 610, and the one or more programs 621 include instructions for performing the following steps;
determining that the first Subscriber Identity Module (SIM) card is charged; judging whether a network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card; if not, the local modem 630 executes a network residing function, so that the first SIM card is accessed to the first preset network.
According to the embodiment of the application, the terminal determines that the first subscriber identity module SIM card is recharged, judges whether the network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card, and if not, executes a network residing function through a local modem so that the first SIM card is accessed into the first preset network. That is to say, when the SIM card is recharged and the network to which the SIM card is currently connected is not the network preset by the user, the terminal can execute the network-resident function through the modem of the terminal, so that the SIM card is connected to the network preset by the user.
In one possible example, in the determining that the first subscriber identity SIM card has been recharged, the instructions in the one or more programs 621 are specifically configured to: when detecting that a recharging phone is dialed through the first SIM card, determining that the first SIM card is recharged; and/or determining that the first SIM card is charged when the charging short message of the first SIM card is received.
In one possible example, in the aspect of determining whether the network currently accessed by the first SIM card is the first preset network corresponding to the first SIM card, the instructions in the one or more programs 621 are specifically configured to: acquiring a first network type of a network to which the first SIM card is currently accessed; acquiring a second network type of the first preset network; comparing the first network type with the second network type; and if the first network type is different from the second network type, determining that the network currently accessed by the first SIM card is not the first preset network.
In one possible example, in terms of obtaining the first network type of the network currently accessed by the first SIM card, the instructions in the one or more programs 621 are specifically configured to: acquiring a first card slot identification code of the first SIM card; and acquiring the first network type according to the first card slot identification code.
In one possible example, in terms of obtaining the second network type of the first predetermined network, the instructions in the one or more programs 621 are specifically configured to: acquiring a first card slot identification code of the first SIM card; and inquiring network mode information by taking the first card slot identification code as an inquiry identifier to obtain the second network type, wherein the network mode information comprises the corresponding relation between the card slot identification code and the second network type.
In a possible example, in terms of performing a network-resident function through the modem 630 of the local end to enable the first SIM card to access the first preset network, the instructions in the one or more programs 621 are specifically configured to: generating a network connection request according to the first preset network; sending the network connection request to a server through the modem 630; receiving a network connection response fed back by the server; and according to the network connection response, the first SIM card is accessed into the first preset network.
In one possible example, the one or more programs 621 further include instructions for performing the steps of: and after judging whether the network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card, if so, ending the current processing.
In one possible example, the one or more programs 621 further include instructions for performing the steps of: and when the first SIM card is detected to be accessed into the first preset network, displaying prompt information of the network with the first SIM card restored on a display interface.
Referring to fig. 7, fig. 7 is a block diagram of functional modules of a network access control apparatus according to an embodiment of the present application, as shown in fig. 7, the network access control apparatus 700 includes a determining module 701, a determining module 702, and a network access module 703, wherein,
the determining module 701 is configured to determine that the first subscriber identity module SIM card has been recharged;
the determining module 702 is configured to determine whether a network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card;
the network access module 703 is configured to execute a network residence function through a local modem, so that the first SIM card is accessed to the first preset network.
According to the embodiment of the application, the terminal determines that the first subscriber identity module SIM card is recharged, judges whether a network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card, and if not, executes a network residing function through a local modem so as to enable the first SIM card to be accessed into the first preset network. That is to say, when the SIM card is recharged and the network to which the SIM card is currently connected is not the network preset by the user, the terminal can execute the network-resident function through the modem of the terminal, so that the SIM card is connected to the network preset by the user.
The apparatus 700 may further include a storage module 704 for storing program codes and data of the electronic device. The determining module 701 may be a processor, and the storing module 704 may be a memory.
In one possible example, in the aspect of determining that the first subscriber identity SIM card has been charged, the determining module 701 is specifically configured to: when detecting that a recharging phone is dialed through the first SIM card, determining that the first SIM card is recharged; and/or determining that the first SIM card is charged when the charging short message of the first SIM card is received.
In a possible example, in the aspect of determining whether the network currently accessed by the first SIM card is the first preset network corresponding to the first SIM card, the determining module 702 is specifically configured to: acquiring a first network type of a network to which the first SIM card is currently accessed; acquiring a second network type of the first preset network; comparing the first network type with the second network type; and if the first network type is different from the second network type, determining that the network currently accessed by the first SIM card is not the first preset network.
In a possible example, in terms of obtaining the first network type of the network to which the first SIM card is currently accessed, the determining module 702 is specifically configured to: acquiring a first card slot identification code of the first SIM card; and acquiring the first network type according to the first card slot identification code.
In a possible example, in terms of obtaining the second network type of the first preset network, the determining module 702 is specifically configured to: acquiring a first card slot identification code of the first SIM card; and inquiring network mode information by taking the first card slot identification code as an inquiry identifier to obtain the second network type, wherein the network mode information comprises the corresponding relation between the card slot identification code and the second network type.
In a possible example, in terms of performing a network-resident function through a modem of the local terminal to enable the first SIM card to access the first preset network, the network access module 703 is specifically configured to: generating a network connection request according to the first preset network; sending the network connection request to a server through the modem; receiving a network connection response fed back by the server; and accessing the first SIM card into the first preset network according to the network connection response.
In one possible example, the apparatus further comprises: and the process ending module is used for ending the current processing if the network currently accessed by the first SIM card is the first preset network corresponding to the first SIM card after judging whether the network currently accessed by the first SIM card is the first preset network corresponding to the first SIM card.
In one possible example, the apparatus further comprises: and the display module is used for displaying prompt information of the network recovered by the first SIM card on a display interface when the first SIM card is detected to be accessed into the first preset network.
Embodiments of the present application further provide a computer storage medium, where the computer storage medium includes computer instructions, and when the computer instructions are executed on an electronic device, the electronic device is caused to execute the network access control method according to any one of the first aspect.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as recited in the method embodiments. The computer program product may be a software installation package, said computer comprising electronic means.
It should be noted that for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and other divisions may be realized in practice, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some interfaces, and may be in an electrical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or the like) to execute all or part of the steps of the above methods of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash memory disks, read-only memories (ROMs), random Access Memories (RAMs), magnetic or optical disks, and the like.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the listed steps or modules but may alternatively include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The above description is only a specific implementation of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (16)

1. A method for controlling network access, comprising:
the terminal determines that the first Subscriber Identity Module (SIM) card is charged;
the terminal judges whether a network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card; the determining, by the terminal, whether a network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card includes:
the terminal acquires a first network type of a network to which the first SIM card is currently accessed;
the terminal acquires a second network type of the first preset network;
the terminal compares the first network type with the second network type;
if the first network type is different from the second network type, the terminal determines that the network to which the first SIM card is currently accessed is not the first preset network;
and if not, the terminal executes a network residing function through a local modem so as to enable the first SIM card to be accessed into the first preset network.
2. The method of claim 1, wherein the terminal determining that the first subscriber identity SIM card has been recharged comprises:
the terminal determines that the first SIM card is charged when detecting that the first SIM card finishes dialing a charged phone; and/or the presence of a gas in the gas,
and when receiving the recharging short message of the first SIM card, the terminal determines that the first SIM card is recharged.
3. The method according to claim 1 or 2, wherein the acquiring, by the terminal, the first network type of the network to which the first SIM card is currently accessed comprises:
the terminal acquires a first card slot identification code of the first SIM card;
and the terminal acquires the first network type according to the first card slot identification code.
4. The method according to any one of claims 1 to 3, wherein the obtaining, by the terminal, the second network type of the first preset network includes:
the terminal acquires a first card slot identification code of the first SIM card;
and the terminal queries network mode information by taking the first card slot identification code as a query identifier to obtain the second network type, wherein the network mode information comprises the corresponding relation between the card slot identification code and the second network type.
5. The method according to any one of claims 1 to 4, wherein the terminal performs a network-resident function through a modem of a local terminal to enable the first SIM card to access the first predetermined network, and the method comprises:
the terminal generates a network connection request according to the first preset network;
the terminal sends the network connection request to a server through the modem;
the terminal receives a network connection response fed back by the server;
and the terminal accesses the first SIM card into the first preset network according to the network connection response.
6. The method according to claim 1, wherein after the terminal determines whether the network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card, the method further comprises:
and if so, the terminal ends the current processing.
7. The method according to any one of claims 1-4, further comprising:
and when detecting that the first SIM card is accessed into the first preset network, the terminal displays prompt information of the network with the recovered first SIM card on a display interface.
8. A network access control device, comprising:
the determining module is used for determining that the first Subscriber Identity Module (SIM) card is charged;
the judging module is used for judging whether a network currently accessed by the first SIM card is a first preset network corresponding to the first SIM card; in the aspect of the determining whether the network currently accessed by the first SIM card is the first preset network corresponding to the first SIM card, the determining module is specifically configured to:
acquiring a first network type of a network to which the first SIM card is currently accessed;
acquiring a second network type of the first preset network;
comparing the first network type with the second network type;
if the first network type is different from the second network type, determining that the network currently accessed by the first SIM card is not the first preset network;
and the network access module is used for executing a network residing function through a local modem so as to enable the first SIM card to be accessed into the first preset network.
9. The apparatus of claim 8, wherein in the determining that the first Subscriber Identity Module (SIM) card has been recharged, the determining module is specifically configured to:
when detecting that a recharging phone is dialed through the first SIM card, determining that the first SIM card is recharged; and/or the presence of a gas in the gas,
and when receiving the recharging short message of the first SIM card, determining that the first SIM card is recharged.
10. The apparatus according to claim 8 or 9, wherein in the aspect of acquiring the first network type of the network to which the first SIM card is currently accessed, the determining module is specifically configured to:
acquiring a first card slot identification code of the first SIM card;
and acquiring the first network type according to the first card slot identification code.
11. The apparatus according to any one of claims 8 to 10, wherein in the aspect of obtaining the second network type of the first preset network, the determining module is specifically configured to:
acquiring a first card slot identification code of the first SIM card;
and inquiring network mode information by taking the first card slot identification code as an inquiry identifier to obtain the second network type, wherein the network mode information comprises the corresponding relation between the card slot identification code and the second network type.
12. The apparatus according to any one of claims 8 to 11, wherein in the aspect that the local modem performs the network camping function to enable the first SIM card to access the first predetermined network, the network access module is specifically configured to:
generating a network connection request according to the first preset network;
sending the network connection request to a server through the modem;
receiving a network connection response fed back by the server;
and according to the network connection response, the first SIM card is accessed into the first preset network.
13. The apparatus of claim 8, further comprising:
and the process ending module is used for ending the current processing if the network currently accessed by the first SIM card is the first preset network corresponding to the first SIM card after judging whether the network currently accessed by the first SIM card is the first preset network corresponding to the first SIM card.
14. The apparatus of any one of claims 8-13, further comprising:
and the display module is used for displaying prompt information of the network recovered by the first SIM card on a display interface when the first SIM card is detected to be accessed into the first preset network.
15. A network access control device, comprising: one or more processors, memory, a modem, and one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for the steps of the network access control method of any of claims 1-7.
16. A computer storage medium comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform the network access control method of any of claims 1-7.
CN202010728862.1A 2020-07-24 2020-07-24 Network access control method, related device, equipment and computer storage medium Active CN113973295B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010728862.1A CN113973295B (en) 2020-07-24 2020-07-24 Network access control method, related device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010728862.1A CN113973295B (en) 2020-07-24 2020-07-24 Network access control method, related device, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN113973295A CN113973295A (en) 2022-01-25
CN113973295B true CN113973295B (en) 2023-03-24

Family

ID=79584585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010728862.1A Active CN113973295B (en) 2020-07-24 2020-07-24 Network access control method, related device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN113973295B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106304222A (en) * 2015-05-13 2017-01-04 小米科技有限责任公司 The system of selection of type in net and device
CN108781237A (en) * 2016-02-09 2018-11-09 T移动美国公司 The detection of arrearage mobile device
CN109996213A (en) * 2018-01-02 2019-07-09 西安中兴新软件有限责任公司 A kind of car-mounted terminal and its restoration methods, device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011033144A1 (en) * 2009-09-18 2011-03-24 Francisco Manuel Ferro Morado Method and system for optimizing the efficiency with which telecommunication network resources are used
US9911125B2 (en) * 2013-11-04 2018-03-06 Bank Of America Corporation Preventing contact by locking
CN106332041B (en) * 2016-08-19 2019-05-17 维沃移动通信有限公司 A kind of data network restoration methods and mobile terminal
CN106658754B (en) * 2016-09-29 2020-09-04 北京小米移动软件有限公司 Method and device for recovering network connection
CN109891942A (en) * 2016-11-03 2019-06-14 华为技术有限公司 The method and terminal device of terminal device recovery data service
CN107135496B (en) * 2017-04-17 2020-10-23 青岛海信移动通信技术股份有限公司 Mobile data service self-recovery method and device and mobile terminal
CN111065069B (en) * 2019-11-29 2023-07-14 惠州华阳通用电子有限公司 T-BOX data network recovery method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106304222A (en) * 2015-05-13 2017-01-04 小米科技有限责任公司 The system of selection of type in net and device
CN108781237A (en) * 2016-02-09 2018-11-09 T移动美国公司 The detection of arrearage mobile device
CN109996213A (en) * 2018-01-02 2019-07-09 西安中兴新软件有限责任公司 A kind of car-mounted terminal and its restoration methods, device

Also Published As

Publication number Publication date
CN113973295A (en) 2022-01-25

Similar Documents

Publication Publication Date Title
CN109314846B (en) Subscriber self-activation device, program, and method
EP2741245A1 (en) Mobile payment method, device and system for server end and client
CN108271130B (en) Communication system and method for identifying pseudo base station short message
CN107548054B (en) Master-slave equipment switching method of eSIM card, slave equipment and eSIM card management server
CN113973295B (en) Network access control method, related device, equipment and computer storage medium
CN112312565B (en) Communication processing method, device, apparatus and storage medium
CN107426194B (en) Call connection method, device, server, electronic equipment and storage medium
CN111107093B (en) Application login method, device, terminal and storage medium
CN112840305B (en) Font switching method and related product
CN107968799B (en) Information acquisition method, terminal equipment and system
CN108521663B (en) Communication control method, system and terminal
CN111497673A (en) Charging pile management method, mobile terminal, charging pile, cloud platform and medium
CN107483605B (en) File downloading method and device and storage medium
CN110087232B (en) Call processing method and device based on intelligent equipment and server
EP4333518A1 (en) Paging method and device, electronic device, and storage medium
CN107734492B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN108959955B (en) File processing method and device
CN109714808B (en) Data service processing method and system
CN112256295A (en) Application program updating method, device, equipment and storage medium
CN112423288A (en) Dialing analysis method and device, computer equipment and storage medium
CN106878982B (en) Data dialing method and system
CN100433932C (en) Virus firewall providing system and method for mobile communication terminal
CN113453151B (en) Short message sending method and device, communication equipment and storage medium
CN113194523B (en) Network connection establishing method, device, terminal and storage medium
CN116634384B (en) Terminal equipment searching method, system and storage medium thereof

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