[go: up one dir, main page]

WO2019228103A1 - Network attachment control method and device, and mobile terminal - Google Patents

Network attachment control method and device, and mobile terminal Download PDF

Info

Publication number
WO2019228103A1
WO2019228103A1 PCT/CN2019/083943 CN2019083943W WO2019228103A1 WO 2019228103 A1 WO2019228103 A1 WO 2019228103A1 CN 2019083943 W CN2019083943 W CN 2019083943W WO 2019228103 A1 WO2019228103 A1 WO 2019228103A1
Authority
WO
WIPO (PCT)
Prior art keywords
attachment
pti
mobile terminal
cause
conflict
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2019/083943
Other languages
French (fr)
Chinese (zh)
Inventor
王燕飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qiku Internet Technology Shenzhen Co Ltd filed Critical Qiku Internet Technology Shenzhen Co Ltd
Publication of WO2019228103A1 publication Critical patent/WO2019228103A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/08Mobility data transfer

Definitions

  • the present invention relates to the field of mobile communication technology, and in particular, to a network attachment control method, device, and mobile terminal.
  • the mobile terminal When the mobile terminal is turned on, restarted, or switched from the flight mode to the normal working mode, the mobile terminal needs to search for a target network that can be connected for network attachment. After the network is attached, the mobile terminal can communicate normally.
  • the mobile terminal sends an attachment request to the target network.
  • the attachment request carries a PTI (Procedure Transaction ID, transaction ID) identifier, which is used to identify a transaction in the attachment process.
  • PTI Process Transaction ID
  • the PTI identifier carried in the attachment request is PTI1. If the mobile terminal does not receive the attach response returned by the target network within the set waiting period during the network attachment process, the mobile terminal will resend the attach request, and the PTI identifier carried in the attached request sent this time is PTI2. At this time, if the target network happens to send an attach response to the attach request corresponding to PTI1 to the mobile terminal.
  • the mobile terminal ignores the attach response because the PTI does not match, and the target network also ignores the reattachment request sent by the mobile terminal because of the PTI mismatch, eventually causing the target network to remove the bearer and send a detach message to the mobile terminal.
  • the mobile terminal After receiving the detach message sent by the target network, the mobile terminal will disable the network attachment function and no longer attempt network attachment. As a result, the mobile terminal will not attempt 4G attachment again, and will not reattach 4G until the network search is restarted (airplane mode is turned off or restart trigger).
  • the internet The internet.
  • an object of the embodiments of the present invention is to provide a network attachment control method, device, and mobile terminal, so as to reduce the phenomenon that the mobile terminal cannot attach to the target network due to the conflict of the attachment process, and improve the communication experience of the user using the mobile network.
  • an embodiment of the present invention provides a network attachment control method, which is applied to a mobile terminal.
  • the method includes:
  • the method further includes:
  • the mobile terminal When the mobile terminal receives an attach response during the current attach process, it checks whether the PTI carried in the attach response is the same as the PTI carried in the last attach request sent;
  • the reason for the record attachment failure is the conflict of transaction identifier PTI.
  • the reason why the record attachment fails is the step of conflicting transaction identifier PTIs, including:
  • the preset PTI matching identifier is set to a first specified value; wherein the initial value of the PTI matching identifier is a second specified value.
  • the method further includes:
  • the PTI matching identifier is set to the second specified value.
  • the method further includes:
  • an embodiment of the present invention provides a network attachment device applied to a mobile terminal, where the device includes:
  • a cause determination module is used to check whether the cause of the attachment failure is a PTI conflict in the transaction identifier if a detach message is received from the target network during the current attachment process;
  • Attachment update module is used to re-initiate the next round of attachment process if the cause of the attachment failure is the transaction identifier PTI conflict; among them, the PTI carried by the attachment request in each round of attachment process is sequentially increased from the initial value.
  • the device further includes:
  • a recording module configured to check whether the PTI carried by the attachment response is the same as the PTI carried by the most recent attachment request sent when the mobile terminal receives an attachment response during the current round of attachment; if they are different, record the The reason is that the transaction ID PTI conflicts.
  • the recording module is further configured to:
  • the preset PTI matching identifier is set to a first specified value; wherein the initial value of the PTI matching identifier is a second specified value.
  • an embodiment of the present invention provides a mobile terminal.
  • the structure of the mobile terminal includes a processor and a memory, where the memory is configured to store a program that supports the processor to perform the foregoing method, and the processor is configured to execute the program stored in the memory. .
  • an embodiment of the present invention provides a machine-readable storage medium for storing computer software instructions used by the network attachment device.
  • the network attachment control method, device, and mobile terminal provided in the embodiments of the present invention, during the current round of attachment process, if a detach message sent by the target network is received, it is checked whether the cause of the attachment failure is a PTI conflict . If the cause of the attachment failure is a PTI conflict, the next round of attachment process is re-initiated to enable the mobile terminal to complete the network attachment process. Therefore, the phenomenon that the mobile terminal cannot be attached to the target network due to the conflict of transaction identifiers can be reduced, and the communication experience of the user using the mobile network can be improved.
  • FIG. 1 is a flowchart of a network attachment control method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a network attachment control method according to another embodiment of the present invention.
  • FIG. 3 is a flowchart of interaction between a mobile terminal and a target network during a network attachment process according to an embodiment of the present invention
  • FIG. 4 is a structural block diagram of a network attachment control device according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a network attachment control apparatus according to another embodiment of the present invention.
  • FIG. 6 is a structural block diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal may disable the network attachment function due to the mismatch of transaction identifiers, fail to connect to the network, and reduce the communication experience of users using the mobile network.
  • embodiments of the present invention provide a network attachment control method, device, and mobile terminal to reduce the inability of the mobile terminal to attach to the target network due to the conflict of transaction identifiers, and improve the user's communication experience using the mobile network.
  • FIG. 1 shows a flowchart of a network attachment control method according to an embodiment of the present invention.
  • the method can be applied to a mobile terminal, such as a mobile phone, a handheld computer, a sales terminal, a vehicle-mounted computer, and a smart wearable device.
  • a mobile terminal such as a mobile phone, a handheld computer, a sales terminal, a vehicle-mounted computer, and a smart wearable device.
  • the method includes the following steps:
  • step S102 if a detach message sent by the target network is received during the current attach process, it is checked whether the cause of the attach failure is a transaction identifier PTI conflict; if so, step S106 is performed; if not, step S104 is performed.
  • the mobile terminal searches for a connectable target network. After the target network is determined, the mobile terminal initiates a round of attach process to the target network. This round of attach process may include one or more attach requests, each attach request carrying a PTI used to identify the current attach transaction.
  • the attach response returned by the target network also carries its own PTI, which is used to identify the attach request corresponding to the attach response.
  • the mobile terminal After sending the attachment request to the target network, if the mobile terminal has not received the attachment response returned by the target network for a set period of time, or the PTI of the received attachment response is not consistent with the PTI of the last attachment request sent by the mobile terminal, Send attachment request repeatedly. Until the mobile terminal receives the detach message sent by the target network and completes a round of attach process.
  • the mobile terminal After completing a round of attachment process, the mobile terminal will disable the network attachment function. This operation will cause the mobile terminal to fail to register for 4G services. It will not reattach 4G until it switches to restarting the search network (turning off the flight mode or restart trigger) .
  • the mobile terminal receives an attachment response (the attachment response carries a PTI and a default bearer) during the current round of attachment, it is checked whether the PTI carried in the attachment response and the PTI carried in the most recently sent attachment request. the same. If they are the same, activate the default bearer according to the attachment response to complete the network attachment; if they are different, record the cause of the attachment failure as a PTI conflict, and continue to send attachment requests repeatedly.
  • the code corresponding to the cause of the attachment failure may be recorded at a specified location in the memory. For example, if the code corresponding to the attachment failure caused by the PTI conflict is 05, the code 05 is written to the specified location in the memory. If a detach message sent by the target network is received, it is determined whether the cause of the attachment failure is a PTI conflict based on the record at the specified location. It can be understood that the number of sending attachment requests and the cause of each attachment failure can also be recorded in the form of a table. If the detach message sent by the target network is received and the cause of the attachment failure is at least one PTI conflict, it can be determined that the cause of the attachment failure is a PTI conflict.
  • Step S104 is performed according to the related technology.
  • the network attachment function can be disabled according to the existing rules, and no attachment request is sent.
  • Step S106 Re-initiate the next attach process.
  • the PTI carried in the attach request during each round of attaching processes are sequentially increased from the initial value.
  • the network attachment function will not be disabled, but the next attachment process will be reinitiated.
  • the transaction identifier carried in the first attachment request in the new round of attachment process will still be the initial value PTI1, which The transaction ID carried by each subsequent attach request is incremented in turn.
  • the cause of the attachment failure is cleared. For example, if the code 05 corresponding to the cause of the attachment failure is recorded in a specified position in the memory, the code 05 is cleared, and the content stored in the specified position in the memory is restored to the initial state 00. If the number of attachment requests sent and the reason for each attachment failure are recorded in the form of a form, the content recorded in the form is cleared to form a blank form provided with only a header.
  • the cause of the attachment failure is a PTI conflict. If the cause of the attachment failure is a PTI conflict, the next round of attachment process is re-initiated to enable the mobile terminal to complete the network attachment process. Therefore, the phenomenon that the mobile terminal cannot attach to the target network (such as the 4G network or the 5G network) due to the conflict of the transaction identifiers can be reduced, and the communication experience of the user using the mobile network can be improved.
  • the target network such as the 4G network or the 5G network
  • the following describes a network attachment control method provided by an embodiment of the present invention through a specific application example. As shown in Figure 2, the method includes the following steps:
  • Step S202 The mobile terminal receives an attach response during the current attach process.
  • the mobile terminal When the mobile terminal is turned on, restarted, or switched from flight mode to normal working mode, network attachment is required. Only after the mobile terminal completes the network attachment can the services provided by the mobile network be used. For example, after the mobile terminal is turned on, it will search for connectable networks. If several connectable networks are found, you can select one of them as the target network.
  • the target network can be understood as a radio access network, including a radio network controller and a cell base station.
  • the mobile terminal After determining the target network, the mobile terminal first sends an attachment request to the target network. For example, a mobile terminal sends a network attachment request to a cell base station.
  • the attachment request carries a transaction identifier, which is used to identify a transaction during the network attachment process. For example, the first attachment request sent by a mobile terminal carries a transaction identifier. PTI1.
  • the target network After the target network receives the first attachment request sent by the mobile terminal, it performs mutual authentication with the mobile terminal, NAS (Non-access Stratum, non-access stratum) security negotiation, and ESM (EPSSession Management, enhanced session management) information. Send.
  • NAS Non-access Stratum, non-access stratum
  • ESM ESMession Management, enhanced session management
  • the mobile terminal will record all information interacting with the target network, including PTI1, which is called the first attachment information. After completing the above process, the mobile terminal waits for the attach response returned by the target network. If the mobile terminal does not receive an attach response within the set time, it will resend the attach request.
  • the second attach request carries a transaction identifier PTI2.
  • the mobile terminal correspondingly saves the second attachment information, including PTI2.
  • the second attachment information covers the above-mentioned first attachment information. Therefore, the transaction identifier corresponding to the network attachment recorded by the mobile terminal at this time is PTI2.
  • the mobile terminal receives the attach response returned by the target network, it will perform the following step S204.
  • step S204 it is checked whether the PTI carried in the attachment response is the same as the PTI carried in the last attachment request sent; if yes, step S206 is performed; if not, step S208 is performed.
  • the PTI carried in the attachment response is extracted, and the extracted PTI is compared with the PTI recorded by the mobile terminal.
  • the PTI recorded by the mobile terminal is the PTI carried by the latest attachment request sent by the mobile terminal.
  • step S206 the network attachment is completed according to the attachment response.
  • the default bearer activation operation is performed according to the attach response to complete the network attachment.
  • Step S208 Set the preset PTI matching identifier to the first specified value.
  • the PTI matching identifier is set in advance.
  • the PTI matching identifier can be set when the mobile terminal is initialized or the network attachment process is started, and the initial value of the PTI matching identifier is set to the second specified value.
  • the second specified value may be 0.
  • the PTI matching flag pti_miss 0 is set.
  • the preset PTI matching identifier is set to the first specified value to record that the cause of the attachment failure is a PTI conflict.
  • step S210 the attach request is repeatedly sent until a detach message is received from the target network.
  • the step of repeatedly sending the attach request may be located before step S208, or after step S208, or performed simultaneously with step S208.
  • the PTI carried by the new attach request is incremented on the basis of the PTI carried by the last sent attachment request. That is, the PTI carried in the first attachment request sent by the mobile terminal during each attachment process is the initial value (such as PTI1), and thereafter the PTI carried by each attachment request is sequentially increased from the initial value, such as the second attachment
  • the PTI carried in the request is PTI2, the PTI carried in the third attach request is PTI3, and so on.
  • step S212 it is detected whether the PTI matching identifier is the first specified value; if so, step S216 is performed; if not, step S214 is performed.
  • the detach message sent by the target network carries the detach type identifier.
  • the more commonly used detach type identifiers mainly include allow reattach (0x1), prohibit reattach (0x2) and IMSI (InternationalMobileSubscriberIdentificationNumber , International Mobile Subscriber Identity) to detach (0x3).
  • IMSI InternationalMobileSubscriberIdentificationNumber , International Mobile Subscriber Identity
  • the detach type identifier in the detach message is 0x2, it indicates that the target network prohibits the mobile terminal from sending the attach request again due to a network-side reason or other reasons (such as a PTI conflict). If the detach type identifier in the detach message is 0x3, it indicates that the cause of the detach is the IMSI code abnormality, for example, the IMSI code fails authentication.
  • the mobile terminal does not need to detect whether the PTI matching identifier is the first specified value each time it receives the detach message.
  • the mobile terminal may detect whether the PTI match identifier is the first specified value only when the detach type identifier in the received detach message is 0x2.
  • Step S214 is performed according to the related technology.
  • Step S216 Set the PTI matching identifier to the second specified value.
  • step S2128 the next attachment process is re-initiated.
  • the network attachment function may be disabled and a new round of attachment process may not be initiated to save power of the mobile terminal.
  • the mobile terminal during the current attachment process, if the mobile terminal receives an attachment response, it will check whether the PTI carried in the attachment response is the same as the PTI carried in the last attachment request sent. If they are different, match the preset PTI. The flag is set to the first specified value, and the attach request is repeatedly sent.
  • the PTI match identifier is the first specified value. If it is, it indicates that the cause of the attachment failure is a PTI conflict, then re-initiate the next round of attach process so that the mobile terminal can complete the network. Attach process. Therefore, the phenomenon that the mobile terminal cannot be attached to the target network due to the conflict of transaction identifiers can be reduced, and the communication experience of the user using the mobile network can be improved.
  • FIG. 3 shows a flowchart of interaction between a mobile terminal and a target network during a network attachment process according to an embodiment of the present invention.
  • the network attachment process of the mobile terminal includes the following steps:
  • the mobile terminal After the mobile terminal determines the target network, it sends an attachment request to the target network.
  • the attachment request carries information such as a transaction identifier PTI1 and a user identifier.
  • the target network After receiving the attach request, the target network performs mutual authentication with the mobile terminal.
  • the target network determines the identity of the mobile terminal by using the mobile terminal's user identification and other information, and sends the target network's network identification and other information to the mobile terminal. Enables the mobile terminal to determine the identity of the target network.
  • the target network assigns a temporary identification and IP address to the mobile terminal, creates communication context information, and generates a default bearer, and sends an attachment response containing the default bearer to the mobile terminal. During this period, the mobile terminal will wait for the target network to return the attach response. If the mobile terminal does not receive the attach response returned by the target network within the prescribed first set time period. The mobile terminal will resend the attach request, and the second attach request carries the transaction identifier PTI2.
  • the transaction identifier carried by the attachment response is PTI1.
  • the mobile terminal receives the attach response. After comparison, it is determined that the transaction identifier PTI1 of the attachment response is inconsistent with the transaction identifier PTI2 of the latest attachment request sent, the cause of the attachment failure is recorded as a PTI conflict, and a new attachment request is resent.
  • the mobile terminal receives the detach message sent by the target network, determine whether the cause of the attachment failure is a PTI conflict; if so, start a new round of attachment requests to enable the mobile terminal to complete the network attachment process.
  • the transaction identifier carried in the first attachment request in the new round of attachment process is still PTI1.
  • An embodiment of the present invention further provides a network attachment control device corresponding to the foregoing method embodiment, which is applied to a mobile terminal.
  • the device includes:
  • a cause determination module 41 is configured to check whether the cause of the attachment failure is a transaction identifier PTI conflict if a detach message sent by the target network is received during the current attachment process;
  • a request update module 42 is used to re-initiate the next round of attach process if the cause of the attach failure is a transaction identifier PTI conflict; wherein the PTI carried by the attach request in each round of attach process is sequentially increased from the initial value.
  • the above device may further include a recording module 51.
  • a recording module 51 is used to check whether the PTI carried by the attachment response is the same as the PTI carried by the most recently sent attachment request when the mobile terminal receives the attachment response during the current attachment process; if the PTI carried by the latest attachment request is different, the reason for recording the attachment failure is a transaction Identifies a PTI conflict.
  • the recording module 51 may be further configured to: set a preset PTI matching identifier to a first specified value; wherein the initial value of the PTI matching identifier is a second specified value.
  • the recording module 51 may be further configured to: clear the cause of the attachment failure when re-initiating the next attachment process. Alternatively, when the next attach process is re-initiated, the PTI matching identifier is set to the second specified value.
  • the network attachment control device In the above-mentioned network attachment control device provided by the embodiment of the present invention, during the current round of attachment process, if a detach message sent by the target network is received, it is checked whether the cause of the attachment failure is a PTI conflict. If the cause of the attachment failure is a PTI conflict, the next round of attachment process is re-initiated to enable the mobile terminal to complete the network attachment process. Therefore, the phenomenon that the mobile terminal cannot be attached to the target network due to the conflict of transaction identifiers can be reduced, and the communication experience of the user using the mobile network can be improved.
  • the implementation principle and technical effect of the network attachment control device provided in this embodiment are the same as those of the foregoing method embodiments.
  • the parts not mentioned in the device embodiments can refer to the corresponding content in the foregoing method embodiments.
  • the network attachment device has a function of realizing the behavior of the above network attachment control method.
  • the functions may be implemented by hardware, and may also be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • an embodiment of the present invention further provides a mobile terminal.
  • the mobile terminal may be a terminal device such as a mobile phone, a tablet computer, a Point of Sale (POS), a vehicle-mounted computer, and a smart wearable device.
  • POS Point of Sale
  • FIG. 6 shows a structural block diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal 100 includes: a radio frequency (RF) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless fidelity (WiFi) module 170, a processor 180, And power supply 190 and other components.
  • RF radio frequency
  • the mobile terminal 100 includes: a radio frequency (RF) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless fidelity (WiFi) module 170, a processor 180, And power supply 190 and other components.
  • RF radio frequency
  • WiFi wireless fidelity
  • the RF circuit 110 may be used for receiving and sending signals during the process of receiving and sending information or during a call.
  • the downlink information of the base station is received and processed by the processor 180; in addition, the uplink data of the design is sent to the base station.
  • the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • the RF circuit 110 can also communicate with a network and other devices through wireless communication.
  • the above wireless communication can use any communication standard or protocol, including, but not limited to, Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • E-mail Short Messaging Service
  • SMS Short Messaging Service
  • the memory 120 may be used to store software programs and modules, such as the network attachment control method and program instructions / modules corresponding to the devices in the embodiments of the present invention.
  • the processor 180 executes the mobile terminal 100 by running the software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc .; the storage data area may store data according to
  • the mobile terminal 100 uses the created data (such as audio data, phonebook, etc.) and the like.
  • the memory 120 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the input unit 130 may be configured to receive inputted numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal 100.
  • the input unit 130 may include a touch panel 131 and other input devices 132.
  • the touch panel 131 also known as a touch screen, can collect user's touch operations on or near it (for example, the user uses a finger, a stylus or any suitable object or accessory on the touch panel 131 or near the touch panel 131. Operation), and drive the corresponding connection device according to a preset program.
  • the touch panel 131 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and sends it It is given to the processor 180, and can receive the command sent by the processor 180 and execute it.
  • various types such as resistive, capacitive, infrared, and surface acoustic wave can be used to implement the touch panel 131.
  • the input unit 130 may further include other input devices 132.
  • the other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
  • the display unit 140 may be configured to display information input by the user or information provided to the user and various menus of the mobile terminal 100.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light emitting diode (Organic Light-Emitting Diode, OLED), and the like.
  • the touch panel 131 may cover the display panel 141. When the touch panel 131 detects a touch operation on or near the touch panel 131, the touch panel 131 transmits the touch operation to the processor 180 to determine the type of the touch event. Type to do processing.
  • the touch panel 131 and the display panel 141 are implemented as two independent components to implement the input and input functions of the mobile terminal 100, in some embodiments, the touch panel 131 and the display panel 141 may be used. Integrated to implement the input and output functions of the mobile terminal 100.
  • the mobile terminal 100 may further include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor.
  • the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light.
  • the proximity sensor may close the display panel 141 when the mobile terminal 100 moves to the ear. And / or backlight.
  • an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary. , Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.
  • other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. I will not repeat them here.
  • the audio circuit 160, the speaker 161, and the microphone 162 may provide an audio interface between the user and the mobile terminal 100.
  • the audio circuit 160 may transmit the received electrical data converted electric signal to the speaker 161, and the speaker 161 converts it into a sound signal for output.
  • the microphone 162 converts the collected sound signal into an electric signal, and the audio circuit 160 After receiving, it is converted into audio data, and then the audio data output processor 180 is processed and then sent to, for example, another mobile terminal 100 via the RF circuit 110, or the audio data is output to the memory 120 for further processing.
  • WiFi is a short-range wireless transmission technology.
  • the mobile terminal 100 can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 170. It provides users with wireless broadband Internet access.
  • the processor 180 is a control center of the mobile terminal 100, and connects various parts of the entire mobile terminal 100 by using various interfaces and lines, and runs or executes software programs and / or modules stored in the memory 120 and calls stored in the memory 120 To perform various functions of the mobile terminal 100 and process the data, thereby performing overall monitoring of the mobile terminal 100.
  • the processor 180 may include one or more processing units; optionally, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program. Etc., the modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 180.
  • the mobile terminal 100 also includes a power source 190 (such as a battery) for supplying power to various components.
  • a power source 190 such as a battery
  • the power source can be logically connected to the processor 180 through a power management system, thereby implementing management of charging, discharging, and power consumption management through the power management system.
  • the structure shown in FIG. 6 is only schematic, and the mobile terminal 100 may further include more or fewer components than those shown in FIG. 6, or have a different configuration from that shown in FIG. 6.
  • the components shown in FIG. 6 can be implemented by hardware, software, or a combination thereof.
  • an embodiment of the present invention further provides a machine-readable storage medium that stores machine-executable instructions.
  • the machine-executable instructions When the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause The processor implements the network attachment control method described above.
  • the network attachment control method, device and mobile terminal provided by the embodiments of the present invention have the same technical characteristics, can also solve the same technical problems, and achieve the same technical effect.
  • a network attachment control method applied to a mobile terminal comprising:
  • the mobile terminal When the mobile terminal receives an attach response during the current attach process, it checks whether the PTI carried in the attach response is the same as the PTI carried in the last attach request sent;
  • the reason for the record attachment failure is the conflict of transaction identifier PTI.
  • A3 The method according to A2, wherein the reason why the record attachment fails is a step of conflicting transaction identifier PTIs, including:
  • the preset PTI matching identifier is set to a first specified value; wherein the initial value of the PTI matching identifier is a second specified value.
  • the PTI matching identifier is set to the second specified value.
  • the detachment type identifier carried in the detachment message sent by the target network is forbidden to attach again.
  • a network attachment device applied to a mobile terminal comprising:
  • a cause determination module is used to check whether the cause of the attachment failure is a PTI conflict in the transaction identifier if a detach message is received from the target network during the current attachment process;
  • a request update module is used to re-initiate the next round of attachment process if the cause of the attachment failure is a conflict of transaction identifier PTI; among them, the PTI carried by the attachment request in each round of attachment process is sequentially increased from the initial value.
  • a recording module configured to check whether the PTI carried by the attachment response is the same as the PTI carried by the most recent attachment request sent when the mobile terminal receives an attachment response during the current round of attachment; if they are different, record the The reason is that the transaction ID PTI conflicts.
  • the recording module is further configured to:
  • the preset PTI matching identifier is set to a first specified value; wherein the initial value of the PTI matching identifier is a second specified value.
  • the recording module is further configured to:
  • the PTI matching identifier is set to the second specified value.
  • the recording module is further configured to:
  • a mobile terminal comprising a memory and a processor, where the memory is configured to store a program that supports a processor to execute the method of any of A1 to A6, and the processor is configured to execute the memory. Stored programs.
  • a machine-readable storage medium storing computer software instructions for use in the apparatus of any one of B7 to B11.

