Network communication method and device, terminal, storage medium and program product

By enabling dual-network communication function in the WiFi environment and synchronously transmitting data through WiFi and cellular networks, the network delay problem caused by unstable WiFi network quality is solved, and communication fluency and user experience are improved.

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

Patent Information

Application Number
CN202411650398.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In the case of unstable Wi-Fi network quality, priority use of Wi-Fi network communication is prone to network latency problems, and how to alleviate network latency has become a problem.

Method used

When the terminal transmits communication data in a WiFi environment, it determines the WiFi network quality and terminal movement. When the WiFi network quality is reduced and the terminal is in a mobile state, it enables the dual-network communication function and transmits communication data simultaneously through the WiFi network and the cellular network.

Benefits of technology

By turning on the dual-network communication function, avoid communication delays caused by the continuous reduction of WiFi network quality, improve network communication fluency, and improve users' network communication experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a network communication method and device, a terminal, a storage medium and a program product, and belongs to the technical field of network communication. The method comprises the steps that communication data are transmitted through a WiFi network in a WiFi environment under the condition that a dual-network communication function is in a closed state, and the dual-network communication function refers to a function of synchronously transmitting the communication data through the WiFi network and a cellular network; in the process of transmitting the communication data, determining the WiFi network quality of the WiFi network and the terminal movement condition of the terminal; and when the WiFi network quality is reduced and the terminal moving condition represents that the terminal is in a moving state, starting a dual-network communication function. By adopting the technical scheme provided by the embodiment of the invention, the problem of network delay caused by user movement can be effectively relieved, and the fluency of network communication is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In order to avoid wasting cellular network traffic, in related technologies, Wi-Fi (Wireless Fidelity) networks are preferred for communication. When network monitoring determines that the quality of the Wi-Fi network is too poor to meet communication needs, the cellular network is used. However, when the quality of the Wi-Fi network is unstable, the priority use of Wi-Fi network communication is prone to network delays. How to alleviate the problem of network delay has become a difficult problem. Summary of the invention

[0003] The embodiments of the present application provide a network communication method, device, terminal, storage medium and program product. The technical solution includes the following steps:

[0004] On the one hand, an embodiment of the present application provides a network communication method, the method comprising:

[0005] In a WiFi environment, when the dual-network communication function is turned off, transmitting communication data through the WiFi network, wherein the dual-network communication function refers to a function of synchronously transmitting the communication data through the WiFi network and the cellular network;

[0006] During the transmission of the communication data, determining the WiFi network quality of the WiFi network and the terminal mobility of the terminal;

[0007] When the quality of the WiFi network decreases and the terminal movement condition indicates that the terminal is in a moving state, the dual network communication function is enabled.

[0008] On the other hand, an embodiment of the present application provides a network communication device, the device comprising:

[0009] A communication module, used to transmit communication data through a WiFi network when the device is in a WiFi environment and the dual network communication function is turned off, wherein the dual network communication function refers to a function of synchronously transmitting the communication data through the WiFi network and the cellular network;

[0010] A determination module, used to determine the WiFi network quality of the WiFi network and the terminal mobility of the terminal during the transmission of the communication data;

[0011] The enabling module is used to enable the dual network communication function when the quality of the WiFi network is reduced and the terminal movement condition indicates that the terminal is in a moving state.

[0012] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory, wherein the memory stores at least one computer instruction, and the at least one computer instruction is loaded and executed by the processor to implement the network communication method as described in the above aspects.

[0013] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a processor to implement the network communication method as described in the above aspects.

[0014] On the other hand, an embodiment of the present application provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; the processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal implements the network communication method described in the above aspects.

[0015] In the embodiment of the present application, when in a WiFi environment, the terminal transmits communication data through the WiFi network. Since the distance between the terminal and the router that sends the WiFi network signal is negatively correlated with the WiFi network quality, when the terminal is in a mobile state, the WiFi network quality is prone to instability and causes network delay problems. The terminal determines the WiFi network quality and the terminal movement, and when the WiFi network quality is reduced due to the terminal movement, the terminal transmits communication data synchronously through the WiFi network and the cellular network, so that the cellular network can play a communication function when the WiFi network quality is too poor, improve the communication data transmission efficiency, help solve the network delay problem caused by user movement, ensure the smoothness of network communication, and help improve the user's network communication experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a flow chart of a network communication method provided by an exemplary embodiment of the present application;

[0017] Figure 2 is a flow chart of a network communication method provided by another exemplary embodiment of the present application;

[0018] Figure 3 is a flowchart of a process for determining a cause of degradation of WiFi network quality provided by an exemplary embodiment of the present application;

[0019] Figure 4 is a flowchart of a process for determining a target time period provided by an exemplary embodiment of the present application;

[0020] Figure 5 is a flowchart of a process for determining a target time period provided by another exemplary embodiment of the present application;

[0021] Figure 6 It is a flowchart of the prompt activation process of the dual network communication function;

[0022] Figure 7 It is a schematic diagram of the function configuration interface including the dual network communication intelligent activation function;

[0023] Figure 8 is a flow chart of a network communication device provided by an exemplary embodiment of the present application;

[0024] Fig. 9 It is a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

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

[0026] In order to avoid wasting cellular network traffic, in related technologies, Wi-Fi (Wireless Fidelity) networks are preferred for communication. When network monitoring determines that the quality of the Wi-Fi network is too poor to meet communication needs, the cellular network is used. However, when the quality of the Wi-Fi network is unstable, the priority use of Wi-Fi network communication is prone to network delays. How to alleviate the problem of network delay has become a difficult problem.

[0027] An embodiment of the present application provides a network communication method, in which a terminal can determine the timing of starting a dual-network communication function according to the Wi-Fi network quality and the terminal mobility during Wi-Fi network communication. By starting the dual-network communication function, communication delays caused by continuous degradation of the Wi-Fi network quality are avoided, thereby improving the fluency of network communication.

[0028] See also Figure 1 , Figure 1 The flowchart of a network communication method provided by an exemplary embodiment of the present application includes the following steps.

[0029] Step 101, in a WiFi environment, when the dual network communication function is in a disabled state, transmitting communication data through a WiFi network, wherein the dual network communication function refers to a function of synchronously transmitting communication data through a WiFi network and a cellular network.

[0030] In some embodiments, the WiFi environment refers to a network environment covered by a WiFi network. The terminal can establish a communication connection with the WiFi network and transmit communication data through the WiFi network, such as receiving chat messages, browsing web pages, playing audio and video, etc. through the WiFi network. The terminal accesses the WiFi network through a wireless access point (Access Point, AP). The WiFi environment can also be understood as a network environment covered by a wireless signal. When the terminal leaves the WiFi environment, the WiFi network connection is interrupted.

