CN113382458B - Equipment network-resident dialing method, computer equipment and storage medium - Google Patents

Equipment network-resident dialing method, computer equipment and storage medium Download PDF

Info

Publication number
CN113382458B
CN113382458B CN202110723002.3A CN202110723002A CN113382458B CN 113382458 B CN113382458 B CN 113382458B CN 202110723002 A CN202110723002 A CN 202110723002A CN 113382458 B CN113382458 B CN 113382458B
Authority
CN
China
Prior art keywords
apn
dialing
attached
preset
attach
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
CN202110723002.3A
Other languages
Chinese (zh)
Other versions
CN113382458A (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.)
Xi'an Guanghetong Wireless Communication Co ltd
Original Assignee
Xi'an Guanghetong Wireless Communication 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 Xi'an Guanghetong Wireless Communication Co ltd filed Critical Xi'an Guanghetong Wireless Communication Co ltd
Priority to CN202110723002.3A priority Critical patent/CN113382458B/en
Publication of CN113382458A publication Critical patent/CN113382458A/en
Application granted granted Critical
Publication of CN113382458B publication Critical patent/CN113382458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to a device resident network dialing method, a computer device and a storage medium. The device resident network dialing method comprises the following steps: under the condition that the equipment is confirmed to be restored from the dormant state currently, acquiring a finally used dialing APN through a preset identification rule; the preset identification rule comprises that the using priority of the first attached APN is higher than that of the second attached APN; the first attach APN comprises an attach APN newly created by a user before the equipment enters a dormant state; the second attach APN comprises an attach APN obtained based on a preset APN in an operator configuration file; and carrying out resident network dialing by adopting the dialing APN. Based on the application, after the equipment receives the S4resume, the correct Attach APN can be identified to carry out the resident network dialing, and the problem of secondary dialing is avoided.

Description