Landscapes

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

Abstract

The present invention relates to the technical field of mobile communications, and provides a network attachment control method and device, and a mobile terminal. Regarding the network attachment control method and device, and the mobile terminal provided in embodiments of the present application, the method comprises: in a present attachment process, if a detachment message sent by a target network is received, checking whether the cause of an attachment failure is a PTI conflict; and if yes, re-initiating a next attachment process, so that a mobile terminal completes a network attachment process. Therefore, cases where a mobile terminal is unable to attach to a target network due to transaction identifier conflicts are reduced, thereby improving the communication experience of a user using a mobile network.

Description

网络附着控制方法、装置和移动终端Network attachment control method, device and mobile terminal 【技术领域】[Technical Field]

本发明涉及移动通信技术领域,尤其是涉及一种网络附着控制方法、装置和移动终端。The present invention relates to the field of mobile communication technology, and in particular, to a network attachment control method, device, and mobile terminal.

【背景技术】【Background technique】

在移动终端开机、重启或由飞行模式切换至正常工作模式时,移动终端需要搜索可连接的目标网络,进行网络附着。完成网络附着后,移动终端才能正常地进行通讯。When the mobile terminal is turned on, restarted, or switched from the flight mode to the normal working mode, the mobile terminal needs to search for a target network that can be connected for network attachment. After the network is attached, the mobile terminal can communicate normally.