[0031] In some embodiments, the cellular network is supported by building a ground base station. The network stability of the cellular network is higher than that of the WiFi network, the signal transmission distance is longer than that of the WiFi network, and the coverage is wider than that of the WiFi network. The usage of the cellular network is limited by the usage fee. The WiFi network does not limit the usage.

[0032] In some embodiments, when the dual network communication function is turned on, the cellular network and the WiFi network can be used simultaneously, that is, the terminal establishes a communication connection with the cellular network and a communication connection with the WiFi network, so that part of the communication data can be transmitted through the WiFi network and the other part of the communication data can be transmitted through the cellular network.

[0033] Since the WiFi network has the advantages of high transmission rate and no usage limit, when in a WiFi environment and the dual network communication function is turned off, the terminal establishes a communication connection with the WiFi network based on the WiFi network priority principle and transmits communication data through the WiFi network.

[0034] Step 102: during the process of transmitting communication data, determine the WiFi network quality of the WiFi network and the terminal mobility of the terminal.

[0035] In some embodiments, the terminal movement situation has an impact on the communication data transmission situation. When the terminal is in a moving state, it is easy to cause communication delay due to the instability of the WiFi network signal received by the terminal. When the terminal is in a stationary state, the WiFi network signal received by the terminal is relatively stable.

[0036] Optionally, the WiFi network quality of the WiFi network may be determined based on transmission conditions of communication data on the WiFi network.

[0037] In a possible implementation, the terminal determines a network quality indicator by monitoring the communication data transmission process, and then determines a network quality score based on the network quality indicator, and the network quality score is used to characterize the WiFi network quality of the WiFi network. Exemplarily, the network quality indicator may include NQA (Network Quality Analyze) indicators such as packet loss rate, transmission rate, network delay, error rate, and network jitter.

[0038] Optionally, the terminal may determine whether the terminal is in a moving state based on monitoring data of sensors such as a gyroscope and an acceleration sensor, as well as positioning data.

[0039] Step 103: When the quality of the WiFi network is reduced and the terminal mobility indicates that the terminal is in a mobile state, the dual network communication function is enabled.

[0040] Optionally, when the terminal is using a WiFi network and the quality of the WiFi network is reduced, and the terminal movement situation indicates that the terminal is in a mobile state, the dual network communication function is enabled.

[0041] As the quality of the WiFi network deteriorates, it is easy to cause network delays or network termination problems, so the terminal needs to use the cellular network to transmit communication data. When the terminal is in a mobile state, the quality of the WiFi network may be further deteriorated. By turning on the dual network communication function, network communications can be carried out with the help of the cellular network before the WiFi network quality is further deteriorated, preventing the WiFi network quality from continuously deteriorating and causing network delays.

[0042] In the embodiment of the present application, when in a WiFi environment, the terminal transmits communication data through the WiFi network. Since the distance between the terminal and the router that sends the WiFi network signal is negatively correlated with the WiFi network quality, when the terminal is in a mobile state, the WiFi network quality is prone to instability and causes network delay problems. The terminal determines the WiFi network quality and the terminal movement, and when the WiFi network quality is reduced due to the terminal movement, the terminal transmits communication data synchronously through the WiFi network and the cellular network, so that the cellular network can play a communication function when the WiFi network quality is too poor, improve the communication data transmission efficiency, help solve the network delay problem caused by user movement, ensure the smoothness of network communication, and help improve the user's network communication experience.

[0043] In some embodiments, there are many reasons for the reduction of WiFi network quality, such as WiFi network failure, multiple terminals accessing the WiFi network causing WiFi network congestion, and low WiFi network signal strength. The terminal can first determine the reason for the reduction of network quality to ensure that the dual network communication function is enabled when the WiFi network quality is reduced due to terminal movement, thereby improving the accuracy of the timing of enabling the dual network communication function.

[0044] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of a network communication method provided by another exemplary embodiment of the present application. The method includes the following steps.

[0045] Step 201, in a WiFi environment, when the dual network communication function is in a disabled state, communication data is transmitted through the WiFi network, where the dual network communication function refers to a function of synchronously transmitting communication data through the WiFi network and the cellular network.

[0046] Step 202: during the process of transmitting communication data, determine the WiFi network quality of the WiFi network and the terminal mobility of the terminal.

[0047] It should be noted that the specific description of step 201 and step 202 can refer to step 101 and step 102 in the above embodiment, and the embodiment of the present application will not be repeated here.

[0048] Step 203: When the WiFi network quality is degraded and the terminal mobility situation indicates that the terminal is in a mobile state, a reason for the degraded WiFi network quality is determined based on the WiFi network quality and the terminal mobility situation.

[0049] In a possible implementation, the terminal determines a quality change rate sequence of the WiFi network quality based on a network quality parameter sequence of the WiFi network quality within a target period, and determines a displacement change rate sequence of the terminal based on a displacement sequence of the terminal within the target period, and then determines a reason for the reduction in WiFi network quality based on a matching degree between the quality change rate sequence of the WiFi network quality and the displacement change rate sequence. The target period refers to a period when the WiFi network quality is reduced.

[0050] Among them, the network quality parameter sequence is composed of network quality parameters that characterize the quality of the WiFi network at different times, and the quality change rate sequence is composed of the difference between the network quality parameters at adjacent times in the network quality parameter sequence. The displacement sequence is composed of the displacement of the terminal at different times, and the displacement is used to describe the distance between the terminal and the AP. The displacement change rate sequence is composed of the difference between the displacement of the terminal at adjacent times in the displacement sequence. The displacement change rate can characterize the direction and amount of displacement change. For example, a displacement change rate of +1m means that the displacement increases by 1m, and a displacement change rate of -2m means that the displacement decreases by 2m.

[0051] Optionally, the intervals between adjacent moments in the target time period may be the same or different.

[0052] Exemplarily, the network quality parameter of each WiFi network quality in the network quality parameter sequence corresponds to the displacement at the same time in the displacement sequence. Correspondingly, each quality change rate in the quality change rate sequence corresponds to the displacement change rate in the same sub-period in the displacement change rate sequence. A sub-period refers to the period between different times in the target period.

