SIM card switching method and device, electronic equipment and storage medium
By monitoring the broadcast service status in user equipment and automatically switching SIM cards using a scoring model, the problem of broadcast service instability caused by manual SIM card switching in existing technologies is solved, and the continuity and stability of broadcast services in complex network environments are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-29
- Publication Date
- 2026-04-07
AI Technical Summary
When multiple SIM cards are inserted into a user device, existing technology cannot intelligently switch the SIM card receiving broadcast services, resulting in poor stability of broadcast services. Users need to manually monitor the network status and switch SIM cards, which is cumbersome and prone to interruption.
By monitoring whether the reception status of broadcast services meets abnormal conditions, a pre-trained scoring model is used to determine the status score of each SIM card, and the SIM card switching operation is automatically triggered based on the score, thereby realizing intelligent switching of the SIM card receiving broadcast services.
Ensuring the continuity and stability of broadcast services in complex network environments reduces manual operations and improves user experience.
Smart Images

Figure CN121815357A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of mobile communication technology, and in particular to a method, apparatus, electronic device and storage medium for switching a Subscriber Identity Module (SIM card). Background Technology
[0002] Broadcast services can achieve diverse applications such as high-definition video, emergency broadcasting, and converged media through coordinated coverage of broadcast television towers and cellular base stations, and feature wide-area coverage, high-speed mobile reception, and no data usage.
[0003] Because broadcast services depend on the connection quality between the SIM card inserted in the electronic device and the operator's network, users may encounter the following problems in actual use: When multiple SIM cards are inserted into the electronic device, if the broadcast service is interrupted due to weak signal, failure to register on the network, or network congestion, the user needs to manually switch the SIM card to receive the broadcast service. Otherwise, the user may face situations such as stuttering during broadcast playback, failure to receive the broadcast, or even complete inability to obtain broadcast content. Summary of the Invention
[0004] This application provides a SIM card switching method, apparatus, electronic device, and storage medium, which can solve the technical problem in related technologies that the inability to intelligently switch SIM cards to receive broadcast services leads to poor stability of broadcast services.
[0005] In a first aspect, this application provides a SIM card switching method, applied in an electronic device, the electronic device having at least two SIM cards; the method includes:
[0006] During the operation of the broadcast service, monitor whether the reception status of the broadcast service meets the preset abnormal conditions;
[0007] When the reception status of the broadcast service meets the abnormal conditions, at least two SIM card status scores are obtained; the SIM card status scores are determined based on a pre-trained scoring model.
[0008] Based on the status scores of at least two SIM cards, determine whether to trigger a SIM card switching operation;
[0009] When a SIM card switching operation is triggered, the SIM card currently used to receive broadcast services is switched.
[0010] In one possible implementation, monitoring whether the reception status of the broadcast service meets preset abnormal conditions includes:
[0011] The broadcast service reception status is deemed to be abnormal when any of the following conditions are met:
[0012] The number of times the broadcast service experiences playback stuttering within a preset duration is greater than or equal to a preset threshold.
[0013] The cumulative playback stuttering duration of broadcast services within a preset duration is greater than or equal to a preset duration threshold.
[0014] The broadcast service reception link was interrupted;
[0015] The signal strength of the SIM card used to receive broadcast services is less than a preset signal strength threshold.
[0016] In one possible implementation, determining whether to trigger a SIM card switching operation based on the status scores of at least two SIM cards includes:
[0017] Determine whether the status score of the SIM card currently used to receive broadcast services is lower than the status score of the candidate SIM card;
[0018] If the status score of the SIM card currently used to receive broadcast services is lower than the status score of the candidate SIM card, and the absolute difference between the status score of the SIM card currently used to receive broadcast services and the status score of the candidate SIM card is greater than a preset tolerance value, then a SIM card switching operation is triggered.
[0019] In one possible implementation, the above method further includes:
[0020] At preset intervals, obtain network registration information and signal strength of at least two SIM cards;
[0021] Based on the network registration information and signal strength of each SIM card, a scoring model is used to determine the status score of each SIM card.
[0022] Based on the status score of each SIM card, the SIM cards are sorted to generate a list of candidate SIM cards.
[0023] In one possible implementation, the above method further includes:
[0024] After triggering the SIM card switching operation, a preset timer is started;
[0025] During the timer's operation, the signal strength of the SIM card used to receive broadcast services is monitored;
[0026] If the signal strength of the SIM card used to receive broadcast services is greater than or equal to a preset signal strength threshold, the SIM card switching operation will be suspended.
[0027] In one possible implementation, the above method further includes:
[0028] During the operation of the broadcast service, the network registration information and signal strength of the SIM card used to receive the broadcast service, as well as the reception quality information of the broadcast service, are recorded.
[0029] The scoring model mentioned above was generated by training a decision tree algorithm based on the recorded network information and signal strength of the SIM card used to receive broadcast services, as well as the reception quality information of the broadcast services.
[0030] Secondly, embodiments of this application provide a SIM card switching device, applied in an electronic device, wherein the electronic device is provided with at least two SIM cards; the device includes:
[0031] The monitoring module is used to monitor whether the reception status of the broadcast service meets the preset abnormal conditions during the operation of the broadcast service.
[0032] The acquisition module is used to acquire the status scores of at least two SIM cards when the reception status of the broadcast service meets the abnormal conditions; the status scores of the SIM cards are determined based on a pre-trained scoring model.
[0033] The judgment module is used to determine whether to trigger a SIM card switching operation based on the status scores of at least two SIM cards;
[0034] The switching module is used to switch the SIM card currently used to receive broadcast services when a SIM card switching operation is triggered.
[0035] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;
[0036] The memory stores the instructions that the computer executes;
[0037] The processor executes computer execution instructions stored in memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0038] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.
[0039] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.
[0040] Sixthly, embodiments of this application provide a chip including at least one processor for executing program instructions to implement the first aspect and / or various possible implementations of the first aspect.
[0041] The SIM card switching method, apparatus, electronic device, and storage medium provided in this application embodiment, when detecting that the reception status of broadcast services meets preset abnormal conditions, use a scoring model to determine the status score of each SIM card. Based on the status score of each SIM card, it can be determined whether to trigger a SIM card switching operation, thereby realizing intelligent switching of the SIM card receiving broadcast services, and thus ensuring the continuity and stability of broadcast services in complex network environments. Attached Figure Description
[0042] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0043] Figure 1 This is a flowchart illustrating a SIM card switching method provided in an embodiment of this application;
[0044] Figure 2 This is another flowchart illustrating a SIM card switching method provided in the embodiments of this application;
[0045] Figure 3 This is a schematic diagram of the structure of a SIM card switching device provided in the embodiments of this application;
[0046] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0047] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0048] 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 numbers 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 application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0049] In this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0050] In the embodiments of this application, terms such as "first" and "second" are used to distinguish identical or similar items with substantially the same function and purpose. For example, "first SIM card" and "second SIM card" are used only to distinguish different SIM cards and do not limit their order. Those skilled in the art will understand that terms such as "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.
[0051] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc.
[0052] The electronic devices in this application embodiment may include handheld devices, vehicle-mounted devices, etc., with wireless communication capabilities. For example, some electronic devices can be: mobile phones, tablets, PDAs, laptops, mobile internet devices (MIDs), virtual reality (VR) devices, augmented reality (AR) devices, wireless terminal devices in industrial control, wireless terminal devices in self-driving, wireless terminal devices in remote medical surgery, wireless terminal devices in smart grids, wireless terminal devices in transportation safety, wireless terminal devices in smart cities, wireless terminal devices in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to a wireless modem, in-vehicle devices, wearable devices, and 5th generation mobile communication technology. Terminal devices in 5G networks or in future public land mobile networks (PLMNs) are not limited to this in the embodiments of this application.
[0053] By way of example and not limitation, in the embodiments of this application, the electronic device may also be a wearable device. Wearable devices, also known as wearable smart devices, are a general term for devices that are intelligently designed and developed using wearable technology to make everyday wearables, such as glasses, gloves, watches, clothing, and shoes.
[0054] In this application embodiment, the device used to implement the function of the electronic device can be an electronic device; or it can be a device that can support the electronic device to implement the function, such as a chip system, which can be installed in the electronic device.
[0055] Broadcasting services are a new type of broadcasting service based on network technology. Through the coordinated coverage of broadcast television towers and cellular base stations, it enables diverse applications such as high-definition video, emergency broadcasting, and converged media. It features wide-area coverage, high-speed mobile reception, and no data usage.
[0056] For example, in 5G broadcast service application scenarios, users typically receive broadcast content through electronic devices that support 5G Standalone (SA) networks.
[0057] Broadcast services combine the wide coverage of mobile cellular networks with the high-efficiency transmission characteristics of broadcast television, enabling users to provide services such as low-latency, high-concurrency live video streaming, emergency broadcasting, and public safety information delivery.
[0058] However, because broadcast services rely on the connection quality between the SIM card inserted into the electronic device and the operator's network, users may face the following problems in actual use:
[0059] When multiple SIM cards are inserted into the device, the user needs to manually select the SIM card to receive broadcast services to ensure the smoothness of broadcast services. For example, the user needs to select one of the SIM cards to receive broadcast services based on information such as signal strength and operator network status.
[0060] However, if the broadcast service is interrupted due to weak signal, network failure, or network congestion on the SIM card currently selected by the user, the user needs to manually switch to the SIM card receiving the broadcast service. Otherwise, they may experience playback stuttering, reception failure, or even complete inability to receive broadcast content. For example, if a user detects that the SIM card currently receiving the broadcast service has a weak signal, they need to manually switch to another SIM card with a stronger signal to restore the broadcast service.
[0061] Furthermore, in mobile scenarios (such as when a user is driving), network signals change frequently and dynamically. Existing technologies lack intelligent automatic switching mechanisms, which can also lead to a significant decline in user experience.
[0062] In summary, in existing technologies, users need to actively monitor network status and manually switch the SIM card receiving broadcast services. This process is cumbersome and prone to misjudgment, which can lead to broadcast service interruptions. Therefore, there is an urgent need for a method that can dynamically switch the SIM card receiving broadcast services based on real-time network status and user behavior to improve the stability of broadcast services.
[0063] To address the aforementioned technical issues, this application provides a SIM card switching method. When the reception status of a broadcast service is detected to meet preset abnormal conditions, a scoring model is used to determine the status score of each SIM card. Based on the status score of each SIM card, it can be determined whether to trigger a SIM card switching operation, thereby enabling intelligent switching of the SIM card receiving the broadcast service. This ensures the continuity and stability of the broadcast service in complex network environments.
[0064] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0065] The technical solutions provided in this application can be applied to electronic devices (such as smartphones, vehicle terminals, smart TVs, etc.) that support the insertion of at least two SIM cards, including scenarios where broadcast services are received in SA or Non-Standalone (NSA) dual-mode networks.
[0066] like Figure 1 As shown, Figure 1 This is a flowchart illustrating a SIM card switching method provided in an embodiment of this application.
[0067] In some embodiments, the SIM card switching method described above includes:
[0068] S101. During the operation of the broadcast service, monitor whether the reception status of the broadcast service meets the preset abnormal conditions; if so, execute S102.
[0069] Optionally, the aforementioned broadcast service can be a 5G broadcast service, a 4G broadcast service, an emergency broadcast service, etc., and no limitation is made in this embodiment.
[0070] In some implementations, abnormal conditions can be set for data in multiple dimensions. By monitoring data in multiple dimensions, it can be determined whether the reception status of the broadcast service is abnormal.
[0071] Optionally, the data from the above multiple dimensions may include:
[0072] The signal strength of SIM cards currently used to receive broadcast services reflects the signal coverage strength between electronic devices and base stations, directly determining the reliability of data transmission.
[0073] Signal-to-noise ratio (SNR): This measure measures the contrast between signal and noise, and affects the success rate of decoding.
[0074] Bit Error Rate (BER): The number of bits transmitted incorrectly per unit of time, which reflects the quality of the link.
[0075] Packet Loss Rate: The percentage of data packets lost in broadcast services. A high packet loss rate can cause video stuttering or audio interruption.
[0076] Service interruption count: The number of times broadcast services are interrupted per unit of time, which reflects network stability.
[0077] S102. Obtain the status scores of at least two SIM cards; wherein the status scores of the SIM cards are determined based on a pre-trained scoring model.
[0078] In some embodiments, the scoring model can comprehensively evaluate the current status of the SIM card and output a quantifiable status score (e.g., 0-100 points) to compare the reception quality of different SIM cards receiving broadcast services.
[0079] S103. Based on the status scores of at least two SIM cards, determine whether to trigger a SIM card switching operation; if yes, proceed to S104; if no, return to S101.
[0080] Assume the electronic device includes a first SIM card and a second SIM card, and the SIM card currently used to receive broadcast services is the first SIM card. In some implementations, a SIM card switching operation can be triggered when the status score of the first SIM card is lower than a first threshold (e.g., 60 points) and the status score of the second SIM card is higher than a second threshold (e.g., 70 points).
[0081] In some implementations, a SIM card switching operation may be triggered when the status score of the first SIM card is lower than that of the second SIM card.
[0082] S104. Switch the SIM card currently used to receive broadcast services.
[0083] In some implementations, if the SIM card currently used to receive broadcast services is the first SIM card, the SIM card used to receive broadcast services can be automatically switched to the second SIM card without the user having to switch manually.
[0084] The SIM card switching method provided in this application, when detecting that the reception status of broadcast services meets preset abnormal conditions, uses a scoring model to determine the status score of each SIM card. Based on the status score of each SIM card, it can be determined whether to trigger a SIM card switching operation, thereby realizing intelligent switching of the SIM card receiving broadcast services, and thus ensuring the continuity and stability of broadcast services in complex network environments.
[0085] In some embodiments, the reception status of the broadcast service is determined to be abnormal when any one of the following conditions is detected:
[0086] (1) The number of times the broadcast service stutters within the preset duration is greater than or equal to the preset number threshold.
[0087] For example, if a broadcast service experiences three or more playback interruptions within five minutes, the broadcast service's reception status is determined to meet abnormal conditions.
[0088] In some implementations, the presence of playback stuttering in a broadcast service can be determined based on factors such as the broadcast service's buffering time, packet loss rate, and latency.
[0089] For example, a stutter can be identified when the single buffering time exceeds the buffering threshold (e.g., 3 seconds). Alternatively, a stutter can be identified when the packet loss rate exceeds the packet loss rate threshold (e.g., 2%).
[0090] (2) The cumulative playback stuttering time of the broadcast service within the preset duration is greater than or equal to the preset duration threshold.
[0091] For example, if the cumulative playback stuttering time of a broadcast service is greater than or equal to 10 seconds within 5 minutes, the broadcast service reception status is determined to meet abnormal conditions.
[0092] (3) The receiving link of the broadcast service is interrupted.
[0093] An interruption in the receiving link of a broadcast service indicates that the signal transmission path of the broadcast service is completely broken.
[0094] (4) The signal strength of the SIM card used to receive broadcast services is less than the preset signal strength threshold.
[0095] Optionally, the signal strength of the SIM card can refer to the Reference Signal Received Power (RSRP) or the Reference Signal Received Quality (RSRQ).
[0096] The method provided in this application embodiment uses data from multiple dimensions to determine whether the reception status of broadcast services is abnormal, which can significantly improve the quality monitoring capability of broadcast services.
[0097] In some embodiments, the above method further includes:
[0098] During the operation of the broadcast service, the network registration information and signal strength of the SIM card used to receive the broadcast service, as well as the reception quality information of the broadcast service, are recorded. Based on the recorded network registration information and signal strength of the SIM card used to receive the broadcast service, as well as the reception quality information of the broadcast service, the above-mentioned scoring model is generated by training using a decision tree algorithm.
[0099] In some implementations, the scoring model is obtained by recording data such as the SIM card's network status and signal strength during user usage, and then using this data to train a decision tree model.
[0100] The recording of the aforementioned data can be achieved using software on an electronic device, which can record relevant data periodically or when triggered by specific events. Optionally, the data includes the currently used SIM card, network registration information, signal strength, etc.
[0101] The above scoring model can output the status score of each SIM card based on the current network environment information.
[0102] In some implementations, the training method for the above-mentioned scoring model includes:
[0103] Step S1: Collect training data.
[0104] Optionally, the following data can be collected:
[0105] SIM card capabilities and network information: such as whether the SIM card supports broadcast services, the operator network the SIM card is currently registered with, and whether the SIM card is registered with a 5G network.
[0106] Signal strength in each frequency band: such as Received Signal Strength Indicator (RSSI), RSRP, RSRQ, etc.
[0107] Broadcast service reception quality: retains the current network packet loss rate, latency, etc.
[0108] SIM card usage history: Data such as the number of network connection interruptions and connection duration for each SIM card over a period of time, used to assess its network connection stability.
[0109] Step S2: Construct the model to be trained.
[0110] In some implementations, decision tree algorithms, such as Classification and Regression Tree (CART), can be applied to construct a decision tree model based on the importance of features, which can then be used as the model to be trained.
[0111] Step S3: Train the above-mentioned model using the training data.
[0112] In some implementations, the training process of the above-mentioned model to be trained includes:
[0113] (1) Use the above training data as the training sample set, use the feature vector of each sample (such as signal strength, network information, etc.) as the input of the model to be trained, and use the SIM card selected by the user as the label.
[0114] (2) Use cross-validation to evaluate model performance and prevent overfitting.
[0115] For example, the training set can be divided into k subsets. Each time, k-1 subsets are used for training, and the remaining subset is used for validation. This process is repeated k times, and the average of the k validation results is taken as the evaluation metric for model performance, such as accuracy or recall.
[0116] (3) Adjust the hyperparameters of the decision tree, such as the maximum depth of the tree and the minimum number of samples in the leaf nodes, to optimize the model performance.
[0117] The method provided in this application embodiment records the network information and signal strength of the SIM card used to receive the broadcast service, as well as the reception quality information of the broadcast service, during the operation of the broadcast service. It then trains a scoring model, thereby using the trained scoring model to score the status of each SIM card and select the SIM card with the best signal quality for receiving the broadcast service.
[0118] like Figure 2 As shown, Figure 2 This is a schematic diagram of a sub-process of a SIM card switching method provided in an embodiment of this application.
[0119] In some embodiments, the SIM card switching method described above includes:
[0120] S201. Monitor the SIM card inserted into the electronic device.
[0121] S202. Determine whether the number of SIM cards inserted into the electronic device is greater than 1. If yes, continue to execute S203; otherwise, return to execute S201.
[0122] S203. Determine whether the number of SIM cards supporting broadcast service is greater than 1. If yes, continue to S204; otherwise, return to S201.
[0123] S204. At preset intervals, obtain the network registration information and signal strength of SIM cards that support broadcast services; based on the network registration information and signal strength of each SIM card, use a scoring model to determine the status score of each SIM card.
[0124] S205. Sort the SIM cards according to their status scores and generate a list of candidate SIM cards.
[0125] In some embodiments, when the reception status of the broadcast service meets the abnormal conditions, the status score of each SIM card is obtained; it is determined whether the status score of the SIM card currently used to receive the broadcast service is less than the status score of the candidate SIM card; if the status score of the SIM card currently used to receive the broadcast service is less than the status score of the candidate SIM card, and the absolute difference between the status score of the SIM card currently used to receive the broadcast service and the status score of the candidate SIM card is greater than a preset tolerance value, then it is determined to trigger a SIM card switching operation.
[0126] The electronic device can respond to the SIM card switching operation described above by switching the SIM card currently used to receive broadcast services, such as switching to the candidate SIM card mentioned above to receive broadcast services.
[0127] The tolerance value sets a reasonable range of differences. A handover will only be triggered when the difference between the status scores of the current SIM card and the candidate SIM card exceeds this range. For example, if the tolerance value is set to 5, a handover will only be considered when the candidate SIM card score is 5 points or more higher than the current SIM card score. This can reduce unnecessary handover operations and prevent incorrect handover operations from being triggered when there are minor network fluctuations.
[0128] In some implementations, after the SIM card switching operation is completed, monitoring of the broadcast service reception status can be restarted to determine whether preset abnormal conditions are met.
[0129] In some implementations, the network status of the SIM card can be continuously monitored, and the scoring model can be optimized and adjusted based on the monitoring data to adapt to the ever-changing network environment and user needs.
[0130] In some embodiments, after a SIM card switching operation is triggered, a preset timer can be started; during the operation of the timer, the signal strength of the SIM card used to receive broadcast services is monitored; if the signal strength of the SIM card used to receive broadcast services is greater than or equal to a signal strength threshold, the response to the SIM card switching operation is paused.
[0131] In some implementations, the timer's operation period can be used as a switching cooldown period. During this cooling-off period, the electronic device suspends responding to SIM card switching operations unless a serious network quality problem occurs, such as the signal strength of the SIM card currently used to receive broadcast services being less than a signal strength threshold. In such cases, the electronic device can respond to subsequent SIM card switching operations, thereby avoiding frequent SIM card switching.
[0132] In some embodiments, this application also provides a SIM card switching device applied in an electronic device, the electronic device having at least two SIM cards.
[0133] Reference Figure 3 , Figure 3 This is a schematic diagram of a SIM card switching device provided in an embodiment of this application. The SIM card switching device 30 includes:
[0134] The monitoring module 301 is used to monitor whether the reception status of the broadcast service meets preset abnormal conditions during the operation of the broadcast service.
[0135] The acquisition module 302 is used to acquire the status scores of at least two SIM cards when the reception status of the broadcast service meets the abnormal conditions; the status scores of the SIM cards are determined according to a pre-trained scoring model.
[0136] The judgment module 303 is used to determine whether to trigger a SIM card switching operation based on the status scores of at least two SIM cards.
[0137] The switching module 304 is used to switch the SIM card currently used to receive broadcast services when a SIM card switching operation is determined to be triggered.
[0138] In one possible implementation, the monitoring module 301 is used for:
[0139] The broadcast service reception status is deemed to be abnormal when any of the following conditions are met:
[0140] The number of times the broadcast service experiences playback stuttering within a preset duration is greater than or equal to a preset threshold.
[0141] The cumulative playback stuttering duration of broadcast services within a preset duration is greater than or equal to a preset duration threshold.
[0142] The broadcast service reception link was interrupted;
[0143] The signal strength of the SIM card used to receive broadcast services is less than a preset signal strength threshold.
[0144] In one possible implementation, the determination module 303 is used for:
[0145] Determine whether the status score of the SIM card currently used to receive broadcast services is lower than the status score of the candidate SIM card;
[0146] If the status score of the SIM card currently used to receive broadcast services is lower than the status score of the candidate SIM card, and the absolute difference between the status score of the SIM card currently used to receive broadcast services and the status score of the candidate SIM card is greater than a preset tolerance value, then a SIM card switching operation is triggered.
[0147] In one possible implementation, the acquisition module 302 is further configured to:
[0148] At preset intervals, obtain network registration information and signal strength of at least two SIM cards;
[0149] Based on the network registration information and signal strength of each SIM card, a scoring model is used to determine the status score of each SIM card.
[0150] Based on the status score of each SIM card, the SIM cards are sorted to generate a list of candidate SIM cards.
[0151] In one possible implementation, the switching module 304 is further configured to:
[0152] After triggering the SIM card switching operation, a preset timer is started;
[0153] During the timer's operation, the signal strength of the SIM card used to receive broadcast services is monitored;
[0154] If the signal strength of the SIM card used to receive broadcast services is greater than or equal to the signal strength threshold, the SIM card switching operation will be suspended.
[0155] In one possible implementation, the acquisition module 302 is further configured to:
[0156] During the operation of the broadcast service, the network registration information and signal strength of the SIM card used to receive the broadcast service, as well as the reception quality information of the broadcast service, are recorded.
[0157] The scoring model mentioned above was generated by training a decision tree algorithm based on the recorded network information and signal strength of the SIM card used to receive broadcast services, as well as the reception quality information of the broadcast services.
[0158] The SIM card switching device provided in this embodiment can execute the SIM card switching method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0159] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 4As shown, the electronic device 40 provided in this embodiment includes at least one processor 401 and a memory 402. Optionally, the electronic device 40 further includes a communication interface 403. The processor 401, memory 402, and communication interface 403 are connected via a bus.
[0160] In the specific implementation process, at least one processor 401 executes computer execution instructions stored in memory 402, causing at least one processor 401 to execute the SIM card switching method described in the above embodiments.
[0161] The specific implementation process of processor 401 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0162] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.
[0163] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0164] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0165] This application also provides a chip including at least one processor for executing program instructions to perform the above-described SIM card switching method.
[0166] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the SIM card switching method described in the above embodiments.
[0167] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the aforementioned SIM card switching method.
[0168] The aforementioned readable storage medium 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. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0169] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an application-specific integrated circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0170] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0171] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
Claims
1. A SIM card switching method, characterized in that, The method is applied to an electronic device, wherein the electronic device is equipped with at least two SIM cards; the method includes: During the operation of the broadcast service, monitor whether the reception status of the broadcast service meets the preset abnormal conditions; When the reception status of the broadcast service meets the abnormal condition, the status scores of the at least two SIM cards are obtained; the status scores of the SIM cards are determined based on a pre-trained scoring model. Based on the status scores of the at least two SIM cards, determine whether to trigger a SIM card switching operation; When a SIM card switching operation is triggered, the SIM card currently used to receive the broadcast service is switched.
2. The method according to claim 1, characterized in that, The monitoring of whether the reception status of the broadcast service meets preset abnormal conditions includes: The broadcast service reception status is determined to meet the abnormal condition when any one of the following conditions is detected: The number of times the broadcast service experiences playback stuttering within a preset duration is greater than or equal to a preset threshold. The cumulative playback stuttering duration of the broadcast service within a preset duration is greater than or equal to a preset duration threshold. The receiving link for the broadcast service was interrupted; The signal strength of the SIM card used to receive the broadcast service is less than a preset signal strength threshold.
3. The method according to claim 1 or 2, characterized in that, The step of determining whether to trigger a SIM card switching operation based on the status scores of the at least two SIM cards includes: Determine whether the status score of the SIM card currently used to receive the broadcast service is lower than the status score of the candidate SIM card; If the status score of the SIM card currently used to receive the broadcast service is lower than the status score of the candidate SIM card, and the absolute difference between the status score of the SIM card currently used to receive the broadcast service and the status score of the candidate SIM card is greater than a preset tolerance value, then the SIM card switching operation is determined to be triggered.
4. The method according to claim 1, characterized in that, The method further includes: At preset intervals, acquire the network registration information and signal strength of the at least two SIM cards; Based on the network registration information and signal strength of each SIM card, the status score of each SIM card is determined using the scoring model; Based on the status score of each SIM card, the SIM cards are sorted to generate a candidate SIM card list.
5. The method according to claim 1, characterized in that, The method further includes: After the SIM card switching operation is triggered, a preset timer is started; During the operation of the timer, the signal strength of the SIM card used to receive the broadcast service is monitored; If the signal strength of the SIM card used to receive the broadcast service is greater than or equal to a preset signal strength threshold, the SIM card switching operation is suspended.
6. The method according to claim 1, characterized in that, The method further includes: During the operation of the broadcast service, the network registration information and signal strength of the SIM card used to receive the broadcast service, as well as the reception quality information of the broadcast service, are recorded. The scoring model is generated by training a decision tree algorithm based on the recorded network information and signal strength of the SIM card used to receive the broadcast service, as well as the reception quality information of the broadcast service.
7. A SIM card switching device, characterized in that, The device is used in an electronic device that has at least two SIM cards; the device includes: The monitoring module is used to monitor whether the reception status of the broadcast service meets preset abnormal conditions during the operation of the broadcast service. The acquisition module is used to acquire the status scores of the at least two SIM cards when the reception status of the broadcast service meets the abnormal conditions; the status scores of the SIM cards are determined based on a pre-trained scoring model. The judgment module is used to determine whether to trigger a SIM card switching operation based on the status scores of the at least two SIM cards; The switching module is used to switch the SIM card currently used to receive the broadcast service when a SIM card switching operation is triggered.
8. An electronic device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the SIM card switching method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the SIM card switching method as described in any one of claims 1-6.
10. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the SIM card switching method as described in any one of claims 1-6.