Roaming communication method and device, terminal and storage medium
By using dual network cards and link switching technology on the terminal, the problems of network disconnection and packet loss during roaming are solved, and seamless roaming and better user experience of the terminal are achieved.
Patent Information
- Application Number
- CN202411671479.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-02-14
AI Technical Summary
During terminal roaming, network disconnection or packet loss often leads to business interruption and affects user experience.
By installing the first network card and the second network card on the terminal and binding it to the virtual network card, the first link and the second link are established. Adjust link parameters based on preset roaming trigger conditions, use the main link to transmit application data, and automatically switch links when the link quality meets specific conditions.
It realizes seamless roaming of terminals, reduces the situation of disconnection and packet loss, provides more stable network services, and improves user experience.
Smart Images

Figure CN119450634A_ABST
Abstract
Description
Technical Field
[0001] The present invention mainly relates to the technical field of terminal roaming, and in particular to a roaming communication method, device, terminal and storage medium. Background Art
[0002] Currently, terminals can roam and communicate through standard protocols when the network card is connected to the ACAP (Access Controller + Access Point, a wireless LAN architecture based on centralized management). If the network is disconnected (for example, when roaming to a new AP (wireless access point), some data packets may not be transmitted and need to be actively disconnected and reconnected) or packet loss occurs during roaming, it will affect the transmission of application data on the terminal, causing service interruption and poor user experience. Summary of the invention
[0003] The purpose of this application is to provide a roaming communication method, device, terminal and storage medium, which help to achieve seamless roaming of the terminal through dual network cards and link switching, thereby providing better network services and improving user experience.
[0004] Based on the above purpose, in a first aspect, the present application provides a roaming communication method, which is applied to a terminal, wherein the terminal is equipped with a first network card and a second network card, and the method includes: binding the first network card and the second network card to a virtual network card, wherein the virtual network card is used to enable the terminal to transmit application data to a target server, wherein the first network card establishes a first link with the target server through a first AP, and the second network card establishes a second link with the target server through a second AP; adjusting a first roaming parameter of the first link based on a preset first roaming trigger condition, and adjusting a second roaming parameter of the second link based on a preset second roaming trigger condition; using the first link as a main link and the second link as a backup link, and using the main link to transmit application data; and cyclically executing the following steps: in response to the link quality of the main link satisfying the first switching condition and the link quality of the backup link satisfying the second switching condition, using the first link as a backup link and the second link as a main link; then, using the main link to continue transmitting application data, adjusting the second roaming parameter so that the second roaming parameter satisfies the first roaming trigger condition, and adjusting the first roaming parameter so that the first roaming parameter satisfies the second roaming trigger condition.
[0005] In some embodiments, adjusting a first roaming parameter of a first link based on a preset first roaming trigger condition, and adjusting a second roaming parameter of a second link based on a preset second roaming trigger condition, includes: adjusting a first roaming threshold of the first link so that the first roaming threshold satisfies the first roaming trigger condition; and adjusting a second roaming threshold of the second link so that the second roaming threshold satisfies the second roaming trigger condition, wherein the first roaming threshold is lower than the second roaming threshold; and / or adjusting a first sensitivity of the first link so that the first sensitivity satisfies the first roaming trigger condition; and adjusting a second sensitivity of the second link so that the second sensitivity satisfies the second roaming trigger condition, wherein the value of the first sensitivity is higher than the value of the second sensitivity.
[0006] In some embodiments, the first switching condition includes: the main link is disconnected; and / or the link quality of the main link is not higher than a preset first link switching threshold.
[0007] In some embodiments, the second switching condition includes: the backup link is communicating normally; and the link quality of the backup link is higher than the link quality of the primary link.
[0008] In some embodiments, after the main link is used to continue transmitting the application data, the method further includes: when the main link is disconnected, switching the main link to a backup link, and switching the backup link to the main link.
[0009] In some embodiments, after the primary link is used to continue transmitting the application data, the method further includes: when the backup link is disconnected, automatically reconnecting the backup link.
[0010] In some embodiments, after the first link is used as a backup link and the second link is used as a main link, the method further includes:
[0011] In response to the main link not being disconnected and the link quality of the main link being not higher than a preset third link switching threshold, the link quality of the standby link and the communication status thereof are determined.
[0012] When the link quality of the standby link is higher than the link quality of the main link and the standby link is communicating normally, the standby link is switched to the main link, and the main link is switched to the standby link.
[0013] In a second aspect, the present application provides a roaming communication device, which is applied to a terminal equipped with a first network card and a second network card, and the roaming communication device includes a virtual network card binding module and a link management module, wherein: the virtual network card binding module is used to bind the first network card and the second network card to the virtual network card, the virtual network card is used to enable the terminal to transmit application data to a target server, the first network card establishes a first link with the target server through a first AP, and the second network card establishes a second link with the target server through a second AP; the link management module is used to adjust a first roaming parameter of the first link based on a preset first roaming trigger condition, and adjust a second roaming parameter of the second link based on a preset second roaming trigger condition; and,
[0014] The link management module is further configured to use the first link as a main link, use the second link as a backup link, and use the main link to transmit the application data; and
[0015] The link management module is also used to cyclically execute the following steps: in response to the link quality of the main link satisfying the first switching condition and the link quality of the backup link satisfying the second switching condition, the first link is used as the backup link and the second link is used as the main link; then, the main link is used to continue to transmit application data, the second roaming parameter is adjusted so that the second roaming parameter satisfies the first roaming trigger condition, and the first roaming parameter is adjusted so that the first roaming parameter satisfies the second roaming trigger condition.
[0016] In a third aspect, the present application provides a terminal, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is called by the processor, the processor executes any method described in the first aspect.
[0017] In a fourth aspect, the present application provides a storage medium having computer program instructions stored thereon, wherein when the computer program instructions are called by a computer, the computer executes any of the methods described in the first aspect above.
[0018] Compared with the prior art, the present invention has the following advantages:
[0019] The present application provides a roaming communication method, a roaming communication device, a terminal and a storage medium. The method comprises installing a first network card and a second network card on a terminal, then creating a virtual network card, and performing link management on a first link established between the first network card and a first AP and a second link established between the second network card and a second AP, so that the terminal can automatically switch to another link when the link quality of one link does not support the transmission of application data, thereby realizing seamless roaming of the terminal, solving problems such as disconnection and packet loss during roaming, providing better network services for wireless roaming of the terminal, and helping to improve user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are included to provide a further understanding of the present application. They are included and constitute a part of the present application. The accompanying drawings illustrate embodiments of the present application and together with the present specification serve to explain the principles of the present application. In the accompanying drawings:
[0021] Figure 1 is a schematic diagram of an application scenario provided by an exemplary embodiment of the present application;
[0022] Figure 2 is a flow chart of a roaming communication method provided by an exemplary embodiment of the present application;
[0023] Figure 3 It is a logical schematic diagram of a roaming communication method provided by an exemplary embodiment of the present application;
[0024] Figure 4 is a schematic diagram of a roaming communication device provided by an exemplary embodiment of the present application;
[0025] Figure 5 It is a schematic diagram of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0027] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0028] In addition, it should be noted that the use of words such as "first" and "second" to define components is only for the convenience of distinguishing the corresponding components. If not otherwise stated, the above words have no special meaning and cannot be understood as limiting the scope of protection of this application. In addition, although the terms used in this application are selected from well-known and commonly used terms, some terms mentioned in the specification of this application may be selected by the applicant at his or her discretion, and their detailed meanings are explained in the relevant parts of the description of this article. In addition, it is required to understand this application not only by the actual terms used, but also by the meaning implied by each term.
[0029] In a first aspect of an exemplary embodiment of the present application, a roaming communication method is provided. Figure 1 to Figure 2 Describe. The communication method provided in the embodiment of the present application can be applied to terminals of various communication systems, such as: third generation mobile communication (3-Generation, 3G) system, fourth generation mobile communication (4-Generation, 4G) system, fifth generation mobile communication (5th Generation, 5G) system or subsequent evolved communication system. Among them, the terminal includes but is not limited to: user equipment (UE), user unit, user station, mobile station, mobile station, remote station, remote terminal equipment, mobile terminal equipment, user terminal equipment, terminal equipment, wireless communication equipment, user agent, user device, cellular phone, handheld device with wireless communication function, computing device, processing device connected to wireless modem, vehicle-mounted equipment, wearable device, terminal equipment in the Internet of Things, household appliances, virtual reality equipment, etc. In each embodiment of the present application, the terminal is used as an example, and sometimes it is used interchangeably with terminal equipment, user equipment, communication equipment, etc.
[0030] Some terms used in the embodiments of the present application are explained below.
[0031] AP: wireless access point.
[0032] ACAP: The full name is Access Controller + Access Point networking, a wireless local area network (WLAN) architecture based on centralized management.
[0033] SSID: Service Set Identifier, which indicates each subnetwork in a wireless LAN that requires independent authentication.
[0034] Virtual Network Interface Card (VNIC): Maps the logical network interfaces of multiple physical network cards to a single virtual network interface to create a virtual LAN between computers, allowing computers to communicate over the network as if they were connected to an actual network.
[0035] TCP: Transmission Control Protocol.
[0036] Figure 1 is a schematic diagram of an application scenario provided by an exemplary embodiment of the present application. Figure 1 , the application scenario at least includes a terminal, SSID1, SSID2 and a target server. Among them, SSID1 and SSID2 respectively include multiple APs with different communication addresses. At least two network cards are installed on the terminal, such as a first network card and a second network card. When roaming occurs, any AP in SSID1 can be used as the first AP associated with the first network card. Specifically, the terminal can use the first network card to establish a LAN communication with the first AP, and establish a first link between the first AP and the target server, so that the terminal can use the first network card to transmit data to the target server. Similarly, any AP in SSID2 can be used as a second AP associated with the second network card. The terminal can use the second network card to establish a LAN communication with the second AP, and establish a second link between the second AP and the target server, so that the terminal can use the second network card to transmit data to the target server. Among them, the target server can be a server corresponding to any application selected by the user on the terminal, such as the server of a chat APP, etc., and there is no restriction on this.
[0037] Figure 2 is a flow chart of a roaming communication method provided by an exemplary embodiment of the present application. The execution subject of the flow chart may be a terminal, for example Figure 1 The terminal shown. The method may include the following steps:
[0038] S201, bind the first network card and the second network card to a virtual network card.
[0039] The virtual network card is used to enable the terminal to transmit application data to the target server. The first network card establishes a first link with the target server through the first AP, and the second network card establishes a second link with the target server through the second AP. Specifically, after the first network card or the second network card is initialized, it is first associated with the corresponding AP. When the network card is disconnected in the local area network, it can be automatically reconnected through the communication protocol. When roaming occurs, the network card can be searched in the new subnet, so that the network card is associated with the new AP, which helps to reduce signal interruptions.
[0040] Furthermore, the logical network interfaces of the first network card and the second network card are bound to the virtual network card, so that the terminal can use the virtual network card to create a network connection and communicate with the target server on the local area network. When the virtual network card processes the data packet sent to the terminal protocol stack, it can send the data packet to one of the bound physical network cards through link management. For the target server, this is equivalent to using a unique virtual network card for routing. When roaming occurs, the target server's perception of link disconnection can be effectively reduced, and a normal TCP connection can be maintained.
[0041] Exemplarily, the actual technical means for binding the first network card and the second network card to the virtual network card may be Bonding, etc. Bonding is a network card binding technology supported in the Linux kernel, which can be used to abstract multiple physical network cards into one virtual network card for use, and is usually used in Ethernet. This application does not limit the actual technical means for network card binding.
[0042] In the disclosed embodiment, the first network card may be a network card with a 5G 20MHz bandwidth, and the second network card may be a network card with a Sub1G2MHz bandwidth.
[0043] S202: Adjust a first roaming parameter of a first link based on a preset first roaming trigger condition, and adjust a second roaming parameter of a second link based on a preset second roaming trigger condition.
[0044] In some embodiments, adjusting a first roaming parameter of a first link based on a preset first roaming trigger condition, and adjusting a second roaming parameter of a second link based on a preset second roaming trigger condition includes:
[0045] adjusting a first roaming threshold of the first link so that the first roaming threshold satisfies a first roaming trigger condition; and adjusting a second roaming threshold of the second link so that the second roaming threshold satisfies a second roaming trigger condition, wherein the first roaming threshold is lower than the second roaming threshold; and / or,
[0046] The first sensitivity of the first link is adjusted so that the first sensitivity satisfies the first roaming trigger condition; and the second sensitivity of the second link is adjusted so that the second sensitivity satisfies the second roaming trigger condition, wherein the value of the first sensitivity is higher than the value of the second sensitivity.
[0047] Roaming threshold and sensitivity are configuration parameters related to the roaming switching function of the network card. In some embodiments, the roaming threshold is measured by signal strength. When the roaming threshold is lower, roaming is less likely to occur when using the corresponding network card. In some embodiments, sensitivity is measured by the adjustment rate of the network connection speed. When the sensitivity value is higher, roaming is less likely to occur when using the corresponding network card.
[0048] For example, the first roaming trigger condition is: the roaming threshold is -80dbm, and the sensitivity value is "high"; the second roaming trigger condition is: the roaming threshold is -60dbm, and the sensitivity value is "low". In this way, the first roaming parameter of the first link is adjusted based on the first roaming trigger condition, with the purpose of making the first link less likely to roam, or even not roaming, and the second roaming parameter of the second link is adjusted based on the second roaming trigger condition, with the purpose of making the second link more likely to roam.
[0049] S203: Use the first link as a main link, use the second link as a backup link, and use the main link to transmit application data.
[0050] S204: In response to the link quality of the primary link satisfying the first switching condition and the link quality of the backup link satisfying the second switching condition, the first link is used as the backup link and the second link is used as the primary link.
[0051] In some embodiments, the first switching condition includes: the main link is disconnected; and / or the link quality of the main link is not higher than a preset first link switching threshold.
[0052] Exemplarily, the first link is used as the main link to transmit application data. When the first link is disconnected and / or the link quality of the first link is not higher than the preset first link switching threshold, the first link can be used as a backup link and the second link can be used as the main link. In some embodiments, the link quality can be calculated by combining the RSSI (received signal strength indication) of the local area network, estimated bandwidth, estimated channel occupancy, delay, jitter time, etc. for comprehensive evaluation, which is not limited. The first link switching threshold is used to evaluate the link quality of the main link.
[0053] In some embodiments, the second switching condition includes: the backup link is communicating normally; and the link quality of the backup link is higher than the link quality of the primary link.
[0054] It is worth noting that in some embodiments, when the main link is disconnected, the first link can be immediately used as the backup link and the second link can be used as the main link without determining whether the second switching condition is met. In other words, when both the main link and the backup link are communicating normally, it can be determined whether the main link and the backup link need to be switched by comparing the link quality of the backup link with the link quality of the main link.
[0055] As an example and not a limitation, assume that the first link (corresponding to the 5G 20MHz bandwidth network card) is used as the main link, the second link (corresponding to the Sub1G 2MHz bandwidth network card) is used as the backup link, and both the first link and the second link are communicating normally. When the RSSI of the first link is less than -71 and the RSSI of the second link is greater than -63, it means that the link quality of the backup link is higher than the link quality of the main link, then the terminal can use the second link as the main link and the first link as the backup link.
[0056] For another example, assume that the second link (corresponding to the Sub1G 2MHz network card) is the main link, the first link (corresponding to the 5G 20MHz bandwidth network card) is the backup link, and both the first link and the second link are communicating normally. When the RSSI of the first link is less than -63, and the RSSI of the second link is greater than -71, the link quality of the backup link is higher than the link quality of the main link, then the terminal can use the first link as the main link and the second link as the backup link.
[0057] In other words, when both the main link and the backup link are communicating normally, the terminal can select a link with better link quality as the main link by comparing the link quality of the backup link and the link quality of the main link. In this way, the terminal can maintain the transmission of application data on the main link through link management. For example, when the first link is the main link, if the link quality of the first link does not support the transmission of application data, the terminal can automatically switch the main link to the second link, and the same is true when the second link is the main link. In this way, the terminal can achieve seamless roaming based on the above solution, and solve the problems of disconnection and packet loss during roaming, which can provide better network services for the terminal's wireless roaming and help improve user experience.
[0058] It will be understood that the "better link quality" mentioned above may mean that a factor for evaluating the link quality of the main link is better than that of the alternative link, for example, the sensitivity of the main link is higher than that of the standby link, or it may mean that all factors of the link quality are comprehensively considered and evaluated, and then the link quality of the main link and the standby link are compared based on the comprehensive scores of the two. Specifically, the factors comprehensively considered may include signal strength, interference, bandwidth and rate, security and load balancing, and may also include estimated bandwidth, estimated channel occupancy, etc., which are not limited in this application.
[0059] As an example rather than a limitation, assuming that the factors to be comprehensively considered include: signal strength, estimated bandwidth, and estimated channel occupancy, then in the process of comparing the link quality of the main link and the backup link, different weights can be assigned to the signal strength indication, estimated bandwidth, and estimated channel occupancy, and a comprehensive score of the signal strength indication, estimated bandwidth, and estimated channel occupancy is calculated, and then the main link is selected as the link with a larger comprehensive score, thereby ensuring that the terminal can obtain a stable, fast, and secure network connection.
[0060] S205, continue to transmit application data using the primary link, adjust the second roaming parameter so that the second roaming parameter meets the first roaming trigger condition, and adjust the first roaming parameter so that the first roaming parameter meets the second roaming trigger condition.
[0061] In the embodiment of the present application, steps S204-S205 are executed in a loop.
[0062] Exemplarily, after using the second link to transmit application data, the second roaming parameter can be adjusted by the first roaming trigger condition mentioned in the above step S202, and the first roaming parameter can be adjusted by the second roaming trigger condition mentioned in the above step S202. Specifically, the first roaming threshold of the first link is adjusted to -80dbm, and the value of the first sensitivity is adjusted to "high", the purpose of which is to make the first link easier to roam at this time. Similarly, the second roaming threshold of the second link is adjusted to -60dbm, and the value of the second sensitivity adjustment is adjusted to "low", the purpose of which is to make the second link less likely to roam at this time.
[0063] In some embodiments, after using the main link to transmit application data, the method further includes: when the main link is disconnected, switching the main link to a backup link, and switching the backup link to the main link.
[0064] Exemplarily, when the first link is the main link, if the first link is accidentally disconnected, the first link is immediately switched to the backup link, and the second link is switched to the main link, so that the terminal can continue to transmit application data using the main link.
[0065] In some embodiments, after the primary link is used to continue transmitting the application data, the method further includes: when the backup link is disconnected, automatically reconnecting the backup link.
[0066] For example, when the second link is a standby link, if the second link is accidentally disconnected, the second network card corresponding to the second link is automatically reconnected. In addition, the second network card can also maintain other parameters of the second link, such as physical ports, etc., without limitation.
[0067] In some embodiments, after the first link is used as a backup link and the second link is used as a main link, the method further includes:
[0068] In response to the main link not being disconnected and the link quality of the main link being not higher than a preset third link switching threshold, the link quality of the standby link and the communication status thereof are determined.
[0069] When the link quality of the standby link is higher than the link quality of the main link and the standby link is communicating normally, the standby link is switched to the main link, and the main link is switched to the standby link.
[0070] The third link switching threshold can be used to determine whether the link quality of the main link decreases when transmitting application data. In some embodiments, the third link switching threshold can be consistent with the first link switching threshold mentioned above, or can be flexibly adjusted by technicians, without limitation.
[0071] For example, assume that the first link (corresponding to the 5G 20MHz bandwidth network card) is the main link, the second link (corresponding to the Sub1G 2MHz bandwidth network card) is the backup link, the first link communicates normally, and the third link switching threshold is RSSI equal to -71. When the RSSI of the first link is less than -71, it means that the link quality of the main link is poor, then the terminal can trigger a link quality scan for the second link. If the scan result indicates that the link quality of the second link is higher than the link quality of the first link, and the second link communicates normally, the terminal switches the backup link to the main link and the main link to the backup link, thereby ensuring that the terminal can use a more reasonable link to transmit application data in a timely manner.
[0072] Figure 3 FIG. 1 is a logical diagram of a roaming communication method provided by an exemplary embodiment of the present application. Figure 3 According to the description in the above embodiment, an exemplary roaming communication process that can be implemented by the terminal includes:
[0073] S301, using the first link as a main link and the second link as a backup link;
[0074] S302, adjusting the roaming parameters of the primary link based on the first roaming trigger condition, and adjusting the roaming parameters of the backup link based on the second roaming trigger condition;
[0075] S303, determining whether the link quality of the primary link meets the first switching condition, if so, executing step S304, otherwise executing step S307;
[0076] S304, determining whether the link quality of the standby link meets the second switching condition; if so, executing step S305, otherwise, executing step S307;
[0077] S305, using the second link as a main link and the first link as a backup link;
[0078] S306, self-maintaining the link, and then looping steps S302-S306;
[0079] S307, continue to detect the link quality of the primary link and the backup link, and then return to step S303.
[0080] Among them, the first switching condition may mean first determining whether the main link is disconnected, if not disconnected, then continuing to determine whether the link quality of the main link is not higher than the first link switching threshold, if not higher than the first link switching threshold, executing step S304.
[0081] The second switching condition may mean that it is determined whether the backup link is communicating normally and whether the link quality of the backup link is higher than the link quality of the main link. If it is higher than the link quality of the main link, step S305 is executed.
[0082] Based on the above method, the terminal can automatically switch to another link when the link quality of one link does not support the transmission of application data, thereby realizing seamless roaming of the terminal, and the main link is not roamed as much as possible, while the backup link is easy to roam, which can further solve the problems of disconnection and packet loss in the roaming process, achieve seamless processing, provide better network services for the terminal's wireless roaming, and help improve user experience.
[0083] Figure 4 Schematic diagram of a roaming communication device provided by an exemplary embodiment of the present application. Figure 4 The roaming communication device 40 includes a virtual network card binding module 401 and a link management module 402. The roaming communication device 40 can be applied to a terminal equipped with a first network card and a second network card, for example Figure 1 The terminal shown, where:
[0084] The virtual network card binding module 401 is used to bind the first network card and the second network card to the virtual network card, and the virtual network card is used to enable the terminal to transmit application data to the target server.
[0085] The link management module 402 is used to determine a first link established between a first network card and a first AP, and to determine a second link established between a second network card and a second AP; and,
[0086] The link management module 402 is further configured to use the first link as a main link and the second link as a backup link, and use the main link to transmit application data.
[0087] The link management module 402 is also used to cyclically execute the following steps: in response to the link quality of the main link satisfying the first switching condition and the link quality of the backup link satisfying the second switching condition, use the first link as the backup link and the second link as the main link; then, use the main link to continue transmitting application data, adjust the second roaming parameters so that the second roaming parameters satisfy the first roaming trigger condition, and adjust the first roaming parameters so that the first roaming parameters satisfy the second roaming trigger condition.
[0088] The roaming communication device 40 provided in the embodiment of the present application can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0089] It should be noted that the roaming communication device 40 is implemented in the form of a functional module. The term "module" here can be implemented in the form of software and / or hardware, and is not specifically limited to this.
[0090] For example, a "module" may be a software program, a hardware circuit, or a combination of the two that implements the above functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a combined logic circuit, and / or other suitable components that support the described functions.
[0091] Therefore, the modules of each example described in the embodiments of the present application can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0092] further, Figure 5 Schematic diagram of a terminal provided by an exemplary embodiment of the present application. The terminal 50 includes a processor 501 and a memory 502, wherein a computer program is stored in the memory, and when the computer program is called by the processor 501, the processor 501 executes the steps described in the above method embodiment.
[0093] It should be understood that the processor mentioned in the embodiments of the present application may be a CPU, or other general-purpose processors, DSPs, ASICs, FPGAs or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0094] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory, dynamic random access memory, synchronous dynamic random access memory, double data rate synchronous dynamic random access memory, enhanced synchronous dynamic random access memory, synchronously connected dynamic random access memory, and direct memory bus random access memory.
[0095] The present application also provides a storage medium storing computer program instructions. When the computer program instructions are executed by a processor of a computer, the computer executes the steps of the above method embodiment.
[0096] The storage medium may include a propagated data signal containing computer program code, such as in baseband or as part of a carrier wave. The propagated signal may be in a variety of forms, including electromagnetic, optical, etc., or a suitable combination. The storage medium may be any computer-readable medium other than a computer-readable storage medium, which can be connected to an instruction execution system, device or equipment to communicate, propagate or transmit the program for use. The program code located on the computer-readable medium can be transmitted via any suitable medium, including radio, cable, fiber optic cable, radio frequency signal, or similar medium, or any combination of the above mediums.
[0097] The basic concepts have been described above. Obviously, for those skilled in the art, the above invention disclosure is only used as an example and does not constitute a limitation of the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present application. Such modifications, improvements and amendments are suggested in the present application, so such modifications, improvements and amendments still belong to the spirit and scope of the exemplary embodiments of the present application.
[0098] At the same time, the present application uses specific words to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in one or more embodiments of the present application can be appropriately combined.
[0099] Some aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". The processor may be one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DAPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, or combinations thereof. In addition, various aspects of the present application may be expressed as computer products located in one or more computer-readable media, which include computer-readable program codes. For example, computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disks, floppy disks, tapes ...), optical disks (e.g., compact disks CDs, digital versatile disks DVDs ...), smart cards, and flash memory devices (e.g., cards, sticks, key drives ...).
[0100] A computer-readable medium may include a propagated data signal containing computer program code, such as in baseband or as part of a carrier wave. The propagated signal may have a variety of manifestations, including electromagnetic, optical, etc., or a suitable combination. A computer-readable medium may be any computer-readable medium other than a computer-readable storage medium, which may be connected to an instruction execution system, device or apparatus to communicate, propagate or transmit a program for use. The program code on the computer-readable medium may be propagated via any suitable medium, including radio, cable, fiber optic cable, radio frequency signal, or similar medium, or any combination of the above mediums.
[0101] Similarly, it should be noted that in order to simplify the description of the disclosure of this application and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this application, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the object of this application are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.
[0102] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of the present application are approximate values, in specific embodiments, the setting of such numerical values is as accurate as possible within the feasible range.
[0103] Although the present application has been described with reference to the current specific embodiments, ordinary technicians in this technical field should recognize that the above embodiments are only used to illustrate the present application, and various equivalent changes or substitutions may be made without departing from the spirit of the present application. Therefore, as long as the changes and modifications to the above embodiments are within the essential spirit of the present application, they will fall within the scope of the claims of the present application.
Claims
1. A roaming communication method, applied to a terminal, wherein the terminal is equipped with a first network card and a second network card, characterized in that: The method comprises: Binding the first network card and the second network card to a virtual network card, wherein the virtual network card is used to enable the terminal to transmit application data to a target server, wherein the first network card establishes a first link with the target server through a first AP, and the second network card establishes a second link with the target server through a second AP; adjusting a first roaming parameter of the first link based on a preset first roaming trigger condition, and adjusting a second roaming parameter of the second link based on a preset second roaming trigger condition; Using the first link as a main link and the second link as a backup link, using the main link to transmit the application data; and cyclically performing the following steps: In response to the link quality of the main link satisfying the first switching condition and the link quality of the backup link satisfying the second switching condition, the first link is used as the backup link and the second link is used as the main link; then, the main link is used to continue transmitting the application data, the second roaming parameter is adjusted so that the second roaming parameter satisfies the first roaming trigger condition, and the first roaming parameter is adjusted so that the first roaming parameter satisfies the second roaming trigger condition.
2. The method according to claim 1, characterized in that The adjusting the first roaming parameter of the first link based on the preset first roaming trigger condition, and adjusting the second roaming parameter of the second link based on the preset second roaming trigger condition, includes: adjusting a first roaming threshold of the first link so that the first roaming threshold satisfies the first roaming trigger condition; and adjusting a second roaming threshold of the second link so that the second roaming threshold satisfies the second roaming trigger condition, wherein the first roaming threshold is lower than the second roaming threshold; and / or, Adjust the first sensitivity of the first link so that the first sensitivity meets the first roaming trigger condition; and adjust the second sensitivity of the second link so that the second sensitivity meets the second roaming trigger condition, wherein the value of the first sensitivity is higher than the value of the second sensitivity.
3. The method according to claim 1, characterized in that The first switching condition includes: The primary link is disconnected; and / or, The link quality of the primary link is not higher than a preset first link switching threshold.
4. The method according to claim 3, characterized in that The second switching condition includes: The standby link communicates normally; and The link quality of the backup link is higher than the link quality of the primary link.
5. The method according to any one of claims 1 to 4, characterized in that: After continuing to transmit the application data using the main link, the method further includes: When the main link is disconnected, the main link is switched to the backup link, and the backup link is switched to the main link.
6. The method according to any one of claims 1 to 4, characterized in that: After continuing to transmit the application data using the main link, the method further includes: When the backup link is disconnected, the backup link is automatically reconnected.
7. The method according to any one of claims 1 to 4, characterized in that: After the first link is used as the standby link and the second link is used as the main link, the method further includes: In response to the main link not being disconnected and the link quality of the main link being not higher than a preset third link switching threshold, determining the link quality of the backup link and its communication status; When the link quality of the backup link is higher than the link quality of the main link and the backup link communicates normally, the backup link is switched to the main link, and the main link is switched to the backup link.
8. A roaming communication device, applied to a terminal equipped with a first network card and a second network card, characterized in that: The roaming communication device includes a virtual network card binding module and a link management module, wherein: The virtual network card binding module is used to bind the first network card and the second network card to a virtual network card, the virtual network card is used to enable the terminal to transmit application data to a target server, the first network card establishes a first link with the target server through a first AP, and the second network card establishes a second link with the target server through a second AP; The link management module is used to adjust the first roaming parameter of the first link based on a preset first roaming trigger condition, and adjust the second roaming parameter of the second link based on a preset second roaming trigger condition; and The link management module is further configured to use the first link as a main link, use the second link as a backup link, and use the main link to transmit the application data; and The link management module is also used to cyclically execute the following steps: in response to the link quality of the main link satisfying the first switching condition and the link quality of the backup link satisfying the second switching condition, using the first link as the backup link and the second link as the main link; then, using the main link to continue transmitting the application data, adjusting the second roaming parameter so that the second roaming parameter satisfies the first roaming trigger condition, and adjusting the first roaming parameter so that the first roaming parameter satisfies the second roaming trigger condition.
9. A terminal, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is called by the processor, the processor executes the method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores computer program instructions, and when the computer program instructions are called by a computer, the computer executes the method according to any one of claims 1 to 7.