METHOD FOR EXCHANGING CARD TRANSFER SEGMENTS, DEVICE AND STORAGE MEDIUM
Patent Information
- Application Number
- MX2023002214
- Authority / Receiving Office
- MX · MX
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-08-27
- Filing Date
- 2023-02-22
- Publication Date
- 2026-06-12
- Estimated Expiration
- 2041-06-16
AI Technical Summary
Conventional terminal devices with a single radio frequency set cannot seamlessly transfer card segments between cards belonging to different operators, leading to poor service quality due to mismatched network services, as they lack the ability to intelligently switch between cards with different signal characteristics.
A method and device for exchanging card transfer segments by acquiring a change signal, utilizing a segment database to identify exchangeable segments based on application network usage status, ensuring seamless transitions without affecting user experience, and improving service quality.
Enables seamless card segment exchange between cards with different operators, maintaining application functionality and enhancing service quality by using a segment database to match and switch segments based on network and application usage.
Smart Images

Figure MX435478B0
Abstract
Description
METHOD FOR EXCHANGING CARD, DEVICE, AND STORAGE MEDIUM TRANSFER SEGMENTS RECIPROCAL REFERENCE TO RELATED REQUEST This application is filed on the basis of Chinese patent application 202010881130.6 filed on August 27, 2020 and claims priority over the Chinese patent application, the full content of which is incorporated herein by reference. TECHNICAL FIELD The embodiments of the present invention relate, among other things, to the technical field of wireless communication, in particular to a method of exchanging card transfer segments, a device, and a storage medium. BACKGROUND In its simplest form, network segmentation involves dividing a physical network into a plurality of end-to-end virtual networks. Each virtual network (including devices, access, transmission, and the network core) is logically independent, and the failure of any one virtual network will not affect the others. Each virtual network has different functional characteristics and faces different demands and services. Currently, all terminal devices have a single radio frequency array, so data services can only select one SIM card for home use. During SIM card transfers, terminal devices with multi-SIM standby functionality cannot switch from the current SIM card segment to the destination SIM card segment. For example, a dual-SIM, dual-standby mobile phone currently on the market can only select one SIM card for home use. As is common in the current network, if SIM card 1 and SIM card 2 do not belong to the same operator, the signals will be different.If the card transfer segment of card 1 is changed directly to a segment of card 2, since the portion services available obtained by card 1 and card 2 are different, it is impossible to carry out the exchange of the segment of card 1 to the segment of card 2, resulting in a low quality of the connection service of the segment. BRIEF DESCRIPTION The embodiments of the present invention provide a method for exchanging card transfer segments, a device, and a storage medium. b Lzznn / eznz / E / YiAi According to one aspect of the present invention, one embodiment provides a method for swapping card transfer segments. The method includes: acquiring a card transfer segment swap signal; obtaining a swappable segment according to the card transfer segment swap signal, the current card's application network usage status, and a pre-established segment database, the segment database including matching information between the application network usage status and the swappable segment of a destination card to be transferred; and performing the card transfer segment swap according to the swappable segment. According to one aspect of the present invention, one embodiment provides an electronic device. The device includes: a memory, a processor, and a computer program stored in the memory and executable by the processor, which, when executed by the processor, causes the processor to implement the card transfer segment swapping method described above. According to one aspect of the present invention, one embodiment provides a computer-readable storage medium that stores a computer-executable instruction used to carry out the card transfer segment swapping method described above. Other features and advantages of the present invention will be illustrated in the following description and will be partially apparent from the description or understood by putting the present invention into practice. The objectives and other advantages of the present invention can be achieved and obtained by means of the structures specified in the description, the claims, and the accompanying drawings. b Lzznn / eznz / E / YiAi BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings are provided for a better understanding of the technical schemes of the present invention and form part of the description. The accompanying drawings are used with the embodiments of the present invention to illustrate the technical schemes of the present invention and are not intended to limit the technical schemes of the present invention. Figure 1 is a flowchart of a card transfer segment exchange method according to an embodiment of the present invention. Figure 2 is a flowchart of a card transfer segment exchange method according to another embodiment of the present invention. Figure 3 is a flowchart of a card transfer segment exchange method according to another embodiment of the present invention. Figure 4 is a flowchart of a card transfer segment exchange method according to another embodiment of the present invention. Figure 5 is a flowchart of a card transfer segment exchange method according to another embodiment of the present invention. Figure 6 is a flowchart of a card transfer segment exchange method according to another embodiment of the present invention. Figure 7 is a flowchart of a card transfer segment exchange method according to another embodiment of the present invention. Figure 8 is a flowchart of a card transfer segment exchange method according to another embodiment of the present invention. Figure 9 is a flowchart of a card transfer segment exchange method according to another modality of the present invention. Figure 10 is a flowchart of a card transfer segment exchange method according to another embodiment of the present invention. Figure 11 is a schematic structural diagram of an electronic device according to another embodiment of the present invention. DETAILED DESCRIPTION To clarify the objectives, technical aspects, and advantages of the present invention, it will be described in detail below by way of specific embodiments, along with accompanying drawings. It should be understood that the specific embodiments described herein are merely for illustrative purposes and are not intended to limit the present invention. The embodiments of the present invention and the features thereof may be combined arbitrarily, provided they do not conflict. It should be noted that, although the functional modules have been divided in the schematic diagrams of the devices and the logical sequences have been shown in the flowcharts, in some cases the modules may be divided differently, or the steps shown or described may be executed in a different order than that shown in the flowcharts. Terms such as first, second, third, and fourth in the description, claims, and accompanying drawings are used to distinguish between similar objects and not necessarily to describe a specific sequence or order of precedence. Network segmentation involves dividing a physical network into multiple end-to-end virtual networks. Each virtual network (including devices, access, transmission, and the network's core) is logically independent, and the failure of one virtual network will not affect the others. Each virtual network has different functional characteristics and handles different demands and services. Network segmentation offers the following benefits: it guarantees the quality of different service levels, including conventional network indicators such as bandwidth, latency, packet loss, and jitter, allowing users to access logically independent networks, thus mitigating risks and network leaks. Furthermore, users can view network statistics and statuses related to their specific set of segments. When a terminal device performs network registration (for example, 5G network registration), it can negotiate with the network, or the network provides Network Segment Selection Assistance Information (NSSAI) for a segment set to obtain segment-related information. Segment-related information includes the Data Network Names (DNNs) within segments. The terminal device contains a UE Path Selection Policy (URSP), and the URSP contains a Network Segment Selection Policy (NSSP). Applications on the terminal device select segments according to the NSSP. Elements in the NSSP include DNNs, application IDs, and similar information, and applications can select elements within the NSSP to match the NSSP. The operator can preconfigure the URSP for the UE, or the PCF can dynamically issue or update the URSP. Since conventional terminal devices have only one set of radio frequency modules, a data service intelligently selects a card (e.g., a SIM card, a micro-SIM, or a nano-SIM, etc.) for residential use. As is common in today's networks, if any two cards in the terminal device do not belong to the same operator, the network signals corresponding to the two cards are different. It is assumed that a particular application uses a segment on a current card, and the current card must be switched to a destination card for transfer. Since the segment set of the current card is different from the segment set of the destination card, after the current card is switched to the destination card, the segment used by the application is transferred to a corresponding segment on the destination card.As a result, it is impossible to change the segment used by the application from the current card to the destination card to which it will be transferred, so the user's use of the Lzznn / eznz / E / YiAi application will be affected to some extent and the quality of service of the segment connection will be reduced. On this basis, the embodiments of the present invention provide a method for exchanging card transfer segments, a device, and a storage medium, which can carry out the exchange of a segment from a current card to a destination card to which it will be transferred without affecting a user's use of an application and can improve the quality of the segment connection service. In one aspect, with reference to Figure 1, one embodiment of the present invention provides a method for exchanging card transfer segments. The method includes the following steps S1000 to S3000. At SI 000, a card transfer segment change signal is acquired. In S2000, a swappable segment is obtained according to the card transfer segment change signal, an application network usage state of a current card, and a preset segment database, where the segment database includes matching information between the application network usage state and the swappable segment of a destination card to be transferred. In S3000, the exchange of card transfer segments is carried out according to the interchangeable segment. In some modes, after the terminal device completes network registration of the current card and the destination card to which it will be transferred, the segment sets supported by the current and destination cards are obtained separately during the network registration signaling interaction process. The segment sets of the current and destination cards are then compared to acquire interchangeable segments based on matching information, resulting in a swappable segment that is stored in the segment database. When the card transfer segment change signal is received, the swappable segment is obtained according to the card transfer segment change signal, the current card's application network usage status, and the preset segment database. Since segmentation is a 5G network application technology, if the current card belongs to any of the 2G, 3G, or 4G networks, while the destination card to which it will be transferred belongs to a 5G network, no segment is used on the current card, and a swappable segment (i.e., a segment that the application can use after switching from the current card to the destination card) is obtained according to the card transfer segment change signal and the preset segment database.If both the current SIM card and the destination SIM card belong to a 5G network, and the current SIM card's network usage status is equivalent to the segment used by the current SIM card's application, a swappable segment is obtained based on the matching information between the current SIM card's network usage status and the swappable segment of the destination SIM card. In other words, the SIM card transfer segment swap can be performed using this swappable segment. Therefore, during the transfer from the current SIM card to the destination SIM card, a segment swap is carried out, ensuring that the user's application experience is not affected and improving the quality of service for segment connections. In some configurations, the segment database includes a swappable segment database and a replaceable segment database. The swappable segment database includes matching information between segments with the same traffic descriptor on the current card and the destination card to which they will be transferred; and / or, the replaceable segment database includes matching information between segments with matching replacement parameters on the current card and the destination card to which they will be transferred. The traffic descriptor is a set of traffic parameters used to describe the characteristics of an IP flow on a given standard interface. The traffic descriptor includes, among other things, a data network name, an application ID, an IP-3 tuple, and a non-IP descriptor. After the current card and the destination card to be transferred have completed network registration, they acquire segment sets. The segment set of the current card and the segment set of the destination card are then analyzed, and matching information between segments with the same traffic descriptor on both cards is stored in the swappable segment database.Then, matching information between segments with matching replacement parameters on the current card and the destination card to which it will be transferred is searched for in the remaining segments and stored in the replaceable segments database.Because matching information between segments with the same traffic descriptor on the current card and the destination card to which it will be transferred is stored in the swappable segments database, and matching information between segments with matching replacement parameters on the current card and the destination card to which it will be transferred is stored in a replaceable segments database, it is convenient to obtain the swappable segments in a different database according to the application network usage status of the current card, and the segment used by the application on the destination card to be transferred most closely matches the segment used by the application on the current card after the current card is changed to the destination card to which it will be transferred. In some modes, the replacement parameter includes at least one of a quality of service (QoS) parameter, a bandwidth parameter, or a delay parameter. Since the interchangeable segment database includes matching information between segments with the same traffic descriptor on the current card and the destination card to which they will be transferred, segments in the interchangeable segment database can be removed from the segment sets of the current card and the destination card to which they will be transferred, to obtain the remaining segments. The replaceable segment database includes matching information between segments with matching replacement parameters selected from the remaining segments. Excluding segments with matching QoS, bandwidth, and / or delay parameters on the remaining segments yields the matching information between segments in the replaceable segment database (b Lzznn / eznz / E / YiAi). In some modalities, with reference to figure 2, the card transfer segment exchange method also includes the following steps S4000 to S5000. In S4000, a segment change signal is acquired. In S5000, the interchangeable segment database and / or the replaceable segment database are updated according to the segment change signal. During terminal device operation, the current card's application network usage status changes, thus changing the segment it uses. A segment swap message is subscribed via a wireless protocol stack to obtain a segment swap signal. If the current card's segment set changes, a segment swap signal is acquired, and the swappable segment database and / or the replaceable segment database are updated accordingly. This allows for a more accurate swappable segment to be obtained using the updated swappable and replaceable segment databases. In some modes, with reference to figure 3, the card transfer segment exchange method includes b Lzznn / eznz / E / YiAi in addition to the following steps S6000 to S7000. In S6000, the network quality of the current card and the network quality of the destination card to which it will be transferred are monitored and compared. In S7000, if the destination card to which the transfer will be made has a better network quality than the current card, the card transfer segment change signal is emitted. By monitoring and comparing the network quality of the current card and the network quality of the destination card to which it will be transferred, if the destination card has better network quality than the current card, a card transfer segment change signal is issued. By automatically monitoring the network quality of the current card and the destination card to which it will be transferred, the exchange between the current and destination cards is carried out automatically, saving labor and ensuring that the best network quality of the current application is maintained at all times. There are at least two subscriber identity cards in the terminal device.The currently used subscriber identity card is the current card, and a subscriber identity card with the best network quality among the subscriber identity cards other than the current card in the terminal device is the destination card to which the transfer will take place. Therefore, other subscriber identity cards are monitored and compared in terms of network quality to select a subscriber identity card with the best network quality as the destination card to which the transfer will take place, and then the destination card to which the transfer will take place and the currently monitored and compared card are selected.Only if the destination card to which the transfer will be made has a better network quality than the current card, is the card transfer segment change signal issued and the card transfer carried out in accordance with the card transfer segment change signal, in such a way that optimal network quality is obtained from the subscriber ID card used by the terminal device and the user experience is improved. In other modes, the card transfer segment change signal is issued by the user pressing a card transfer swap key; that is, the current card is manually switched to the destination card to which it will be transferred. Then, a swappable segment is obtained based on the card transfer segment change signal, the current card's application network usage status, and the preset segment database, and the card transfer segment swap is performed according to the swappable segment.When manually switching the current SIM card to the destination SIM card, the network quality of both the destination and current SIM cards will be disregarded. The destination SIM card is the subscriber's ID card (Lzznn / eznz / E / YiAi) selected by the user. This manual switching process allows for convenient transfer of the subscriber's ID card according to the user's needs. In some models, network quality includes at least one of the following: Received Signal Power Reference (RSRP), Received Signal Quality Reference (RSRQ), Signal-to-Noise Ratio (SNR), Bandwidth, Network Type, and Network Congestion. Monitoring and comparing the network quality of the current card and the network quality of the destination card to which it will be transferred includes monitoring and comparing at least one of the RSRP, RSRQ, SNR, Bandwidth, Network Type, and Network Congestion of the current card and the destination card to which it will be transferred.If the RSRP, RSRQ, and SNR values of the current card are less than a preset threshold, or the bandwidth is too low to meet the segment's QoS, or the network type is a non-5G network, or network congestion occurs, but the RSRP, RSRO, or SNR of the destination card to which the transfer will take place is higher than that of the current card, and the bandwidth and network type of the destination card to which the transfer will take place are sufficient to meet the segment's QoS, the card transfer segment change signal is issued.Monitoring and comparing the network quality of the current card and the network quality of the destination card to which it will be transferred includes monitoring and comparing at least one of the RSRP, RSRQ, SNR, bandwidth, network type, and network congestion of the current card and the destination card to which it will be transferred, in order to accurately issue the card transfer segment change signal after the network quality of the current card and the network quality of the destination card to which it will be transferred are more accurately determined. In some modes, with reference to Figure 4, the application network usage state includes a preserved segment application network usage state and a non-preserved segment application network usage state. Obtaining a swappable segment according to the card transfer segment change signal, the current card's application network usage status, and a preset segment database includes the following steps S2100 to S2300. In S2100, an application operating state is acquired for an application, where the application operating state includes at least one of a foreground / background state, a traffic state, an active state thread category, and a usage frequency. In S2200, a determination is made in accordance with the application operating status that the application network usage status is a preserved segment application network usage status. In S2300, an interchangeable segment is obtained according to the application network usage status of preserved segments and the segment database. During terminal device operation, real-time monitoring of the application's operating status is performed, primarily tracking at least one of the foreground / background states, traffic status, active thread categories, and application usage frequency. This monitoring determines whether the application's network usage status is that of preserved segments. Preserved segments mean that the application must continuously receive segment service after the current network card is switched to the destination card to which it will be transferred.If it is necessary to provide segment service to all applications after switching from the current network card to the destination card, it is difficult to match the segments of all applications, and the workload of switching segments for all applications is enormous. Therefore, by determining, based on the application's operating state, whether the application's network usage state is that of preserved segments, and then obtaining the swappable segment according to the preserved segment usage state and the segment database, some unimportant applications can be filtered out to reduce the number of segments provided, while maintaining the quality of segment service after the current network card is switched to the destination card. b Lzznn / eznz / E / YiAi In some modalities, with reference to figure 5, S2220 may include the following steps S2210 to S2220. In S2210, if the application foreground / background state indicates a foreground application, the application network usage state is a preserved segment application network usage state. In S2220, if the application's foreground / background state indicates a background application, it is determined, based on the traffic state and / or the active thread category and / or the frequency of use, that the application network usage state is a preserved segment application network usage state. Analyzing the foreground / background state of the application determines whether it is a foreground or background application. For the foreground application, the segment used by the foreground application must be conserved so that the background application can continuously receive segment service after the current card is switched to the destination card to which it will be transferred.For the background application, it is determined, according to the traffic state and / or the category of active threads and / or the frequency of use of the application, whether it is necessary to conserve the segment used by the background application, and then it is determined whether the background application should be continuously provided with the segment service after the current card is changed to the destination card to which it will be transferred. By determining the foreground / background state of the application, it is determined whether the application should continuously receive segment service after the current card is changed to the destination card to which it will be transferred, so that a high-quality segment service can be maintained for important applications and the efficiency of segment swapping can be improved. In some modalities, with reference to figure 6, S2220 may include the following steps S2221 to S2223. In S2221, if the background application traffic state is that the traffic generated in a unit of time exceeds a preset traffic threshold, the application network usage state is a preserved segment application network usage state. In S2222, and / or if the category of threads in the active state of the background application is an essential operation scenario, the application network usage state is a preserved segment application network usage state. In S2223, and / or if the frequency of background application usage exceeds a preset frequency threshold, the application network usage state is the application network usage state of b Lzznn / eznz / E / YiAi preserved segments. Regarding the preset traffic threshold, different thresholds can be set for different background applications. For example, video applications consume more traffic, while reading applications or Short Message Service (SMS) applications consume less. Therefore, different preset traffic thresholds are set for each type of background application. Determining whether the traffic generated by a background application in a given time exceeds the preset threshold indicates the importance of that background application to the user.If the background application's traffic status is that the traffic generated in the time unit exceeds the preset traffic threshold, the application's network usage status is "preserved segments." This means that the segment service used by the background application must be continuously provided after the current network card is switched to the destination network card. If the background application's traffic status is that the traffic generated in the time unit does not exceed the preset traffic threshold, the application's network usage status is "non-preserved segments." This means that the background application does not need to be provided with segment service after the current network card is switched to the destination network card. When the active thread category is a critical operation scenario—for example, a download thread and a payment thread are predefined critical operation scenarios—the critical operation scenario can be predefined according to actual needs. This allows different applications to have their component activities predefined as critical operation scenarios. Once the current application component of the background application is monitored and confirmed to be a critical operation scenario, the active thread category of the background application is considered a critical operation scenario. Therefore, given that the category of active application threads in the background is an essential operating scenario, the application network usage state is a preserved segment application network usage state. In other words, the segment service used by the background application must be provided continuously after the current card is switched to the destination card to which it will be transferred. If the application's active thread category is determined to be a non-essential operating scenario, the application's network usage state becomes a non-segmented application network usage state. This means that the application does not need to be provided with segment service in the background after the current network card is switched to the destination card. By determining whether the frequency of background application usage exceeds a preset frequency threshold, it is determined whether the application network usage state is a preserved segment application network usage state or a non-preserved segment application network usage state. The preset frequency threshold can be set by the user or determined based on an average of the frequencies of all background applications called. In one mode, over a given period of time, it is determined whether the frequency of background application usage exceeds the preset frequency threshold.If the frequency of background application usage within a given time period exceeds the preset frequency threshold, it indicates that the background application is frequently used by the user and that the application's network usage state is "preserved segments." This means that the segment service used by the background application must be continuously provided after the current network card is switched to the destination card. If the frequency of background application usage within a given time period does not exceed the preset frequency threshold, the application's network usage state is "non-preserved segments." This means that the background application's segment service does not need to be provided after the current network card is switched to the destination card. Since the traffic status, active thread category, and / or usage frequency can indicate the importance of a background application to the user, it can be determined whether the application's network usage is preserved by evaluating the traffic status, active thread category, and / or usage frequency. This evaluation then determines whether the background application should be continuously serviced with the segment after the current network card is switched to the destination card. Therefore, a background application that is important to the user is continuously serviced with the segment, allowing the user to continue using this application in the background after the current network card is switched to the destination card.For a background application that is not critical to the user, after the current card is switched to the destination card, the segment service is not provided to the background application. Therefore, the operating space of the terminal device can be reduced, and the efficiency of segment swapping can be improved. In some modes, with reference to Figure 7, the segment database includes an interchangeable segment database b Lzznn / eznz / E / YiAi, and S23OO may include the following steps S2310 to S2340. In S2310, a segment usage behavior of an application on the current card is detected. In S2320, it is determined according to the application segment usage behavior that the application network usage state of preserved segments is a segment-specific application network usage state. In S2330, a specific segment is acquired according to the usage status of the application network for specific segments. In S2340, a query is performed on the interchangeable segments database according to the specific segment to acquire a segment that matches the specific segment in the interchangeable segments database, in order to obtain the interchangeable segment. When the segment database includes a swappable segment database, it is determined, based on the application's segment usage behavior, that the preserved segment application network usage state is a segment-specific application network usage state. For the segment-specific application network usage state, the segment service used by the application is considered to remain unchanged after the current card is switched to the target card to which it will be transferred. Therefore, a specific segment is acquired according to the usage status of the application network for specific segments, and the specific segment is queried in the interchangeable segment database. If there is a segment that matches the specific segment in the interchangeable segment database, this segment is acquired to obtain the interchangeable segment, thus making it convenient to carry out the exchange of card transfer segments according to the interchangeable segment.Since interchangeable segment data includes segments with the same traffic descriptor on the current card and the destination card to which it will be transferred, a segment matching the specific segment is acquired from the interchangeable segment database to obtain the interchangeable segment, so that the application's segment quality of service is improved after the current card is switched to the destination card to which it will be transferred. In some modalities, with reference to Figure 8, the segment database includes a replaceable segment database, and S2300 includes the following steps S2350 to S2380. In S2350, a segment usage behavior of an application on the current card is detected. In S2360, it is determined, according to the behavior of b Lzznn / eznz / E / YiAi application segment usage, that the preserved segment application network usage state is a default segment application network usage state. In S2370, a default segment is acquired according to the usage status of the default segment application network. In S2380, a query is performed on the replaceable segment database according to the default segment to acquire a segment that matches the default segment in the replaceable segment database, in order to obtain the interchangeable segment. The segment usage behavior of the current card's application is detected, and it is determined, based on this behavior, that the preserved segment application network usage state is a default segment application network usage state. For the default segment application network usage state, it is required that the segment used by the application does not affect the quality of service after the current card is switched to the destination card to which it will be transferred.Therefore, a default segment is acquired based on the usage status of the default segment application network. A query is then performed in the replaceable segment database to acquire a matching segment from the replacement segment database (Lzznn / eznz / E / YiAi) using the matching information. By acquiring a matching segment from the replaceable segment database, an application with low segment quality of service requirements can continuously use a segment with the same quality of service without disruption after the current card is switched to the target card. In some modalities, with reference to figure 9, S2000 also includes the following steps S2400 to S2600. In S2400, it is determined that there is no interchangeable segment in the segment database. In S2500, the segment database is updated to obtain a secondary segment database. In S2600, a swappable segment is obtained according to the current card's application network usage status and the secondary segment database. If there is no interchangeable segment in the segment database, it indicates that the segment used by the application does not match the segment database, and the quality of service used by the application will change if a segment swap is forced. Therefore, the segment database is updated to obtain a secondary segment dataset, and then an interchangeable segment is obtained according to the application's network usage status and the secondary segment database, so that the application can use a segment with the same quality. In some modes, after obtaining the secondary segment database, it is determined, based on the application's segment usage behavior, whether the preserved segment application network usage state is a specific segment application network usage state or a default segment application network usage state. If the preserved segment application network usage state is a specific segment application network usage state, a specific segment is acquired, and a query is performed on the secondary segment database according to that specific segment to acquire a matching segment, thus obtaining an interchangeable segment.Therefore, it is advisable to query the specific segment used by the application from the updated secondary segment database, thereby improving the quality of service of the segment used by the application. If the application's network usage status for preserved segments is a default segment, a default segment is acquired, and a query is performed in the secondary segment database according to the default segment to acquire a matching segment. This results in a swappable segment, allowing the application to continue using the default segment without affecting its quality of service. In one configuration, the secondary segment database includes a secondary interchangeable segment database and a secondary replaceable segment database. If there is no segment matching the specified segment in the interchangeable segment database and / or no segment matching the default segment in the replaceable segment database, the interchangeable segment database and the replaceable segment database are updated to form a secondary interchangeable segment database and a secondary replaceable segment database.Next, a query is performed on the secondary interchangeable segment database and the secondary replaceable segment database according to the specific segment and the default segment to acquire a segment that matches the specific segment in the secondary interchangeable segment database and / or a segment that matches the default segment in the secondary replaceable segment database, in order to obtain an interchangeable segment. If there is no segment that matches the specific segment in the swappable segment database and / or there is no segment that matches the default segment in the Lzznn / eznz / E / YiAi swappable segment database, it is necessary to reacquire the segment set of the current card and the segment set of the target card to which it will be transferred. Segments with the same traffic descriptor in the segment set of the current card and the segment set of the target card to which it will be transferred are reacquired to obtain a secondary swappable segment database, and segments with matching replacement parameters in the segment set of the current card and the segment set of the target card to which it will be transferred are reacquired to obtain a secondary swappable segment database.After obtaining the secondary interchangeable segment database and the secondary replaceable segment database, the segment that matches the specific segment in the secondary interchangeable segment database and the segment that matches the default segment in the secondary replaceable segment database are acquired to obtain an interchangeable segment, in such a way that it is convenient to carry out the exchange of card transfer segments according to the interchangeable segment. In some modes, with reference to figure 10, the card transfer segment exchange method also includes the following steps S8000 to S1200. In S8000, it is determined that there is no interchangeable segment b Lzznn / eznz / E / YiAi in the secondary segment database. In S9000, a card transfer change request signal is issued. In SI 100, an operating instruction is received. In S1200, the exchange of card transfer segments is carried out according to the operating instruction. In one mode, in S8000, it is determined that there is no segment that matches the specific segment in the secondary interchangeable segment database and / or that there is no segment that matches the default segment in the secondary replaceable segment database. The card transfer request signal indicates that the signal quality of the current card is too low and needs to be switched to the destination card for the transfer. However, this will affect segment data usage by some applications. The request signal prompts the user to decide whether to proceed with the segment swap. A list of applications without matching segments is also generated during the card transfer request signal process, allowing the user to identify which applications will be affected after the current card is switched to the destination card and then decide whether to proceed with the card transfer.If the user agrees to swap the current card for the destination card, an operation instruction input will be received on the terminal device by the user via a human-machine interaction device (e.g., a key, a touchscreen, etc.), and the card transfer segment swap will proceed according to the operation instruction. If the user declines to perform the card transfer segment swap, a rejection instruction will be received via the human-machine interaction device (e.g., a key, a touchscreen, etc.), and the swap of the current card to the destination card will be stopped according to the rejection instruction. In summary, after the current card and the destination card to which it will be transferred have completed registration on the network, the segment set of the current card and the segment set of the destination card to which it will be transferred are acquired.Matching information between segments with matching traffic descriptors in the segment set of the current card and the segment set of the destination card to which it will be transferred is acquired to obtain a database of interchangeable segments. The segments in the database of interchangeable segments are removed from the segment sets of the current card and the destination card to which it will be transferred, to obtain the remaining segments. Segments with matching QoS parameters and / or bandwidth parameters and / or delay parameters are selected from the remaining segments to acquire matching information between these segments to obtain a database of replaceable segments.Monitoring and comparing the network quality of the current card and the network quality of the destination card to which it will be transferred includes monitoring and comparing at least one of the RSRP, RSRQ, SNR, bandwidth, and network congestion values of the current card and the destination card to which it will be transferred. If the value of any of the RSRP, RSRQ, and SNR of the current card is less than a preset threshold, or the bandwidth is too low to meet the segment's QoS, or the network type is a non-5G network, or network congestion occurs, but the RSRP, RSRO, or SNR of the destination card to which it will be transferred is greater than that of the current card, and the bandwidth and network type of the destination card to which it will be transferred are sufficient to meet the segment's QoS, a card transfer segment change signal is issued.The card transfer segment change signal is obtained to determine the application's foreground / background state. If the application is a foreground application, its network usage state is "preserved segments," and segment service must be continuously provided to the application after the current card is switched to the destination card. If the application is a background application, and if the background application traffic state is that the traffic generated in a given time exceeds a preset traffic threshold (b Lzznn / eznz / E / YiAi), its network usage state is "preserved segments."Alternatively, if the active thread category of the background application is a critical operating scenario, the application network usage state is a preserved segment application network usage state. Alternatively, if the frequency of background application usage within a given time period exceeds a preset frequency threshold, the application network usage state is a preserved segment application network usage state. For the preserved segment application network usage state, the segment usage behavior of the current card is determined, and then, based on the application's segment usage behavior, it is determined whether the preserved segment application network usage state is a segment-specific application network usage state or a default segment application network usage state.A specific segment is acquired according to the usage status of the application network for specific segments, and a default segment is acquired according to the usage status of the application network for default segments. Then, a query is performed in the interchangeable segment database according to the specific segment and in the replaceable segment database according to the default segment, to obtain a segment that matches the specific segment in the interchangeable segment database and / or a segment that matches the default segment in the default segment database using the matching information, to obtain an interchangeable segment, such that the card transfer segment exchange is carried out according to the interchangeable segment.If there is no segment that matches the specified segment in the swappable segment database and / or there is no segment that matches the default segment in the replaceable segment database, segments with the same traffic descriptor in the segment set of the current card and the segment set of the target card to which it will be transferred are reacquired to obtain a secondary swappable segment database, and segments with matching replacement parameters in the segment set of the current card and the segment set of the target card to which it will be transferred are reacquired to obtain a secondary replaceable segment database.After obtaining the secondary interchangeable segment database and the secondary replaceable segment database, the segment that matches the specific segment in the secondary interchangeable segment database and the segment that matches the default segment in the secondary replaceable segment database are acquired to obtain an interchangeable segment, such that the card transfer segment exchange is carried out according to the interchangeable segment. If there is no segment that matches the specific segment in the secondary interchangeable segment database and / or there is no segment that matches the default segment in the secondary replaceable segment database, a card transfer exchange request signal is issued.If the user agrees to change the current card to the destination card to which it will be transferred, an operation instruction is received and the card transfer segment exchange is carried out in accordance with the operation instruction. In another aspect, with reference to Figure 11, another embodiment of the present invention further provides an electronic device. The device includes: a memory 200, a processor 100, and a computer program stored in the memory 200 and executable by the processor 100, which, when executed by the processor 100, causes the processor 100 to implement the card transfer segment swapping method described above. b Lzznn / eznz / E / YiAi The electronic device may be a mobile terminal device or a non-mobile terminal device. The mobile terminal device may be a mobile phone, tablet, laptop computer, handheld computer, vehicle-mounted terminal device, portable device, super-mobile personal computer, netbook, personal digital assistant, CPE, UF1 (wireless access point device), and the like. The non-mobile terminal device may be a personal computer, television, ATM, vending machine, and the like, which shall not be specifically limited in the implementations of the present invention. The 200 memory can be either external or internal. External memory is an external memory card, such as a Micro SD card. The external memory card communicates with the processor through an external memory interface to perform data storage. For example, music, video, or other files are stored on the external memory card. Internal memory can be configured to store executable program code. Executable program code includes instructions. The 100 processor may include at least one processing unit. For example, the 100 processor may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (1SP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU), and the like. Different processing units may be separate devices or may be integrated into at least one processor. In some modes, the 100 processor executes the card transfer segment swapping method described in steps S1000 to S3000; or the card transfer segment swapping method described in steps S4000, S5000 and S1000 to S3000; or the card transfer segment swapping method described in steps S6000, S7000 and S1000 to S3000; or the card transfer segment swapping method described in steps S1000, S2100 to S2300 and S3000; or the card transfer segment swapping method described in steps S1000, S2100, S2210, S2220, S2300 and S3000; or the card transfer segment exchange method described in steps S1000, S2100, S2221 to S2223, S2220, S2300 and S3000; or the card transfer segment exchange method described in steps S1000, S2100, S2200, S2310 to S2340 and S3000;or the card transfer segment exchange method described in steps S1000, S2100, S2200, S2350 to S2380 and S3000; or the card transfer segment exchange method described in steps S1000, S2400 to S2600 and S3000; or the card transfer segment exchange method described in steps S1000, S2000, S3000 and S8000 to S1200. In another aspect, one embodiment of the present invention provides a computer-readable storage medium that stores a computer-executable instruction used to carry out the b Lzznn / eznz / E / YiAi card transfer segment swapping method described above. In some embodiments, the computer-executable instruction stored on a computer-readable storage medium is used to carry out the card transfer segment exchange method described in steps S1000 to S3000; or the card transfer segment exchange method described in steps S4000, S5000 and S1000 to S3000; or the card transfer segment exchange method described in steps S6000, S7000 and S1000 to S3000; or the card transfer segment exchange method described in steps S1000, S2100 to S2300 and S3000; or the card transfer segment exchange method described in steps S1000, S2100, S2210, S2220, S2300 and S3000; or the card transfer segment exchange method described in steps S10Ü0, S2100, S2221 to S2223, S2220, S2300 and S3000;or the card transfer segment exchange method described in steps S1000, S2100, S2200, S2310 to S2340 and S3000; or the card transfer segment exchange method described in steps S1000, S2100, S2200, S2350 to S2380 and S3000; or the card transfer segment exchange method described in steps S1000, S2400 to S2600 and S3000; or the card transfer segment exchange method described in steps S1000, S2000, S3000 and S8000 to S1200. In the embodiments of the present invention, an interchangeable segment is obtained according to a card transfer segment change signal b Lzznn / eznz / E / YiAi, the current card's application network usage state, and a pre-established segment database. Card transfer segment exchange is carried out according to the segment. Therefore, segment exchange from one card to another is performed without affecting the user's application usage, and the quality of service for segment connection is improved. The device configurations described above are for illustrative purposes only. The units described as separate components may or may not be physically separated from each other; that is, they may be located in a single location or distributed across multiple network units. Some or all of the modules may be selected according to the actual needs to achieve the objectives of the configuration schemes. It should be understood by a person of ordinary technical skill that all or some of the steps in the methods and systems described above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by processors such as central processing units, digital signal processors, or microprocessors, or as hardware, or as integrated circuits such as application-specific integrated circuits. Such software may be distributed on computer-readable media, and computer-readable media may include computer storage media (or non-temporary media) and communication media (or temporary media).As experts in the field know, the term "computer storage medium" includes volatile or non-volatile, removable or non-removable media implemented using any method or technology to store information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media may include, but are not limited to, RAM, ROM, EEPROM, flash memory and other memory technologies, CD-RMs, digital versatile discs (DVDs) or other optical disc storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and accessed by computers.Furthermore, as is well known by experts in the field, the communication medium generally contains computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carriers or other transmission mechanisms, and may include any information transfer medium. Although some specific implementations of the present invention have been described above, the present invention is not limited to the above implementations. Those skilled in the art may carry out various variations or equivalent replacements without departing from the scope of the present invention, and these variations or equivalent replacements will be within the scope defined by the appended claims of the present invention.
Claims
1. A method for exchanging card transfer segments, characterized in that it comprises: acquiring a card transfer segment change signal; obtaining a swappable segment according to the card transfer segment change signal, an application network usage state of a current card and a pre-established segment database, wherein the segment database comprises matching information between the application network usage state and the swappable segment of a destination card to which it is to be transferred; and carrying out the card transfer segment exchange according to the swappable segment.
2. The card transfer segment exchange method according to claim 1, characterized in that it further comprises: monitoring and comparing a network quality of the current card and a network quality of the destination card to which it will be transferred; and in response to the destination card to which it will be transferred having a better network quality than the current card, emitting the card transfer segment exchange signal.
3. The card transfer segment exchange method according to claim 2, characterized in that the network quality comprises at least one of a reference signal received power, a reference signal received quality, a signal-to-noise ratio, a bandwidth, a network type, and a network congestion. b Lzznn / eznz / E / YiAi 4. The card transfer segment exchange method according to any of claims 1 to 3, characterized in that the segment database comprises: an interchangeable segment database comprising matching information between segments with the same traffic descriptor on the current card and the destination card to which they will be transferred; and / or, a replaceable segment database comprising matching information between segments with matching replacement parameters on the current card and the destination card to which they will be transferred. b Lzznn / eznz / E / YiAi 5. The card transfer segment exchange method according to claim 4, characterized in that the replacement parameter comprises at least one of a quality of service (QoS) parameter, a bandwidth parameter, and a latency parameter.
6. The card transfer segment exchange method according to claim 4, characterized in that it further comprises: acquiring a segment change signal; and updating the interchangeable segment database and / or the replaceable segment database in accordance with the segment change signal.
7. The card transfer segment swapping method according to claim 4, characterized in that the application network usage state comprises a preserved segment application network usage state and a non-preserved segment application network usage state; and obtaining a swappable segment according to the card transfer segment swap signal, a current card application network usage state and a pre-established segment database comprises: acquiring an application operating state of an application, wherein the application operating state comprises at least one of a foreground / background state, a traffic state, a category of active-state threads and a usage frequency;Determine, according to the application's operating state, that the application network usage state is a preserved segment application network usage state; and obtain an interchangeable segment according to the preserved segment application network usage state and the segment database.
8. The card transfer segment exchange method according to claim 7, characterized in that determining, according to the application's operating state, that the application network usage state is a preserved segment application network usage state comprises: in response to the application's foreground / background state indicating a foreground application, determining that the application network usage state is the preserved segment application network usage state; and in response to the application's foreground / background state indicating a background application, determining, according to the traffic state and / or the active thread category and / or the frequency of use, that the application network usage state is the preserved segment application network usage state.
9. The card transfer segment swapping method according to claim 8, characterized in that determining, according to the traffic state and / or the active thread category and / or the frequency of use, that the application network usage state is the application network usage state of preserved segments comprises: in response to the background application traffic state being that the traffic generated in a unit of time exceeds a predetermined traffic threshold, determining that the application network usage state is the application network usage state of preserved segments; and / or, in response to the background application's active thread category being an essential operating scenario, determining that the application network usage state is the application network usage state of preserved segments;and / or, in response to the frequency of background application usage exceeding a preset frequency threshold, b Lzznn / eznz / E / YiAi determine that the application network usage state is the application network usage state of preserved segments.; 10. The method of exchanging card transfer segments according to any of claims 7 to 9, characterized in that the segment database comprises an interchangeable segment database, and obtaining an interchangeable segment according to the usage state of the preserved segment application network, and the segment database comprises: detecting a segment usage behavior of a current card application; determining, according to the segment usage behavior of the application, that the usage state of the preserved segment application network is a specific segment application network usage state; acquiring a specific segment according to the usage state of the specific segment application network;and perform a query in the interchangeable segments database according to the specific segment to acquire a segment that matches the specific segment in the interchangeable segments database, to obtain the interchangeable segment. b Lzznn / eznz / E / YiAi; 11. The card transfer segment exchange method according to claim 10, characterized in that the segment database comprises a database of replaceable segments, and obtaining an interchangeable segment according to the usage state of the preserved segment application network and the segment database comprises: detecting a segment usage behavior of a current card application; determining, according to the segment usage behavior of the application, that the usage state of the preserved segment application network is a default segment application network usage state; acquiring a default segment according to the usage state of the default segment application network;and perform a query in the database of replaceable segments according to the default segment to acquire a segment that matches the default segment in the database of replaceable segments, to obtain the interchangeable segment.; 12. The card transfer segment swapping method according to claim 1, characterized in that obtaining a swappable segment in accordance with the card transfer segment swapping signal, a current card application network usage state and a pre-set segment database comprises: in response to the absence of the swappable segment in the segment database, updating the segment database to obtain a secondary segment database; and obtaining a swappable segment in accordance with the current card application network usage state and the secondary segment database.
13. The method of swapping card transfer segments according to claim 12, characterized in that carrying out the swapping of card transfer segments in accordance with the swappable segment comprises: in response to the absence of the swappable segment in the secondary segment database, issuing a card transfer swap request signal; receiving an operating instruction; and carrying out the card transfer segment swap in accordance with the operating instructions.
14. An electronic device, characterized in that it comprises: a memory, a processor, and a computer program stored in memory and executable by the processor, which, when executed by the processor, causes the processor to carry out the card transfer segment swapping method in accordance with any one of claims 1 to 13.
15. A computer-readable storage medium, characterized in that it stores a computer-executable instruction 10 that is used to carry out the card transfer segment swapping method in accordance with any of claims 1 to 13.