WO2021082545A1 - Apn匹配方法、终端及存储介质 - Google Patents
Apn匹配方法、终端及存储介质 Download PDFInfo
- Publication number
- WO2021082545A1 WO2021082545A1 PCT/CN2020/103842 CN2020103842W WO2021082545A1 WO 2021082545 A1 WO2021082545 A1 WO 2021082545A1 CN 2020103842 W CN2020103842 W CN 2020103842W WO 2021082545 A1 WO2021082545 A1 WO 2021082545A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- list
- apn
- plmn
- matching
- terminal
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/17—Selecting a data network PoA [Point of Attachment]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/20—Selecting an access point
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W60/00—Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
- H04W60/04—Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration using triggered events
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/183—Processing at user equipment or user record carrier
Definitions
- This application relates to the field of communication technology, and in particular to an APN matching method, terminal and storage medium.
- APN Access Point Name, access point name
- Different APNs identify the way in which the terminal accesses the network and uses the data service.
- the existing method of establishing a network connection through an APN usually first obtains the APN, and then uses the APN corresponding to the operator to surf the Internet.
- the existing APN matching method the corresponding relationship between the Public Land Mobile Network (Public Land Mobile Network, abbreviation: PLMN) and APN of all operators in the country or the world is usually preset in the terminal.
- PLMN Public Land Mobile Network
- Each operator usually has multiple PLMNs, so there will be situations where multiple PLMNs correspond to the same group of APNs.
- the terminal can read the International Mobile Subscriber Identification Number (abbreviation: IMSI) from the specified file, and pass the IMSI pre-
- IMSI International Mobile Subscriber Identification Number
- Several people read the operator PLMN, that is, the home PLMN, and then find the corresponding APN according to the list preset in the terminal, and select the APN to ensure that the user uses the connection network and uses the data service.
- the embodiments of the present application provide an APN matching method, terminal, and storage medium, which are used to solve the problem that when an operator adds a new PLMN in the prior art, the terminal is used to store the operator’s PLMN and the corresponding APN information of the operator’s PLMN. When the newly added PLMN is not stored in the relationship list, it is difficult to match the APN.
- an APN matching method includes:
- the PLMN in the second list is used to perform APN matching in the first list, and the PLMN in the second list is a registered PLMN.
- the PLMN network registration is performed on the terminal, and after the registration is successful, the method further includes:
- the acquiring home public land mobile network HPLMN includes:
- using the PLMN in the second list to perform APN matching in the first list includes:
- the registered PLMN in the second list is used to perform APN matching in the first list.
- the method further includes:
- the terminal uses the registered PLMN in the second list and does not match the corresponding APN in the first list, it uses the equivalent home public land mobile network EHPLMN to perform APN matching in the first list.
- the using the PLMN in the second list to perform APN matching in the first list includes:
- an embodiment of the present application provides a terminal, including:
- the acquisition module is used to acquire the home public land mobile network HPLMN;
- the first matching module is configured to perform PLMN network registration. After the registration is successful, use the HPLMN to perform APN matching in a first list, and the first list stores at least one correspondence between PLMN and APN;
- the second matching module is configured to use the PLMN in the second list to perform APN matching in the first list when the APN corresponding to the HPLMN is not matched in the first list.
- the PLMN is a registered PLMN.
- the first matching module includes:
- the first judging unit is used to judge whether it is currently in a roaming state
- the second judging unit is used for judging whether the currently registered PLMN is already stored in the second list if it is not currently in the roaming state;
- the storage unit is configured to store the currently registered PLMN in the second list when the currently registered PLMN is not stored in the second list.
- an embodiment of the present application provides a storage medium, the storage medium includes a stored program, wherein the device where the storage medium is located is controlled to execute the above method when the program is running.
- an embodiment of the present application provides a terminal, including a memory and a processor, the memory is used to store information including program instructions, the processor is used to control the execution of the program instructions, and the program instructions are executed by the processor.
- the above method is implemented when loading and executing.
- the APN matching method when the APN matched by the HPLMN is empty (that is, the corresponding APN is not matched), the APN matching is performed using the PLMN that has been successfully registered in the second list.
- the list used to store the relationship between the operator PLMN and the corresponding APN information of the operator PLMN in the terminal does not store the newly added PLMN or when the terminal is abnormal
- the success rate of APN matching is at the same time, and it can adapt to 5G, 4G, 3G and 2G at the same time, with strong reliability.
- Fig. 1 is an interaction flow chart of an APN matching method provided in the prior art
- FIG. 2 is an interaction flowchart of another APN matching method provided in the prior art
- FIG. 3 is a flowchart of an APN matching method provided by an embodiment of this application.
- FIG. 4 is a flowchart of an APN matching method provided by an embodiment of this application.
- FIG. 5 is a structural block diagram of a terminal provided by an embodiment of the present application.
- FIG. 6 is a schematic block diagram of a terminal provided by an embodiment of the application.
- Solution 1 Use EHPLMN (Equivalent Home Public Land Mobile Network, equivalent home PLMN) for APN matching.
- EHPLMN Equivalent Home Public Land Mobile Network, equivalent home PLMN
- EHPLMN is a local PLMN with the same status (equivalent) as the PLMN currently selected by the terminal.
- the EHPLMN is stored in the Universal Subscriber Identity Module (abbreviation: USIM) card.
- USIM Universal Subscriber Identity Module
- the corresponding PLMN of China Mobile HPLMN is 46000
- EHPLMN can have: 46002, 46007, etc.
- Solution 2 Use 4G (4rd Generation, the 4th generation mobile communication technology) APN allocated by the network during network registration (Attach);
- the network will assign the default APN to be carried in the registration acceptance request. If the terminal fails to match the APN using HPLMN, the terminal can use 4G network allocation The default bearer APN for PDP context activation.
- the APN allocated by the network during Attach using the 4G network has the following shortcomings:
- the APN allocated by the network during Attach may be the APN of IMS, and the terminal cannot connect to the network through this APN;
- the APN allocated by the network during Attach may not carry DNS (domain name system, domain name system) information, and the terminal cannot connect to the network through the APN;
- the embodiments of the present application provide an APN matching method.
- the core idea of the method is: when the APN matched by HPLMN is empty (that is, the corresponding APN is not matched), use the APN that has been registered before this The successful PLMN matches the APN.
- the list used to store the relationship between the operator PLMN and the corresponding APN information of the operator PLMN in the terminal does not store the newly added PLMN or when the terminal is abnormal
- the probability of successful APN matching at the time and it can adapt to 5G, 4G, 3G and 2G at the same time, with strong reliability.
- FIG. 3 shows a flowchart of an APN matching method provided by an embodiment of the present application.
- An APN matching method applied to a terminal including:
- Step S01 The terminal obtains the home public land mobile network HPLMN;
- Step S02 The terminal performs PLMN network registration. After the registration is successful, it uses HPLMN to perform APN matching in the first list, and the first list stores at least one correspondence between PLMN and APN;
- Step S03 If the APN corresponding to the HPLMN is not matched in the first list, the terminal uses the PLMN in the second list to perform APN matching in the first list, and the PLMN in the second list is a registered PLMN.
- the embodiment of the application provides an APN matching method.
- the APN matched by the HPLMN is empty (that is, the corresponding APN is not matched)
- the PLMN in the second list that has been successfully registered in the past is used for APN matching.
- the success rate of APN matching and can simultaneously adapt to 5G, 4G, 3G and 2G, etc., with strong reliability.
- step S01 Obtain the home public land mobile network HPLMN;
- the terminal may be a wireless terminal.
- the wireless terminal may be a device that only provides voice and/or data connectivity to the user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem.
- Wireless terminals can communicate with one or more core networks via RAN (Radio Access Network).
- the wireless terminals can be mobile terminals, such as mobile phones (or "cellular" phones) and computers with mobile terminals. For example, they can be portable, pocket-sized, handheld, computer-built or vehicle-mounted mobile devices that exchange language and/or data with the wireless access network.
- Wireless terminals can also be called systems, subscriber units, subscriber stations, mobile stations, mobile stations, remote stations, and access points.
- Remote terminal Remote Terminal
- Access Terminal Access Terminal
- User Terminal User Agent
- User Equipment User Agent
- the home public land mobile network HPLMN is the public land mobile network PLMN to which the terminal user belongs, that is to say, the mobile country code MCC and mobile network code MNC contained in the IMSI on the terminal USIM card are consistent with the MCC and MNC on HPLMN. For a certain user, there is only one PLMN to which it belongs.
- the process of acquiring the home public land mobile network HPLMN includes:
- the AP application processor, application processor
- the modem communicates with the USIM card
- the modem reads the IMSI from the IMSI file of the USIM card.
- the home public land mobile network HPLMN is parsed from the IMSI, and the home public land mobile network HPLMN is returned to an AP (application processor), where HPLMN is the first five digits of the IMSI.
- the terminal is preset with a list for storing the relationship between the operator PLMN and the APN information corresponding to the operator PLMN, that is, the first list.
- the first list is preset in the terminal when the terminal leaves the factory, and the first list includes the relationship between multiple operator PLMNs and APNs corresponding to the multiple operator PLMNs.
- the new operator PLMN may not be able to match the corresponding APN.
- step S02 the terminal performs PLMN network registration, and after the registration is successful, uses HPLMN to perform APN matching in the first list, and the first list stores at least one correspondence between PLMN and APN;
- the PLMN is a network established and operated by the government or an operator approved by it to provide land mobile communication services to the public. This network must be interconnected with PSTN (Public Switched Telephone Network, Public Switched Telephone Network) to form an entire region or country-scale communication network.
- PSTN Public Switched Telephone Network, Public Switched Telephone Network
- MCC Mobile Country Code
- MNC Mobile Network Code, mobile network number
- the process of terminal network registration is roughly as follows: the terminal selects at least one PLMN, and then uses one of the selected at least one PLMN to perform network registration through the access network device and the core network device corresponding to the selected PLMN.
- the specific process of terminal network registration includes:
- Step S021 The terminal receives the system information sent by the access network device.
- the system information includes the PLMN identifier.
- the number of PLMN identifiers is multiple.
- Step S022 The terminal sends a registration request to the access network device.
- the registration request includes information for the terminal to request registration from at least one PLMN (usually including one or two PLMNs, including one PLMN as an example below) and the IMSI identifier of the terminal;
- Step S023 The access network device obtains the registration request information corresponding to a PLMN included in the registration request according to the registration request, and forwards the registration request to the corresponding core network device.
- each PLMN identifier corresponds to one PLMN
- each PLMN corresponds to a core network device
- each PLMN identifier also corresponds to a registration request message
- a core network device can only communicate with the PLMN corresponding to the core network device.
- Step S024 After obtaining the PLMN identity and the terminal IMSI identity, the core network device requests authentication from the HLR (Home Location Register), and authenticates the terminal according to the user subscription data issued by the HLR, and the core network device authenticates the terminal Upload the current location information to HLR. After the authentication is passed, the core network device will send a registration acceptance message to the access network device, and the access network device will return the registration acceptance information to the terminal, and the PLMN network registration is successful.
- HLR Home Location Register
- the backbone network of the operator is divided into three layers: the core layer, the convergence layer, and the access layer.
- the network from the access layer to the terminal is the access network.
- the access network can be GPRS (General Packet Radio Service, general packet radio service technology), GSM (Global System For Mobile Communication, global mobile communication), 3G, etc.
- the core layer is to realize the optimized transmission function between the backbone networks.
- the core network is the network that provides terminal connections, manages the terminals, and completes the bearing of services on the core layer, namely PLMN. Among them, the core network provides the bearer network to the external network. interface.
- the access network equipment may be an eNB (evolved Node B, evolved base station), an RNC (Radio Network Controller, radio network controller), or a BSC (Base Station Controller, base station controller).
- the core network equipment may be MME (Mobility Management Entity), SGSN (Serving GPRS Support Node, Serving GPRS Support Node), or MSC (Mobile Switching Center, mobile switching center).
- the access network equipment is RNC, and the core network equipment is SGSN; in 4G (4th Generation, fourth-generation mobile communication technology) In ), the access network equipment is the eNB, and the core network equipment is the MME; in 2G (2rd Generation), the access network equipment is the BSC, and the core network equipment is the SGSN.
- the access network equipment is RNC (3G)/BSC (2G), and the core network equipment is MSC.
- HPLMN After the PLMN is successfully registered, using HPLMN to perform APN matching in the first list is specifically using HPLMN to perform identification matching in the first list. If the matching field is the same as the HPLMN identification, obtain the APN corresponding to the same field as the HPLMN identification to Complete APN matching.
- the first list can be stored in the database of the terminal or in the configuration file.
- the APN matching method further includes:
- the currently registered PLMN is obtained by analyzing the registration acceptance information returned by the terminal from the access network device.
- the second list is used to store PLMNs that are currently successfully registered and/or successfully registered in history and belong to the same operator (ie, non-roaming) with HPLMN, therefore
- the above-mentioned registered PLMN may be a non-roaming PLMN that is currently registered successfully, or a non-roaming PLMN that has been successfully registered in history.
- determining whether the terminal is currently in a roaming state specifically includes: determining whether the HPLMN and the currently registered PLMN belong to the same operator; if not, determining that the terminal is of course in a roaming state; if so, determining that the current terminal is not in a roaming state.
- China Mobile has 3 PLMNs "46000, 46002, 46007".
- HPLMN is 46000 and the registered network PLMN is 46002, although HPLMN is different from the registered network PLMN, they belong to The same operator China Mobile (China Mobile), therefore, is not in a roaming state.
- step S03 if the APN corresponding to the HPLMN is not matched in the first list, the terminal uses the PLMN in the second list to perform APN matching in the first list, and the PLMN in the second list is a registered PLMN.
- the terminal traverses the second list.
- the traversal is ended.
- the next PLMN in the second list is selected for matching until the APN or all of the second list are matched. PLMN is not matched to APN.
- the terminal may traverse the second list according to the time sequence of saving the PLMNs in the second list or traverse according to the numerical value of the PLMN, etc., which is not limited in the embodiment of the present application.
- the PLMN value in the second list can be traversed from small to large (when the PLMN is a value).
- China Mobile has 3 PLMNs "46000, 46002, 46007", and the order of construction of the 3 PLMNs is: 46000, 46002, 46007.
- the second list of PLMNs is traversed from morning to night in the order of network construction PLMN can increase the speed of APN matching successfully.
- the terminal before or after the terminal uses the PLMN in the second list to perform APN matching in the first list, it can also use the equivalent home public land mobile network EHPLMN in the first list. Perform APN matching in.
- the equivalent home public land mobile network EHPLMN is used to perform APN matching in the first list.
- the specific method may be as follows: If the APN corresponding to HPLMN is not matched in the list, before the terminal uses the PLMN in the second list to perform APN matching in the first list, first use the equivalent home public land mobile network EHPLMN to perform APN matching in the first list; If using EHPLMN does not match the APN corresponding to EHPLMN in the first list, then use the PLMN in the second list to perform APN matching in the first list.
- the equivalent home public land mobile network EHPLMN is used to perform APN matching in the first list.
- the specific method may also be: first use, etc.
- the effective home public land mobile network EHPLMN performs APN matching in the first list. If the equivalent home public land mobile network EHPLMN does not match the APN corresponding to EHPLMN in the first list, then use HPLMN to perform APN matching in the first list , If the APN corresponding to HPLMN is not matched in the first list, then the PLMN in the second list is used to perform APN matching in the first list.
- the equivalent home public land mobile network EHPLMN is used to perform APN matching in the first list, specifically: the terminal uses the second The PLMN in the list performs APN matching in the first list. If the corresponding APN is not matched, the equivalent home public land mobile network EHPLMN is used to perform APN matching in the first list.
- the equivalent home public land mobile network EHPLMN to perform APN matching in the first list before or after the terminal uses the PLMN in the second list to perform APN matching in the first list, the success of APN matching can be further improved
- the operator’s APN is obtained by querying a PLMN that has been successfully registered and a known EHPLMN, and through the above The APN establishes a network connection, which greatly avoids the situation that the terminal cannot use the APN to establish a network connection caused by the expansion of the operator's PLMN.
- the terminal After matching the APN, the terminal initiates a PDP context activation request to the network side.
- the PDP context activation request carries information such as the matched APN and quality of service.
- the terminal receives the request to accept the activation of the PDP context returned by the network side Complete the PDP context activation process.
- FIG. 4 is an interaction flowchart of an APN matching method provided by an embodiment of the application.
- the terminal includes an AP (Application Processor) and a modem (Modem).
- the application processor interacts with the network through the modem.
- the interaction process includes:
- the application processor initiates an HPLMN acquisition request to the Modem
- the modem reads the IMSI from the IMSI file of the USIM card, and parses the IMSI to obtain the home public land mobile network HPLMN, returns the HPLMN to the application processor, and the application processor saves the HPLMN in the terminal;
- the modem initiates a registration request to the network side (including access layer equipment and core layer equipment);
- the network side returns a registration acceptance request to the modem, and the registration acceptance request carries the registered PLMN.
- the application processor initiates a request to the modem to obtain the currently registered PLMN;
- the modem returns the currently registered PLMN to the application processor
- the application processor judges whether it is currently in a roaming state, and if not, saves the currently registered PLMN to the PLMN list (PLMN List, that is, the second list above);
- HPLMN When the user needs to go online, use HPLMN to match the list of the corresponding relationship between PLMN and APN in the database (that is, the first list above);
- the first list in the terminal presets the corresponding relationship between PLMN1 (46021) and APN1 and the corresponding relationship between PLMN2 (46022) and APN2.
- 46020, 46021 And 46022 are EPLMN (Equivalent Public Land Mobile Network, equivalent PLMN).
- PLMN list includes PLMN1 and PLMN2
- the PDP context activation request sent by the terminal to the network side will include PLMN1 or PLMN2.
- the embodiment of the present application provides an APN matching method.
- the APN matched by the HPLMN is empty (that is, the corresponding APN is not matched)
- the PLMN that has been successfully registered in the second list is used for APN matching.
- the list used to store the relationship between the operator PLMN and the corresponding APN information of the operator PLMN in the terminal does not store the newly added PLMN or when the terminal is abnormal
- the probability of successful APN matching at the time and can adapt to 5G, 4G, 3G, and 2G at the same time, with strong reliability.
- FIG. 5 is a structural block diagram of a terminal provided in an embodiment of the present application.
- An embodiment of the present application also provides a terminal 100, including:
- the obtaining module 11 is used to obtain the home public land mobile network HPLMN;
- the first matching module 12 is configured to perform PLMN network registration. After the registration is successful, use HPLMN to perform APN matching in the first list, and the first list stores at least one correspondence between PLMN and APN; and
- the second matching module 13 is configured to use the PLMN in the second list to perform APN matching in the first list when the APN corresponding to HPLMN is not matched in the first list, and the second list stores at least one successfully registered PLMN.
- the first matching module 12 includes:
- the first judging unit is used to judge whether it is currently in a roaming state
- the second judging unit is used for judging whether the currently registered PLMN is already stored in the second list if it is not currently in the roaming state;
- the storage unit is configured to store the currently registered PLMN in the second list when the currently registered PLMN is not stored in the second list.
- the obtaining module 11 is specifically configured to perform the following steps: read the IMSI from the USIM card, parse the IMSI, and obtain HPLMN.
- the second matching module 13 includes:
- the first matching unit is configured to use the equivalent home public land mobile network EHPLMN to perform APN matching in the first list when the APN corresponding to the HPLMN is not matched in the first list;
- the second matching unit is configured to use the registered PLMN in the second list to perform APN matching in the first list when the APN corresponding to the EHPLMN is not matched in the first list using EHPLMN.
- the terminal 100 further includes:
- the third matching module is used to perform APN matching in the first list using the equivalent home public land mobile network EHPLMN when the terminal uses the registered PLMN in the second list and does not match the corresponding APN in the first list.
- the second matching module 12 is specifically configured to perform the following steps: matching with the first list according to the PLMN values in the second list from small to large, until the corresponding APN is matched, ending the matching.
- the embodiment of the present application also provides a storage medium, the storage medium includes a stored program, wherein the device where the storage medium is located is controlled to execute the rule matching method in any embodiment of the present application when the program is running.
- the storage medium includes a stored program, wherein the device where the storage medium is located is controlled to execute the rule matching method in any embodiment of the present application when the program is running.
- an embodiment of the present application provides a terminal 50.
- the terminal 50 of this embodiment includes a processor 51, a memory 52, and a program 53 stored in the memory 52 and running on the processor 51.
- the program 53 is executed by the processor 51, the APN matching method in the embodiment is implemented. To avoid repetition, it will not be repeated here.
- the terminal 50 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
- the terminal 50 may include, but is not limited to, a processor 51 and a memory 52.
- FIG. 6 is only an example of the terminal 50 and does not constitute a limitation on the terminal 50. It may include more or less components than shown, or a combination of certain components, or different components, such as Electronic devices may also include input and output devices, network access devices, buses, and so on.
- the so-called processor 51 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
- the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
- the memory 52 may be an internal storage unit of the terminal 50, such as a hard disk or memory of the terminal 50.
- the memory 52 may also be an external storage device of the terminal 50, such as a plug-in hard disk equipped on the terminal 50, a smart memory card (Smart Media Card, SMC), a Secure Digital (SD) card, and a flash card (Flash Card). Wait.
- the memory 52 may also include both an internal storage unit of the terminal 50 and an external storage device.
- the memory 52 is used to store computer programs and other programs and data required by the electronic device.
- the memory 52 can also be used to temporarily store data that has been output or will be output.
- the disclosed system, device, and method may be implemented in other ways.
- the device embodiments described above are merely illustrative.
- the division of units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.
- the above-mentioned integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium.
- the above-mentioned software functional unit is stored in a storage medium, including if the instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (Processor) execute the method of each embodiment of the application step.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请实施例涉及一种APN匹配方法、终端及存储介质,APN匹配方法包括:获取归属公共陆地移动网络HPLMN;进行PLMN网络注册,注册成功后,使用HPLMN在第一列表中进行APN匹配,第一列表存储有至少一个PLMN与APN的对应关系;如果第一列表中没有匹配到与HPLMN对应的APN,使用第二列表中的PLMN在第一列表中进行APN匹配,第二列表中的PLMN为已注册的PLMN,上述方法能够提高当运营商增加新的PLMN时,终端中的用于存储运营商PLMN与APN之间对应关系的列表中没有存储新增的PLMN时或者当终端出现异常时,匹配APN的成功率。
Description
本申请要求于2019年10月31日提交中国专利局、申请号为“201911055000.0”、申请名称为“APN匹配方法、终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及通信技术领域,尤其涉及一种APN匹配方法、终端及存储介质。
APN(Access Point Name,接入点名称)是移动网络数据业务的基本配置参数之一,不同APN标识了终端访问网络使用数据业务的方式。
现有的通过APN建立网络连接的方法,通常先对APN进行获取,获取后使用与运营商对应的APN进行上网。现有的APN匹配方法,通常在终端中预置国内或者全球范围内的所有运营商的公共陆地移动网络(Public Land Mobile Network,缩写:PLMN)和APN之间的对应关系。每个运营商通常会有多个PLMN,因此会出现多个PLMN对应同一组APN的情况。在用户将全球用户识别卡(Universal Subscriber Identity Module,缩写:USIM)放入终端后,终端可以从指定文件中读取国际移动用户识别码(International Mobile Subscriber Identification Number,缩写:IMSI),通过IMSI前几位读取运营商PLMN,即归属PLMN,再根据终端中预置的列表查找到对应的APN,并选择APN,保证用户使用连接网络并使用数据业务。
但是,随着用户数量的增加,如果原有PLMN不足以容纳,运营商很可能增加新的PLMN,由于终端中预置的列表不会随之更新,就会出现在预置APN列表中难以匹配到对应PLMN的情况,那么终端将难以使用APN建立网络连接。
申请内容
本申请实施例提供一种APN匹配方法、终端及存储介质,用于解决现有技术中当运营商增加新的PLMN时,终端中用于存储运营商PLMN与运营商PLMN对应的APN信息之间关系的列表中没有存储新增的PLMN时,难以匹配到APN的问题。
第一方面,本申请实施例一种APN匹配方法,包括:
获取归属公共陆地移动网络HPLMN;
进行PLMN网络注册,注册成功后,使用所述HPLMN在第一列表中进行APN匹配,所述第一列表存储有至少一个PLMN与APN的对应关系;
如果所述第一列表中没有匹配到与所述HPLMN对应的APN,使用第二列表中的PLMN在所述第一列表中进行APN匹配,所述第二列表中的PLMN为已注册的PLMN。
可选地,所述在所述终端进行PLMN网络注册,注册成功后,所述方法还包括:
判断当前是否为漫游状态;
若当前不为漫游状态,判断第二列表中是否已经存储有当前注册的PLMN;
若所述第二列表中没有存储当前注册的PLMN,将所述当前注册的PLMN存储于所述第二列表中。
可选地,所述获取归属公共陆地移动网络HPLMN,包括:
从USIM卡中读取IMSI,解析所述IMSI,得到所述HPLMN。
可选地,所述如果所述第一列表中没有匹配到与所述HPLMN对应的APN,使用第二列表中的PLMN在所述第一列表中进行APN匹配,包括:
如果在所述第一列表中没有匹配到与所述HPLMN对应的APN,则使用等效归属公共陆地移动网络EHPLMN在所述第一列表中进行APN匹配;
如果使用EHPLMN在所述第一列表中没有匹配到与所述EHPLMN对应的APN,则使用所述第二列表中的已注册的PLMN在所述第一列表中进行APN匹配。
可选地,所述方法还包括:
如果终端使用第二列表中的已注册的PLMN在所述第一列表中没有匹配到对应的APN,则使用等效归属公共陆地移动网络EHPLMN在所述第一列表中进行APN匹配。
可选地,所述使用第二列表中的PLMN在所述第一列表中进行APN匹配,包括:
按照所述第二列表中的PLMN的数值从小到大依次与所述第一列表进行匹配,直到匹配到对应的APN时,结束匹配。
第二方面,本申请实施例提供了一种终端,包括:
获取模块,用于获取归属公共陆地移动网络HPLMN;
第一匹配模块,用于进行PLMN网络注册,注册成功后,使用所述HPLMN在第一列表中进行APN匹配,所述第一列表存储有至少一个PLMN与APN的对应关系;及
第二匹配模块,用于当所述第一列表中没有匹配到与所述HPLMN对应的APN时,使用第二列表中的PLMN在所述第一列表中进行APN匹配,所述第二列表中的PLMN为已注册的PLMN。
可选地,所述第一匹配模块包括:
第一判断单元,用于判断当前是否为漫游状态;
第二判断单元,用于若当前不为漫游状态时,判断第二列表中是否已经存储有当前注册的PLMN;及
存储单元,用于当所述第二列表中没有存储当前注册的PLMN时,将所述当前注册的PLMN存储于所述第二列表中。
第三方面,本申请实施例提供了一种存储介质,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在设备执行上述方法。
第四方面,本申请实施例提供了一种终端,包括存储器和处理器,所述存储器用于存储包括程序指令的信息,所述处理器用于控制程序指令的执行,所述程序指令被处理器加载并执行时实现上述方法。
可以理解,本申请实施例提供的APN匹配方法,当HPLMN所匹配到的APN为空(即没有匹配到对应的APN)时,使用第二列表中已成功注册过的PLMN进行APN匹 配。通过上述方法,极大的增加当运营商增加新的PLMN时,终端中用于存储运营商PLMN与运营商PLMN对应的APN信息之间关系的列表中没有存储新增的PLMN或者当终端出现异常时APN匹配的成功率,且能同时适应5G、4G、3G及2G等,可靠性强。
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。
图1为现有技术中提供的一种APN匹配方法的交互流程图;
图2为现有技术中提供的又一种APN匹配方法的交互流程图;
图3为本申请实施例提供的一种APN匹配方法的流程框图;
图4为本申请实施例提供的一种APN匹配方法的流程框图;
图5本申请实施例提供的一种终端的结构框图;
图6为本申请实施例提供的一种终端的示意性框图。
为了更好的理解本申请的技术方案,下面结合附图对本申请实施例进行详细描述。
应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。
在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其它含义。
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
针对预置APN列表中找不到对应PLMN的情况,现有技术中提供了以下方案:
方案一:使用EHPLMN(Equivalent Home Public Land Mobile Network,等效的归属PLMN)进行APN匹配。
具体地,EHPLMN为与终端当前所选择的PLMN处于同等地位(等效)的本地PLMN,EHPLMN存储于全球用户识别(Universal Subscriber Identity Module,缩写:USIM)卡中,举例来说,中国移动对应的HPLMN是46000,EHPLMN可以有:46002,46007等。
如附图1所示,进行网络注册(Attach)后,当用户需要上网时,需要先进行PDP(Packet Data Protocol)上下文激活,如果使用HPLMN匹配不到对应的APN时,则读取USIM卡中的EHPLMN,使用EHPLMN进行APN的匹配。
针对方案一,如果HPLMN没有匹配到对应的APN,则USIM卡中需要有EHPLMN,而且EHPLMN的匹配必须要准确,否则APN的匹配就会出错,而全球的运营商非常多,难以避免一定数量的运营商的卡没有写入EHPLMN或者一定数量的卡EHPLMN不准确。
方案二:使用4G(4rd Generation,第4代移动通信技术)网络注册(Attach)时网络分配的APN;
具体地,如附图2所示,4G在注册(Attach)时,如果终端未上报APN,网络会分配默认APN承载于注册接受请求中,若终端使用HPLMN匹配APN失败,终端可使用4G网络分配的默认承载的APN进行PDP上下文激活。针对方案二:使用4G网络在Attach时网络分配的APN有以下几个缺点:
(1)Attach时网络分配的APN可能是IMS的APN,终端无法通过该APN连接网络;
(2)Attach时网络分配的APN中可能不会携带DNS(domain name system,域名系统)信息,终端无法通过该APN连接网络;
(3)无法解决5G(5th generation mobile networks,第5代移动通信技术)、3G(3rd Generation,第3代移动通信技术)及2G(2rd Generation,第2代移动通信技术)等情况下,APN为空的问题。
综上所示,本申请实施例提供了一种APN匹配方法,该方法的核心思想为:当HPLMN所匹配到的APN为空(即没有匹配到对应的APN)时,使用在此之前已经注册成功的PLMN进行APN的匹配。通过上述方法,极大的增加当运营商增加新的PLMN时,终端中用于存储运营商PLMN与运营商PLMN对应的APN信息之间关系的列表中没有存储新增的PLMN或者当终端出现异常时APN匹配成功的概率,且能同时适应5G、4G、3G及2G等,可靠性强。
下面结合附图本申请实施例提供的一种APN匹配方法进行进一步说明。
请参见附图3,附图3示出了本申请实施例提供的一种APN匹配方法的流程图。
一种APN匹配方法,应用于终端,包括:
步骤S01:终端获取归属公共陆地移动网络HPLMN;
步骤S02:终端进行PLMN网络注册,注册成功后,使用HPLMN在第一列表中进行APN匹配,第一列表存储有至少一个PLMN与APN的对应关系;
步骤S03:如果在第一列表中没有匹配到与HPLMN对应的APN,终端使用第二列表中的PLMN在第一列表中进行APN匹配,第二列表中的PLMN为已注册的PLMN。
可以理解,本申请实施例提供了一种APN匹配方法,当HPLMN所匹配到的APN为空(即没有匹配到对应的APN)时,使用第二列表中过去已成功注册过的PLMN进行APN匹配。通过上述方法,极大的增加当运营商增加新的PLMN时,终端中用于存储运营商PLMN与运营商PLMN对应的APN信息之间关系的列表中没有存储新增的PLMN或者当终端出现异常时,APN匹配的成功率,且能同时适应5G、4G、3G及2G等,可靠性强。
下面对本申请实施例提供的APN匹配方法进行更为具体的介绍。
针对步骤S01:获取归属公共陆地移动网络HPLMN;
具体地,终端可以是无线终端,无线终端可以是只向用户提供语音和/或数据连通性的设备,具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。无线终端可以经RAN(Radio Access Network,无线接入网)与一个或多个核心网进行通信,无线终端可以是移动终端,如移动电话(或称为“蜂窝”电话)和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语言和/或数据。例如,PCS(Personal Communication Service,个人通信业务)电话、无绳电话、会话发起协议(SIP)话机、WLL(Wireless Local Loop,无线本地环路)站、PDA(Personal Digital Assistant,个人数字助理)等设备。无线终端也可以称为系统、订户单元(Subscriber Unit)、订户站(Subscriber Station),移动站(Mobile Station)、移动台(Mobile)、远程站(Remote Station)、接入点(Access Point)、远程终端(Remote Terminal)、接入终端(Access Terminal)、用户终端(User Terminal)、用户代理(User Agent)或用户设备。
归属公共陆地移动网络HPLMN为终端用户归属的公共陆地移动网络PLMN,也就是说,终端USIM卡上的IMSI中包含的移动国家码MCC和移动网络码MNC与HPLMN上的MCC和MNC是一致的,对于某一用户来说,其归属的PLMN只有一个。
获取归属公共陆地移动网络HPLMN的过程包括:
当终端插入USIM卡时,终端的AP(application processor,应用处理器)向调制解调器(Modem)发起HPLMN获取请求,调制解调器与USIM卡之间进行通信交互,调制解调器从USIM卡的IMSI文件中读取IMSI,并从IMSI中解析得到归属公共陆地移动网络HPLMN,将归属公共陆地移动网络HPLMN返回给AP(application processor,应用处理器),其中,HPLMN为IMSI的前五位。
终端中预先设置有用于存储运营商PLMN与的运营商PLMN对应的APN信息之间关系的列表,即第一列表。第一列表在终端出厂时预置在终端中,第一列表包括多个运营商PLMN与多个运营商PLMN对应的APN之间的关系。当出现新的运营商PLMN时,由于终端在出厂之前已经设置好第一列表,因此,新的运营商PLMN可能无法匹配到对应的APN。
针对步骤S02:终端进行PLMN网络注册,注册成功后,使用HPLMN在第一列表中进行APN匹配,第一列表存储有至少一个PLMN与APN的对应关系;
具体地,终端开机时或者脱网后需要重新联网时,需要重新进行PLMN网络注册,PLMN由政府或它所批准的经营者,为公众提供陆地移动通信业务目的而建立和经营的网络。该网路必须与PSTN(Public Switched Telephone Network,公众交换电话网)互连,形成整个地区或国家规模的通信网。其中,PLMN包括MCC(Mobile Country Code,移动国家码)和MNC(Mobile Network Code,移动网络号)。例如China Mobile(中国移动)的PLMN:46000,其中,MCC为460,MNC为00。
终端网络注册的过程大致为:终端选择至少一个PLMN,再通过接入网设备和与选择的PLMN对应的核心网设备,在选择的至少一个PLMN中使用一个进行网络注册。
终端网络注册具体过程包括:
步骤S021:终端接收接入网设备发送的系统信息,系统信息中包括PLMN标识,在本申请一个或者多个实施例中,PLMN标识的数量为多个。
步骤S022:终端向接入网设备发送注册请求,注册请求包括终端向至少一个PLMN(通常包括一个或者两个PLMN,下面以包括一个PLMN进行举例说明)请求注册的信息以及终端的IMSI标识;
步骤S023:接入网设备根据注册请求,获取注册请求中包括的一个PLMN对应的请求注册的信息,并转发该注册请求给对应的核心网设备,需要知道的是,每个PLMN的标识对应一个PLMN,每个PLMN对应一个核心网设备,且每个PLMN的标识还对应一个注册请求消息,一个核心网设备只能与该核心网设备对应的PLMN进行通信。
步骤S024:核心网设备得到PLMN标识以及终端IMSI标识后,向HLR(HomeLocation Register,归属位置寄存器)中请求进行认证,并根据HLR下达的用户签约数据对终端进行鉴权,同时核心网设备将终端的当前位置信息上传HLR。鉴权通过后,核心网设备就会向接入网设备发送注册接受消息,接入网设备将注册接受信息返回给终端,进而PLMN网络注册成功。
更具体的,运营商的主干网络分为三层:核心层、汇聚层、接入层,从接入层到终端的网络,就是接入网。接入网可以为GPRS(General Packet Radio Service,通用分组无线服务技术)、GSM(Global System For Mobile Communication,全球移动通信)、3G等。核心层为实现主干网络之间的优化传输功能,核心网是核心层上提供终端连接、对终端的管理以及对业务完成承载的网络,即PLMN,其中,核心网为承载网络提供到外部网络的接口。
其中,接入网设备可以为eNB(evolved Node B,演进型基站)、RNC(RadioNetwork Controller,无线网络控制器)或BSC(Base Station Controller,基站控制器)。核心网设备可以为MME(Mobility Management Entity,移动性管理实体)、SGSN(Serving GPRS Support Node,服务GPRS支撑节点)或MSC(Mobile Switching Center,移动交换中心)。
更具体的,以移动通信系统的PS(Packet Switch,分组交换)域为例,在3G中,接入网设备为RNC,核心网设备为SGSN;在4G(4th Generation,第四代移动通信技术)中,接入网设备为eNB,核心网设备为MME;在2G(2rd Generation,第二代移动通信技术)中,接入网设备为BSC、核心网设备为SGSN。以移动通信系统的CS(Circuit Switch,电路交换)域为例,在3G/2G中,接入网设备为RNC(3G)/BSC(2G),核心网设备为MSC。
PLMN注册成功后,使用HPLMN在第一列表中进行APN匹配具体为使用HPLMN在第一列表进行标识匹配,如果匹配上与HPLMN标识相同的字段,则获取与HPLMN标识相同的字段对应的APN,以完成APN的匹配。
第一列表可以存储于终端的数据库中,也可以存储于配置文件中。
进一步地,在终端进行PLMN网络注册,并注册成功后,APN匹配方法还包括:
判断终端当前是否为漫游状态。
如果不是漫游状态,进一步判断第二列表中是否已经存储有当前注册的PLMN,如果第二列表中未存储有当前注册的PLMN,则将当前注册的PLMN存储于第二列表中;如果第二列表中已经存储有当前注册的PLMN,则不进行将所当前注册的PLMN存储 在第二列表的操作;如果是漫游状态,则不进行将所当前注册的PLMN存储在第二列表的操作。其中,当前注册的PLMN由终端从接入网设备返回的注册接受信息中解析得到。
需要说明的是,在本申请一个或者多个实施例中,第二列表用于存储当前注册成功的和/或历史注册成功的且与HPLMN属于同一运营商(即非漫游的)的PLMN,因此,上述的已注册的PLMN可以是当前注册成功的且为非漫游的PLMN,也可以是历史注册成功的且为非漫游的PLMN。
进一步的,判断终端当前是否为漫游状态,具体包括:判断HPLMN与当前注册的PLMN是否属于同一运营商,如果否,则确定当然终端处于漫游状态,如果是,则确定当前终端不处于漫游状态。
举例来说,中国移动(China Mobile)有“46000,46002,46007”3个PLMN,当HPLMN是46000,注册上的网络PLMN是46002时,虽然HPLMN与注册上网络PLMN不相同,但是都是属于同一运营商中国移动(China Mobile),因此,不处于漫游状态。
针对步骤S03:如果第一列表中没有匹配到与HPLMN对应的APN,终端使用第二列表中的PLMN在第一列表中进行APN匹配,第二列表中的PLMN为已注册的PLMN。
具体地,终端对第二列表进行遍历,当匹配到APN时,结束遍历,当未匹配到APN时,选择第二列表中的下一个PLMN进行匹配,直到匹配到APN或者第二列表中的所有PLMN均未匹配到APN为止。
终端对第二列表进行遍历可以按照第二列表内PLMN的保存的时间顺序进行遍历或者按照PLMN的数值大小的排序进行遍历等等,本申请实施例对此不做限定。优选地,可以按照第二列表内PLMN的数值从小到大进行遍历(在PLMN为数值的情况下),通常情况下,各个运营商的PLMN建立时间越早,PLMN的数值越小,依然以中国移动(China Mobile)为例,中国移动(China Mobile)有“46000,46002,46007”3个PLMN,3个PLMN的建网顺序依次为:46000,46002,46007,因此,按照建网顺序从早到晚遍历第二列表的PLMN,PLMN建网时间越早,终端内的第一列表中保存有该PLMN对应的APN的机率越大,因此,按照建网顺序从早到晚遍历第二列表中的PLMN,可以提高APN匹配成功的速度。
可选地,在本申请的其它一些实施例中,在终端使用第二列表中的PLMN在第一列表中进行APN匹配之前或者之后,还可以使用等效归属公共陆地移动网络EHPLMN在第一列表中进行APN匹配。
可选地,在终端使用第二列表中的PLMN在第一列表中进行APN匹配之前使用等效归属公共陆地移动网络EHPLMN在第一列表中进行APN匹配的方式,具体可以为:如果在第一列表中没有匹配到与HPLMN对应的APN,则在终端使用第二列表中的PLMN在第一列表中进行APN匹配之前,先使用等效归属公共陆地移动网络EHPLMN在第一列表中进行APN匹配;如果使用EHPLMN在第一列表中没有匹配到与EHPLMN对应的APN,则再使用第二列表中的PLMN在第一列表中进行APN匹配。
可选地,在终端使用第二列表中的PLMN在第一列表中进行APN匹配之前使用等效归属公共陆地移动网络EHPLMN在第一列表中进行APN匹配的方式,具体还可以为:先使用等效归属公共陆地移动网络EHPLMN在第一列表中进行APN匹配,如果等效归 属公共陆地移动网络EHPLMN在第一列表中没有匹配到与EHPLMN对应的APN,再使用HPLMN在第一列表中进行APN匹配,如果在第一列表中没有匹配到与HPLMN对应的APN,则再使用第二列表中的PLMN在第一列表中进行APN匹配。
可选地,在终端使用第二列表中的PLMN在第一列表中进行APN匹配之前使用等效归属公共陆地移动网络EHPLMN在第一列表中进行APN匹配的方式,具体可以为:终端使用第二列表中的PLMN在第一列表中进行APN匹配,如果没有匹配到对应的APN,则再使用等效归属公共陆地移动网络EHPLMN在第一列表中进行APN匹配。
可以理解,通过在终端使用第二列表中的PLMN在第一列表中进行APN匹配之前或者之后,使用等效归属公共陆地移动网络EHPLMN在第一列表中进行APN匹配,可以进一步提高APN匹配的成功率,实现了终端预置的第一列表中不包括新增的运营商PLMN与APN对应信息时,通过查询个已注册成功过的PLMN以及已知的EHPLMN获取该运营商的APN,并且通过上述APN建立网络连接,极大可能的避免了运营商PLMN扩容后造成的终端无法使用APN建立网络连接的情况发生。
进一步地,在匹配到APN之后,终端发起向网络侧发起PDP上下文激活请求,PDP上下文激活请求中携带有匹配到的APN以及服务质量等信息,当终端接收到网络侧返回的接受激活PDP上下文请求的信息时,完成PDP上下文激活过程。
请参阅附图4,图4为本申请实施例提供的一种APN匹配方法的交互流程图。如图4所示,终端包括AP(Application Processor,应用处理器)及调制解调器(Modem),应用处理器通过调制解调器与网络端进行交互,交互过程包括:
1、USIM卡插入成功后,应用处理器向Modem发起HPLMN获取请求;
2、调制解调器从USIM卡的IMSI文件中读取IMSI,并从IMSI中解析得到归属公共陆地移动网络HPLMN,将HPLMN返回给应用处理器,应用处理器将HPLMN保存至终端内;
3、调制解调器向网络侧(包括接入层设备及核心层设备)发起注册请求;
4、网络侧返回注册接受请求给调制解调器,注册接受请求携带注册的PLMN。
5、应用处理器向调制解调器发起获取当前注册的PLMN的请求;
6、调制解调器返回当前注册的PLMN给应用处理器;
7、应用处理器判断当前是否为漫游状态,如果不是,则保存当前注册的PLMN至PLMN列表(PLMN List,即上文中的第二列表)中;
8、当用户需要上网时,使用HPLMN与数据库中的保存有PLMN与APN对应关系的列表(即上文的第一列表)进行匹配;
9、若匹配的APN为空,则遍历PLMN列表,将PLMN列表中的PLMN与数据库中的保存有PLMN与APN对应关系的列表进行匹配;
10、使用匹配到的APN向网络侧发起PDP上下文激活请求,以获取网络数据。
举例来说,假设终端的USIM卡中的HPLMN为46020,终端中的第一列表中预设有PLMN1(46021)与APN1的对应关系和PLMN2(46022)与APN2的对应关系,其中,46020、46021及46022为EPLMN(Equivalent Public Land Mobile Network,等效的 PLMN),如果PLMN列表中包括PLMN1及PLMN2,则终端发送给网络侧的PDP上下文激活请求中会包括PLMN1或者PLMN2。
可以理解,本申请实施例提供了一种APN匹配方法,当HPLMN所匹配到的APN为空(即没有匹配到对应的APN)时,使用第二列表中已成功注册过的PLMN进行APN匹配。通过上述方法,极大的增加当运营商增加新的PLMN时,终端中用于存储运营商PLMN与运营商PLMN对应的APN信息之间关系的列表中没有存储新增的PLMN或者当终端出现异常时APN匹配成功的概率,且能同时适应5G、4G、3G及2G等,可靠性强。
请参阅附图5,图5本申请实施例提供的一种终端的结构框图,本申请实施例还提供一种终端100,包括:
获取模块11,用于获取归属公共陆地移动网络HPLMN;
第一匹配模块12,用于进行PLMN网络注册,注册成功后,使用HPLMN在第一列表中进行APN匹配,第一列表存储有至少一个PLMN与APN的对应关系;及
第二匹配模块13,用于当第一列表中没有匹配到与HPLMN对应的APN时,使用第二列表中的PLMN在第一列表中进行APN匹配,第二列表中存储有至少一个已注册成功的PLMN。
可选地,第一匹配模块12包括:
第一判断单元,用于判断当前是否为漫游状态;
第二判断单元,用于若当前不为漫游状态时,判断第二列表中是否已经存储有当前注册的PLMN;及
存储单元,用于当第二列表中没有存储当前注册的PLMN时,将当前注册的PLMN存储于第二列表中。
可选地,获取模块11具体用于执行以下步骤:从USIM卡中读取IMSI,解析IMSI,得到HPLMN。
可选地,第二匹配模块13包括:
第一匹配单元,用于当在第一列表中没有匹配到与HPLMN对应的APN时,使用等效归属公共陆地移动网络EHPLMN在第一列表中进行APN匹配;及
第二匹配单元,用于当使用EHPLMN在第一列表中没有匹配到与EHPLMN对应的APN时,使用第二列表中的已注册的PLMN在第一列表中进行APN匹配。
可选地,终端100还包括:
第三匹配模块,用于当终端使用第二列表中的已注册的PLMN在第一列表中没有匹配到对应的APN时,使用等效归属公共陆地移动网络EHPLMN在第一列表中进行APN匹配。
可选地,第二匹配模块12具体用于执行以下步骤:按照第二列表中的PLMN的数值从小到大依次与第一列表进行匹配,直到匹配到对应的APN时,结束匹配。
本申请实施例还提供一种存储介质,存储介质包括存储的程序,其中,在程序运行时控制存储介质所在设备执行本申请任一实施例中的规则匹配方法,为避免重复,此处 不一一赘述。或者,该计算机程序被处理器执行时实现实施例中终端中各模块/单元的功能,为避免重复,此处不一一赘述。
请参阅附图6,本申请实施例提供了一种终端50,该实施例的终端50包括:处理器51、存储器52以及存储在存储器52中并可在处理器51上运行的程序53,该程序53被处理器51执行时实现实施例中的APN匹配方法,为避免重复,此处不一一赘述。
终端50可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。终端50可包括但不仅限于处理器51、存储器52。本领域技术人员可以理解,图6仅仅是终端50的示例,并不构成对终端50的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如电子设备还可以包括输入输出设备、网络接入设备、总线等。
所称处理器51可以是中央处理单元(Central Processing Unit,CPU),还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
存储器52可以是终端50的内部存储单元,例如终端50的硬盘或内存。存储器52也可以是终端50的外部存储设备,例如终端50上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器52还可以既包括终端50的内部存储单元也包括外部存储设备。存储器52用于存储计算机程序以及电子设备所需的其它程序和数据。存储器52还可以用于暂时地存储已经输出或者将要输出的数据。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括如果干指令用以使得一台计算 机装置(可以是个人计算机,服务器,或者网络装置等)或处理器(Processor)执行本申请各个实施例方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。
Claims (10)
- 一种APN匹配方法,其特征在于,包括:获取归属公共陆地移动网络HPLMN;进行PLMN网络注册,注册成功后,使用所述HPLMN在第一列表中进行APN匹配,所述第一列表存储有至少一个PLMN与APN的对应关系;如果所述第一列表中没有匹配到与所述HPLMN对应的APN,使用第二列表中的PLMN在所述第一列表中进行APN匹配,所述第二列表中的PLMN为已注册的PLMN。
- 根据权利要求1所述的APN匹配方法,其特征在于,所述在所述终端进行PLMN网络注册,注册成功后,所述方法还包括:判断当前是否为漫游状态;若当前不为漫游状态,判断所述第二列表中是否已经存储有当前注册的PLMN;若所述第二列表中没有存储当前注册的PLMN,将所述当前注册的PLMN存储于所述第二列表中。
- 根据权利要求1所述的APN匹配方法,其特征在于,所述获取归属公共陆地移动网络HPLMN,包括:从USIM卡中读取IMSI,解析所述IMSI,得到所述HPLMN。
- 根据权利要求1所述的APN匹配方法,其特征在于,所述如果所述第一列表中没有匹配到与所述HPLMN对应的APN,使用第二列表中的PLMN在所述第一列表中进行APN匹配,包括:如果在所述第一列表中没有匹配到与所述HPLMN对应的APN,则使用等效归属公共陆地移动网络EHPLMN在所述第一列表中进行APN匹配;如果使用EHPLMN在所述第一列表中没有匹配到与所述EHPLMN对应的APN,则使用所述第二列表中的已注册的PLMN在所述第一列表中进行APN匹配。
- 根据权利要求1所述的APN匹配方法,其特征在于,所述方法还包括:如果终端使用第二列表中的已注册的PLMN在所述第一列表中没有匹配到对应的APN,则使用等效归属公共陆地移动网络EHPLMN在所述第一列表中进行APN匹配。
- 根据权利要求1-5中的任一项所述的APN匹配方法,其特征在于,所述使用第二列表中的PLMN在所述第一列表中进行APN匹配,包括:按照所述第二列表中的PLMN的数值从小到大依次与所述第一列表进行匹配,直到匹配到对应的APN时,结束匹配。
- 一种终端,其特征在于,包括:获取模块,用于获取归属公共陆地移动网络HPLMN;第一匹配模块,用于进行PLMN网络注册,注册成功后,使用所述HPLMN在第一列表中进行APN匹配,所述第一列表存储有至少一个PLMN与APN的对应关系;及第二匹配模块,用于当所述第一列表中没有匹配到与所述HPLMN对应的APN时,使用第二列表中的PLMN在所述第一列表中进行APN匹配,所述第二列表中的PLMN为已注册的PLMN。
- 根据权利要求7所述的终端,其特征在于,所述第一匹配模块包括:第一判断单元,用于判断当前是否为漫游状态;第二判断单元,用于若当前不为漫游状态时,判断第二列表中是否已经存储有当前注册的PLMN;及存储单元,用于当所述第二列表中没有存储当前注册的PLMN时,将所述当前注册的PLMN存储于所述第二列表中。
- 一种存储介质,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在设备执行1至6任意一项所述的方法。
- 一种终端,包括存储器和处理器,所述存储器用于存储包括程序指令的信息,所述处理器用于控制程序指令的执行,其特征在于:所述程序指令被处理器加载并执行时实现权利要求1至6任意一项所述的方法。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP20880572.1A EP4021083B1 (en) | 2019-10-31 | 2020-07-23 | Apn matching method, terminal and storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911055000.0A CN112822755B (zh) | 2019-10-31 | 2019-10-31 | Apn匹配方法、终端及存储介质 |
CN201911055000.0 | 2019-10-31 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021082545A1 true WO2021082545A1 (zh) | 2021-05-06 |
Family
ID=75715577
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/103842 WO2021082545A1 (zh) | 2019-10-31 | 2020-07-23 | Apn匹配方法、终端及存储介质 |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP4021083B1 (zh) |
CN (1) | CN112822755B (zh) |
WO (1) | WO2021082545A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115811783A (zh) * | 2021-09-13 | 2023-03-17 | 广东小天才科技有限公司 | 终端设备网络注册控制方法、装置、终端设备及存储介质 |
CN114585002A (zh) * | 2022-02-23 | 2022-06-03 | 上海闻泰信息技术有限公司 | 通信处理方法、装置、终端设备和计算机可读存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101404827A (zh) * | 2008-11-20 | 2009-04-08 | 深圳华为通信技术有限公司 | 移动终端,网络服务器及移动终端发起分组业务的方法 |
CN101895966A (zh) * | 2010-07-23 | 2010-11-24 | 中兴通讯股份有限公司 | 公共陆地移动网搜网方法及装置 |
CN103428760A (zh) * | 2012-05-15 | 2013-12-04 | 北京三星通信技术研究有限公司 | 一种支持正确建立lipa业务的方法 |
US20140153402A1 (en) * | 2012-06-13 | 2014-06-05 | All Purpose Networks LLC | Efficient delivery of real-time asynchronous services over a wireless network |
CN108702628A (zh) * | 2016-01-22 | 2018-10-23 | 黑莓有限公司 | 关键任务服务的接入点名称确定 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103987024B (zh) * | 2014-05-30 | 2017-12-05 | 华为技术有限公司 | 漫游处理方法及设备 |
US9894601B2 (en) * | 2015-08-18 | 2018-02-13 | Ford Global Technologies, Llc | System and method for dynamic wireless carrier swap system |
CN105517104B (zh) * | 2015-12-09 | 2019-02-15 | 中国联合网络通信集团有限公司 | 终端通过apn建立网络连接的方法及终端 |
CN106506728B (zh) * | 2016-12-30 | 2019-10-11 | 宇龙计算机通信科技(深圳)有限公司 | 一种接入点名称配置方法及移动终端 |
CN107426718A (zh) * | 2017-08-30 | 2017-12-01 | 深圳传音通讯有限公司 | 一种移动终端及其apn更新方法 |
-
2019
- 2019-10-31 CN CN201911055000.0A patent/CN112822755B/zh active Active
-
2020
- 2020-07-23 EP EP20880572.1A patent/EP4021083B1/en active Active
- 2020-07-23 WO PCT/CN2020/103842 patent/WO2021082545A1/zh unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101404827A (zh) * | 2008-11-20 | 2009-04-08 | 深圳华为通信技术有限公司 | 移动终端,网络服务器及移动终端发起分组业务的方法 |
CN101895966A (zh) * | 2010-07-23 | 2010-11-24 | 中兴通讯股份有限公司 | 公共陆地移动网搜网方法及装置 |
CN103428760A (zh) * | 2012-05-15 | 2013-12-04 | 北京三星通信技术研究有限公司 | 一种支持正确建立lipa业务的方法 |
US20140153402A1 (en) * | 2012-06-13 | 2014-06-05 | All Purpose Networks LLC | Efficient delivery of real-time asynchronous services over a wireless network |
CN108702628A (zh) * | 2016-01-22 | 2018-10-23 | 黑莓有限公司 | 关键任务服务的接入点名称确定 |
Non-Patent Citations (2)
Title |
---|
See also references of EP4021083A4 |
SONY, DEUTSCHE TELEKOM: "Corrections and improvements of PLMN assigned Capability signaling", 3GPP DRAFT; S2-1907016 RACS CORRECTIONS AND IMPROVEMENTS OF PLMN ASSIGNED CAPABILITY SIGNALING, vol. SA WG2, 18 June 2019 (2019-06-18), Sapporo, Japan, pages 1 - 26, XP051751990 * |
Also Published As
Publication number | Publication date |
---|---|
EP4021083B1 (en) | 2024-09-04 |
EP4021083A4 (en) | 2022-10-19 |
CN112822755B (zh) | 2022-05-17 |
CN112822755A (zh) | 2021-05-18 |
EP4021083A1 (en) | 2022-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110832897B (zh) | 用于支持qos的方法和smf | |
US10681594B2 (en) | Method and device for accessing and obtaining user equipment context and user equipment identity | |
US9338689B2 (en) | Method for mobile terminal to access wireless access point and wireless access point | |
CN104871600B (zh) | 一种网络选择方法及核心网设备 | |
CN108632808B (zh) | 核心网控制面设备选择方法和装置 | |
US20180270696A1 (en) | Wireless Communications Access Method, Communications Apparatus, Wireless Terminal, and System | |
US9992760B2 (en) | Method for updating RPLMN information and user equipment | |
KR20100053691A (ko) | 사용자 고정 ip 어드레스를 어드레싱하는 것을 지원하기 위한 방법, 시스템 및 장치 | |
EP2337410A1 (en) | Mobile and system to assign mobile stations to an unlicensed mobile access network controller | |
KR20120026178A (ko) | 이동 통신 시스템에서 비계층 프로토콜을 이용한 통신 지원 방법 및 장치 | |
EP3955619B1 (en) | Access point name determination for mission critical services | |
WO2020233688A1 (zh) | 语音通信方法及其装置 | |
CN103797824B (zh) | 位置更新的方法、装置及系统 | |
WO2021082545A1 (zh) | Apn匹配方法、终端及存储介质 | |
US12010566B2 (en) | AMF based handover decision | |
CN111065139B (zh) | 一种物联网设备开机附着的方法及设备 | |
WO2017118395A1 (zh) | 接入方法、用户设备和服务器 | |
CN116074803A (zh) | 用于用户装备网络切片管理的增强 | |
CN115866712A (zh) | 网络切片分配和网络切片拒绝 | |
US10136377B1 (en) | Mobile device handoff optimization | |
CN112788740A (zh) | 建立多址连接 | |
KR101809239B1 (ko) | Apn 변경 장치 및 방법과 apn 변경을 위한 무선 단말 장치 및 이를 실행하기 위한 기록매체 | |
EP4054281A1 (en) | User equipment (ue) | |
WO2014047928A1 (zh) | 移动网络共享方法及装置 | |
EP3166362A1 (en) | Method and network element for providing a registration to a communication network for a mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20880572 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2020880572 Country of ref document: EP Effective date: 20220322 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |