Network card switching method and device, equipment, storage medium and program product

By pre-storing handover auxiliary information in the terminal device and the cell information correlation relationship using the knowledge graph, fast and accurate network card switching is achieved, the problem of slow perception in the existing technology is solved, and the stability of network connection and user experience is improved. .

CN119402933APending Publication Date: 2025-02-07GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411518949.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

The prior art automatically switches to the network card in terminal devices, and the perception is slow and it is difficult to quickly respond to the situation of declining network quality or unstable connection, which affects the user experience.

Method used

By pre-stored switching auxiliary information in the terminal device, using the cell information association relationship in the knowledge graph, it can automatically switch to a network card with better signal quality to ensure the stability of network connection.

Benefits of technology

It realizes fast and accurate network card switching, improves network connection stability and user experience, and avoids perceived delay.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402933A_ABST
    Figure CN119402933A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a network card switching method and device, equipment, a storage medium and a program product, and belongs to the technical field of wireless communication. The method is executed by terminal equipment, and the terminal equipment at least comprises a first user identification card and a second user identification card. The method comprises the following steps: acquiring first cell information and second cell information; the first cell information is cell information corresponding to a first user identification card, the second cell information is cell information corresponding to a second user identification card, and the first user identification card is a current network card of the terminal equipment; switching auxiliary information is inquired; the switching auxiliary information comprises at least one group of cell information association relationship, and the cell information association relationship is used for indicating switching from the network card corresponding to the source cell information to the network card corresponding to the target cell information; and switching the network card of the terminal device from the first user identification card to the second user identification card under the condition that the matching association relationship is queried in the switching auxiliary information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of wireless communication technology, and in particular to a network card switching method, device, equipment, storage medium and program product. Background Art

[0002] Dual SIM dual standby is a common function of current terminal devices (such as smart phones). Through reasonable settings and management, the advantages of dual SIM dual standby can be fully utilized to enhance the user experience.

[0003] In related technologies, terminal devices can evaluate the status of the currently used network card through a scoring mechanism. Once an abnormality is found, such as decreased network quality, unstable connection, etc., the terminal device can switch to another network card to ensure the stability of the network connection and the smoothness of the user experience. Summary of the invention

[0004] The present application provides a network card switching method, device, equipment, storage medium and program product. The technical solution includes:

[0005] On the one hand, an embodiment of the present application provides a method for switching an Internet access card, the method being executed by a terminal device, the terminal device comprising at least a first user identification card and a second user identification card; the method comprising:

[0006] Acquire first cell information and second cell information; the first cell information is the cell information corresponding to the first user identification card, the second cell information is the cell information corresponding to the second user identification card, and the first user identification card is the current Internet access card of the terminal device;

[0007] Querying handover auxiliary information; the handover auxiliary information includes at least one set of cell information association relationships, and the cell information association relationships are used to indicate that the Internet access card corresponding to the source cell information is switched to the Internet access card corresponding to the target cell information;

[0008] When a matching association relationship is found in the switching auxiliary information, the Internet access card of the terminal device is switched from the first user identification card to the second user identification card; the matching association relationship is a cell information association relationship in which the first cell information is the source cell information and the second cell information is the target cell information.

[0009] On the other hand, an embodiment of the present application provides an Internet access card switching device, the device is provided in a terminal device, the terminal device at least includes a first user identification card and a second user identification card; the device includes:

[0010] A first acquisition module is used to acquire first cell information and second cell information; the first cell information is the cell information corresponding to the first user identification card, the second cell information is the cell information corresponding to the second user identification card, and the first user identification card is the current Internet access card of the terminal device;

[0011] A first query module is used to query the handover auxiliary information; the handover auxiliary information includes at least one group of cell information association relationships, and the cell information association relationship is used to indicate the handover from the Internet access card corresponding to the source cell information to the Internet access card corresponding to the target cell information;

[0012] A switching module is used to switch the Internet access card of the terminal device from the first user identification card to the second user identification card when a matching association relationship is queried in the switching auxiliary information; the matching association relationship is the cell information association relationship with the first cell information as the source cell information and the second cell information as the target cell information.

[0013] In some embodiments, the switching auxiliary information is constructed by the cell information corresponding to the Internet access card before switching and the cell information corresponding to the Internet access card after switching during the historical switching process of the Internet access card.

[0014] In some embodiments, the handover auxiliary information includes a knowledge graph; the cell information association relationship is a triple in the knowledge graph; the triple includes a source node, a target node, and a handover relationship edge between the source node and the target node;

[0015] The source node contains the source cell information; the target node contains the target cell information; the switching relationship edge is used to indicate switching from the Internet access card corresponding to the source cell information to the Internet access card corresponding to the target cell information.

[0016] In some embodiments, the first query module is used to query a first triple in the knowledge graph, where the first triple is a triple in which the source node includes the first cell information and the target node includes the second cell information;

[0017] The first query module is used to determine that the matching association relationship is found in the handover auxiliary information when the first triple is found.

[0018] In some embodiments, the knowledge graph further includes one or more location nodes, wherein the location nodes include geographic location information; the triples are connected to the location nodes via a location relationship edge; the location relationship edge is used to indicate the geographic location of the cell corresponding to the cell information in the triples, and matches the geographic location information in the location nodes;

[0019] The first query module is used to obtain the current geographical location information of the terminal device;

[0020] The first query module is used to query a first location node in the knowledge graph; the first location node is the location node that matches the current geographic location information;

[0021] The first query module is used to query the first triplet in each of the triples connected to the first location node.

[0022] In some embodiments, the apparatus further comprises:

[0023] A second acquisition module is used to acquire a historical switching record of the terminal device; the historical switching record includes the third cell information corresponding to the network card before switching and the fourth cell information corresponding to the network card after switching during a historical switching process of the network card of the terminal device;

[0024] A construction module is used to construct a second triple in the knowledge graph based on the historical switching record; the source node in the second triple contains the third cell information, and the target node in the second triple contains the fourth cell information.

[0025] In some embodiments, the historical switching record also includes historical geographic location information when the switching occurs;

[0026] The device also includes:

[0027] A second query module is used to query a second location node in the knowledge graph; the second location node is the location node that matches the historical geographic location information;

[0028] A connection module is used to connect the second triplet with the second location node when the second location node is found.

[0029] In some embodiments, the apparatus further comprises:

[0030] A creation module is used to create the second position node in the knowledge graph and connect the second triple to the second position node when the second position node is not queried.

[0031] In some embodiments, the apparatus further comprises:

[0032] A third acquisition module, configured to acquire the network connection quality of the terminal device after the Internet access card of the terminal device is switched from the first user identification card to the second user identification card;

[0033] A management module is used to perform management operations on the matching association relationship according to the network connection quality.

[0034] In some embodiments, the management module is configured to remove the matching association relationship from the switching auxiliary information when the network connection quality is lower than a network connection quality threshold.