[0053] In an exemplary example, in the same sub-period, when the displacement change rate indicates that the terminal is far away from the AP and the quality change rate indicates quality reduction, or when the displacement change rate indicates that the terminal is moving toward the AP and the quality change rate indicates quality improvement, the terminal determines that the quality change rate matches the displacement change rate in the sub-period. In different sub-periods, when the proportion of the number of sub-periods in which the quality change rate matches the displacement change rate to the total number of sub-periods is greater than the proportion threshold, the terminal determines that the cause of the WiFi network quality reduction is the movement of the terminal; otherwise, the terminal determines that the cause of the WiFi network quality reduction is not the movement of the terminal.

[0054] In another exemplary example, when the displacement change rate in the same sub-period indicates that the terminal is away from the AP and the quality change rate indicates that the quality is reduced, or when the displacement change rate in the same sub-period indicates that the terminal is moving toward the AP and the quality change rate indicates that the quality is improved, the terminal determines that the reason for the reduction in WiFi network quality may be the movement of the terminal. Then, the terminal compares the values ​​of the displacement change rate and the quality change rate in different sub-periods. When the values ​​of the displacement change rate and the quality change rate are positively correlated, the terminal determines that the reason for the reduction in WiFi network quality is the movement of the terminal. Otherwise, the terminal determines that the reason for the reduction in WiFi network quality is not the movement of the terminal.

[0055] Optionally, in addition to determining the cause of the degradation of WiFi network quality based on the quality change rate sequence of the WiFi network quality and the matching degree between the displacement change rate sequence, the terminal may also use an artificial intelligence model to determine the cause of the degradation of WiFi network quality.

[0056] See also Figure 3 , Figure 3 1 is a flowchart of a process for determining the cause of WiFi network quality degradation provided by an exemplary embodiment of the present application. The process includes the following steps.

[0057] Step 203A, obtaining a network quality parameter sequence characterizing the quality of the WiFi network within the target time period, wherein the network quality parameter sequence is composed of network quality parameters characterizing the quality of the WiFi network at different times.

[0058] In some embodiments, the network quality parameter sequence refers to a sequence of network quality parameters collected at regular intervals within a target period, wherein the target period refers to a period when the WiFi network quality is degraded.

[0059] Optionally, the network quality parameters of the WiFi network quality may include network quality analysis indicators such as packet loss rate, delay time, transmission rate, network jitter, error rate, and at least one of a signal strength (Received Signal Strength Indicator, RSSI) indicator.

[0060] Optionally, the network quality parameter of the WiFi network quality may also be represented by a network quality score determined by combining the network quality analysis index and the signal strength index. For example, the terminal determines the network quality score by a calculation method such as weighted average.

[0061] Exemplarily, when the network quality parameter sequence is characterized by a network quality score, the network quality parameter sequence includes network quality scores at 5 different times, namely 0.6, 0.8, 0.9, 0.7 and 0.3. When the network quality parameter of the network quality parameter sequence is a packet loss rate, the network quality parameter sequence includes packet loss rates at 5 different times, namely 0.1%, 0.8%, 1%, 1.1% and 0.3%.

[0062] Step 203B: obtaining a terminal movement parameter sequence characterizing the movement of the terminal within the target time period, wherein the terminal movement parameter sequence is composed of movement parameters characterizing the movement of the terminal at different times.

[0063] In some embodiments, the terminal movement parameter sequence refers to a sequence of movement parameters collected at regular intervals within a target period, wherein the target period refers to a period when the quality of the WiFi network is degraded.

[0064] Optionally, the terminal movement parameter may include at least one of displacement, displacement direction, displacement acceleration, and terminal posture data. Among them, the displacement, displacement direction, and displacement acceleration can be used to determine the movement of the terminal relative to the AP. In some scenarios, the terminal has specific posture characteristics when following the user's movement. For example, in a scenario where the user puts the terminal in his trouser pocket and walks, the terminal posture is manifested as a regular swinging posture.

[0065] Exemplarily, when the terminal movement parameter sequence is characterized by displacement, the terminal movement parameter sequence includes displacements at three different times, namely, 1m, 1.7m, and 1.3m. When the terminal movement parameter sequence is characterized by displacement and displacement direction, the terminal movement parameter sequence includes displacements at three different times, and the displacement direction is characterized by a coincidence, namely, +1m, -1.7m, and +1.3m. Among them, "-" represents moving away from the AP, and "+" represents moving toward the AP.

[0066] Regarding the determination of the target period, optionally, when the WiFi network quality is degraded, the terminal may determine the period during which the WiFi network quality is degraded as the target period.

[0067] Optionally, the terminal may collect network quality parameters of the WiFi network quality at different times, and based on the same time sequence, collect a terminal mobility parameter sequence characterizing the terminal mobility within a target period, so that at the same time, there are both network quality parameters characterizing the WiFi network quality and mobility parameters characterizing the terminal mobility.

[0068] Step 203C, input the network quality parameter sequence and the terminal mobility parameter sequence into the cause analysis model to obtain the cause of the WiFi network quality degradation output by the cause analysis model, and the cause analysis model is trained based on the sample network quality parameter sequence, the sample terminal mobility parameter sequence and the WiFi network quality degradation cause label.

[0069] In some embodiments, the cause analysis model can determine the degree of correlation between the WiFi network quality and the terminal mobility situation based on the network quality characteristics contained in the network quality parameter sequence and the terminal mobility situation characteristics contained in the terminal mobility parameter sequence, thereby determining whether the degradation of the WiFi network quality is caused by the terminal movement and obtaining the cause of the degradation of the WiFi network quality.

[0070] Optionally, the WiFi network quality degradation reason tag may include a terminal movement reason and a non-terminal movement reason.

[0071] In a possible implementation, the terminal splices the network quality parameter sequence and the terminal mobility parameter sequence according to a set rule, and then inputs the result analysis model to obtain the cause of the degradation of the WiFi network quality determined by the cause analysis model.

[0072] In another possible implementation, the terminal inputs the network quality parameter sequence and the terminal mobility parameter sequence into two sub-embedding models respectively to obtain network quality features and terminal mobility features, and then determines whether the cause of the degradation of the WiFi network quality is the terminal mobility according to the correlation between the network quality features and the terminal mobility features. For example, when the correlation reaches a correlation threshold, it is determined that the cause of the degradation of the WiFi network quality is the terminal mobility.

[0073] Optionally, the sample network quality parameter sequence, the sample terminal movement parameter sequence and the WiFi network quality degradation reason label can be obtained by moving the terminal or keeping the terminal stationary and collecting parameters.

[0074] Regarding the training process of the cause analysis model, in one possible implementation, the terminal inputs a sample network quality parameter sequence and a sample terminal mobility parameter sequence into the cause analysis model, obtains the cause analysis model outputs the cause of the degradation of the WiFi network quality, compares it with the label of the cause of the degradation of the WiFi network quality, and then updates the model parameters of the cause analysis model until the cause analysis model can stably determine the correct cause of the degradation of the WiFi network quality.