目前,在移动终端进行网络附着的过程中,移动终端向目标网络发送附着请求,附着请求携带有PTI(Procedure Transaction ID,事务处理ID)标识,该PTI标识用于在附着进程中标识一次事务,避免网络附着冲突,设该附着请求携带的PTI标识为PTI1。如果移动终端在网络附着的过程中,在设定的等待时长内,未接收到目标网络返回的附着响应,移动终端将重新发送附着请求,此次发送的附着请求携带的PTI标识为PTI2。而此时,如果目标网络恰巧向移动终端发送了PTI1对应的附着请求的附着响应。移动终端会因为PTI不匹配而忽略该附着响应,而目标网络也会因PTI不匹配而忽略移动终端重新发送的附着请求,最终导致目标网络剔除承载,向移动终端发送去附着消息。移动终端接收到目标网络发送的去附着消息,将禁用网络附着功能,不再尝试网络附着,致使移动终端不再尝试4G附着,直至重启搜网(关开飞行模式或重启触发)才重新附着4G网络。At present, in the process of network attachment of a mobile terminal, the mobile terminal sends an attachment request to the target network. The attachment request carries a PTI (Procedure Transaction ID, transaction ID) identifier, which is used to identify a transaction in the attachment process. To avoid network attachment conflicts, the PTI identifier carried in the attachment request is PTI1. If the mobile terminal does not receive the attach response returned by the target network within the set waiting period during the network attachment process, the mobile terminal will resend the attach request, and the PTI identifier carried in the attached request sent this time is PTI2. At this time, if the target network happens to send an attach response to the attach request corresponding to PTI1 to the mobile terminal. The mobile terminal ignores the attach response because the PTI does not match, and the target network also ignores the reattachment request sent by the mobile terminal because of the PTI mismatch, eventually causing the target network to remove the bearer and send a detach message to the mobile terminal. After receiving the detach message sent by the target network, the mobile terminal will disable the network attachment function and no longer attempt network attachment. As a result, the mobile terminal will not attempt 4G attachment again, and will not reattach 4G until the network search is restarted (airplane mode is turned off or restart trigger). The internet.

【发明内容】[Summary of the Invention]

有鉴于此,本发明实施例的目的在于提供一种网络附着控制方法、装置和移动终端,以减少因附着流程冲突导致移动终端无法附着至目标网络的现象,提高用户使用移动网络的通讯体验。In view of this, an object of the embodiments of the present invention is to provide a network attachment control method, device, and mobile terminal, so as to reduce the phenomenon that the mobile terminal cannot attach to the target network due to the conflict of the attachment process, and improve the communication experience of the user using the mobile network.

为了实现上述目的,本发明实施例采用的技术方案如下:In order to achieve the foregoing objective, the technical solutions adopted by the embodiments of the present invention are as follows:

第一方面,本发明实施例提供了一种网络附着控制方法,应用于移动终端,所述方法包括:In a first aspect, an embodiment of the present invention provides a network attachment control method, which is applied to a mobile terminal. The method includes:

在本轮附着过程中,如果接收到目标网络发送的去附着消息,检查附着失败的原因是否为事务标识PTI冲突;During the current attachment process, if a detach message is received from the target network, check whether the cause of the attachment failure is a PTI conflict with the transaction identifier;

如果是,重新发起下一轮附着过程;其中,在每轮附着过程中的附着请求携带的PTI均从初始值开始依次递增。If yes, re-initiate the next round of attachment process; among them, the PTI carried by the attachment request in each round of attachment process is sequentially increased from the initial value.

在本发明较佳的实施例中,所述方法还包括:In a preferred embodiment of the present invention, the method further includes:

当所述移动终端在本轮附着过程中接收到附着响应时,检查所述附着响应携带的PTI与最近一次发送的附着请求携带的PTI是否相同;When the mobile terminal receives an attach response during the current attach process, it checks whether the PTI carried in the attach response is the same as the PTI carried in the last attach request sent;

如果不同,记录附着失败的原因为事务标识PTI冲突。If they are different, the reason for the record attachment failure is the conflict of transaction identifier PTI.

在本发明较佳的实施例中,所述记录附着失败的原因为事务标识PTI冲突的步骤,包括:In a preferred embodiment of the present invention, the reason why the record attachment fails is the step of conflicting transaction identifier PTIs, including:

将预设的PTI匹配标识设置为第一指定值;其中,所述PTI匹配标识的初始值为第二指定值。The preset PTI matching identifier is set to a first specified value; wherein the initial value of the PTI matching identifier is a second specified value.

在本发明较佳的实施例中,所述方法还包括:In a preferred embodiment of the present invention, the method further includes:

当重新发起下一轮附着过程时,设置所述PTI匹配标识设置为所述第二指定值。When the next attach process is re-initiated, the PTI matching identifier is set to the second specified value.

在本发明较佳的实施例中,所述方法还包括:In a preferred embodiment of the present invention, the method further includes:

当重新发起下一轮附着过程时,清空所述附着失败的原因。When the next attachment process is re-initiated, the cause of the attachment failure is cleared.

第二方面,本发明实施例提供了一种网络附着装置,应用于移动终端,所述装置包括:In a second aspect, an embodiment of the present invention provides a network attachment device applied to a mobile terminal, where the device includes:

原因确定模块,用于在本轮附着过程中,如果接收到目标网络发送的去附着消息,检查附着失败的原因是否为事务标识PTI冲突;A cause determination module is used to check whether the cause of the attachment failure is a PTI conflict in the transaction identifier if a detach message is received from the target network during the current attachment process;

附着更新模块,用于如果附着失败的原因为事务标识PTI冲突,重新发起下一轮附着过程;其中,在每轮附着过程中的附着请求携带的PTI均从初始值开始依次递增。Attachment update module is used to re-initiate the next round of attachment process if the cause of the attachment failure is the transaction identifier PTI conflict; among them, the PTI carried by the attachment request in each round of attachment process is sequentially increased from the initial value.

在本发明较佳的实施例中,所述装置还包括:In a preferred embodiment of the present invention, the device further includes:

记录模块,用于当所述移动终端在本轮附着过程中接收到附着响应时,检查所述附着响应携带的PTI与最近一次发送的附着请求携带的PTI是否相同;如果不同,记录附着失败的原因为事务标识PTI冲突。A recording module, configured to check whether the PTI carried by the attachment response is the same as the PTI carried by the most recent attachment request sent when the mobile terminal receives an attachment response during the current round of attachment; if they are different, record the The reason is that the transaction ID PTI conflicts.

在本发明较佳的实施例中,所述记录模块还用于:In a preferred embodiment of the present invention, the recording module is further configured to:

将预设的PTI匹配标识设置为第一指定值;其中,所述PTI匹配标识的初始值为第二指定值。The preset PTI matching identifier is set to a first specified value; wherein the initial value of the PTI matching identifier is a second specified value.

第三方面,本发明实施例提供了一种移动终端。在一个可能的设计中,移动终端的结构中包括处理器和存储器,所述存储器用于存储支持处理器执行上述方法的程序,所述处理器被配置为用于执行所述存储器中存储的程序。In a third aspect, an embodiment of the present invention provides a mobile terminal. In a possible design, the structure of the mobile terminal includes a processor and a memory, where the memory is configured to store a program that supports the processor to perform the foregoing method, and the processor is configured to execute the program stored in the memory. .

第四方面,本发明实施例提供了一种机器可读存储介质,用于储存上述网络附着装置所用的计算机软件指令。In a fourth aspect, an embodiment of the present invention provides a machine-readable storage medium for storing computer software instructions used by the network attachment device.

与现有技术相比,本发明实施例提供的网络附着控制方法、装置和移动终端,在本轮附着过程中,如果接收到目标网络发送的去附着消息,检查附着失败的原因是否为PTI冲突。如果附着失败的原因为PTI冲突,则重新发起下一轮附着过程,以使移动终端完成网络附着过程。因而可以减少因事务标识冲突而导致移动终端无法附着至目标网络的现象,提高用户使用移动网络的通讯体验。Compared with the prior art, the network attachment control method, device, and mobile terminal provided in the embodiments of the present invention, during the current round of attachment process, if a detach message sent by the target network is received, it is checked whether the cause of the attachment failure is a PTI conflict . If the cause of the attachment failure is a PTI conflict, the next round of attachment process is re-initiated to enable the mobile terminal to complete the network attachment process. Therefore, the phenomenon that the mobile terminal cannot be attached to the target network due to the conflict of transaction identifiers can be reduced, and the communication experience of the user using the mobile network can be improved.

为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the foregoing objects, features, and advantages of the present invention more comprehensible, preferred embodiments are described below in detail with reference to the accompanying drawings, as follows.

【附图说明】[Brief Description of the Drawings]

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to explain the technical solution of the embodiments of the present invention more clearly, the drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention, and therefore are not It should be regarded as a limitation on the scope. For those of ordinary skill in the art, other related drawings can be obtained according to these drawings without paying creative work.

图1是本发明一实施例所提供的网络附着控制方法的流程图;FIG. 1 is a flowchart of a network attachment control method according to an embodiment of the present invention;

图2是本发明另一实施例所提供的网络附着控制方法的流程图;2 is a flowchart of a network attachment control method according to another embodiment of the present invention;

图3是本发明实施例的移动终端在网络附着的过程中与目标网络的交互流程图;3 is a flowchart of interaction between a mobile terminal and a target network during a network attachment process according to an embodiment of the present invention;

图4是本发明一实施例所提供的网络附着控制装置的结构框图;4 is a structural block diagram of a network attachment control device according to an embodiment of the present invention;