[0035] In some embodiments, the management module is used to increase the score of the matching association relationship if the network connection quality is not lower than a network connection quality threshold;

[0036] The management module is configured to reduce the score of the matching association relationship when the network connection quality is lower than the network connection quality threshold;

[0037] The management module is configured to remove the matching association relationship from the handover auxiliary information when the score of the matching association relationship is lower than a score threshold.

[0038] In some embodiments, the cell information includes at least one of the following:

[0039] Cell frequency, physical cell identifier PCI, cell identifier ID.

[0040] On the other hand, an embodiment of the present application provides a processing chip, which is used to execute the network card switching method as described above.

[0041] On the other hand, an embodiment of the present application provides a processing chip, in which the network card switching device as described above is provided.

[0042] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory, and the processor and the memory are connected via a bus; the processor executes computer instructions stored in the memory so that the computer device implements the network card switching method as described above.

[0043] On the other hand, an embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. The computer instructions are used to be executed by a processor to implement the above-mentioned network card switching method.

[0044] In another aspect, the present application provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. The computer program product is used to run in a computer device to implement the above-mentioned network card switching method.

[0045] On the other hand, the present application provides a computer program, which is executed by a processor of a computer device to implement the above-mentioned network card switching method.

[0046] The technical solution provided by the embodiment of the present application includes at least the following beneficial effects:

[0047] Through the scheme shown in the embodiment of the present application, the terminal device can automatically switch to another Internet card with better signal quality according to the query result of the switching auxiliary information, so as to maintain the stability of the network connection; compared with the related art, this scheme does not need to be based on the status evaluation result of the current Internet card, but based on the switching auxiliary information pre-stored in the terminal device, it can quickly realize the intelligent switching of the Internet card between different user identification cards, thereby improving the accuracy and timeliness of the switching of the Internet card, and ensuring the stability of the network connection when the user uses the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 is a system architecture diagram of a communication system provided by an exemplary embodiment of the present application;

[0049] Figure 2 is a flow chart of a network card switching method provided by an exemplary embodiment of the present application;

[0050] Figure 3 is a schematic diagram of a knowledge graph provided by an exemplary embodiment of the present application;

[0051] Figure 4 is a flow chart of a network card switching method provided by an exemplary embodiment of the present application;

[0052] Figure 5 is a schematic diagram of a knowledge graph provided by an exemplary embodiment of the present application;

[0053] Figure 6 is a flow chart of a network card switching method provided by an exemplary embodiment of the present application;

[0054] Figure 7 It is a schematic diagram of the establishment and application of a knowledge graph provided by an exemplary embodiment of the present application;

[0055] Figure 8 is a flow chart of a knowledge graph application method provided by an exemplary embodiment of the present application;

[0056] Fig. 9 It is a structural schematic diagram of a network card switching device provided by an exemplary embodiment of the present application;

[0057] Fig.10 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0058] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0059] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0060] It should be understood that the "indication" mentioned in the embodiments of the present application can be a direct indication, an indirect indication, or an indication of an association relationship. For example, A indicates B, which can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association relationship between A and B.

[0061] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between two items, or an association relationship between the two items, or a relationship between indication and being indicated, configuration and being configured, and the like.

[0062] Please refer to Figure 1 , which shows a system architecture diagram of a communication system provided by an exemplary embodiment of the present application. Figure 1 As shown, the system includes a terminal device 110 and a network device 120 .

[0063] The terminal device 110 in this application is also called user equipment (UE), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent, and user device. The terminal includes but is not limited to: handheld devices, wearable devices, vehicle-mounted devices and Internet of Things devices, such as: mobile phones, tablet computers, e-book readers, laptop computers, desktop computers, televisions, game consoles, mobile Internet devices (Mobile Internet Device, MID), augmented reality (Augmented Reality, AR) terminals, virtual reality (Virtual Reality, VR) terminals and mixed reality (Mixed Reality, MR) terminals, wearable devices, handles, electronic tags, controllers, wireless terminals in industrial control (Industrial Control), wireless terminals in self-driving (Self Driving), wireless terminals in remote medical care (Remote Medical), wireless terminals in smart grids (Smart Grid), wireless terminals in transportation safety (Transportation Safety), wireless terminals in smart cities (Smart City), wireless terminals in smart homes (Smart Home), wireless terminals in remote medical surgery (Remote Medical Surgery), cellular phones, cordless phones, Session Initiation Protocol (Session Initiation Protocol, SIP) phones, Wireless Local Loop (Wireless Local Loop (WLL) stations, personal digital assistants (PDA), TV set top boxes (STB), customer premises equipment (CPE), etc.

[0064] The network device 120 in the present application provides a wireless communication function, and the network device 20 includes but is not limited to: an evolved Node B (eNB), a radio network controller (RNC), a Node B (NB), a base station controller (BSC), a base transceiver station (BTS), a home base station (e.g., Home Evolved Node B, or Home Node B, HNB), a baseband unit (BBU), an access point (AP) in a wireless fidelity (Wi-Fi) system, a wireless relay node, a wireless backhaul node, a transmission point (TP) or a transmission and reception point (TRP), etc., and can also be a next generation Node B (Next Generation Node B) in a fifth generation (5G) mobile communication system. B, gNB) or transmission point (TRP or TP), or, it is one or a group of (including multiple antenna panels) antenna panels of a base station in a 5G system, or, it can also be a network node constituting a gNB or a transmission point, such as a baseband unit (BBU) or a distributed unit (Distributed Unit, DU), or a base station in a beyond fifth generation mobile communication system (Beyond Fifth Generation, B5G) or a sixth generation (6th Generation, 6G) mobile communication system, or a core network (Core Network, CN), fronthaul (Fronthaul), backhaul (Backhaul), radio access network (Radio Access Network, RAN), network slicing, etc., or a service cell, primary cell (Primary Cell, PCell), primary secondary cell (Primary Secondary Cell, PSCell), special cell (Special Cell, SpCell), secondary cell (Secondary Cell, SCell), neighboring cell, etc. of a terminal device.

[0065] The network device 120 and the terminal device 110 communicate with each other via some air interface technology, such as a Uu interface.

[0066] Exemplarily, there are two communication scenarios between the network device 120 and the terminal device 110: an uplink communication scenario and a downlink communication scenario. Uplink communication refers to the network device 120 sending a signal; downlink communication refers to sending a signal to the terminal device 110.

[0067] The technical solutions provided in the embodiments of the present application can be applied to various communication systems, such as: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD) system, Advanced Long Term Evolution (LTE-A) system, Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication system, 5G mobile communication system, New Radio (NR) system, NR system evolution system, LTE on unlicensed spectrum (LTE-based access to unlicensed spectrum, LTE-U) system, NR on unlicensed spectrum (NR-based access to unlicensed spectrum, NR-U) system, terrestrial communication network (Terrestrial Networks, TN) system, non-terrestrial communication network (Non-Terrestrial Networks, NTN) system, wireless local area network (Wireless Local Area Networks, WLAN), wireless fidelity (Wireless Fidelity, Wi-Fi), cellular Internet of Things system, cellular passive Internet of Things system, can also be applied to the subsequent evolution system of 5G NR system, and can also be applied to B5G, 6G and subsequent evolution systems. In some embodiments of the present application, "NR" may also be referred to as 5G NR system or 5G system. Among them, the 5G mobile communication system may include non-standalone networking (Non-Standalone, NSA) and / or standalone networking (Standalone, SA).

