WiFi network processing method, terminal device, storage medium and program product

By turning off a WiFi network on the terminal device according to specific conditions and selecting a WiFi network with better signal strength for data transmission, the problem of dual WiFi increasing power consumption is solved and the device's battery life is improved.

CN119521360AActive Publication Date: 2025-02-25HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510090374.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-21
Publication Date
2025-02-25
Estimated Expiration
2045-01-21

AI Technical Summary

Technical Problem

When terminal devices use dual WiFi for redundant packet transmission, their power consumption is high, which affects battery life.

Method used

When specific conditions are met, turn off a WiFi network and select a WiFi network with better signal strength for data transmission to reduce power consumption.

Benefits of technology

Without affecting the reliability of data transmission, the power consumption of terminal equipment is reduced and the battery life time is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119521360A_ABST
    Figure CN119521360A_ABST
Patent Text Reader

Abstract

The invention provides a WiFi network processing method, a terminal device, a storage medium and a program product, which are beneficial to prolonging the endurance time of the terminal device. The method is applied to the terminal equipment, the terminal equipment comprises a first WiFi network and a second WiFi network, the frequency bands where the first WiFi network and the second WiFi network are located are different, and the method comprises the steps that under the condition that a first condition is met, a target WiFi network is closed, and the target WiFi network is one of the first WiFi network and the second WiFi network; wherein the first condition is related to one or more of the following information: a default data transmission network of the terminal equipment; the duration of activating the cellular network by the terminal equipment; the terminal device transmits the first transmission delay of the first data packet by using the first WiFi network; and the terminal equipment transmits the second transmission delay of the first data packet by using the second WiFi network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the WiFi field, and in particular to a WiFi network processing method, terminal equipment, storage medium and program product. Background Art

[0002] With the development of technology, more and more terminal devices can support dual-path wireless fidelity (WiFi). Terminal devices can perform redundant transmission of data packets through dual-path WiFi to improve the reliability of data transmission. For example, the terminal device can use the first WiFi network to send data packet 1, copy data packet 1, and use the second WiFi network to send the copied data packet 1.

[0003] Although dual-channel WiFi can improve the reliability of data transmission, the power consumption of the terminal device will also be relatively large, which will affect the battery life of the terminal device. Summary of the invention

[0004] The present application provides a WiFi network processing method, terminal device, storage medium and program product, which are beneficial to improving the battery life of the terminal device.

[0005] In a first aspect, a method for processing a WiFi network is provided, the method being applied to a terminal device, the terminal device comprising a first WiFi network and a second WiFi network, the first WiFi network and the second WiFi network being located in different frequency bands, the method comprising: shutting down a target WiFi network when a first condition is met, the target WiFi network being one of the first WiFi network and the second WiFi network; wherein the first condition is related to one or more of the following information: a default data transmission network of the terminal device; a duration for the terminal device to activate a cellular network; a first transmission delay for the terminal device to transmit a first data packet using the first WiFi network; and a second transmission delay for the terminal device to transmit a first data packet using the second WiFi network.

[0006] The terminal device can turn off one WiFi network when the first condition is met. Since the information related to the first condition is related to the transmission reliability of the data packet, meeting the first condition also means that the reliability of data transmission can be met. Therefore, when the first condition is met, turning off one WiFi network can ensure that the battery life of the terminal device is improved without affecting the reliability of data transmission.

[0007] In some implementations, the first condition includes one or more of the following conditions: the second condition: the default data transmission network of the terminal device is a cellular network; the third condition: the time length for which the terminal device activates the cellular network is greater than or equal to a first threshold; the fourth condition: the difference between the first transmission delay and the second transmission delay is less than or equal to the second threshold, and the first data packet is one data packet; the fifth condition: the average value of the difference between multiple first transmission delays and the multiple second transmission delays is less than or equal to the third threshold, and the first data packet includes multiple data packets.

[0008] The default data transmission network can be understood as the transmission network that is used first. If the terminal device switches the default data transmission network to the cellular network, it means that the terminal device will use the cellular network first when transmitting data. In this case, the cellular network and one WiFi network are sufficient to ensure the reliability of data transmission. Therefore, the power consumption of the terminal device can be reduced by turning off one WiFi network, thereby increasing the battery life of the terminal device.

[0009] Usually, when the WiFi network signal is poor, the terminal device will activate the cellular network and use the cellular network as a backup network to transmit data through the cellular network when necessary to ensure the reliability of data transmission. Since the terminal device has activated the cellular network, it means that the terminal device will use the cellular network to transmit data. In this case, the power consumption of the terminal device can be reduced by shutting down one WiFi network, while the remaining WiFi network and cellular network can ensure the reliability of data packet transmission.

[0010] The transmission delay of data packets can reflect the performance of the WiFi network. The transmission delay difference between two WiFi networks can reflect which WiFi network has good transmission performance and which WiFi network has poor transmission performance. When the performance of a WiFi network is poor, the terminal device can shut down one WiFi network to reduce the power consumption of the terminal device. The remaining WiFi network has good transmission performance and is sufficient to ensure the reliability of data packet transmission.

[0011] In some implementations, the difference between the first transmission delay and the second transmission delay includes a first difference and / or a second difference, the first difference being a delay difference for the terminal device to receive the first data packet respectively through the first WiFi network and the second WiFi network, and the second difference being a delay difference for the opposite device to receive the first data packet sent by the terminal device respectively through the first WiFi network and the second WiFi network.

[0012] The embodiment of the present application can determine whether the first condition is met based on the uplink transmission delay difference and / or the downlink transmission delay difference, thereby ensuring the reliability of the uplink transmission and the reliability of the downlink transmission.

[0013] In some implementations, the method further includes: receiving the first data packet using the first WiFi network to obtain a first reception time of the first data packet; receiving the first data packet using the second WiFi network to obtain a second reception time of the first data packet; and subtracting the first reception time from the second reception time to obtain the first difference.