[0075] Step 204: When the reason for the degradation of the WiFi network quality is the movement of the terminal, the dual network communication function is enabled.

[0076] The terminal first determines the cause of the reduced network quality, and ensures that the dual network communication function is turned on when the WiFi network quality is reduced due to the movement of the terminal, thereby improving the accuracy of the timing of turning on the dual network communication function. Automatically turning on the dual network communication function for other reasons is likely to cause a waste of traffic. For example, when the WiFi network quality is reduced due to a WiFi network failure, the terminal automatically turns on the dual network communication function, which can easily make it difficult for users to detect the WiFi network failure problem. Because the WiFi network cannot be repaired in time, the user continues to communicate through the cellular network, resulting in a waste of traffic.

[0077] When the reason for the degradation of WiFi network quality is terminal movement and the WiFi network is working normally (no faults), the WiFi network quality may further deteriorate or improve subsequently. Turning on the dual network communication function can dynamically coordinate the traffic allocation between the WiFi network and the cellular network. That is, when the WiFi network quality is good, the amount of communication data transmitted through the WiFi network can be greater than the amount of communication data transmitted through the cellular network. When the WiFi network quality is poor, the amount of communication data transmitted through the WiFi network can be less than the amount of communication data transmitted through the cellular network. There will be no waste of cellular network traffic due to the continuous transmission of a large amount of communication data through the cellular network.

[0078] In the embodiment of the present application, the terminal can determine the reason for the reduction in WiFi network quality when the WiFi network quality is reduced and the terminal is in a moving state. There are many reasons for the reduction in WiFi network quality. Among them, because the WiFi network quality is reduced due to the movement of the terminal, the WiFi network quality may be further reduced, so the terminal needs to enable the dual network communication function. By determining the reason for the reduction in network quality, the terminal improves the accuracy of the timing of enabling the dual network communication function.

[0079] Among them, the terminal inputs the network quality parameter sequence and the terminal movement parameter sequence into the cause analysis model by leveraging the powerful calculation and analysis capabilities of the cause analysis model, thereby determining the cause of the reduction in WiFi network quality, which is conducive to improving the accuracy of cause determination.

[0080] In some embodiments, in the process of determining the WiFi network quality of the WiFi network and the terminal mobility of the terminal, the terminal may determine the WiFi network quality and the terminal mobility simultaneously, or may determine the WiFi network quality and the terminal mobility successively, and then determine the target time period when the WiFi network quality decreases.

[0081] See also Figure 4 , Figure 4 FIG. 1 is a flowchart of a target time period determination process provided by an exemplary embodiment of the present application. The process includes the following steps:

[0082] Step 401: During the process of transmitting communication data, continuously determine the WiFi network quality of the WiFi network and the terminal mobility of the terminal.

[0083] In a possible implementation, the terminal continuously collects WiFi network quality parameters of the WiFi network and the mobility parameters of the terminal, and then continuously determines the WiFi network quality of the WiFi network based on the WiFi network quality parameters of the WiFi network, and continuously determines the terminal mobility of the terminal based on the mobility parameters of the terminal.

[0084] Step 402: Determine a time period during which the WiFi network quality is reduced and the change in the WiFi network quality reaches a first change threshold as a target time period.

[0085] Optionally, the degradation of the WiFi network quality may be represented by an absolute quantity representing the WiFi network quality.

[0086] Exemplarily, when the WiFi network quality is characterized by signal strength, the unit of the change amount of the WiFi network quality and the first change amount threshold is dBm, which represents the absolute amount of signal strength. The first change amount threshold may be 8dBm, and the WiFi signal strength drops from -50dBm to -60dBm during the target period, with a change amount of 10dBm, reaching the first change amount threshold. The signal strength in dBm can be converted to power in mW.

[0087] Optionally, the degradation of the WiFi network quality may be represented by a relative quantity representing the WiFi network quality.

[0088] Exemplarily, when the WiFi network quality is characterized by signal strength, the unit of the change amount of the WiFi network quality and the first change amount threshold is dB, which represents the relative amount of signal strength. The relative amount is the logarithmic calculation result of the ratio of two powers (unit mW), which is also the difference between two signal strengths (unit dB). The first change amount threshold can be 10dB, which represents that the signal strength is reduced by 10dB. The WiFi signal strength drops from -40dBm to -55dBm during the target period, and the signal strength decreases by 15dB, reaching the first change amount threshold.

[0089] Optionally, the degradation of the WiFi network quality may be represented by a conversion amount representing the WiFi network quality.

[0090] Exemplarily, when the WiFi network quality is characterized by signal strength, the unit of the change amount of the WiFi network quality and the first change amount threshold is the number of signal grids, which represents the conversion amount of the signal strength. For example, the first change amount threshold is 1 grid, and the signal strength decreases from 4 grids to 3 grids, which decreases by 1 grid and reaches the first change amount threshold. There is a corresponding relationship between the number of signal grids and the signal strength interval.

[0091] In the related art, the terminal first transmits communication data through the WiFi network, and only transmits the communication data through the cellular network when the quality of the WiFi network is reduced to the point where the WiFi network is unavailable.

[0092] It should be noted that in the embodiment of the present application, when the change in the WiFi network quality reaches the first change threshold, the WiFi network quality is not reduced to the point where the WiFi network is unavailable, but before it is reduced to the point where the WiFi network is unavailable, the terminal determines that the WiFi network quality may have a trend of continuing to decrease based on the WiFi network quality reduction reaching the first change threshold, and the WiFi network is still available at this time. The terminal prevents network delays from occurring in the process of the subsequent WiFi network quality being reduced to the point where the WiFi network is unavailable by turning on the dual network communication function. It can be seen that the first change threshold in the embodiment of the present application is less than the change threshold corresponding to when the WiFi network quality is reduced to the point where the WiFi network is unavailable.

[0093] In the embodiment of the present application, the terminal continuously determines the WiFi network quality and the terminal movement. When the WiFi network quality degradation reaches the first change threshold, the terminal determines the target time period, which is conducive to timely analyzing the cause of the WiFi network quality degradation within the target time period and improving the efficiency of cause determination.

[0094] Considering that the terminal continuously determines the WiFi network quality of the WiFi network and the terminal movement status of the terminal during the transmission of communication data, it is easy to increase power consumption and shorten the terminal's battery life. In order to reduce power consumption, the terminal can set a trigger condition for the process of determining the terminal movement status.