[0068] In the embodiment of the present application, the terminal device 110 is a device that supports switching between multiple user identification cards. Optionally, the user can manually select which user identification card to use to achieve the Internet access function; or, the user can also turn on the automatic switching Internet access card function of the terminal device 110, so that when a user identification card encounters a network lag, it automatically switches to another user identification card with better network communication quality for network communication. In some embodiments, the above-mentioned automatic switching Internet access card function can also be enabled by default, without the need for the user to manually enable it.

[0069] The User Identification Module (UIM) is an important component for storing user identity information and network authentication data in mobile communication devices. Among them, the above-mentioned user identification card may include but is not limited to: Subscriber Identity Module (SIM) card, Universal Subscriber Identity Module (USIM) card, Embedded SIM (eSIM) card, Universal Integrated Circuit Card (UICC card), Removable User Identity Module (R-UIM) card, etc., and may also include other types, which are not limited in the embodiments of the present application. Among them, the SIM card is the earliest user identification card, which is mainly used in 2G networks, such as the Global System for Mobile Communications (GSM), and provides basic encryption and authentication functions. The USIM card is a user identification card designed for 3G and 4G networks, which supports more complex encryption algorithms and two-way authentication, and provides higher security. The eSIM card is an embedded user identification card that is directly embedded in the circuit board of the terminal device. It supports remote configuration and switching of operators, can save space, and is suitable for miniaturized devices such as smart watches and IoT devices. The UICC card can carry multiple logical applications, including SIM and USIM applications, provide more advanced encryption and authentication functions, support multiple applications and multiple operators, and is mainly used in high-end smartphones and tablets, supporting multiple networks and applications. The R-UIM card is a removable user identification module designed for Code Division Multiple Access (CDMA) networks, supports authentication and encryption functions of CDMA networks, and is mainly used in terminal devices of CDMA networks.

[0070] Exemplarily, the terminal device 110 includes a first user identification card 101 and a second user identification card 102. For example, the current Internet access card of the terminal device 110 is the first user identification card 101, and the terminal device 110 is within the coverage of the network device 120. After detecting a network freeze, the terminal device 110 can switch the current Internet access card from the first user identification card 101 to the second user identification card 102.

[0071] In related technologies, the terminal device can use AP scoring to detect the abnormality of the current network card in real time, trigger the network card switching and replace the network card. However, this solution requires continuous real-time perception and evaluation of the network score for about 10 seconds before triggering the network card switching action, which is slow.

[0072] In this regard, the subsequent embodiments of the present application provide a new network card switching solution, which can accurately switch the network card from one user identification card to another user identification card, ensuring the stability of the network connection and the optimization of the signal quality, and improving the user experience.

[0073] Please refer to Figure 2 , which shows a flow chart of a network card switching method provided by an exemplary embodiment of the present application. The method can be used in a terminal device, which includes at least a first user identification card and a second user identification card; wherein the terminal device can be a computer device that supports the network card switching function; for example, the terminal device can be the above-mentioned Figure 1 The terminal device 10 in the system shown; alternatively, the terminal device may also be Figure 1 Other terminal devices outside the system shown. The method may include step 210, step 220 and step 230.

[0074] Step 210: Acquire first cell information and second cell information; the first cell information is the cell information corresponding to the first user identification card, the second cell information is the cell information corresponding to the second user identification card, and the first user identification card is the current Internet access card of the terminal device.

[0075] The first user identification card and the second user identification card may belong to the same operator or different operators.

[0076] In an embodiment of the present application, the current Internet access card of the terminal device is the first user identification card, then the second user identification card and other user identification cards are alternative Internet access cards. When the current network quality is abnormal, the terminal device can switch the current Internet access card to the alternative Internet access card.

[0077] Among them, a cell is a basic unit of wireless communication, which refers to the area covered by a base station or a part of a base station (such as a sector antenna). The above-mentioned cell information may include information such as the cell identification, frequency, channel, etc. The above-mentioned first cell information may be the cell information related to the cell corresponding to the first user identification card when the terminal device is at the current location; the above-mentioned second cell information may be the cell information related to the cell corresponding to the second user identification card when the terminal device is at the current location.

[0078] Step 220: query the handover auxiliary information; the handover auxiliary information includes at least one set of cell information association relationships, and the cell information association relationship is used to indicate the handover from the Internet access card corresponding to the source cell information to the Internet access card corresponding to the target cell information.

[0079] The above-mentioned switching auxiliary information may be pre-set / configured in the terminal device.

[0080] Exemplarily, the above-mentioned handover auxiliary information may include a relationship diagram, a mapping diagram, an information base, a semantic network, etc. consisting of one or more groups of cell information association relationships.

[0081] Step 230: When a matching association relationship is found in the switching auxiliary information, the Internet access card of the terminal device is switched from the first user identification card to the second user identification card; the matching association relationship is a cell information association relationship with the first cell information as the source cell information and the second cell information as the target cell information.

[0082] If the source cell information in the switching auxiliary information is the same as the first cell information, and the target cell information corresponding to the source cell information is the same as the second cell information, the terminal device can switch the current Internet card to the second user identification card to improve the stability of the terminal device's network connection.

[0083] To sum up, through the scheme shown in the embodiment of the present application, according to the query results of the switching auxiliary information, the terminal device can automatically switch to another Internet card with better signal quality, thereby maintaining the stability of the network connection; compared with the related technology, this scheme does not need to be based on the status evaluation results of the current Internet card, but based on the switching auxiliary information pre-stored in the terminal device, it can quickly realize the intelligent switching of the Internet card between different user identification cards, thereby improving the accuracy and timeliness of the Internet card switching, and ensuring the stability of the network connection when the user uses the terminal device.

[0084] Based on the above Figure 2 In the solution shown, in a possible implementation manner, the switching auxiliary information is constructed by the cell information corresponding to the network card before switching and the cell information corresponding to the network card after switching during the historical switching process of the network card.

[0085] Optionally, the above-mentioned switching auxiliary information may include the cell information association relationship of the terminal device during the historical switching process; or, the above-mentioned switching auxiliary information may include the cell information association relationship of other terminal devices with the same current geographical location as the terminal device during the historical switching process; or, the above-mentioned switching auxiliary information may include the cell information association relationship of the terminal device during the historical switching process, and the cell information association relationship of other terminal devices with the same current geographical location as the terminal device during the historical switching process.