[0014] In some implementations, the method further includes: using the first WiFi network to send the first data packet to the peer device, and the time when the peer device receives the first data packet using the first WiFi network is a third receiving time; using the second WiFi network to send the first data packet to the peer device, and the time when the peer device receives the first data packet using the first WiFi network is a fourth receiving time; wherein the difference between the third receiving time and the fourth receiving time is the second difference.

[0015] In some implementations, the method further includes: receiving first indication information sent by the opposite device, the first indication information being used to indicate whether the second difference satisfies the third condition and / or the fourth condition; shutting down the target WiFi network when the first condition is met, including: shutting down the target WiFi network when the first difference satisfies the third condition and / or the fourth condition, and when the second difference satisfies the third condition and / or the fourth condition.

[0016] When both the peer device and the terminal device determine that the target WiFi network needs to be turned off, the terminal device turns off the target WiFi network to avoid affecting the reliability of data transmission after the target WiFi network is turned off. Therefore, the embodiment of the present application can ensure the reliability of uplink transmission and the reliability of downlink transmission under the premise of reducing the power consumption of the terminal device.

[0017] In some implementations, the first WiFi network is a primary WiFi network, the second WiFi network is a secondary WiFi network, and the target WiFi network is the secondary WiFi network.

[0018] The embodiment of the present application can close the secondary WiFi network only when the transmission delay of the secondary WiFi network is large, so as to avoid affecting the reliability of data transmission after closing the primary WiFi network. Since the primary WiFi network is the WiFi network mainly used by the terminal device, the embodiment of the present application can not close the primary WiFi network regardless of whether the transmission delay of the primary WiFi network is large.

[0019] In some implementations, if the first condition includes the second condition and / or the third condition, the target WiFi network is a secondary WiFi network between the first WiFi network and the second WiFi network.

[0020] The terminal device can directly turn off the secondary WiFi network when the default data transmission network is the cellular network. This method is relatively simple to implement and can reduce the processing complexity of the terminal device.

[0021] The terminal device can directly shut down the secondary WiFi network when the duration of activating the cellular network is greater than or equal to the first threshold. This approach is relatively simple to implement and can reduce the processing complexity of the terminal device.

[0022] In some implementations, if the first condition includes the second condition and / or the third condition, the method further includes: determining a first signal strength of the first WiFi network; determining a second signal strength of the second WiFi network; and determining the target WiFi network based on the first signal strength and the second signal strength.

[0023] The terminal device can determine the WiFi network that needs to be shut down based on the signal strength of the two WiFi networks. For example, the terminal device can choose to shut down the WiFi network with poor signal strength and use the WiFi network with better signal strength for data transmission to ensure the reliability of data transmission.

[0024] In some implementations, determining the target WiFi network based on the first signal strength and the second signal strength includes: determining a third difference between the first signal strength and a fourth threshold, the fourth threshold being a signal strength threshold for the first WiFi network; determining a fourth difference between the second signal strength and a fifth threshold, the fifth threshold being a signal strength threshold for the second WiFi network; and determining the target WiFi network based on the third difference and the fourth difference.

[0025] When determining the target WiFi network based on signal strength, the signal strength thresholds (ie, reference signal strengths) of different WiFi networks may be considered, rather than simply using the signal strength of the WiFi network to determine the target WiFi network, so that the determined target WiFi is more reasonable.

[0026] In some implementations, determining the target WiFi network based on the third difference and the fourth difference includes: if the difference between the third difference and the fourth difference is greater than a sixth threshold, determining that the target WiFi network is the first WiFi network; if the difference between the fourth difference and the third difference is greater than a sixth threshold, determining that the target WiFi network is the second WiFi network.

[0027] If the difference between the third difference and the fourth difference is greater than the sixth threshold, it indicates that the signal strength of the first WiFi network is poor. Therefore, the power consumption of the terminal device can be reduced by shutting down the first WiFi network. If the difference between the fourth difference and the third difference is greater than the sixth threshold, it indicates that the signal strength of the second WiFi network is poor. Therefore, the power consumption of the terminal device can be reduced by shutting down the second WiFi network.

[0028] In a second aspect, a terminal device is provided, comprising a unit composed of software and / or hardware, wherein the unit is used to execute any one of the methods in the technical solution of the first aspect.

[0029] In a third aspect, a chip is provided, comprising a processor; the processor is used to read and execute a computer program stored in a memory to execute any one of the methods in the technical solution described in the first aspect.

[0030] Optionally, the chip also includes a memory, and the memory is connected to the processor via a circuit or wire.

[0031] Optionally, the chip also includes a communication interface.

[0032] In a fourth aspect, a terminal device is provided, comprising: a processor, a memory and an interface; the processor, the memory and the interface cooperate with each other so that the terminal device executes any one of the methods in the technical solution described in the first aspect; or comprises any one of the chips described in the third aspect.

[0033] In a fifth aspect, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the processor executes any one of the methods in the technical solution described in the first aspect.

[0034] In a sixth aspect, a computer program product is provided, the computer program product comprising: a computer program code, when the computer program code is executed on a terminal device, the terminal device executes any one of the methods in the technical solution described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 1 is a schematic diagram of the hardware structure of a terminal device 100 provided in an embodiment of the present application; Figure 2 is a software system architecture diagram of a terminal device provided in an embodiment of the present application; Figure 3 It is a schematic diagram of dual WiFi data redundant transmission; Figure 4 is a schematic flow chart of a method for processing a WiFi network provided in an embodiment of the present application; Figure 5 This is a data transmission solution after shutting down the secondary WiFi network provided by an embodiment of the present application; Figure 6 It is a schematic diagram of determining a data packet transmission delay difference provided by an embodiment of the present application; Figure 7 is a schematic block diagram of a terminal device provided in an embodiment of the present application; Figure 8 It is a structural diagram of a processing device for a WiFi network provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] The solution of the embodiment of the present application involves a scenario in which a terminal device processes a WiFi network. The terminal device is first introduced below.