图5是本发明另一实施例所提供的网络附着控制装置的结构框图;5 is a structural block diagram of a network attachment control apparatus according to another embodiment of the present invention;

图6是本发明实施例所提供的一种移动终端的结构框图。FIG. 6 is a structural block diagram of a mobile terminal according to an embodiment of the present invention.

【具体实施方式】【Detailed ways】

下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不 同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。In the following, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. The components of embodiments of the invention, generally described and illustrated in the figures herein, can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts fall within the protection scope of the present invention.

目前诸如手机等移动终端在进行网络附着的过程中,可能会因为事务标识不匹配而导致移动终端禁用网络附着功能,无法连接网络,降低用户使用移动网络的通讯体验。基于此,本发明实施例提供了一种网络附着控制方法、装置和移动终端,以减少因事务标识冲突而导致的移动终端无法附着至目标网络,提高用户使用移动网络的通讯体验。At present, during the process of network attachment of mobile terminals such as mobile phones, the mobile terminal may disable the network attachment function due to the mismatch of transaction identifiers, fail to connect to the network, and reduce the communication experience of users using the mobile network. Based on this, embodiments of the present invention provide a network attachment control method, device, and mobile terminal to reduce the inability of the mobile terminal to attach to the target network due to the conflict of transaction identifiers, and improve the user's communication experience using the mobile network.

以下结合附图,对本发明实施例进行详细介绍。The embodiments of the present invention will be described in detail below with reference to the drawings.

图1示出了本发明一实施例所提供的网络附着控制方法的流程图,该方法可以应用于移动终端,例如,手机、掌上电脑、销售终端、车载电脑、智能穿戴设备等。如图1所示,该方法包括如下步骤:FIG. 1 shows a flowchart of a network attachment control method according to an embodiment of the present invention. The method can be applied to a mobile terminal, such as a mobile phone, a handheld computer, a sales terminal, a vehicle-mounted computer, and a smart wearable device. As shown in Figure 1, the method includes the following steps:

步骤S102,在本轮附着过程中,如果接收到目标网络发送的去附着消息,检查附着失败的原因是否为事务标识PTI冲突;如果是,执行步骤S106;如果否,执行步骤S104。In step S102, if a detach message sent by the target network is received during the current attach process, it is checked whether the cause of the attach failure is a transaction identifier PTI conflict; if so, step S106 is performed; if not, step S104 is performed.

当移动终端需要进行网络附着时,移动终端搜索可连接的目标网络。确定目标网络后,移动终端向目标网络发起一轮附着过程,本轮附着过程可能包括一次或多次附着请求,每次附着请求均携带有用于标识当前次附着事务的PTI。目标网络返回的附着响应也携带有自身的PTI,用于标识该附着响应所对应的附着请求。When the mobile terminal needs network attachment, the mobile terminal searches for a connectable target network. After the target network is determined, the mobile terminal initiates a round of attach process to the target network. This round of attach process may include one or more attach requests, each attach request carrying a PTI used to identify the current attach transaction. The attach response returned by the target network also carries its own PTI, which is used to identify the attach request corresponding to the attach response.

在向目标网络发送附着请求之后,如果移动终端超过设定时长仍未接收到目标网络返回的附着响应,或接收到的附着响应的PTI与移动终端最近一次发送的附着请求的PTI不一致时,将重复发送附着请求。直至移动终端接收到目标网络发送的去附着消息,完成一轮附着过程。After sending the attachment request to the target network, if the mobile terminal has not received the attachment response returned by the target network for a set period of time, or the PTI of the received attachment response is not consistent with the PTI of the last attachment request sent by the mobile terminal, Send attachment request repeatedly. Until the mobile terminal receives the detach message sent by the target network and completes a round of attach process.

现有技术中,完成一轮附着过程之后,移动终端将禁用网络附着功能,该操作将导致移动终端无法注册4G服务,直至切换至重启搜网(关开飞行模式或重启触发)才重新附着4G。在本发明实施例中,当移动终端在本轮附着过程中接收到附着响应(该附着响应携带有PTI和默认承载)时,检查附着响应携带的PTI与最近一次发送的附着请求携带的PTI是否相同。如果相同,根据附着响应进行默认承载的激活操作,完成网络附着;如果不同,将记录附着失败的 原因为PTI冲突,并继续重复发送附着请求。示例性地,可以在内存的指定位置记录附着失败的原因对应的代码,例如,PTI冲突导致附着失败对应的代码为05,则将代码05写入内存的指定位置。如果接收到目标网络发送的去附着消息,根据指定位置的记录确定附着失败的原因是否为PTI冲突。可以理解的是,也可以采用表格的形式记录发送附着请求的次数及每次附着失败的原因。如果接收到目标网络发送的去附着消息,且至少有一次附着失败的原因为PTI冲突,则可以确定附着失败的原因为PTI冲突。In the prior art, after completing a round of attachment process, the mobile terminal will disable the network attachment function. This operation will cause the mobile terminal to fail to register for 4G services. It will not reattach 4G until it switches to restarting the search network (turning off the flight mode or restart trigger) . In the embodiment of the present invention, when the mobile terminal receives an attachment response (the attachment response carries a PTI and a default bearer) during the current round of attachment, it is checked whether the PTI carried in the attachment response and the PTI carried in the most recently sent attachment request. the same. If they are the same, activate the default bearer according to the attachment response to complete the network attachment; if they are different, record the cause of the attachment failure as a PTI conflict, and continue to send attachment requests repeatedly. For example, the code corresponding to the cause of the attachment failure may be recorded at a specified location in the memory. For example, if the code corresponding to the attachment failure caused by the PTI conflict is 05, the code 05 is written to the specified location in the memory. If a detach message sent by the target network is received, it is determined whether the cause of the attachment failure is a PTI conflict based on the record at the specified location. It can be understood that the number of sending attachment requests and the cause of each attachment failure can also be recorded in the form of a table. If the detach message sent by the target network is received and the cause of the attachment failure is at least one PTI conflict, it can be determined that the cause of the attachment failure is a PTI conflict.

步骤S104,按照相关技术执行。Step S104 is performed according to the related technology.

如果附着失败的原因不是PTI冲突,则可以按照现有的规则禁用网络附着功能,不再发送附着请求。If the cause of the attachment failure is not a PTI conflict, the network attachment function can be disabled according to the existing rules, and no attachment request is sent.

步骤S106,重新发起下一轮附着过程。其中,在每轮附着过程中的附着请求携带的PTI均从初始值开始依次递增。Step S106: Re-initiate the next attach process. Among them, the PTI carried in the attach request during each round of attaching processes are sequentially increased from the initial value.

如果附着失败的原因为PTI冲突,不会禁用网络附着功能,而是重新发起下一轮附着过程,新的一轮附着过程中的第一次附着请求携带的事务标识依然为初始值PTI1,其后每次发送的附着请求携带的事务标识依次递增。If the cause of the attachment failure is a PTI conflict, the network attachment function will not be disabled, but the next attachment process will be reinitiated. The transaction identifier carried in the first attachment request in the new round of attachment process will still be the initial value PTI1, which The transaction ID carried by each subsequent attach request is incremented in turn.

当重新发起下一轮附着过程时,清空附着失败的原因。例如,如果在内存的指定位置记录了附着失败的原因对应的代码05,则将代码05清除,将内存的指定位置中存储的内容恢复至初始状态00。如果采用表格的形式记录了发送附着请求的次数及每次附着失败的原因,则清空所述表格内记录的内容,形成只设置有表头的空白表格。When re-initiating the next attachment process, the cause of the attachment failure is cleared. For example, if the code 05 corresponding to the cause of the attachment failure is recorded in a specified position in the memory, the code 05 is cleared, and the content stored in the specified position in the memory is restored to the initial state 00. If the number of attachment requests sent and the reason for each attachment failure are recorded in the form of a form, the content recorded in the form is cleared to form a blank form provided with only a header.

上述网络附着控制方法,在本轮附着过程中,如果接收到目标网络发送的去附着消息,检查附着失败的原因是否为PTI冲突。如果附着失败的原因为PTI冲突,则重新发起下一轮附着过程,以使移动终端完成网络附着过程。因而可以减少因事务标识冲突而导致移动终端无法附着至目标网络(如4G网络或5G网络)的现象,提高用户使用移动网络的通讯体验。In the above network attachment control method, if a detach message sent by the target network is received during the current attachment process, it is checked whether the cause of the attachment failure is a PTI conflict. If the cause of the attachment failure is a PTI conflict, the next round of attachment process is re-initiated to enable the mobile terminal to complete the network attachment process. Therefore, the phenomenon that the mobile terminal cannot attach to the target network (such as the 4G network or the 5G network) due to the conflict of the transaction identifiers can be reduced, and the communication experience of the user using the mobile network can be improved.

为了更便于理解,以下通过一个具体的应用实例说明本发明实施例提供的网络附着控制方法。如图2所示,该方法包括如下步骤:In order to facilitate understanding, the following describes a network attachment control method provided by an embodiment of the present invention through a specific application example. As shown in Figure 2, the method includes the following steps:

步骤S202,移动终端在本轮附着过程中接收到附着响应。Step S202: The mobile terminal receives an attach response during the current attach process.

移动终端开机、重启或由飞行模式切换至正常工作模式时,需要进行网络附着。移动终端完成网络附着后,才能使用移动网络所提供的业务。例如,移动终端开机后,将搜索可连接的网络,如果发现若干个可连接的网络,可以从 中选择一个网络作为目标网络。目标网络可以理解为无线接入网,包括无线网络控制器和小区基站。确定目标网络后,移动终端先向目标网络发送附着请求。例如,移动终端向小区基站发送网络附着请求,为了避免网络附着冲突,附着请求携带有事务标识,用于在网络附着进程中标识一次事务,如移动终端发送的第一次附着请求携带有事务标识PTI1。When the mobile terminal is turned on, restarted, or switched from flight mode to normal working mode, network attachment is required. Only after the mobile terminal completes the network attachment can the services provided by the mobile network be used. For example, after the mobile terminal is turned on, it will search for connectable networks. If several connectable networks are found, you can select one of them as the target network. The target network can be understood as a radio access network, including a radio network controller and a cell base station. After determining the target network, the mobile terminal first sends an attachment request to the target network. For example, a mobile terminal sends a network attachment request to a cell base station. In order to avoid network attachment conflicts, the attachment request carries a transaction identifier, which is used to identify a transaction during the network attachment process. For example, the first attachment request sent by a mobile terminal carries a transaction identifier. PTI1.

目标网络接收到移动终端发送的第一次附着请求后,与移动终端之间进行相互鉴权、NAS(Non-access Stratum,非接入层)安全协商和ESM(EPSSession Management,增强会话管理)信息传送。上述过程中,移动终端与目标网络之间的信息交互均携带有PTI1。After the target network receives the first attachment request sent by the mobile terminal, it performs mutual authentication with the mobile terminal, NAS (Non-access Stratum, non-access stratum) security negotiation, and ESM (EPSSession Management, enhanced session management) information. Send. In the above process, the information interaction between the mobile terminal and the target network all carries PTI1.

在上述附着过程中,移动终端将记录所有与目标网络之间交互的信息,包括PTI1,称为第一附着信息。完成上述过程后,移动终端等待目标网络返回的附着响应。如果移动终端超过设定时长未接到到附着响应,将重新发送附着请求。During the above attachment process, the mobile terminal will record all information interacting with the target network, including PTI1, which is called the first attachment information. After completing the above process, the mobile terminal waits for the attach response returned by the target network. If the mobile terminal does not receive an attach response within the set time, it will resend the attach request.