[0086] Exemplarily, if the above-mentioned switching auxiliary information includes the cell information association relationship of other terminal devices with the same current geographical location as the terminal device in the historical switching process, the operators corresponding to the user identification cards in other terminal devices with the same current geographical location as the terminal device should be the same as the operators corresponding to the user identification cards in the terminal device; at the same time, the operator corresponding to the current Internet access card of the terminal device should be the same as the operator corresponding to the Internet access card corresponding to the source cell information in the cell information association relationship.

[0087] Optionally, the above-mentioned historical switching process may include a process in which the user manually switches the network card; or, the above-mentioned historical switching process may include a process in which the terminal device automatically switches the network card according to specified conditions; or, the above-mentioned historical switching process may include a process in which the user manually switches the network card, and a process in which the terminal device automatically switches the network card according to specified conditions.

[0088] Exemplarily, in the process of constructing the above-mentioned handover auxiliary information, a specified condition for adding a new cell information association relationship can be set, and when the candidate cell information association relationship meets the specified condition, the cell information association relationship is added to the above-mentioned handover auxiliary information. For example, the above-mentioned specified condition can be that the number of handovers reaches a specified number, etc.

[0089] Through the scheme shown in the embodiment of the present application, the corresponding cell information before and after the terminal device switches during the historical switching process can be obtained in advance to construct the above-mentioned switching auxiliary information, which can improve the accuracy of the switching auxiliary information and further improve the accuracy of the network card switching.

[0090] Based on the solutions shown in the above embodiments, in a possible implementation, the handover auxiliary information includes a knowledge graph; the cell information association relationship is a triple in the knowledge graph; the triple includes a source node, a target node, and a handover relationship edge between the source node and the target node;

[0091] The source node contains source cell information; the target node contains target cell information; the switching relationship edge is used to indicate switching from the Internet access card corresponding to the source cell information to the Internet access card corresponding to the target cell information.

[0092] A knowledge graph is a semantic network composed of multiple pieces of knowledge through structuring technology, and each piece of knowledge is represented by a subject-predicate-object (SPO) triple; among them, the knowledge graph involved in the embodiment of the present application is a network that describes at least one group of cell information association relationships through SPO triples.

[0093] Please refer to Figure 3 , which shows a schematic diagram of a knowledge graph provided by an exemplary embodiment of the present application. Figure 3 Part (a) shows an example of the application of knowledge graph in the process of switching network cards. Figure 3 As shown in part (a) of the figure, taking the cell information association relationship 1 in the knowledge graph as an example, the cell information association relationship 1 includes a source node 10, a target node 20 and a switching relationship edge 30. The source node 10 corresponds to the source cell information 1, and the target node 20 corresponds to the target cell information 1. The switching relationship edge 30 indicates that in the historical switching process, there is a terminal device whose Internet access card is switched from the user identification card corresponding to the source cell information to the user identification card corresponding to the target cell information. The cell information association relationship can be used as a reference for the terminal device and other terminal devices.

[0094] The embodiment of the present application provides an implementable method for switching auxiliary information, which describes the association relationship of cell information related to the terminal device in the form of a knowledge graph, so that the relationship between the cell information before and after the network card is switched, and the direction of switching are clearer and more accurate, thereby improving the accuracy of constructing the switching auxiliary information.

[0095] Based on the solutions shown in the above embodiments, in a possible implementation, the above step 220 can be implemented as step 220a and step 220b.

[0096] Step 220a: Query the first triple in the knowledge graph, where the first triple is a triple whose source node contains the first cell information and whose target node contains the second cell information.

[0097] Exemplarily, the terminal device may first compare the first cell information with each source cell information in the knowledge graph to obtain a candidate triplet in which the source cell information is the same as the first cell information; then, compare the second cell information with the target cell information in the candidate triplet, and when the second cell information is the same as the target cell information in the candidate triplet, determine the candidate triplet as the above-mentioned first triplet.

[0098] Step 220b: When the first triplet is found, determine whether a matching association relationship is found in the handover auxiliary information.

[0099] Querying the first triple that meets the conditions in the knowledge graph is equivalent to successfully querying the above-mentioned matching association relationship; thereafter, the terminal device can switch the current Internet access card from the first user identification card to the second user identification card.

[0100] The embodiment of the present application provides a feasible solution for querying switching auxiliary information. By comparing whether the source node and the target node in each triple in the knowledge graph are the same as the first cell information and the second cell information, it is possible to quickly query whether there is a matching association relationship, thereby improving the accuracy and timeliness of network card switching.

[0101] Based on the solutions shown in the above embodiments, in a possible implementation, the knowledge graph further includes one or more location nodes, and the location nodes include geographic location information; the triples and the location nodes are connected through location relationship edges; the location relationship edges are used to indicate the geographic location of the cell corresponding to the cell information in the triples, and match the geographic location information in the location nodes;

[0102] The above step 220a may be implemented as follows:

[0103] Get the current geographic location information of the terminal device;

[0104] Query the first location node in the knowledge graph; the first location node is a location node that matches the current location information;

[0105] Among the triples connected to the first position node, the first triple is searched.

[0106] The address location information contained in the location node may be the geographical location of the cell corresponding to the cell information in the triplet. Exemplarily, the terminal device may obtain the geographical location information through positioning technology (such as satellite positioning technology).

[0107] There may be one or more triples connected to the same location node through location relationship edges. In other words, there may be one or more cell information associations corresponding to the same geographic location information.

[0108] in, Figure 3 Part (b) shows an example of the application of knowledge graph in the process of switching network cards. Figure 3 As shown in part (b) of FIG. 1 , the triple of cell information association relationship 1 corresponds to location node 40, and location node 40 includes geographic location information 1 of the cell corresponding to the cell information in the triple. Location node 40 is connected to source node 10 and target node 20 via location relationship edge 50. In addition, other triples such as cell information association relationship 2 are connected to the location node.

[0109] In an embodiment of the present application, a terminal device can obtain its own corresponding current geographic location information; thereafter, the current geographic location information can be compared with each location node in the knowledge graph to obtain a first location node that is the same as the first cell information; thereafter, in each triple connected to the first location node, it is queried whether the above-mentioned first triple exists; this scheme uses the current geographic location information of the terminal device as a pre-query condition, and can quickly query the first triple, thereby improving the accuracy and timeliness of the query matching association relationship.

[0110] In another possible implementation, the terminal device may also compare the first cell information, the second cell information and the current geographic location information with each triple in the knowledge graph and the address location information contained in its corresponding location node, and determine the triple in which the source cell information is the first cell information, the target cell information is the second cell information, and the address location information contained in the location node matches the current geographic location information as the first triple.

[0111] Please refer to Figure 4 , which shows a flow chart of a method for switching an Internet access card provided by an exemplary embodiment of the present application. Figure 4 As shown above Figure 2 The network card switching method shown also includes step 240 and step 250 .

[0112] Step 240: Obtain the historical switching record of the terminal device; the historical switching record includes the third cell information corresponding to the network card before switching and the fourth cell information corresponding to the network card after switching during a historical switching process of the network card of the terminal device.