[0037] The terminal device in the embodiment of the present application may be a terminal device capable of interacting with a user, for example, the terminal device may be a mobile phone, a tablet computer, a computer or the like.

[0038] For example, Figure 11 is a schematic diagram of the structure of a terminal device 100 provided in an embodiment of the present application. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and the like.

[0039] The mobile communication module 150 may include one or more of the second generation (2G), 3G, 4G, and 5G communication modules. The mobile communication module 150 may include one or more of a filter, a switch, a power amplifier, and a low noise amplifier (LNA).

[0040] The wireless communication module 160 may include one or more of a Bluetooth (BT) module, a wireless local area network (WLAN) module, a global navigation satellite system (GNSS) module, a near field communication (NFC) module, an infrared (IR) module, and a frequency modulation (FM) module. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation and amplification on the signal, and convert it into electromagnetic waves for radiation via the antenna 2.

[0041] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0042] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0043] Combine the following Figure 2 , the software system architecture of the terminal device in the embodiment of the present application is introduced. The software system of the terminal device in the embodiment of the present application can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the device.

[0044] Figure 2 It is a software structure diagram of the terminal device provided in the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided into four layers, from top to bottom, namely, the application (APP) layer, the application framework (framework) layer, the system layer, and the driver (driver) layer.

[0045] like Figure 2 As shown, the application layer may include a series of application packages, which may include short messaging, calendar, navigation, gallery, call, WLAN, screen projection, file sharing and other applications.

[0046] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0047] like Figure 2 As shown, the application framework layer may include a window manager, a resource manager, a view system, a phone manager, and the like.

[0048] The window manager is used to manage window programs, including managing the hierarchy and display order of windows. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0049] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, etc.

[0050] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, the display interface can include a display interface for a text message notification icon, and the view can include a view for displaying text and a view for displaying pictures.

[0051] The phone manager is used to provide communication functions for the terminal device. For example, the phone manager can be used to provide call status management (including answering the call, hanging up the call, etc.).

[0052] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0053] The system layer can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0054] The surface manager is used to manage the display subsystem and provide the fusion of two-dimensional and three-dimensional layers for multiple applications.

[0055] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.164, MP3, AAC, AMR, JPG, PNG, etc.

[0056] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing.

[0057] A 2D graphics engine is a drawing engine for 2D drawings.

[0058] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, sensor driver, WiFi driver, etc. Among them, the display driver is used to drive the display screen; the sensor driver is used to drive the sensor; the WiFi driver is used to drive the WiFi module to establish a WiFi connection.

[0059] The hardware layer includes at least physical devices such as display screens, sensors, WiFi modules, etc. Among them, the sensors may include: pressure sensors, gyroscope sensors, acceleration sensors, distance sensors, proximity light sensors, fingerprint sensors, etc. The functions of each sensor are not described in detail in the embodiments of this application.

[0060] With the continuous development of Internet technology, the use of wireless networks, especially WiFi networks, is becoming more and more common. WiFi hotspots are favored by more and more users due to their portability.

[0061] In today's digital age, WiFi hotspots have become an indispensable part of people's lives. Whether at home, in the office, in public places or on the go, we can easily connect to WiFi hotspots and enjoy high-speed wireless network connections.

[0062] A WiFi hotspot, also known as an access point (AP), is a device that can provide wireless network connections. It shares Internet connections with surrounding devices such as smartphones, tablets, and laptops through wireless signals. A WiFi hotspot can be a standalone device or a function integrated into other devices, such as a wireless router or a mobile hotspot. In addition, more and more terminal devices can also support the hotspot function to provide WiFi signals to surrounding devices. The terminal devices can be, for example, mobile phones, laptops, and tablets.

[0063] The AP device transmits wireless signals through the antenna, and these signals propagate within a certain range. The surrounding devices can receive these signals and establish a connection with the AP through the wireless network card.

[0064] AP devices are usually connected to wired networks or mobile networks, such as broadband Internet, 4G networks, 5G networks, etc. APs can share the received network connection with devices connected to the AP through wireless signals, allowing these devices to access the Internet.

[0065] At present, some wireless router products can support 2.4GHz and 5GHz dual-band wireless signals, which can meet the needs of use in different scenarios. With the continuous development of technology, more and more devices begin to support dual-band WiFi, bringing users a more convenient and efficient network experience.

[0066] The terminal device can connect to two WiFi hotspots for work, one WiFi band is 2.4GHz, and the other WiFi band is 5GHz. After the terminal device uses dual-band WiFi, it is equivalent to increasing the communication bandwidth, and the network transmission rate will also increase accordingly.

[0067] The WiFi circuit system of the terminal device radio frequency can include a baseband processing module and a radio frequency (RF) front-end circuit. The baseband processing module can include the processing part of the physical layer and the medium access control (MAC) layer, and the RF front-end circuit includes an antenna, a power amplifier (PA) and a low noise amplifier (LNA). The WiFi circuit system determines the support capabilities of WiFi.

[0068] Since WiFi devices can operate in both 2.4GHz and 5GHz frequency bands, according to the concurrent working modes of WiFi for the two frequency bands, WiFi devices can be divided into single band single concurrent (SBSC) devices, dual band single concurrent (DBSC) devices and dual band dual concurrent (DBDC) devices.

[0069] SBSC equipment includes a complete set of channels, including a complete baseband processing and a complete RF front end. SBSC equipment can operate on a single frequency band (such as the 2.4GHz band).

[0070] DBSC equipment can also be called VSDB equipment. DBSC equipment includes 2 complete baseband processing modules and an RF front end. The RF front end can choose to work in the 2.4GHz band or the 5GHz band. Although the DBSC baseband can support the 2.4GHz and 5GHz bands, since the RF front end can only stably select one band to work, the DBSC device can only do single-shot. DBSC can work in the 2.4G band and the 5G band through time division multiplexing.

[0071] The DBDC device integrates two complete pathways, including two complete baseband processing and two RF front ends. Since it has two independent pathways, the DBDC device can support both 2.4GHz and 5GHz frequency bands.

