WO2017152419A1 - Network attachment method and apparatus - Google Patents

Network attachment method and apparatus Download PDF

Info

Publication number
WO2017152419A1
WO2017152419A1 PCT/CN2016/076145 CN2016076145W WO2017152419A1 WO 2017152419 A1 WO2017152419 A1 WO 2017152419A1 CN 2016076145 W CN2016076145 W CN 2016076145W WO 2017152419 A1 WO2017152419 A1 WO 2017152419A1
Authority
WO
WIPO (PCT)
Prior art keywords
apn
network
configuration file
modem
terminal device
Prior art date
Application number
PCT/CN2016/076145
Other languages
French (fr)
Chinese (zh)
Inventor
陈晓娟
石帅
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2016/076145 priority Critical patent/WO2017152419A1/en
Publication of WO2017152419A1 publication Critical patent/WO2017152419A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point

Definitions

  • the embodiments of the present invention relate to the field of communications, and in particular, to a network attachment method and apparatus.
  • the network attachment is a registration process of the terminal device in the network before the actual operation of the network device.
  • the terminal device can receive data sent from the network device only after the network is successfully attached.
  • the network attach request message sent by the terminal device to the network device includes an Evolved Packet System Session Management information transfer flag (ESM flag).
  • ESM flag When the ESM flag is 1, the terminal device specifies that the network device uses the Evolved Packet System Session Management (ESM) information indicated by the terminal device to establish a default bearer for the terminal device, where the default bearer is a type of satisfaction.
  • ESM Evolved Packet System Session Management
  • the default QoS (Quality of Service) data and signaling user bearer provides the user with a permanent online transmission service.
  • the terminal device When the ESM flag is 0, the terminal device does not specify ESM information, and the network device needs to allocate the terminal device. ESM information, and use the ESM information to establish a default bearer for the terminal device.
  • the ESM information includes information such as an Access Point Name (APN) and an authentication type.
  • APN Access Point Name
  • the network operator In order to reduce the signaling interaction between the terminal device and the network device and reduce the burden on the network device, the network operator usually requires the terminal device to set the ESM flag to 1.
  • the schematic diagram of the existing network attachment method is shown in FIG. 1.
  • SIM Subscriber Identity Module
  • the network of the operator where the terminal device is located changes, and the terminal device replaces the SIM card.
  • the modem device After the first time the LTE network is started to be registered, the modem device directly initiates the network attach process after the initialization of the modem device (Modem) is completed, and notifies the application processing of the terminal device.
  • the application processor (AP) performs a series of APN database creation for the terminal device to match the APN corresponding to the current SIM card.
  • the Modem initiates the network attach process earlier than the AP is the process in which the terminal device matches the APN corresponding to the current SIM card, and the network attach request initiated by the Modem still carries the information of the APN corresponding to the previous SIM card. If the APN corresponding to the previous SIM card is the same as the APN corresponding to the current SIM card, that is, the two SIM cards belong to the same carrier, the network attachment process can be performed normally; if the APN corresponding to the previous SIM card Different from the APN corresponding to the current SIM card, that is, two SIM cards do not belong to the same carrier, which may cause network attachment failure.
  • the embodiment of the invention provides a network attachment method and device, which can improve the success rate of network attachment.
  • the embodiment of the present invention provides a network attachment method, which is applied to a terminal device, a terminal device Modem, and an AP, where the method includes:
  • the modem when the modem is initialized, the modem sends a first access point name APN request message to the AP, so that the AP obtains the configuration file of the first APN according to the first APN request message after receiving the first APN request message. And sending the configuration file of the first APN to the modem, and then, after receiving the configuration file of the first APN, the modem sends a network attach request message to the network device, where the network attach request message includes at least the configuration file of the first APN, and the network The attach request message is used to trigger the network device to establish a default bearer with the terminal device according to the configuration file of the first APN; finally, the modem receives the network attach complete message sent by the network device.
  • the Modem can send the first APN request message to the AP when the Modem is initialized, so that the AP obtains the first APN request message according to the first APN request message.
  • the configuration file of the first APN sends the configuration file of the first APN to the modem, and then the modem sends a network attach request message to the network device, where the network attach request message includes at least the first APN.
  • the configuration file enables the network device to establish a default bearer for the terminal device by using the APN corresponding to the current customer identity of the terminal device, and avoids different situations in which the APN used by the terminal device to perform network attachment and the APN matched by the AP for the terminal device are different.
  • the signaling success between the terminal device and the network device is reduced, the burden on the network device is reduced, and the success rate of the network attachment is improved.
  • the AP obtains the configuration file of the first APN according to the first APN request message, and specifically includes:
  • the AP obtains the first APN according to the first APN request message, and then acquires the configuration file of the first APN according to the first APN, where the first APN is an APN corresponding to the customer identity identification SIM card of the terminal device.
  • the AP obtains the first APN according to the first APN request message, and specifically includes:
  • the AP first obtains the network identifier of the SIM card from the SIM card, and then obtains the first corresponding to the network identifier of the SIM card in the network identifier of the SIM card and the corresponding relationship information of the APN in the AP according to the network identifier of the SIM card.
  • APN APN.
  • the network identifier of the SIM card is a combination of any one or more of a first identifier, an International Mobile Subscriber Identity (IMSI), and an Integrated Circuit Card Identification Code (ICCID), wherein the first identifier is a mobile country code MCC and a mobile network number.
  • IMSI International Mobile Subscriber Identity
  • ICCID Integrated Circuit Card Identification Code
  • the configuration file of the second APN and the second APN is stored in the AP, where the second APN is an APN of the network accessed by the terminal device before the Modem is initialized;
  • the AP obtains the configuration file of the first APN according to the first APN, and specifically includes:
  • the AP confirms that the first APN is the same as the second APN, and the first APN is the same as the second APN, indicating that the current SIM card of the terminal device belongs to the same carrier as the previous SIM card, and the AP directly obtains the second APN stored in the AP.
  • the configuration file and the configuration file of the second APN are set as the configuration file of the first APN.
  • the configuration file of the second APN and the second APN is stored in the AP, where the second APN is an APN of the network accessed by the terminal device before the Modem is initialized;
  • the AP obtains the configuration file of the first APN according to the first APN, and specifically includes:
  • the AP confirms that the first APN is different from the second APN.
  • the first APN is different from the second APN, indicating that the current SIM card of the terminal device and the previous SIM card belong to different operators, and the AP needs to generate the first APN according to the first APN. Configuration file.
  • the method further includes:
  • the modem After the modem sends a network detach request message to the network device, the modem sends a first APN deletion message to the AP, so that the AP deletes the configuration file of the first APN according to the first APN deletion message.
  • an embodiment of the present invention provides a terminal device, where the terminal device includes a modem processor Modem and an application processor AP;
  • the functions implemented by the Modem and the AP provided by the embodiments of the present invention are specifically as follows:
  • Modem configured to send a first access point name APN request message to the AP when the modem is initialized
  • the AP is configured to: after receiving the first access point name APN request message sent by the modem, obtain the configuration file of the first APN according to the first APN request message, and send the configuration file of the first APN to the Modem;
  • the Modem is further configured to: after receiving the configuration file of the first APN sent by the AP, send a network attach request message to the network device, and receive a network attach complete message sent by the network device; where the network attach request message includes at least the first APN
  • the network attachment request message is used to trigger the network device to establish a default bearer with the terminal device according to the configuration file of the first APN.
  • the AP when acquiring the configuration file of the first APN according to the first APN request message, is configured to: obtain the first APN according to the first APN request message, and obtain the configuration of the first APN according to the first APN.
  • the AP obtains the network identifier of the SIM card from the SIM card according to the first APN request message, and obtains the network identifier of the SIM card according to the network identifier of the SIM card.
  • the first APN; the AP is pre-configured with the network identifier of the SIM card and the corresponding relationship information of the APN.
  • the network identifier of the SIM card is a combination of any one or more of a first identifier, an International Mobile Subscriber Identity (IMSI), and an Integrated Circuit Card Identification Code (ICCID), wherein the first identifier is a mobile country code MCC and a mobile network number.
  • IMSI International Mobile Subscriber Identity
  • ICCID Integrated Circuit Card Identification Code
  • the AP stores a configuration file of the second APN and the second APN, where the second APN is an APN of the network accessed by the terminal device before the Modem is initialized;
  • the AP When acquiring the configuration file of the first APN according to the first APN, the AP is specifically configured to: confirm that the first APN is the same as the second APN, and obtain a configuration file of the second APN stored in the AP, and obtain the configuration file of the second APN.
  • the configuration file is set to the configuration file of the first APN.
  • the AP stores a configuration file of the second APN and the second APN, where the second APN is an APN of the network accessed by the terminal device before the Modem is initialized;
  • the AP When acquiring the configuration file of the first APN according to the first APN, the AP is specifically configured to: confirm that the first APN is different from the second APN, and generate a configuration file of the first APN according to the first APN.
  • the modem is further configured to: after receiving the network attach complete message sent by the network device, send the first APN delete message to the AP after sending the network detach request message to the network device;
  • the AP is further configured to delete the configuration file of the first APN according to the first APN deletion message after receiving the first APN deletion message sent by the modem.
  • the embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, a communication interface, and a system bus; wherein the processor may include a modem processor Modem and an application processor AP;
  • the memory, the processor and the communication interface are connected by a system bus, the memory is for storing computer instructions, and the processor is for executing computer instructions for the memory storage to cause the terminal device to perform the network attachment method of the first aspect.
  • the embodiment of the present invention provides a network attachment method and device.
  • the terminal device includes a Modem and an AP.
  • the Modem When the Modem is initialized, the Modem sends a first access point name APN request message to the AP.
  • the AP obtains the first message according to the first APN request message.
  • the device establishes a default bearer with the terminal device according to the configuration file of the first APN; the modem receives the network attach complete message sent by the network device.
  • the Modem can send the first APN request message to the AP when the Modem is initialized, so that after receiving the first APN request message, the AP acquires the first APN according to the first APN request message.
  • the configuration file is sent to the modem, and the modem sends a network attach request message to the network device.
  • the network attach request message includes at least the configuration file of the first APN, so that the network device can adopt the current client identity of the terminal device.
  • the APN corresponding to the SIM card is used to establish a default bearer for the terminal device, which avoids the case where the APN used by the terminal device to perform network attachment is different from the APN that the AP matches for the terminal device, and the signaling interaction between the terminal device and the network device is reduced. Reduce the burden on network devices and increase the success rate of network attachment.
  • FIG. 1 is a schematic flowchart of a network attachment method provided by the prior art
  • FIG. 2 is a schematic structural diagram of an LTE system according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart 1 of a network attachment method according to an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart of a network attachment method according to an embodiment of the present invention. two;
  • FIG. 5 is a schematic flowchart 3 of a network attachment method according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic flowchart 4 of a network attachment method according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic flowchart 5 of a network attachment method according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a user equipment according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of hardware of a user equipment according to an embodiment of the present invention.
  • the technology described in the embodiments of the present invention can be used in the 4th generation mobile communication technology (4G) communication system and the next generation communication system, especially the 4G system such as the LTE system and the communication system of the LTE subsequent evolution system. Or other similar communication systems.
  • 4G 4th generation mobile communication technology
  • next generation communication system especially the 4G system such as the LTE system and the communication system of the LTE subsequent evolution system. Or other similar communication systems.
  • FIG. 2 is a structural diagram of an LTE system according to an embodiment of the present invention.
  • the LTE system is divided into two network elements, an Evolved Packet Core (EPC) device and an evolved Node B (eNode B).
  • the EPC is responsible for the core network part, including the Mobility Management Entity (MME) and the Serving Gateway (S-GW), wherein the MME performs signaling processing and the S-GW performs data processing.
  • MME Mobility Management Entity
  • S-GW Serving Gateway
  • the eNode B is responsible for the access network portion, also known as the Evolved Universal Terrestrial Radio Access Network (E-UTRAN).
  • EPC and Node B can be collectively referred to as network devices.
  • the network attachment method provided by the embodiment of the present invention is performed between the terminal device and the network device.
  • the network attachment method provided by the embodiment of the present invention can be used in the ESM flag of 1. In various scenarios, it can also be used in various scenarios where the ESM flag is 0.
  • the information of the ESM flag is stored in the SIM card.
  • the modem When the modem is initialized, the modem sends a first APN request message to the AP, so that the AP acquires the configuration file of the first APN according to the first APN request message.
  • the AP first reads the ESM flag in the SIM card. Therefore, when the ESM flag is 0, the AP does not need to perform the subsequent steps, and the result of the ESM flag being 0 is returned to the modem.
  • the modem does not need to carry the configuration file of the first APN in the network attach request message, and the network device can be the terminal.
  • the device allocates an APN and establishes a default bearer for the terminal device.
  • the AP can obtain the configuration file of the first APN and the first APN after determining that the ESM flag in the SIM card is 1.
  • the first APN is the APN corresponding to the current SIM card of the terminal device, and is sent.
  • the network attach request message to the network device, the network attach request message includes at least the configuration file of the first APN, so that the network device can establish a default bearer by using the APN corresponding to the current SIM card of the terminal device, and the terminal device is prevented from performing network attachment.
  • the APN used by the AP and the AP are different for the terminal device, the signaling interaction between the terminal device and the network device is reduced, the burden on the network device is reduced, and the success rate of the network attachment is improved.
  • the terminal device described in this embodiment of the present invention may be a wireless terminal or a wired terminal, and the wireless terminal may be a device that provides voice and/or data connectivity to the user, a handheld device with wireless connection function, or a connection. Other processing devices to the wireless modem.
  • the wireless terminal can communicate with one or more core networks via a radio access network (eg, RAN, radio access network), which can be a mobile terminal, such as a mobile phone (or "cellular" phone) and with a mobile terminal
  • RAN radio access network
  • the computers for example, can be portable, pocket-sized, handheld, computer-integrated or in-vehicle mobile devices that exchange language and/or data with the wireless access network.
  • a wireless terminal may also be called a system, a subscriber unit, a subscriber station, a mobile station, a mobile station. Mobile, remote station, access point, remote terminal, access terminal, user terminal, user agent, terminal User device, or user equipment.
  • the network device mentioned in the embodiment of the present invention may be a hardware device, such as a base station, a router, or a hub, which is generally used for remotely accessing network resources, and is not specifically limited in this embodiment of the present invention.
  • the Modem mentioned in the embodiment of the present invention may be a baseband processor, or may be capable of converting a digital signal into an analog signal by modulation at a transmitting end, and converting the analog signal to a receiving end by demodulating
  • the apparatus for digital signals is not limited in the present invention.
  • An embodiment of the present invention provides a network attachment method, where the method is applied to a terminal device, where the terminal device includes a modem and an AP, as shown in FIG. 3 .
  • the network attachment method includes:
  • the Modem When the Modem is initialized, the Modem sends a first access point name APN request message to the AP.
  • the network corresponding to the SIM card of the terminal device may change.
  • the Modem will The AP sends a first APN request message, where the first APN is an APN corresponding to the SIM card of the terminal device.
  • the Modem initialization refers to the initialization process that the Modem first performs before the terminal device is powered on for the first time or after the terminal device replaces the SIM card for the first time, and before the Modem sends the network attach request message to the network device.
  • the Modem not only informs the AP to perform APN matching after the initialization of the Modem is completed.
  • the modem can send a first APN request message to the AP.
  • the modem can obtain the configuration file of the first APN sent by the AP before the initialization of the modem is completed.
  • the signaling interaction between the device and the network device reduces the burden on the network device and improves the success rate of the network attachment.
  • the AP acquires a configuration file of the first APN according to the first APN request message.
  • step S102 may include steps S102a and S102b:
  • the AP acquires the first APN according to the first APN request message, where the first APN is an APN corresponding to the customer identity identification SIM card of the terminal device.
  • step S102a may include steps S102aa and S102ab:
  • the AP obtains the network identifier of the SIM card from the SIM card.
  • the network identifier of the SIM card is a combination of any one or more of a first identifier, an international mobile subscriber identity (IMSI), and an integrated circuit card identity (ICCID), where One is identified as Mobile Country Code (MCC) and Mobile Network Code (MNC).
  • IMSI international mobile subscriber identity
  • ICCID integrated circuit card identity
  • MCC Mobile Country Code
  • MNC Mobile Network Code
  • IMSI is a logo that distinguishes mobile users and is stored in the SIM card and can be used to distinguish valid information of mobile users.
  • the ICCID is fixed in the SIM card of the terminal device and is used to identify the unique identification number of the IC card.
  • the MCC is an identity that is uniformly assigned and managed by ITU to uniquely identify the country to which the mobile subscriber belongs.
  • the MNC is used to identify the mobile network to which the mobile customer belongs.
  • the MCC consists of three decimal digits. For example, the MCC of China is 460, the MCC of the United States is 310, and the MCC of the United Kingdom is 234.
  • the MNC is generally composed of two or three decimal digits. For example, China Mobile's MNC is 00. 02, 04 and 06, China Unicom's MNC is 01, 05, 07, and China Telecom's MNC is 03.
  • the combination of MCC and MNC can uniquely identify the network operator corresponding to the SIM card.
  • 46000 is China Mobile
  • 45400 is Hong Kong Telecom
  • 46697 is Taiwan Big Brother.
  • the first identifier, the IMSI, and the ICCID are used to identify the terminal design.
  • the network identifier of the network to which the current SIM card belongs to the terminal device provided by the embodiment of the present invention is not limited to the above-mentioned parameters, and the remaining parameters that can identify the network to which the current SIM card belongs to the terminal device are also not limited by the present invention.
  • the S102ab and the AP obtain the first APN corresponding to the network identifier of the SIM card according to the network identifier of the SIM card.
  • the mapping between the network identifier of the SIM card and the APN in the AP may also be referred to as the configuration information of the APN.
  • the correspondence between the network identifier of the SIM card and the APN is preset in the terminal device, and the correspondence information between the network identifier of the SIM card and the APN may be a set of data, or may be a list.
  • the form is stored inside the terminal device.
  • the network identifier of one SIM card may correspond to multiple APNs.
  • the network identifier of the SIM card is in one-to-one correspondence with the APN.
  • the terminal device uses the APN corresponding to the network identifier of the network to which the current SIM card of the terminal device belongs, and can ensure the success rate of the network attachment.
  • the AP selects one APN from the multiple APNs as the first APN;
  • the network identifier of the SIM card in the corresponding relationship information of the identifier and the APN is in one-to-one correspondence with the APN, and the AP directly obtains the APN corresponding to the network identifier of the network of the current SIM card of the terminal device as the first APN.
  • the network identifier and the APN corresponding relationship information of the SIM card mentioned in the embodiment of the present invention may include not only the APN, but also the APN password, the user name, the Internet Protocol (IP) type, and the authentication. Information such as type, the invention is not limited.
  • the AP does not need to perform the step S102, and the result of the ESM flag being 0 is returned to the Modem, and the Modem does not need to carry the configuration file of the first APN in the network attach request message.
  • the network device can allocate an APN for the terminal device and establish a default bearer for the terminal device.
  • S102b The AP acquires a configuration file of the first APN according to the first APN.
  • step S102b may include steps S102ba-S102bc:
  • S102ba The AP confirms whether the first APN is the same as the second APN.
  • the AP acquires the configuration file of the second APN stored in the AP, and sets the configuration file of the second APN as the configuration file of the first APN.
  • the network to which the current SIM card belongs is the same as the network that the terminal device accesses last time.
  • the network to which the current SIM card belongs is China Mobile, and the network that the terminal device accesses last time.
  • the AP obtains the configuration file of the second APN stored in the AP, and sets the configuration file of the second APN as the configuration file of the first APN.
  • the network to which the current SIM card belongs is different from the network that the terminal device accesses last time.
  • the network to which the current SIM card belongs is China Mobile, and the network that the terminal device accesses last time.
  • the AP needs to generate a configuration file of the first APN according to the first APN.
  • the AP generates a configuration file of the first APN according to the first APN, and the AP generates a profile file of the first APN according to the first APN.
  • the AP sends a configuration file of the first APN to the Modem.
  • the Modem sends a network attach request message to the network device, where the network attach request message includes at least a configuration file of the first APN, where the network attach request message is used to trigger the network device to establish a default bearer with the terminal device according to the configuration file of the first APN.
  • the modem After receiving the configuration file of the first APN sent by the AP, the modem sends a network attach request message to the network device, so that the network device establishes a default bearer with the terminal device according to the configuration file of the first APN.
  • the Modem receives a network attach complete message sent by the network device.
  • the network attachment request message sent by the modem is carried by the first APN.
  • the file is set up, and the first APN is an APN corresponding to the network identifier of the network to which the current SIM card belongs to the terminal device, so that the success rate of the network attachment is high, and the APN is not rejected or detached. Therefore, the terminal device successfully registers once, which greatly reduces the load of the network and reduces signaling interaction between the terminal device and the network device.
  • the network attachment method provided by the embodiment of the present invention may further include steps S106 and S107:
  • the Modem when the terminal device is powered off or the card is replaced again, the Modem sends a network detach request message to the network device, and the Modem also sends a first APN delete message to the AP. Then, in this case, the configuration file of the second APN and the second APN will no longer be stored in the AP.
  • the AP deletes the configuration file of the first APN according to the first APN deletion message.
  • the Modem can also confirm whether the changed APN is the same as the first APN, and if the changed APN is the same as the first APN.
  • the terminal device does not perform the subsequent steps; if the changed APN is different from the first APN, the AP generates a configuration file of the changed APN, and sends the changed APN configuration file to the Modem, so that the Modem initiates the detach process. And re-establish network attachment using the changed APN configuration file.
  • the embodiment of the present invention provides a network attachment method, which is applied to a terminal device, where the terminal device includes a Modem and an AP.
  • the Modem When the Modem is initialized, the Modem sends a first access point name APN request message to the AP; the AP according to the first APN request message. Obtaining a configuration file of the first APN; the AP sends a configuration file of the first APN to the Modem; the Modem sends a network attachment request message to the network device, where the network attachment request message includes at least a configuration file of the first APN, and the network attachment request message is used by the network.
  • the triggering network device establishes a default bearer with the terminal device according to the configuration file of the first APN; the modem receives the network attach complete message sent by the network device.
  • the first APN request message can be sent to the AP when the modem is initialized, so that after receiving the first APN request message, the AP acquires the configuration file of the first APN according to the first APN request message, and the first APN is obtained.
  • the configuration file is sent to the modem, and then the modem sends a network attach request message to the network device.
  • the network attach request message includes at least the configuration file of the first APN, so that the network device can use the current client identity of the terminal device to identify the APN corresponding to the SIM card as the terminal device.
  • Establishing a default bearer which avoids the case where the APN used by the terminal device to perform network attachment is different from the APN that the AP matches for the terminal device, reduces the signaling interaction between the terminal device and the network device, and reduces the burden on the network device.
  • the success rate of network attachment is avoided by the terminal device to perform network attachment is different from the APN that the AP matches for the terminal device.
  • the embodiment of the present invention provides a terminal device. As shown in FIG. 8, the terminal device is configured to perform the steps performed by the terminal device in the above method.
  • the terminal device may include a module corresponding to the corresponding step.
  • the modem processor Modem 10 and the application processor AP 11 may be included.
  • the Modem 10 is configured to send a first access point name APN request message to the AP 11 when the Modem 10 is initialized.
  • the AP 11 After receiving the first access point name APN request message sent by the modem 10, the AP 11 obtains the configuration file of the first APN according to the first APN request message, and sends the configuration file of the first APN to the Modem.
  • the Modem 10 is further configured to: after receiving the configuration file of the first APN sent by the AP 11, send a network attach request message to the network device, and receive a network attach complete message sent by the network device; where the network attach request message includes at least the first An APN configuration file, the network attach request message is used to trigger the network device to establish a default bearer with the terminal device according to the configuration file of the first APN.
  • the AP 11 when acquiring the configuration file of the first APN according to the first APN request message, is configured to: obtain the first APN according to the first APN request message, and obtain the first APN according to the first APN. a configuration file; wherein the first APN is an APN corresponding to a client identity SIM card of the terminal device.
  • the AP 11 obtains the first APN according to the first APN request message, Specifically, the network identifier of the SIM card is obtained from the SIM card, and the first APN corresponding to the network identifier of the SIM card is obtained according to the network identifier of the SIM card; and the corresponding relationship between the network identifier of the SIM card and the APN is pre-configured in the AP. information.
  • the network identifier of the SIM card is a combination of any one or more of a first identifier, an International Mobile Subscriber Identity (IMSI), and an Integrated Circuit Card Identification Code (ICCID), wherein the first identifier is a mobile country code MCC and a mobile network. Number MNC.
  • IMSI International Mobile Subscriber Identity
  • ICCID Integrated Circuit Card Identification Code
  • the AP 11 stores a configuration file of the second APN and the second APN, where the second APN is an APN of the network accessed by the terminal device before the Modem 10 is initialized.
  • the AP 11 When acquiring the configuration file of the first APN according to the first APN, the AP 11 is specifically configured to: confirm that the first APN is the same as the second APN, and obtain a configuration file of the second APN stored in the AP, and obtain the second APN.
  • the configuration file is set to the configuration file of the first APN.
  • the AP 11 stores a configuration file of the second APN and the second APN, where the second APN is an APN of the network accessed by the terminal device before the Modem is initialized.
  • the AP 11 When acquiring the configuration file of the first APN according to the first APN, the AP 11 is specifically configured to: confirm that the first APN is different from the second APN, and generate a configuration file of the first APN according to the first APN.
  • the modem 10 is further configured to: after receiving the network attach complete message sent by the network device, send the first APN delete message to the AP after sending the network detach request message to the network device.
  • the AP 11 is further configured to: after receiving the first APN deletion message sent by the Modem 10, delete the configuration file of the first APN according to the first APN deletion message.
  • the terminal device in this embodiment may be the terminal device that is served by the network device or the other network device, and the terminal device may correspond to the network attachment method in any one of the foregoing embodiments of any one of FIG. 3 to FIG.
  • the terminal device, and the division and/or function of each module in the terminal device of the embodiment are used to implement the method flow shown in any one of FIG. 3 to FIG. 7.
  • no further description is provided herein. .
  • An embodiment of the present invention provides a terminal device, including: a modem processor Modem and an application processor AP; and a Modem, configured to send a first access point name APN request message to an AP when the Modem is initialized; Receiving the first connection sent by Modem After the in-point name APN request message, the configuration file of the first APN is obtained according to the first APN request message, and the configuration file of the first APN is sent to the Modem.
  • the Modem is also used to receive the configuration of the first APN sent by the AP.
  • the network attach request message is sent to the network device, and the network attach complete message sent by the network device is received, where the network attach request message includes at least a configuration file of the first APN, and the network attach request message is used to trigger the network device according to the first
  • the APN configuration file establishes a default bearer with the terminal device.
  • the Modem can send the first APN request message to the AP when the Modem is initialized, so that after receiving the first APN request message, the AP acquires the first APN according to the first APN request message.
  • the configuration file is sent to the modem, and the modem sends a network attach request message to the network device.
  • the network attach request message includes at least the configuration file of the first APN, so that the network device can adopt the current client identity of the terminal device.
  • the APN corresponding to the SIM card is used to establish a default bearer for the terminal device, which avoids the case where the APN used by the terminal device to perform network attachment is different from the APN that the AP matches for the terminal device, and the signaling interaction between the terminal device and the network device is reduced. Reduce the burden on network devices and increase the success rate of network attachment.
  • the embodiment of the present invention further provides a terminal device.
  • the terminal device includes: a memory 20, a processor 21, a communication interface 22, and a system bus 23.
  • the memory 20, the processor 21 and the communication interface 22 are connected by a system bus 23 for storing some computer instructions, and the processor 21 is configured to execute computer instructions to cause the terminal device to perform the network of any one of Figures 3-7. Attachment method. For a specific network attachment method, refer to the related description in the foregoing embodiment shown in any one of FIG. 3 to FIG. 7, and details are not described herein again.
  • the processor 21 can be a central processing unit (CPU).
  • the processor 21 can also be other general purpose processors, digital signal processing (DSP), 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 or any conventional processor or the like.
  • the processor 21 may be a dedicated processor, which may include at least one of a baseband processing chip, a radio frequency processing chip, and the like. Further, the dedicated processor may also include a chip having other dedicated processing functions of the terminal device. Illustratively, processor 21 may include a Modem and an AP as in FIG.
  • the memory 20 may include a volatile memory such as a random-access memory (RAM); the memory 20 may also include a non-volatile memory such as a read-only memory (read) -only memory, ROM), flash memory, hard disk drive (HDD) or solid-state drive (SSD); the memory 20 may also include a combination of the above types of memories.
  • RAM random-access memory
  • ROM read-only memory
  • HDD hard disk drive
  • SSD solid-state drive
  • the system bus 23 can include a data bus, a power bus, a control bus, and a signal status bus. For the sake of clarity in the present embodiment, various buses are illustrated as the system bus 23 in FIG.
  • Communication interface 22 may include a receiver and a transmitter. And in a specific implementation of the terminal device, the receiver and the transmitter may specifically be transceivers on the terminal device.
  • the transceiver can be a wireless transceiver.
  • the wireless transceiver can be an antenna of a terminal device or the like.
  • the processor 21 transmits and receives data to and from other devices, such as network devices, through the transceiver.
  • each step in the method flow shown in any one of the foregoing FIG. 3 to FIG. 7 can be implemented by hardware execution of a computer-executed instruction in a software form. To avoid repetition, we will not repeat them here.
  • the embodiment of the invention provides a terminal device.
  • the Modem can send the first APN request message to the AP when the Modem is initialized, so that after receiving the first APN request message, the AP acquires the first APN according to the first APN request message.
  • the configuration file is sent to the modem, and the modem sends a network attach request message to the network device.
  • the network attach request message includes at least the configuration file of the first APN, so that the network device can adopt the terminal device.
  • the APN corresponding to the former customer identity SIM card establishes a default bearer for the terminal device, which avoids the case where the APN used by the terminal device to perform network attachment and the APN that the AP matches for the terminal device are different, and the reduction between the terminal device and the network device is Signaling interaction reduces the burden on network devices and improves the success rate of network attachment.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • 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, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • a computer readable storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like.