[0113] The above historical switching record is the record information corresponding to the network card switching process executed when the terminal device detects an abnormality in the network access.

[0114] For example, the terminal device can score the network connection quality. When the network connection quality score is lower than a score threshold, it is determined that the Internet access is abnormal, and the network card can be switched at this time.

[0115] Among them, during each switching process of the Internet access card of the terminal device, the terminal device can record the cell information corresponding to the Internet access cards before and after the switching, and obtain a record set consisting of multiple switching records; thereafter, the terminal device can extract one or more switching records from the above record set as the historical switching information of the terminal device.

[0116] Exemplarily, the terminal device may set extraction conditions for extracting the historical switching information of the terminal device from the above record set. For example, the extraction condition may be that the number of times each switching record is recorded reaches a specified number; or for another example, the extraction condition may be that the geographic location information of each switching record meets a specified condition.

[0117] Step 250: Based on the historical switching records, construct a second triplet in the knowledge graph; the source node in the second triplet contains the third cell information, and the target node in the second triplet contains the fourth cell information.

[0118] Exemplarily, the terminal device may write the third cell information in the historical switching information into the source node in the newly added second triplet, and write the fourth cell information corresponding to the third cell information into the target node in the newly added second triplet.

[0119] Through the scheme shown in the above embodiments of the present application, the terminal device can construct triples in the knowledge graph based on the historical switching process of its own network card, so that the knowledge graph can match the movement route of the terminal device, thereby maximizing the accuracy and efficiency of triggering the network card switching through the knowledge graph.

[0120] Based on the solutions shown in the above embodiments, in a possible implementation, the historical switching record also includes historical geographical location information when the switching occurs;

[0121] The above network card switching method also includes:

[0122] Querying a second location node in the knowledge graph; the second location node is a location node that matches the historical location information;

[0123] When the second location node is found, the second triplet is connected to the second location node.

[0124] During each switching process of the network card of the terminal device, the terminal device can also record the historical geographic location information when the switching occurs; thereafter, the historical geographic location information can be compared with each location node in the knowledge graph to obtain a second location node that matches the historical geographic location information; thereafter, the second triple constructed above is connected to the second location node to improve the accuracy of constructing the knowledge graph.

[0125] Please refer to Figure 5 , which shows a schematic diagram of a knowledge graph provided by an exemplary embodiment of the present application. Figure 5 Part (a) shows an example of constructing a knowledge graph during the network card switching process. Figure 3 Based on part (b) of Figure 5As shown in part (a), the second triplet is the cell information association relationship 3, the source node in the second triplet contains the third cell information, the target node in the second triplet contains the fourth cell information, and the historical location information of the cell information association relationship 3 matches the geographic location information 1. Therefore, the second triplet is connected to the location node 40 of the geographic location information 1.

[0126] Based on the solutions shown in the above embodiments, in a possible implementation manner, the above network card switching method further includes:

[0127] If the second position node is not found, a second position node is created in the knowledge graph, and the second triple is connected to the second position node.

[0128] Among them, if the historical geographic location information is compared with the various location nodes in the knowledge graph, no location node matching the historical geographic location information is obtained; at this time, the terminal device can create a new second location node in the above knowledge graph; thereafter, the second triple constructed above is connected to the second location node, so as to improve the above knowledge graph and improve the accuracy and completeness of constructing the knowledge graph.

[0129] in, Figure 5 Part (b) of Figure 1 shows an example of how the knowledge graph is constructed during the network card switching process. Figure 3 Based on part (b) of Figure 5 As shown in part (b), the second triplet is cell information association relationship 3, the source node in the second triplet contains the third cell information, the target node in the second triplet contains the fourth cell information, and the historical location information of cell information association relationship 3 does not match the geographic location information 1; therefore, the terminal device creates a location node 60 in the knowledge graph, the location node 60 contains the geographic location information 2, and connects the second triplet with the location node 60 of the geographic location information 2.

[0130] Please refer to Figure 6 , which shows a flow chart of a method for switching an Internet access card provided by an exemplary embodiment of the present application. Figure 6 As shown above Figure 2 The network card switching method shown also includes step 260 and step 270 .

[0131] Step 260: After the network card of the terminal device is switched from the first user identification card to the second user identification card, the network connection quality of the terminal device is obtained.

[0132] The above network connection quality may include but is not limited to:

[0133] The round trip time (RTT) of the Transmission Control Protocol (TCP) refers to the time from when the sender sends data to when the sender receives the confirmation message from the receiver. By monitoring the RTT delay in TCP, you can preliminarily judge the performance of the network. Exemplarily, RTT can include the propagation time of the link, the processing time of the end system, and the cache and queue time of the network intermediate nodes such as routers. Among them, the propagation time of the link is the time required for the signal to propagate in the physical medium; the processing time of the end system is the time for the sender and the receiver to process the data; the cache and queue time of the network intermediate nodes such as routers is the cache and queue time of the data in the intermediate nodes such as routers.

[0134] Domain Name System (DNS) response time: refers to the time required from the DNS client sending a DNS query request to receiving a response from the DNS server. DNS response time directly affects the user's access speed and experience. A shorter DNS response time can significantly improve the web page loading speed and application response speed. Exemplarily, the DNS response time may include query time, transmission time, processing time, and response time. Among them, query time is the time it takes for the DNS client to send a query request; transmission time is the time it takes for the query request to be transmitted from the client to the DNS server; processing time is the time it takes for the DNS server to process the query request and generate a response; response time is the time it takes for the response to be transmitted from the DNS server back to the client.

[0135] User Datagram Protocol (UDP) quantity: refers to the number of data packets transmitted through the User Datagram Protocol within a certain period of time. UDP is a connectionless, unreliable transport layer protocol. The UDP quantity can reflect the activity of real-time applications in the network and the load of data transmission. By monitoring the UDP quantity, the real-time performance and load of the network can be evaluated.

[0136] In addition, the above-mentioned network connection quality may also include other information, which is not limited in the present application.

[0137] Step 270: Perform management operations on the matching association relationship according to the network connection quality.

[0138] In an embodiment of the present application, the terminal device can calculate various types of information contained in the current network connection quality according to a specified algorithm to obtain an indicator or value that can indicate the network connection quality, and perform management operations on the above-mentioned matching association relationship based on the indicator or value.

[0139] Exemplarily, the terminal device may compare the indicator or value with a pre-stored reference range, and the reference range is used to indicate that the network connection quality is good. If the above indicator or value does not meet the reference range, it means that the network connection quality at this time is not ideal, and the terminal device may delete the corresponding matching association from the switching auxiliary information; if the above indicator or value meets the reference range, the terminal device retains the corresponding matching association.

[0140] Among them, the above-mentioned specified algorithm can be pre-set / configured in the terminal device; for example, the weights corresponding to various types of information can be pre-set, and then the terminal device can perform weighted processing on various types of information included in the current network connection quality.