如果移动终端发送新的附着请求,即第二次附着请求,该第二次附着请求携带有事务标识PTI2。移动终端对应地保存第二附着信息,其中包括PTI2。第二附着信息将上述第一附着信息覆盖,因此,移动终端此时记录的网络附着对应的事务标识为PTI2。此时,如果移动终端接收到目标网络返回的附着响应,将按照下述步骤S204执行。If the mobile terminal sends a new attach request, that is, a second attach request, the second attach request carries a transaction identifier PTI2. The mobile terminal correspondingly saves the second attachment information, including PTI2. The second attachment information covers the above-mentioned first attachment information. Therefore, the transaction identifier corresponding to the network attachment recorded by the mobile terminal at this time is PTI2. At this time, if the mobile terminal receives the attach response returned by the target network, it will perform the following step S204.

步骤S204,检查附着响应携带的PTI与最近一次发送的附着请求携带的PTI是否相同;如果是,执行步骤S206;如果否,执行步骤S208。In step S204, it is checked whether the PTI carried in the attachment response is the same as the PTI carried in the last attachment request sent; if yes, step S206 is performed; if not, step S208 is performed.

当接收到目标网络返回的附着响应时,提取附着响应携带的PTI,将提取的PTI与移动终端记录的PTI进行比较。其中,移动终端记录的PTI为移动终端最近一次发送的附着请求携带的PTI。When the attachment response returned by the target network is received, the PTI carried in the attachment response is extracted, and the extracted PTI is compared with the PTI recorded by the mobile terminal. The PTI recorded by the mobile terminal is the PTI carried by the latest attachment request sent by the mobile terminal.

步骤S206,根据附着响应完成网络附着。In step S206, the network attachment is completed according to the attachment response.

如果附着响应携带的PTI与移动终端记录的PTI相同,根据附着响应进行默认承载的激活操作,完成网络附着。If the PTI carried by the attach response is the same as the PTI recorded by the mobile terminal, the default bearer activation operation is performed according to the attach response to complete the network attachment.

步骤S208,将预设的PTI匹配标识设置为第一指定值。Step S208: Set the preset PTI matching identifier to the first specified value.

预先设置PTI匹配标识,例如,可以在移动终端开机初始化或启动网络附着过程时,设置PTI匹配标识,并将PTI匹配标识的初始值设为第二指定值。其中,第二指定值可以为0。如,移动终端开机初始化时,设置PTI匹配标识pti_miss=0。The PTI matching identifier is set in advance. For example, the PTI matching identifier can be set when the mobile terminal is initialized or the network attachment process is started, and the initial value of the PTI matching identifier is set to the second specified value. The second specified value may be 0. For example, when the mobile terminal is powered on and initialized, the PTI matching flag pti_miss = 0 is set.

如果接收到的附着响应携带的PTI与移动终端记录的PTI不同,将预设的PTI匹配标识设置为第一指定值,以记录附着失败的原因为PTI冲突。其中,第一指定值可以为1。如,检测到PTI冲突时,设置PTI匹配标识pti_miss=1。If the PTI carried by the received attachment response is different from the PTI recorded by the mobile terminal, the preset PTI matching identifier is set to the first specified value to record that the cause of the attachment failure is a PTI conflict. The first specified value may be 1. For example, when a PTI conflict is detected, the PTI match flag pti_miss = 1 is set.

例如,继续上述说明,移动终端在发送第二次附着请求之后,接收到目标网络返回的附着响应,将提取附着响应携带的事务标识PTI1,而PTI1与移动终端记录的事务标识PTI2不一致,此时,移动终端将设置PTI匹配标识pti_miss=1。For example, following the above description, after sending the second attachment request, the mobile terminal receives the attachment response returned by the target network, and extracts the transaction identifier PTI1 carried by the attachment response, and PTI1 is inconsistent with the transaction identifier PTI2 recorded by the mobile terminal. , The mobile terminal will set the PTI matching identifier pti_miss = 1.

步骤S210,继续重复发送附着请求,直至接收到目标网络发送的去附着消息。In step S210, the attach request is repeatedly sent until a detach message is received from the target network.

继续重复发送附着请求的步骤,可以位于步骤S208之前,也可以位于步骤S208之后,或者与步骤S208同时进行。发送新的附着请求时,新的附着请求携带的PTI在上一次发送的附着请求携带的PTI的基础上递增。即每轮附着过程中,移动终端发送的第一次附着请求携带的PTI为初始值(如PTI1),此后每次附着请求携带的PTI均在初始值的基础上依次递增,如第二次附着请求携带的PTI为PTI2,第三次附着请求携带的PTI为PTI3,等等。The step of repeatedly sending the attach request may be located before step S208, or after step S208, or performed simultaneously with step S208. When a new attach request is sent, the PTI carried by the new attach request is incremented on the basis of the PTI carried by the last sent attachment request. That is, the PTI carried in the first attachment request sent by the mobile terminal during each attachment process is the initial value (such as PTI1), and thereafter the PTI carried by each attachment request is sequentially increased from the initial value, such as the second attachment The PTI carried in the request is PTI2, the PTI carried in the third attach request is PTI3, and so on.

步骤S212,检测PTI匹配标识是否为第一指定值;如果是,执行步骤S216;如果否,执行步骤S214。In step S212, it is detected whether the PTI matching identifier is the first specified value; if so, step S216 is performed; if not, step S214 is performed.

如果接收到目标网络发送的去附着消息,不会直接禁用网络附着功能。而是先检测PTI匹配标识是否为第一指定值。当第一指定值为1时,如果检测到pti_miss=1,则可以确定附着失败的原因为PTI冲突;如果检测到pti_miss=0,则可以确定附着失败的原因不是PTI冲突。If a detach message is received from the target network, the network attach function will not be disabled directly. Instead, it is first detected whether the PTI matching identifier is the first specified value. When the first specified value is 1, if pti_miss = 1 is detected, it can be determined that the cause of the attachment failure is a PTI conflict; if pti_miss = 0 is detected, it can be determined that the cause of the attachment failure is not a PTI conflict.

考虑到在网络附着过程中,目标网络发送的去附着消息携带有去附着类型标识,目前使用较普遍的去附着类型标识主要包括允许再次附着(0x1)、禁止再次附着(0x2)和IMSI(InternationalMobileSubscriberIdentificationNumber,国际移动用户识别码)去附着(0x3)。其中,如果去附着消息中的去附着类型标识为0x1,表明去附着的原因为暂时异常,移动终端可以再次发送附着请求,重新连接目标网络。如果去附着消息中的去附着类型标识为0x2,表明由于网络侧原因或其它原因(如PTI冲突等),导致目标网络禁止移动终端再次发送附着请求。如果去附着消息中的去附着类型标识为0x3,表明去附着的原因为IMSI码异常,例如,IMSI码未通过鉴权等。Considering that during the network attachment process, the detach message sent by the target network carries the detach type identifier. Currently, the more commonly used detach type identifiers mainly include allow reattach (0x1), prohibit reattach (0x2) and IMSI (InternationalMobileSubscriberIdentificationNumber , International Mobile Subscriber Identity) to detach (0x3). Wherein, if the detach type identifier in the detach message is 0x1, it indicates that the cause of the detach is a temporary abnormality, and the mobile terminal may send an attach request again to reconnect to the target network. If the detach type identifier in the detach message is 0x2, it indicates that the target network prohibits the mobile terminal from sending the attach request again due to a network-side reason or other reasons (such as a PTI conflict). If the detach type identifier in the detach message is 0x3, it indicates that the cause of the detach is the IMSI code abnormality, for example, the IMSI code fails authentication.

可选地,为了节约能耗,移动终端无需在每次接收到去附着消息时,均检测PTI匹配标识是否为第一指定值。移动终端可以仅在接收到的去附着消息中 的去附着类型标识为0x2时,检测PTI匹配标识是否为第一指定值。Optionally, in order to save energy consumption, the mobile terminal does not need to detect whether the PTI matching identifier is the first specified value each time it receives the detach message. The mobile terminal may detect whether the PTI match identifier is the first specified value only when the detach type identifier in the received detach message is 0x2.

步骤S214,按照相关技术执行。Step S214 is performed according to the related technology.

步骤S216,设置PTI匹配标识为第二指定值。Step S216: Set the PTI matching identifier to the second specified value.

步骤S218,重新发起下一轮附着过程。In step S218, the next attachment process is re-initiated.

如果PTI匹配标识为第二指定值,则可以按照现有的规则禁用网络附着功能,不再发送附着请求。如果PTI匹配标识为第一指定值,不会禁用网络附着功能,而是设置PTI匹配标识为第二指定值,重新发起下一轮附着过程。例如,如果检测到pti_miss=1,则设置pti_miss=0,重新发起下一轮附着过程,新的一轮附着过程中的第一次附着请求携带的事务标识依然为初始值PTI1,其后每次发送的附着请求携带的事务标识依次递增。If the PTI match identifier is the second specified value, the network attachment function can be disabled according to the existing rules, and no attachment request is sent. If the PTI matching identifier is the first specified value, the network attachment function is not disabled, but the PTI matching identifier is set to the second specified value, and the next round of attaching process is re-initiated. For example, if pti_miss = 1 is detected, then pti_miss = 0 is set and the next attach process is re-initiated. The transaction identifier carried by the first attach request in the new attach process is still the initial value PTI1. The transaction identifier carried by the attached request is incremented in turn.

上述步骤S206和步骤S208的顺序可以相互调换。The sequence of the above steps S206 and S208 may be reversed.

可选地,如果发起附着过程的轮数达到设定轮数,则可以禁用网络附着功能,不再发起新一轮的附着过程,以节省移动终端的电能。Optionally, if the number of rounds for initiating the attachment process reaches a set number of rounds, the network attachment function may be disabled and a new round of attachment process may not be initiated to save power of the mobile terminal.

上述网络附着控制方法,在本轮附着过程中,如果移动终端接收到附着响应,将检查附着响应携带的PTI与最近一次发送的附着请求携带的PTI是否相同,如果不同,将预设的PTI匹配标识设置为第一指定值,继续重复发送附着请求。当接收到目标网络发送的去附着消息,检查PTI匹配标识是否为第一指定值,如果是,说明附着失败的原因为PTI冲突,则重新发起下一轮附着过程,以使移动终端可以完成网络附着过程。因而可以减少因事务标识冲突而导致移动终端无法附着至目标网络的现象,提高用户使用移动网络的通讯体验。In the above network attachment control method, during the current attachment process, if the mobile terminal receives an attachment response, it will check whether the PTI carried in the attachment response is the same as the PTI carried in the last attachment request sent. If they are different, match the preset PTI. The flag is set to the first specified value, and the attach request is repeatedly sent. When receiving the detach message sent by the target network, check whether the PTI match identifier is the first specified value. If it is, it indicates that the cause of the attachment failure is a PTI conflict, then re-initiate the next round of attach process so that the mobile terminal can complete the network. Attach process. Therefore, the phenomenon that the mobile terminal cannot be attached to the target network due to the conflict of transaction identifiers can be reduced, and the communication experience of the user using the mobile network can be improved.

图3示出了本发明实施例的移动终端在网络附着的过程中与目标网络的交互流程图。如图3所示,移动终端的网络附着过程包括如下步骤:FIG. 3 shows a flowchart of interaction between a mobile terminal and a target network during a network attachment process according to an embodiment of the present invention. As shown in FIG. 3, the network attachment process of the mobile terminal includes the following steps:

(1)移动终端确定目标网络后,向目标网络发送附着请求,该附着请求携带有事务标识PTI1和用户标识等信息。(1) After the mobile terminal determines the target network, it sends an attachment request to the target network. The attachment request carries information such as a transaction identifier PTI1 and a user identifier.

(2)目标网络接收到附着请求后,与移动终端之间进行相互鉴权,目标网络通过移动终端的用户标识等信息确定移动终端的身份,将目标网络的网络标识等信息发送至移动终端,使移动终端确定目标网络的身份。(2) After receiving the attach request, the target network performs mutual authentication with the mobile terminal. The target network determines the identity of the mobile terminal by using the mobile terminal's user identification and other information, and sends the target network's network identification and other information to the mobile terminal. Enables the mobile terminal to determine the identity of the target network.

(3)目标网络与移动终端之间进行NAS安全协商和ESM信息传送,约定双方通讯过程所遵循的通讯安全协议和数据格式等协议规定。(3) NAS security negotiation and ESM information transmission are conducted between the target network and the mobile terminal, and agreement on communication security protocols and data formats followed by the communication process between the two parties is stipulated.

