Data card control method and device, terminal equipment and storage medium
By detecting operational conflicts during data card switching and promptly resending PDN connection requests, the problem of long data card switching time was solved, enabling rapid recovery of the data link and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2021-07-05
- Publication Date
- 2026-06-05
Smart Images

Figure CN115589585B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of network communication technology, and in particular to a data card control method, apparatus, terminal equipment, and storage medium. Background Technology
[0002] A data card is a card used in mobile phones, tablets, and other terminal devices to store data. Examples include SIM (Subscriber Identity Module) cards and SD (Secure Digital Memory Card) cards. With rising living standards and the diversification of terminal device functions, devices with multiple data cards are becoming increasingly common. Dual-SIM dual-standby phones are a prime example, supporting simultaneous insertion and network access of two SIM cards. Their settings interface provides options for switching between data cards, allowing users to switch which SIM card provides data services. As users' reliance on data has become increasingly crucial, the ability to quickly restore data when switching data cards is paramount. Summary of the Invention
[0003] This disclosure provides a data card control method, apparatus, terminal device, and storage medium for rapidly recovering data.
[0004] According to a first aspect of the present disclosure, a data card control method is provided, comprising:
[0005] In response to the detection of a data card switching command, it is determined whether there is a conflict between the first operation and the second operation initiated by the target data card; the first operation is to send a Packet Data Network (PDN) connection establishment request to the network device, and the second operation is to send a network search request to the network device; the data card switching command is the command for the terminal device to switch from the source data card to the target data card;
[0006] In response to the absence of conflict between the first operation and the second operation, it is determined whether the network device responds to the PDN connection establishment request;
[0007] In response to the network device not responding to the PDN connection establishment request, the target data card is controlled to resend a new PDN connection establishment request to the network device.
[0008] According to a second aspect of the present disclosure, a data card control device is provided, comprising:
[0009] The first determining unit is configured to, in response to the detection of a data card switching instruction, determine whether there is a conflict between a first operation and a second operation initiated by the target data card; the first operation is to send a Packet Data Network (PDN) connection establishment request to the network device, and the second operation is to send a network search request to the network device; the data card switching instruction is an instruction for the terminal device to switch from the source data card to the target data card;
[0010] The second determining unit is used to determine whether the network device responds to the PDN connection establishment request;
[0011] The control unit is configured to, in response to the network device not responding to the PDN connection establishment request, control the target data card to resend a new PDN connection establishment request to the network device.
[0012] According to a third aspect of the present disclosure, a terminal device is provided, comprising:
[0013] processor;
[0014] A memory for storing processor-executable instructions; wherein the instructions are executed by the processor to enable the processor to perform the data card control method described in the first aspect of the present disclosure.
[0015] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, which, when instructions in the storage medium are executed by a processor of a terminal device, enables the terminal device to perform the data card control method described in the first aspect of the present disclosure.
[0016] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the data card control method described in the first aspect of the present disclosure.
[0017] The technical solutions provided by the embodiments of this disclosure may include at least the following beneficial effects:
[0018] When the terminal device detects a switchover command from the source data card to the target data card, it determines whether there is a conflict between the first and second operations initiated by the target data card. The first operation involves sending a PDN connection establishment request to the network device, and the second operation involves sending a network search request. If there is no conflict between the first and second operations, it determines whether the network device has responded to the PDN connection establishment request. If the network device does not respond, the terminal device immediately resends a new PDN connection establishment request to the network device. Therefore, when the terminal device's operation of sending a PDN connection establishment request to the network device and the search operation do not conflict, and the network device does not respond to the PDN connection establishment request, there is no need to wait for the failed retransmission time of the PDN connection establishment request. Instead, the terminal device immediately resends a new PDN connection establishment request to the network device, thereby shortening the time for re-establishing the PDN connection and improving the recovery speed of the data link between the terminal device and the network device. This achieves the goal of quickly establishing a data link and rapidly restoring data when switching data cards, thus improving the user's data experience.
[0019] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0020] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0021] Figure 1 This is a flowchart illustrating a data card control method according to an exemplary embodiment.
[0022] Figure 2 This is a flowchart illustrating another data card control method according to an exemplary embodiment.
[0023] Figure 3 This is a flowchart illustrating yet another data card control method according to an exemplary embodiment.
[0024] Figure 4 This is a flowchart illustrating yet another data card control method according to an exemplary embodiment.
[0025] Figure 5 This is a block diagram illustrating a data card control device according to an exemplary embodiment.
[0026] Figure 6 This is a block diagram illustrating another data card control device according to an exemplary embodiment.
[0027] Figure 7This is a block diagram illustrating yet another data card control device according to an exemplary embodiment.
[0028] Figure 8 This is a block diagram illustrating yet another data card control device according to an exemplary embodiment.
[0029] Figure 9 This is a block diagram illustrating another data card control device according to an exemplary embodiment.
[0030] Figure 10 This is a block diagram illustrating yet another data card control device according to an exemplary embodiment.
[0031] Figure 11 This is a block diagram illustrating a terminal device 1100 according to an exemplary embodiment. Detailed Implementation
[0032] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0033] The terminal device in this disclosure is a user-side entity used to receive or transmit signals, such as a mobile phone. The terminal device can also be called user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The terminal device can be a car with communication capabilities, a smart car, a mobile phone, a wearable device, a tablet computer, a computer with wireless transceiver capabilities, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self-driving, a wireless terminal device in remote medical surgery, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, a wireless terminal device in a smart home, and so on. This disclosure does not limit the specific technology or device form used in the terminal device.
[0034] The network device in this disclosure embodiment may be a base station, which may include multiple cells providing services to terminal devices. Depending on the specific application, the base station may also be called an access point, or a device in the access network that communicates with the wireless terminal device through one or more sectors on the air interface, or other names. The network device may be used to exchange received air frames with Internet Protocol (IP) packets, acting as a router between the wireless terminal device and the rest of the access network, where the rest of the access network may include an Internet Protocol (IP) communication network. The network device may also coordinate the attribute management of the air interface. For example, the network equipment involved in this disclosure can be a base transceiver station (BTS) in a Global System for Mobile communications (GSM) or Code Division Multiple Access (CDMA) system, a NodeB in a Wide-band Code Division Multiple Access (WCDMA) system, an evolved Node B (eNB or e-NodeB) in a long term evolution (LTE) system, a 5G base station (gNB) in a next generation system, a Home evolved Node B (HeNB), a relay node, a femto, a pico, etc., and is not limited in this disclosure. In some network structures, the network equipment may include centralized unit (CU) nodes and distributed unit (DU) nodes, and the centralized unit and distributed unit may be geographically separated.
[0035] It's important to note that a data card is a card used to store data in mobile phones, tablets, and other terminal devices, such as a SIM card or SD card. With rising living standards and the diversification of terminal device functions, devices with multiple data cards are becoming increasingly common, with dual-SIM dual-standby phones being the most typical example. These phones support simultaneous insertion of two SIM cards, allowing them to reside on the network concurrently. The settings interface of dual-SIM dual-standby phones provides a multi-card switching option for data services, allowing users to switch between the SIM cards providing data. However, as users' reliance on data has become increasingly important, a good data experience is crucial for user experience. But in actual network applications, switching data cards and re-establishing data access often takes a considerable amount of time in many scenarios. Using dual-SIM dual-standby phones as an example, the following will provide examples of switching data cards and re-establishing data access in two different scenarios:
[0036] Example 1
[0037] Assume that in a dual-SIM dual-standby phone, the default data SIM card corresponds to the primary SIM card, and the non-data SIM card corresponds to the secondary SIM card. Since the default PDN (Packet Data Network) link between the secondary SIM card's modem and the network device is nonexistent, each time the user switches from the primary SIM card to the secondary SIM card for data SIM card switching, the primary SIM card's data link must be disconnected first, and then the secondary SIM card's data link must be re-established. During this switch, the dual-SIM dual-standby phone needs to interact with the network device via signaling. To establish data connection, the secondary SIM card needs to send a PDN connection establishment request (such as PDN_CONNECTIVITY_REQUEST) to the network device. However, the network device often fails to respond to this PDN connection request. The 3GPP (3rd Generation Partnership Project) standard defines a retransmission timer T3482 for each PDN connection establishment request, with a duration of 8 seconds. Only after the retransmission timer T3482 expires will a new PDN connection request be sent to the network device. This results in a data SIM card switch taking at least 8 seconds or even longer to complete successfully. For example, at 14:40:49, the terminal device sends a PDN connection establishment request to the network device. However, the network device does not respond to the PDN connection establishment request. For instance, the terminal device does not receive a response from the network device for the PDN connection establishment request until 14:40:58, when the retransmission timer T3482 exceeds 8 seconds. Only then does the terminal device resend a new PDN connection request to the network device. After receiving the response from the network device, the terminal device obtains the IP address based on the response. In this way, the data link between the terminal device and the network device is established normally, and the data card switching is successful.
[0038] It should be noted that there are many reasons why a network device may not respond to a PDN connection establishment request initiated by a terminal device. For example, during network anomalies, the network device may not respond to the PDN connection establishment request initiated by the terminal device; or, after the TAU (Tracking Area Update) is synchronized with the network, if continued service is required, the active_flag flag in the TAU request message sent to the network device is usually set to true. In this case, the network device may not respond to the PDN connection establishment request sent by the terminal device, and the data link between the terminal device and the network device will only be successfully established after the retransmission timer T3482 times out and a new PDN connection establishment request is resent. It is understood that the above-described situations of network devices not responding to PDN connection establishment requests sent by terminal devices are only for the convenience of those skilled in the art and should not be considered as specific limitations of this disclosure.
[0039] Example 2
[0040] Assuming a dual-SIM dual-standby phone where SIM 2 is the data SIM and the PDN data link between SIM 1 and the network device is disconnected. When the phone switches the data SIM to SIM 1, 5G capability follows to SIM 1, and SIM 1 initiates a network search request. The terminal's NAS (Non-access stratum) ESM (EPS (Evolved Packet System) Session Management) module initiates a PDN connection establishment request and notifies the NAS EMM (EPS Mobility Management) module. Simultaneously, the ESM module starts a retransmission timer T3482. The EMM module detects the network search and needs to stop sending PDN connection establishment requests to the network device. After the network search is completed and the TAU process ends, it needs to wait for the retransmission timer T3482 to reach its set duration of 8 seconds before the ESM module re-initiates the PDN connection establishment request. It can be seen that when switching data cards, because the 5G capability follows the data card, the terminal device cannot process the PDN connection establishment request when searching for the network again, which will also cause the retransmission timer T3482 to time out. After that, a new PDN connection establishment request needs to be sent to the network device again, which will result in the data link not being able to recover quickly when switching data cards.
[0041] To address the aforementioned problems, this disclosure provides a data card control method, apparatus, terminal device, and storage medium capable of rapidly recovering data. The data card control method, apparatus, terminal device, and storage medium according to embodiments of this disclosure are described below with reference to the accompanying drawings.
[0042] Figure 1This is a flowchart illustrating a data card control method according to an exemplary embodiment, such as... Figure 1 As shown, this data card control method can be used in terminal devices and includes the following steps.
[0043] In step S100, in response to the detection of a data card switching command, it is determined whether there is a conflict between the first operation and the second operation initiated by the target data card.
[0044] The first operation can be sending a PDN connection establishment request to the network device; the second operation can be sending a network search request to the network device.
[0045] In this embodiment, the data card switching instruction can be understood as an instruction for the terminal device to switch from a source data card to a target data card. It is understood that the source data card is the data card the terminal device is using before detecting the data card switching instruction, while the target data card is the data card the terminal device intends to use after detecting the data card switching instruction. Optionally, this embodiment can be configured to trigger the generation of a data card switching instruction. When the user's operation matches the configured operation, a data card switching instruction can be generated, thereby enabling the detection of the data card switching instruction. For example, assuming the terminal device is a dual-SIM dual-standby mobile phone with SIM card 1 and SIM card 2, where SIM card 1 is the data card and SIM card 2 is a non-data card, when it is detected that the user switches the data card from SIM card 1 to SIM card 2 through the multi-SIM switching option on the phone's settings interface, a data card switching instruction is generated, and the terminal device can detect this instruction. During data card switching, the terminal device may initiate both a network search request and a PDN connection establishment request to the network device. The establishment of the data link between the target data card and the network device differs depending on whether the PDN connection establishment request and network search request conflict or not. Therefore, when the terminal device detects a data card switching command, it can first determine whether there is a conflict between the first operation of the target data card (e.g., SIM card 2) sending a PDN connection establishment request to the network device and the second operation of sending a network search request.
[0046] In some embodiments of this disclosure, the specific implementation process for determining whether there is a conflict between the first and second operations initiated by the target data card can be as follows: A target time period is determined; this target time period can be the length of time from the detection of the data card switching instruction to the moment when the target data card first sends a PDN connection establishment request to the network device; in response to the length of the target time period being less than or equal to a target threshold, it is determined that there is no conflict between the first and second operations initiated by the target data card; in response to the length of the target time period being greater than the target threshold, it is determined whether the current state of the terminal device meets a preset condition; in response to the current state of the terminal device meeting the preset condition, it is determined that there is a conflict between the first and second operations initiated by the target data card. The target threshold can be preset and can be used to determine whether there is a delay in the time period from the terminal device switching data to the first initiation of the PDN connection establishment request. Optionally, in response to the current state of the terminal device not meeting the preset condition, if there is no conflict between the first and second operations initiated by the target data card, it can be considered that the second operation of sending a network search request to the network device has been completed in a short time and will not affect the first operation of sending a PDN connection establishment request to the network device.
[0047] For example, when a terminal device detects a data card switching command, it detects the length of the time period from when the terminal device detects the data card switching command to when the target data card first sends a PDN connection establishment request to the network device, and records the length of this target time period as N. The length N of the target time period is compared with a target threshold to determine if there is a delay. If the length N of the target time period is less than or equal to the target threshold, it is determined that there is no delay, proving that the first and second operations initiated by the target data card do not conflict. If the length N of the target time period is greater than the target threshold, that is, there is a significant delay, it is necessary to further determine whether the current state of the terminal device meets a preset condition. If the current state of the terminal device meets the preset condition, it is determined that there is a conflict between the first and second operations initiated by the target data card.
[0048] In this embodiment of the disclosure, the current state of the terminal device meeting the preset conditions may include any one of the following: when the mobility management module of the target data card receives a PDN connection establishment request initiated by the session management module, the terminal device is in a network search state; the processing operation of the mobility management module in handling the PDN connection establishment request initiated by the session management module is interrupted by the network search request. It should be noted that the mobility management module in this embodiment of the disclosure is the EPS mobility management module in Example 2 above, and the session management module is the EPS session management module in Example 2 above.
[0049] In other words, if the length N of the target time period is greater than the target threshold, meaning there is a significant delay in the length N of the target time period, then it is further determined whether the terminal device is in a network search state when the NAS EMM module of the target data card receives the PDN connection establishment request initiated by the session management module, or whether the NAS EMM module is interrupted by the network search request while processing the PDN connection establishment request initiated by the session management module. If the terminal device is in a network search state when the NAS EMM module receives the PDN connection establishment request initiated by the session management module, or if the NAS EMM module is interrupted by the network search request while processing the PDN connection establishment request initiated by the session management module, then it is determined that there is a conflict between the first and second operations initiated by the target data card.
[0050] It should be noted that although network search has higher priority and terminal devices may ignore PDN connection establishment requests, the terminal device's current state may not meet the aforementioned preset conditions. For example, if the terminal device is not in a search state when the target data card's mobility management module receives a PDN connection establishment request initiated by the session management module (e.g., the search operation has been completed within a short time), or if the mobility management module is processing the PDN connection establishment request initiated by the session management module without being interrupted by the network search request, then the search operation can be considered to have been completed within a short time and will not affect the PDN connection establishment request. Therefore, in this case, even if there is a significant delay in the target time period N, since the network search request will be completed within a short time and will not affect the PDN connection establishment request, the terminal device can wait for the network device's response to the PDN connection establishment request.
[0051] In step S102, in response to the absence of conflict between the first and second operations, it is determined whether the network device should respond to the PDN connection establishment request.
[0052] In other words, network anomalies or other circumstances may cause network devices to fail to respond to PDN connection establishment requests. Therefore, after sending a PDN connection establishment request to the network device, the terminal device needs to determine whether the network device has responded. If the network device responds, the terminal device completes the establishment of the data link with the network device. If the network device does not respond, the terminal device needs to resend a new PDN connection establishment request. This can be determined by detecting whether the terminal device receives a response from the network device for the PDN connection establishment request. If the terminal device receives a response from the network device, it is determined that the network device has responded to the PDN connection establishment request. If the terminal device does not receive a response from the network device, it is determined that the network device has not responded to the PDN connection establishment request.
[0053] In step S104, in response to the network device not responding to the PDN connection establishment request, the target data card is controlled to resend a new PDN connection establishment request to the network device.
[0054] In other words, when the terminal device determines that the network device has not responded to the PDN connection establishment request, it can control the target data card to immediately resend a new PDN connection establishment request to the network device, without having to wait for the retransmission timer T3482 to expire before re-initiating a new PDN connection establishment request to the network device. This shortens the time to re-establish the PDN connection request and improves the recovery speed of the data link between the terminal device and the network device.
[0055] According to the data card control method of this disclosure, when a terminal device detects a switching instruction from a source data card to a target data card, it determines whether there is a conflict between a first operation and a second operation initiated by the target data card. The first operation is sending a PDN connection establishment request to the network device, and the second operation is sending a network search request to the network device. If there is no conflict between the first and second operations, it determines whether the network device has responded to the PDN connection establishment request. If the network device has not responded to the PDN connection establishment request, the target data card is controlled to immediately resend a new PDN connection establishment request to the network device. Therefore, when there is no conflict between the terminal device's operation of sending a PDN connection establishment request to the network device and the search operation, and the network device has not responded to the PDN connection establishment request, there is no need to wait for the failed retransmission waiting time of the PDN connection establishment request. Instead, the terminal device is controlled to immediately resend a new PDN connection establishment request to the network device, thereby shortening the time for re-establishing the PDN connection request and improving the recovery speed of the data link between the terminal device and the network device. This achieves the goal of quickly establishing a data link and rapidly restoring data when switching data cards, thus improving the user's data experience.
[0056] It should be noted that during data card switching, the terminal device may initiate both a network search request and a PDN connection establishment request to the network device. In a real network, these actions may conflict. When this conflict occurs, the terminal device will ignore the PDN connection establishment request and perform the network search first, since the network search takes precedence over the PDN connection establishment request. Only after the network search is complete and the TAU process is finished will the terminal device attempt to re-establish the PDN connection. To shorten the time required to re-establish the PDN connection, this disclosure sets a flag to indicate whether to immediately re-initiate a new PDN connection establishment request to the network device after the terminal device has completed the network search and the TAU process. Figure 2 This is a flowchart illustrating another data card control method according to an exemplary embodiment, such as... Figure 2 As shown, the data card control method is used for terminal devices and includes the following steps.
[0057] In step S200, in response to the detection of a data card switching command, it is determined whether there is a conflict between the first operation and the second operation initiated by the target data card.
[0058] In the embodiments of this disclosure, step S200 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.
[0059] In step S202, in response to the absence of conflict between the first and second operations, it is determined whether the network device responds to the PDN connection establishment request.
[0060] In the embodiments of this disclosure, step S202 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.
[0061] In step S204, in response to the network device not responding to the PDN connection establishment request, the target data card is controlled to resend a new PDN connection establishment request to the network device.
[0062] In the embodiments of this disclosure, step S204 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.
[0063] In step S206, in response to a conflict between the first and second operations, the first operation is interrupted, and a flag bit is set. In this embodiment, the flag bit indicates whether a new PDN connection establishment request is triggered to the network device.
[0064] For example, if there is a significant delay (N) between the detection of data switching by the terminal device and the initiation of the first PDN connection establishment request, and it is determined that the terminal device is in network search mode when the data card NAS EMM module receives the PDN connection establishment request, or if the NAS EMM module is interrupted by the network search request while processing the PDN connection establishment request, the terminal device will ignore this PDN connection establishment request because the priority of network search is higher than that of the PDN connection establishment request. This means it will interrupt the first operation initiated by the target data card and set a flag to indicate whether to trigger a new PDN connection establishment request to be sent to the network device. In other words, this flag can be represented as Pending, indicating whether a new PDN connection establishment request should be immediately re-initiated to the network device after the terminal device completes its search and the TAU process ends. In this embodiment, the flag needs to be assigned a value when setting it. For example, if there is a conflict between the first and second operations and the first operation is interrupted, a flag bit can be set and assigned a value of 1 (or true) to indicate that a new PDN connection establishment request should be initiated to the network device immediately after the terminal device has completed its network search and the TAU process has ended; or if there is a conflict between the first and second operations and the first operation is interrupted, a flag bit can be set and assigned a value of 0 (or false) to indicate that a new PDN connection establishment request should be initiated to the network device only after the retransmission timer T3482 started by the NAS ESM module has expired.
[0065] In step S208, after determining that the search is complete and the tracking area update TAU process has ended, the value of the marker bit is determined.
[0066] In other words, after interrupting the first operation initiated by the target data card to request the establishment of a packet data network (PDN) connection to the network device and setting the flag bit, the search operation of the terminal device and the TAU process can be monitored, and the value of the flag bit can be determined when the network search is completed and the TAU process ends.
[0067] In step S210, in response to the value of the flag bit being a preset threshold, the target data card is controlled to resend a new PDN connection establishment request to the network device.
[0068] As an example, the preset threshold can be 1 or true, etc. The preset threshold is used to instruct the terminal device to immediately re-initiate a new PDN connection establishment request to the network device after the search is completed and the TAU process ends. That is, after determining that the network search is completed and the tracking area update TAU process ends, it can be determined whether the flag bit is the preset threshold, such as whether the value of the flag bit is 1. If the value of the flag bit is the preset threshold, the target data card is controlled to immediately re-send a new PDN connection establishment request to the network device, thereby shortening the time for re-establishing the PDN connection request and improving the recovery speed of the data link between the terminal device and the network device, thus achieving the goal of quickly establishing a data link when switching data cards.
[0069] In some embodiments of this disclosure, in response to the flag bit value not being the preset threshold, it is determined whether the retransmission timer T3482 has timed out, and when the retransmission timer T3482 times out, the target data card is controlled to resend a new PDN connection establishment request to the network device. For example, if the flag bit value is not 1, such as if the flag bit is 0, then it is necessary to wait for the retransmission timer T3482 started by the NASESM module to time out before initiating a new PDN connection establishment request to the network device again. Thus, by setting the flag bit and assigning different values to the flag bit, different implementation methods for initiating a new PDN connection establishment request to the network device can be given according to the different values assigned to the flag bit.
[0070] It should be noted that, in some embodiments of this disclosure, after determining that the network device has not responded to the PDN connection establishment request, the cell anomaly information of the currently registered cell of the terminal device can also be sent to the server. The cell anomaly information is used to instruct the server to determine the currently registered cell of the terminal device as an abnormal cell. Thus, when it is determined that the terminal device initiates a registration request in a cell to be registered, the server retrieves the cell anomaly information stored on the server, as well as the cell information of the cell to be registered. The cell information of the cell to be registered is compared with the cell anomaly information to obtain a comparison result. That is, the cell to be registered is determined as an abnormal cell based on the cell information of the cell to be registered and the cell anomaly information. The cell information can be used to uniquely identify each cell, and different cells can be distinguished through the cell information; that is, the cell information can serve as a cell identifier. When the comparison result shows that the cell information of the cell to be registered exists in the cell anomaly information, it indicates that the cell to be registered is an abnormal cell; when the comparison result shows that the cell information of the cell to be registered does not exist in the cell anomaly information, it indicates that the cell to be registered is not an abnormal cell and is a normal cell. In response to the cell to be registered being an abnormal cell, after determining that the terminal device has completed its network search and the Tracking Area Update (TAU) process has ended, the terminal device's currently used data card is controlled to resend a new PDN connection establishment request to the network device. If the cell to be registered is not an abnormal cell, it means that the network device corresponding to the cell to be registered by the terminal device will not fail to respond to the PDN connection establishment request sent by the terminal device. That is, the network device of the cell to be registered will respond to the PDN connection establishment request sent by the terminal device in a timely manner, so that the terminal device receives the response information returned by the network device in a timely manner, thereby completing the establishment of the PDN connection and realizing the establishment of a data link between the target data card and the network device. It should be noted that in this embodiment of the disclosure, the server can be a cloud server.
[0071] For example, if the length N of the target time period from when the terminal device detects the data card switching command to when the target data card first sends a PDN connection establishment request to the network device is less than or equal to the target threshold (i.e., there is no delay in the length of this target time period), it proves that there is no conflict between the terminal device initiating the PDN connection establishment request and the network search operation. After determining that the network device has not responded to the PDN connection establishment request, the terminal device can also send the cell information of the currently registered cell to the server. When the server receives the cell information sent by the terminal device, it can record the cell corresponding to the cell information as an abnormal cell and store the cell information as cell abnormal information. If the network device might not respond to the terminal device's request to establish a PDN connection, then when the terminal device moves to the area again and initiates a cell registration, the terminal device obtains cell anomaly information from the server and determines whether the cell to be registered is an abnormal cell based on the obtained cell anomaly information. If it is an abnormal cell, then after the terminal device completes network search and the tracking area update TAU process ends, the data card currently used by the terminal device immediately resends a new PDN connection establishment request to the network device, without waiting for the retransmission timer T3482 to expire before re-initiating the PDN connection establishment request to the network device. This shortens the time for re-establishing the PDN connection request and improves the recovery speed of the data link between the terminal device and the network device.
[0072] According to the data card control method of this disclosure, when there is a conflict between the terminal device initiating a PDN connection establishment request and network search, since the priority of network search is higher than that of the PDN connection establishment request, the terminal device will ignore the PDN connection establishment request and perform the network search operation first. After the network search is completed and the TAU process ends, a flag bit is set to indicate whether to immediately re-initiate a new PDN connection establishment request to the network device. For example, when the value of the flag bit is a preset threshold, the target data card is controlled to immediately re-send a new PDN connection establishment request to the network device, thereby shortening the time for re-establishing the PDN connection request and improving the recovery speed of the data link between the terminal device and the network device. This achieves the goal of quickly establishing a data link when switching data cards, thereby improving the user's data experience.
[0073] To achieve the goal of quickly establishing a data link when switching data cards, the timing duration of the retransmission timer T3482 can be temporarily adjusted to achieve the same purpose. Figure 3 This is a flowchart illustrating yet another data card control method according to an exemplary embodiment, such as... Figure 3 As shown, the data card control method is used for terminal devices and includes the following steps.
[0074] In step S300, in response to the detection of a data card switching command, it is determined whether there is a conflict between the first operation and the second operation initiated by the target data card.
[0075] In the embodiments of this disclosure, step S300 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.
[0076] In step S302, in response to the absence of conflict between the first and second operations, it is determined whether the network device responds to the PDN connection establishment request.
[0077] In the embodiments of this disclosure, step S302 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.
[0078] In step S304, in response to the network device not responding to the PDN connection establishment request, the duration of the retransmission timer is reduced.
[0079] For example, in scenarios where the first and second operations initiated by the target data card do not conflict, and the network device does not respond to the PDN connection establishment request, the duration of the retransmission timer T3482 can be reduced, for instance, from 8 seconds to 3 seconds or less. It should be noted that the extent to which the duration of the retransmission timer T3482 is reduced can be determined based on empirical values. For instance, in experiments where the first and second operations initiated by the target data card did not conflict, and the network device did not respond to the PDN connection establishment request, reducing the duration of the retransmission timer T3482 enabled rapid data link establishment. In 10 instances, adjusting the duration of the retransmission timer T3482 to 3 seconds resulted in rapid data link establishment; therefore, 3 seconds can be used as the duration of this retransmission timer.
[0080] In step S306, when the adjusted retransmission timer times out, the target data card is controlled to resend a new PDN connection establishment request to the network device.
[0081] According to the data card control method of this disclosure, in the scenario where there is no conflict between the first operation and the second operation initiated by the target data card and the network device does not respond to the PDN connection establishment request, the time to re-establish the PDN connection is shortened by reducing the timing duration of the retransmission timer T3482, thereby improving the recovery speed of the data link between the terminal device and the network device. This achieves the goal of quickly establishing a data link when switching data cards, thereby improving the user's data experience.
[0082] Figure 4This is a flowchart illustrating yet another data card control method according to an exemplary embodiment, such as... Figure 4 As shown, the data card control method is used for terminal devices and includes the following steps.
[0083] In step S400, in response to the detection of a data card switching command, it is determined whether there is a conflict between the first operation and the second operation initiated by the target data card.
[0084] In the embodiments of this disclosure, step S400 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.
[0085] In step S402, in response to the absence of conflict between the first and second operations, it is determined whether the network device responds to the PDN connection establishment request.
[0086] In the embodiments of this disclosure, step S402 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.
[0087] In step S404, in response to the network device not responding to the PDN connection establishment request, the duration of the retransmission timer is reduced.
[0088] In the embodiments of this disclosure, step S404 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.
[0089] In step S406, when the adjusted PDN connection request retransmission timer times out, the target data card is controlled to resend a new PDN connection establishment request to the network device.
[0090] In the embodiments of this disclosure, step S406 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.
[0091] In step S408, in response to the conflict between the first operation and the second operation, the first operation initiated by the target data card is interrupted, and a flag bit is set.
[0092] In the embodiments of this disclosure, step S408 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.
[0093] In step S410, after determining that the search is complete and the tracking area update TAU process has ended, the value of the marker bit is determined.
[0094] In the embodiments of this disclosure, step S410 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.
[0095] In step S412, in response to the value of the flag bit being a preset threshold, the target data card is controlled to resend a new PDN connection establishment request to the network device.
[0096] In the embodiments of this disclosure, step S410 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.
[0097] In step S414, in response to the fact that the value of the flag bit is not a preset threshold, the timing duration of the retransmission timer is reduced.
[0098] In other words, when there is a conflict between the first and second operations, and it is determined that the network search is complete and the TAU update process in the tracking area has ended, the duration of the retransmission timer T3482 can be reduced, for example, from the original 8 seconds to 3 seconds or less. It should be noted that the extent to which the duration of the retransmission timer T3482 is reduced can be determined based on empirical values. For example, in an experiment where the first and second operations initiated against the target data card conflict, and it is determined that the network search is complete and the TAU update process in the tracking area has ended, reducing the duration of the retransmission timer T3482 can achieve rapid data link establishment. In 10 instances, adjusting the duration of the retransmission timer T3482 to 3 seconds was sufficient to achieve rapid data link establishment; therefore, 3 seconds can be used as the duration of this retransmission timer.
[0099] In step S416, when the adjusted retransmission timer times out, the target data card is controlled to resend a new PDN connection to the network device.
[0100] Therefore, in scenarios where the first and second operations initiated by the target data card conflict, and the network search is completed and the TAU update process in the tracking area is finished, reducing the duration of the retransmission timer T3482 shortens the time for re-establishing the PDN connection request, thereby improving the recovery speed of the data link between the terminal device and the network device. This achieves the goal of quickly establishing a data link when switching data cards, thus improving the user's data experience.
[0101] To implement the above embodiments, this disclosure also proposes a data card control device.
[0102] Figure 5 This is a block diagram illustrating a data card control device according to an exemplary embodiment. The data card control device can be used in terminal devices, such as… Figure 5As shown, the data card control device may include: a first determining unit 502, a second determining unit 504, and a control unit 506.
[0103] The first determining unit 502 is used to determine whether there is a conflict between the first operation and the second operation initiated by the target data card in response to the detection of the data card switching command; the first operation is to send a packet data network (PDN) connection establishment request to the network device, and the second operation is to send a network search request to the network device; the data card switching command is the command of the terminal device to switch from the source data card to the target data card.
[0104] In some embodiments of this disclosure, the process by which the first determining unit 502 determines whether there is a conflict between the first operation and the second operation initiated by the target data card may be as follows: determining a target time period; the target time period is the length of time from the detection of the data card switching instruction to the first time the target data card sends a PDN connection establishment request to the network device; in response to the length of the target time period being less than or equal to a target threshold, determining that there is no conflict between the first operation and the second operation initiated by the target data card; in response to the length of the target time period being greater than the target threshold, determining whether the current state of the terminal device meets a preset condition; in response to the current state of the terminal device meeting the preset condition, determining that there is a conflict between the first operation and the second operation initiated by the target data card.
[0105] In this embodiment of the disclosure, the current state of the terminal device satisfies any of the following preset conditions: when the mobility management module of the target data card receives a PDN connection establishment request initiated by the session management module, the terminal device is in a network search state; the processing operation of the mobility management module in handling the PDN connection establishment request initiated by the session management module is interrupted by the network search request.
[0106] The second determining unit 504 is used to determine whether the network device responds to the PDN connection establishment request.
[0107] The control unit 506 is used to control the target data card to resend a new PDN connection establishment request to the network device in response to the network device not responding to the PDN connection establishment request.
[0108] In some embodiments of this disclosure, such as Figure 6As shown, the data card control device may further include an interrupt unit 608 and a third determination unit 610. The interrupt unit 608 is used to interrupt the first operation initiated by the target data card in response to a conflict between the first and second operations, and sets a flag bit; wherein the flag bit is used to indicate whether a new PDN connection establishment request is triggered to the network device; the third determination unit 610 is used to determine the value of the flag bit after determining that the network search is completed and the Tracking Area Update (TAU) process has ended; in this embodiment, the control unit 606 is used to control the target data card to resend a new PDN connection establishment request to the network device in response to the value of the flag bit being a preset threshold. Figure 6 602-606 and Figure 5 The 502-506 series have the same function and structure.
[0109] In some embodiments of this disclosure, such as Figure 7 As shown, the data card control device may further include a fourth determining unit 712. The fourth determining unit 712 is used to determine whether the retransmission timer has timed out in response to the value of the flag bit not being a preset threshold. In this embodiment, the control unit 706 is used to control the target data card to resend a new PDN connection establishment request to the network device when the retransmission timer times out. Figure 7 702-710 and Figure 6 The 602-610 series have the same function and structure.
[0110] In some embodiments of this disclosure, such as Figure 8 As shown, the data card control device may further include a sending unit 814. The sending unit 814 is used to send cell anomaly information of the currently registered cell of the terminal device to the server in response to the network device's failure to respond to the PDN connection establishment request; the cell anomaly information is used to instruct the server to determine the currently registered cell of the terminal device as an abnormal cell.
[0111] In the embodiments disclosed herein, such as Figure 8 As shown, the data card control device may further include: an acquisition unit 816 and a fifth determination unit 818. The acquisition unit 816 is used to acquire cell anomaly information from the server when the terminal device initiates a registration request in a cell to be registered; the fifth determination unit 818 is used to determine whether the cell to be registered is an abnormal cell based on the cell information of the cell to be registered and the cell anomaly information; wherein, the control unit 806 is used to, in response to the cell to be registered being an abnormal cell, after determining that the terminal device has completed network search and the Tracking Area Update (TAU) process has ended, control the data card currently used by the terminal device to resend a new PDN connection establishment request to the network device. Figure 8 802-812 and Figure 7 The Chinese 702-712 have the same function and structure.
[0112] In some embodiments of this disclosure, such as Figure 9 As shown, the data card control device may further include: a first adjustment unit 920. The first adjustment unit 920 is used to reduce the duration of the retransmission timer in response to the network device's failure to respond to the PDN connection establishment request. The control unit 906 is used to control the target data card to resend a new PDN connection establishment request to the network device when the adjusted retransmission timer times out. Figure 9 902-918 and Figure 8 The Chinese 802-818 have the same function and structure.
[0113] In some embodiments of this disclosure, such as Figure 10 As shown, the data card control device may further include a second adjustment unit 1022. The second adjustment unit 1022 is used to reduce the timing duration of the retransmission timer in response to the value of the flag bit not being a preset threshold. In this embodiment, the control unit 1006 is used to control the target data card to resend a new PDN connection establishment request to the network device when the adjusted retransmission timer times out. Figure 10 Medium 1002-1020 and Figure 9 The Chinese 902-920 have the same function and structure.
[0114] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0115] According to the data card control device of this disclosure, when the terminal device detects a switching command to switch from a source data card to a target data card, it determines whether there is a conflict between a first operation and a second operation initiated by the target data card. The first operation is sending a PDN connection establishment request to the network device, and the second operation is sending a network search request to the network device. If there is no conflict between the first and second operations, it determines whether the network device has responded to the PDN connection establishment request. If the network device has not responded to the PDN connection establishment request, it controls the target data card to immediately resend a new PDN connection establishment request to the network device. Therefore, when there is no conflict between the terminal device's operation of sending a PDN connection establishment request to the network device and the search operation, and the network device has not responded to the PDN connection establishment request, there is no need to wait for the failure retransmission waiting time of the PDN connection establishment request. Instead, the terminal device is immediately controlled to resend a new PDN connection establishment request to the network device, thereby shortening the time for re-establishing the PDN connection request and improving the recovery speed of the data link between the terminal device and the network device. This achieves the goal of quickly establishing a data link and rapidly restoring data when switching data cards, thus improving the user's data experience.
[0116] Figure 11 This is a block diagram illustrating a terminal device 1100 according to an exemplary embodiment. For example, the terminal device 1100 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc.
[0117] Reference Figure 11 The terminal device 1100 may include one or more of the following components: a processing component 1102, a memory 1104, a power component 1106, a multimedia component 1108, an audio component 1110, an input / output (I / O) interface 1112, a sensor component 1114, and a communication component 1116.
[0118] Processing component 1102 typically controls the overall operation of terminal device 1100, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 1102 may include one or more processors 1120 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 1102 may include one or more modules to facilitate interaction between processing component 1102 and other components. For example, processing component 1102 may include a multimedia module to facilitate interaction between multimedia component 1108 and processing component 1102.
[0119] Memory 1104 is configured to store various types of data to support the operation of terminal device 1100. Examples of this data include instructions for any application or method operating on terminal device 1100, contact data, phonebook data, messages, pictures, videos, etc. Memory 1104 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0120] Power component 1106 provides power to various components of terminal device 1100. Power component 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to terminal device 1100.
[0121] Multimedia component 1108 includes a screen that provides an output interface between the terminal device 1100 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 1108 includes a front-facing camera and / or a rear-facing camera. When the terminal device 1100 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0122] Audio component 1110 is configured to output and / or input audio signals. For example, audio component 1110 includes a microphone (MIC) configured to receive external audio signals when terminal device 1100 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 1104 or transmitted via communication component 1116. In some embodiments, audio component 1110 also includes a speaker for outputting audio signals.
[0123] I / O interface 1112 provides an interface between processing component 1102 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0124] Sensor assembly 1114 includes one or more sensors for providing status assessments of various aspects of terminal device 1100. For example, sensor assembly 1114 can detect the on / off state of terminal device 1100, the relative positioning of components such as the display and keypad of terminal device 1100, changes in position of terminal device 1100 or a component of terminal device 1100, the presence or absence of user contact with terminal device 1100, the orientation or acceleration / deceleration of terminal device 1100, and temperature changes of terminal device 1100. Sensor assembly 1114 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 1114 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0125] Communication component 1116 is configured to facilitate wired or wireless communication between terminal device 1100 and other devices. Terminal device 1100 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 1116 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 1116 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0126] In an exemplary embodiment, the terminal device 1100 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0127] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1104 including instructions, which can be executed by the processor 1120 of the terminal device 1100 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0128] In an exemplary embodiment, a computer program product including a computer program is also provided, for example, the computer program can perform the above-described method when executed by the processor 1120 of the terminal device 1100.
[0129] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0130] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A data card control method, characterized in that, include: In response to the detection of a data card switching command, determine whether there is a conflict between the first and second operations initiated by the target data card; The first operation is to send a Packet Data Network (PDN) connection establishment request to the network device; the second operation is to send a network search request to the network device; the data card switching instruction is an instruction for the terminal device to switch from the source data card to the target data card. In response to the absence of conflict between the first operation and the second operation, it is determined whether the network device responds to the PDN connection establishment request; In response to the network device not responding to the PDN connection establishment request, the target data card is controlled to resend a new PDN connection establishment request to the network device; or, in response to the network device not responding to the PDN connection establishment request, the duration of the retransmission timer corresponding to the PDN connection establishment request is reduced; when the adjusted retransmission timer times out, the target data card is controlled to resend a new PDN connection establishment request to the network device. The determination of whether there is a conflict between the first and second operations initiated by the target data card includes: Determine the target time period; the target time period is the length of time from the detection of the data card switching instruction to the first time the target data card sends a PDN connection establishment request to the network device. Based on the length of the target time period and the current state of the terminal device, it is determined whether there is a conflict between the first operation and the second operation.
2. The data card control method according to claim 1, characterized in that, Also includes: In response to a conflict between the first operation and the second operation, the first operation is interrupted and a flag is set; Once the network search is completed and the TAU update process in the tracking area ends, the value of the flag bit is determined. In response to the value being a preset threshold, the target data card is controlled to resend a new PDN connection establishment request to the network device.
3. The data card control method according to claim 2, characterized in that, Also includes: In response to the value not being the preset threshold, determine whether the retransmission timer corresponding to the PDN connection establishment request has timed out; When the retransmission timer expires, the target data card is controlled to resend a new PDN connection establishment request to the network device.
4. The data card control method according to claim 2, characterized in that, Also includes: In response to the value not being the preset threshold, the duration of the retransmission timer corresponding to the PDN connection establishment request is reduced; When the adjusted retransmission timer times out, the target data card is controlled to resend a new PDN connection establishment request to the network device.
5. The data card control method according to claim 1, characterized in that, After determining that the network device does not respond to the PDN connection establishment request, the method further includes: The terminal device sends the cell anomaly information of the currently registered cell to the server; the cell anomaly information is used to instruct the server to determine the currently registered cell of the terminal device as an abnormal cell.
6. The data card control method according to claim 5, characterized in that, Also includes: When it is determined that the terminal device initiates a registration request in the cell to be registered, the abnormal cell information is obtained from the server; Based on the cell information of the cell to be registered and the cell anomaly information, determine whether the cell to be registered is an abnormal cell; In response to the cell to be registered being the abnormal cell, after determining that the terminal device has completed network search and the Tracking Area Update (TAU) process has ended, the terminal device controls the data card currently used to resend a new PDN connection establishment request to the network device.
7. The data card control method according to claim 1, characterized in that, The determination of whether there is a conflict between the first and second operations initiated by the target data card also includes: In response to the length of the target time period being less than or equal to the target threshold, it is determined that the first operation and the second operation do not conflict; In response to the target time period being greater than the target threshold, it is determined whether the current state of the terminal device meets the preset conditions; In response to the fact that the current state of the terminal device meets the preset conditions, it is determined that there is a conflict between the first operation and the second operation.
8. The data card control method according to claim 7, characterized in that, The current state of the terminal device satisfies any one of the following preset conditions: When the mobility management module of the target data card receives the PDN connection establishment request initiated by the session management module, the terminal device is in the network search state; The processing operation of the mobility management module in handling the PDN connection establishment request initiated by the session management module was interrupted by the network search request.
9. A data card control device, characterized in that, include: The first determining unit is used to determine whether there is a conflict between the first operation and the second operation initiated by the target data card in response to the detection of a data card switching command; The first operation is to send a Packet Data Network (PDN) connection establishment request to the network device; the second operation is to send a network search request to the network device; the data card switching instruction is an instruction for the terminal device to switch from the source data card to the target data card. The second determining unit is used to determine whether the network device responds to the PDN connection establishment request; The control unit is configured to, in response to the network device not responding to the PDN connection establishment request, control the target data card to resend a new PDN connection establishment request to the network device; or, in response to the network device not responding to the PDN connection establishment request, reduce the duration of the retransmission timer corresponding to the PDN connection establishment request; and, when the adjusted retransmission timer times out, control the target data card to resend a new PDN connection establishment request to the network device. The first determining unit is further configured to: Determine the target time period; the target time period is the length of time from the detection of the data card switching instruction to the first time the target data card sends a PDN connection establishment request to the network device. Based on the length of the target time period and the current state of the terminal device, it is determined whether there is a conflict between the first operation and the second operation.
10. The data card control device according to claim 9, characterized in that, Also includes: An interrupt unit is configured to interrupt the first operation and set a flag bit in response to a conflict between the first operation and the second operation; wherein the flag bit is configured to indicate whether a new PDN connection establishment request is triggered to be sent to the network device. The third determining unit is used to determine the value of the flag bit when the network search is completed and the tracking area update TAU process ends; The control unit is configured to, in response to the value being a preset threshold, control the target data card to resend a new PDN connection establishment request to the network device.
11. The data card control device according to claim 9, characterized in that, Also includes: The sending unit is configured to send cell anomaly information of the currently registered cell of the terminal device to the server in response to the network device's failure to respond to the PDN connection establishment request. The cell anomaly information is used to instruct the server to identify the cell currently registered by the terminal device as an abnormal cell.
12. The data card control device according to claim 11, characterized in that, Also includes: The acquisition unit is used to acquire cell abnormality information from the server when it is determined that the terminal device initiates a registration request in the cell to be registered; The fifth determining unit is used to determine whether the cell to be registered is an abnormal cell based on the cell information of the cell to be registered and the cell abnormality information; The control unit is configured to, in response to the cell to be registered being the abnormal cell, after determining that the terminal device has completed its network search and the Tracking Area Update (TAU) process has ended, control the data card currently used by the terminal device to resend a new PDN connection establishment request to the network device.
13. The data card control device according to claim 9, characterized in that, The first determining unit is further configured to: In response to the length of the target time period being less than or equal to the target threshold, it is determined that the first operation and the second operation do not conflict; In response to the target time period being greater than the target threshold, it is determined whether the current state of the terminal device meets the preset conditions; In response to the fact that the current state of the terminal device meets the preset conditions, it is determined that there is a conflict between the first operation and the second operation.
14. A terminal device, characterized in that, include: processor; A memory for storing processor-executable instructions; wherein the instructions are executed by the processor to enable the processor to perform the data card control method according to any one of claims 1 to 8.
15. A computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the terminal device, the terminal device is able to perform the data card control method according to any one of claims 1 to 8.