[0141] Through the scheme shown in the above-mentioned embodiment of the present application, according to the quality of the network connection after switching, the terminal device can timely update the above-mentioned switching auxiliary information so as to delete the expired matching association relationship in time, thereby dynamically optimizing the accuracy of the switching auxiliary information.

[0142] Based on the solutions shown in the above embodiments, in a possible implementation manner, the above step 250 can be implemented as follows:

[0143] When the network connection quality is lower than the network connection quality threshold, the matching association relationship is removed from the switching auxiliary information.

[0144] The network connection quality threshold may be pre-set / configured in the terminal device. If the network connection quality threshold is lower than the network connection quality threshold, it means that the current network connection quality is not ideal; if the network connection quality threshold is not lower than the network connection quality threshold, it means that the current network connection quality is good.

[0145] In an embodiment of the present application, if the network connection quality is lower than the above-mentioned network connection quality threshold, the terminal device can remove the matching association relationship corresponding to the last switch from the switching auxiliary information so as to continuously optimize the accuracy of the above-mentioned switching auxiliary information.

[0146] In a possible implementation, the situation where the network connection quality is lower than the network connection quality threshold may be temporary. Therefore, the removed matching association relationship can be added to the knowledge graph again through the above steps 240 and 250.

[0147] Based on the solutions shown in the above embodiments, in a possible implementation, the above step 270 can be implemented as follows: when the network connection quality is not lower than the network connection quality threshold, increase the score of the matching association relationship;

[0148] When the network connection quality is lower than the network connection quality threshold, the score of the matching association relationship is reduced;

[0149] When the score of the matching association relationship is lower than the score threshold, the matching association relationship is removed from the switching auxiliary information.

[0150] Exemplarily, the score of the above matching association relationship may be 3 at the initial time. If the network connection quality is not lower than the network connection quality threshold, the terminal device may add points based on the current score, for example, modify the score to 4; if the network connection quality is lower than the network connection quality threshold, the terminal device may subtract points from the current score, for example, modify the score to 2.

[0151] In addition, the score of the above matching association relationship corresponds to a score threshold; if it is lower than the score threshold, it means that the current network connection quality is poor. For example, the score threshold is 0. If the score of the above matching association relationship drops below the score threshold, the terminal device can remove the matching association relationship from the handover auxiliary information.

[0152] Optionally, the score of the matching relationship may have a corresponding upper limit. For example, the upper limit is 5. That is, the score of the matching relationship may be increased to 5 at most.

[0153] Optionally, the terminal device can obtain the score value of each increase or decrease in the matching association relationship based on the current network connection quality compared to the rate of change of the network connection quality before the network card is switched. For example, when the rate of change reaches a specified value (such as 60%), additional points can be added on the basis of the original increase in the score. For example, if the current network connection quality is 90, the network connection quality before the network card is switched is 50, and the rate of change is 80%, then the score of the matching association relationship can be increased from 3 to 4.5 or 5.

[0154] Through the scheme shown in the above-mentioned embodiments of the present application, the terminal device can modify the score of the matching association relationship according to the network connection quality, and then determine whether the matching association relationship should be removed according to the score of the matching association relationship; the accuracy of the switching auxiliary information can be further optimized to avoid the accidental deletion of certain matching association relationships.

[0155] Based on the solutions shown in the above embodiments, in a possible implementation manner, the cell information includes at least one of the following:

[0156] Cell frequency, physical cell identifier PCI, cell identifier ID.

[0157] The above-mentioned cell frequency point refers to a specific frequency point in the wireless frequency band used by the cell, which is used to determine the wireless signal coverage range of the cell and the use of frequency resources.

[0158] The above-mentioned physical cell identification (PCI) is a physical layer identification used to uniquely identify a cell, and is composed of a cell primary synchronization signal (PSS) and a secondary synchronization signal (SSS).

[0159] The cell ID is a unique identifier of a cell and is used to identify and manage different cells in a network.

[0160] The embodiments of the present application provide a variety of combinations of cell information. The above-mentioned cell information may include but is not limited to: cell frequency, PCI, cell ID or any combination thereof, and may also include other information, which is not limited in the embodiments of the present application, thereby improving the flexibility of obtaining the first cell information and the second cell information.

[0161] The solutions shown in the above embodiments can be applied to travel scenarios on fixed routes, for example, scenarios where users commute by means of transportation (such as high-speed rail, subway, bus, taxi, online car-hailing, private car). In this scenario, in addition to executing the action of switching to the network card, the card switching action and the card switching information are recorded synchronously. The card switching information includes the location information before and after the card switching, and the cellular cell information (i.e., the above-mentioned cell information). Afterwards, the multiple card switching information recorded in the early stage is used through machine learning to construct a knowledge graph as a priori information input and pre-stored in the terminal device.

[0162] When the user enters the line next time, the location information and cellular cell information will match the knowledge graph pre-stored in the terminal device, and the action of switching the network card will be executed in advance. In addition, after executing the action of switching the network card, it is necessary to verify the improvement results of the optimization execution to further update the knowledge graph pre-stored in the history.

[0163] For example, if the terminal device is a mobile phone, please refer to Figure 7 , which shows a schematic diagram of the establishment and application of a knowledge graph provided by an exemplary embodiment of the present application.

[0164] During the knowledge graph establishment stage, mobile phone manufacturers / service providers can pre-record the card switching information each time the mobile phone switches the network card. The card switching information includes the location information before and after the card switching and the cellular cell information before and after the card switching. Figure 7As shown in part (a) of FIG. 1 , when user 710 is carrying mobile phone 20 and is located at line 1, the network card of mobile phone 20 is switched from network card 201 to network card 202; at this time, mobile phone 20 automatically records the switching information of this network card switching action, including location information 1 before switching, cell information of cell 1 before switching, location information 2 after switching, and cell information of cell 2 after switching. Afterwards, the manufacturer / service provider of mobile phone 20 can establish or manage the knowledge graph 30 based on the switching information of this network card switching action, and upload the knowledge graph 30 to the server 40; accordingly, the server 40 can push the knowledge graph 30 to mobile phone 20 located at user 710.

[0165] In the application stage of knowledge graph, such as Figure 7 As shown in part (b), user 710 carries mobile phone 20 on line 1. Mobile phone 20 can obtain current location information and cell information, query the pre-stored knowledge graph 30, and determine whether the location information and cell information match the knowledge graph 30; if they match, mobile phone 20 can switch the Internet card of mobile phone 20 from Internet card 201 to Internet card 202 in advance.

[0166] Specifically, please refer to Figure 8 , which shows a flow chart of a knowledge graph application method provided by an exemplary embodiment of the present application. Figure 8 As shown, the above network card switching method includes the following steps:

[0167] S1: Get the current location of the terminal device;

[0168] S2: Determine whether the current location matches the location information in the historically stored knowledge graph;

[0169] If the current location matches the location information in the historically stored knowledge graph, proceed to step S3;