(4)目标网络为移动终端分配临时标识和IP地址,创建通信上下文信息,并生成默认承载,向移动终端发送包含默认承载的附着响应。在此期间,移动 终端将等待目标网络返回附着响应,如果在规定的第一设定时长内,移动终端未接收到目标网络返回的附着响应。移动终端将重新发送附着请求,第二次附着请求携带有事务标识PTI2。(4) The target network assigns a temporary identification and IP address to the mobile terminal, creates communication context information, and generates a default bearer, and sends an attachment response containing the default bearer to the mobile terminal. During this period, the mobile terminal will wait for the target network to return the attach response. If the mobile terminal does not receive the attach response returned by the target network within the prescribed first set time period. The mobile terminal will resend the attach request, and the second attach request carries the transaction identifier PTI2.

(5)在移动终端重新发送网络附着请求后,如果目标网络向移动终端返回了附着响应,该附着响应携带的事务标识为PTI1。移动终端接收到该附着响应。比较后确定该附着响应的事务标识PTI1与最近一次发送的附着请求的事务标识PTI2不一致,将记录附着失败的原因为PTI冲突,并且重新发送新的附着请求。(5) After the mobile terminal resends the network attachment request, if the target network returns an attachment response to the mobile terminal, the transaction identifier carried by the attachment response is PTI1. The mobile terminal receives the attach response. After comparison, it is determined that the transaction identifier PTI1 of the attachment response is inconsistent with the transaction identifier PTI2 of the latest attachment request sent, the cause of the attachment failure is recorded as a PTI conflict, and a new attachment request is resent.

(6)如果移动终端接收到目标网络发送的去附着消息,确定附着失败的原因是否为PTI冲突;如果是,启动新一轮附着请求,以使移动终端完成网络附着过程。新的一轮附着过程中的第一次附着请求携带的事务标识依然为PTI1。(6) If the mobile terminal receives the detach message sent by the target network, determine whether the cause of the attachment failure is a PTI conflict; if so, start a new round of attachment requests to enable the mobile terminal to complete the network attachment process. The transaction identifier carried in the first attachment request in the new round of attachment process is still PTI1.

需要说明的是,上述各方法实施例之间相同相似的部分未重复描述,可以互相参见。It should be noted that the same or similar parts between the foregoing method embodiments are not repeatedly described, and reference may be made to each other.

本发明实施例还提供了一种与上述方法实施例相对应的网络附着控制装置,应用于移动终端。如图4所示,该装置包括:An embodiment of the present invention further provides a network attachment control device corresponding to the foregoing method embodiment, which is applied to a mobile terminal. As shown in Figure 4, the device includes:

原因确定模块41,用于在本轮附着过程中,如果接收到目标网络发送的去附着消息,检查附着失败的原因是否为事务标识PTI冲突;A cause determination module 41 is configured to check whether the cause of the attachment failure is a transaction identifier PTI conflict if a detach message sent by the target network is received during the current attachment process;

请求更新模块42,用于如果附着失败的原因为事务标识PTI冲突,重新发起下一轮附着过程;其中,在每轮附着过程中的附着请求携带的PTI均从初始值开始依次递增。A request update module 42 is used to re-initiate the next round of attach process if the cause of the attach failure is a transaction identifier PTI conflict; wherein the PTI carried by the attach request in each round of attach process is sequentially increased from the initial value.

可选地,如图5所示,上述装置还可以包括记录模块51。Optionally, as shown in FIG. 5, the above device may further include a recording module 51.

记录模块51,用于当移动终端在本轮附着过程中接收到附着响应时,检查附着响应携带的PTI与最近一次发送的附着请求携带的PTI是否相同;如果不同,记录附着失败的原因为事务标识PTI冲突。A recording module 51 is used to check whether the PTI carried by the attachment response is the same as the PTI carried by the most recently sent attachment request when the mobile terminal receives the attachment response during the current attachment process; if the PTI carried by the latest attachment request is different, the reason for recording the attachment failure is a transaction Identifies a PTI conflict.

其中,记录模块51,还可以用于:将预设的PTI匹配标识设置为第一指定值;其中,所述PTI匹配标识的初始值为第二指定值。The recording module 51 may be further configured to: set a preset PTI matching identifier to a first specified value; wherein the initial value of the PTI matching identifier is a second specified value.

记录模块51,还可以用于:当重新发起下一轮附着过程时,清空附着失败的原因。或者,当重新发起下一轮附着过程时,设置所述PTI匹配标识设置为所述第二指定值。The recording module 51 may be further configured to: clear the cause of the attachment failure when re-initiating the next attachment process. Alternatively, when the next attach process is re-initiated, the PTI matching identifier is set to the second specified value.

上述本发明实施例提供的网络附着控制装置,在本轮附着过程中,如果接收到目标网络发送的去附着消息,检查附着失败的原因是否为PTI冲突。如果附着失败的原因为PTI冲突,则重新发起下一轮附着过程,以使移动终端完成 网络附着过程。因而可以减少因事务标识冲突而导致移动终端无法附着至目标网络的现象,提高用户使用移动网络的通讯体验。In the above-mentioned network attachment control device provided by the embodiment of the present invention, during the current round of attachment process, if a detach message sent by the target network is received, it is checked whether the cause of the attachment failure is a PTI conflict. If the cause of the attachment failure is a PTI conflict, the next round of attachment process is re-initiated to enable the mobile terminal to complete the network attachment process. Therefore, the phenomenon that the mobile terminal cannot be attached to the target network due to the conflict of transaction identifiers can be reduced, and the communication experience of the user using the mobile network can be improved.

本实施例所提供的网络附着控制装置,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述方法实施例中的相应内容。该网络附着装置具有实现上述网络附着控制方法行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。The implementation principle and technical effect of the network attachment control device provided in this embodiment are the same as those of the foregoing method embodiments. For a brief description, the parts not mentioned in the device embodiments can refer to the corresponding content in the foregoing method embodiments. . The network attachment device has a function of realizing the behavior of the above network attachment control method. The functions may be implemented by hardware, and may also be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.

与上述实施例相对应的,本发明实施例还提供了一种移动终端。该移动终端可以为包括手机、平板电脑、POS(Point of Sales,销售终端)、车载电脑、智能穿戴设备等终端设备。Corresponding to the above embodiments, an embodiment of the present invention further provides a mobile terminal. The mobile terminal may be a terminal device such as a mobile phone, a tablet computer, a Point of Sale (POS), a vehicle-mounted computer, and a smart wearable device.

图6示出了一种本发明实施例提供的移动终端的结构框图。如图6所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端100包括:射频(Radio Frequency,RF)电路110、存储器120、输入单元130、显示单元140、传感器150、音频电路160、无线保真(wireless fidelity,WiFi)模块170、处理器180、以及电源190等部件。本领域技术人员可以理解,图6中示出的移动终端100结构并不构成对移动终端100的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 6 shows a structural block diagram of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 6, for convenience of explanation, only the parts related to the embodiment of the present invention are shown, and specific technical details are not disclosed, please refer to the method part of the embodiment of the present invention. The mobile terminal 100 includes: a radio frequency (RF) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless fidelity (WiFi) module 170, a processor 180, And power supply 190 and other components. Those skilled in the art can understand that the structure of the mobile terminal 100 shown in FIG. 6 does not constitute a limitation on the mobile terminal 100, and may include more or fewer components than shown in the figure, or combine some components, or different components. Layout.

下面结合图6对移动终端100的各个构成部件进行具体的介绍:Each component of the mobile terminal 100 is specifically described below with reference to FIG. 6:

RF电路110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器180处理;另外,将设计上行的数据发送给基站。通常,RF电路110包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。虽然图6示出了RF电路110但是可以理解的是,其并不属于移动终端100的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。The RF circuit 110 may be used for receiving and sending signals during the process of receiving and sending information or during a call. In particular, the downlink information of the base station is received and processed by the processor 180; in addition, the uplink data of the design is sent to the base station. Generally, the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 110 can also communicate with a network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including, but not limited to, Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc. Although FIG. 6 shows the RF circuit 110, it can be understood that it does not belong to the necessary configuration of the mobile terminal 100, and can be omitted as needed without changing the essence of the invention.

存储器120可用于存储软件程序以及模块,如本发明实施例中的网络附着控制方法以及装置对应的程序指令/模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行移动终端100的各种功能应用以及数据处理,如本发明实施例提供的网络附着控制方法。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据移动终端100的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 120 may be used to store software programs and modules, such as the network attachment control method and program instructions / modules corresponding to the devices in the embodiments of the present invention. The processor 180 executes the mobile terminal 100 by running the software programs and modules stored in the memory 120. Various functional applications and data processing, such as the network attachment control method provided by the embodiment of the present invention. The memory 120 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc .; the storage data area may store data according to The mobile terminal 100 uses the created data (such as audio data, phonebook, etc.) and the like. In addition, the memory 120 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.

输入单元130可用于接收输入的数字或字符信息,以及产生与移动终端100的用户设置以及功能控制有关的键信号输入。具体地,输入单元130可包括触控面板131以及其他输入设备132。触控面板131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板131上或在触控面板131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板131。除了触控面板131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 130 may be configured to receive inputted numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal 100. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also known as a touch screen, can collect user's touch operations on or near it (for example, the user uses a finger, a stylus or any suitable object or accessory on the touch panel 131 or near the touch panel 131. Operation), and drive the corresponding connection device according to a preset program. Optionally, the touch panel 131 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and sends it It is given to the processor 180, and can receive the command sent by the processor 180 and execute it. In addition, various types such as resistive, capacitive, infrared, and surface acoustic wave can be used to implement the touch panel 131. In addition to the touch panel 131, the input unit 130 may further include other input devices 132. Specifically, the other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

显示单元140可用于显示由用户输入的信息或提供给用户的信息以及移动终端100的各种菜单。显示单元140可包括显示面板141,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板141。进一步的,触控面板131可覆盖显示面板141,当触控面板131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型做处理。虽然在图6中,触控面板131与显示面板141是作为两个独立的部件来实现移动终端100的输入和输入功能,但是在某些实施例中,可以将触控面板131与显示面板141集成而实现移动终端100的输入和输出功能。The display unit 140 may be configured to display information input by the user or information provided to the user and various menus of the mobile terminal 100. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light emitting diode (Organic Light-Emitting Diode, OLED), and the like. Further, the touch panel 131 may cover the display panel 141. When the touch panel 131 detects a touch operation on or near the touch panel 131, the touch panel 131 transmits the touch operation to the processor 180 to determine the type of the touch event. Type to do processing. Although in FIG. 6, the touch panel 131 and the display panel 141 are implemented as two independent components to implement the input and input functions of the mobile terminal 100, in some embodiments, the touch panel 131 and the display panel 141 may be used. Integrated to implement the input and output functions of the mobile terminal 100.

移动终端100还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在移动终端100移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端100姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于移动终端100还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile terminal 100 may further include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light. The proximity sensor may close the display panel 141 when the mobile terminal 100 moves to the ear. And / or backlight. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary. , Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc. As for the mobile terminal 100, other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. I will not repeat them here.

音频电路160、扬声器161,传声器162可提供用户与移动终端100之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一移动终端100,或者将音频数据输出至存储器120以便进一步处理。The audio circuit 160, the speaker 161, and the microphone 162 may provide an audio interface between the user and the mobile terminal 100. The audio circuit 160 may transmit the received electrical data converted electric signal to the speaker 161, and the speaker 161 converts it into a sound signal for output. On the other hand, the microphone 162 converts the collected sound signal into an electric signal, and the audio circuit 160 After receiving, it is converted into audio data, and then the audio data output processor 180 is processed and then sent to, for example, another mobile terminal 100 via the RF circuit 110, or the audio data is output to the memory 120 for further processing.

WiFi属于短距离无线传输技术,移动终端100通过WiFi模块170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。WiFi is a short-range wireless transmission technology. The mobile terminal 100 can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 170. It provides users with wireless broadband Internet access.