Equipment network-resident dialing method, computer equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a device residence network dialing method, a computer device, and a storage medium.
Background
Currently, a device is to be registered on a network when the device is started, a process of registering the device on the network is called Attach, and related information of the device is registered on a network entity in the Attach process; the device performs a registration procedure on the network before the actual traffic, and the user can receive the service from the network only after the attachment is successful. The attach procedure establishes a default bearer between the device and a PGW (PDN GateWay) to ensure that the device is online while assigning an IP address (Internet Protocol Address ) to the device.
Among them, attach APN (Access Point Name ) is an important parameter or a set of parameters required in LTE (Long Term Evolution ) Attach procedure. An Attach APN is needed in the Attach stage, a PDN (Packet Data Network ) is needed to be established in the Attach stage by LTE, and the APN determines which access mode the equipment accesses the network; currently, a user can establish an Attach APN by himself, then use the APN for an Attach process, and complete a registration flow.
In the implementation process, the inventor finds that at least the following problems exist in the conventional technology: in the current registration mode, when the device resumes from the S4 (sleep state), a problem of secondary dialing occurs.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a device-resident network dialing method, a computer device, and a storage medium capable of avoiding secondary dialing.
In order to achieve the above objective, in one aspect, an embodiment of the present application provides a device resident network dialing method, including:
under the condition that the equipment is confirmed to be restored from the dormant state currently, acquiring a finally used dialing APN through a preset identification rule; the preset identification rule comprises that the using priority of the first attached APN is higher than that of the second attached APN; the first attach APN comprises an attach APN newly created by a user before the equipment enters a dormant state; the second attach APN comprises an attach APN obtained based on a preset APN in an operator configuration file;
and carrying out resident network dialing by adopting the dialing APN.
In one embodiment, the step of obtaining the finally used dialing APN through a preset identification rule includes:
if the existence of the newly established attached APN of the user is detected, determining the first attached APN as a dialing APN;
if the fact that the newly-built attached APN of the user does not exist is detected, matching is conducted on preset APNs in the operator configuration file, a second attached APN is obtained, and the second attached APN is determined to be a dialing APN.
In one embodiment, the step of performing resident network dialing using the first attached APN includes:
transmitting the first attachment APN to a Modem module through an RPC calling interface; the first attachment APN is used for indicating the Modem module to carry out resident network dialing.
In one embodiment, the operator profile includes op_ota; the step of matching the preset APN in the operator configuration file to obtain a second attached APN comprises the following steps:
acquiring an IMSI;
searching in a preset APN in the OP_OTA according to the IMSI, and taking the APN corresponding to the MCC and the MNC matched in the searching as a second attached APN.
In one embodiment, in the step of detecting whether there is an attach APN newly created by the user:
and calling and acquiring the newly-built attached APN of the user through the MBIM command.
In one embodiment, the step of obtaining the finally used dialing APN through a preset identification rule includes:
matching preset APNs in the operator configuration file to obtain a second attached APN, and caching the second attached APN until a preset caching time period is finished;
if the first attachment APN is received in a preset caching time period, determining the first attachment APN as a dialing APN;
if the first attach APN is not received within the preset caching period, the second attach APN is determined to be a dialing APN.
In one embodiment, the operator profile includes op_ota; the step of matching the preset APN in the operator configuration file comprises the following steps:
acquiring an IMSI;
searching in a preset APN in the OP_OTA according to the IMSI, and taking the APN corresponding to the MCC and the MNC matched in the searching as a second attached APN.
In one embodiment, the first attach APN is obtained by issuing an attach APN newly created by the user through OS configuration.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the above method when the processor executes the computer program.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method described above.
One of the above technical solutions has the following advantages and beneficial effects:
the application provides that under the condition that the equipment is confirmed to be restored from a dormant state currently, a finally used dialing APN is obtained through a preset identification rule, wherein the preset identification rule comprises that the use priority of a first attached APN is higher than that of a second attached APN, the first attached APN comprises an attached APN newly established by a user before the equipment enters the dormant state, and the second attached APN comprises an attached APN obtained based on a preset APN in an operator configuration file; the application can obtain the unique attachment APN to dial on the premise of ensuring the Attach success rate, avoid secondary dialing and ensure the continuity of user data service. Based on the application, after the equipment receives the S4resume, the correct Attach APN can be identified to carry out the resident network dialing, the problem of secondary dialing is avoided, and better user experience is obtained.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments or the conventional techniques of the present application, the drawings required for the descriptions of the embodiments or the conventional techniques will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a diagram of an application environment for a device resident network dialing method in one embodiment;
FIG. 2 is a flow chart of a method for device-resident network dialing in one embodiment;
FIG. 3 is a flowchart illustrating steps for obtaining a final-use dialing APN according to one embodiment;
FIG. 4 is a flowchart illustrating a method for device-resident dialing in one embodiment;
FIG. 5 is a flowchart illustrating a procedure for obtaining a final-use dialing APN according to another embodiment;
fig. 6 is a schematic flow chart of a method for device resident network dialing in another embodiment;
fig. 7 is a block diagram of an apparatus for device-resident dialing in one embodiment;
fig. 8 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order that the application may be readily understood, a more complete description of the application will be rendered by reference to the appended drawings. Embodiments of the application are illustrated in the accompanying drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
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 application belongs. The terminology used herein in the description of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It will be understood that the terms first, second, etc. as used herein may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element.
Spatially relative terms, such as "under", "below", "beneath", "under", "above", "over" and the like, may be used herein to describe one element or feature's relationship to another element or feature as illustrated in the figures. It will be understood that the spatially relative terms are intended to encompass different orientations of the device in use and operation in addition to the orientation depicted in the figures. For example, if the device in the figures is turned over, elements or features described as "under" or "beneath" other elements would then be oriented "on" the other elements or features. Thus, the exemplary terms "below" and "under" may include both an upper and a lower orientation. Furthermore, the device may also include an additional orientation (e.g., rotated 90 degrees or other orientations) and the spatial descriptors used herein interpreted accordingly.
It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or be connected to the other element through intervening elements. Further, "connection" in the following embodiments should be understood as "electrical connection", "communication connection", and the like if there is transmission of electrical signals or data between objects to be connected.
As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," and/or the like, specify the presence of stated features, integers, steps, operations, elements, components, or groups thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or groups thereof. Also, the term "and/or" as used in this specification includes any and all combinations of the associated listed items.
In the conventional technology, after a user manually newly builds an Attach APN, the device enters an S4 state, and after waiting for 1min, a secondary dialing phenomenon occurs from S4 resume: the first dialing is successful, then the state is switched to the disconnect state, then the second dialing is carried out, and the state is changed to the connected state again after the dialing is successful. Specifically, in the traditional scheme, after S4resume, the device adopts a preset APN as an Attach APN to immediately complete registration and dialing (i.e. resident network dialing); at this time, the HOST manually newly-built APN (namely the Attach APN added by the user) is transmitted, and because the Attach APN is different, the device carries out Attach again by Detach, so that the second network injection and dialing of the module are caused, and the problem of secondary dialing occurs; this problem can affect the continuity of the user data traffic.
The application provides a scheme for avoiding secondary dialing, so that after the equipment is from S4resume, the correct Attach APN can be identified to carry out the resident network dialing process, the secondary dialing problem is avoided, and the user experience is improved. The device in the present application may refer to a PC (Personal Computer ), a UE (User Equipment) or a module (Modem); when the product form is a Modem module, the Modem module can be embedded into a PC, and communicate with the PC through a PCIE (Peripheral Component Interconnect Express, high-speed serial computer expansion bus standard) interface, so as to provide the PC with the capability of surfing the internet through a SIM (Subscriber Identification Module, subscriber identity module) card.
The UE according to the present application is not limited to a 5G network, and includes: cell phones, internet of things equipment, smart home equipment, industrial control equipment, vehicle equipment and the like. The User equipment may also be referred to as a Terminal (Terminal), a Terminal Device (Terminal Device), a Mobile Station (Mobile Station), a Remote Terminal (Remote Terminal), an Access Terminal (Access Terminal), a User Terminal (User Terminal), a User Agent (User Agent), and is not limited herein. The user equipment may also be an automobile in Vehicle-To-Vehicle (V2V) communication, a machine in machine type communication, or the like.
The device residence network dialing method provided by the application can be suitable for LTE systems, LTE Advanced (LTE-A), or other wireless communication systems adopting various wireless access technologies, such as systems adopting access technologies of code division multiple access, frequency division multiple access, time division multiple access, orthogonal frequency division multiple access, carrier aggregation (Carrier Aggregation, CA) and the like. In addition, the method can also be suitable for using subsequent evolution systems, such as a fifth generation 5G system and the like.
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The device resident network dialing method provided by the application can be applied to an application environment shown in figure 1. Wherein the device 102 completes the attachment process through the gateway 104 and further registers with the network (Internet). The device 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the gateway 104 may be a PGW.
In one embodiment, as shown in fig. 2, a device resident network dialing method is provided, and the method is applied to the device in fig. 1 for illustration, and includes the following steps:
step 202, under the condition that the equipment is confirmed to be restored from the dormant state currently, acquiring a finally used dialing APN through a preset identification rule;
the preset identification rule comprises that the using priority of the first attached APN is higher than that of the second attached APN; the first attach APN comprises an attach APN newly created by a user before the equipment enters a dormant state; the second attach APN comprises an attach APN obtained based on a preset APN in an operator configuration file;
specifically, the device resuming from the sleep state may refer to the PC resuming from the S4 state; in some embodiments, clicking the PC power button resumes from S4, at which point the module is powered up. After the equipment is recovered from the dormant state, the finally used dialing APN can be obtained through a preset identification rule, and the finally used dialing APN is an attached APN newly established by a user or obtained based on a preset APN in an operator configuration file, namely a first attached APN or a second attached APN, so that the inconsistent situation of an Attach APN is prevented, the problem of secondary dialing is avoided on the premise of ensuring the success rate of Attach, and the continuity of user data service is ensured.
Further, the preset identification rule may include that the first attach APN is used with a higher priority than the second attach APN. That is, the present application proposes that the priority of the attached APN newly created by the user as the finally used dialing APN is higher than the priority of the attached APN obtained based on the preset APN in the operator configuration file as the finally used dialing APN. When the first attached APN and the second attached APN exist at the same time, the application preferentially uses the first attached APN as a dialing APN to carry out resident network dialing.
It should be noted that, the Attach stage needs an Attach APN, and the LTE needs to establish a PDN in the Attach stage; in the application, the newly-built attached APN of the user refers to that before the equipment enters a dormant state (S4) this time, the user newly builds an Attach APN (the APN is used for an Attach process to complete a registration flow); further, after the APN is manually created, the device resumes (resume) after entering S4 state.
The attachment APN obtained based on The preset APN in The Operator configuration file refers to a preset scheme of windows Xml (Extensible Markup Language ) before The Attach APN is not used, the matching of The Attach APN of The device is realized on The sAP (small Application Processer, the linux whole system on The AP side) side, and The APN preset in The OP_OTA (operator_over The Air for storing customized parameters of each Operator) can be adopted: after acquiring the IMSI (International Mobile Subscriber Identity ), the Modem searches in a preset APN, and then uses the APN corresponding to the matched MCC (Mobile Country Code ) and MNC (Mobile Network Code, mobile network code) as an Attach APN to carry out resident network dialing.
After the device obtains the finally used dialing APN (namely the correct APN) through identification after the device is S4resume, and the application priority of the newly created attachment APN of the user is higher, at this time, even if the user adds the Attach APN, the OS (Operating System) issues LTE Attach Configuration (Set) to configure the Attach APN, and finally the Attach APN used for resident network dialing is the same, thereby avoiding secondary dialing. The LTE Attach Configuration (Set) configuration Attach APN issued by the OS is used for transmitting an APN Set by a user (i.e., an APN newly created by the user) to the module, so that the module can use the APN to perform network residence and dialing.
Step 204, dial APN is used to dial the resident network.
Specifically, the application provides the network resident dialing by adopting the correct Attach APN obtained after the identification, thereby avoiding the occurrence of the secondary dialing problem and improving the user experience.
In one embodiment, as shown in fig. 3, the step of obtaining the finally used dialing APN through the preset identification rule may include:
step 302, if detecting that there is an attached APN newly created by the user, determining the first attached APN as a dialing APN;
step 304, if it is detected that there is no attached APN newly created by the user, matching the preset APN in the operator configuration file to obtain a second attached APN, and determining the second attached APN as a dial APN.
Specifically, after the PC recovers from the S4 state, it may be detected first whether the Attach APN has been manually set by the user (i.e., whether there is an Attach APN newly created by the user). If yes, determining the Attach APN (namely the first attachment APN) as a finally used dialing APN to carry out resident network dialing; if not, the second attached APN is adopted as the finally used dialing APN to carry out resident network dialing. In some examples, the second attachment APN may be a match for an APN preset inside the op_ota.
In some embodiments, in the step of detecting whether there is an attach APN newly created by the user: the newly created attach APN for the user can be acquired through the MBIM command call.
Specifically, in the application, the acquisition of the newly-built attached APN of the user can be carried out through MBIM (Mobile Broadband Interface Model) command call. I.e. whether there is a manually set Attach APN already is obtained by MBIM call.
In one embodiment, the step of performing the resident network dialing using the first attach APN may include:
transmitting the first attachment APN to the Modem module through an RPC (Remote Procedure Call Protocol, remote procedure call) calling interface; the first attachment APN is used for indicating the Modem module to carry out resident network dialing.
Specifically, after the PC recovers from the S4 state, if it is detected that the Attach APN has been manually set by the user, the Attach APN is transferred to the Modem side through the RPC Call interface to perform the Attach procedure.
In one embodiment, the operator profile includes op_ota; the step of matching the preset APN in the operator configuration file to obtain a second attached APN comprises the following steps:
acquiring an IMSI;
searching in a preset APN in the OP_OTA according to the IMSI, and taking the APN corresponding to the MCC and the MNC matched in the searching as a second attached APN.
Specifically, after the PC recovers from the S4 state, if it is detected that the user does not manually set the Attach APN, an APN preset in the op_ota may be adopted: after the Modem acquires the IMSI, searching in a preset APN, and then carrying out resident network dialing by taking the APN corresponding to the matched MCC & MNC as an Attach APN.
To further illustrate the solution of the present application, the following describes the implementation flow of the device resident network dialing of the present application with reference to fig. 4:
the first step, PC resumes from S4 state;
step two, detecting whether the user has set APN manually (can be obtained through MBIM call);
thirdly, if the APN exists, the APN is used as an Attach APN, and is transferred to a Modem side to carry out an Attach process through an RPC Call calling interface, and the fifth step is skipped; otherwise, jumping to a fourth step;
fourth, after obtaining IMSI, modem searches preset APN, and according to MCC & MNC matching result, uses selected APN as Attach APN to dial in resident network;
and fifthly, ending.
According to the application, after the PC receives the S4resume, the Attach APN can be actively acquired through the MBIM, so that the problem of secondary dialing is avoided on the premise of ensuring the Attach success rate, the continuity of user data service is ensured, and better user experience is obtained.
In one embodiment, as shown in fig. 5, the step of obtaining the finally used dialing APN through the preset identification rule may include:
step 502, matching a preset APN in an operator configuration file to obtain a second attachment APN, and caching the second attachment APN until a preset caching period is finished;
step 504, if the first attach APN is received in the preset buffer time period, determining the first attach APN as a dial APN;
in step 506, if the first attach APN is not received within the preset buffer time period, the second attach APN is determined as the dial APN.
Specifically, after the PC has received the S4resume, the second attach APN may be acquired and cached. In some examples, a timer may be used to buffer the second attachment APN, while the buffering time may be implemented using a preset period of time; for example, a timer is started to buffer for a period of time (e.g., 0.1s-1 s) and wait for whether a new APN is subsequently issued by the user.
If the timer is overtime and the issuing of the APN newly established by the user is not received, registering and dialing the cached APN (namely the second attachment APN) as a final Attach APN; if the issuing of the APN newly created by the user is received before the timer is overtime, the APN newly created by the user (namely the first attached APN) is used as the final Attach APN configuration to register and dial.
In one embodiment, the operator profile includes op_ota; the step of matching the preset APN in the operator configuration file comprises the following steps:
acquiring an IMSI;
searching in a preset APN in the OP_OTA according to the IMSI, and taking the APN corresponding to the MCC and the MNC matched in the searching as a second attached APN.
Specifically, the present application proposes to acquire a second attachment APN by using an APN preset in the op_ota: after the Modem obtains the IMSI, the Modem may search for the APN in the preset APN, and then use the APN corresponding to the matched MCC & MNC as the second attachment APN.
In one embodiment, the first attach APN is obtained by issuing an attach APN newly created by the user through OS configuration.
Specifically, after the Modem acquires the Attach APN from the OP_OTA preset APN through the IMSI, starting a timer to buffer for a period of time (for example, 0.1s-1 s), and waiting for whether the subsequent OS issues LTE Attach Configuration (Set) to configure the Attach APN; if the timer is overtime and the configuration issued by the OS is not received, registering and dialing the cached APN as a final Attach APN; if the configuration issued by the OS is received before the timer is overtime, the configuration issued by the OS is used as the final Attach APN configuration to register and dial.
The application provides a passive waiting implementation mode, firstly, an APN is obtained from an OP_OTA configuration file to serve as an alternative, then waiting for a period of time, judging whether an Attach APN issued by an OS exists, if not, using the OP_OTAAPN to carry out Attach, wherein the priority of the Attach APN issued by the OS is higher.
To further illustrate the solution of the present application, the following describes the implementation flow of the device resident network dialing of the present application with reference to fig. 6:
the first step, PC resumes from S4 state;
secondly, the Modem acquires an Attach APN from an OP_OTA preset APN through the IMSI;
third, a timer is started to buffer the APN for a period of time (for example, 0.1s-1 s);
fourth, during the timer, judging whether the OS issues LTE Attach Configuration (Set) configuration Attach APN; if yes, registering and dialing are carried out by using the configuration issued by the OS as the final Attach APN configuration; if not, taking the APN cached in the third step as a final Attach APN to register and dial;
and fifthly, ending.
According to the application, after the PC is from S4resume, the APN can be preset through the buffer OP_OTA, and whether the OS issues the Attach APN configuration is waited, so that on the premise of ensuring the Attach success rate, the problem of secondary dialing is avoided, the continuity of user data service is ensured, and better user experience is obtained.
It should be understood that, although the steps in the flowcharts of fig. 2-6 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
In one embodiment, as shown in fig. 7, there is provided a device-resident network dialing apparatus, comprising:
the identifying module 710 is configured to obtain a finally used dialing APN through a preset identifying rule when the device is confirmed to be in a state of being in a sleep state; the preset identification rule comprises that the using priority of the first attached APN is higher than that of the second attached APN; the first attach APN comprises an attach APN newly created by a user before the equipment enters a dormant state; the second attach APN comprises an attach APN obtained based on a preset APN in an operator configuration file;
a dialing module 720, configured to dial a resident network using the dial APN.
In one embodiment, the identification module 710 may include:
the first identification unit is used for determining the first attach APN as a dialing APN if the attach APN newly established by the user is detected;
and the second identification unit is used for matching preset APNs in the operator configuration file to obtain a second attached APN if the attached APNs which are newly established by the user do not exist, and determining the second attached APN as a dialing APN.
In one embodiment, the dialing module 720 is configured to transmit the first attach APN to the Modem module through the RPC call interface; the first attachment APN is used for indicating the Modem module to carry out resident network dialing.
In one embodiment, the operator profile includes op_ota; the second recognition unit includes:
the acquisition module is used for acquiring the IMSI;
and the searching module is used for searching in a preset APN in the OP_OTA according to the IMSI, and taking the APN corresponding to the MCC and the MNC matched in the searching as a second attached APN.
In one embodiment, the identification module 710 is configured to obtain the attach APN newly created by the user through an MBIM command call.
In one embodiment, the identification module 710 may include:
the matching caching unit is used for matching preset APNs in the operator configuration file to obtain second attachment APNs, and caching the second attachment APNs until the preset caching time period is ended;
the first identification unit is used for determining the first attachment APN as a dialing APN if the first attachment APN is received in a preset caching period;
and the second identification unit is used for determining the second attached APN as a dialing APN if the first attached APN is not received in a preset caching period.
In one embodiment, the operator profile includes op_ota; the matching cache unit includes:
the acquisition module is used for acquiring the IMSI;
and the searching module is used for searching in a preset APN in the OP_OTA according to the IMSI, and taking the APN corresponding to the MCC and the MNC matched in the searching as a second attached APN.
In one embodiment, the first attach APN is obtained by issuing an attach APN newly created by the user through OS configuration.
The specific limitation of the device-resident network dialing apparatus may be referred to above as limitation of the device-resident network dialing method, and will not be described herein. The above-mentioned individual modules in the device-resident network dialing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program when executed by a processor implements a device-resident network dialing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 8 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided that includes a memory having a computer program stored therein and a processor that when executing the computer program implements the above-described device resident network dialing method.
In one embodiment, a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the above-described device-resident network dialing method is provided.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
In the description of the present specification, reference to the terms "some embodiments," "other embodiments," "desired embodiments," and the like, means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. A method for device-resident dialing, comprising:
under the condition that the equipment is confirmed to be restored from the dormant state currently, acquiring a finally used dialing APN through a preset identification rule; wherein the preset identification rule comprises that the use priority of the first attached APN is higher than that of the second attached APN; the first attach APN comprises an attach APN newly established by a user before the equipment enters a dormant state; the second attach APN comprises an attach APN obtained based on a preset APN in an operator configuration file; the step of obtaining the finally used dialing APN through the preset identification rule comprises the following steps: matching preset APNs in the operator configuration file to obtain the second attached APNs, and caching the second attached APNs until a preset caching time period is ended; if the first attachment APN is received in the preset caching time period, determining the first attachment APN as the dialing APN; if the first attachment APN is not received in the preset caching period, determining the second attachment APN as the dialing APN;
and carrying out resident network dialing by adopting the dialing APN.
2. The device resident network dialing method according to claim 1, wherein the step of obtaining the finally used dialing APN by a preset identification rule includes:
if detecting that the newly established attached APN of the user exists, determining the first attached APN as the dialing APN;
and if the fact that the attached APN newly established by the user does not exist is detected, matching the preset APN in the operator configuration file to obtain the second attached APN, and determining the second attached APN as the dialing APN.
3. The device resident network dialing method of claim 2, wherein the step of using the first attachment APN for resident network dialing comprises:
transmitting the first attached APN to a Modem module through an RPC calling interface; the first attachment APN is used for indicating the Modem module to carry out resident network dialing.
4. The device-resident network dialing method according to claim 2, wherein the operator profile includes op_ota; the step of matching the preset APN in the operator configuration file to obtain the second attached APN comprises the following steps:
acquiring an IMSI;
searching in a preset APN in the OP_OTA according to the IMSI, and taking the APN corresponding to the MCC and the MNC matched in the searching as the second attached APN.
5. The device-resident dialing method according to any one of claims 2 to 4, wherein in the step of detecting whether there is an attached APN newly created by the user:
and calling and acquiring the newly-built attached APN of the user through an MBIM command.
6. The device-resident network dialing method of claim 1, wherein the second attach APN is cached using a timer.
7. The device-resident network dialing method according to claim 1, wherein the operator profile includes op_ota; the step of matching the preset APN in the operator configuration file comprises the following steps:
acquiring an IMSI;
searching in a preset APN in the OP_OTA according to the IMSI, and taking the APN corresponding to the MCC and the MNC matched in the searching as the second attached APN.
8. The device resident network dialing method according to claim 1, wherein the first attached APN is obtained by issuing an attached APN newly created by a user through OS configuration.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 8 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 8.
CN202110723002.3A 2021-06-28 2021-06-28 Equipment network-resident dialing method, computer equipment and storage medium Active CN113382458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110723002.3A CN113382458B (en) 2021-06-28 2021-06-28 Equipment network-resident dialing method, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110723002.3A CN113382458B (en) 2021-06-28 2021-06-28 Equipment network-resident dialing method, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113382458A CN113382458A (en) 2021-09-10
CN113382458B true CN113382458B (en) 2023-08-11