[0072] The dual-band concurrent function of the terminal device can be implemented by one WiFi module or two WiFi modules. If the terminal device includes one WiFi module, the one WiFi module can work in the 2.4G frequency band and the 5G frequency band at the same time. If the terminal device includes two WiFi modules, denoted as the first WiFi module and the second WiFi module, the first WiFi module works in the 2.4G frequency band and the second WiFi module works in the 5G frequency band, or the first WiFi module works in the 5G frequency band and the second WiFi module works in the 2.4G frequency band.

[0073] The WiFi module in the terminal device is in station (STA) mode. The WiFi module accesses the WiFi network by accessing a WiFi hotspot. A WiFi hotspot is a type of access point (AP). A WiFi hotspot can be a router or other device that provides a WiFi network for the terminal device.

[0074] For example, mobile phone A provides a network for mobile phone B by opening a hotspot, and mobile phone B connects to the WiFi network provided by mobile phone A to achieve Internet access. In the above example, mobile phone A is a WiFi hotspot, and mobile phone B corresponds to the terminal device in the embodiment of the present application.

[0075] As can be seen from the above, the terminal device can support two frequency bands of WiFi networks, which are respectively recorded as the first WiFi network and the second WiFi network. The dual WiFi mode means that the first WiFi network and the second WiFi network can work at the same time without interfering with each other. The dual WiFi module in the embodiment of the present application has a DBDC function, supports 2*2 antennas, and both sets of antennas are equipped with amplification circuits and power amplifier chips, which can support the antenna to transmit and receive signals at the same time.

[0076] One of the first WiFi network and the second WiFi network is a primary WiFi network, and the other is a secondary WiFi network. The primary WiFi network may be a WiFi network that the terminal device first connects to, and the secondary WiFi network may be a WiFi network that the terminal device connects to later.

[0077] The terminal device can copy and redundantly transmit the same data packet through the dual WiFi network. Figure 3 , the scheme of data redundant transmission is introduced.

[0078] See also Figure 3 For uplink transmission, the terminal device transmits data packet 1 through the first WiFi network, copies data packet 1, and transmits the copied data packet 1 through the second WiFi network. After receiving data packet 1, the router can send data packet 1 to the Internet.

[0079] For another example, for downlink transmission, the Internet can send a data packet 1 for the terminal device to the router. After receiving the data packet 1, the router can send the data packet 1 to the terminal device through the first WiFi network, copy the data packet 1, and send the copied data packet 1 to the terminal device through the second WiFi network.

[0080] The advantage of dual-channel WiFi is that it improves the reliability of data packet transmission. However, the disadvantage is that for terminal devices, the power consumption of dual WiFi connection data transmission is high, which affects the battery life of the terminal devices.

[0081] Based on this, an embodiment of the present application provides a method for processing a WiFi network, by shutting down a WiFi network under certain conditions to ensure that the battery life of a terminal device is improved without affecting the reliability of data transmission.

[0082] Combine the following Figure 4 , the processing method of the WiFi network provided in the embodiment of the present application is introduced.

[0083] The processing method of the WiFi network of the embodiment of the present application can be applied to a terminal device. The terminal device may include multiple WiFi networks. The number of the multiple WiFi networks may be 2, 3, or more.

[0084] The multiple WiFi networks may include a first WiFi network and a second WiFi network. The first WiFi network and the second WiFi network may be any two WiFi networks among the multiple WiFi networks.

[0085] The first WiFi network and the second WiFi network are located in different frequency bands. For example, the first WiFi network is located in the 5G frequency band, and the second WiFi network is located in the 2.4G frequency band, or the first WiFi network is located in the 2.4G frequency band, and the second WiFi network is located in the 5G frequency band.

[0086] One of the first WiFi network and the second WiFi network is a primary WiFi network, and the other is a secondary WiFi network.

[0087] The first WiFi network and the second WiFi network may correspond to one WiFi module or may correspond to two WiFi modules respectively.

[0088] The terminal device in the embodiment of the present application enables dual WiFi data redundant transmission, and uses the first WiFi network and the second WiFi network for data transmission.

[0089] It should be understood that the terminal device in the embodiment of the present application can be the terminal device itself, or a chip, a chip system or a processor that supports the terminal device to implement the communication method, or a logic module or software that can implement all or part of the terminal device. The network device in the embodiment of the present application can be the network device itself, or a chip, a chip system or a processor that supports the network device to implement the communication method, or a logic module or software that can implement all or part of the network device.

[0090] See also Figure 4 In step S410, when the first condition is met, the terminal device closes the target WiFi network. Closing the target WiFi network can be understood as disconnecting the target WiFi network.

[0091] The target WiFi network is one of the first WiFi network and the second WiFi network. In other words, when the first condition is met, the terminal device turns off one of the first WiFi network and the second WiFi network, and the terminal device only uses one WiFi network for communication, so as to save power of the terminal device and improve the battery life of the terminal device.

[0092] The first condition may be related to a variety of factors, and the first condition is introduced in detail below.

[0093] In some implementations, the first condition is related to a default data transmission network of the terminal device. The default data transmission network can be understood as a transmission network that is preferentially used. The terminal device can set a cellular network as a default data transmission network, or a WiFi network as a data transmission network.

[0094] The first condition includes the second condition, and the second condition is that the default data transmission network of the terminal device is a cellular network. If the user switches the default data transmission network to a cellular network, the terminal device can turn off the target WiFi network to save power of the terminal device and improve the battery life of the terminal device. The target WiFi network can be a secondary WiFi network, and of course, it can also be a WiFi network determined based on the signal strength described below. The secondary WiFi network can be a 2.4G network, or the secondary WiFi network can be a later connected WiFi network.

[0095] Since the terminal device switches the default data transmission network to the cellular network, the terminal device will give priority to the cellular network for data transmission. In this case, the cellular network and one WiFi network are sufficient to ensure the reliability of data transmission. Therefore, one WiFi network can be turned off to reduce the power consumption of the terminal device and increase the battery life of the terminal device.