处理器180是移动终端100的控制中心,利用各种接口和线路连接整个移动终端100的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行移动终端100的各种功能和处理数据,从而对移动终端100进行整体监控。可选的,处理器180可包括一个或多个处理单元;可选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The processor 180 is a control center of the mobile terminal 100, and connects various parts of the entire mobile terminal 100 by using various interfaces and lines, and runs or executes software programs and / or modules stored in the memory 120 and calls stored in the memory 120 To perform various functions of the mobile terminal 100 and process the data, thereby performing overall monitoring of the mobile terminal 100. Optionally, the processor 180 may include one or more processing units; optionally, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program. Etc., the modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 180.

移动终端100还包括给各个部件供电的电源190(比如电池),可选的,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 100 also includes a power source 190 (such as a battery) for supplying power to various components. Optionally, the power source can be logically connected to the processor 180 through a power management system, thereby implementing management of charging, discharging, and power consumption management through the power management system. Features.

可以理解,图6所示的结构仅为示意,移动终端100还可包括比图6中所示更多或者更少的组件,或者具有与图6所示不同的配置。图6中所示的各组 件可以采用硬件、软件或其组合实现。It can be understood that the structure shown in FIG. 6 is only schematic, and the mobile terminal 100 may further include more or fewer components than those shown in FIG. 6, or have a different configuration from that shown in FIG. 6. The components shown in FIG. 6 can be implemented by hardware, software, or a combination thereof.

进一步地,本发明实施例还提供了一种机器可读存储介质,该机器可读存储介质存储有机器可执行指令,该机器可执行指令在被处理器调用和执行时,机器可执行指令促使处理器实现上述网络附着控制方法。Further, an embodiment of the present invention further provides a machine-readable storage medium that stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause The processor implements the network attachment control method described above.

需要说明的是,上述各实施例之间均采用递进的方式描述,每个实施例重点说明的是与其他实施例的不同之处,各个实施例之间相同相似的部分未重复描述,可以互相参见。It should be noted that the foregoing embodiments are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments are not described repeatedly. See each other.

本发明实施例所提供的网络附着控制方法、装置和移动终端,具有相同的技术特征,也能解决相同的技术问题,达到相同的技术效果。The network attachment control method, device and mobile terminal provided by the embodiments of the present invention have the same technical characteristics, can also solve the same technical problems, and achieve the same technical effect.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序,也不能理解为指示或暗示相对重要性。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations The existence of any such actual relationship or order cannot be understood as indicating or implying relative importance. Moreover, the terms "including", "comprising", or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements includes not only those elements but also those that are not explicitly listed Or other elements inherent to such a process, method, article, or device. Without more restrictions, the elements defined by the sentence "including a ..." do not exclude the existence of other identical elements in the process, method, article, or equipment that includes the elements.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。The above descriptions are merely preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention. It should be noted that similar reference numerals and letters indicate similar items in the following drawings, so once an item is defined in one drawing, it need not be further defined and explained in subsequent drawings.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the scope of protection of the present invention is not limited to this. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present invention. It should be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

本发明实施例还揭示了:The embodiment of the invention also discloses:

A1.一种网络附着控制方法,应用于移动终端,所述方法包括:A1. A network attachment control method applied to a mobile terminal, the method comprising:

在本轮附着过程中,如果接收到目标网络发送的去附着消息,检查附着失 败的原因是否为事务标识PTI冲突;During the current attachment process, if a detach message is received from the target network, check whether the cause of the attachment failure is a PTI conflict in the transaction identifier;

如果是,重新发起下一轮附着过程;其中,在每轮附着过程中的附着请求携带的PTI均从初始值开始依次递增。If yes, re-initiate the next round of attachment process; among them, the PTI carried by the attachment request in each round of attachment process is sequentially increased from the initial value.

A2.根据A1所述的方法,所述方法还包括:A2. The method according to A1, further comprising:

当所述移动终端在本轮附着过程中接收到附着响应时,检查所述附着响应携带的PTI与最近一次发送的附着请求携带的PTI是否相同;When the mobile terminal receives an attach response during the current attach process, it checks whether the PTI carried in the attach response is the same as the PTI carried in the last attach request sent;

如果不同,记录附着失败的原因为事务标识PTI冲突。If they are different, the reason for the record attachment failure is the conflict of transaction identifier PTI.

A3.根据A2所述的方法,所述记录附着失败的原因为事务标识PTI冲突的步骤,包括:A3. The method according to A2, wherein the reason why the record attachment fails is a step of conflicting transaction identifier PTIs, including:

将预设的PTI匹配标识设置为第一指定值;其中,所述PTI匹配标识的初始值为第二指定值。The preset PTI matching identifier is set to a first specified value; wherein the initial value of the PTI matching identifier is a second specified value.

A4.根据A3所述的方法,所述方法还包括:A4. The method according to A3, further comprising:

当重新发起下一轮附着过程时,设置所述PTI匹配标识设置为所述第二指定值。When the next attach process is re-initiated, the PTI matching identifier is set to the second specified value.

A5.根据A2所述的方法,所述方法还包括:A5. The method according to A2, further comprising:

当重新发起下一轮附着过程时,清空所述附着失败的原因。When the next attachment process is re-initiated, the cause of the attachment failure is cleared.

A6.根据A1所述的方法,所述目标网络发送的去附着消息中携带的去附着类型标识为禁止再次附着。A6. According to the method of A1, the detachment type identifier carried in the detachment message sent by the target network is forbidden to attach again.

B7.一种网络附着装置,应用于移动终端,所述装置包括:B7. A network attachment device applied to a mobile terminal, the device comprising:

原因确定模块,用于在本轮附着过程中,如果接收到目标网络发送的去附着消息,检查附着失败的原因是否为事务标识PTI冲突;A cause determination module is used to check whether the cause of the attachment failure is a PTI conflict in the transaction identifier if a detach message is received from the target network during the current attachment process;

请求更新模块,用于如果附着失败的原因为事务标识PTI冲突,重新发起下一轮附着过程;其中,在每轮附着过程中的附着请求携带的PTI均从初始值开始依次递增。A request update module is used to re-initiate the next round of attachment process if the cause of the attachment failure is a conflict of transaction identifier PTI; among them, the PTI carried by the attachment request in each round of attachment process is sequentially increased from the initial value.

B8.根据B7所述的装置,所述装置还包括:B8. The device according to B7, further comprising:

记录模块,用于当所述移动终端在本轮附着过程中接收到附着响应时,检查所述附着响应携带的PTI与最近一次发送的附着请求携带的PTI是否相同;如果不同,记录附着失败的原因为事务标识PTI冲突。A recording module, configured to check whether the PTI carried by the attachment response is the same as the PTI carried by the most recent attachment request sent when the mobile terminal receives an attachment response during the current round of attachment; if they are different, record the The reason is that the transaction ID PTI conflicts.

B9.根据B8所述的装置,所述记录模块还用于:B9. The device according to B8, the recording module is further configured to:

将预设的PTI匹配标识设置为第一指定值;其中,所述PTI匹配标识的初始值为第二指定值。The preset PTI matching identifier is set to a first specified value; wherein the initial value of the PTI matching identifier is a second specified value.

B10.根据B9所述的装置,所述记录模块还用于:B10. The device according to B9, the recording module is further configured to:

当重新发起下一轮附着过程时,设置所述PTI匹配标识设置为所述第二指定值。When the next attach process is re-initiated, the PTI matching identifier is set to the second specified value.

B11.根据B8所述的装置,所述记录模块还用于:B11. The device according to B8, the recording module is further configured to:

当重新发起下一轮附着过程时,清空所述附着失败的原因。When the next attachment process is re-initiated, the cause of the attachment failure is cleared.

C12.一种移动终端,包括存储器以及处理器,所述存储器用于存储支持处理器执行A1~A6中任一项所述方法的程序,所述处理器被配置为用于执行所述存储器中存储的程序。C12. A mobile terminal, comprising a memory and a processor, where the memory is configured to store a program that supports a processor to execute the method of any of A1 to A6, and the processor is configured to execute the memory. Stored programs.

D13.一种机器可读存储介质,存储有为B7~B11中任一项所述装置所用的计算机软件指令。D13. A machine-readable storage medium storing computer software instructions for use in the apparatus of any one of B7 to B11.

Claims (20)