[0095] See also Figure 5 , Figure 5 FIG. 1 is a flowchart of a target time period determination process provided by another exemplary embodiment of the present application. The process includes the following steps:

[0096] Step 501, during the process of transmitting communication data, continuously determine the WiFi network quality of the WiFi network.

[0097] In a possible implementation, the terminal continuously collects WiFi network quality parameters of the WiFi network, and then continuously determines the WiFi network quality of the WiFi network based on the WiFi network quality parameters of the WiFi network. The terminal no longer continuously determines the terminal movement status, which is conducive to reducing power consumption.

[0098] Step 502: When the WiFi network quality decreases and the change in the WiFi network quality reaches a second change threshold, determine the terminal movement of the terminal, and the second change threshold is less than the first change threshold.

[0099] In some embodiments, since the degradation of WiFi network quality is not necessarily caused by the movement of the terminal, it is also possible that the WiFi network itself is unstable, resulting in a small degradation of WiFi network quality (the amount of change is less than the second variation threshold). However, the movement of the terminal has a greater impact on the quality of the WiFi network. When the amount of change in the WiFi network quality reaches the second variation threshold, the possibility that the cause of the degradation of the WiFi network quality is the movement of the terminal increases, and the terminal determines the terminal movement state, so as to further determine whether the cause of the degradation of the WiFi network quality is the movement of the terminal.

[0100] In order to prevent the WiFi network quality from being too low and affecting the transmission of communication data, when the WiFi network quality reduction reaches the first change amount threshold, the terminal no longer determines the cause of the WiFi network quality reduction based on the WiFi network quality and terminal movement in the subsequent time period, but analyzes the WiFi network quality and terminal movement in the time period before the WiFi network quality reduction reaches the first change amount threshold. Because the terminal movement situation begins to be determined when the change in the WiFi network quality reaches the second change amount threshold, the second change amount threshold is smaller than the first change amount threshold.

[0101] Step 503: Determine the time period during which the WiFi network quality decreases and the change amount of the WiFi network quality increases from the second change amount threshold to the first change amount threshold as the target time period.

[0102] When the degradation amount of the WiFi network quality reaches the second variation amount threshold, the terminal starts to determine the movement of the terminal. In the process of continuous degradation of the WiFi network quality, the terminal determines the WiFi network quality and the movement of the terminal, so as to determine the cause of the degradation of the WiFi network quality. The process of continuous degradation of the WiFi network quality is the process in which the variation amount of the WiFi network quality increases from the second variation amount threshold to the first variation amount threshold. The target period is the period in which the WiFi network quality is degraded and the variation amount of the WiFi network quality increases from the second variation amount threshold to the first variation amount threshold.

[0103] In the embodiment of the present application, the terminal continuously determines the WiFi network quality, and when the WiFi network quality decreases and the change amount reaches the second change amount, the terminal determines the terminal movement situation. The terminal does not need to continuously determine the terminal movement situation, which is conducive to saving power consumption. If the WiFi network quality continues to decrease, the terminal determines the period when the change amount increases from the second change amount threshold to the first change amount threshold as the target period, so as to determine the cause of the decrease in WiFi network quality based on the WiFi network quality and the terminal movement situation within the target period.

[0104] Considering that when the terminal is in continuous use, the network needs to be smooth, and when it is not in continuous use, the requirement for network smoothness is lower. In addition to determining whether to enable the dual-network communication function based on the WiFi network quality and terminal mobility, the terminal can also further determine whether to enable the dual-network communication function based on whether the terminal is in continuous use, which is conducive to improving the accuracy of the timing of enabling the dual-network communication function, and can save network traffic of the cellular network when the terminal is not in continuous use.

[0105] Optionally, when the reason why the WiFi network quality is degraded is that the terminal is moving and the WiFi network is in continuous use, the terminal enables the dual network communication function.

[0106] In a possible implementation, the terminal determines whether the WiFi network is in continuous use based on at least one of historical network traffic and historical network speed. The terminal determines that the WiFi network is in continuous use when the historical network traffic is greater than a traffic threshold and / or the historical network speed is greater than a speed threshold.

[0107] In another possible implementation, the terminal determines whether the WiFi network is in a continuous use state according to the application type of the application displayed in the foreground. Wherein, the terminal determines that the terminal is in a continuous use state when the application displayed in the foreground belongs to a continuous use application. For example, the terminal determines social applications as non-continuous use applications, and determines game applications and video applications as continuous use applications. For another example, the terminal determines an application whose user history continuous use time is greater than a first time threshold as a continuous use application, and determines an application whose user history continuous use time is less than the first time threshold as a non-continuous use application.

[0108] In the embodiment of the present application, the terminal determines whether the WiFi network is in continuous use, and further determines whether to turn on the dual network communication function when the reason for the reduction in WiFi network quality is the movement of the terminal, thereby avoiding easily turning on the dual network communication function and causing traffic waste, thereby improving the accuracy of the timing of turning on the dual network communication function.

[0109] In some embodiments, after the dual network communication function is turned on, the terminal does not need to communicate simultaneously through the WiFi network and the cellular network in some possible situations. Maintaining the dual network communication function of the terminal may cause a waste of cellular network traffic.

[0110] Optionally, the terminal turns off the dual network communication function when the WiFi network quality improves or the network non-use time reaches a time threshold.

[0111] Among them, when the quality of WiFi network improves, the terminal communicates through the WiFi network, which can ensure smooth communication without the simultaneous participation of the cellular network. At this time, keeping the dual-network communication function turned on will easily consume the traffic of the cellular network, resulting in traffic waste, and the terminal turns off the dual-network communication function.

[0112] In a possible scenario, a terminal moves within the coverage of a single WiFi network, wherein when the terminal is far away from the AP, the WiFi network quality decreases, and when the terminal moves toward the AP, the WiFi network quality increases.

[0113] In another possible scenario, the terminal leaves the coverage of the first WiFi network and enters the coverage of the second WiFi network. When the terminal is far away from the AP corresponding to the first WiFi network, the WiFi network quality decreases, and when the terminal enters the second WiFi network and moves toward the AP corresponding to the second WiFi network, the WiFi network quality increases.

[0114] Optionally, the improvement in WiFi network quality may be represented by an absolute quantity representing the WiFi network quality, for example, the signal strength increases from -50 dBm to -35 dBm.

[0115] Optionally, the improvement in WiFi network quality may also be represented by a relative quantity representing the WiFi network quality, for example, the signal strength is improved by 15 db.

[0116] Optionally, the improvement in WiFi network quality may also be represented by a conversion amount representing the WiFi network quality, for example, the signal strength increases by 1 bar.