Family

ID=77579659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110723002.3A Active CN113382458B (en) 2021-06-28 2021-06-28 Equipment network-resident dialing method, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113382458B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730184A (en) * 2009-11-23 2010-06-09 中兴通讯股份有限公司 Dialing method and system based on APN self adaption
CN102006210A (en) * 2010-11-26 2011-04-06 华为终端有限公司 User equipment dial-up networking method, device and system
CN102281612A (en) * 2011-07-13 2011-12-14 华为终端有限公司 Method and device for realizing automatic dialing by access point
CN109862603A (en) * 2019-03-28 2019-06-07 努比亚技术有限公司 APN adaptive approach, mobile terminal and readable storage medium storing program for executing
CN112584547A (en) * 2020-12-04 2021-03-30 北京小米移动软件有限公司 Method, device, storage medium and terminal equipment for establishing data connection
CN112738794A (en) * 2021-01-07 2021-04-30 展讯半导体(成都)有限公司 Network residing method, chip, mobile terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104704875B (en) * 2012-10-05 2018-06-05 Lg电子株式会社 The method and apparatus for controlling multipriority in a wireless communication system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730184A (en) * 2009-11-23 2010-06-09 中兴通讯股份有限公司 Dialing method and system based on APN self adaption
CN102006210A (en) * 2010-11-26 2011-04-06 华为终端有限公司 User equipment dial-up networking method, device and system
CN102281612A (en) * 2011-07-13 2011-12-14 华为终端有限公司 Method and device for realizing automatic dialing by access point
CN109862603A (en) * 2019-03-28 2019-06-07 努比亚技术有限公司 APN adaptive approach, mobile terminal and readable storage medium storing program for executing
CN112584547A (en) * 2020-12-04 2021-03-30 北京小米移动软件有限公司 Method, device, storage medium and terminal equipment for establishing data connection
CN112738794A (en) * 2021-01-07 2021-04-30 展讯半导体(成都)有限公司 Network residing method, chip, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN113382458A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
US20230075764A1 (en) Access control method and apparatus, communication device, and storage medium
US10939404B2 (en) User-equipment location area updating method, access network entity, user equipment and core network entity
US9538445B2 (en) Communication method and apparatus for electronic device in mobile communication system
CN110574407B (en) User equipment and method for protecting initial non-access stratum message
US10009838B2 (en) Access point connection method and electronic device thereof
US11317450B2 (en) Wireless communication method and network device
US20150065053A1 (en) Method of controlling short-range wireless communication and apparatus supporting the same
CN107094303B (en) Terminal network registration method, device and computer readable storage medium
CN111757259B (en) Communication method, apparatus and storage medium
CN107682916B (en) Network searching connection adaptation method and device and computer readable storage medium
CN108934067B (en) Method and device for acquiring paging parameters
CN111683360B (en) Mobile communication method, device and electronic equipment
CN111132129B (en) SIM card information acquisition device and communication terminal device
CN113382458B (en) Equipment network-resident dialing method, computer equipment and storage medium
CN110493771B (en) Data network connection method, device, storage medium and terminal equipment
US20160381729A1 (en) Electronic device and communication method of electronic device
WO2022068903A1 (en) Network selection method and apparatus, information transmission method and apparatus, and information acquisition method and apparatus
WO2021082782A1 (en) Communication configuration method and device
CN111491353B (en) Network searching method and device, storage medium and electronic equipment
CN115398984A (en) Electronic device and method for searching wireless access technology by electronic device supporting multiple communication networks
CN109309912B (en) Multi-card mobile terminal, network roaming method thereof and storage medium
CN105611068B (en) Mobile terminal and method for upgrading system
US11611867B2 (en) VSIM module for portable apparatus
RU2789445C1 (en) Method for control of identifiers of terminal device authorities and communication device
CN117835214A (en) Communication method, device and readable storage medium

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