Dual-card data link switching method and device, terminal and electronic equipment
By first establishing the data link of the second data card in a dual-card dual-pass mobile phone, forming an intermediate state of coexistence between the dual-data links, and then disconnecting the data link of the first data card, the problem of network disconnection during dual-card switching is solved and the user experience is improved.
Patent Information
- Application Number
- CN202311515973.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-14
- Publication Date
- 2025-05-16
AI Technical Summary
When data card switching is performed in dual-slot dual-pass mobile phones, the existing technology will cause a short-term network disconnection, causing high game delays or lags, and poor user experience.
When it is determined that the signal strength of the first data card is less than the preset signal strength threshold, the second data link of the second data card is first established through the first data card to form an intermediate state of coexistence between the two data links, and then the data link of the first data card is disconnected.
By first establishing the data link of the second data card, a short-term outage state is avoided, the problem of high or lag of game delay is solved, and the user experience is improved.
Smart Images

Figure CN120018228A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal technology, and in particular to a method, device, electronic device, and storage medium for switching dual-card data links. Background Art
[0002] With the development and popularization of mobile Internet, more and more people use mobile phones to surf the Internet, and data services are particularly important. Currently, dual-SIM dual-pass capable mobile phones can use both SIM cards for calls and data services at the same time. Although dual-SIM dual-pass capable mobile phones can establish two data links at the same time, the power consumption is relatively large, resulting in poor battery life. Generally, only one data link is established during use.
[0003] The wireless environment in different places in life is different. In one place, the network of operator A is poor, but the network of operator B may be very good. If you use A for data services in this place, the experience will inevitably be poor. Therefore, the data card needs to be automatically switched to the card of operator B. The current data card switching process is: first disconnect the link of the original default data card, and then establish the data link of the secondary card. The switching process will cause a short network disconnection. If the user is playing games or live broadcasting, there will be high latency or freezes, and the experience is not good. Summary of the invention
[0004] The present invention provides a dual-card data link switching method, device, terminal, and electronic device to solve the problems in the related art. When performing dual-card switching, a secondary card data link is first established to form a dual data link coexistence, and then the data card is switched to disconnect the primary card data link to solve the problem of lag / high latency.
[0005] A first aspect of the present disclosure provides a method for switching a dual-card data link, the method comprising:
[0006] When it is determined that the signal strength of the first data card is less than a preset signal strength threshold, determining whether the signal strength of the second data card meets a preset switching condition, and transmitting data of the terminal through the first data link established by the first data card;
[0007] If the signal strength of the second data card meets the preset switching condition, the second data link corresponding to the second data card is opened; wherein the first data card and the second data card are in a dual-card dual-pass state;
[0008] Control to close the first data link corresponding to the first data card.
[0009] In some embodiments of the present disclosure, the determining whether the signal strength of the second data card meets a preset switching condition includes:
[0010] Determine the number of times that the signal strength of the second data card is greater than the signal strength of the first data card within a preset time period;
[0011] If it is determined that the number is greater than the preset number threshold, it is determined that the signal strength of the second data card meets the preset switching condition.
[0012] In some embodiments of the present disclosure, before starting the second data link corresponding to the second data card, the method further includes:
[0013] Get the identification information of the current application;
[0014] Determine whether the current application is an application for a switchable data card according to a preset whitelist and the identification information, wherein the preset whitelist records the application for a switchable data card and the corresponding identification information;
[0015] The step of opening the second data link corresponding to the second data card comprises:
[0016] When it is determined that the current application is an application capable of switching data cards, a second data link corresponding to the second data card is opened.
[0017] In some embodiments of the present disclosure, the opening of the second data link corresponding to the second data card includes:
[0018] Determine whether the first data card and the second data card both support dual-card dual-pass and are in the dual-card dual-pass state;
[0019] When it is determined that both the first data card and the second data card support dual-card dual-pass and are in the dual-card dual-pass state, a second data link corresponding to the second data card is established to perform data transmission based on the second data link.
[0020] In some embodiments of the present disclosure, before determining whether the signal strength of the second data card meets the preset switching condition, the method further includes:
[0021] Identify the current screen state of the terminal screen;
[0022] If the current screen state is a bright screen state, monitoring the signal strength of the first data card;
[0023] Determine the magnitude relationship between the signal strength of the first data card and the preset signal strength threshold.
[0024] A second aspect of the present disclosure provides a dual-card data link switching device, the device comprising:
[0025] A first judgment unit, configured to judge whether the signal strength of the second data card meets a preset switching condition when it is determined that the signal strength of the first data card is less than a preset signal strength threshold, and to perform data transmission of the terminal through the first data link established by the first data card;
[0026] An opening unit, used for opening a second data link corresponding to the second data card when the signal strength of the second data card meets the preset switching condition; wherein the first data card and the second data card are in a dual-card dual-pass state;
[0027] A control unit is used to control closing of the first data link corresponding to the first data card.
[0028] In some embodiments of the present disclosure, the first determination unit is further configured to:
[0029] Determine the number of times that the signal strength of the second data card is greater than the signal strength of the first data card within a preset time period;
[0030] If it is determined that the number is greater than the preset number threshold, it is determined that the signal strength of the second data card meets the preset switching condition.
[0031] In some embodiments of the present disclosure, the device further comprises:
[0032] an acquisition unit, configured to acquire identification information of a current application before opening a second data link corresponding to the second data card;
[0033] a determination unit, configured to determine whether the current application is an application for a switchable data card according to a preset whitelist and the identification information, wherein the preset whitelist records the applications for a switchable data card and the corresponding identification information;
[0034] The enabling unit is further configured to enable the second data link corresponding to the second data card when the determining unit determines that the current application is an application capable of switching data cards.
[0035] In some embodiments of the present disclosure, the opening unit is further used to:
[0036] Determine whether the first data card and the second data card both support dual-card dual-pass and are in the dual-card dual-pass state;
[0037] When it is determined that both the first data card and the second data card support dual-card dual-pass and are in the dual-card dual-pass state, a second data link corresponding to the second data card is established to perform data transmission based on the second data link.
[0038] In some embodiments of the present disclosure, the device further comprises:
[0039] an identification unit, used to identify the current screen state of the terminal screen before determining whether the signal strength of the second data card meets the preset switching condition;
[0040] A monitoring unit, configured to monitor the signal strength of the first data card when the identification unit identifies that the current screen state is a bright screen state;
[0041] The second judgment unit is used to judge the magnitude relationship between the signal strength of the first data card and the preset signal strength threshold.
[0042] A third aspect of the present disclosure provides an electronic device, including:
[0043] at least one processor; and
[0044] a memory communicatively connected to the at least one processor; wherein,
[0045] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform any method according to the first aspect.
[0046] A fourth aspect embodiment of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method according to any one of the first aspects.
[0047] A fifth aspect of the present disclosure provides a terminal, comprising the dual-card data link switching device described in any one of the second aspects.
[0048] In summary, according to the dual-card data link switching method proposed in the present disclosure, the method includes, when determining that the signal strength of the first data card is less than the preset signal strength threshold, judging whether the signal strength of the second data card meets the preset switching condition, and performing terminal data transmission through the first data link established by the first data card; if the signal strength of the second data card meets the preset switching condition, then opening the second data link corresponding to the second data card; wherein the first data card and the second data card are in a dual-card dual-pass state; and controlling the closing of the first data link corresponding to the first data card. Compared with the related art, the present disclosure first establishes the second data link of the second data card when performing dual-card switching, forming an intermediate state where dual data links (the first data link and the second data link) coexist, and then disconnects the first data link corresponding to the first data card, solving the problem of freezing / high latency.
[0049] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0051] Figure 1 A flowchart of a dual-card data link switching method provided in an embodiment of the present disclosure;
[0052] Figure 2 A schematic diagram of dual data coexistence of a terminal provided by an embodiment of the present disclosure;
[0053] Figure 3 A flowchart of a dual-card data link switching method provided in an embodiment of the present disclosure;
[0054] Figure 4 A flowchart of a dual-card data link switching method provided in an embodiment of the present disclosure;
[0055] Figure 5 A flowchart of a dual-card data link switching method provided in an embodiment of the present disclosure;
[0056] Figure 6 A schematic diagram of the structure of a dual-card data link switching device provided in an embodiment of the present disclosure;
[0057] Figure 7 A schematic diagram of the structure of another dual-card data link switching device provided in an embodiment of the present disclosure;
[0058] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;
[0059] Fig. 9 A schematic diagram of the structure of a chip provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0060] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0061] With the popularization of smart terminal devices and the development of image processing, people's technical requirements for various aspects of terminals are also rising. When switching between dual SIM cards in a terminal, the data link of the main data card will be disconnected first, and then the data link of the secondary card will be established. There will be a short period of no network in the middle, causing packet loss and game lag. Therefore, a dual SIM data link switching method based on dual SIM dual active (DSDA) technology for seamless dual SIM switching is needed.
[0062] Therefore, in order to solve the problems existing in the related art, the present disclosure proposes a dual-card data link switching method, in which, when it is determined that the signal strength of the first data card is less than a preset signal strength threshold, it is judged whether the signal strength of the second data card meets the preset switching condition, and the data transmission of the terminal is performed through the first data link established by the first data card; if the signal strength of the second data card meets the preset switching condition, the second data link corresponding to the second data card is opened; wherein the first data card and the second data card are in a dual-card dual-pass state; and the first data link corresponding to the first data card is controlled to be closed. Dual-card seamless switching processing is realized.
[0063] The embodiments of the present disclosure are not exhaustive, but are only illustrative of some embodiments, and are not intended to be a specific limitation on the scope of protection of the present disclosure. In the absence of contradiction, each step in a certain embodiment can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a certain embodiment can also be implemented as an independent embodiment, and the order of the steps in a certain embodiment can be arbitrarily exchanged. In addition, the optional implementation methods in a certain embodiment can be arbitrarily combined; in addition, the embodiments can be arbitrarily combined, for example, some or all of the steps of different embodiments can be arbitrarily combined, and a certain embodiment can be arbitrarily combined with the optional implementation methods of other embodiments.
[0064] In each embodiment of the present disclosure, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between the embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form a new embodiment based on their internal logical relationships.
[0065] The terms used in the embodiments of the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.
[0066] In the embodiments of the present disclosure, unless otherwise specified, elements expressed in the singular form, such as "a", "an", "the", "above", "said", "aforementioned", "this", etc., may mean "one and only one", or "one or more", "at least one", etc. For example, when using articles such as "a", "an", "the" in English in translation, the noun after the article may be understood as a singular expression or a plural expression.
[0067] In some embodiments, terms such as "in response to ...", "in response to determining ...", "in the case of ...", "at the time of ...", "when ...", "if ...", "if ...", etc. can be used interchangeably.
[0068] In some embodiments, terms such as "greater than", "greater than or equal to", "not less than", "more than", "more than or equal to", "not less than", "higher than", "higher than or equal to", "not lower than", and "above" can be replaced with each other, and terms such as "less than", "less than or equal to", "not greater than", "less than", "less than or equal to", "no more than", "lower than", "lower than or equal to", "not higher than", and "below" can be replaced with each other.
[0069] The prefixes such as "first" and "second" in the embodiments of the present disclosure are only for distinguishing different description objects and do not constitute any restrictions on the position, order, priority, quantity or content of the description objects. For the statement of the description objects, please refer to the description in the context of the claims or embodiments, and no unnecessary restrictions should be constituted due to the use of prefixes.
[0070] In the embodiments of the present disclosure, “plurality” refers to two or more.
[0071] In the embodiments of the present disclosure, terms such as "import", "input", and "read in" can be used interchangeably.
[0072] In some embodiments, devices, etc. can be interpreted as physical or virtual, and their names are not limited to the names recorded in the embodiments. Terms such as "device", "equipment", "device", "circuit", "network element", "node", "function", "unit", "section", "system", "network", "chip", "chip system", "entity", and "subject" can be used interchangeably.
[0073] In some embodiments, the terms "terminal", "terminal device", "user equipment (UE)", "user terminal" "mobile station (MS)", "mobile terminal (MT)", subscriber station, mobile unit, subscriber unit, wireless unit, remote unit, mobile device (mobile device), wireless device (wireless device), wireless communication device (wireless communication device), remote device (remote device), mobile subscriber station (mobile subscriber station), access terminal (access terminal), mobile terminal (mobile terminal), wireless terminal (wireless terminal), remote terminal (remote terminal), handset (handset), user agent (user agent), mobile client (mobile client), client (client) and the like can be used interchangeably.
[0074] Figure 1 The present invention provides a flowchart of a dual-card data link switching method. The method can be applied to application scenarios such as smart terminals, for example, executed by a terminal with integrated dual-card dual-pass function, and the present invention is not limited thereto. Figure 1 As shown, the dual-card data link switching method includes steps 101-103.
[0075] Step 101: when it is determined that the signal strength of the first data card is less than a preset signal strength threshold, it is determined whether the signal strength of the second data card meets a preset switching condition, and data transmission of the terminal is performed through a first data link established by the first data card.
[0076] The smart terminal to which the embodiments of the present disclosure apply shall be equipped with dual SIM (Subscriber Identity Module) cards and have the function of DSDA. The first data card described in the embodiments of the present application is the data card (SIM card) used by the terminal when currently performing data transmission, which can also be called the main card, and the second data card is the data card (SIM card) of the terminal that does not open the data link, which can also be called the secondary card.
[0077] In some embodiments, when the terminal uses a mobile communication network to perform data transmission, that is, the terminal is currently using the first data link corresponding to the first data card to perform data transmission, the signal strength of the first data card in the terminal is monitored, and it is determined whether the signal strength of the first data card is less than a preset signal strength threshold. When it is determined that the signal strength of the first data card is less than the preset signal strength threshold, it means that the signal strength of the first data card in the wireless environment of the terminal at the current location is relatively weak, and the signal strength of the second data card needs to be judged. When it is determined that the signal strength of the first data card is greater than or equal to the preset signal strength threshold, it means that the signal strength of the first data card in the wireless environment of the terminal at the current location is relatively strong, and there is no need to perform data link switching.
[0078] In some embodiments, the preset signal strength threshold is an empirical value and needs to be flexibly set according to whether the data card is 4G or 5G. The preset signal strength threshold is used to define the weak signal threshold of the first data card and the second data card.
[0079] Illustratively, the embodiment of the present disclosure provides an example of an exemplary signal strength threshold, as shown in Table 1. It should be noted that Table 1 is only an illustrative example, and is not a limitation of specific values. In actual application scenarios, it can be flexibly configured according to actual needs.
[0080] Table 1
[0081] LTE(4G) NR(5G) weak signal RSRP<=-110 RSRP<=-105 Strong signal RSRP>=-97 RSRP>=-85
[0082] RSRP (Reference Singal Receiving Power) is the linear average of the power contribution (unit: w) of the resource elements carrying the cell-specific reference signal on the specified measurement frequency band (the protocol stipulates that RSRP refers to the energy per RE).
[0083] When it is determined that the signal strength of the first data card is less than the preset signal strength threshold, it is determined whether the signal strength of the second data card meets the preset switching condition, and the preset switching condition is determined according to the number of times the signal strength of the second data card is greater than the signal strength of the first data card within a preset time period. The purpose of such a setting is to prevent errors caused by the comparison result of the signal strength of the second data card with the signal strength of the first data card, thereby failing to solve the problem of freezing.
[0084] Step 102: if the signal strength of the second data card meets the preset switching condition, start the second data link corresponding to the second data card; wherein the first data card and the second data card are in a dual-card dual-pass state.
[0085] After determining that the signal strength of the first data card is less than the signal strength of the second data card in the environment where the terminal is located, the terminal notifies to switch the default data card to the second data card, that is, to open the second data link corresponding to the second data card.
[0086] After the second data card establishes the second data link, at this moment, the terminal simultaneously has the first data link corresponding to the first data card and the second data link corresponding to the second data card, forming dual data coexistence. The intermediate state of dual data coexistence can realize dual card seamless switching based on DSDA technology.
[0087] For a clearer understanding of dual data coexistence, please refer to Figure 2 , Figure 2 A schematic diagram of a terminal dual data coexistence provided by an embodiment of the present disclosure. Figure 2 It can be clearly seen that compared with before optimization, when the optimized first data card switches to the data link of the second data card, there is an intermediate state where dual data coexist, to ensure that there will be no short-term network-free state, so as to achieve the data transmission process without causing packet loss, freeze / high delay and other problems.
[0088] Step 103: Control closing the first data link corresponding to the first data card.
[0089] After ensuring that the current data transmission of the terminal is transmitted based on the second data link, the first data link corresponding to the first data card is cut off, that is, the main card data link is disconnected.
[0090] According to the dual-card data link switching method proposed in the present disclosure, the method includes, when determining that the signal strength of the first data card is less than the preset signal strength threshold, judging whether the signal strength of the second data card meets the preset switching condition, and performing terminal data transmission through the first data link established by the first data card; if the signal strength of the second data card meets the preset switching condition, then opening the second data link corresponding to the second data card; wherein the first data card and the second data card are in a dual-card dual-pass state; and controlling the closing of the first data link corresponding to the first data card. Compared with the related art, the present disclosure first establishes the second data link of the second data card when performing dual-card switching, forming an intermediate state where dual data links (the first data link and the second data link) coexist, and then disconnects the first data link corresponding to the first data card, solving the problem of freezing / high latency.
[0091] Figure 3 The following further shows a flow chart of a method for switching a dual-card data link proposed in the present disclosure. Figure 1 The embodiment shown further explains step 101. Figure 3 The following steps may be included:
[0092] Step 201, determining the number of times the signal strength of the second data card is greater than the signal strength of the first data card within a preset time period; and determining whether the number is greater than a preset number threshold.
[0093] If it is determined that the number is greater than the preset number threshold, step 202 is executed; if it is determined that the number is less than or equal to the preset number threshold, step 203 is executed.
[0094] The purpose of determining the number of times the signal strength of the second data card is greater than the signal strength of the first data card within a preset time period is to prevent errors in switching data links caused by a single signal strength comparison result.
[0095] In some embodiments, the preset number threshold is an empirical value. The higher the preset number threshold is set, the greater the requirement that the signal strength of the second data card must be higher than the signal strength of the first data card, and the signal strength of the second data card itself must be greater than or equal to the preset signal strength threshold.
[0096] For example, it is determined whether the signal strength of the second data card meets the strong signal condition. If it does, the dual-card signals for the next 30 seconds after the preset time are counted, and the statistical interval is 1 second. After 30 seconds, if the number of times the signal strength of the first data card is weak is greater than 60%, and the number of times the signal strength of the second data card is weak is less than 10%, it is determined that the signal strength of the first data card in the wireless environment at the current location is not as high as the signal strength of the second data card, so the default data card can be notified to switch to the second data card.
[0097] If the number of times the signal strength of the first data card is weak is less than or equal to 60%, and / or the number of times the signal strength of the second data card is weak is greater than or equal to 10%, it is determined that the signal strength of the first data card in the wireless environment of the current location is higher than the signal strength of the second data card. Therefore, there is no need to switch the data card, and the terminal continues to maintain data transmission based on the first data link of the first data card.
[0098] It should be noted that the above numerical values are only exemplary descriptions and are not limitations on specific numerical values.
[0099] Step 202: Determine whether the signal strength of the second data card satisfies the preset switching condition.
[0100] Step 203: determine that the signal strength of the second data card does not meet the preset switching condition.
[0101] In some embodiments, as an illustration of application scenarios, for some applications in the terminal that have high demands for mobile data, short-term network conditions may cause a decrease in user experience, for example, when the application is a game scenario, a live broadcast scenario, or a video or voice call scenario.
[0102] In order to satisfy the end user's experience, the method described in the embodiment of the present application performs seamless switching in the preset whitelist, such as Figure 4 As shown, specifically including:
[0103] Step 301, obtaining identification information of the current application.
[0104] All applications in the terminal have identification information of the application, and the identification information is determined during installation.
[0105] Step 302: Determine whether the current application is an application for a switchable data card according to a preset white list and the identification information, wherein the preset white list records the applications for a switchable data card and the corresponding identification information.
[0106] If it is determined that the current application is an application for a switchable data card, step 303 is executed. If it is determined that the current application is not an application for a switchable data card, the process ends.
[0107] In some embodiments, the applications of the switchable data card and the corresponding identification information recorded in the preset whitelist can be customized, such as applications that support game scenarios, live broadcast scenarios, or video and voice call scenarios. Specifically, the embodiments of the present disclosure do not limit this.
[0108] When it is determined that the current application is not an application capable of switching data cards, seamless switching between the first data card and the second data card is not performed to save processing resources of the terminal.
[0109] Step 303: Open the second data link corresponding to the second data card.
[0110] The method for the terminal to open the second data link corresponding to the second data card may refer to any implementation method in the relevant technology, and the specific implementation method will not be described in detail in the embodiment of the present disclosure.
[0111] In some embodiments, when executing to open the second data link corresponding to the second data card, it can be implemented by but not limited to the following methods, including: determining whether the first data card and the second data card both support dual-card dual-pass and whether they are in the dual-card dual-pass state; when it is determined that the first data card and the second data card both support dual-card dual-pass and are in the dual-card dual-pass state, establishing the second data link corresponding to the second data card to perform data transmission based on the second data link.
[0112] In some embodiments, it is first determined whether the first data card and the second data card are 4G / 5G, because only when the dual cards are 4 / 5G can they have DSDA capabilities. On this basis, it is determined whether the terminal is in a DSDA state. When both the first data card and the second data card support dual-card dual-pass and are in the dual-card dual-pass state, a second data link for the second data card is established to form an intermediate state of dual data coexistence.
[0113] In some embodiments, before determining whether the signal strength of the second data card meets the preset switching condition, the current screen state of the terminal screen is identified. If the current screen state is a bright screen state, the signal strength of the first data card is monitored to determine the relationship between the signal strength of the first data card and the preset signal strength threshold.
[0114] If the current screen state is the screen off state, the dual-card data link switching method described in the embodiment of the present disclosure will not be executed.
[0115] When executing signal strength monitoring, any method in the relevant technology can be used to implement it. The specific details will not be repeated in the embodiments of the present application.
[0116] In some embodiments, the present application also provides a method for switching a dual-card data link. Figure 5 As shown, including:
[0117] Step 401, identifying the current screen state of the terminal screen.
[0118] If the current screen state is the screen-on state, execute step 402; if the current screen state is the screen-off state, end.
[0119] Step 402: monitor the signal strength of the first data card to determine the magnitude relationship between the signal strength of the first data card and the preset signal strength threshold. Perform data transmission on the terminal through the first data link established by the first data card.
[0120] If it is determined that the signal strength of the first data card is less than the preset signal strength threshold, step 403 is executed; if it is determined that the signal strength of the first data card is greater than or equal to the preset signal strength threshold, step 404 is executed.
[0121] Step 403: determine whether the signal strength of the second data card meets a preset switching condition.
[0122] If the signal strength of the second data card meets the preset switching condition, step 405 is executed; if the signal strength of the second data card does not meet the preset switching condition, step 404 is executed.
[0123] Step 404: Continue to transmit data through the first data link established by the first data card.
[0124] Step 405, obtaining identification information of the current application;
[0125] Step 406: Determine whether the current application is an application for a switchable data card according to a preset whitelist and the identification information, wherein the preset whitelist records the applications for a switchable data card and the corresponding identification information.
[0126] If it is determined that the current application is an application for which the data card can be switched, step 407 is executed. If it is determined that the current application is an application for which the data card cannot be switched, the process ends.
[0127] Step 407: Open the second data link corresponding to the second data card.
[0128] In some embodiments, after the terminal switches to the second data link, it is still necessary to monitor the signal strength of the second data link. After determining that the signal strength of the second data card is less than the signal strength of the first data card within a preset time, it is also necessary to switch using the switching method described in the present disclosure. That is, the switching of the dual-card data link is not a one-time switching without monitoring or switching, but a process of continuous monitoring and / or switching (i.e., cyclic execution). Figure 5 process).
[0129] Step 408: Control closing the first data link corresponding to the first data card.
[0130] Figure 6 A schematic diagram of the structure of a dual-card data link switching device provided in an embodiment of the present disclosure, the dual-card data link switching device includes:
[0131] The first judgment unit 51 is used to judge whether the signal strength of the second data card meets the preset switching condition when it is determined that the signal strength of the first data card is less than the preset signal strength threshold, and to perform data transmission of the terminal through the first data link established by the first data card;
[0132] An opening unit 52, configured to open a second data link corresponding to the second data card when the signal strength of the second data card meets the preset switching condition; wherein the first data card and the second data card are in a dual-card dual-pass state;
[0133] The control unit 53 is used to control closing of the first data link corresponding to the first data card.
[0134] According to the switching device of the dual-card data link proposed in the present disclosure, it includes, when it is determined that the signal strength of the first data card is less than the preset signal strength threshold, judging whether the signal strength of the second data card meets the preset switching condition, and performing data transmission of the terminal through the first data link established by the first data card; if the signal strength of the second data card meets the preset switching condition, then opening the second data link corresponding to the second data card; wherein the first data card and the second data card are in a dual-card dual-pass state; and controlling the closing of the first data link corresponding to the first data card. Compared with the related art, the present disclosure first establishes the second data link of the second data card when performing dual-card switching, forming an intermediate state where the dual data links (the first data link and the second data link) coexist, and then disconnects the first data link corresponding to the first data card, solving the problem of freezing / high latency.
[0135] Furthermore, in a possible implementation of this embodiment, as Figure 7 As shown, the first judging unit 51 is further used for:
[0136] Determine the number of times that the signal strength of the second data card is greater than the signal strength of the first data card within a preset time period;
[0137] If it is determined that the number is greater than the preset number threshold, it is determined that the signal strength of the second data card meets the preset switching condition.
[0138] Furthermore, in a possible implementation of this embodiment, as Figure 7 As shown, the device also includes:
[0139] An acquisition unit 54, configured to acquire identification information of a current application before opening the second data link corresponding to the second data card;
[0140] A determination unit 55, configured to determine whether the current application is an application for a switchable data card according to a preset whitelist and the identification information, wherein the preset whitelist records the applications for a switchable data card and the corresponding identification information;
[0141] The enabling unit 52 is further configured to enable the second data link corresponding to the second data card when the determining unit determines that the current application is an application capable of switching data cards.
[0142] Furthermore, in a possible implementation of this embodiment, as Figure 7 As shown, the opening unit 52 is also used for:
[0143] Determine whether the first data card and the second data card both support dual-card dual-pass and are in the dual-card dual-pass state;
[0144] When it is determined that both the first data card and the second data card support dual-card dual-pass and are in the dual-card dual-pass state, a second data link corresponding to the second data card is established to perform data transmission based on the second data link.
[0145] Furthermore, in a possible implementation of this embodiment, as Figure 7 As shown, the device also includes:
[0146] An identification unit 56, configured to identify the current screen state of the terminal screen before determining whether the signal strength of the second data card satisfies a preset switching condition;
[0147] A monitoring unit 57, configured to monitor the signal strength of the first data card when the recognition unit recognizes that the current screen state is a bright screen state;
[0148] The second judging unit 58 is configured to judge the magnitude relationship between the signal strength of the first data card and the preset signal strength threshold.
[0149] In the embodiments provided in the present application, the methods and devices provided in the embodiments of the present application are introduced. In order to implement the functions in the methods provided in the embodiments of the present application, the electronic device may include a hardware structure and a software module, and implement the functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. A function of the functions may be executed in the form of a hardware structure, a software module, or a hardware structure plus a software module.
[0150] Furthermore, in a possible implementation of this embodiment, a terminal is also provided, the terminal comprising: Figure 6 or Figure 7 A switching device for a dual-card data link as shown in any one of the drawings.
[0151] Figure 8 1 is a block diagram of an electronic device 600 for implementing the above-mentioned dual-SIM data link switching method according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0152] Reference Figure 8 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0153] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0154] The memory 604 is configured to store various types of data to support operations on the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 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 memory, flash memory, magnetic disk or optical disk.
[0155] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.
[0156] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 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 touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0157] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0158] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0159] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0160] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR (NewRadio) or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0161] In an exemplary embodiment, the electronic device 600 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 above methods.
[0162] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the above instructions can be executed by a processor 620 of an electronic device 600 to perform the above method for image processing. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0163] The embodiments of the present disclosure further provide a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in the above embodiments of the present disclosure.
[0164] For electronic devices that may be chips or chip systems, see Fig. 9 Schematic diagram of the chip structure shown. Fig. 9 The chip shown includes a processor 701 and an interface 702. The number of the processor 701 can be one or more, and the number of the interface 702 can be multiple.
[0165] Optionally, the chip further includes a memory 703, and the memory 703 is used to store necessary computer programs and data.
[0166] Those skilled in the art may also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application may be implemented by electronic hardware, computer software, or a combination of the two. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the functions for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present application.
[0167] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0168] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0169] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0170] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processing module, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (control method), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.
[0171] It should be understood that the various parts of the embodiments of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0172] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0173] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0174] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for switching dual-card data links, characterized in that: The method comprises: When it is determined that the signal strength of the first data card is less than a preset signal strength threshold, determining whether the signal strength of the second data card meets a preset switching condition, and transmitting data of the terminal through the first data link established by the first data card; If the signal strength of the second data card meets the preset switching condition, the second data link corresponding to the second data card is opened; wherein the first data card and the second data card are in a dual-card dual-pass state; Control to close the first data link corresponding to the first data card.
2. The method according to claim 1, characterized in that The step of determining whether the signal strength of the second data card meets the preset switching condition includes: Determine the number of times that the signal strength of the second data card is greater than the signal strength of the first data card within a preset time period; If it is determined that the number is greater than the preset number threshold, it is determined that the signal strength of the second data card meets the preset switching condition.
3. The method according to claim 1, characterized in that Before opening the second data link corresponding to the second data card, the method further includes: Get the identification information of the current application; Determine whether the current application is an application for a switchable data card according to a preset whitelist and the identification information, wherein the preset whitelist records the application for a switchable data card and the corresponding identification information; The step of opening the second data link corresponding to the second data card comprises: When it is determined that the current application is an application capable of switching data cards, a second data link corresponding to the second data card is opened.
4. The method according to claim 1, characterized in that: The step of opening the second data link corresponding to the second data card comprises: Determine whether the first data card and the second data card both support dual-card dual-pass and are in the dual-card dual-pass state; When it is determined that both the first data card and the second data card support dual-card dual-pass and are in the dual-card dual-pass state, a second data link corresponding to the second data card is established to perform data transmission based on the second data link.
5. The method according to claim 1, characterized in that Before determining whether the signal strength of the second data card meets the preset switching condition, the method further includes: Identify the current screen state of the terminal screen; If the current screen state is a bright screen state, monitoring the signal strength of the first data card; Determine the magnitude relationship between the signal strength of the first data card and the preset signal strength threshold.
6. A dual-card data link switching device, characterized in that: The device comprises: A first judgment unit, configured to judge whether the signal strength of the second data card meets a preset switching condition when it is determined that the signal strength of the first data card is less than a preset signal strength threshold, and to perform data transmission of the terminal through the first data link established by the first data card; An opening unit, used for opening a second data link corresponding to the second data card when the signal strength of the second data card meets the preset switching condition; wherein the first data card and the second data card are in a dual-card dual-pass state; A control unit is used to control closing of the first data link corresponding to the first data card.
7. The device according to claim 6, characterized in that The first determining unit is further configured to: Determine the number of times that the signal strength of the second data card is greater than the signal strength of the first data card within a preset time period; If it is determined that the number is greater than the preset number threshold, it is determined that the signal strength of the second data card meets the preset switching condition.
8. The device according to claim 6, characterized in that The device also includes: an acquisition unit, configured to acquire identification information of a current application before opening a second data link corresponding to the second data card; a determination unit, configured to determine whether the current application is an application for a switchable data card according to a preset whitelist and the identification information, wherein the preset whitelist records the applications for a switchable data card and the corresponding identification information; The enabling unit is further configured to enable a second data link corresponding to the second data card when the determining unit determines that the current application is an application capable of switching data cards.
9. The device according to claim 6, characterized in that The opening unit is also used for: Determine whether the first data card and the second data card both support dual-card dual-pass and are in the dual-card dual-pass state; When it is determined that both the first data card and the second data card support dual-card dual-pass and are in the dual-card dual-pass state, a second data link corresponding to the second data card is established to perform data transmission based on the second data link.
10. The device according to claim 6, characterized in that The device also includes: an identification unit, configured to identify a current screen state of the terminal screen before determining whether the signal strength of the second data card satisfies a preset switching condition; A monitoring unit, configured to monitor the signal strength of the first data card when the identification unit identifies that the current screen state is a bright screen state; The second judgment unit is used to judge the magnitude relationship between the signal strength of the first data card and the preset signal strength threshold.
11. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.
12. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-5.
13. A terminal, characterized in that: The terminal comprises the dual-card data link switching device according to any one of claims 6 to 10.