[0117] In addition, when the terminal is not using the network, the terminal does not need to keep the dual network communication function turned on. Frequent opening and closing of the dual network communication function is not avoided. When the terminal does not use the network for a certain period of time, the dual network communication function is turned off. Among them, when the terminal is not using the network, the network connection is maintained.

[0118] Regarding whether the terminal uses the network, in a possible implementation, the terminal determines whether the terminal uses the network based on at least one of historical network traffic and historical network speed. The terminal determines that the terminal uses the network when the historical network traffic is greater than a traffic threshold and / or the historical network speed is greater than a speed threshold.

[0119] In another possible implementation, the terminal determines whether to use the network according to the screen state. When the terminal is in a screen-on state, the terminal determines that the network is being used, and when the terminal is in a screen-off state, the terminal determines that the network is not being used.

[0120] Furthermore, when the WiFi network quality improves, the terminal may also determine whether to turn off the dual network communication function according to the WiFi network quality change trend.

[0121] In some embodiments, when the WiFi network quality improves, the terminal determines the WiFi network quality change trend based on the terminal movement and the WiFi network quality, and then turns off the dual network communication function when the WiFi network quality change trend indicates that the WiFi network quality is maintained.

[0122] The WiFi network quality change trend includes the WiFi network quality maintenance trend and the WiFi network quality fluctuation trend. For example, when the terminal moves toward the AP corresponding to the WiFi network, the WiFi network quality improves, and then the terminal stops moving, and the WiFi network quality maintains. For another example, when the terminal moves toward the AP corresponding to the WiFi network, and then moves away from the AP, and so on, the WiFi network quality changes repeatedly between improvement and reduction.

[0123] When the WiFi network quality improves and the WiFi network quality change trend indicates that the WiFi network quality is maintained, it is highly likely that the WiFi network quality will remain in a good state in the future. Turning off the dual network communication function can save cellular network traffic.

[0124] When the WiFi network quality improves and the WiFi network quality change trend indicates WiFi network quality fluctuations, the WiFi network quality is likely to deteriorate subsequently. Disabling the dual network communication function can easily lead to communication delays.

[0125] In a possible implementation, the terminal inputs a network quality parameter sequence characterizing the quality of the WiFi network within the target improvement period and a terminal mobility parameter sequence characterizing the terminal mobility within the target improvement period into a quality trend analysis model to obtain a WiFi network quality trend output by the quality trend analysis model. The network quality parameter sequence is composed of quality parameters characterizing the quality of the WiFi network at different times, the terminal mobility parameter sequence is composed of mobility parameters characterizing the terminal mobility at different times, and the quality trend analysis model is trained based on a sample network quality parameter sequence, a sample terminal mobility parameter sequence, and a WiFi network quality trend label. The target improvement period refers to a period in which the WiFi network quality is improved and the change in the WiFi network quality reaches a third change threshold.

[0126] In another possible implementation, the terminal determines a quality change rate sequence of the WiFi network quality based on a network quality parameter sequence of the WiFi network quality within the target improvement period, and determines a displacement change rate sequence of the terminal based on a displacement amount sequence of the terminal within the target improvement period. When the displacement change rate sequence and the quality change rate sequence indicate that the WiFi network quality and the displacement amount remain stable, the terminal determines that the WiFi network quality change trend is WiFi network quality maintenance.

[0127] In the embodiment of the present application, when the quality of the WiFi network is improved, the possibility of delays in the WiFi network is reduced, and the cellular network is no longer needed to transmit communication data. When the terminal has not used the network for a period of time that reaches a time threshold, maintaining dual-network communication is likely to cause unnecessary traffic consumption. The terminal saves cellular network traffic by turning off the dual-network communication function.

[0128] Furthermore, when the WiFi network quality is improved and maintained, the terminal turns off the dual network communication function to ensure that the WiFi network communication quality is good after the dual network communication function is turned off, which is conducive to improving the fluency of network communication and improving the accuracy of the timing of turning off the dual network communication function.

[0129] Optionally, when the dual network communication function is in a disabled state, the terminal may prompt the user to enable the dual network communication function to improve the network communication effect, such as Figure 6 As shown, the following steps are included:

[0130] Step 601: When the quality of the WiFi network is reduced and the terminal movement status indicates that the terminal is in a moving state, a dual network communication prompt is displayed, where the dual network communication prompt is used to inquire whether to allow the dual network communication function to be enabled.

[0131] Exemplarily, the dual network communication prompt may display "Do you allow the dual network communication function to be enabled for network acceleration?" and display a confirmation button and a cancel button.

[0132] Optionally, the terminal determines whether to display the dual network communication prompt based on historical WiFi network traffic and cellular network traffic packet remaining.

[0133] Among them, when the historical WiFi network traffic indicates that the terminal is currently using a high-traffic service and the cellular network traffic packet balance is greater than the balance threshold, the terminal displays a dual-network communication prompt so that communication data can be transmitted synchronously through the WiFi network and the cellular network in the future. Because the terminal has a small demand for network acceleration when the historical WiFi network traffic indicates that the terminal is currently using a low-traffic service, and because the cellular network traffic packet balance is less than the balance threshold, the terminal cannot use the dual-network communication function to achieve network acceleration due to insufficient cellular network traffic packet balance. Therefore, when the historical WiFi network traffic indicates that the terminal is currently using a low-traffic service, or when the cellular network traffic packet balance is less than the balance threshold, the terminal does not display a dual-network communication prompt.

[0134] Step 602: upon receiving a confirmation operation for the dual network communication prompt, enable the dual network communication function.

[0135] Optionally, upon receiving a cancel operation on the dual network communication prompt, the terminal continues to use the WiFi network.

[0136] Optionally, after the user turns on the dual network communication function, the terminal can automatically turn on the dual network communication function when the WiFi network quality deteriorates again and the terminal mobility indicates that the terminal is in a mobile state, so as to avoid interference with the user's use of the terminal due to frequent display of dual network communication prompts.

[0137] In the embodiment of the present application, the terminal prompts the user to turn on the dual network communication function by displaying a dual network communication prompt, so that the user can choose whether to turn on the dual network communication function according to actual needs, thereby improving the accuracy of the turning-on timing.

[0138] It should be noted that in the technical solutions provided in the above embodiments, the automatic opening and closing of the dual network communication function by the terminal is realized when the dual network communication intelligent opening function is enabled. When the dual network communication intelligent opening function is disabled, the terminal cannot automatically open and close the dual network communication function.

