Network connection method and device, computer readable storage medium, and terminal device
By monitoring the functional status of the application, limiting the speed and network level of the terminal device in a short time, and restoring high-speed and high-level networks for a long time, the problem of traffic consumption under the new generation of mobile networks is solved and segmented traffic control is realized and improve user experience.
Patent Information
- Application Number
- CN202111398360.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-19
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2041-11-19
AI Technical Summary
The new generation of mobile networks has increased users' traffic consumption, especially when users no longer watch videos, loaded videos continue to consume traffic, resulting in unnecessary waste of traffic.
By monitoring the functional status of the application, limiting the upper limit of the uplink and downlink rate of the terminal device and the mobile network level in a short time to slow down the loading speed and recovering higher-speed and high-level networks for a long time to achieve segmented control of traffic.
Effectively saves traffic, is suitable for applications that use for short and long time, improving traffic efficiency, especially dynamically adjusting the rate and network level according to the user's gaze during video calls and online video playback, improving user experience.
Smart Images

Figure CN114051270B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a network connection method and device, a computer-readable storage medium, and a terminal device. Background Art
[0002] The launch of the new generation of mobile networks has improved the user experience, but it has also greatly increased the user's data consumption. Taking the fifth generation (5G) mobile network as an example, its uplink and downlink peak rates are much higher than those of the 4G mobile network.
[0003] However, after adopting the new generation of mobile networks, users' data consumption has also increased. Take online video playback as an example. After watching a video for a few seconds, the user is no longer interested in the video content and quits watching. However, under the 5G network speed, the video may have been loaded. In this case, the user consumes unnecessary data.
[0004] There is an urgent need for a network connection method that can effectively save traffic. Summary of the invention
[0005] The technical problem solved by the present invention is to provide a network connection method and device, a computer-readable storage medium, and a terminal device, which can control the loading speed in sections, thereby effectively saving traffic.
[0006] To solve the above technical problems, an embodiment of the present invention provides a network connection method, including: if the current access network is a mobile network, monitoring a preset application; within a preset time period after the preset function of the application is activated, using a first preset rate ratio to limit the upper limits of the uplink and downlink rates of the terminal device, and / or, using a mobile network of a lower level than the default mobile network; for part or all of the time after the preset time period after the preset function of the application is activated, using a second preset rate ratio to limit the upper limits of the uplink and downlink rates of the terminal device, and / or, restoring the use of the default mobile network; wherein, compared with within the preset time period, the upper limits of the uplink and downlink rates of the terminal device are higher during part or all of the time after the preset time period.
[0007] Optionally, using a first preset rate ratio to limit the upper limits of the uplink and downlink rates of a terminal device includes: using the product of the first preset rate ratio and the upper limits of the uplink and downlink rates of the adopted mobile network as the upper limits of the uplink and downlink rates of the terminal device.
[0008] Optionally, using a second preset rate ratio to limit the upper limits of the uplink and downlink rates of the terminal device includes: using the product of the second preset rate ratio and the upper limits of the uplink and downlink rates of the adopted mobile network as the upper limits of the uplink and downlink rates of the terminal device; wherein, based on the same mobile network, the second preset rate ratio is greater than the first preset rate ratio.
[0009] Optionally, the type of the application is a video call type, and the preset function of the application is a video call function; monitoring the preset application includes: if a first request message sent by the application is received, determining that the video call function of the application is activated.
[0010] Optionally, the first request information is selected from: a video call start button is clicked, and a request to turn on the camera.
[0011] Optionally, the type of the application is a video call type, and the preset function of the application is a video call function; the method also includes: after a preset period of time after the video call function is activated, continuously detecting whether there is a face in front of the camera; if no face is detected, using the first preset rate ratio to limit the upper limit of the uplink and downlink rates of the terminal device, and / or using a mobile network of a lower level than the default mobile network.
[0012] Optionally, the method further includes: if a face is detected, using the second preset rate ratio to limit the upper limit of the uplink and downlink rates of the terminal device, and / or restoring the use of the default mobile network.
[0013] Optionally, the type of the application is an online video playback type, and the preset function of the application is an online video playback function; monitoring the preset application includes: if a second request information sent by the application is received, determining that the online video playback function of the application is started.
[0014] Optionally, the second request information is selected from: a play link of an online video is clicked, and a play button of the online video is clicked.
[0015] Optionally, the type of the application is an online video playback type, and the preset function of the application is an online video playback function; the method also includes: preloading online videos of a first preset loading ratio within a preset time after the online video playback function of the application is started; preloading online videos of a second preset loading ratio for part or all of the time after the preset time after the online video playback function of the application is started; wherein the second preset loading ratio is greater than the first preset loading ratio.
[0016] Optionally, the method further includes: in response to a click on a pause button of the online video, preloading the online video at a third preset loading ratio; wherein the third preset loading ratio is smaller than the first preset loading ratio.
[0017] Optionally, the type of the application is an online video playback type, and the preset function of the application is an online video playback function; the method also includes: in response to the pause button of the online video being clicked or the stop button being clicked, using a third preset rate ratio to limit the upper limit of the uplink and downlink rates of the terminal device; wherein, based on the same mobile network, the third preset rate ratio is less than the first preset rate ratio.
[0018] To solve the above technical problems, an embodiment of the present invention provides a network connection device, including: a monitoring module, used to monitor a preset application when the current access network is a mobile network; a first limiting module, used to limit the upper limits of the uplink and downlink rates of a terminal device by using a first preset rate ratio within a preset time period after the preset function of the application is activated, and / or, use a mobile network of a lower level than the default mobile network; a second limiting module, used to limit the upper limits of the uplink and downlink rates of the terminal device by using a second preset rate ratio for part or all of the time after the preset time period after the preset function of the application is activated, and / or, restore the use of the default mobile network; wherein, compared with within the preset time period, the upper limits of the uplink and downlink rates of the terminal device are higher in part or all of the time after the preset time period.
[0019] In order to solve the above technical problem, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above network connection method are executed.
[0020] To solve the above technical problems, an embodiment of the present invention provides a terminal device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor executes the steps of the above network connection method when running the computer program.
[0021] Compared with the prior art, the technical solution of the embodiment of the present invention has the following beneficial effects:
[0022] In an embodiment of the present invention, a preset function of a preset application is pre-selected, and within a preset time after the preset function is activated, a smaller proportion of the upper limit of the uplink and downlink speed and / or a low-level mobile network is used, thereby slowing down the loading speed; and part or all of the time after the preset time after the preset function is activated, a larger proportion of the upper limit of the uplink and downlink speed and / or a high-level mobile network is used instead, thereby speeding up the loading speed. By adopting the solution of the embodiment of the present invention, when a user uses a preset function for a short time and uses the function for a long time, respective proportions of the upper limit of the uplink and downlink speed and / or respective levels of mobile network can be used, and the loading speed can be controlled in sections, thereby effectively saving traffic.
[0023] Furthermore, the type of the application is a video call type, and the preset function of the application is a video call function; the method further includes: after a preset time after the video call function is activated, continuously detecting whether there is a face in front of the camera; if no face is detected, using the first preset rate ratio to limit the upper limit of the uplink and downlink rates of the terminal device, and / or using a mobile network of a lower level than the default mobile network. By using the solution of the embodiment of the present invention, when a user makes a video call for a long time, it can be determined whether the user is looking at the screen based on whether there is a face in front of the camera. If not, a smaller proportion of the upper limit of the uplink and downlink rates and / or a lower level of mobile network is used, thereby slowing down the loading speed and reducing the image quality, thereby effectively saving traffic.
[0024] Furthermore, if a face is detected, the upper limit of the uplink and downlink rates of the terminal device is limited by the second preset rate ratio, and / or the default mobile network is restored. With the solution of the embodiment of the present invention, when a user makes a video call for a long time, it can be determined whether the user is looking at the screen according to whether there is a face in front of the camera. If there is a face, a larger upper limit of the uplink and downlink rates and / or a high-level mobile network is used, so as to speed up the loading speed, improve the image quality, and effectively improve the user experience.
[0025] Furthermore, the type of the application is an online video playback type, and the preset function of the application is an online video playback function; the method further includes: preloading online videos of a first preset loading ratio within a preset time after the online video playback function of the application is started; and preloading online videos of a second preset loading ratio for part or all of the time after the preset time after the online video playback function of the application is started. By adopting the scheme of the embodiment of the present invention, online videos can be preloaded in respective proportions when the user uses the online video playback function for a short time and for a long time, and the loading amount can be effectively controlled, so that only a small amount of preloading is performed when the online video is played for a short time, and a large amount of preloading is performed when the online video is played for a long time, further effectively saving traffic.
[0026] Furthermore, in response to the pause button of the online video being clicked, the online video of the third preset loading ratio is preloaded, and when the playback is paused, the minimum loading amount can be used, or even preloading can be stopped, thereby further effectively saving traffic.
[0027] Furthermore, in response to the pause button of the online video being clicked or the stop button being clicked, a third preset rate ratio is used to limit the upper limits of the uplink and downlink rates of the terminal device. When pausing or stopping the playback, the minimum ratio of the upper limits of the uplink and downlink rates can be used, thereby effectively controlling the loading speed and further effectively saving traffic. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 is a flow chart of a first network connection method in an embodiment of the present invention;
[0029] Figure 2 is a partial flow chart of a second network connection method in an embodiment of the present invention;
[0030] Figure 3 is a flow chart of a third network connection method in an embodiment of the present invention;
[0031] Figure 4 is a partial flow chart of a fourth network connection method according to an embodiment of the present invention;
[0032] Figure 5 is a flow chart of a fifth network connection method according to an embodiment of the present invention;
[0033] Figure 6 It is a structural schematic diagram of a network connection device in an embodiment of the present invention. DETAILED DESCRIPTION
[0034] As mentioned earlier, after adopting the new generation of mobile networks, users' data consumption has also increased, consuming unnecessary data.
[0035] In an existing technical solution, for different applications, you can switch between 4G and 5G according to the bandwidth usage of the application. For example, for Weibo and email, considering that they do not have high bandwidth requirements, you can keep it on the 4G network, or switch from the 5G network to the 4G network; while for video, you can switch from the 4G network to the 5G network, or keep it on the 5G network to obtain higher bandwidth and lower latency.
[0036] The inventor of the present invention has found through research that in the prior art, the mobile network is selected based on the application, each application has a corresponding mobile network, and continues to use the mobile network after being started. Although the above technical solution can adjust the bandwidth and delay of different applications, it does not involve how to save traffic.
[0037] In an embodiment of the present invention, a preset function of a preset application is pre-selected, and within a preset time after the preset function is activated, a smaller proportion of the upper limit of the uplink and downlink speed and / or a low-level mobile network is used, thereby slowing down the loading speed; and part or all of the time after the preset time after the preset function is activated, a larger proportion of the upper limit of the uplink and downlink speed and / or a high-level mobile network is used instead, thereby speeding up the loading speed. By adopting the solution of the embodiment of the present invention, when a user uses a preset function for a short time and uses the function for a long time, respective proportions of the upper limit of the uplink and downlink speed and / or respective levels of mobile network can be used, and the loading speed can be effectively segmented controlled, thereby effectively saving traffic.
[0038] In order to make the above-mentioned objects, features and beneficial effects of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0039] Reference Figure 1 , Figure 1 1 is a flow chart of a first network connection method in an embodiment of the present invention. The first network connection method may include steps S11 to S13:
[0040] Step S11: If the current access network is a mobile network, monitor the preset application program;
[0041] Step S12: within a preset time period after the preset function of the application is activated, using a first preset rate ratio to limit the upper limit of the uplink and downlink rates of the terminal device, and / or using a mobile network of a lower level than the default mobile network;
[0042] Step S13: For part or all of the time after the preset time after the preset function of the application is activated, the upper limit of the uplink and downlink rates of the terminal device is limited by a second preset rate ratio, and / or the default mobile network is restored.
[0043] Among them, compared with the preset time period, the upper limit of the uplink and downlink rates of the terminal device is higher in part or all of the time after the preset time period.
[0044] It is understandable that, in a specific implementation, the method can be implemented in the form of a software program, and the software program runs in a processor integrated inside a chip or a chip module.
[0045] In the specific implementation of step S11, the current access network can be judged first. If it is a mobile network, the preset application can be monitored. It can be understood that for non-mobile networks, such as wireless local area networks (WLAN), there is no need to worry about traffic consumption.
[0046] Among them, the preset application can be an application that requires a bandwidth greater than a preset bandwidth threshold and / or a traffic consumption greater than a preset traffic consumption threshold. For example, the type of the application can be a video call type or an online video playback type.
[0047] In the specific implementation of step S12, if the preset function of the application is activated, the terminal device adopts a lower uplink and downlink rate upper limit within the preset time period, for example, using a first preset rate ratio to limit the uplink and downlink rate upper limits of the terminal device, and / or using a mobile network of a lower level than the default mobile network.
[0048] In a specific implementation, only a mobile network with a lower level than the default mobile network may be adopted.
[0049] As a non-limiting example, the default mobile network may be a 5G mobile network and the 5G mobile network is currently used, and in response to the preset function of the application being activated, the network switches to the 4G mobile network; or the default mobile network may be a 5G mobile network and the 4G mobile network is currently used, and after the preset function of the application is activated, the network continues to remain on the 4G mobile network.
[0050] In a specific implementation, only the first preset rate ratio may be used to limit the upper limits of the uplink and downlink rates of the terminal device.
[0051] Furthermore, the step of using a first preset rate ratio to limit the upper limit of the uplink and downlink rates of the terminal device may include: using the product of the first preset rate ratio and the upper limit of the uplink and downlink rates of the adopted mobile network as the upper limit of the uplink and downlink rates of the terminal device.
[0052] Taking LTE as an example, the theoretical upper limit of LTE downlink rate is 100Mbps and the upper limit of uplink rate is 50Mbps.
[0053] Refer to Table 1, which is a table of theoretical upper limits of LTE uplink and downlink rates.
[0054] Table 1
[0055]
[0056] It is understandable that for the current mobile network of 5G, the theoretical upper limits of uplink and downlink rates will be higher, for example, the upper limit of the downlink rate is 20Gbps and the upper limit of the uplink rate is 10Gbps.
[0057] As a non-limiting example, the first preset rate ratio may be selected from 0.1% to 10%, thereby achieving the effect of significantly reducing the upper limit of the uplink and downlink rates of the terminal device.
[0058] Furthermore, the first preset rate ratio may include a first uplink preset rate ratio, which is used to limit the uplink rate upper limit of the terminal device, and may also include a first downlink preset rate ratio, which is used to limit the downlink rate upper limit of the terminal device. The first uplink preset rate ratio and the first downlink preset rate ratio may be the same or different.
[0059] In a specific implementation, the above two technical solutions may be combined, that is, when a mobile network of a lower level than the default mobile network is used, the upper limit of the uplink and downlink rates of the terminal device may be limited by using a first preset rate ratio.
[0060] As a non-limiting example, it can be switching or maintaining the 4G mobile network, and the first preset rate ratio is selected from 40% to 80%, thereby further appropriately reducing the uplink and downlink rate limits of the terminal device based on the uplink and downlink rate limits of the 4G mobile network.
[0061] Furthermore, the preset functions of different application programs may have respective preset durations.
[0062] Specifically, the preset duration may be designed according to the user's requirements for the preset functions of the application.
[0063] Taking the online video playback function as an example, since users usually need to try watching for a few minutes before they can determine whether they are willing to watch for a long time, a longer preset duration can be set to fully determine that users need to watch the online video for a long time. After the preset duration, the upper and lower limits of the upstream and downstream rates can be increased to increase the loading speed and reduce the playback delay.
[0064] Taking the video call function as an example, since users can usually determine whether there is a misdialing within a few seconds, a shorter preset duration can be set to ensure that the user can increase the loading speed as much as possible and reduce the playback delay during the video call.
[0065] In an embodiment of the present invention, within a preset time period after a preset function of an application is activated, a smaller proportion of uplink and downlink rate limits and / or a low-level mobile network is used, thereby slowing down the loading speed and effectively saving traffic.
[0066] In the specific implementation of step S13, if the preset function of the application is activated, then for part or all of the time after the preset time, the terminal device adopts a higher uplink and downlink rate upper limit, for example, using a second preset rate ratio to limit the uplink and downlink rate upper limits of the terminal device, and / or, restores the default mobile network.
[0067] In a specific implementation, only the default mobile network may be restored.
[0068] Furthermore, the default mobile network may be a mobile network used by the terminal device by default, for example, a mobile network with a level higher than a preset level, such as a 5G mobile network or a 4G mobile network, or various new mobile networks in the future, such as a 6G mobile network, a 7G mobile network, etc.
[0069] It is understandable that the higher the level of the mobile network, the higher the upper limit of the uplink and downlink rates. When the default mobile network level is high, the technical solution in the embodiment of the present invention has a more significant effect.
[0070] As a non-limiting example, the default mobile network may be a 5G mobile network and the 5G mobile network is currently used. In response to the preset function of the application being activated, the network switches to the 4G mobile network, and then switches back to the 5G mobile network after a preset time after the preset function of the application is activated. The default mobile network may be a 5G mobile network and the 4G mobile network is currently used. After the preset function of the application is activated, the network continues to remain on the 4G mobile network, and then switches back to the 5G mobile network after a preset time after the preset function of the application is activated.
[0071] In a specific implementation, only the second preset rate ratio may be used to limit the upper limits of the uplink and downlink rates of the terminal device.
[0072] Furthermore, the step of using a second preset rate ratio to limit the upper limits of the uplink and downlink rates of the terminal device may include: using the product of the second preset rate ratio and the upper limits of the uplink and downlink rates of the adopted mobile network as the upper limits of the uplink and downlink rates of the terminal device; wherein, based on the same mobile network, the second preset rate ratio is greater than the first preset rate ratio.
[0073] As a non-limiting example, the second preset rate ratio may be selected from 80% to 100%, so as to achieve an effect as close as possible to the upper limit of the uplink and downlink rates of the terminal device.
[0074] Furthermore, the second preset rate ratio may include a second uplink preset rate ratio, which is used to limit the uplink rate upper limit of the terminal device, and may also include a second downlink preset rate ratio, which is used to limit the downlink rate upper limit of the terminal device. The second uplink preset rate ratio and the second downlink preset rate ratio may be the same or different.
[0075] In a specific implementation, the above two technical solutions may be combined, that is, when the default mobile network is restored, the upper limit of the uplink and downlink rates of the terminal device may be limited by using a second preset rate ratio.
[0076] As a non-limiting example, it can be switching back to the 5G mobile network, and the second preset rate ratio is selected from 80% to 100%, so that on the basis of the uplink and downlink rate upper limits of the 5G mobile network, it is further close to the uplink and downlink rate upper limits of the terminal device, thereby better improving the loading speed and reducing the latency.
[0077] In an embodiment of the present invention, a larger proportion of uplink and downlink rate limits and / or a high-level mobile network is used for part or all of the time after a preset time after a preset function of an application is activated, thereby increasing the loading speed and effectively reducing latency.
[0078] In an embodiment of the present invention, a preset function of a preset application is pre-selected, and within a preset time after the preset function is activated, a smaller proportion of the upper limit of the uplink and downlink speed and / or a low-level mobile network is used, thereby slowing down the loading speed; and part or all of the time after the preset time after the preset function is activated, a larger proportion of the upper limit of the uplink and downlink speed and / or a high-level mobile network is used instead, thereby speeding up the loading speed. By adopting the solution of the embodiment of the present invention, when a user uses a preset function for a short time and uses the function for a long time, respective proportions of the upper limit of the uplink and downlink speed and / or respective levels of mobile network can be used, and the loading speed can be effectively segmented controlled, thereby effectively saving traffic.
[0079] In a first specific implementation of an embodiment of the present invention, the type of the application is a video call type, and the preset function of the application is a video call function; the step of monitoring the preset application may include: if a first request message sent by the application is received, determining that the video call function of the application is activated.
[0080] The first request information may be used to indicate that a video call function of an application of the video call type is started.
[0081] Furthermore, the first request information may be selected from: a video call start button being clicked, and a request to turn on a camera.
[0082] Specifically, the interface of the application may include a virtual button for making (starting) or answering a video call, and in response to a video call start button being clicked, it can be determined that the video call function of the application is started.
[0083] The first request information may also be a request to turn on the camera. For example, after receiving a function to start a video call, the application may send a request to turn on the camera.
[0084] Furthermore, the first request information may be represented by flag bit information 0 / 1.
[0085] In a specific implementation, flag information 1 may be used to indicate that the video call function is turned on, and flag information 0 may be used to indicate that the video call function is turned off; or vice versa, flag information 0 may be used to indicate that the video call function is turned on, and flag information 1 may be used to indicate that the video call function is turned off.
[0086] The first request information sent by the application may be received by a system on chip (System on Chip, SOC).
[0087] Reference Figure 2 , Figure 2 1 is a partial flow chart of a second network connection method in an embodiment of the present invention. In the second network connection method, the type of the application may be a video call type, and the preset function of the application may be a video call function.
[0088] The second network connection method may include Figure 1 The steps S11 to S13 shown may further include steps S21 and S22, and may further include steps S21 and S23. Each step is described below.
[0089] In step S21, after a preset time period after the video call function is activated, it is continuously detected whether there is a face in front of the camera.
[0090] Specifically, after a preset time period after the video call function is activated, it can be determined that the user needs to make a video call for a long time. At this time, it can be determined whether the loading speed needs to be accelerated and the image quality needs to be improved based on the user's gaze on the screen.
[0091] Furthermore, face detection technology may be used to detect whether there is a face in front of the camera.
[0092] It is understandable that if the user is looking at the screen, he should be facing the screen, or his face should be slightly tilted toward the screen. At this time, face detection technology can detect the face; when the user has his back to the screen or his side face is facing the screen, it means that the user is not looking at the screen. At this time, it is difficult to detect the face using face detection technology.
[0093] Specifically, conventional face detection technology may be used. In the embodiment of the present invention, there is no limitation on the selection of specific face detection technology.
[0094] In step S22, if no face is detected, the first preset rate ratio is used to limit the upper limit of the uplink and downlink rates of the terminal device, and / or a mobile network of a lower level than the default mobile network is used.
[0095] In an embodiment of the present invention, when a user makes a video call for a long time, it can be determined whether the user is looking at the screen based on whether there is a face in front of the camera. If not, a smaller proportion of the uplink and downlink rate limits and / or a low-level mobile network is used, thereby slowing down the loading speed and reducing the image quality, thereby effectively saving traffic.
[0096] In step S23, if a face is detected, the second preset rate ratio is used to limit the upper limit of the uplink and downlink rates of the terminal device, and / or the default mobile network is restored.
[0097] In an embodiment of the present invention, when a user makes a video call for a long time, it can be determined whether the user is looking at the screen based on whether there is a face in front of the camera. If so, a larger proportion of the uplink and downlink rate limits and / or a high-level mobile network is used, thereby speeding up the loading speed and improving the image quality, thereby effectively improving the user experience.
[0098] Reference Figure 3 , Figure 3 is a flow chart of a third network connection method in an embodiment of the present invention. In the third network connection method, the type of the application may be a video call type, and the preset function of the application may be a video call function.
[0099] The third network connection method may include steps S31 to S37, and each step is described below.
[0100] In step S31, it is determined that the current access network is a mobile network.
[0101] In step S32, the video call type application is detected.
[0102] In step S33, it is determined that the video call function of the application is activated.
[0103] In step S34, within a preset time period, a first preset rate ratio is used to limit the upper limit of the uplink and downlink rates of the terminal device, and / or a mobile network of a lower level than the default mobile network is used.
[0104] In step S35, after a preset time, continue to detect whether there is a face in front of the camera; when the judgment result is yes, step S36 can be executed; otherwise, step S37 can be executed.
[0105] In step S36, the second preset rate ratio is used to limit the upper limit of the uplink and downlink rates of the terminal device, and / or the default mobile network is restored.
[0106] In step S37, the first preset rate ratio is used to limit the upper limit of the uplink and downlink rates of the terminal device, and / or a mobile network of a lower level than the default mobile network is used.
[0107] In the specific implementation, for more details about steps S31 to S37, please refer to the above and Figure 1 and Figure 2 The steps are described in , and will not be repeated here.
[0108] In a second specific implementation of the embodiment of the present invention, the type of the application is an online video playback type, and the preset function of the application is an online video playback function; the step of monitoring the preset application may include: if a second request information sent by the application is received, it is determined that the online video playback function of the application is started.
[0109] The second request information may be used to indicate that an online video playback function of an application of the online video playback type is started.
[0110] Furthermore, the second request information may be selected from: a play link of an online video is clicked, and a play button of the online video is clicked.
[0111] Specifically, the interface of the application may include a link address, and in response to the link address being clicked, the online video playback function of the application may be activated; the interface of the application may also include a virtual button, and in response to the virtual button being clicked, the online video playback function of the application may be activated.
[0112] Furthermore, the second request information can be represented by flag bit information 0 / 1.
[0113] In a specific implementation, flag information 1 can be used to indicate that a user has opened a video, and flag information 0 can be used to indicate that the video has been loaded or played; or vice versa, flag information 0 can be used to indicate that a user has opened a video, and flag information 1 can be used to indicate that the video has been loaded or played.
[0114] The second request information sent by the application may be received by a system on chip (System on Chip, SOC).
[0115] Reference Figure 4 , Figure 4 This is a partial flow chart of the fourth network connection method in an embodiment of the present invention. In the fourth network connection method, the type of the application is an online video playback type, and the preset function of the application is an online video playback function.
[0116] The fourth network connection method may include Figure 1 The steps S11 to S13 shown may also include steps S41 to S43, and each step is described below.
[0117] In step S41, within a preset time period after starting the online video playback function of the application, online videos of a first preset loading ratio are preloaded.
[0118] Specifically, within the preset time after the online video playback function is activated, it can be considered that the user is determining whether he needs to watch the online video for a long time or needs to switch to other online videos. At this time, a small amount of preloading can be performed, which can effectively save traffic while achieving smooth viewing.
[0119] As a non-limiting example, the first preset loading ratio may be selected from 10% to 50% of the duration of the entire online video, thereby achieving a significant effect of saving traffic.
[0120] In step S42, online videos of a second preset loading ratio are preloaded partially or entirely after a preset time period after the online video playback function of the application is started.
[0121] Among them, the second preset loading ratio is greater than the first preset loading ratio.
[0122] As a non-limiting example, the second preset rate ratio may be selected from 30% to 100% of the duration of the entire online video, so as to better achieve smooth viewing.
[0123] Specifically, after a preset time period after the online video playback function is activated, it can be considered that the user has determined that he needs to watch the online video for a long time. At this time, a larger amount of preloading can be performed to better achieve smooth viewing and effectively improve the user experience.
[0124] In an embodiment of the present invention, online videos can be preloaded in respective proportions when a user uses the online video playback function for a short time and when the user uses the function for a long time, and the loading amount can be effectively controlled, so that only a small amount of preloading is performed when the online video is played for a short time, and a larger amount of preloading is performed when the online video is played for a long time, thereby further effectively saving traffic.
[0125] In step S43, in response to the pause button of the online video being clicked, the online video of a third preset loading ratio is preloaded.
[0126] Among them, the third preset loading ratio is smaller than the first preset loading ratio.
[0127] As a non-limiting example, the third preset loading ratio may be selected from 0% to 10%, thereby achieving a significant effect of saving traffic.
[0128] In an embodiment of the present invention, in response to the pause button of the online video being clicked, the online video with a third preset loading ratio is preloaded. When the playback is paused, the minimum loading amount can be used, or even preloading can be stopped, thereby further effectively saving traffic.
[0129] Reference Figure 5 , Figure 5 is a flow chart of a fifth network connection method in an embodiment of the present invention. In the fifth network connection method, the type of the application may be a video call type, and the preset function of the application may be a video call function.
[0130] The third network connection method may include steps S51 to S57, and each step is described below.
[0131] In step S51, it is determined that the current access network is a mobile network.
[0132] In step S52, an application program of the online video playback type is detected.
[0133] In step S53, it is determined that the online video playback function of the application is activated.
[0134] In step S54, the online video of the first preset loading ratio is preloaded within the preset time length.
[0135] In step S55, after the preset time, it is determined whether the pause button of the online video is clicked; when the judgment result is yes, step S56 can be executed; otherwise, step S57 can be executed.
[0136] In step S56, online videos with a third preset loading ratio are preloaded.
[0137] In step S57, online videos with a second preset loading ratio are preloaded.
[0138] In the specific implementation, for more details about steps S51 to S57, please refer to the above and Figure 1 and Figure 4 The steps are described in , and will not be repeated here.
[0139] Furthermore, the type of the application is an online video playback type, and the preset function of the application is an online video playback function; the method also includes: in response to the pause button of the online video being clicked or the stop button being clicked, using a third preset rate ratio to limit the upper limit of the uplink and downlink rates of the terminal device; wherein, based on the same mobile network, the third preset rate ratio is less than the first preset rate ratio.
[0140] As a non-limiting example, the third preset rate ratio may be selected from 0% to 20%, thereby achieving the effect of significantly reducing the upper limits of the uplink and downlink rates of the terminal device.
[0141] In an embodiment of the present invention, in response to the pause button of the online video being clicked or the stop button being clicked, the third preset rate ratio is used to limit the upper limits of the uplink and downlink rates of the terminal device. When pausing or stopping the playback, the upper limits of the uplink and downlink rates with the minimum ratio can be used, thereby effectively controlling the loading speed and further effectively saving traffic.
[0142] Reference Figure 6 , Figure 6 1 is a schematic diagram of the structure of a network connection device in an embodiment of the present invention. The network connection device may include:
[0143] A monitoring module 61, used to monitor a preset application when the current access network is a mobile network;
[0144] A first limiting module 62 is used to limit the upper limit of the uplink and downlink rates of the terminal device by using a first preset rate ratio within a preset time period after the preset function of the application is activated, and / or use a mobile network of a lower level than the default mobile network;
[0145] A second limiting module 63 is configured to limit the upper limit of the uplink and downlink rates of the terminal device using a second preset rate ratio for part or all of the time after the preset time period after the preset function of the application is activated, and / or to restore the use of a default mobile network;
[0146] Among them, compared with the preset time period, the upper limit of the uplink and downlink rates of the terminal device is higher in part or all of the time after the preset time period.
[0147] For the principle, specific implementation and beneficial effects of the network connection device, please refer to the above and Figures 1 to 5 The related description about the network connection method shown is not repeated here.
[0148] In a specific implementation, the above-mentioned network connection device may correspond to a chip with a data processing function in a device; or correspond to a chip module including a chip with a data processing function in a device.
[0149] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is run by a computer, the above-mentioned network connection method is executed. The computer-readable storage medium may include, for example, a non-volatile memory or a non-transitory memory, and may also include an optical disk, a mechanical hard disk, a solid-state hard disk, etc.
[0150] An embodiment of the present invention further provides a terminal device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor executes the above-mentioned network connection method when running the computer program.
[0151] Specifically, in the embodiment of the present invention, the processor may be a central processing unit (CPU), and 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 gate 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.
[0152] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM) and direct rambus RAM (DR RAM).
[0153] Specifically, the terminal in the embodiments of the present application may refer to various forms of user equipment (UE), access terminal, user unit, user station, mobile station, mobile station (MS), remote station, remote terminal, mobile device, user terminal, terminal equipment, wireless communication equipment, user agent or user device. The terminal equipment may also be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a future 5G network or a terminal device in a future evolved Public Land Mobile Network (PLMN), etc., and the embodiments of the present application are not limited to this.
[0154] It should be pointed out that the serial numbers of the steps in this embodiment do not limit the execution order of the steps.
[0155] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article indicates that the associated objects before and after are in an "or" relationship.
[0156] The "plurality" appearing in the embodiments of the present application refers to two or more.
[0157] The first, second, etc. descriptions appearing in the embodiments of the present application are only used for illustration and distinction of the description objects. There is no order, nor do they indicate any special limitation on the number of devices in the embodiments of the present application, and cannot constitute any limitation on the embodiments of the present application.
[0158] Regarding the various modules / units included in the various devices and products described in the above embodiments, they can be software modules / units, or hardware modules / units, or they can be partially software modules / units and partially hardware modules / units. For example, for various devices and products applied to or integrated in a chip, the various modules / units included therein can all be implemented in the form of hardware such as circuits, or at least some of the modules / units can be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in a chip module, the various modules / units included therein can all be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (such as a chip, circuit module, etc.) or different components of the chip module, or at least some of the modules / units can be implemented in the form of hardware such as circuits. The element can be implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the various modules / units contained therein can be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.
[0159] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.
Claims
1. A network connection method, characterized in that: include: If the current access network is a mobile network, the preset application is monitored; Within a preset time period after the preset function of the application is activated, the upper limit of the uplink and downlink rates of the terminal device is limited by using a first preset rate ratio, and / or a mobile network of a lower level than the default mobile network is used; For part or all of the time after the preset time period after the preset function of the application is activated, the upper limit of the uplink and downlink rates of the terminal device is limited by a second preset rate ratio, and / or the default mobile network is restored; Wherein, compared with the preset time period, the upper limit of the uplink and downlink rate of the terminal device is higher for part or all of the time after the preset time period; The type of the application is a video call type, and the preset function of the application is a video call function; The method further comprises: After a preset time period after the video call function is activated, continuously detecting whether there is a face in front of the camera, wherein the detection of whether there is a face in front of the camera is determined by using face detection technology; If no face is detected, the first preset rate ratio is used to limit the upper limit of the uplink and downlink rates of the terminal device, and / or a mobile network of a lower level than the default mobile network is used.
2. The network connection method according to claim 1, characterized in that: Using the first preset rate ratio to limit the upper limit of the uplink and downlink rates of the terminal device includes: The product of the first preset rate ratio and the uplink and downlink rate upper limits of the adopted mobile network is used as the uplink and downlink rate upper limits of the terminal device.
3. The network connection method according to claim 2, characterized in that: Using the second preset rate ratio to limit the upper limit of the uplink and downlink rates of the terminal device includes: Adopting the product of the second preset rate ratio and the upper limit of the uplink and downlink rates of the adopted mobile network as the upper limit of the uplink and downlink rates of the terminal device; Wherein, based on the same mobile network, the second preset rate ratio is greater than the first preset rate ratio.
4. The network connection method according to claim 1, characterized in that: The type of the application is a video call type, and the preset function of the application is a video call function; Monitoring of pre-defined applications includes: If the first request information sent by the application is received, it is determined that the video call function of the application is started.
5. The network connection method according to claim 4, characterized in that: The first request information is selected from: The video call start button is clicked, requesting to turn on the camera.
6. The network connection method according to claim 1, characterized in that: The method further comprises: If a face is detected, the second preset rate ratio is used to limit the upper limit of the uplink and downlink rates of the terminal device, and / or the default mobile network is restored.
7. The network connection method according to claim 1, characterized in that: The type of the application is an online video playback type, and the preset function of the application is an online video playback function; Monitoring of pre-defined applications includes: If the second request information sent by the application is received, it is determined that the online video playback function of the application is started.
8. The network connection method according to claim 7, characterized in that: The second request information is selected from: The play link of the online video is clicked, and the play button of the online video is clicked.
9. The network connection method according to claim 1, characterized in that: The type of the application is an online video playback type, and the preset function of the application is an online video playback function; The method further comprises: Preloading online videos of a first preset loading ratio within a preset time period after starting the online video playback function of the application; Preloading online videos of a second preset loading ratio in part or all of the time after a preset time after starting the online video playback function of the application; Among them, the second preset loading ratio is greater than the first preset loading ratio.
10. The network connection method according to claim 9, characterized in that: The method further comprises: In response to a click on a pause button of the online video, preloading the online video at a third preset loading ratio; Among them, the third preset loading ratio is smaller than the first preset loading ratio.
11. The network connection method according to claim 1, characterized in that: The type of the application is an online video playback type, and the preset function of the application is an online video playback function; The method further comprises: In response to the pause button of the online video being clicked or the stop button being clicked, limiting the upper limit of the uplink and downlink rates of the terminal device by using a third preset rate ratio; Wherein, based on the same mobile network, the third preset rate ratio is smaller than the first preset rate ratio.
12. A network connection device, characterized in that: include: A monitoring module, used to monitor the preset application when the current access network is a mobile network; A first limiting module is used to limit the upper limit of the uplink and downlink rates of the terminal device by using a first preset rate ratio within a preset time period after the preset function of the application is activated, and / or to use a mobile network of a lower level than the default mobile network; A second limiting module is used to limit the upper limit of the uplink and downlink rates of the terminal device using a second preset rate ratio for part or all of the time after the preset time period after the preset function of the application is started, and / or to restore the use of the default mobile network; Wherein, compared with the preset time period, the upper limit of the uplink and downlink rate of the terminal device is higher for part or all of the time after the preset time period; The type of the application is a video call type, and the preset function of the application is a video call function; The device is also used to execute: after a preset time after the video call function is activated, continuously detect whether there is a face in front of the camera, wherein the detection of whether there is a face in front of the camera is determined by using face detection technology, and if no face is detected, the first preset rate ratio is used to limit the upper limit of the uplink and downlink rates of the terminal device, and / or, a mobile network of a lower level than the default mobile network is used.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the network connection method according to any one of claims 1 to 11 are executed.
14. A terminal device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor runs the computer program, the steps of the network connection method according to any one of claims 1 to 11 are performed.
Citation Information
Patent Citations
Video buffer control method, terminal and storage device
CN107333147A