一种网络附着控制方法,其中,应用于移动终端,所述方法包括:A network attachment control method, which is applied to a mobile terminal, and the method includes: 在本轮附着过程中,如果接收到目标网络发送的去附着消息,检查附着失败的原因是否为事务标识PTI冲突;During the current attachment process, if a detach message is received from the target network, check whether the cause of the attachment failure is a PTI conflict with the transaction identifier; 如果是,重新发起下一轮附着过程;其中,在每轮附着过程中的附着请求携带的PTI均从初始值开始依次递增。If yes, re-initiate the next round of attachment process; among them, the PTI carried by the attachment request in each round of attachment process is sequentially increased from the initial value. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, further comprising: 当所述移动终端在本轮附着过程中接收到附着响应时,检查所述附着响应携带的PTI与最近一次发送的附着请求携带的PTI是否相同;When the mobile terminal receives an attach response during the current attach process, it checks whether the PTI carried in the attach response is the same as the PTI carried in the last attach request sent; 如果不同,记录附着失败的原因为事务标识PTI冲突。If they are different, the reason for the record attachment failure is the conflict of transaction identifier PTI. 根据权利要求2所述的方法,其中,所述记录附着失败的原因为事务标识PTI冲突的步骤,包括:The method according to claim 2, wherein the reason why the record attachment fails is the step of conflicting transaction identifier PTIs, comprising: 将预设的PTI匹配标识设置为第一指定值;其中,所述PTI匹配标识的初始值为第二指定值。The preset PTI matching identifier is set to a first specified value; wherein the initial value of the PTI matching identifier is a second specified value. 根据权利要求3所述的方法,其中,所述方法还包括:The method according to claim 3, wherein the method further comprises: 当重新发起下一轮附着过程时,将所述PTI匹配标识设置为所述第二指定值。When the next attachment process is re-initiated, the PTI matching identifier is set to the second specified value. 根据权利要求2所述的方法,其中,所述方法还包括:The method according to claim 2, wherein the method further comprises: 当重新发起下一轮附着过程时,清空所述附着失败的原因。When the next attachment process is re-initiated, the cause of the attachment failure is cleared. 根据权利要求2所述的方法,其中,所述记录附着失败的原因为事务标识PTI冲突的步骤,包括:The method according to claim 2, wherein the reason why the record attachment fails is the step of conflicting transaction identifier PTIs, comprising: 在内存的指定位置记录附着失败的原因为事务标识PTI冲突。The reason why the attachment failure is recorded in the specified position in the memory is that the transaction identifier PTI conflicts. 根据权利要求2所述的方法,其中,所述检查附着失败的原因是否为事务标识PTI冲突,包括:The method according to claim 2, wherein the checking whether the cause of the attachment failure is a transaction identifier PTI conflict comprises: 遍历本轮附着过程中所记录的每一次附着失败的原因;Traverse the reasons for each attachment failure recorded during the current attachment process; 若存在至少一次所记录的附着失败的原因为PTI冲突,则确定附着失败的原因为PTI冲突。If the cause of the attachment failure recorded at least once is a PTI conflict, it is determined that the cause of the attachment failure is a PTI conflict. 根据权利要求1所述的方法,其中,所述目标网络发送的去附着消息中携带的去附着类型标识为禁止再次附着。The method according to claim 1, wherein the detachment type identifier carried in the detachment message sent by the target network is forbidden to attach again. 根据权利要求8所述的方法,其中,所述如果接收到目标网络发送的去附着消息,检查附着失败的原因是否为事务标识PTI冲突,包括:The method according to claim 8, wherein if the detach message sent by the target network is received, checking whether the cause of the attachment failure is a transaction identifier PTI conflict comprises: 如果接收到目标网络发送的去附着消息,则检测所述去附着消息中的去附着类型标识是否为所述禁止再次附着;If a detach message sent by the target network is received, detecting whether the detach type identifier in the detach message is the forbidden re-attach; 若是,则检查附着失败的原因是否为事务标识PTI冲突。If yes, check whether the cause of the attachment failure is a conflict of transaction identifier PTI. 根据权利要求1所述的方法,其中,所述如果是,重新发起下一轮附着过程,包括:The method according to claim 1, wherein, if it is, re-initiating a next round of attachment process comprises: 如果是,检测发起附着过程的轮数是否达到设定轮数;If yes, check whether the number of rounds to initiate the attachment process reaches the set number of rounds; 若未达到设定轮数,则重新发起下一轮附着过程。If the set number of rounds is not reached, the next round of attachment process is re-initiated. 一种网络附着装置,其中,应用于移动终端,所述装置包括:A network attachment device, which is applied to a mobile terminal, and the device includes: 原因确定模块,用于在本轮附着过程中,如果接收到目标网络发送的去附着消息,检查附着失败的原因是否为事务标识PTI冲突;A cause determination module is used to check whether the cause of the attachment failure is a PTI conflict in the transaction identifier if a detach message is received from the target network during the current attachment process; 请求更新模块,用于如果附着失败的原因为事务标识PTI冲突,重新发起下一轮附着过程;其中,在每轮附着过程中的附着请求携带的PTI均从初始值开始依次递增。A request update module is used to re-initiate the next round of attachment process if the cause of the attachment failure is a conflict of transaction identifier PTI; among them, the PTI carried by the attachment request in each round of attachment process is sequentially increased from the initial value. 根据权利要求11所述的装置,其中,所述装置还包括:The apparatus according to claim 11, wherein the apparatus further comprises: 记录模块,用于当所述移动终端在本轮附着过程中接收到附着响应时,检查所述附着响应携带的PTI与最近一次发送的附着请求携带的PTI是否相同;如果不同,记录附着失败的原因为事务标识PTI冲突。A recording module, configured to check whether the PTI carried by the attachment response is the same as the PTI carried by the most recent attachment request sent when the mobile terminal receives an attachment response during the current round of attachment; if they are different, record the The reason is that the transaction ID PTI conflicts. 根据权利要求12所述的装置,其中,所述记录模块还用于:将预设的PTI匹配标识设置为第一指定值;其中,所述PTI匹配标识的初始值为第二指定值。The device according to claim 12, wherein the recording module is further configured to: set a preset PTI matching identifier to a first specified value; wherein the initial value of the PTI matching identifier is a second specified value. 根据权利要求12所述的装置,其中,所述记录模块还用于:当重新发起下一轮附着过程时,清空附着失败的原因;和/或,当重新发起下一轮附着过程时,将所述PTI匹配标识设置为所述第二指定值。The apparatus according to claim 12, wherein the recording module is further configured to: when re-initiating the next round of attachment process, clear the cause of the attachment failure; and / or, when re-initiating the next round of attachment process, The PTI matching identifier is set to the second specified value. 根据权利要求12所述的装置,其中,所述记录模块具体用于:在内存的指定位置记录附着失败的原因为事务标识PTI冲突。The device according to claim 12, wherein the recording module is specifically configured to: record the cause of the attachment failure at a specified location in the memory as a conflict of transaction identifier PTI. 根据权利要求11所述的装置,其中,所述原因确定模块具体用于:The apparatus according to claim 11, wherein the cause determination module is specifically configured to: 遍历本轮附着过程中所记录的每一次附着失败的原因;Traverse the reasons for each attachment failure recorded during the current attachment process; 若存在至少一次所记录的附着失败的原因为PTI冲突,则确定附着失败的 原因为PTI冲突。If the cause of the attachment failure recorded at least once is a PTI conflict, it is determined that the cause of the attachment failure is a PTI conflict. 根据权利要求11所述的装置,其中,所述原因确定模块具体用于:The apparatus according to claim 11, wherein the cause determination module is specifically configured to: 如果接收到目标网络发送的去附着消息,则检测所述去附着消息中的去附着类型标识是否为禁止再次附着;If a detachment message sent by the target network is received, detecting whether the detachment type identifier in the detachment message is forbidden to reattach; 若是,则检查附着失败的原因是否为事务标识PTI冲突。If yes, check whether the cause of the attachment failure is a conflict of transaction identifier PTI. 根据权利要求11所述的装置,其中,所述请求更新模块具体用于:The apparatus according to claim 11, wherein the request update module is specifically configured to: 如果附着失败的原因为事务标识PTI冲突,检测发起附着过程的轮数是否达到设定轮数;If the cause of the attachment failure is a conflict in the transaction identifier PTI, check whether the number of rounds to initiate the attachment process reaches the set number of rounds; 若未达到设定轮数,则重新发起下一轮附着过程。If the set number of rounds is not reached, the next round of attachment process is re-initiated. 一种移动终端,其中,包括存储器以及处理器,所述存储器用于存储支持处理器执行权利要求1~10中任一项所述方法的程序,所述处理器被配置为用于执行所述存储器中存储的程序。A mobile terminal comprising a memory and a processor, where the memory is configured to store a program that supports a processor to execute the method of any one of claims 1 to 10, and the processor is configured to execute the Program stored in memory. 一种机器可读存储介质,其中,存储有为权利要求11~18中任一项所述装置所用的计算机软件指令。A machine-readable storage medium storing computer software instructions for use in the apparatus of any one of claims 11 to 18.
PCT/CN2019/083943 2018-06-01 2019-04-23 Network attachment control method and device, and mobile terminal Ceased WO2019228103A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810561078.9 2018-06-01
CN201810561078.9A CN108769976B (en) 2018-06-01 2018-06-01 Network attachment control method and device and mobile terminal

Publications (1)

Publication Number Publication Date
WO2019228103A1 true WO2019228103A1 (en) 2019-12-05

Family

ID=64002218

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/083943 Ceased WO2019228103A1 (en) 2018-06-01 2019-04-23 Network attachment control method and device, and mobile terminal

Country Status (2)

Country Link
CN (1) CN108769976B (en)
WO (1) WO2019228103A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115988611A (en) * 2021-10-14 2023-04-18 中移物联网有限公司 A detachment method, device, terminal and readable storage medium

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769976B (en) * 2018-06-01 2021-07-20 深圳市知赢科技有限公司 Network attachment control method and device and mobile terminal
WO2020164425A1 (en) 2019-02-15 2020-08-20 华为技术有限公司 Method, device and system for sending terminal policy
CN111586668B (en) * 2019-02-15 2022-04-12 华为技术有限公司 Method, device and system for sending terminal strategy
US11310320B2 (en) * 2019-04-01 2022-04-19 Mediatek Inc. Enhanced procedure transaction ID (PTI) error handling
CN111586760B (en) * 2020-04-28 2021-03-16 广州技象科技有限公司 Terminal attachment method and device for narrow-band Internet of things
CN111901898B (en) * 2020-05-08 2021-04-09 广州技象科技有限公司 Terminal attachment method and device based on narrowband Internet of things
CN114020363B (en) * 2021-11-15 2023-12-15 海能达通信股份有限公司 Group attachment method and corresponding equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1780476A (en) * 2004-11-25 2006-05-31 华为技术有限公司 Method for supporting node route domain updation in universal wireless group service
US20060141999A1 (en) * 2004-12-29 2006-06-29 Funnell Nicola M Air interface management in mobile communications
CN102571581A (en) * 2012-01-05 2012-07-11 华为技术有限公司 Re-routing method, re-routing system, base station controller, and core network equipment in MOCN
CN108769976A (en) * 2018-06-01 2018-11-06 奇酷互联网络科技(深圳)有限公司 network attachment control method, device and mobile terminal

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008097388A (en) * 2006-10-13 2008-04-24 Kazunari Shimada Personal authentication device and personal authentication method
CN101330720A (en) * 2007-06-18 2008-12-24 华为技术有限公司 A processing method for accessing users, a user accessing system and equipment
CN101127769B (en) * 2007-08-20 2012-04-04 华为技术有限公司 Method, system, terminal, and server for user registration based on session initiation protocol
CN101541050B (en) * 2008-03-17 2011-01-05 大唐移动通信设备有限公司 Method and device for processing default connection of user equipment after intersystem switching
CN102123493B (en) * 2008-03-26 2014-11-19 华为技术有限公司 Registration method and device for packet data network connection
US8560816B2 (en) * 2010-06-30 2013-10-15 Oracle International Corporation System and method for performing incremental register checkpointing in transactional memory
CN102868618A (en) * 2011-07-08 2013-01-09 中兴通讯股份有限公司 Detaching method, detaching device and mapping server
JP6066586B2 (en) * 2012-05-22 2017-01-25 キヤノン株式会社 Information processing system, control method thereof, and program thereof
CN103476106B (en) * 2012-06-06 2017-05-10 华为技术有限公司 Terminal registration method, equipment and system
CN104581929B (en) * 2013-10-16 2018-12-28 华为终端有限公司 Network registering method, baseband chip and terminal
CN106658664B (en) * 2015-10-29 2020-02-18 奇点新源国际技术开发(北京)有限公司 Terminal wireless access management method and system
CN106412892B (en) * 2016-09-07 2019-10-29 努比亚技术有限公司 Mobile terminal falls net reconnection method and mobile terminal
CN107182109B (en) * 2017-07-17 2021-08-03 努比亚技术有限公司 Mobile network connection registration method, device and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1780476A (en) * 2004-11-25 2006-05-31 华为技术有限公司 Method for supporting node route domain updation in universal wireless group service
US20060141999A1 (en) * 2004-12-29 2006-06-29 Funnell Nicola M Air interface management in mobile communications
CN102571581A (en) * 2012-01-05 2012-07-11 华为技术有限公司 Re-routing method, re-routing system, base station controller, and core network equipment in MOCN
CN108769976A (en) * 2018-06-01 2018-11-06 奇酷互联网络科技(深圳)有限公司 network attachment control method, device and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ERICSSON: "Separation of NAS Signaling and PCC Concepts", 3GPP DRAFT; S2-084474_SDF, vol. SA WG2, 18 June 2008 (2008-06-18), XP050266610 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115988611A (en) * 2021-10-14 2023-04-18 中移物联网有限公司 A detachment method, device, terminal and readable storage medium

Also Published As

Publication number Publication date
CN108769976B (en) 2021-07-20
CN108769976A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
US10831161B2 (en) Method and device for sending communication message
WO2019228103A1 (en) Network attachment control method and device, and mobile terminal
CN108768775B (en) Information processing method, electronic device, and computer storage medium
CN106507289A (en) A wireless network access method and mobile terminal
US10691819B2 (en) Method and apparatus for remotely deleting information
CN109379735B (en) eSIM card operation method, mobile terminal and eSIM card device
CN112533189A (en) Transmission method, mobile terminal and storage medium
CN106454810A (en) A method and terminal equipment for establishing a hotspot
CN114158025B (en) Device reconnection method and related device
CN106445743A (en) Data backup transmission method and mobile terminal
CN108684069B (en) Network attachment method and device and mobile terminal
CN108966317A (en) Network searching method based on mobile terminal and mobile terminal
CN106604277A (en) Wireless network access method and mobile terminal
CN107872791B (en) Access point connection method and device
CN106331302B (en) A method and device for adding contacts
CN106713386A (en) Projection equipment binding communication method, projection equipment and intelligent terminal
CN113726880A (en) Electronic price tag networking method and device and computer readable storage medium
CN109257739B (en) eSIM card operation method, mobile terminal and eSIM card device
CN109089258B (en) eSIM card operation method, mobile terminal and eSIM card device
CN109219039B (en) eSIM card operation method, mobile terminal and eSIM card device
CN106658360A (en) A data transmission method and device
CN106792583A (en) Method and terminal that a kind of multimedia message sends
WO2019223440A1 (en) Network order adjustment method and apparatus, and mobile terminal
CN107979857B (en) Method and device for recovering network resource abnormity and mobile terminal
CN106714149B (en) Wireless network access method, device and terminal equipment

Legal Events

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

Ref document number: 19810189

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19810189

Country of ref document: EP

Kind code of ref document: A1