[0139] In some embodiments, the terminal turns on the dual network communication function when the quality of the WiFi network is reduced, the terminal movement situation indicates that the terminal is in a mobile state, and the dual network communication intelligent turning on function is in an enabled state.

[0140] In the related art, the terminal provides a network acceleration function, which continuously uses the WiFi network and the cellular network for communication after being turned on, and the terminal cannot intelligently control the dual network communication function according to the actual network demand. The dual network communication function intelligent turning on function provided in the embodiment of the present application can determine whether to turn on the dual network communication function according to the terminal movement situation and the WiFi network quality, which is different from the network acceleration function in the related art.

[0141] Optionally, the terminal can display an interface control for controlling the dual network communication intelligent startup function on the function configuration interface. When the interface control is turned on, the dual network communication intelligent startup function is enabled; when the interface control is turned off, the dual network communication intelligent startup function is turned off.

[0142] In an illustrative example, Figure 7 As shown, the first interface control 701 is used to control the dual-channel network acceleration function. When the dual-channel network acceleration function is enabled, the user-specified application continues to transmit communication data synchronously through the WiFi network and the cellular network. The second interface control 702 is used to control the dual-channel network intelligent start function. When the dual-channel network intelligent start function is enabled, the terminal can intelligently determine whether to turn on the WiFi network based on the terminal movement and the WiFi network quality.

[0143] In an embodiment of the present application, the terminal provides the user with a dual network communication intelligent activation function. The terminal determines whether to activate the dual network communication function according to the quality of the WiFi network and the terminal's mobility only when the dual network communication intelligent activation function is enabled, so that the terminal's network communication control meets the actual needs of the user, which is conducive to further improving the accuracy of the timing of activating the dual network communication function.

[0144] See also Figure 8 , Figure 8 This is a flow chart of a network communication device provided by an exemplary embodiment of the present application. The device includes the following modules.

[0145] The communication module 801 is used to transmit communication data through the WiFi network when the device is in a WiFi environment and the dual network communication function is turned off. The dual network communication function refers to the function of synchronously transmitting the communication data through the WiFi network and the cellular network.

[0146] The determination module 802 is used to determine the WiFi network quality of the WiFi network and the terminal mobility of the terminal during the transmission of the communication data;

[0147] The enabling module 803 is configured to enable the dual network communication function when the quality of the WiFi network is reduced and the terminal mobility situation indicates that the terminal is in a mobile state.

[0148] Optionally, the opening module 803 is further used to:

[0149] When the WiFi network quality is reduced and the terminal movement condition indicates that the terminal is in the moving state, determining a reason for the reduction in WiFi network quality based on the WiFi network quality and the terminal movement condition;

[0150] When the reason for the degradation of the WiFi network quality is the movement of the terminal, the dual network communication function is enabled.

[0151] Optionally, the opening module 803 is further used to:

[0152] Acquire a network quality parameter sequence characterizing the quality of the WiFi network within a target period, wherein the network quality parameter sequence is composed of network quality parameters characterizing the quality of the WiFi network at different times;

[0153] Acquire a terminal movement parameter sequence characterizing the movement of the terminal within the target time period, wherein the terminal movement parameter sequence is composed of movement parameters characterizing the movement of the terminal at different times;

[0154] The network quality parameter sequence and the terminal movement parameter sequence are input into a cause analysis model to obtain the cause of the degradation of the WiFi network quality output by the cause analysis model, wherein the cause analysis model is trained based on a sample network quality parameter sequence, a sample terminal movement parameter sequence and a label of the cause of the degradation of the WiFi network quality.

[0155] Optionally, the determining module 802 is further configured to:

[0156] During the transmission of the communication data, continuously determining the WiFi network quality of the WiFi network and the terminal movement status of the terminal;

[0157] The device also includes a time period determination module, which is used to:

[0158] The WiFi network quality is reduced and a time period during which a change in the WiFi network quality reaches a first change threshold is determined as the target time period.

[0159] Optionally, the determining module 802 is further configured to:

[0160] During the transmission of the communication data, continuously determining the WiFi network quality of the WiFi network;

[0161] When the WiFi network quality decreases and the change amount of the WiFi network quality reaches a second change amount threshold, determining the terminal movement status of the terminal, and the second change amount threshold is less than the first change amount threshold;

[0162] The device time period determination module is further used for:

[0163] The WiFi network quality is reduced, and a time period during which the change amount of the WiFi network quality increases from the second change amount threshold to the first change amount threshold is determined as the target time period.

[0164] Optionally, the opening module 803 is further used to:

[0165] When the reason for the degradation of the WiFi network quality is the movement of the terminal and the WiFi network is in continuous use, the dual network communication function is enabled.

[0166] Optionally, the device further comprises a closing module, configured to:

[0167] When the quality of the WiFi network improves, or when the network is not used for a period of time that reaches a time threshold, the dual network communication function is turned off.

[0168] Optionally, the closing module is further used to:

[0169] When the WiFi network quality improves, determining a WiFi network quality change trend based on the terminal movement situation and the WiFi network quality;

[0170] When the WiFi network quality change trend indicates that the WiFi network quality is maintained, the dual network communication function is disabled.

[0171] Optionally, the opening module 803 is further used to:

[0172] When the quality of the WiFi network is reduced and the terminal movement condition indicates that the terminal is in a moving state, displaying a dual network communication prompt, wherein the dual network communication prompt is used to inquire whether to allow the dual network communication function to be enabled;

[0173] When a confirmation operation on the dual network communication prompt is received, the dual network communication function is enabled.

[0174] Optionally, the opening module 803 is further used to:

[0175] When the quality of the WiFi network is reduced, the terminal movement condition indicates that the terminal is in a moving state, and the dual network communication intelligent start-up function is in an enabled state, the dual network communication function is turned on.

[0176] In the embodiment of the present application, when in a WiFi environment, the terminal transmits communication data through the WiFi network. Since the distance between the terminal and the router that sends the WiFi network signal is negatively correlated with the WiFi network quality, when the terminal is in a mobile state, the WiFi network quality is prone to instability and causes network delay problems. The terminal determines the WiFi network quality and the terminal movement, and when the WiFi network quality is reduced due to the terminal movement, the terminal transmits communication data synchronously through the WiFi network and the cellular network, so that the cellular network can play a communication function when the WiFi network quality is too poor, improve the communication data transmission efficiency, help solve the network delay problem caused by user movement, ensure the smoothness of network communication, and help improve the user's network communication experience.

[0177] See also Fig. 9 , Fig. 9 9 is a schematic diagram of a terminal structure provided by an exemplary embodiment of the present application. The terminal includes a processor 901 and a memory 902.