Abstract

The present invention relates to the field of communications. Provided are a network attachment method and apparatus, which can improve the success rate of network attachment. The network attachment method is applied to terminal de vices, and the terminal de vices comprise a Modem and an AP. The network attachment method comprises: when a Modem is initialized, the Modem sends a first access point name (APN) request message to an AP; the AP obtains a configuration file of a first APN according to the first APN request message; the AP sends the configuration file of the first APN to the Modem; the Modem sends a network attachment request message to a network device, the network attachment request message at least comprising the configuration file of the first APN, and the network attachment request message being used for triggering the network device to establish a default bearer with a terminal device according to the configuration file of the first APN; and the Modem receives a network attachment completion message sent by the network device.

Description

一种网络附着方法及装置Network attachment method and device 技术领域Technical field
本发明实施例涉及通信领域,尤其涉及一种网络附着方法及装置。The embodiments of the present invention relate to the field of communications, and in particular, to a network attachment method and apparatus.
背景技术Background technique
网络附着是终端设备(Terminal Device)在和网络设备进行实际业务前在网络中的注册过程。终端设备只有在网络附着成功后才可以接收来自网络设备发送的数据。在长期演进(Long Term Evolution,LTE)系统中,终端设备向网络设备发送的网络附着请求消息中包括演进的分组系统会话管理信息标志位(Evolved Packet System Session Management information transfer flag,ESM flag)。当ESM flag为1时,终端设备会指定网络设备使用终端设备所指示的演进的分组系统会话管理(Evolved Packet System Session Management,ESM)信息为终端设备建立默认承载,其中,默认承载是一种满足默认QoS(Quality of Service,服务质量)的数据和信令的用户承载,为用户提供永久在线的传输服务;当ESM flag为0时,终端设备不会指定ESM信息,网络设备需要为终端设备分配ESM信息,并使用该ESM信息为终端设备建立默认承载。其中,ESM信息包括接入点名称(Access Point Name,APN)、鉴权类型等信息。为了减少终端设备和网络设备之间的信令交互,减轻网络设备的负担,网络运营商通常要求终端设备将ESM flag设为1。The network attachment is a registration process of the terminal device in the network before the actual operation of the network device. The terminal device can receive data sent from the network device only after the network is successfully attached. In the Long Term Evolution (LTE) system, the network attach request message sent by the terminal device to the network device includes an Evolved Packet System Session Management information transfer flag (ESM flag). When the ESM flag is 1, the terminal device specifies that the network device uses the Evolved Packet System Session Management (ESM) information indicated by the terminal device to establish a default bearer for the terminal device, where the default bearer is a type of satisfaction. The default QoS (Quality of Service) data and signaling user bearer provides the user with a permanent online transmission service. When the ESM flag is 0, the terminal device does not specify ESM information, and the network device needs to allocate the terminal device. ESM information, and use the ESM information to establish a default bearer for the terminal device. The ESM information includes information such as an Access Point Name (APN) and an authentication type. In order to reduce the signaling interaction between the terminal device and the network device and reduce the burden on the network device, the network operator usually requires the terminal device to set the ESM flag to 1.
现有的网络附着方法的流程示意图如图1所示,当终端设备更换客户身份识别(Subscriber Identity Module,SIM)卡,终端设备所处的运营商的网络发生了变化,且终端设备更换SIM卡后第一次开机注册LTE网络时,终端设备的调制解调处理器(Modem)初始化完成之后会直接发起网络附着过程,并通知终端设备的应用处理 器(Application Processor,AP)为终端设备匹配与当前SIM卡对应的APN,进行一系列的APN数据库创建。因此,Modem发起网络附着过程早于AP为终端设备匹配与当前SIM卡对应的APN的过程,Modem发起的网络附着请求中仍旧携带上一张SIM卡所对应的APN的信息。如果上一张SIM卡所对应的APN和当前SIM卡所对应的APN相同,即两张SIM卡属于同一个运营商,则可以正常的进行网络附着过程;若上一张SIM卡所对应的APN和当前SIM卡所对应的APN不同,即两张SIM卡不属于同一个运营商,可能会导致网络附着失败。The schematic diagram of the existing network attachment method is shown in FIG. 1. When the terminal device replaces the Subscriber Identity Module (SIM) card, the network of the operator where the terminal device is located changes, and the terminal device replaces the SIM card. After the first time the LTE network is started to be registered, the modem device directly initiates the network attach process after the initialization of the modem device (Modem) is completed, and notifies the application processing of the terminal device. The application processor (AP) performs a series of APN database creation for the terminal device to match the APN corresponding to the current SIM card. Therefore, the Modem initiates the network attach process earlier than the AP is the process in which the terminal device matches the APN corresponding to the current SIM card, and the network attach request initiated by the Modem still carries the information of the APN corresponding to the previous SIM card. If the APN corresponding to the previous SIM card is the same as the APN corresponding to the current SIM card, that is, the two SIM cards belong to the same carrier, the network attachment process can be performed normally; if the APN corresponding to the previous SIM card Different from the APN corresponding to the current SIM card, that is, two SIM cards do not belong to the same carrier, which may cause network attachment failure.
发明内容Summary of the invention
本发明实施例提供一种网络附着方法及装置,能够提高网络附着的成功率。The embodiment of the invention provides a network attachment method and device, which can improve the success rate of network attachment.
为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:
第一方面,本发明实施例提供一种网络附着方法,应用于终端设备,终端设备Modem和AP,该方法包括:In a first aspect, the embodiment of the present invention provides a network attachment method, which is applied to a terminal device, a terminal device Modem, and an AP, where the method includes:
首先,在Modem初始化时,Modem向AP发送第一接入点名称APN请求消息,以使得AP在接收到第一APN请求消息后,根据第一APN请求消息,获取到第一APN的配置文件,并将第一APN的配置文件发送至Modem;其次,Modem接收到第一APN的配置文件后,发送网络附着请求消息至网络设备,其中,网络附着请求消息至少包括第一APN的配置文件,网络附着请求消息用于触发网络设备根据第一APN的配置文件与终端设备建立默认承载;最后,Modem接收网络设备发送的网络附着完成消息。First, when the modem is initialized, the modem sends a first access point name APN request message to the AP, so that the AP obtains the configuration file of the first APN according to the first APN request message after receiving the first APN request message. And sending the configuration file of the first APN to the modem, and then, after receiving the configuration file of the first APN, the modem sends a network attach request message to the network device, where the network attach request message includes at least the configuration file of the first APN, and the network The attach request message is used to trigger the network device to establish a default bearer with the terminal device according to the configuration file of the first APN; finally, the modem receives the network attach complete message sent by the network device.
本发明实施例提供的网络附着方法中,由于Modem能够在Modem初始化时,向AP发送第一APN请求消息,以使得AP在接收到第一APN请求消息后,根据第一APN请求消息,获取到第一APN的配置文件,并将第一APN的配置文件发送至Modem,随后Modem发送网络附着请求消息至网络设备,网络附着请求消息至少包括第一APN 的配置文件,使得网络设备能够采用终端设备当前的客户身份识别SIM卡对应的APN为终端设备建立默认承载,避免了终端设备进行网络附着时使用的APN与AP为终端设备匹配的APN不同的情况,在减少终端设备和网络设备之间的信令交互,减轻网络设备的负担的同时,提高网络附着的成功率。In the network attachment method provided by the embodiment of the present invention, the Modem can send the first APN request message to the AP when the Modem is initialized, so that the AP obtains the first APN request message according to the first APN request message. The configuration file of the first APN sends the configuration file of the first APN to the modem, and then the modem sends a network attach request message to the network device, where the network attach request message includes at least the first APN. The configuration file enables the network device to establish a default bearer for the terminal device by using the APN corresponding to the current customer identity of the terminal device, and avoids different situations in which the APN used by the terminal device to perform network attachment and the APN matched by the AP for the terminal device are different. The signaling success between the terminal device and the network device is reduced, the burden on the network device is reduced, and the success rate of the network attachment is improved.
可选的,AP根据第一APN请求消息,获取第一APN的配置文件,具体包括:Optionally, the AP obtains the configuration file of the first APN according to the first APN request message, and specifically includes:
AP根据第一APN请求消息,先获取第一APN,再根据第一APN,获取第一APN的配置文件,其中,第一APN为与终端设备的客户身份识别SIM卡对应的APN。The AP obtains the first APN according to the first APN request message, and then acquires the configuration file of the first APN according to the first APN, where the first APN is an APN corresponding to the customer identity identification SIM card of the terminal device.
可选的,AP根据第一APN请求消息,获取第一APN,具体包括:Optionally, the AP obtains the first APN according to the first APN request message, and specifically includes:
AP首先从SIM卡中获取SIM卡的网络标识;再根据SIM卡的网络标识,在AP中预设的SIM卡的网络标识和APN的对应关系信息中,获取SIM卡的网络标识对应的第一APN。The AP first obtains the network identifier of the SIM card from the SIM card, and then obtains the first corresponding to the network identifier of the SIM card in the network identifier of the SIM card and the corresponding relationship information of the APN in the AP according to the network identifier of the SIM card. APN.
进一步地,SIM卡的网络标识为第一标识、国际移动用户识别码IMSI和集成电路卡识别码ICCID中任意一种或者多种的组合,其中,第一标识为移动国家码MCC和移动网络号码MNC。Further, the network identifier of the SIM card is a combination of any one or more of a first identifier, an International Mobile Subscriber Identity (IMSI), and an Integrated Circuit Card Identification Code (ICCID), wherein the first identifier is a mobile country code MCC and a mobile network number. MNC.
在第一种可能的实现方式中,AP内存储有第二APN和第二APN的配置文件,其中,第二APN为Modem初始化之前终端设备接入的网络的APN;In a first possible implementation, the configuration file of the second APN and the second APN is stored in the AP, where the second APN is an APN of the network accessed by the terminal device before the Modem is initialized;
AP根据第一APN,获取第一APN的配置文件,具体包括:The AP obtains the configuration file of the first APN according to the first APN, and specifically includes:
AP确认第一APN与第二APN相同,第一APN与第二APN相同,则表示终端设备当前的SIM卡与上一张SIM卡属于同一运营商,AP直接获取存储在AP内的第二APN的配置文件,并将第二APN的配置文件设置为第一APN的配置文件即可。The AP confirms that the first APN is the same as the second APN, and the first APN is the same as the second APN, indicating that the current SIM card of the terminal device belongs to the same carrier as the previous SIM card, and the AP directly obtains the second APN stored in the AP. The configuration file and the configuration file of the second APN are set as the configuration file of the first APN.
在第二种可能的实现方式中,AP内存储有第二APN和第二APN的配置文件,其中,第二APN为Modem初始化之前终端设备接入的网络的APN;In a second possible implementation manner, the configuration file of the second APN and the second APN is stored in the AP, where the second APN is an APN of the network accessed by the terminal device before the Modem is initialized;
AP根据第一APN,获取第一APN的配置文件,具体包括: The AP obtains the configuration file of the first APN according to the first APN, and specifically includes:
AP确认第一APN与第二APN不同,第一APN与第二APN不同,则表示终端设备当前的SIM卡与上一张SIM卡属于不同运营商,AP需要根据第一APN,生成第一APN的配置文件。The AP confirms that the first APN is different from the second APN. The first APN is different from the second APN, indicating that the current SIM card of the terminal device and the previous SIM card belong to different operators, and the AP needs to generate the first APN according to the first APN. Configuration file.
可选的,在Modem接收网络设备发送的网络附着完成消息后,方法还包括:Optionally, after the modem receives the network attach complete message sent by the network device, the method further includes:
在Modem发送网络去附着请求消息至网络设备后,Modem发送第一APN删除消息至AP,以使得AP根据第一APN删除消息,删除第一APN的配置文件。After the modem sends a network detach request message to the network device, the modem sends a first APN deletion message to the AP, so that the AP deletes the configuration file of the first APN according to the first APN deletion message.
第二方面,本发明实施例提供一种终端设备,终端设备包括调制解调处理器Modem和应用处理器AP;In a second aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes a modem processor Modem and an application processor AP;
具体的,本发明实施例提供的Modem和AP所实现的功能具体如下:Specifically, the functions implemented by the Modem and the AP provided by the embodiments of the present invention are specifically as follows:
Modem,用于在Modem初始化时,向AP发送第一接入点名称APN请求消息;Modem, configured to send a first access point name APN request message to the AP when the modem is initialized;
AP,用于在接收到Modem发送的第一接入点名称APN请求消息后,根据第一APN请求消息,获取第一APN的配置文件,并向Modem发送第一APN的配置文件;The AP is configured to: after receiving the first access point name APN request message sent by the modem, obtain the configuration file of the first APN according to the first APN request message, and send the configuration file of the first APN to the Modem;
Modem,还用于在接收到AP发送的第一APN的配置文件后,发送网络附着请求消息至网络设备,以及接收网络设备发送的网络附着完成消息;其中,网络附着请求消息至少包括第一APN的配置文件,网络附着请求消息用于触发网络设备根据第一APN的配置文件与终端设备建立默认承载。The Modem is further configured to: after receiving the configuration file of the first APN sent by the AP, send a network attach request message to the network device, and receive a network attach complete message sent by the network device; where the network attach request message includes at least the first APN The network attachment request message is used to trigger the network device to establish a default bearer with the terminal device according to the configuration file of the first APN.
本发明实施例提供的终端设备的技术效果可以参见上述第一方面终端设备执行的网络附着方法中描述的终端设备的技术效果,此处不再赘述。For technical effects of the terminal device provided by the embodiment of the present invention, refer to the technical effects of the terminal device described in the network attachment method performed by the terminal device in the foregoing first aspect, and details are not described herein again.
可选的,AP在根据第一APN请求消息,获取第一APN的配置文件时,具体用于:根据第一APN请求消息,获取第一APN,并根据第一APN,获取第一APN的配置文件;其中,第一APN为与终端设备的客户身份识别SIM卡对应的APN。 Optionally, when acquiring the configuration file of the first APN according to the first APN request message, the AP is configured to: obtain the first APN according to the first APN request message, and obtain the configuration of the first APN according to the first APN. The file; wherein the first APN is an APN corresponding to the client identity SIM card of the terminal device.
可选的,AP在根据第一APN请求消息,获取第一APN时,具体用于:从SIM卡中获取SIM卡的网络标识,并根据SIM卡的网络标识,获取SIM卡的网络标识对应的第一APN;AP中预设有SIM卡的网络标识和APN的对应关系信息。Optionally, the AP obtains the network identifier of the SIM card from the SIM card according to the first APN request message, and obtains the network identifier of the SIM card according to the network identifier of the SIM card. The first APN; the AP is pre-configured with the network identifier of the SIM card and the corresponding relationship information of the APN.
进一步地,SIM卡的网络标识为第一标识、国际移动用户识别码IMSI和集成电路卡识别码ICCID中任意一种或者多种的组合,其中,第一标识为移动国家码MCC和移动网络号码MNC。Further, the network identifier of the SIM card is a combination of any one or more of a first identifier, an International Mobile Subscriber Identity (IMSI), and an Integrated Circuit Card Identification Code (ICCID), wherein the first identifier is a mobile country code MCC and a mobile network number. MNC.
可选的,AP内存储有第二APN和第二APN的配置文件,其中,第二APN为Modem初始化之前终端设备接入的网络的APN;Optionally, the AP stores a configuration file of the second APN and the second APN, where the second APN is an APN of the network accessed by the terminal device before the Modem is initialized;
AP在根据第一APN,获取第一APN的配置文件时,具体用于:确认第一APN与第二APN相同,以及获取存储在AP内的第二APN的配置文件,并将第二APN的配置文件设置为第一APN的配置文件。When acquiring the configuration file of the first APN according to the first APN, the AP is specifically configured to: confirm that the first APN is the same as the second APN, and obtain a configuration file of the second APN stored in the AP, and obtain the configuration file of the second APN. The configuration file is set to the configuration file of the first APN.
可选的,AP内存储有第二APN和第二APN的配置文件,其中,第二APN为Modem初始化之前终端设备接入的网络的APN;Optionally, the AP stores a configuration file of the second APN and the second APN, where the second APN is an APN of the network accessed by the terminal device before the Modem is initialized;
AP在根据第一APN,获取第一APN的配置文件时,具体用于:确认第一APN与第二APN不同,并根据第一APN,生成第一APN的配置文件。When acquiring the configuration file of the first APN according to the first APN, the AP is specifically configured to: confirm that the first APN is different from the second APN, and generate a configuration file of the first APN according to the first APN.
可选的,Modem,还用于在接收到网络设备发送的网络附着完成消息,且在发送网络去附着请求消息至网络设备后,发送第一APN删除消息至AP;Optionally, the modem is further configured to: after receiving the network attach complete message sent by the network device, send the first APN delete message to the AP after sending the network detach request message to the network device;
AP,还用于在接收到Modem发送的第一APN删除消息后,根据第一APN删除消息,删除第一APN的配置文件。The AP is further configured to delete the configuration file of the first APN according to the first APN deletion message after receiving the first APN deletion message sent by the modem.
第三方面,本发明实施例还提供一种终端设备,终端设备包括存储器、处理器、通信接口和系统总线;其中,处理器可以包括调制解调处理器Modem和应用处理器AP;In a third aspect, the embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, a communication interface, and a system bus; wherein the processor may include a modem processor Modem and an application processor AP;
存储器、处理器和通信接口通过系统总线连接,存储器用于存储计算机指令,处理器用于执行存储器存储的计算机指令,以使终端设备执行如上述第一方面的网络附着方法。The memory, the processor and the communication interface are connected by a system bus, the memory is for storing computer instructions, and the processor is for executing computer instructions for the memory storage to cause the terminal device to perform the network attachment method of the first aspect.
本发明实施例提供的终端设备的技术效果可以参见上述第一方 面终端设备执行的网络附着方法中描述的终端设备的技术效果,此处不再赘述。For the technical effects of the terminal device provided by the embodiment of the present invention, refer to the foregoing first party. The technical effects of the terminal device described in the network attachment method performed by the terminal device are not described herein again.
本发明实施例提供一种网络附着方法及装置,终端设备包括Modem和AP,通过在Modem初始化时,Modem向AP发送第一接入点名称APN请求消息;AP根据第一APN请求消息,获取第一APN的配置文件;AP向Modem发送第一APN的配置文件;Modem发送网络附着请求消息至网络设备,其中,网络附着请求消息至少包括第一APN的配置文件,网络附着请求消息用于触发网络设备根据第一APN的配置文件与终端设备建立默认承载;Modem接收网络设备发送的网络附着完成消息。基于上述实施例的描述,由于Modem能够在Modem初始化时,向AP发送第一APN请求消息,以使得AP在接收到第一APN请求消息后,根据第一APN请求消息,获取到第一APN的配置文件,并将第一APN的配置文件发送至Modem,随后Modem发送网络附着请求消息至网络设备,网络附着请求消息至少包括第一APN的配置文件,使得网络设备能够采用终端设备当前的客户身份识别SIM卡对应的APN为终端设备建立默认承载,避免了终端设备进行网络附着时使用的APN与AP为终端设备匹配的APN不同的情况,在减少终端设备和网络设备之间的信令交互,减轻网络设备的负担的同时,提高网络附着的成功率。The embodiment of the present invention provides a network attachment method and device. The terminal device includes a Modem and an AP. When the Modem is initialized, the Modem sends a first access point name APN request message to the AP. The AP obtains the first message according to the first APN request message. An APN configuration file; the AP sends a configuration file of the first APN to the Modem; the Modem sends a network attach request message to the network device, where the network attach request message includes at least a configuration file of the first APN, and the network attach request message is used to trigger the network. The device establishes a default bearer with the terminal device according to the configuration file of the first APN; the modem receives the network attach complete message sent by the network device. Based on the description of the foregoing embodiment, the Modem can send the first APN request message to the AP when the Modem is initialized, so that after receiving the first APN request message, the AP acquires the first APN according to the first APN request message. The configuration file is sent to the modem, and the modem sends a network attach request message to the network device. The network attach request message includes at least the configuration file of the first APN, so that the network device can adopt the current client identity of the terminal device. The APN corresponding to the SIM card is used to establish a default bearer for the terminal device, which avoids the case where the APN used by the terminal device to perform network attachment is different from the APN that the AP matches for the terminal device, and the signaling interaction between the terminal device and the network device is reduced. Reduce the burden on network devices and increase the success rate of network attachment.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is some embodiments of the invention.
图1为现有技术提供的一种网络附着方法的流程示意图;1 is a schematic flowchart of a network attachment method provided by the prior art;
图2为本发明实施例提供的一种LTE系统架构图;FIG. 2 is a schematic structural diagram of an LTE system according to an embodiment of the present disclosure;
图3为本发明实施例提供的一种网络附着方法的流程示意图一;FIG. 3 is a schematic flowchart 1 of a network attachment method according to an embodiment of the present disclosure;
图4为本发明实施例提供的一种网络附着方法的流程示意图 二;FIG. 4 is a schematic flowchart of a network attachment method according to an embodiment of the present invention; two;
图5为本发明实施例提供的一种网络附着方法的流程示意图三;FIG. 5 is a schematic flowchart 3 of a network attachment method according to an embodiment of the present disclosure;
图6为本发明实施例提供的一种网络附着方法的流程示意图四;FIG. 6 is a schematic flowchart 4 of a network attachment method according to an embodiment of the present disclosure;
图7为本发明实施例提供的一种网络附着方法的流程示意图五;FIG. 7 is a schematic flowchart 5 of a network attachment method according to an embodiment of the present disclosure;
图8为本发明实施例提供的一种用户设备的结构示意图;FIG. 8 is a schematic structural diagram of a user equipment according to an embodiment of the present disclosure;
图9为本发明实施例提供的一种用户设备的硬件示意图。FIG. 9 is a schematic diagram of hardware of a user equipment according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present invention will be described with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
本发明实施例中描述的技术可用于第四代移动通信技术(the 4th Generation mobile communication technology,4G)通信系统和下一代通信系统,尤其是LTE系统等4G系统以及LTE后续演进制式的通信系统,或者其他类似的通信系统。The technology described in the embodiments of the present invention can be used in the 4th generation mobile communication technology (4G) communication system and the next generation communication system, especially the 4G system such as the LTE system and the communication system of the LTE subsequent evolution system. Or other similar communication systems.
以LTE系统为例,图2是本发明实施例提供的一种LTE系统架构图。LTE系统分为两个网元,演进分组核心网(Evolved Packet Core,EPC)设备和演进Node B(Evolved Node B,eNode B)。EPC负责核心网部分,包括移动性管理实体(Mobility Management Entity,MME)和服务网关(Serving Gateway,S-GW),其中,MME进行信令处理,S-GW进行数据处理。eNode B负责接入网部分,也称演进的通用陆地无线接入网络(Evolved Universal Terrestrial Radio Access Network,E-UTRAN)。EPC和Node B可以统称为网络设备。本发明实施例提供的网络附着方法就是在终端设备和网络设备之间进行的。Taking an LTE system as an example, FIG. 2 is a structural diagram of an LTE system according to an embodiment of the present invention. The LTE system is divided into two network elements, an Evolved Packet Core (EPC) device and an evolved Node B (eNode B). The EPC is responsible for the core network part, including the Mobility Management Entity (MME) and the Serving Gateway (S-GW), wherein the MME performs signaling processing and the S-GW performs data processing. The eNode B is responsible for the access network portion, also known as the Evolved Universal Terrestrial Radio Access Network (E-UTRAN). EPC and Node B can be collectively referred to as network devices. The network attachment method provided by the embodiment of the present invention is performed between the terminal device and the network device.
本发明实施例提供的网络附着方法既可以用在ESM flag为1 的各种场景中,也可以用在ESM flag为0的各种场景中。通常的,ESM flag的信息存储在SIM卡中,在所述Modem初始化时,Modem向所述AP发送第一APN请求消息,以使得AP根据第一APN请求消息,获取第一APN的配置文件,AP在获取第一APN的配置文件的过程中,首先会读取SIM卡中的ESM flag。因此,当ESM flag为0时,AP无需再进行后续步骤,直接将ESM flag为0的结果返回给Modem,Modem也无需在网络附着请求消息中携带第一APN的配置文件,网络设备能够为终端设备分配APN,并为终端设备建立默认承载。当ESM flag为1时,由于AP能够在确定SIM卡中的ESM flag为1后,获取第一APN和第一APN的配置文件,第一APN为终端设备当前SIM卡所对应的APN,并发送网络附着请求消息至网络设备,网络附着请求消息至少包括第一APN的配置文件,使得网络设备能够采用终端设备当前SIM卡所对应的APN与终端设备建立默认承载,避免了终端设备进行网络附着时使用的APN与AP为终端设备匹配的APN不同的情况,在减少终端设备和网络设备之间的信令交互,减轻网络设备的负担的同时,提高网络附着的成功率。The network attachment method provided by the embodiment of the present invention can be used in the ESM flag of 1. In various scenarios, it can also be used in various scenarios where the ESM flag is 0. Generally, the information of the ESM flag is stored in the SIM card. When the modem is initialized, the modem sends a first APN request message to the AP, so that the AP acquires the configuration file of the first APN according to the first APN request message. During the process of obtaining the configuration file of the first APN, the AP first reads the ESM flag in the SIM card. Therefore, when the ESM flag is 0, the AP does not need to perform the subsequent steps, and the result of the ESM flag being 0 is returned to the modem. The modem does not need to carry the configuration file of the first APN in the network attach request message, and the network device can be the terminal. The device allocates an APN and establishes a default bearer for the terminal device. When the ESM flag is 1, the AP can obtain the configuration file of the first APN and the first APN after determining that the ESM flag in the SIM card is 1. The first APN is the APN corresponding to the current SIM card of the terminal device, and is sent. The network attach request message to the network device, the network attach request message includes at least the configuration file of the first APN, so that the network device can establish a default bearer by using the APN corresponding to the current SIM card of the terminal device, and the terminal device is prevented from performing network attachment. When the APN used by the AP and the AP are different for the terminal device, the signaling interaction between the terminal device and the network device is reduced, the burden on the network device is reduced, and the success rate of the network attachment is improved.
另外,本发明实施例所描述的终端设备,可以是无线终端也可以是有线终端,无线终端可以是指向用户提供语音和/或数据连通性的设备,具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。无线终端可以经无线接入网(例如,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)、终端设备(user device)、或用户装备(user equipment)。本发明实施例所提到的网络设备可以是基站、路由器或者集线器等通常用于远程访问网络资源的硬件设备,本发明实施例并不做具体限制。In addition, the terminal device described in this embodiment of the present invention may be a wireless terminal or a wired terminal, and the wireless terminal may be a device that provides voice and/or data connectivity to the user, a handheld device with wireless connection function, or a connection. Other processing devices to the wireless modem. The wireless terminal can communicate with one or more core networks via a radio access network (eg, RAN, radio access network), which can be a mobile terminal, such as a mobile phone (or "cellular" phone) and with a mobile terminal The computers, for example, can be portable, pocket-sized, handheld, computer-integrated or in-vehicle mobile devices that exchange language and/or data with the wireless access network. For example, personal communication service (PCS) telephone, cordless telephone, session initiation protocol (SIP) telephone, wireless local loop (WLL) station, personal digital assistant (PDA), etc. . A wireless terminal may also be called a system, a subscriber unit, a subscriber station, a mobile station, a mobile station. Mobile, remote station, access point, remote terminal, access terminal, user terminal, user agent, terminal User device, or user equipment. The network device mentioned in the embodiment of the present invention may be a hardware device, such as a base station, a router, or a hub, which is generally used for remotely accessing network resources, and is not specifically limited in this embodiment of the present invention.
进一步地,本发明实施例中所提到的Modem可以是基带处理器,也可以是其他能够在发送端通过调制将数字信号转换为模拟信号,而在接收端通过解调再将模拟信号转换为数字信号的装置,本发明不做限制。Further, the Modem mentioned in the embodiment of the present invention may be a baseband processor, or may be capable of converting a digital signal into an analog signal by modulation at a transmitting end, and converting the analog signal to a receiving end by demodulating The apparatus for digital signals is not limited in the present invention.
还需要说明的是,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should also be noted that the term “and/or” in this context is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately and exists at the same time. A and B, there are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
本发明实施例提供一种网络附着方法,该方法应用于终端设备,终端设备包括Modem和AP,如图3所示,具体的,该网络附着方法包括:An embodiment of the present invention provides a network attachment method, where the method is applied to a terminal device, where the terminal device includes a modem and an AP, as shown in FIG. 3 . Specifically, the network attachment method includes:
S101、在Modem初始化时,Modem向AP发送第一接入点名称APN请求消息。S101. When the Modem is initialized, the Modem sends a first access point name APN request message to the AP.
当终端设备第一次开机或者更换SIM卡后第一次开机时,终端设备的SIM卡所对应的网络可能会发生变化,为了提高网络附着的成功率,在Modem初始化的过程中,Modem会向AP发送第一APN请求消息,其中,第一APN为与终端设备的SIM卡对应的APN。When the terminal device is powered on for the first time after the device is powered on or replaced for the first time, the network corresponding to the SIM card of the terminal device may change. In order to improve the success rate of network attachment, during the initialization of the modem, the Modem will The AP sends a first APN request message, where the first APN is an APN corresponding to the SIM card of the terminal device.
进一步地,Modem初始化是指终端设备第一次开机或者终端设备更换SIM卡后第一次开机,且在Modem向网络设备发送网络附着请求消息之前,Modem首先要进行的初始化过程。现有技术中,只有在Modem初始化完成后,Modem才会通知AP进行APN匹配;而本发明中,通过设计终端设备内部的时序,使得在Modem初始化时, Modem就能够向AP发送第一APN请求消息。Further, the Modem initialization refers to the initialization process that the Modem first performs before the terminal device is powered on for the first time or after the terminal device replaces the SIM card for the first time, and before the Modem sends the network attach request message to the network device. In the prior art, the Modem not only informs the AP to perform APN matching after the initialization of the Modem is completed. In the present invention, by designing the internal timing of the terminal device, when the Modem is initialized, The modem can send a first APN request message to the AP.
需要说明的是,由于Modem进行初始化的所需的时间远远大于AP进行APN匹配的时间,因此,在Modem初始化完成前,Modem就能获取到AP发送的第一APN的配置文件,在减少终端设备和网络设备之间的信令交互,减轻网络设备的负担的同时,提高网络附着的成功率。It should be noted that, because the time required for the initialization of the modem is much longer than the time for the APN to be matched by the AP, the modem can obtain the configuration file of the first APN sent by the AP before the initialization of the modem is completed. The signaling interaction between the device and the network device reduces the burden on the network device and improves the success rate of the network attachment.
S102、AP根据第一APN请求消息,获取第一APN的配置文件。S102. The AP acquires a configuration file of the first APN according to the first APN request message.
具体的,如图4所示,步骤S102可以包括步骤S102a和S102b:Specifically, as shown in FIG. 4, step S102 may include steps S102a and S102b:
S102a、AP根据第一APN请求消息,获取第一APN,其中,第一APN为与终端设备的客户身份识别SIM卡对应的APN。S102a: The AP acquires the first APN according to the first APN request message, where the first APN is an APN corresponding to the customer identity identification SIM card of the terminal device.
具体的,如图5所示,步骤S102a可以包括步骤S102aa和S102ab:Specifically, as shown in FIG. 5, step S102a may include steps S102aa and S102ab:
S102aa、AP从SIM卡中获取SIM卡的网络标识。S102aa, the AP obtains the network identifier of the SIM card from the SIM card.
SIM卡的网络标识为第一标识、国际移动用户识别码(international mobile subscriber identity,IMSI)和集成电路卡识别码(Integrate circuit card identity,ICCID)中任意一种或者多种的组合,其中,第一标识为移动国家码(Mobile Country Code,MCC)和移动网络号码(Mobile Network Code,MNC)。The network identifier of the SIM card is a combination of any one or more of a first identifier, an international mobile subscriber identity (IMSI), and an integrated circuit card identity (ICCID), where One is identified as Mobile Country Code (MCC) and Mobile Network Code (MNC).
IMSI是区别移动用户的标志,储存在SIM卡中,可用于区别移动用户的有效信息。ICCID固化在终端设备的SIM卡中,用于标识IC卡的唯一识别号码。MCC是由国际电联统一分配和管理,唯一识别移动用户所属的国家的标识。MNC用于识别移动客户所属的移动网络。MCC由三位十进制数字组成,如中国的MCC规定为460,美国的MCC规定为310,英国的MCC规定为234;MNC一般由两位或者三位十进制数字组成,如中国移动的MNC为00、02、04和06,中国联通的MNC为01、05、07,中国电信的MNC为03。IMSI is a logo that distinguishes mobile users and is stored in the SIM card and can be used to distinguish valid information of mobile users. The ICCID is fixed in the SIM card of the terminal device and is used to identify the unique identification number of the IC card. The MCC is an identity that is uniformly assigned and managed by ITU to uniquely identify the country to which the mobile subscriber belongs. The MNC is used to identify the mobile network to which the mobile customer belongs. The MCC consists of three decimal digits. For example, the MCC of China is 460, the MCC of the United States is 310, and the MCC of the United Kingdom is 234. The MNC is generally composed of two or three decimal digits. For example, China Mobile's MNC is 00. 02, 04 and 06, China Unicom's MNC is 01, 05, 07, and China Telecom's MNC is 03.
MCC和MNC组合可唯一标识出SIM卡所对应的网络运营商。例如,46000为中国移动,45400为香港电讯,46697为台湾大哥大。The combination of MCC and MNC can uniquely identify the network operator corresponding to the SIM card. For example, 46000 is China Mobile, 45400 is Hong Kong Telecom, and 46697 is Taiwan Big Brother.
需要说明的是,第一标识、IMSI和ICCID均是用于标识终端设 备当前SIM卡所属网络的参数。本发明实施例提供的终端设备当前SIM卡所属网络的网络标识并不局限于上述几种参数,其余的能够标识终端设备当前SIM卡所属网络的参数也可,本发明不做限制。It should be noted that the first identifier, the IMSI, and the ICCID are used to identify the terminal design. Prepare the parameters of the network to which the current SIM card belongs. The network identifier of the network to which the current SIM card belongs to the terminal device provided by the embodiment of the present invention is not limited to the above-mentioned parameters, and the remaining parameters that can identify the network to which the current SIM card belongs to the terminal device are also not limited by the present invention.
S102ab、AP根据SIM卡的网络标识,获取SIM卡的网络标识对应的第一APN。The S102ab and the AP obtain the first APN corresponding to the network identifier of the SIM card according to the network identifier of the SIM card.
AP中预设有SIM卡的网络标识和APN的对应关系信息,也可以称为APN的配置信息。The mapping between the network identifier of the SIM card and the APN in the AP may also be referred to as the configuration information of the APN.
需要说明的是,SIM卡的网络标识和APN的对应关系信息是预设在终端设备内部的,SIM卡的网络标识和APN的对应关系信息可以是以一组数据,也可以是以一个列表的形式存储在终端设备内部的。具体的,一个SIM卡的网络标识可以对应多个APN,优选的,SIM卡的网络标识与APN一一对应。终端设备使用与终端设备当前SIM卡所属网络的网络标识对应的APN,能够保证网络附着的成功率。It should be noted that the correspondence between the network identifier of the SIM card and the APN is preset in the terminal device, and the correspondence information between the network identifier of the SIM card and the APN may be a set of data, or may be a list. The form is stored inside the terminal device. Specifically, the network identifier of one SIM card may correspond to multiple APNs. Preferably, the network identifier of the SIM card is in one-to-one correspondence with the APN. The terminal device uses the APN corresponding to the network identifier of the network to which the current SIM card of the terminal device belongs, and can ensure the success rate of the network attachment.
需要说明的是,若SIM卡的网络标识和APN的对应关系信息中一个SIM卡的网络标识对应多个APN,则AP从多个APN中任选一个APN作为第一APN;若SIM卡的网络标识和APN的对应关系信息中SIM卡的网络标识与APN一一对应,则AP直接获取与终端设备当前SIM卡所述网络的网络标识对应的APN作为第一APN即可。It should be noted that, if the network identifier of the SIM card and the network identifier of the SIM card in the correspondence information of the SIM card correspond to multiple APNs, the AP selects one APN from the multiple APNs as the first APN; The network identifier of the SIM card in the corresponding relationship information of the identifier and the APN is in one-to-one correspondence with the APN, and the AP directly obtains the APN corresponding to the network identifier of the network of the current SIM card of the terminal device as the first APN.
进一步地,本发明实施例中提到的SIM卡的网络标识和APN的对应关系信息不仅仅可以包括APN,还可以包括APN的密码,用户名,网络协议(Internet Protocol,IP)类型,鉴权类型等信息,本发明不做限制。Further, the network identifier and the APN corresponding relationship information of the SIM card mentioned in the embodiment of the present invention may include not only the APN, but also the APN password, the user name, the Internet Protocol (IP) type, and the authentication. Information such as type, the invention is not limited.
需要补充的是,若SIM卡中的ESM flag为0,AP无需执行步骤S102,直接将ESM flag为0的结果返回给Modem,Modem也无需在网络附着请求消息中携带第一APN的配置文件,网络设备能够为终端设备分配APN,并为终端设备建立默认承载。It is to be noted that if the ESM flag in the SIM card is 0, the AP does not need to perform the step S102, and the result of the ESM flag being 0 is returned to the Modem, and the Modem does not need to carry the configuration file of the first APN in the network attach request message. The network device can allocate an APN for the terminal device and establish a default bearer for the terminal device.
S102b、AP根据第一APN,获取第一APN的配置文件。S102b: The AP acquires a configuration file of the first APN according to the first APN.
具体的,若AP内存储有第二APN和第二APN的配置文件,其中, 第二APN为Modem初始化之前终端设备接入的网络的APN,如图6所示,步骤S102b可以包括步骤S102ba-S102bc:Specifically, if the AP stores the configuration file of the second APN and the second APN, where The second APN is an APN of the network that the terminal device accesses before the Modem is initialized. As shown in FIG. 6, step S102b may include steps S102ba-S102bc:
S102ba、AP确认第一APN与第二APN是否相同。S102ba: The AP confirms whether the first APN is the same as the second APN.
S102bb、若第一APN与第二APN相同,则AP获取存储在AP内的第二APN的配置文件,并将第二APN的配置文件设置为第一APN的配置文件。S102bb. If the first APN is the same as the second APN, the AP acquires the configuration file of the second APN stored in the AP, and sets the configuration file of the second APN as the configuration file of the first APN.
若第一APN与第二APN相同,则说明终端设备当前SIM卡所属网络和终端设备上一次接入的网络相同,例如终端设备当前SIM卡所属网络为中国移动,终端设备上一次接入的网络也为中国移动,AP获取存储在AP内的第二APN的配置文件,并将第二APN的配置文件设置为第一APN的配置文件。If the first APN is the same as the second APN, the network to which the current SIM card belongs is the same as the network that the terminal device accesses last time. For example, the network to which the current SIM card belongs is China Mobile, and the network that the terminal device accesses last time. Also for China Mobile, the AP obtains the configuration file of the second APN stored in the AP, and sets the configuration file of the second APN as the configuration file of the first APN.
S102bc、若第一APN与第二APN不同,则AP根据第一APN,生成第一APN的配置文件。S102bc: If the first APN is different from the second APN, the AP generates a configuration file of the first APN according to the first APN.
若第一APN与第二APN不同,则说明终端设备当前SIM卡所属网络和终端设备上一次接入的网络不同,例如终端设备当前SIM卡所属网络为中国移动,终端设备上一次接入的网络为中国联通,此时AP需要根据第一APN,生成第一APN的配置文件。If the first APN is different from the second APN, the network to which the current SIM card belongs is different from the network that the terminal device accesses last time. For example, the network to which the current SIM card belongs is China Mobile, and the network that the terminal device accesses last time. For China Unicom, the AP needs to generate a configuration file of the first APN according to the first APN.
具体的,AP根据第一APN,生成第一APN的配置文件可以为AP根据第一APN,生成第一APN的profile文件。Specifically, the AP generates a configuration file of the first APN according to the first APN, and the AP generates a profile file of the first APN according to the first APN.
S103、AP向Modem发送第一APN的配置文件。S103. The AP sends a configuration file of the first APN to the Modem.
S104、Modem发送网络附着请求消息至网络设备,其中,网络附着请求消息至少包括第一APN的配置文件,网络附着请求消息用于触发网络设备根据第一APN的配置文件与终端设备建立默认承载。S104: The Modem sends a network attach request message to the network device, where the network attach request message includes at least a configuration file of the first APN, where the network attach request message is used to trigger the network device to establish a default bearer with the terminal device according to the configuration file of the first APN.
Modem接收到AP发送的第一APN的配置文件后,Modem发送网络附着请求消息至网络设备,以使得网络设备根据第一APN的配置文件与终端设备建立默认承载。After receiving the configuration file of the first APN sent by the AP, the modem sends a network attach request message to the network device, so that the network device establishes a default bearer with the terminal device according to the configuration file of the first APN.
S105、Modem接收网络设备发送的网络附着完成消息。S105. The Modem receives a network attach complete message sent by the network device.
由于Modem发送的网络附着请求消息中携带的是第一APN的配 置文件,且第一APN为与终端设备当前SIM卡所属网络的网络标识对应的APN,因此能够保证网络附着的成功率较高,不会出现APN不对导致的被拒绝或者去附着(detach),从而终端设备会一次注册成功,大大降低了网络的负载,减少终端设备和网络设备之间的信令交互。The network attachment request message sent by the modem is carried by the first APN. The file is set up, and the first APN is an APN corresponding to the network identifier of the network to which the current SIM card belongs to the terminal device, so that the success rate of the network attachment is high, and the APN is not rejected or detached. Therefore, the terminal device successfully registers once, which greatly reduces the load of the network and reduces signaling interaction between the terminal device and the network device.
进一步地,如图7所示,本发明实施例提供的网络附着方法还可以包括步骤S106和S107:Further, as shown in FIG. 7, the network attachment method provided by the embodiment of the present invention may further include steps S106 and S107:
S106、在Modem发送网络去附着请求消息至网络设备后,Modem发送第一APN删除消息至AP。S106: After the network detach request message is sent to the network device, the Modem sends a first APN deletion message to the AP.
可选的,当终端设备关机或者再次换卡时,Modem会发送网络去附着请求消息至网络设备,并且Modem还会发送第一APN删除消息至AP。那么,在此种情况下,AP内将不再存储有第二APN和第二APN的配置文件。Optionally, when the terminal device is powered off or the card is replaced again, the Modem sends a network detach request message to the network device, and the Modem also sends a first APN delete message to the AP. Then, in this case, the configuration file of the second APN and the second APN will no longer be stored in the AP.
S107、AP根据第一APN删除消息,删除第一APN的配置文件。S107. The AP deletes the configuration file of the first APN according to the first APN deletion message.
还需要说明的是,当终端设备完成网络附着后,若用户手动切换APN或者APN发生改变时,Modem还可以确认改变后的APN与第一APN是否相同,若改变后的APN与第一APN相同,则终端设备不再执行后续步骤;若改变后的APN与第一APN不同,则AP生成改变后的APN的配置文件,并将改变后的APN的配置文件发送至Modem,使得Modem发起detach过程,并利用改变后的APN的配置文件重新进行网络附着。It should be noted that, after the terminal device completes the network attachment, if the user manually switches the APN or the APN changes, the Modem can also confirm whether the changed APN is the same as the first APN, and if the changed APN is the same as the first APN. The terminal device does not perform the subsequent steps; if the changed APN is different from the first APN, the AP generates a configuration file of the changed APN, and sends the changed APN configuration file to the Modem, so that the Modem initiates the detach process. And re-establish network attachment using the changed APN configuration file.
本发明实施例提供一种网络附着方法,应用于终端设备,终端设备包括Modem和AP,通过在Modem初始化时,Modem向AP发送第一接入点名称APN请求消息;AP根据第一APN请求消息,获取第一APN的配置文件;AP向Modem发送第一APN的配置文件;Modem发送网络附着请求消息至网络设备,其中,网络附着请求消息至少包括第一APN的配置文件,网络附着请求消息用于触发网络设备根据第一APN的配置文件与终端设备建立默认承载;Modem接收网络设备发送的网络附着完成消息。基于上述实施例的描述,由于Modem 能够在Modem初始化时,向AP发送第一APN请求消息,以使得AP在接收到第一APN请求消息后,根据第一APN请求消息,获取到第一APN的配置文件,并将第一APN的配置文件发送至Modem,随后Modem发送网络附着请求消息至网络设备,网络附着请求消息至少包括第一APN的配置文件,使得网络设备能够采用终端设备当前的客户身份识别SIM卡对应的APN为终端设备建立默认承载,避免了终端设备进行网络附着时使用的APN与AP为终端设备匹配的APN不同的情况,在减少终端设备和网络设备之间的信令交互,减轻网络设备的负担的同时,提高网络附着的成功率。The embodiment of the present invention provides a network attachment method, which is applied to a terminal device, where the terminal device includes a Modem and an AP. When the Modem is initialized, the Modem sends a first access point name APN request message to the AP; the AP according to the first APN request message. Obtaining a configuration file of the first APN; the AP sends a configuration file of the first APN to the Modem; the Modem sends a network attachment request message to the network device, where the network attachment request message includes at least a configuration file of the first APN, and the network attachment request message is used by the network. The triggering network device establishes a default bearer with the terminal device according to the configuration file of the first APN; the modem receives the network attach complete message sent by the network device. Based on the description of the above embodiment, due to Modem The first APN request message can be sent to the AP when the modem is initialized, so that after receiving the first APN request message, the AP acquires the configuration file of the first APN according to the first APN request message, and the first APN is obtained. The configuration file is sent to the modem, and then the modem sends a network attach request message to the network device. The network attach request message includes at least the configuration file of the first APN, so that the network device can use the current client identity of the terminal device to identify the APN corresponding to the SIM card as the terminal device. Establishing a default bearer, which avoids the case where the APN used by the terminal device to perform network attachment is different from the APN that the AP matches for the terminal device, reduces the signaling interaction between the terminal device and the network device, and reduces the burden on the network device. The success rate of network attachment.
本发明实施例提供一种终端设备,如图8所示,终端设备用于执行以上方法中的终端设备所执行的步骤。终端设备可以包括相应步骤所对应的模块。示例性的,可以包括调制解调处理器Modem 10和应用处理器AP 11。The embodiment of the present invention provides a terminal device. As shown in FIG. 8, the terminal device is configured to perform the steps performed by the terminal device in the above method. The terminal device may include a module corresponding to the corresponding step. Illustratively, the modem processor Modem 10 and the application processor AP 11 may be included.
Modem 10,用于在Modem 10初始化时,向AP11发送第一接入点名称APN请求消息。The Modem 10 is configured to send a first access point name APN request message to the AP 11 when the Modem 10 is initialized.
AP 11,用于在接收到Modem 10发送的第一接入点名称APN请求消息后,根据第一APN请求消息,获取第一APN的配置文件,并向Modem发送第一APN的配置文件。After receiving the first access point name APN request message sent by the modem 10, the AP 11 obtains the configuration file of the first APN according to the first APN request message, and sends the configuration file of the first APN to the Modem.
Modem 10,还用于在接收到AP 11发送的第一APN的配置文件后,发送网络附着请求消息至网络设备,以及接收网络设备发送的网络附着完成消息;其中,网络附着请求消息至少包括第一APN的配置文件,网络附着请求消息用于触发网络设备根据第一APN的配置文件与终端设备建立默认承载。The Modem 10 is further configured to: after receiving the configuration file of the first APN sent by the AP 11, send a network attach request message to the network device, and receive a network attach complete message sent by the network device; where the network attach request message includes at least the first An APN configuration file, the network attach request message is used to trigger the network device to establish a default bearer with the terminal device according to the configuration file of the first APN.
可选的,AP 11在根据第一APN请求消息,获取第一APN的配置文件时,具体用于:根据第一APN请求消息,获取第一APN,并根据第一APN,获取第一APN的配置文件;其中,第一APN为与终端设备的客户身份识别SIM卡对应的APN。Optionally, when acquiring the configuration file of the first APN according to the first APN request message, the AP 11 is configured to: obtain the first APN according to the first APN request message, and obtain the first APN according to the first APN. a configuration file; wherein the first APN is an APN corresponding to a client identity SIM card of the terminal device.
可选的,AP 11在根据第一APN请求消息,获取第一APN时, 具体用于:从SIM卡中获取SIM卡的网络标识,并根据SIM卡的网络标识,获取SIM卡的网络标识对应的第一APN;AP中预设有SIM卡的网络标识和APN的对应关系信息。Optionally, when the AP 11 obtains the first APN according to the first APN request message, Specifically, the network identifier of the SIM card is obtained from the SIM card, and the first APN corresponding to the network identifier of the SIM card is obtained according to the network identifier of the SIM card; and the corresponding relationship between the network identifier of the SIM card and the APN is pre-configured in the AP. information.
可选的,SIM卡的网络标识为第一标识、国际移动用户识别码IMSI和集成电路卡识别码ICCID中任意一种或者多种的组合,其中,第一标识为移动国家码MCC和移动网络号码MNC。Optionally, the network identifier of the SIM card is a combination of any one or more of a first identifier, an International Mobile Subscriber Identity (IMSI), and an Integrated Circuit Card Identification Code (ICCID), wherein the first identifier is a mobile country code MCC and a mobile network. Number MNC.
可选的,AP 11内存储有第二APN和第二APN的配置文件,其中,第二APN为Modem 10初始化之前终端设备接入的网络的APN。Optionally, the AP 11 stores a configuration file of the second APN and the second APN, where the second APN is an APN of the network accessed by the terminal device before the Modem 10 is initialized.
AP 11在根据第一APN,获取第一APN的配置文件时,具体用于:确认第一APN与第二APN相同,以及获取存储在AP内的第二APN的配置文件,并将第二APN的配置文件设置为第一APN的配置文件。When acquiring the configuration file of the first APN according to the first APN, the AP 11 is specifically configured to: confirm that the first APN is the same as the second APN, and obtain a configuration file of the second APN stored in the AP, and obtain the second APN. The configuration file is set to the configuration file of the first APN.
可选的,AP 11内存储有第二APN和第二APN的配置文件,其中,第二APN为Modem初始化之前终端设备接入的网络的APN。Optionally, the AP 11 stores a configuration file of the second APN and the second APN, where the second APN is an APN of the network accessed by the terminal device before the Modem is initialized.
AP 11在根据第一APN,获取第一APN的配置文件时,具体用于:确认第一APN与第二APN不同,并根据第一APN,生成第一APN的配置文件。When acquiring the configuration file of the first APN according to the first APN, the AP 11 is specifically configured to: confirm that the first APN is different from the second APN, and generate a configuration file of the first APN according to the first APN.
可选的,Modem 10,还用于在接收到网络设备发送的网络附着完成消息,且在发送网络去附着请求消息至网络设备后,发送第一APN删除消息至AP。Optionally, the modem 10 is further configured to: after receiving the network attach complete message sent by the network device, send the first APN delete message to the AP after sending the network detach request message to the network device.
AP 11,还用于在接收到Modem 10发送的第一APN删除消息后,根据第一APN删除消息,删除第一APN的配置文件。The AP 11 is further configured to: after receiving the first APN deletion message sent by the Modem 10, delete the configuration file of the first APN according to the first APN deletion message.
可以理解的是,本实施例的终端设备可以为上述网络设备或者其他网络设备下小区所服务的终端设备,终端设备可对应于上述如图3-图7任意之一的实施例的网络附着方法中的终端设备,并且本实施例的终端设备中的各个模块的划分和/或功能等均是为了实现如图3-图7任意之一所示的方法流程,为了简洁,在此不再赘述。It can be understood that the terminal device in this embodiment may be the terminal device that is served by the network device or the other network device, and the terminal device may correspond to the network attachment method in any one of the foregoing embodiments of any one of FIG. 3 to FIG. The terminal device, and the division and/or function of each module in the terminal device of the embodiment are used to implement the method flow shown in any one of FIG. 3 to FIG. 7. For brevity, no further description is provided herein. .
本发明实施例提供一种终端设备,包括:调制解调处理器Modem和应用处理器AP;Modem,用于在Modem初始化时,向AP发送第一接入点名称APN请求消息;AP,用于在接收到Modem发送的第一接 入点名称APN请求消息后,根据第一APN请求消息,获取第一APN的配置文件,并向Modem发送第一APN的配置文件;Modem,还用于在接收到AP发送的第一APN的配置文件后,发送网络附着请求消息至网络设备,以及接收网络设备发送的网络附着完成消息;其中,网络附着请求消息至少包括第一APN的配置文件,网络附着请求消息用于触发网络设备根据第一APN的配置文件与终端设备建立默认承载。基于上述实施例的描述,由于Modem能够在Modem初始化时,向AP发送第一APN请求消息,以使得AP在接收到第一APN请求消息后,根据第一APN请求消息,获取到第一APN的配置文件,并将第一APN的配置文件发送至Modem,随后Modem发送网络附着请求消息至网络设备,网络附着请求消息至少包括第一APN的配置文件,使得网络设备能够采用终端设备当前的客户身份识别SIM卡对应的APN为终端设备建立默认承载,避免了终端设备进行网络附着时使用的APN与AP为终端设备匹配的APN不同的情况,在减少终端设备和网络设备之间的信令交互,减轻网络设备的负担的同时,提高网络附着的成功率。An embodiment of the present invention provides a terminal device, including: a modem processor Modem and an application processor AP; and a Modem, configured to send a first access point name APN request message to an AP when the Modem is initialized; Receiving the first connection sent by Modem After the in-point name APN request message, the configuration file of the first APN is obtained according to the first APN request message, and the configuration file of the first APN is sent to the Modem. The Modem is also used to receive the configuration of the first APN sent by the AP. After the file is sent, the network attach request message is sent to the network device, and the network attach complete message sent by the network device is received, where the network attach request message includes at least a configuration file of the first APN, and the network attach request message is used to trigger the network device according to the first The APN configuration file establishes a default bearer with the terminal device. Based on the description of the foregoing embodiment, the Modem can send the first APN request message to the AP when the Modem is initialized, so that after receiving the first APN request message, the AP acquires the first APN according to the first APN request message. The configuration file is sent to the modem, and the modem sends a network attach request message to the network device. The network attach request message includes at least the configuration file of the first APN, so that the network device can adopt the current client identity of the terminal device. The APN corresponding to the SIM card is used to establish a default bearer for the terminal device, which avoids the case where the APN used by the terminal device to perform network attachment is different from the APN that the AP matches for the terminal device, and the signaling interaction between the terminal device and the network device is reduced. Reduce the burden on network devices and increase the success rate of network attachment.
本发明实施例还提供一种终端设备,如图9所示,该终端设备包括:存储器20、处理器21、通信接口22和系统总线23。The embodiment of the present invention further provides a terminal device. As shown in FIG. 9, the terminal device includes: a memory 20, a processor 21, a communication interface 22, and a system bus 23.
存储器20、处理器21和通信接口22通过系统总线23连接,存储器20用于存储一些计算机指令,处理器21用于执行计算机指令,以使终端设备执行如图3-图7任意之一的网络附着方法。具体的网络附着方法可参见上述如图3-图7任意之一所示的实施例中的相关描述,此处不再赘述。The memory 20, the processor 21 and the communication interface 22 are connected by a system bus 23 for storing some computer instructions, and the processor 21 is configured to execute computer instructions to cause the terminal device to perform the network of any one of Figures 3-7. Attachment method. For a specific network attachment method, refer to the related description in the foregoing embodiment shown in any one of FIG. 3 to FIG. 7, and details are not described herein again.
处理器21可以为中央处理器(central processing unit,CPU)。处理器21还可以为其他通用处理器、数字信号处理器(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑 器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 21 can be a central processing unit (CPU). The processor 21 can also be other general purpose processors, digital signal processing (DSP), 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 or any conventional processor or the like.
处理器21可以为专用处理器,该专用处理器可以包括基带处理芯片、射频处理芯片等中的至少一个。进一步地,该专用处理器还可以包括具有终端设备其他专用处理功能的芯片。示例性的,处理器21可以包括具有如图8的Modem和AP。The processor 21 may be a dedicated processor, which may include at least one of a baseband processing chip, a radio frequency processing chip, and the like. Further, the dedicated processor may also include a chip having other dedicated processing functions of the terminal device. Illustratively, processor 21 may include a Modem and an AP as in FIG.
存储器20可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器20也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器20还可以包括上述种类的存储器的组合。The memory 20 may include a volatile memory such as a random-access memory (RAM); the memory 20 may also include a non-volatile memory such as a read-only memory (read) -only memory, ROM), flash memory, hard disk drive (HDD) or solid-state drive (SSD); the memory 20 may also include a combination of the above types of memories.
系统总线23可以包括数据总线、电源总线、控制总线和信号状态总线等。本实施例中为了清楚说明,在图9中将各种总线都示意为系统总线23。The system bus 23 can include a data bus, a power bus, a control bus, and a signal status bus. For the sake of clarity in the present embodiment, various buses are illustrated as the system bus 23 in FIG.
通信接口22可以包括接收器和发送器。并且在终端设备的具体实现中,接收器和发送器具体可以是终端设备上的收发器。该收发器可以为无线收发器。例如,无线收发器可以是终端设备的天线等。处理器21通过收发器与其他设备,例如网络设备之间进行数据的收发。 Communication interface 22 may include a receiver and a transmitter. And in a specific implementation of the terminal device, the receiver and the transmitter may specifically be transceivers on the terminal device. The transceiver can be a wireless transceiver. For example, the wireless transceiver can be an antenna of a terminal device or the like. The processor 21 transmits and receives data to and from other devices, such as network devices, through the transceiver.
在具体实现过程中,上述如图3-图7任意之一所示的方法流程中的各步骤均可以通过硬件执行软件形式的计算机执行指令实现。为避免重复,此处不再赘述。In a specific implementation process, each step in the method flow shown in any one of the foregoing FIG. 3 to FIG. 7 can be implemented by hardware execution of a computer-executed instruction in a software form. To avoid repetition, we will not repeat them here.
本发明实施例提供一种终端设备。基于上述实施例的描述,由于Modem能够在Modem初始化时,向AP发送第一APN请求消息,以使得AP在接收到第一APN请求消息后,根据第一APN请求消息,获取到第一APN的配置文件,并将第一APN的配置文件发送至Modem,随后Modem发送网络附着请求消息至网络设备,网络附着请求消息至少包括第一APN的配置文件,使得网络设备能够采用终端设备当 前的客户身份识别SIM卡对应的APN为终端设备建立默认承载,避免了终端设备进行网络附着时使用的APN与AP为终端设备匹配的APN不同的情况,在减少终端设备和网络设备之间的信令交互,减轻网络设备的负担的同时,提高网络附着的成功率。The embodiment of the invention provides a terminal device. Based on the description of the foregoing embodiment, the Modem can send the first APN request message to the AP when the Modem is initialized, so that after receiving the first APN request message, the AP acquires the first APN according to the first APN request message. The configuration file is sent to the modem, and the modem sends a network attach request message to the network device. The network attach request message includes at least the configuration file of the first APN, so that the network device can adopt the terminal device. The APN corresponding to the former customer identity SIM card establishes a default bearer for the terminal device, which avoids the case where the APN used by the terminal device to perform network attachment and the APN that the AP matches for the terminal device are different, and the reduction between the terminal device and the network device is Signaling interaction reduces the burden on network devices and improves the success rate of network attachment.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It will be clearly understood by those skilled in the art that for the convenience and brevity of the description, only the division of each functional module described above is exemplified. In practical applications, the above function assignment can be completed by different functional modules as needed. The internal structure of the device is divided into different functional modules to perform all or part of the functions described above. For the specific working process of the system, the device and the unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。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, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基 于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Base In this understanding, the part of the technical solution of the present invention that contributes in essence or to the prior art or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims (15)

  1. 一种网络附着方法,所述网络附着方法应用于终端设备,所述终端设备包括调制解调处理器Modem和应用处理器AP,其特征在于,所述方法包括:A network attachment method, the network attachment method is applied to a terminal device, where the terminal device includes a modem processor Modem and an application processor AP, and the method includes:
    在所述Modem初始化时,所述Modem向所述AP发送第一接入点名称APN请求消息;When the Modem is initialized, the Modem sends a first access point name APN request message to the AP;
    所述AP根据所述第一APN请求消息,获取第一APN的配置文件;Obtaining, by the AP, the configuration file of the first APN according to the first APN request message;
    所述AP向所述Modem发送所述第一APN的配置文件;Sending, by the AP, a configuration file of the first APN to the Modem;
    所述Modem发送网络附着请求消息至网络设备,其中,所述网络附着请求消息至少包括所述第一APN的配置文件,所述网络附着请求消息用于触发所述网络设备根据所述第一APN的配置文件与所述终端设备建立默认承载;The modem sends a network attach request message to the network device, where the network attach request message includes at least the configuration file of the first APN, and the network attach request message is used to trigger the network device to be based on the first APN. The configuration file establishes a default bearer with the terminal device;
    所述Modem接收所述网络设备发送的网络附着完成消息。The modem receives a network attach complete message sent by the network device.
  2. 根据权利要求1所述的方法,其特征在于,所述AP根据所述第一APN请求消息,获取第一APN的配置文件,具体包括:The method according to claim 1, wherein the AP acquires a configuration file of the first APN according to the first APN request message, and specifically includes:
    所述AP根据所述第一APN请求消息,获取第一APN,其中,所述第一APN为与所述终端设备的客户身份识别SIM卡对应的APN;The AP acquires a first APN according to the first APN request message, where the first APN is an APN corresponding to a customer identity identification SIM card of the terminal device;
    所述AP根据所述第一APN,获取第一APN的配置文件。The AP acquires a configuration file of the first APN according to the first APN.
  3. 根据权利要求2所述的方法,其特征在于,所述AP根据所述第一APN请求消息,获取第一APN,具体包括:The method according to claim 2, wherein the acquiring, by the AP, the first APN according to the first APN request message includes:
    所述AP从所述SIM卡中获取所述SIM卡的网络标识;Obtaining, by the AP, a network identifier of the SIM card from the SIM card;
    所述AP根据所述SIM卡的网络标识,获取所述SIM卡的网络标识对应的所述第一APN;The AP acquires the first APN corresponding to the network identifier of the SIM card according to the network identifier of the SIM card;
    所述AP中预设有SIM卡的网络标识和APN的对应关系信息。The AP identifier is pre-configured with the network identifier of the SIM card and the corresponding relationship information of the APN.
  4. 根据权利要求3所述的方法,其特征在于,所述SIM卡的网络标识为第一标识、国际移动用户识别码IMSI和集成电路卡识别码ICCID中任意一种或者多种的组合,其中,所述第一标识为移动国家码MCC和移动网络号码MNC。The method according to claim 3, wherein the network identifier of the SIM card is a combination of any one or more of a first identifier, an international mobile subscriber identity IMSI, and an integrated circuit card identifier ICCID, where The first identifier is a mobile country code MCC and a mobile network number MNC.
  5. 根据权利要求2-4中任意一项所述的方法,其特征在于,所 述AP内存储有第二APN和第二APN的配置文件,其中,所述第二APN为所述Modem初始化之前所述终端设备接入的网络的APN;A method according to any one of claims 2 to 4, characterized in that The configuration file of the second APN and the second APN is stored in the AP, where the second APN is an APN of the network accessed by the terminal device before the initialization of the Modem;
    所述AP根据所述第一APN,获取第一APN的配置文件,具体包括:The acquiring, by the AP, the configuration file of the first APN according to the first APN, specifically includes:
    所述AP确认所述第一APN与所述第二APN相同;The AP confirms that the first APN is the same as the second APN;
    所述AP获取存储在所述AP内的第二APN的配置文件,并将所述第二APN的配置文件设置为所述第一APN的配置文件。The AP acquires a configuration file of the second APN stored in the AP, and sets a configuration file of the second APN as a configuration file of the first APN.
  6. 根据权利要求2-4中任意一项所述的方法,其特征在于,所述AP内存储有第二APN和第二APN的配置文件,其中,所述第二APN为所述Modem初始化之前所述终端设备接入的网络的APN;The method according to any one of claims 2 to 4, wherein the AP stores a configuration file of a second APN and a second APN, wherein the second APN is before the initialization of the Modem. The APN of the network accessed by the terminal device;
    所述AP根据所述第一APN,获取第一APN的配置文件,具体包括:The acquiring, by the AP, the configuration file of the first APN according to the first APN, specifically includes:
    所述AP确认所述第一APN与所述第二APN不同;The AP confirms that the first APN is different from the second APN;
    所述AP根据所述第一APN,生成所述第一APN的配置文件。The AP generates a configuration file of the first APN according to the first APN.
  7. 根据权利要求1-6中任意一项所述的方法,其特征在于,在所述Modem接收所述网络设备发送的网络附着完成消息后,所述方法还包括:The method according to any one of claims 1 to 6, wherein after the modem receives the network attachment completion message sent by the network device, the method further includes:
    在所述Modem发送网络去附着请求消息至网络设备后,所述Modem发送第一APN删除消息至所述AP;After the modem sends a network detach request message to the network device, the modem sends a first APN delete message to the AP;
    所述AP根据所述第一APN删除消息,删除所述第一APN的配置文件。The AP deletes the configuration file of the first APN according to the first APN deletion message.
  8. 一种终端设备,其特征在于,所述终端设备包括调制解调处理器Modem和应用处理器AP;A terminal device, comprising: a modem processor Modem and an application processor AP;
    所述Modem,用于在所述Modem初始化时,向所述AP发送第一接入点名称APN请求消息;The Modem is configured to send, by the Modem, a first access point name APN request message to the AP;
    所述AP,用于在接收到所述Modem发送的第一接入点名称APN请求消息后,根据所述第一APN请求消息,获取第一APN的配置文件,并向所述Modem发送所述第一APN的配置文件;The AP, after receiving the first access point name APN request message sent by the Modem, acquires a configuration file of the first APN according to the first APN request message, and sends the configuration file to the Modem. The configuration file of the first APN;
    所述Modem,还用于在接收到所述AP发送的所述第一APN的配 置文件后,发送网络附着请求消息至网络设备,以及接收所述网络设备发送的网络附着完成消息;其中,所述网络附着请求消息至少包括所述第一APN的配置文件,所述网络附着请求消息用于触发所述网络设备根据所述第一APN的配置文件与所述终端设备建立默认承载。The Modem is further configured to receive, by the AP, a first APN that is sent by the AP. After the file is set, the network attach request message is sent to the network device, and the network attach complete message sent by the network device is received, where the network attach request message includes at least the configuration file of the first APN, and the network attach request The message is used to trigger the network device to establish a default bearer with the terminal device according to the configuration file of the first APN.
  9. 根据权利要求8所述的终端设备,其特征在于,The terminal device according to claim 8, wherein
    所述AP在根据所述第一APN请求消息,获取第一APN的配置文件时,具体用于:根据所述第一APN请求消息,获取第一APN,并根据所述第一APN,获取第一APN的配置文件;其中,所述第一APN为与所述终端设备的客户身份识别SIM卡对应的APN。And the acquiring, by the AP, the first APN according to the first APN request message, and obtaining the first An APN profile; wherein the first APN is an APN corresponding to a client identity SIM card of the terminal device.
  10. 根据权利要求9所述的终端设备,其特征在于,The terminal device according to claim 9, wherein
    所述AP在根据所述第一APN请求消息,获取第一APN时,具体用于:从所述SIM卡中获取所述SIM卡的网络标识,并根据所述SIM卡的网络标识,获取所述SIM卡的网络标识对应的所述第一APN;所述AP中预设有SIM卡的网络标识和APN的对应关系信息。When the AP acquires the first APN according to the first APN request message, the AP is specifically configured to: obtain the network identifier of the SIM card from the SIM card, and obtain the location according to the network identifier of the SIM card. The first APN corresponding to the network identifier of the SIM card; the AP identifier is pre-set with the network identifier of the SIM card and the corresponding relationship information of the APN.
  11. 根据权利要求10所述的终端设备,其特征在于,所述SIM卡的网络标识为第一标识、国际移动用户识别码IMSI和集成电路卡识别码ICCID中任意一种或者多种的组合,其中,所述第一标识为移动国家码MCC和移动网络号码MNC。The terminal device according to claim 10, wherein the network identifier of the SIM card is a combination of any one or more of a first identifier, an international mobile subscriber identity IMSI, and an integrated circuit card identifier ICCID, wherein The first identifier is a mobile country code MCC and a mobile network number MNC.
  12. 根据权利要求9-11中任意一项所述的终端设备,其特征在于,所述AP内存储有第二APN和第二APN的配置文件,其中,所述第二APN为所述Modem初始化之前所述终端设备接入的网络的APN;The terminal device according to any one of claims 9-11, wherein a configuration file of the second APN and the second APN is stored in the AP, wherein the second APN is before the initialization of the Modem The APN of the network accessed by the terminal device;
    所述AP在根据所述第一APN,获取第一APN的配置文件时,具体用于:确认所述第一APN与所述第二APN相同,以及获取存储在所述AP内的第二APN的配置文件,并将所述第二APN的配置文件设置为所述第一APN的配置文件。When the AP acquires the configuration file of the first APN according to the first APN, the AP is specifically configured to: confirm that the first APN is the same as the second APN, and obtain a second APN stored in the AP. a configuration file, and setting a configuration file of the second APN as a configuration file of the first APN.
  13. 根据权利要求9-11中任意一项所述的终端设备,其特征在于,所述AP内存储有第二APN和第二APN的配置文件,其中,所述第二APN为所述Modem初始化之前所述终端设备接入的网络的APN;The terminal device according to any one of claims 9-11, wherein a configuration file of the second APN and the second APN is stored in the AP, wherein the second APN is before the initialization of the Modem The APN of the network accessed by the terminal device;
    所述AP在根据所述第一APN,获取第一APN的配置文件时,具 体用于:确认所述第一APN与所述第二APN不同,并根据所述第一APN,生成所述第一APN的配置文件。When the AP acquires the configuration file of the first APN according to the first APN, The method is configured to: confirm that the first APN is different from the second APN, and generate a configuration file of the first APN according to the first APN.
  14. 根据权利要求8-13中任意一项所述的终端设备,其特征在于,A terminal device according to any one of claims 8 to 13, characterized in that
    所述Modem,还用于在接收到所述网络设备发送的网络附着完成消息,且在发送网络去附着请求消息至网络设备后,发送第一APN删除消息至所述AP;The Modem is further configured to: after receiving the network attach complete message sent by the network device, and sending a network detach request message to the network device, sending a first APN delete message to the AP;
    所述AP,还用于在接收到所述Modem发送的第一APN删除消息后,根据所述第一APN删除消息,删除所述第一APN的配置文件。The AP is further configured to delete the configuration file of the first APN according to the first APN deletion message after receiving the first APN deletion message sent by the Modem.
  15. 一种终端设备,其特征在于,所述终端设备包括存储器、处理器、通信接口和系统总线;A terminal device, characterized in that the terminal device comprises a memory, a processor, a communication interface and a system bus;
    所述存储器、所述处理器和所述通信接口通过所述系统总线连接,所述存储器用于存储计算机指令,所述处理器用于执行所述存储器存储的计算机指令,以使所述终端设备执行如权利要求1-7中任意一项所述的网络附着方法。 The memory, the processor, and the communication interface are connected by the system bus, the memory is for storing computer instructions, and the processor is configured to execute computer instructions stored by the memory to cause the terminal device to execute A network attachment method according to any one of claims 1-7.