[0096] In some implementations, the first condition is related to the duration of time that the terminal device activates the cellular network. Activating the cellular network can be understood as activating the cellular data service. Usually, when the WiFi network signal is poor, the terminal device will activate the cellular network and use the cellular network as a backup network to transmit data through the cellular network when necessary to ensure the reliability of data transmission.

[0097] As an example, the terminal device may turn off the target WiFi network when the cellular network is activated. In other words, the first condition includes the terminal device activating the cellular network.

[0098] As another example, the terminal device may turn off the target WiFi network after activating the cellular network for a period of time. This can avoid data transmission interruption or jamming caused by network switching (such as switching from two WiFi networks to one WiFi network + cellular network), which is beneficial to improving the reliability of data transmission. For example, the first condition may include a third condition, and the third condition is that the duration of the terminal device activating the cellular network is greater than or equal to the first threshold. If the terminal device meets the third condition, the target WiFi network turned off by the terminal device can be a secondary WiFi network, and of course, it can also be a WiFi network determined based on the signal strength described below. The secondary WiFi network can be a 2.4G network, or the secondary WiFi network can be a later connected WiFi network.

[0099] In some implementations, the first condition may include a second condition and a third condition, namely, the terminal device may turn off the target WiFi network when the default data transmission network is switched to a cellular network and the duration of activating the cellular network is greater than or equal to a first threshold.

[0100] Figure 5 A scenario in which a terminal device turns off a target WiFi network (taking a secondary WiFi network as an example) is shown. If the terminal device meets the second condition and / or the third condition, the terminal device can turn off the secondary WiFi network. Since the terminal device sets the cellular network as the default network or activates the cellular network, when there is a data packet to be transmitted, the terminal device will use the cellular network for transmission.

[0101] See also Figure 5 If the terminal device needs to send a data packet, the terminal device can send the data packet to the base station through the cellular network, and the base station can send the data packet to the Internet. When the Internet has a data packet to send to the terminal device, the data packet can be sent to the base station, and the base station sends the data packet to the terminal device. In this case, the main WiFi network can be used as a backup network. When the cellular network signal is poor, the terminal device can transmit the data packet through the main WiFi network.

[0102] In some implementations, the first condition is related to a first transmission delay of the terminal device transmitting the first data packet using the first WiFi network. For example, if the first transmission delay is greater than or equal to a preset threshold, it means that the performance of the first WiFi network is worse, and the terminal device can close the target WiFi network, which can be the first WiFi network. The first data packet can be one data packet, or multiple data packets.

[0103] The first transmission delay may include an uplink transmission delay and / or a downlink transmission delay. The uplink transmission delay refers to the time difference between the time when the terminal device sends a first data packet to the opposite device through the first WiFi network and the time when the first data packet is received. The downlink transmission delay refers to the time difference between the time when the terminal device receives a first data packet sent by the opposite device through the first WiFi network and the time when the first data packet is sent and received.

[0104] In some implementations, the first condition is related to a second transmission delay of transmitting the first data packet using the second WiFi network. For example, if the second transmission delay is greater than or equal to a preset threshold, it means that the performance of the second WiFi network is worse, and the terminal device can turn off the target WiFi network, which can be the second WiFi network.

[0105] The second transmission delay may include an uplink transmission delay and / or a downlink transmission delay. The uplink transmission delay refers to the time difference between the time when the terminal device sends a first data packet to the opposite device through the second WiFi network and the time when the first data packet is received. The downlink transmission delay refers to the time difference between the time when the terminal device receives a first data packet sent by the opposite device through the second WiFi network and the time when the first data packet is sent and received.

[0106] In some implementations, the first condition is related to the first transmission delay and the second transmission delay. For example, the first condition is related to the difference between the first transmission delay and the second transmission delay.

[0107] The difference between the first transmission delay and the second transmission delay may include the first difference and / or the second difference. The first difference refers to the delay difference of the terminal device receiving the first data packet through the first WiFi network and the second WiFi network respectively. The first difference may also be referred to as the downlink delay difference. For example, the terminal device receives the first data packet using the first WiFi network to obtain the first receiving time of the first data packet; the terminal device receives the first data packet using the second WiFi network to obtain the second receiving time of the first data packet; the terminal device may make a difference between the first receiving time and the second receiving time to obtain the first difference. The first difference = the first receiving time - the second receiving time.

[0108] The second difference refers to the delay difference of the terminal device sending the first data packet through the first WiFi network and the second WiFi network respectively. The second difference can also be called the uplink delay difference. For example, the terminal device sends the first data packet to the opposite device using the first WiFi network, and the opposite device receives the first data packet using the first WiFi network as the third receiving time; the terminal device sends the first data packet to the opposite device using the second WiFi network, and the opposite device receives the first data packet using the second WiFi network as the fourth receiving time; the difference between the third receiving time and the fourth receiving time is the second difference. Second difference = third receiving time - fourth receiving time.

[0109] In some implementations, the first condition includes a fourth condition, and the fourth condition is that the difference between the first transmission delay and the second transmission delay is less than or equal to the second threshold, wherein the first data packet is a data packet. As can be seen from the above, the difference between the first transmission delay and the second transmission delay includes the first difference and / or the second difference, and the first condition may include one or more of the following: the first difference is less than or equal to the second threshold; the second difference is less than or equal to the second threshold.

[0110] If the first difference is less than or equal to the second threshold, it means that for downlink transmission, one of the two WiFi networks (i.e., the second WiFi network) has a larger transmission delay, that is, the transmission performance of the WiFi network is not good. In this case, the WiFi network with the larger transmission delay can be shut down.

[0111] If the second difference is less than or equal to the second threshold, it means that for uplink transmission, one of the two WiFi networks (i.e., the second WiFi network) has a larger transmission delay, that is, the transmission performance of the WiFi network is not good. In this case, the WiFi network with the larger transmission delay can be shut down.

