Cellular communication methods and devices, electronic equipment, and storage media
By identifying and handling abnormal cells in multi-SIM terminals and adjusting the communication method, the communication anomaly problem in the cell registration process of multi-SIM terminals was solved, improving compatibility and communication efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2021-07-29
- Publication Date
- 2026-06-30
AI Technical Summary
When multi-SIM terminals communicate with cells, especially during cell registration, communication anomalies occur, such as untimely PTI updates and untimely responses, resulting in excessive RF resource occupation and affecting the normal communication of other SIM cards.
By setting preset conditions in the terminal, the target cell corresponding to the target SIM card is determined, and based on the correspondence between abnormal cells and abnormal types, the type of abnormal cell is identified and processed, and the communication method is adjusted to avoid abnormalities caused by conventional communication methods.
It improves the compatibility of multi-SIM terminals with abnormal cells, avoids communication anomalies, and ensures the effective use of radio frequency resources and normal communication with other SIM cards.
Smart Images

Figure CN115696407B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of mobile communications, and more particularly to a cell communication method and apparatus, electronic device, and storage medium. Background Technology
[0002] A multi-SIM terminal refers to a terminal that supports the configuration of multiple SIM (Subscriber Identity Module) cards. Generally, the multiple SIM cards that a terminal can be configured with can belong to the same operator or different operators.
[0003] However, for multi-SIM terminals, communication problems can easily occur when communicating with a cell, such as during cell registration, if the cell cannot properly adapt to the multi-SIM terminal. Summary of the Invention
[0004] This disclosure provides a cell communication method and apparatus, electronic device, and storage medium that can solve problems in related technologies.
[0005] According to a first aspect of this disclosure, a cell communication method is provided, applied to a terminal, the method comprising:
[0006] After the target SIM card configured in the terminal meets the preset conditions, the target cell corresponding to the target SIM card is determined;
[0007] Based on a preset correspondence between abnormal cells and abnormal types, it is determined whether the target cell is an abnormal cell;
[0008] If the target cell is an abnormal cell, the abnormality type of the abnormal cell is determined, and communication with the target cell is carried out according to the abnormality type.
[0009] According to a second aspect of this disclosure, a cell communication device is provided, the device being applied to a terminal, the device comprising:
[0010] The cell matching module is configured to determine the target cell corresponding to the target SIM card after the target SIM card configured in the terminal meets the preset conditions;
[0011] The anomaly determination module is configured to determine whether the target cell is an abnormal cell based on a preset correspondence between abnormal cells and anomaly types.
[0012] The cell communication module is configured to determine the abnormality type of the abnormal cell if the target cell is an abnormal cell, and to communicate with the target cell according to the abnormality type.
[0013] According to a third aspect of this disclosure, an electronic device is provided, comprising:
[0014] processor;
[0015] Memory used to store processor-executable instructions;
[0016] The processor implements the method as described in the first aspect by running the executable instructions.
[0017] According to a fourth aspect of this disclosure, a computer-readable storage medium is provided that stores computer instructions thereon, which, when executed by a processor, implement the steps of the method as described in the first aspect.
[0018] In the technical solution disclosed herein, when the configured target SIM card meets preset conditions, the terminal determines whether the target cell corresponding to the target SIM is an abnormal cell. If it is determined to be an abnormal cell, the abnormality type is further determined, and communication with the target cell is based on the abnormality type. Therefore, when communicating with a target cell exhibiting abnormality, the terminal can communicate specifically based on the abnormality type of the target cell, avoiding communication errors caused by using conventional communication methods, thus improving the terminal's compatibility with abnormal cells. Attached Figure Description
[0019] 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.
[0020] Figure 1 This is a flowchart illustrating a cell communication method according to an exemplary embodiment of the present disclosure;
[0021] Figure 2 This is a flowchart illustrating an exemplary embodiment of the present disclosure of a method for determining abnormal cells;
[0022] Figure 3 This is a flowchart illustrating another cell communication method according to an exemplary embodiment of this disclosure;
[0023] Figure 4 This is a block diagram illustrating a cell communication device according to an exemplary embodiment of the present disclosure;
[0024] Figure 5 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation
[0025] 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.
[0026] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0027] It should be understood that although the terms first, second, third, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0028] For multi-SIM terminals, during network registration, operational request anomalies can easily occur because the network may not be well-suited for multi-SIM terminals. For ease of understanding, two common types of anomalies in abnormal cells are described below.
[0029] Type 1: PTI (Procedure Transaction ID) updates are not timely.
[0030] For multi-SIM terminals, such as dual-SIM dual-standby terminals, the terminal identifies multiple SIM cards asynchronously, performing subsequent processing on each identified SIM card separately. Generally, there is a certain time difference in the terminal's identification of multiple SIM cards. For example, in a dual-SIM terminal with a first and a second SIM card, the time difference between the terminal identifying the first and second SIM cards is typically around 2 seconds. For instance, the terminal might identify the first SIM card approximately 1 second after powering on, and then identify the second SIM card approximately 3 seconds later.
[0031] In related technologies, it is difficult for a terminal to determine the number of SIM cards before identifying all SIM cards. To improve the efficiency of network access, the terminal initiates a registration request to the network based on any SIM card it detects. Generally, the process of initiating a registration request is affected by changes in the terminal's SIM card types. For example, the terminal can carry multiple SIM card types in the registration request. Therefore, after a change in SIM card types, the terminal needs to initiate a re-registration request to carry the changed SIM card types. Taking single-SIM and dual-SIM types as examples, after identifying one SIM card (e.g., the first SIM card), the terminal determines itself to be a single-SIM type terminal and initiates a registration request to the cell corresponding to the first SIM card, then executes the subsequent registration process. However, if the terminal identifies another SIM card (e.g., the second SIM card) during the registration process and determines itself to be a dual-SIM type terminal, it will terminate the previous registration process, that is, terminate the process of initiating a registration request to the cell corresponding to the first SIM card, and then re-initiate the registration request.
[0032] It should be noted that the multi-SIM card type of the terminal can be simply distinguished as "single-SIM type" and "multi-SIM type", or it can be determined according to the specific number of SIM cards configured, such as including "single-SIM type", "dual-SIM type", "triple-SIM type", etc. If the terminal recognizes other SIM cards as not the last one, it can continue to recognize other SIM cards and change the multi-SIM card type, thereby re-initiating the registration request. This is only used as an example of single-SIM type and dual-SIM type for explanation, and is not limited to any specific type.
[0033] In related technologies, the terminal carries a temporary identifier PTI (Procedure Transaction ID) during the registration process. This PTI is dynamically allocated by the terminal and is used by the terminal to request the activation, modification, and deactivation of the host resource. When the corresponding process ends, the PTI will be released.
[0034] In other words, when a terminal determines the multi-SIM card type (e.g., single-SIM type) and executes the registration process, it generates a PTI, which is released after the registration process is terminated. Conversely, when a terminal determines to change the multi-SIM card type and re-executes the registration process, it generates a new PTI. The registration process can include multiple interactions between the terminal and the cell, and at least one registration request sent by the terminal and one registration response returned by the cell; these are collectively referred to as the registration process.
[0035] However, if the target SIM card is not the last SIM card, and the target cell corresponding to the target SIM card has a Type I anomaly, namely, the PTI is not updated in time, the target cell may not be able to release the PTI used in the previous registration process in time. As a result, when the cell receives the second registration request, it still returns the PTI from the previous registration process in the registration response.
[0036] For the terminal, the first PTI is carried in the initial registration process. After the initial registration process is terminated and a second registration request is initiated, the second PTI is carried in the second registration request. Upon receiving the registration response from the target cell for this second request, the PTI in the registration response is verified to ensure consistency with the PTI in the second registration request. If the target cell has an anomaly of untimely PTI updates, it will still carry the PTI from the first registration request in its returned registration response. When the terminal receives the registration response, it will verify the PTI in the registration response against the PTI in the second registration request. If the verification fails, the terminal registration will fail.
[0037] The second type: untimely response.
[0038] In one embodiment, after any SIM card in the terminal initiates a network request to the cell, the SIM card will continuously occupy radio frequency resources until a response message is received or a preset timeout period is reached. In related technologies, to ensure the validity of the terminal receiving the response message, a relatively long timeout period is usually set, such as 15 seconds.
[0039] Cells without Type II anomalies typically respond within 1-3 seconds, while cells with Type II anomalies may take 10 seconds or even 15 seconds or more to respond.
[0040] For multi-SIM terminals, multiple SIM cards typically share the same radio frequency resources. If one SIM card initiates a network request and continuously occupies radio frequency resources, it will make it difficult for other SIM cards to send and receive information normally.
[0041] Taking a dual-SIM terminal as an example, the first SIM card is a SIM card that has been registered with the first cell and periodically synchronizes with the first cell. The second SIM card needs to initiate a network request to the second cell. If the duration of the second SIM card's occupation of radio frequency resources is longer than the synchronization period of the first SIM card, it will cause the synchronization of the first SIM card to fail, thereby causing the first SIM card to lose network access.
[0042] It is evident that if the target cell corresponding to the target SIM card that initiates the network request has a second type of anomaly, namely, the response message is not timely, the network request and waiting for the response of the target SIM card will occupy radio frequency resources for a long time, which may cause other SIM cards that have completed network registration to experience network outages and other anomalies, affecting user use.
[0043] It should be noted that the two types of anomalies mentioned above are only illustrative examples. In practical applications, there may be other types of abnormal cells, which will not be elaborated here.
[0044] To improve the compatibility of terminals with abnormal cells, this embodiment proposes a cell communication method and apparatus, which will be described in detail below.
[0045] Figure 1 A cell communication method is illustrated in an exemplary embodiment of this disclosure, the method being applied to a terminal, such as... Figure 1 As shown, the method may include the following steps:
[0046] Step S101: After the target SIM card configured in the terminal meets the preset conditions, determine the target cell corresponding to the target SIM card.
[0047] In one embodiment, the terminal can preset multiple conditions for the SIM card to determine the target cell corresponding to the SIM card and detect whether the target cell is an abnormal cell when the preset conditions are triggered.
[0048] In one embodiment, the preset condition can be that the terminal recognizes the SIM card. For example, the terminal can recognize the SIM card configured in the terminal after powering on. The SIM card recognized by the terminal is the target SIM card, thus determining that the target SIM card configured in the terminal meets the preset condition. After recognizing the target SIM card, the cell corresponding to the target SIM card is determined. For ease of description, this embodiment refers to the cell corresponding to the target SIM card as the target cell. The details are described below:
[0049] In one embodiment, when a terminal recognizes any configured SIM card, it can determine the cell corresponding to that SIM card by using cell search and cell selection methods.
[0050] For example, the terminal can identify the first SIM card detected after powering on as the primary SIM card, and then search for cells that match it. For instance, it can search and select cells based on the primary SIM card's PLMN (Public Land Mobile Network) list, ultimately determining the primary cell to access—the cell corresponding to the primary SIM card. In this case, the primary SIM card is the target SIM card, and the primary cell is the target cell.
[0051] There are various methods for cell search and cell selection, which can be found in relevant technologies and will not be elaborated here.
[0052] In one embodiment, the preset condition can be that the target SIM card has a network request to be sent. For example, if the terminal determines that it needs to send a network request through a certain target SIM card, it can determine the target cell corresponding to that target SIM card. The following is a detailed description:
[0053] In one embodiment, if the terminal is equipped with multiple SIM cards, and at least one of the SIM cards has completed registration, the second cell corresponding to the second SIM card can be determined if the other SIM card determines that a network request needs to be sent.
[0054] Taking a dual-SIM terminal as an example, if the first SIM card has been registered but the second SIM card has not, the second cell corresponding to the second SIM card can be determined when it is determined that the second SIM card needs to send a registration request. Alternatively, if both the first and second SIM cards have been registered, the second cell corresponding to the second SIM card can be determined when it is determined that the second SIM card needs to send network requests such as tracking area update requests. It can be understood that in this case, the second SIM card is the target SIM card, and the second cell is the target cell.
[0055] In one embodiment, the terminal can identify any SIM card other than the first SIM card mentioned above as the second SIM card. For example, for a dual-SIM terminal, the second SIM card can be the second identified SIM card, etc.; for a triple-SIM terminal, the second SIM card can be the second or third identified SIM card, etc. For this second SIM card, the terminal can determine the second cell corresponding to the second SIM card after at least one other SIM card (e.g., the first SIM card) has completed registration and the second SIM card has a network request to be sent.
[0056] Optionally, if the second SIM card has not completed registration, the second cell is the cell that the second SIM card is waiting to access, and cell search and cell selection can be performed using a method similar to that used for the first SIM card; if the second SIM card has completed registration, the second cell is the serving cell for the second SIM card.
[0057] It should be noted that "SIM card identified" and "network request to be sent" in the above embodiments can also be the same triggering condition. For example, when the terminal identifies the SIM card, it can determine that there is a registration request to be sent.
[0058] Step S102: Based on the preset correspondence between abnormal cells and abnormal types, determine whether the target cell is an abnormal cell.
[0059] In one embodiment, the terminal can obtain the correspondence between abnormal cells and abnormal types. For example, the terminal can obtain a list of abnormal cells from local storage or the cloud. Each entry in the list of abnormal cells includes information such as cell number and abnormal type.
[0060] In one embodiment, the exception type may include a first type and a second type. The first type is untimely PTI update; the second type is untimely response. Optionally, untimely response may be untimely response to network requests such as registration requests and tracking area update requests initiated by the terminal.
[0061] In one embodiment, the terminal can determine whether a target cell is an abnormal cell based on the obtained correspondence. For example, the terminal can determine whether the cell number of the target cell matches the list of abnormal cells. If it matches the list of abnormal cells, the target cell is determined to be an abnormal cell; if it does not match the list of abnormal cells, the target cell is determined not to be an abnormal cell.
[0062] Step S103: If the target cell is an abnormal cell, determine the abnormal type of the abnormal cell and communicate with the target cell according to the abnormal type.
[0063] The terminal communicates with the target cell, either by sending information to the target cell or by receiving information sent by the target cell.
[0064] In one embodiment, if the target cell is an abnormal cell, the terminal can further determine the abnormal type of the target cell based on the aforementioned correspondence between abnormal cells and abnormal types.
[0065] In one embodiment, after the target SIM card configured in the terminal meets preset conditions, the communication operation corresponding to those preset conditions can be determined. For example, after identifying the target SIM card, a registration request corresponding to the target SIM card can be determined; or when the target SIM card has a network request to be sent, the network request can be determined, such as a registration request to be sent by the target SIM card, or a tracking area update request to be sent.
[0066] Optionally, not every anomaly type affects all communication operations of the terminal; generally, each anomaly type can affect one or more communication operations of the terminal. Based on this, the terminal can determine the anomaly type corresponding to a preset condition met by the target SIM card. For example, if the preset condition is that the target SIM card is identified and it is not the last SIM card identified, the corresponding anomaly type is type one; if the preset condition is that a network request to be sent is determined and the terminal includes other registered SIM cards, the corresponding anomaly type is type two. Therefore, after determining the preset conditions met by the target SIM card, the terminal can further determine whether the target cell is an anomaly cell of the anomaly type corresponding to the preset conditions, and thus determine the execution method of the communication operation based on the anomaly type.
[0067] For example, if the target SIM card is not the last SIM card identified, it is determined whether the target cell corresponding to the target SIM card is a first-type abnormal cell (i.e., PTI update is not timely). If the target cell is a first-type abnormal cell, an operation request can be sent to the target cell according to the abnormality type. If the target SIM card is the last SIM card identified, it is not necessary to determine whether the target cell corresponding to the target SIM card is a first-type abnormal cell. For example, an operation request can be sent to the target cell according to the communication process in related technologies, or it can be determined whether other preset conditions are met, and if the preset conditions are met, whether the target cell is an abnormal cell corresponding to those preset conditions.
[0068] Optionally, for the terminal, if the number of identified SIM cards reaches the maximum number of SIM cards that the terminal can support, it can directly determine that the SIM card is the last identified SIM card. However, in other cases, the terminal has difficulty determining whether the target SIM card is the last identified SIM card. Therefore, in one embodiment, the terminal can judge each target SIM card before reaching the maximum number to determine whether the target cell is a first type of abnormal cell.
[0069] If the terminal includes other registered SIM cards besides the target SIM card, it is determined whether the target cell corresponding to the target SIM card is a second type of abnormal cell (i.e., a cell that does not respond in a timely manner). If the target cell is a second type of abnormal cell, the response message returned by the target cell can be received according to the abnormality type.
[0070] according to Figure 1In the illustrated embodiment, when the configured target SIM card meets preset conditions, the terminal determines whether the target cell corresponding to the target SIM is an abnormal cell. If it is determined to be an abnormal cell, the terminal further determines the abnormality type of the target cell and communicates with the target cell based on the abnormality type. Therefore, when communicating with an abnormal target cell, the terminal can communicate specifically according to the abnormality type of the target cell, avoiding situations where the target cell cannot communicate with the terminal using conventional communication methods, thereby improving the terminal's compatibility with abnormal cells.
[0071] In one embodiment, after identifying the target SIM card, the terminal can determine the target cell corresponding to the target SIM card.
[0072] In one embodiment, the anomaly type includes a first type, which is that the process transaction identifier (PTI) is not updated in a timely manner. If the target cell is determined to be an anomaly cell of the first type, i.e., the target cell is not updating its PTI in a timely manner, a registration request corresponding to the target SIM card is generated, and the registration request is sent to the target cell after a specified delay, wherein the first type is that the process transaction identifier (PTI) is not updated in a timely manner.
[0073] In related technologies, after identifying a target SIM card, the terminal immediately initiates a registration request to the target cell corresponding to the target SIM card according to the corresponding network registration process. However, in one embodiment of this disclosure, after completing cell search and cell selection, if the target cell is determined to be a first-type abnormal cell, the registration request is initiated after a specified delay, that is, the registration request is sent to the target cell after a specified delay.
[0074] In one embodiment, the specified duration is the time from when the terminal identifies the first SIM card to when it determines that it has completed the identification of all SIM cards. That is, the terminal can delay until it has determined that it has completed the identification of all SIM cards before initiating a registration request to the target cell through the target SIM card.
[0075] It should be noted that the statement "certainly completed the identification of all SIM cards" here can be understood as the terminal believing that it has completed the identification of all SIM cards, rather than necessarily indicating that the identification of all SIM cards has actually been completed.
[0076] The following describes the method by which the terminal determines that it has successfully identified all SIM cards:
[0077] In one embodiment, the terminal can determine a first preset duration based on the historical recognition times corresponding to multiple SIM cards identified in the historical records. If the terminal supports inserting multiple SIM cards, i.e., the terminal is a multi-SIM terminal, the terminal can determine the first preset duration based on the historical records. This first preset duration is determined by the time difference between the first and last SIM cards identified when the terminal identified multiple SIM cards in the historical records. For example, the average or maximum value of the time differences between multiple identifications of the first and last SIM cards in the historical records can be used as the first preset duration. For instance, for 10 identification records in the historical records, the time difference between the first and last SIM cards identified in each instance can be calculated, and then the average or maximum value of the 10 calculated time differences can be used as the first preset duration.
[0078] It should be noted that in this embodiment, the first preset duration is determined based on the "time difference between recognizing the first SIM card and recognizing the last SIM card", that is, the recognition time of recognizing the first SIM card is not considered; or, if the recognition time of recognizing the first SIM card is considered, the first preset duration can also be determined by the "time taken by the terminal to recognize all SIM cards", that is, the "time difference between the terminal starting to recognize the first SIM card and recognizing the last SIM card".
[0079] Taking a dual-SIM terminal as an example, if the terminal recognizes two SIM cards after powering on, such as a first SIM card and a second SIM card, the terminal can record the time difference between each recognition of the first and second SIM cards, and then use the average or maximum value of the recorded time differences as the first preset duration. It should be noted that this example only uses a dual-SIM terminal. In practical applications, if the terminal supports more than two SIM cards, a similar method can be used to determine the first preset duration; this embodiment does not impose limitations.
[0080] In one embodiment, the terminal can determine the maximum number of SIM cards it supports as the target number, so that the terminal can determine whether the identification of the SIM cards has been completed based on the target number and a first preset time.
[0081] In one embodiment, if the number of SIM cards identified by the terminal within a first preset time period reaches the maximum number of SIM cards that the terminal can configure, the terminal determines that it has completed the identification of all SIM cards, and the registration process will not be interrupted by the identification of new SIM cards. Based on this, if the terminal identifies a target number of SIM cards within the first preset time period, it will initiate a registration request to the target cell through the target SIM cards after identifying the target number of SIM cards.
[0082] In one embodiment, if the terminal fails to identify the target number of SIM cards within a first preset time period, it initiates a registration request to the target cell using the target SIM card after the first preset time period. In other words, if the terminal considers the maximum time difference for identifying multiple SIM cards to be the first preset time period, then after the first preset time period, the terminal determines that it will not identify any new SIM cards, thus confirming that the identification of all SIM cards is complete, and the registration process will not be interrupted by the identification of new SIM cards.
[0083] It should be noted that, according to the above embodiments, the first preset duration is the maximum duration for delaying the initiation of the registration request. That is, if the terminal does not identify the target number of SIM cards within the first preset duration, the specified duration is equal to the first preset duration; if the terminal identifies the target number of SIM cards within the first preset duration, the specified duration is less than the first preset duration, and the specified duration is the time from when the terminal identifies the first SIM card to when it identifies the target number of SIM cards.
[0084] According to the above embodiments, the terminal can determine the first preset duration based on the time difference between the terminal identifying the first SIM card and the last SIM card, and set the first preset duration as the maximum duration for delaying the initiation of the registration request. This ensures both the success rate of the terminal registration request and the registration efficiency, and avoids unnecessary delays.
[0085] In one embodiment, if the terminal determines that the target cell is not a recorded first type of abnormal cell, for example, the target cell is not an abnormal cell, or the abnormal type of the target cell is not the first type, the terminal can initiate a regular registration process with the target cell, that is, without delayed registration, and the terminal can also determine whether the target cell is an abnormal cell in the registration process.
[0086] The following is combined Figure 2 This describes a method for a terminal to determine whether a target cell is an abnormal cell. For example... Figure 2 As shown, the method includes:
[0087] Step S201: If the target cell is not an abnormal cell of the first type, a first PTI corresponding to the target SIM card is generated, and a registration process is initiated to the target cell based on the first PTI, wherein the first type is an abnormal cell where the update process transaction identifier PTI is not timely.
[0088] The PTI (Programmable Target Information) is dynamically allocated by the terminal and used for the terminal to request the activation, modification, and deactivation of bearer resources. The PTI is released when the corresponding process ends. In other words, when the terminal determines that it needs to initiate a registration process through the target SIM card, it generates the first PTI for that registration process, and subsequently releases the first PTI when the registration process ends.
[0089] In one embodiment, the terminal can initiate a registration request to the target cell via the target SIM card, and include the first PTI in the registration request. If a response is received from the base station of the target cell, the relevant registration process can continue based on the first PTI. If no response is received from the base station of the target cell, the registration is considered to have failed. Subsequently, the terminal can re-initiate registration with the target cell or with other cells, depending on the actual situation. This embodiment does not impose any limitations on this.
[0090] Step S202: If the terminal identifies other SIM cards before completing the registration process, the registration process is stopped, a second PTI corresponding to the first SIM card is regenerated, and a registration request is initiated to the first cell based on the second PTI.
[0091] In one embodiment, if the terminal identifies other SIM cards before completing the registration process, the terminal needs to change the SIM card type, for example, from a single SIM card to a dual SIM card. Therefore, the terminal needs to stop the original registration process and release the first PTI corresponding to that registration process. Here, "other SIM cards" refers to any SIM cards in the terminal other than the target SIM card.
[0092] In one embodiment, the terminal may determine to re-initiate the registration request through the first SIM card and generate a second PTI corresponding to the registration request, thereby initiating a new registration request.
[0093] It should be noted that the PTI is used for the terminal to request the activation, modification and deactivation of the bearer resources. When the corresponding process ends, the first PTI is released at the end of the first registration process; and the regenerated second PTI corresponds to the second registration process, that is, the second PTI is different from the first PTI.
[0094] Step S203: If the PTI carried in the registration response returned by the target cell is different from the second PTI, the target cell is determined to be an abnormal cell of the first type.
[0095] In one embodiment, after receiving a registration response from the target cell in response to the registration request, the terminal verifies the PTI carried in the registration response, specifically verifying whether the PTI in the registration response matches the second PTI. If the carried PTI does not match the second PTI, registration is determined to have failed, and the target cell is identified as a first type of abnormal cell; if the carried PTI matches the second PTI, registration is determined to have succeeded.
[0096] In one embodiment, the terminal can further determine whether the PTI carried in the registration response is the first PTI in the previous registration process. If the PTI carried in the registration response is the first PTI, then the first cell can be determined to be a first type of abnormal cell. Alternatively, if the PTI carried in the registration response is not the first PTI, then it can be determined that the first cell has other types of abnormalities. In practical applications, further analysis can be performed, which will not be elaborated in this embodiment.
[0097] In one embodiment, after a registration failure, the terminal can re-initiate registration after a period of time. This can be done by sending a registration request to the target cell or to other cells, until registration is successful.
[0098] In one embodiment, if the PTI in the registration response returned by the target cell matches the second PTI, the terminal can determine that the registration was successful.
[0099] according to Figure 2 In the illustrated embodiment, the terminal can determine whether a cell is an abnormal cell and the type of abnormality based on a conventional registration process. If the cell is determined to be a first-type abnormal cell, it can record the cell or report the cell to the cloud. Subsequently, when accessing the cell, the terminal can follow the... Figure 1 The illustrated embodiment sends an operation request to the target cell based on the anomaly type to avoid registration failure due to untimely PTI updates in the cell.
[0100] In one embodiment, if the terminal is configured with at least two SIM cards, then if at least one other SIM card has completed registration and the target SIM card has a network request to be sent, the target cell corresponding to the target SIM card can be determined, thereby determining whether the target cell is an abnormal cell. Here, the other SIM cards are SIM cards configured on the terminal other than the target SIM card.
[0101] In one embodiment, the exception type includes a second type, which is a delayed response.
[0102] In one embodiment, the terminal can obtain the correspondence between abnormal cells and abnormal types from local storage or the cloud. For example, it can determine whether a cell is a second type of abnormal cell using the following method:
[0103] When this terminal or other terminals attempt to access a cell, they can determine whether the cell is unresponsive based on the cell's response time to network requests. For example, this terminal or other terminals can predetermine a second preset time. If the cell's response time to network requests is greater than or equal to this second preset time, the cell is determined to be unresponsive; if the cell's response time to network requests is less than this second preset time, the cell is determined not to be unresponsive, i.e., it is determined to be a timely responding cell. After completing the determination, this terminal or other terminals can upload the determination result (i.e., whether the cell is unresponsive) to the cloud for subsequent use.
[0104] The method for determining the second preset duration is described below and will not be repeated here.
[0105] In one embodiment, if the target cell is an abnormal cell and the abnormality type of the abnormal cell is determined to be the second type, a network request corresponding to the target SIM card is generated, and after initiating the network request to the target cell, the waiting time for the target cell to return a network response is shortened, and the response message returned by the target cell is received within the waiting time.
[0106] Among them, network requests can be registration requests or tracking area update requests, etc.
[0107] To avoid anomalies caused by the target cell, the terminal can shorten the waiting time for the target cell to return a network response, that is, shorten the timeout period for the target SIM card to wait for the target cell to return a response. In this case, the terminal will only receive the response message returned by the target cell within this waiting time. If the response message is not received within this waiting time, it will not receive the response message again. For example, it can be shortened to a second preset time, such as 3 seconds, 5 seconds, etc.
[0108] According to the above embodiments, when the terminal determines that the target cell is a first type of abnormal cell (i.e., a cell that does not respond in a timely manner), it can shorten the timeout period for waiting for the target cell to return a response and promptly determine the request failure, so as to avoid occupying radio frequency resources for a long time and affecting the communication operation of other SIM cards, thereby improving the operational stability of the terminal and improving the network compatibility of multi-SIM terminals.
[0109] In one embodiment, the terminal may first determine a second preset duration, and then shorten the waiting time for the second cell to return a response to the second preset duration. The following is in conjunction with... Figure 3 Describe the specific methods. For example... Figure 3 As shown, the method includes:
[0110] Step S301: Determine a second preset duration based on the synchronization cycle duration of the other SIM cards that have completed registration and their corresponding serving cells; wherein the second preset duration is less than the synchronization cycle duration.
[0111] In one embodiment, the terminal may determine the second preset duration based on the synchronization cycle duration of other registered SIM cards and the serving cell corresponding to those other registered SIM cards.
[0112] If the terminal is configured with two SIM cards (i.e., a dual-SIM terminal), the second preset duration can be determined based on the synchronization cycle duration of the other SIM cards and their serving cells; if the terminal is configured with more than two SIM cards, the second preset duration can be determined based on the minimum value among the synchronization cycle durations of the other SIM cards and their serving cells.
[0113] In one embodiment, the terminal may determine that the second preset duration is less than the synchronization period duration to ensure that the synchronization of other SIM cards with their serving cell will not time out due to the inability to use radio frequency resources, thereby ensuring the network stability of other SIM cards.
[0114] For example, the terminal can determine that the second preset duration is slightly shorter than the synchronization cycle duration. For instance, if the synchronization cycle duration is 5 seconds, the second preset duration can be determined to be between 4 and 5 seconds, such as 4.5 seconds, 4.9 seconds, etc.
[0115] Step S302: Within the second preset time period, occupy radio frequency resources through the target SIM card and wait to receive the network response.
[0116] Step S303: If no network response is received within the second preset time period, the radio frequency resources are released to shorten the waiting time for the target cell to return a network response to the second preset time period.
[0117] In one embodiment, after determining a second preset duration, the terminal uses this second preset duration as the timeout period for waiting to receive a response. That is, after sending a network request and before receiving a network response, the terminal continuously occupies radio frequency resources through the target SIM card. If the terminal receives a network response within the second preset duration, the request is considered successful, and the radio frequency resources are released. If the terminal does not receive a network response within the second preset duration, the request is considered unsuccessful, and the radio frequency resources are released when the second preset duration expires, thus shortening the waiting time for the target cell to return a network response to the second preset duration.
[0118] according to Figure 3In the embodiment shown, the terminal can determine the second preset duration based on the synchronization cycle duration of other SIM cards besides the target SIM card, thereby shortening the time for waiting for the target cell to return a network response to the second preset duration. This avoids affecting the normal communication of other SIM cards due to the target SIM card occupying radio frequency resources for a long time, thus ensuring network stability.
[0119] In one embodiment, if the terminal does not receive the network response within a second preset time period, it can determine that the network request has failed. Subsequently, the terminal can perform follow-up processing according to similar methods in related technologies, such as waiting for a period of time and then re-initiating the network request. It is understood that the method for re-initiating the network request can still refer to the method in the above embodiments, and will not be repeated here.
[0120] Figure 4 This is a block diagram illustrating a cell communication device according to an exemplary embodiment of this disclosure. (Refer to...) Figure 4 The device includes:
[0121] The cell matching module 401 is configured to determine the target cell corresponding to the target SIM card after the target SIM card configured in the terminal meets the preset conditions;
[0122] The anomaly determination module 402 is configured to determine whether the target cell is an abnormal cell based on a preset correspondence between abnormal cells and anomaly types.
[0123] The communication module 403 is configured to determine the abnormality type of the abnormal cell if the target cell is an abnormal cell, and to communicate with the target cell according to the abnormality type.
[0124] In one embodiment, the cell matching module 401 is configured to determine the target cell corresponding to the target SIM card after the terminal identifies the target SIM card.
[0125] In one embodiment, the communication module 403 is configured to: if the target cell is an abnormal cell and the abnormality type of the abnormal cell is determined to be a first type, generate a registration request corresponding to the target SIM card, and send the registration request to the target cell after a specified delay, wherein the first type is that the update process transaction identifier (PTI) is not timely.
[0126] In one embodiment, the specified duration is the time from when the terminal recognizes the first SIM card to when it determines that it has completed recognizing all SIM cards.
[0127] In one embodiment, the maximum number of SIM cards supported by the terminal is the target number; the communication module 403 is configured to:
[0128] The first preset duration is determined based on the historical recognition duration corresponding to the terminal recognizing multiple SIM cards in the historical records;
[0129] If the target number of SIM cards is identified within the first preset time period, then after the target number of SIM cards is identified, it is determined that the identification of all SIM cards has been completed.
[0130] If the target number of SIM cards is not identified within the first preset time period, then after the first preset time period has elapsed, it will be determined that the identification of all SIM cards has been completed.
[0131] In one embodiment, the apparatus further includes:
[0132] The abnormal cell determination module 404 is configured to: if the target cell is not a first type of abnormal cell, generate a first PTI corresponding to the target SIM card, and initiate a registration process to the target cell based on the first PTI, wherein the first type is an update process transaction identifier PTI that is not timely; if the terminal identifies other SIM cards before completing the registration process, stop the registration process, regenerate a second PTI corresponding to the target SIM card, and initiate a registration request to the target cell based on the second PTI; if the PTI carried in the registration response returned by the target cell is different from the second PTI, then determine that the target cell is a first type of abnormal cell.
[0133] In one embodiment, the terminal is equipped with at least two SIM cards;
[0134] The cell matching module 401 is configured to: determine the target cell corresponding to the target SIM card when at least one other SIM card has completed registration and the target SIM card has a network request to be sent; wherein, the other SIM card is a SIM card other than the target SIM card configured in the terminal.
[0135] In one embodiment, the communication module 403 is configured as follows:
[0136] If the target cell is an abnormal cell, and the abnormality type of the abnormal cell is determined to be the second type, then a network request corresponding to the target SIM card is generated, and after initiating the network request to the target cell, the waiting time for the target cell to return a network response is shortened, and the response message returned by the target cell is received within the waiting time, wherein the second type is untimely response.
[0137] In one embodiment, the communication module 403 is configured as follows:
[0138] A second preset duration is determined based on the synchronization cycle duration of the other registered SIM cards and their corresponding serving cells; wherein the second preset duration is less than the synchronization cycle duration; within the second preset duration, the target SIM card occupies radio frequency resources to wait for the network response; if the network response is not received within the second preset duration, the radio frequency resources are released to shorten the waiting time for the target cell to return a network response to the second preset duration.
[0139] In one embodiment, the network request is a registration request or a tracking area update request.
[0140] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0141] Accordingly, this disclosure also provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the cell communication method as described in any of the above embodiments.
[0142] Accordingly, this disclosure also provides an electronic device including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs containing instructions for implementing the cell communication method as described in any of the above embodiments.
[0143] Figure 5 This is a schematic block diagram illustrating an apparatus 500 for cell communication according to embodiments of the present disclosure. For example, apparatus 500 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0144] Reference Figure 5 The device 500 may include one or more of the following components: a processing component 502, a memory 504, a power supply component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, a sensor component 514, and a communication component 516.
[0145] Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the aforementioned cell communication method. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
[0146] Memory 504 is configured to store various types of data to support the operation of device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, etc. Memory 504 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.
[0147] Power supply component 506 provides power to various components of device 500. Power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 500.
[0148] Multimedia component 508 includes a screen that provides an output interface between the device 500 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 508 includes a front-facing camera and / or a rear-facing camera. When the device 500 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.
[0149] Audio component 510 is configured to output and / or input audio signals. For example, audio component 510 includes a microphone (MIC) configured to receive external audio signals when device 500 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 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting audio signals.
[0150] I / O interface 512 provides an interface between processing component 502 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.
[0151] Sensor assembly 514 includes one or more sensors for providing status assessments of various aspects of device 500. For example, sensor assembly 514 may detect the on / off state of device 500, the relative positioning of components such as the display and keypad of device 500, changes in the position of device 500 or a component of device 500, the presence or absence of user contact with device 500, the orientation or acceleration / deceleration of device 500, and temperature changes of device 500. Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 514 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0152] Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices. Device 500 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, 4G LTE, 5G NR, or combinations thereof. In one exemplary embodiment, communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 516 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.
[0153] In an exemplary embodiment, the apparatus 500 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 cell communication method described above.
[0154] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, which can be executed by a processor 520 of the device 500 to complete the aforementioned cell communication 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.
[0155] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure 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.
[0156] 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.
[0157] The above description is merely a preferred embodiment of this disclosure and is not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. A cell communication method, characterized in that, The method is applied to a terminal, the terminal being configured with at least two SIM cards, and the method includes: After the target SIM card configured in the terminal meets the preset conditions, the target cell corresponding to the target SIM card is determined; Based on a preset correspondence between abnormal cells and abnormal types, it is determined whether the target cell is an abnormal cell; If the target cell is an abnormal cell, then the abnormality type of the abnormal cell is determined, and communication with the target cell is performed according to the abnormality type; If the target cell is an abnormal cell, then determining the abnormal type of the abnormal cell and communicating with the target cell according to the abnormal type includes: If the target cell is an abnormal cell, and the abnormality type of the abnormal cell is determined to be the first type, then after generating the registration request corresponding to the target SIM card, the registration request will be sent to the target cell after a specified delay. The first type is that the update process transaction identifier (PTI) is not updated in time.
2. The method according to claim 1, characterized in that, The preset conditions include: The terminal identifies the target SIM card.
3. The method according to claim 1, characterized in that, The specified duration is the time from when the terminal recognizes the first SIM card to when it determines that it has completed recognizing all SIM cards.
4. The method according to claim 1, characterized in that, The method further includes: If the target cell is not an abnormal cell of the first type, a first PTI corresponding to the target SIM card is generated, and a registration process is initiated to the target cell based on the first PTI. The first type is an abnormal cell where the update process transaction identifier PTI is not timely. If the terminal identifies another SIM card before completing the registration process, the registration process is stopped, a second PTI corresponding to the target SIM card is regenerated, and a registration request is initiated to the target cell based on the second PTI. If the PTI carried in the registration response returned by the target cell is different from the second PTI, then the target cell is determined to be an abnormal cell of the first type.
5. The method according to claim 1, characterized in that, The preset conditions also include: At least one other SIM card has completed registration, and the target SIM card has a network request to be sent; wherein, the other SIM card is a SIM card other than the target SIM card configured in the terminal.
6. The method according to claim 5, characterized in that, If the target cell is an abnormal cell, then determining the abnormal type of the abnormal cell and communicating with the target cell according to the abnormal type includes: If the target cell is an abnormal cell, and the abnormality type of the abnormal cell is determined to be the second type, then a network request corresponding to the target SIM card is generated, and after initiating the network request to the target cell, the waiting time for the target cell to return a network response is shortened, and the response message returned by the target cell is received within the waiting time, wherein the second type is untimely response.
7. The method according to claim 6, characterized in that, The shortening of the waiting time for the target cell to return a network response includes: A second preset duration is determined based on the synchronization cycle duration between the other registered SIM cards and their corresponding serving cells; wherein the second preset duration is less than the synchronization cycle duration. Within the second preset time period, the target SIM card occupies radio frequency resources, waiting to receive the network response; If no network response is received within the second preset time period, the radio frequency resources are released to shorten the waiting time for the target cell to return a network response to the second preset time period.
8. A cell communication device, characterized in that, The device is applied to a terminal, the terminal being configured with at least two SIM cards, and the device includes: The cell matching module is configured to determine the target cell corresponding to the target SIM card after the target SIM card configured in the terminal meets the preset conditions; The anomaly determination module is configured to determine whether the target cell is an abnormal cell based on a preset correspondence between abnormal cells and anomaly types. The communication module is configured to determine the abnormality type of the abnormal cell if the target cell is an abnormal cell, and to communicate with the target cell according to the abnormality type; The communication module is configured to: if the target cell is an abnormal cell and the abnormality type of the abnormal cell is determined to be a first type, then after generating the registration request corresponding to the target SIM card, delay for a specified period of time before sending the registration request to the target cell, wherein the first type is that the update process transaction identifier (PTI) is not timely.
9. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor implements the method as described in any one of claims 1-7 by executing the executable instructions.
10. A computer-readable storage medium storing computer instructions thereon, characterized in that, When executed by the processor, this instruction implements the steps of the method as described in any one of claims 1-7.