[0170] If the current location does not match the location information in the historically stored knowledge graph, return to step S1;

[0171] S3: Determine whether the current Internet access card matches the Internet access card of the source cell information in the historical pre-stored knowledge graph;

[0172] If the current Internet access card matches the Internet access card of the source cell information in the historical pre-stored knowledge graph, proceed to step S4;

[0173] If the current Internet access card does not match the Internet access card of the source cell information in the historical pre-stored knowledge graph, return to step S1;

[0174] S4: Switch the current Internet access card of the terminal device to the Internet access card corresponding to the target cell information;

[0175] S5: Update the historically stored knowledge graph.

[0176] On the one hand, based on the prior information provided by historical pre-storage, the terminal device can quickly and accurately switch the card. For individual users, especially those who commute on fixed routes, a personalized and precise optimization strategy is provided to improve the user's Internet access stability. On the other hand, because the mobile phone operation switching is driven by historical pre-storage prior information, rather than blind switching after real-time perception, it can give users a clearer prompt of the next behavior of the terminal device.

[0177] Please refer to Fig. 9 , which shows a schematic diagram of the structure of an Internet access card switching device provided by an exemplary embodiment of the present application. The Internet access card switching device 900 can be used to perform the above Figure 2 , Figure 4 or Figure 5 In the embodiment shown, all or part of the steps are performed by the terminal device; the device includes:

[0178] The first acquisition module 901 is used to acquire first cell information and second cell information; the first cell information is the cell information corresponding to the first user identification card, the second cell information is the cell information corresponding to the second user identification card, and the first user identification card is the current Internet access card of the terminal device;

[0179] The first query module 902 is used to query the handover auxiliary information; the handover auxiliary information includes at least one group of cell information association relationships, and the cell information association relationship is used to indicate the handover from the Internet access card corresponding to the source cell information to the Internet access card corresponding to the target cell information;

[0180] The switching module 903 is used to switch the Internet access card of the terminal device from the first user identification card to the second user identification card when a matching association relationship is found in the switching auxiliary information; the matching association relationship is a cell information association relationship with the first cell information as the source cell information and the second cell information as the target cell information.

[0181] In some embodiments, the switching auxiliary information is constructed by the cell information corresponding to the Internet access card before switching and the cell information corresponding to the Internet access card after switching during the historical switching process of the Internet access card.

[0182] In some embodiments, the handover auxiliary information includes a knowledge graph; the cell information association relationship is a triple in the knowledge graph; the triple includes a source node, a target node, and a handover relationship edge between the source node and the target node;

[0183] The source node contains source cell information; the target node contains target cell information; the switching relationship edge is used to indicate switching from the Internet access card corresponding to the source cell information to the Internet access card corresponding to the target cell information.

[0184] In some embodiments, the first query module 902 is used to query a first triple in the knowledge graph, where the first triple is a triple whose source node includes first cell information and whose target node includes second cell information;

[0185] The first query module 902 is configured to determine whether a matching association relationship is found in the handover auxiliary information when the first triple is found.

[0186] In some embodiments, the knowledge graph further includes one or more location nodes, which include geographic location information; the triples and the location nodes are connected via location relationship edges; the location relationship edges are used to indicate the geographic location of the cell corresponding to the cell information in the triples, and match the geographic location information in the location nodes;

[0187] The first query module 902 is used to obtain the current geographical location information of the terminal device;

[0188] The first query module 902 is used to query the first location node in the knowledge graph; the first location node is a location node that matches the current geographic location information;

[0189] The first query module 902 is used to query the first triplet among the triples connected to the first position node.

[0190] In some embodiments, the apparatus further comprises:

[0191] The second acquisition module is used to acquire the historical switching record of the terminal device; the historical switching record includes the third cell information corresponding to the network card before switching and the fourth cell information corresponding to the network card after switching during a historical switching process of the network card of the terminal device;

[0192] A construction module is used to construct a second triplet in the knowledge graph based on historical switching records; the source node in the second triplet contains the third cell information, and the target node in the second triplet contains the fourth cell information.

[0193] In some embodiments, the historical switching record also includes historical geographic location information when the switching occurred;

[0194] The device also includes:

[0195] A second query module is used to query a second location node in the knowledge graph; the second location node is a location node that matches the historical geographic location information;

[0196] The connection module is used to connect the second triplet with the second location node when the second location node is found.

[0197] In some embodiments, the apparatus further comprises:

[0198] A creation module is used to create a second position node in the knowledge graph and connect the second triple to the second position node when the second position node is not queried.

[0199] In some embodiments, the apparatus further comprises:

[0200] A third acquisition module is used to obtain the network connection quality of the terminal device after the network card of the terminal device is switched from the first user identification card to the second user identification card;

[0201] The management module is used to perform management operations on the matching association relationship according to the network connection quality.

[0202] In some embodiments, the management module is configured to remove the matching association relationship from the handover assistance information when the network connection quality is lower than a network connection quality threshold.

[0203] In some embodiments, the management module is used to increase the score of the matching association relationship if the network connection quality is not less than the network connection quality threshold;

[0204] A management module, configured to reduce the score of the matching association relationship when the network connection quality is lower than the network connection quality threshold;

[0205] The management module is used to remove the matching association relationship from the switching auxiliary information when the score of the matching association relationship is lower than the score threshold.

[0206] In some embodiments, the cell information includes at least one of the following:

[0207] Cell frequency, physical cell identifier PCI, cell identifier ID.

[0208] One point that needs to be explained is that the device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example to implement its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0209] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0210] Please refer to Fig.10, which shows a schematic diagram of the structure of a computer device 1000 provided in one embodiment of the present application. The computer device 1000 may include: a processor 1001, a receiver 1002, a transmitter 1003, a memory 1004 and a bus 1005.

[0211] The processor 1001 includes one or more processing cores. The processor 1001 executes various functional applications and information processing by running software programs and modules.

[0212] The receiver 1002 and the transmitter 1003 may be implemented as a communication component, which may be a communication chip, which may also be called a transceiver.

[0213] The memory 1004 is connected to the processor 1001 via a bus 1005 .

[0214] The memory 1004 may be used to store a computer program, and the processor 1001 may be used to execute the computer program to implement each step in the above method embodiment.

[0215] In addition, memory 1004 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, and volatile or non-volatile storage devices include but are not limited to: magnetic disks or optical disks, electrically erasable programmable read-only memory, erasable programmable read-only memory, static random access memory, read-only memory, magnetic memory, flash memory, and programmable read-only memory.

[0216] In an exemplary scenario, when the computer device 1000 is implemented as a first device, the processor 1001 can control the transceiver to receive a query broadcast sent by a second device, the query broadcast containing a visibility field; the visibility field is used to indicate a device visible to the second device; when the value of the visibility field indicates that the first device is visible to the second device, a query response is sent to the second device; the query response is used by the second device to discover the first device; and a short-range wireless communication connection is established with the second device.