[0112] In some implementations, the first condition includes a fifth condition, the fifth condition is that the average value of the differences between the plurality of first transmission delays and the plurality of second transmission delays is less than or equal to a third threshold, and the first data packet includes a plurality of data packets. In other words, the fifth condition includes that the average value of the plurality of first differences is less than or equal to the third threshold, and / or the average value of the plurality of second differences is less than or equal to the third threshold.

[0113] The sender sends multiple data packets. Assume that the multiple data packets are data packet 1, data packet 2, ..., data packet n (represented as data packet i). The sender sends the same data packet simultaneously through the first WiFi network and the second WiFi network. Figure 6 The receiving end receives multiple data packets through the first WiFi network and the second WiFi network respectively, and the receiving times of the multiple data packets received through the first WiFi network are t1-1 ,t 2-1 ,…,t n-1 , the receiving times of multiple data packets received through the second WiFi network are t 1-2 ,t 2-2 ,…,t n-2 , the receiving delay difference of multiple data packets (i.e., the first difference or the second difference) is , correspondingly, the average value of the first difference or the second difference is . Wherein, n>1, 1≤i≤n.

[0114] If the above-mentioned receiving end is a terminal device, the reception delay difference of multiple data packets is a first difference value, and if the sending end is a terminal device, the reception delay difference of multiple data packets is a second difference value.

[0115] The multiple data packets may be data packets within one cycle, and the terminal device may make a judgment once every cycle, which can reduce the number of judgments of the terminal device and reduce the power consumption of the terminal device.

[0116] The peer device in the embodiment of the present application may be a router, or may be other devices capable of performing WiFi communication with the terminal device, such as other terminal devices.

[0117] In some implementations, the peer device may send the judgment result to the terminal device so that the terminal device can make a decision on whether to shut down the target WiFi network. For example, the peer device may send first indication information to the terminal device, and the first indication information is used to indicate whether the second difference satisfies the third condition and / or the fourth condition; or, the first indication information is used to indicate whether the first difference is less than or equal to the second threshold value, and / or whether the second difference is less than or equal to the third threshold value; or, the first indication information is used to indicate the judgment result of whether the target WiFi needs to be shut down determined by the peer device.

[0118] If the peer device indicates that the target WiFi needs to be turned off, and the terminal device also determines that the target WiFi needs to be turned off based on the first difference, the terminal device turns off the target WiFi. If the peer device indicates that the target WiFi does not need to be turned off, but the terminal device determines that the target WiFi needs to be turned off, the terminal device does not turn off the target WiFi. If the peer device indicates that the target WiFi needs to be turned off, but the terminal device determines that the target WiFi does not need to be turned off, the terminal device does not turn off the target WiFi. In other words, only when both the terminal device and the peer device determine that the target WiFi needs to be turned off, the terminal device will turn off the target WiFi to ensure the reliability of communication.

[0119] In some implementations, the embodiments of the present application mainly determine whether the transmission delay of the secondary WiFi is large, but do not determine whether the transmission delay of the primary WiFi is large. The secondary WiFi will be turned off only when the transmission delay of the secondary WiFi is large. That is to say, the first WiFi network is the primary WiFi network, the second WiFi network is the secondary WiFi network, and the target WiFi network is the secondary WiFi network.

[0120] The following describes a method for determining a target WiFi based on signal strength. The terminal device may choose to close a WiFi network with a worse signal strength, that is, the target WiFi network is the WiFi network with the worse signal strength between the first WiFi network and the second WiFi network.

[0121] The terminal device can determine the first signal strength of the first WiFi network and the signal strength of the second WiFi network. The signal strength can be obtained by measuring the signal. The terminal device can determine the target WiFi network based on the first signal strength and the second signal strength.

[0122] In some implementations, the terminal device can directly compare the first signal strength and the second signal strength to determine the target WiFi network, and the target WiFi network is a WiFi network with a lower signal strength. For example, if the first signal strength is less than the second signal strength, the target WiFi network is the first WiFi network; if the second signal strength is lower than the first signal strength, the target WiFi network is the second WiFi network.

[0123] In some implementations, different WiFi networks have different signal strength thresholds corresponding to them. Therefore, the target WiFi network can be determined based on the difference between the actually measured signal strength and the signal strength threshold to more accurately determine the signal quality of the WiFi network. For example, the terminal device can determine a third difference between the first signal strength and the fourth threshold, and determine a fourth difference between the second signal strength and the fifth threshold, and determine the target WiFi network based on the third difference and the fourth difference. Among them, the fourth threshold is the signal strength threshold for the first WiFi network, and the fifth threshold is the signal strength threshold for the second WiFi network. The fourth threshold and the fifth threshold can be preset thresholds. Typically, the signal strength threshold corresponding to the secondary WiFi network is less than the signal strength threshold corresponding to the primary WiFi network. The signal strength threshold can also be referred to as a reference signal strength.

[0124] The difference between the first signal strength and the fourth threshold may reflect the degree to which the signal strength of the first WiFi network deviates from the reference signal strength, and the difference between the second signal strength and the fifth threshold may reflect the degree to which the signal strength of the second WiFi network deviates from the reference signal strength.

[0125] As an example, the first condition includes that the third difference is greater than the fourth difference. If the third difference is greater than the fourth difference, the terminal device can close the first WiFi network, that is, the target WiFi network is the first WiFi network.

[0126] As another example, the first condition includes that the fourth difference is greater than the third difference. If the fourth difference is greater than the third difference, the terminal device can turn off the second WiFi network, that is, the target WiFi network is the second WiFi network.

[0127] As another example, the first condition includes that the difference between the third difference and the fourth difference is greater than the sixth threshold, that is, the third difference - the fourth difference > the sixth threshold. If the difference between the third difference and the fourth difference is greater than the sixth threshold, the terminal device can turn off the first WiFi network, that is, the target WiFi network is the first WiFi network.