[0178] Optionally, the processor 901 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 902, and calling data stored in the memory 902. Optionally, the processor 901 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 901 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU) and a baseband chip. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch display; the NPU is used to implement artificial intelligence (Artificial Intelligence, AI) functions; and the baseband chip is used to process wireless communications. It is understandable that the above baseband chip may not be integrated into the processor 901, but may be implemented by a separate chip.

[0179] The memory 902 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 902 includes a non-transitory computer-readable storage medium. The memory 902 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, a phone book), etc.

[0180] In addition, those skilled in the art will appreciate that the structure of the terminal shown in the above figures does not constitute a limitation on the terminal, and the terminal may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0181] An embodiment of the present application also provides a computer-readable storage medium, which stores at least one computer instruction. The at least one computer instruction is loaded and executed by a processor to implement the network communication method provided in the above embodiment.

[0182] Optionally, the computer readable storage medium may include: ROM, RAM, solid state drives (SSD) or optical disks, etc. Among them, RAM may include resistance random access memory (ReRAM) and dynamic random access memory (DRAM).

[0183] An embodiment of the present application provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor of a terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the network communication method described in the above embodiment.

[0184] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by a program to guide the relevant hardware. The program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

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

Claims

1. A network communication method, characterized in that: The method comprises: In a WiFi environment, when the dual-network communication function is turned off, transmitting communication data through the WiFi network, wherein the dual-network communication function refers to a function of synchronously transmitting the communication data through the WiFi network and the cellular network; During the transmission of the communication data, determining the WiFi network quality of the WiFi network and the terminal mobility of the terminal; When the quality of the WiFi network decreases and the terminal movement condition indicates that the terminal is in a moving state, the dual network communication function is enabled.

2. The method according to claim 1, characterized in that When the quality of the WiFi network is reduced and the terminal movement condition indicates that the terminal is in a moving state, enabling the dual network communication function includes: When the WiFi network quality is reduced and the terminal movement condition indicates that the terminal is in the moving state, determining a reason for the reduction in WiFi network quality based on the WiFi network quality and the terminal movement condition; When the reason for the degradation of the WiFi network quality is the movement of the terminal, the dual network communication function is enabled.

3. The method according to claim 2, characterized in that The determining, based on the WiFi network quality and the terminal movement situation, a reason for the reduction in WiFi network quality includes: Acquire a network quality parameter sequence characterizing the quality of the WiFi network within a target period, wherein the network quality parameter sequence is composed of network quality parameters characterizing the quality of the WiFi network at different times; Acquire a terminal movement parameter sequence characterizing the movement of the terminal within the target time period, wherein the terminal movement parameter sequence is composed of movement parameters characterizing the movement of the terminal at different times; The network quality parameter sequence and the terminal movement parameter sequence are input into a cause analysis model to obtain the cause of the degradation of the WiFi network quality output by the cause analysis model, wherein the cause analysis model is trained based on a sample network quality parameter sequence, a sample terminal movement parameter sequence and a label of the cause of the degradation of the WiFi network quality.

4. The method according to claim 3, characterized in that The step of determining the WiFi network quality of the WiFi network and the terminal mobility of the terminal during the transmission of the communication data includes: During the transmission of the communication data, continuously determining the WiFi network quality of the WiFi network and the terminal movement status of the terminal; The method further comprises: The WiFi network quality is reduced and a time period during which a change in the WiFi network quality reaches a first change threshold is determined as the target time period.

5. The method according to claim 3, characterized in that: The step of determining the WiFi network quality of the WiFi network and the terminal mobility of the terminal during the transmission of the communication data includes: During the transmission of the communication data, continuously determining the WiFi network quality of the WiFi network; When the WiFi network quality decreases and the change amount of the WiFi network quality reaches a second change amount threshold, determining the terminal movement status of the terminal, and the second change amount threshold is less than the first change amount threshold; The method further comprises: The WiFi network quality is reduced, and a time period during which the change amount of the WiFi network quality increases from the second change amount threshold to the first change amount threshold is determined as the target time period.

6. The method according to claim 2, characterized in that When the reason for the degradation of the WiFi network quality is the movement of the terminal, enabling the dual network communication function includes: When the reason for the degradation of the WiFi network quality is the movement of the terminal and the WiFi network is in continuous use, the dual network communication function is enabled.

7. The method according to any one of claims 1 to 6, characterized in that: After enabling the dual network communication function, the method further includes: When the quality of the WiFi network improves, or when the network is not used for a period of time that reaches a time threshold, the dual network communication function is turned off.

8. The method according to claim 7, characterized in that When the WiFi network quality is improved, disabling the dual network communication function includes: When the WiFi network quality improves, determining a WiFi network quality change trend based on the terminal movement situation and the WiFi network quality; When the WiFi network quality change trend indicates that the WiFi network quality is maintained, the dual network communication function is disabled.

9. The method according to any one of claims 1 to 6, characterized in that: When the quality of the WiFi network is reduced and the terminal movement condition indicates that the terminal is in a moving state, enabling the dual network communication function includes: When the quality of the WiFi network is reduced and the terminal movement condition indicates that the terminal is in a moving state, displaying a dual network communication prompt, wherein the dual network communication prompt is used to inquire whether to allow the dual network communication function to be enabled; When a confirmation operation on the dual network communication prompt is received, the dual network communication function is enabled.

10. The method according to any one of claims 1 to 6, characterized in that: When the quality of the WiFi network is reduced and the terminal movement condition indicates that the terminal is in a moving state, enabling the dual network communication function includes: When the quality of the WiFi network is reduced, the terminal movement condition indicates that the terminal is in a moving state, and the dual network communication intelligent start-up function is in an enabled state, the dual network communication function is turned on.

11. A network communication device, characterized in that: The device comprises: A communication module, used to transmit communication data through a WiFi network when the device is in a WiFi environment and the dual network communication function is turned off, wherein the dual network communication function refers to a function of synchronously transmitting the communication data through the WiFi network and the cellular network; A determination module, used to determine the WiFi network quality of the WiFi network and the terminal mobility of the terminal during the transmission of the communication data; The enabling module is used to enable the dual network communication function when the quality of the WiFi network is reduced and the terminal movement condition indicates that the terminal is in a moving state.

12. A terminal, characterized in that: The terminal includes a processor and a memory, wherein the memory stores at least one computer instruction, and the at least one computer instruction is loaded and executed by the processor to implement the network communication method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a processor to implement the network communication method according to any one of claims 1 to 10.

14. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; the processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal implements the network communication method as described in any one of claims 1 to 10.