[0217] The process executed by the processor 1001 and / or the transceiver in the above-mentioned computer device 1000 may refer to the various steps executed by the first device in the above-mentioned method embodiments.

[0218] In an exemplary scenario, when the computer device 1000 is implemented as a second device, the processor 1001 can control the transceiver to send an inquiry broadcast, which includes a visibility field; the visibility field is used to indicate a device visible to the second device; receive an inquiry response, which is sent by a first device that receives the inquiry broadcast when the value of the visibility field indicates that the first device is visible to the second device; the inquiry response is used by the second device to discover the first device; and establish a short-range wireless communication connection with the first device.

[0219] The process executed by the processor 1001 and / or the transceiver in the above-mentioned computer device 1000 may refer to the various steps executed by the second device in the above-mentioned method embodiments.

[0220] An embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. The computer instructions are loaded and executed by a processor to implement all or part of the steps performed by the first device or the second device in the above-mentioned method embodiments.

[0221] The present application also provides a chip, which is used to run in a computer device so that the computer device executes all or part of the steps executed by the first device or the second device in the above-mentioned various method embodiments.

[0222] The present application also provides a computer program product, the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The above computer program product can be used to implement all or part of the steps performed by the first device or the second device in the above various method embodiments.

[0223] The present application also provides a computer program product, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes all or part of the steps executed by the first device or the second device in the above-mentioned various method embodiments.

[0224] The present application also provides a computer program, which is executed by a processor of a computer device to implement all or part of the steps executed by the first device or the second device in the above-mentioned various method embodiments.

[0225] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0226] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for switching a network card, characterized in that: The method is performed by a terminal device, the terminal device at least comprising a first user identification card and a second user identification card; the method comprises: Acquire first cell information and second cell information; the first cell information is the cell information corresponding to the first user identification card, the second cell information is the cell information corresponding to the second user identification card, and the first user identification card is the current Internet access card of the terminal device; Query the handover auxiliary information; the handover auxiliary information includes at least one group of cell information association relationships, and the cell information association relationship is used to indicate the handover from the Internet access card corresponding to the source cell information to the Internet access card corresponding to the target cell information; When a matching association relationship is found in the switching auxiliary information, the Internet access card of the terminal device is switched from the first user identification card to the second user identification card; the matching association relationship is a cell information association relationship in which the first cell information is the source cell information and the second cell information is the target cell information.

2. The method according to claim 1, characterized in that The switching auxiliary information is constructed by the cell information corresponding to the network card before switching and the cell information corresponding to the network card after switching during the historical switching process of the network card.

3. The method according to claim 1 or 2, characterized in that: The handover auxiliary information includes a knowledge graph; the cell information association relationship is a triple in the knowledge graph; the triple includes a source node, a target node, and a handover relationship edge between the source node and the target node; The source node includes the source cell information; the target node includes the target cell information; The switching relationship edge is used to indicate switching from the Internet access card corresponding to the source cell information to the Internet access card corresponding to the target cell information.

4. The method according to claim 3, characterized in that The query switching auxiliary information includes: Querying a first triple in the knowledge graph, where the first triple is the triple in which the source node includes the first cell information and the target node includes the second cell information; When the first triplet is found, it is determined that the matching association relationship is found in the handover auxiliary information.

5. The method according to claim 4, characterized in that The knowledge graph further includes one or more location nodes, each of which includes geographic location information; the triple is connected to the location node via a location relationship edge; the location relationship edge is used to indicate the geographic location of the cell corresponding to the cell information in the triple, and matches the geographic location information in the location node; The step of searching the knowledge graph for the first triplet includes: Acquire the current geographical location information of the terminal device; Querying a first location node in the knowledge graph; the first location node is the location node that matches the current geographic location information; The first triplet is searched in each of the triples connected to the first location node.

6. The method according to claim 3, characterized in that: The method further comprises: Acquire a historical switching record of the terminal device; the historical switching record includes, during a historical switching process of the network card of the terminal device, information about a third cell corresponding to the network card before the switching, and information about a fourth cell corresponding to the network card after the switching; Based on the historical switching records, a second triplet in the knowledge graph is constructed; the source node in the second triplet contains the third cell information, and the target node in the second triplet contains the fourth cell information.

7. The method according to claim 6, characterized in that The historical switching record also includes historical geographical location information when the switching occurs; The method further comprises: Querying a second location node in the knowledge graph; the second location node is the location node that matches the historical geographic location information; When the second location node is found, the second triplet is connected to the second location node.

8. The method according to claim 7, characterized in that The method further comprises: If the second location node is not found in the query, the second location node is created in the knowledge graph, and the second triple is connected to the second location node.

9. The method according to claim 1 or 2, characterized in that: The method further comprises: After the Internet access card of the terminal device is switched from the first user identification card to the second user identification card, obtaining the network connection quality of the terminal device; A management operation is performed on the matching association relationship according to the network connection quality.

10. The method according to claim 9, characterized in that The performing a management operation on the matching association relationship according to the network connection quality includes: When the network connection quality is lower than a network connection quality threshold, the matching association relationship is removed from the handover auxiliary information.

11. The method according to claim 9, characterized in that The performing a management operation on the matching association relationship according to the network connection quality includes: In the case where the network connection quality is not lower than the network connection quality threshold, increasing the score of the matching association relationship; When the network connection quality is lower than the network connection quality threshold, lowering the score of the matching association relationship; When the score of the matching association relationship is lower than a score threshold, the matching association relationship is removed from the switching auxiliary information.

12. The method according to claim 1 or 2, characterized in that: The cell information includes at least one of the following: Cell frequency, physical cell identifier PCI, cell identifier ID.

13. A network card switching device, characterized in that: The device is provided in a terminal device, and the terminal device at least includes a first user identification card and a second user identification card; the device includes: A first acquisition module is used to acquire first cell information and second cell information; the first cell information is the cell information corresponding to the first user identification card, the second cell information is the cell information corresponding to the second user identification card, and the first user identification card is the current Internet access card of the terminal device; A first query module is used to query the handover auxiliary information; the handover auxiliary information includes at least one group of cell information association relationships, and the cell information association relationship is used to indicate the handover from the Internet access card corresponding to the source cell information to the Internet access card corresponding to the target cell information; A switching module is used to switch the Internet access card of the terminal device from the first user identification card to the second user identification card when a matching association relationship is queried in the switching auxiliary information; the matching association relationship is the cell information association relationship with the first cell information as the source cell information and the second cell information as the target cell information.

14. A computer device, characterized in that: The computer device includes a processor, a memory and a transceiver; The memory stores a computer program, and the processor executes the computer program so that the computer device implements the network card switching method according to any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The storage medium stores computer instructions, and the computer instructions are used to be executed by a processor to implement the network card switching method according to any one of claims 1 to 12.

16. A chip, characterized in that: The chip is used to run in a computer device, so that the computer device executes the network card switching method according to any one of claims 1 to 12.