PCT/CN2016/076145 2016-03-11 2016-03-11 Network attachment method and apparatus WO2017152419A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/076145 WO2017152419A1 (en) 2016-03-11 2016-03-11 Network attachment method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/076145 WO2017152419A1 (en) 2016-03-11 2016-03-11 Network attachment method and apparatus

Publications (1)

Publication Number Publication Date
WO2017152419A1 true WO2017152419A1 (en) 2017-09-14

Family

ID=59788966

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076145 WO2017152419A1 (en) 2016-03-11 2016-03-11 Network attachment method and apparatus

Country Status (1)

Country Link
WO (1) WO2017152419A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111132129A (en) * 2019-12-25 2020-05-08 展讯通信(上海)有限公司 SIM card information acquisition device and communication terminal device
CN111836356A (en) * 2019-04-23 2020-10-27 北京小米移动软件有限公司 Method, device, storage medium and mobile terminal for requesting data
CN115150265A (en) * 2022-06-28 2022-10-04 青岛海信移动通信技术股份有限公司 Method, equipment and device for processing dual-system data
CN115243363A (en) * 2022-07-26 2022-10-25 西安广和通无线软件有限公司 Network registration method, related device, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710397A (en) * 2007-09-11 2012-10-03 电信科学技术研究院 Method and device for transmitting ACK (acknowledgement character)/NACK (negative acknowledgement character) signal
WO2013105817A1 (en) * 2012-01-11 2013-07-18 삼성전자 주식회사 Apparatus and method for connecting packet data network in mobile communication system
CN104320833A (en) * 2014-11-19 2015-01-28 成都中科创达软件有限公司 Automatic network selecting method and system of mobile terminal
CN104363575A (en) * 2014-10-20 2015-02-18 联想(北京)有限公司 Method for processing information and user terminal
CN105338596A (en) * 2015-11-17 2016-02-17 小米科技有限责任公司 Data service establishing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710397A (en) * 2007-09-11 2012-10-03 电信科学技术研究院 Method and device for transmitting ACK (acknowledgement character)/NACK (negative acknowledgement character) signal
WO2013105817A1 (en) * 2012-01-11 2013-07-18 삼성전자 주식회사 Apparatus and method for connecting packet data network in mobile communication system
CN104363575A (en) * 2014-10-20 2015-02-18 联想(北京)有限公司 Method for processing information and user terminal
CN104320833A (en) * 2014-11-19 2015-01-28 成都中科创达软件有限公司 Automatic network selecting method and system of mobile terminal
CN105338596A (en) * 2015-11-17 2016-02-17 小米科技有限责任公司 Data service establishing method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111836356A (en) * 2019-04-23 2020-10-27 北京小米移动软件有限公司 Method, device, storage medium and mobile terminal for requesting data
CN111132129A (en) * 2019-12-25 2020-05-08 展讯通信(上海)有限公司 SIM card information acquisition device and communication terminal device
CN111132129B (en) * 2019-12-25 2022-09-27 展讯通信(上海)有限公司 SIM card information acquisition device and communication terminal device
CN115150265A (en) * 2022-06-28 2022-10-04 青岛海信移动通信技术股份有限公司 Method, equipment and device for processing dual-system data
CN115150265B (en) * 2022-06-28 2023-10-20 青岛海信移动通信技术有限公司 Dual-system data processing method, device and apparatus
CN115243363A (en) * 2022-07-26 2022-10-25 西安广和通无线软件有限公司 Network registration method, related device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
KR102371951B1 (en) Pdu session management
CN110602724B (en) Network configuration method and communication device
US11665025B2 (en) Information transmission method and system, and convergence gateway
US20190373534A1 (en) Method for determining control plane node, apparatus, and wireless communications system
CN105379354B (en) MME reselection method and MME
WO2018202138A1 (en) Communication method and related device
WO2014000265A1 (en) Online subscription data configuration method, device, and system
WO2017152419A1 (en) Network attachment method and apparatus
WO2016161832A1 (en) System and corresponding method for realizing mobile communication via sim card management
WO2012149783A1 (en) Method, device, and user equipment applicable in accessing mobile network
CN113382468A (en) Address allocation method for local network device, electronic device, and storage medium
CN111065139B (en) Method and device for starting up and attaching Internet of things device
CN108924926B (en) Communication method and communication device
WO2017118395A1 (en) Access method, user equipment and server
EP3422750A1 (en) Method and apparatus for providing service provider identifier, access device, and terminal device
WO2020063316A1 (en) Communication method and device
WO2019233442A1 (en) Terminal capability acquisition method and apparatus, and computer storage medium
KR102288304B1 (en) Communication method, terminal device, and access network device
WO2019136925A1 (en) Data transmission method and apparatus, and computer storage medium
TW201840234A (en) Method for acquiring context configuration information, terminal equipment, and access network equipment
US11881961B2 (en) Communication method and related apparatus
WO2023216932A1 (en) Communication method and apparatus
RU2783588C2 (en) Network configuration method and communication device
CN109219041B (en) Access control method and mobility management entity
CN109525979B (en) Context information management method and device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16893068

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16893068

Country of ref document: EP

Kind code of ref document: A1