[0128] As another example, the first condition includes that the difference between the fourth difference and the third difference is greater than the sixth threshold, that is, the fourth difference - the third difference ≥ the sixth threshold, if the difference between the fourth difference and the third difference is greater than the sixth threshold, then the terminal device can close the second WiFi network, that is, the target WiFi network is the second WiFi network. An example is given below.

[0129] Assume that the signal strength of the first WiFi network is s 1 , and the preset signal strength threshold is Th 1 , the signal strength of the second WiFi network is s 2 , and the preset signal strength threshold is Th 2 In addition, the sixth threshold is Th 3 , if the above parameters satisfy the following formula: (Formula 1) The above formula 1 indicates that if the signal strength of the second WiFi network is significantly better than that of the first WiFi network, the terminal device can close the first WiFi network.

[0130] If the above parameters satisfy the following formula: (Formula 2) The above formula 2 indicates that if the signal strength of the first WiFi network is significantly better than that of the second WiFi network, the terminal device can close the second WiFi network.

[0131] It should be noted that the above signal strength can be measured by the terminal device when it is determined that one WiFi connection needs to be closed. When the terminal device determines that one WiFi network needs to be closed, it measures the signal strength of two WiFi networks, which can ensure that the measured signal strength is relatively accurate, so that the terminal device can make a correct decision.

[0132] The above describes in detail an example of the method provided by the present application. It is understandable that, in order to implement the above functions, the corresponding device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware 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.

[0133] The present application can divide the functional modules of the processing device of the WiFi network according to the above method example. For example, each function can be divided into each functional module, or two or more functions can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0134] The processing device of the WiFi network in the embodiment of the present application may be a terminal device, or the processing device of the WiFi network may be a chip for implementing the above method, etc.

[0135] Combine the following Figure 7 and Figure 8 , the device embodiment of the present application is introduced. It should be noted that the device embodiment corresponds to the method embodiment, and the content not described in detail can refer to the method embodiment.

[0136] Figure 7 7 is a schematic block diagram of a terminal device provided in an embodiment of the present application. The terminal device 700 includes a processing module 710. The terminal device includes a first WiFi network and a second WiFi network, and the first WiFi network and the second WiFi network are located in different frequency bands.

[0137] The processing module 710 is used to: shut down the target WiFi network when a first condition is met, where the target WiFi network is one of the first WiFi network and the second WiFi network; wherein the first condition is related to one or more of the following information: a default data transmission network of the terminal device; a duration for the terminal device to activate the cellular network; a first transmission delay for the terminal device to transmit a first data packet using the first WiFi network; and a second transmission delay for the terminal device to transmit a first data packet using the second WiFi network.

[0138] In some implementations, the first condition includes one or more of the following conditions: the second condition: the default data transmission network of the terminal device is a cellular network; the third condition: the time length for which the terminal device activates the cellular network is greater than or equal to a first threshold; the fourth condition: the difference between the first transmission delay and the second transmission delay is less than or equal to the second threshold, and the first data packet is one data packet; the fifth condition: the average value of the difference between multiple first transmission delays and the multiple second transmission delays is less than or equal to the third threshold, and the first data packet includes multiple data packets.

[0139] In some implementations, the difference between the first transmission delay and the second transmission delay includes a first difference and / or a second difference, the first difference being a delay difference for the terminal device to receive the first data packet respectively through the first WiFi network and the second WiFi network, and the second difference being a delay difference for the opposite device to receive the first data packet sent by the terminal device respectively through the first WiFi network and the second WiFi network.

[0140] In some implementations, the terminal device 700 further includes a receiving module and a subtraction module. The receiving module is used to: receive the first data packet using the first WiFi network to obtain a first receiving time of the first data packet; receive the first data packet using the second WiFi network to obtain a second receiving time of the first data packet. The subtraction module is used to: subtract the first receiving time from the second receiving time to obtain the first difference.

[0141] In some implementations, the terminal device 700 further includes a sending module. The sending module is used to: send the first data packet to the peer device using the first WiFi network, and the time when the peer device receives the first data packet using the first WiFi network is a third receiving time; send the first data packet to the peer device using the second WiFi network, and the time when the peer device receives the first data packet using the first WiFi network is a fourth receiving time; wherein the difference between the third receiving time and the fourth receiving time is the second difference.

[0142] In some implementations, the terminal device 700 further includes a receiving module. The receiving module is used to: receive first indication information sent by the opposite device, the first indication information is used to indicate whether the second difference satisfies the third condition and / or the fourth condition; the processing module 710 is used to: shut down the target WiFi network if the first difference satisfies the third condition and / or the fourth condition, and the second difference satisfies the third condition and / or the fourth condition.

[0143] In some implementations, the first WiFi network is a primary WiFi network, the second WiFi network is a secondary WiFi network, and the target WiFi network is the secondary WiFi network.

[0144] In some implementations, if the first condition includes the second condition and / or the third condition, the target WiFi network is a secondary WiFi network between the first WiFi network and the second WiFi network.

[0145] In some implementations, if the first condition includes the second condition and / or the third condition, the terminal device further includes a determination module. The determination module is configured to: determine a first signal strength of the first WiFi network; determine a second signal strength of the second WiFi network; and determine the target WiFi network based on the first signal strength and the second signal strength.

[0146] In some implementations, the determination module is used to: determine a third difference between the first signal strength and a fourth threshold, where the fourth threshold is a signal strength threshold for the first WiFi network; determine a fourth difference between the second signal strength and a fifth threshold, where the fifth threshold is a signal strength threshold for the second WiFi network; and determine the target WiFi network based on the third difference and the fourth difference.

[0147] In some implementations, the determination module is used to: determine that the target WiFi network is the first WiFi network if the difference between the third difference value and the fourth difference value is greater than a sixth threshold; and determine that the target WiFi network is the second WiFi network if the difference between the fourth difference value and the third difference value is greater than a sixth threshold.

[0148] Figure 8 It is a schematic structural diagram of the device of an embodiment of the present application. Figure 8 The dotted line in the figure indicates that the unit or module is optional. The device 800 can be used to implement the method described in the above method embodiment. The device 800 can be a chip or a terminal device.

[0149] The device 800 may include one or more processors 810. The processor 810 may support the device 800 to implement the method described in the above method embodiment. The processor 810 may be a general-purpose processor or a special-purpose processor. For example, the processor may be a central processing unit (CPU). Alternatively, the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0150] The apparatus 800 may further include one or more memories 820. The memory 820 stores a program, which can be executed by the processor 810, so that the processor 810 executes the method described in the above method embodiment. The memory 820 may be independent of the processor 810 or integrated in the processor 810.

[0151] The apparatus 800 may further include a transceiver 830. The processor 810 may communicate with other devices or chips through the transceiver 830. For example, the processor 810 may transmit and receive data with other devices or chips through the transceiver 830.

[0152] An embodiment of the present application further provides a chip, which includes a processor, and the processor is used to read and execute a computer program stored in a memory to perform the WiFi network processing method described in any of the above embodiments.

[0153] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the processor executes the method for WiFi network processing described in any of the above embodiments.

[0154] The embodiment of the present application further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the WiFi network processing method in the above-mentioned embodiment.

[0155] Among them, the terminal device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0156] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, the replaced units may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0157] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0158] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0159] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0160] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for processing a wireless fidelity WiFi network, characterized in that: The method is applied to a terminal device, the terminal device includes a first WiFi network and a second WiFi network, the first WiFi network and the second WiFi network are in different frequency bands, The method comprises: If the first condition is met, shut down the target WiFi network, where the target WiFi network is one of the first WiFi network and the second WiFi network; The first condition is related to one or more of the following information: The default data transmission network of the terminal device; The duration of time the terminal device activates the cellular network; A first transmission delay of the terminal device transmitting a first data packet using the first WiFi network; The terminal device uses the second WiFi network to transmit a second transmission delay of the first data packet.

2. The method according to claim 1, characterized in that The first condition includes one or more of the following conditions: Second condition: the default data transmission network of the terminal device is a cellular network; The third condition: the duration of the terminal device activating the cellular network is greater than or equal to the first threshold; Fourth condition: the difference between the first transmission delay and the second transmission delay is less than or equal to a second threshold, and the first data packet is one data packet; Fifth condition: an average value of differences between the plurality of first transmission delays and the plurality of second transmission delays is less than or equal to a third threshold, and the first data packet includes a plurality of data packets.

3. The method according to claim 2, characterized in that The difference between the first transmission delay and the second transmission delay includes a first difference and / or a second difference, the first difference being a delay difference for the terminal device to receive the first data packet through the first WiFi network and the second WiFi network respectively. The second difference is a time delay difference when the opposite device receives the first data packet sent by the terminal device through the first WiFi network and the second WiFi network respectively.

4. The method according to claim 3, characterized in that The method further comprises: Receive the first data packet using the first WiFi network to obtain a first receiving time of the first data packet; Using the second WiFi network to receive the first data packet, and obtaining a second receiving time of the first data packet; The first receiving time is subtracted from the second receiving time to obtain the first difference.

5. The method according to claim 3 or 4, characterized in that: The method further comprises: The first data packet is sent to the peer device by using the first WiFi network, and a receiving time when the peer device receives the first data packet by using the first WiFi network is a third receiving time; Sending the first data packet to the peer device using the second WiFi network, where a receiving time at which the peer device receives the first data packet using the first WiFi network is a fourth receiving time; The difference between the third receiving time and the fourth receiving time is the second difference.

6. The method according to claim 5, characterized in that The method further comprises: receiving first indication information sent by the opposite device, where the first indication information is used to indicate whether the second difference satisfies the third condition and / or the fourth condition; When the first condition is met, shutting down the target WiFi network includes: When the first difference satisfies the third condition and / or the fourth condition, and the second difference satisfies the third condition and / or the fourth condition, the target WiFi network is closed.

7. The method according to claim 6, characterized in that The first WiFi network is a primary WiFi network, the second WiFi network is a secondary WiFi network, and the target WiFi network is the secondary WiFi network.

8. The method according to claim 2, characterized in that: If the first condition includes the second condition and / or the third condition, the target WiFi network is a secondary WiFi network of the first WiFi network and the second WiFi network.

9. The method according to claim 2, characterized in that: If the first condition includes the second condition and / or the third condition, the method further includes: Determining a first signal strength of the first WiFi network; Determine a second signal strength of the second WiFi network; The target WiFi network is determined based on the first signal strength and the second signal strength.

10. The method according to claim 9, characterized in that The determining the target WiFi network based on the first signal strength and the second signal strength includes: Determine a third difference between the first signal strength and a fourth threshold, where the fourth threshold is a signal strength threshold for the first WiFi network; Determine a fourth difference between the second signal strength and a fifth threshold, where the fifth threshold is a signal strength threshold for the second WiFi network; The target WiFi network is determined based on the third difference and the fourth difference.

11. The method according to claim 10, characterized in that The determining the target WiFi network based on the third difference and the fourth difference includes: If the difference between the third difference and the fourth difference is greater than a sixth threshold, determining that the target WiFi network is the first WiFi network; If the difference between the fourth difference and the third difference is greater than a sixth threshold, it is determined that the target WiFi network is the second WiFi network.

12. A terminal device, characterized in that: include: The method comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the method according to any one of claims 1 to 11 when executing the computer program.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 11.

14. A computer program product, characterized in that The method comprises a program for causing a computer to execute the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Network switching method and device, mobile terminal and computer readable storage medium

    CN109495939A

  • Network control method and related product

    CN110430592A

  • Data transmission method and related device

    CN112399442A

  • Controlling wireless connections in wireless motion sensing systems

    CN114026919A

  • Radio Frequency Front End Module, Radio Frequency Apparatus, and Communication Device

    US20240250701A1