CN113573338B - Network connection method and device - Google Patents

Network connection method and device Download PDF

Info

Publication number
CN113573338B
CN113573338B CN202110815798.5A CN202110815798A CN113573338B CN 113573338 B CN113573338 B CN 113573338B CN 202110815798 A CN202110815798 A CN 202110815798A CN 113573338 B CN113573338 B CN 113573338B
Authority
CN
China
Prior art keywords
network
rate
default
interval
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110815798.5A
Other languages
Chinese (zh)
Other versions
CN113573338A (en
Inventor
李自来
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110815798.5A priority Critical patent/CN113573338B/en
Publication of CN113573338A publication Critical patent/CN113573338A/en
Application granted granted Critical
Publication of CN113573338B publication Critical patent/CN113573338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a network connection method and a device, wherein the method comprises the following steps: acquiring operation parameters of electronic equipment; according to the operation parameters, determining a network use scene of the electronic equipment; and controlling the electronic equipment to be connected with the network according to the network transmission strategy corresponding to the network use scene.

Description

Network connection method and device
Technical Field
The embodiment of the application relates to the field of information processing, in particular to a network connection method and device.
Background
With the increasing abundance of network connection functions supported by electronic devices, users may make network connections in different network connection environments. At present, a general network connection strategy is adopted for different network connection scenes, namely the network connection strategy is single, flexible adjustment cannot be carried out according to actual network connection scenes, and further network connection requirements under different network connection scenes cannot be met.
Disclosure of Invention
The embodiment of the application provides a network connection method and device, which are used for solving the problem that network connection requirements in different network connection scenes cannot be met.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a network connection method, where the method may include:
acquiring operation parameters of electronic equipment;
according to the operation parameters, determining a network use scene of the electronic equipment;
and controlling the electronic equipment to be connected with the network according to the network transmission strategy corresponding to the network use scene.
In a second aspect, an embodiment of the present application provides a network connection device, which may include:
The acquisition module is used for acquiring the operation parameters of the electronic equipment;
The determining module is used for determining a network use scene where the electronic equipment is located according to the operation parameters;
and the control module is used for controlling the electronic equipment to be connected with the network according to the network transmission strategy corresponding to the network use scene.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In the embodiment of the application, the network use scene of the electronic equipment is determined according to the operation parameters of the electronic equipment; and then controlling the electronic equipment to be connected with the network according to the network transmission strategy corresponding to the network use scene. Therefore, network transmission is performed by determining the network transmission strategy matched with the operation parameters of the electronic equipment, different requirements of different operation parameters on the network transmission strategy can be met, and further stable and rapid network transmission is ensured.
Drawings
The application will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings in which like or similar reference characters designate like or similar features.
Fig. 1 is a schematic diagram of an application scenario of a network connection method according to an embodiment of the present application;
fig. 2 is a flowchart of a network connection method according to an embodiment of the present application;
Fig. 3 is a schematic structural diagram of a network connection device according to an embodiment of the present application;
Fig. 4 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
Fig. 5 is a schematic hardware structure of another electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the application may be practiced otherwise than as specifically illustrated or described herein. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The network connection method provided by the embodiment of the application can be at least applied to the following application scenes, and is explained below.
As shown in fig. 1, the network rate set of the current wireless communication technology (WiFi) when data is transmitted is as shown in fig. 1, the configuration of the rate is implemented by the index value of the modulation and coding strategy (Modulation and Coding Scheme, MCS), and the network rate can be divided into MCS0-MCS15 from small to large. Taking MCS8 and MCS9 as examples, at 20 Megahertz (MHZ), MCS8 corresponds to a network rate of 14.4 and MCS9 corresponds to a network rate of 28.9, i.e., the greater the network rate level, the greater the network rate. The MCS uses the factors affecting the communication rate concerned as columns of the table, and uses the MCS index as rows to form a rate table. Each MCS index corresponds to a physical transmission rate under a set of parameters.
If the signal environment of the scene where the electronic equipment is located is relatively poor, the electronic equipment can be reduced to a proper network rate only after a long-time transmission failure, so that the situation that the electronic equipment cannot access the internet for a long time can occur; then, after the network rate is reduced and normal network transmission can be performed, the network rate is increased again; however, after the ramp-up, if the current network environment cannot support a higher network rate, the network rate repeats the step of failed ramp-down, which may cause unstable network connection.
The above mentioned network rates may include: wiFi transmission rate and cellular mobile communication rate, respectively, are described below. In one aspect, in a Wireless Local Area Network (WLAN) communication system, the actual usage rate of an electronic device refers to the rate of the network layer. On the other hand, the cellular mobile communication adopts a cellular wireless networking mode, and is connected between the terminal and the network equipment through a wireless channel, so that the mutual communication of users in the activities is realized. The method is mainly characterized by mobility of the terminal and has the functions of handover and automatic roaming across a local network. The cellular mobile communication service refers to services such as voice, data, video and image provided through a cellular mobile communication network composed of a base station subsystem, a mobile switching subsystem and the like.
Aiming at the problems of the related art, the embodiment of the application provides a network connection method and a device, which are used for solving the problem that the related art cannot meet the network connection requirements under different network connection scenes.
The method provided by the embodiment of the application can be applied to the application scenes and any scene which can not meet the network connection requirements in different network connection scenes.
According to the method provided by the embodiment of the application, the network use scene of the electronic equipment is determined according to the operation parameters of the electronic equipment; and then controlling the electronic equipment to be connected with the network according to the network transmission strategy corresponding to the network use scene. Therefore, network transmission is performed by determining the network transmission strategy matched with the operation parameters of the electronic equipment, different requirements of different operation parameters on the network transmission strategy can be met, and further stable and rapid network transmission is ensured.
Based on the above application scenario, the network connection method provided by the embodiment of the present application is described in detail below.
Fig. 2 is a flowchart of a network connection method according to an embodiment of the present application.
As shown in fig. 2, the network connection method may include steps 210-230, and the method is applied to a network connection device, as follows:
Step 210, obtaining an operation parameter of the electronic device.
Step 220, determining a network usage scenario where the electronic device is located according to the operation parameters.
And step 230, controlling the electronic equipment to be connected with the network according to the network transmission strategy corresponding to the network use scene.
According to the network connection method provided by the application, the network use scene of the electronic equipment is determined according to the operation parameters of the electronic equipment; and then controlling the electronic equipment to be connected with the network according to the network transmission strategy corresponding to the network use scene. Therefore, network transmission is performed by determining the network transmission strategy matched with the operation parameters of the electronic equipment, different requirements of different operation parameters on the network transmission strategy can be met, and further stable and rapid network transmission is ensured.
The contents of steps 210 to 230 are described below:
First, step 210 is referred to.
And acquiring the operation parameters of the electronic equipment. The above-mentioned operation parameters may include an application program operated in the foreground. An application, referred to as a computer program that operates in user mode to interact with a user to perform a particular task or tasks, has a visual user interface.
Next, step 220 is referred to.
And determining a network use scene where the electronic equipment is located according to the operation parameters. Because the network rates required by different network usage scenarios are different, the network usage scenario where the electronic equipment is located is determined according to the operation parameters, so that a network transmission strategy matched with the network usage scenario can be provided, the network rate can be dynamically adjusted, and a more stable and better-experience Internet surfing experience is provided for the user.
Finally, step 230 is involved.
In step 230, the method specifically includes the following steps:
Under the condition of a first preset scene of a network usage field Jing Manzu, a first network transmission strategy is adopted to control the electronic equipment to be connected with the network;
And under the condition of a second preset scene of the network use field Jing Manzu, adopting a second network transmission strategy to control the electronic equipment to be connected with the network, wherein the first network transmission strategy is different from the second network transmission strategy.
The first preset scene may include at least one of the following: game scenes, voice communication scenes, and page refresh scenes.
The second preset scene may include: play video scenes and/or transmit file scenes.
To facilitate the description of the first network transmission policy and the second network transmission policy, the default network rate, the default interval, and the second default number, which will be referred to below, are described first. The parameter values related to the default network rate, the default interval, the first default number, and the second default number are related to the type of the wireless chip.
Specifically, the default network rate (initial rate) may be MCS15, i.e., the initial default network rate may be sent starting from the current protocol maximum rate. Each network rate corresponds to a different transmit power, the lower the transmit rate, the higher the transmit power. The interference resistance of each rate is different, and the lower the rate is, the stronger the interference resistance is.
In the existing rate adjustment scheme, transmission of a first default number (N1) of data packets fails, the transmission rate is adjusted downwards by one level, and the transmission rate of a second default number (N2) of data packets is increased by one level. The default interval is: (MCS 0, MCS 15).
The step of controlling the electronic device to connect to the network by adopting the first network transmission policy may specifically include the following steps:
And performing network connection at a first network rate, wherein the first network rate is smaller than a default network rate.
The network transmission policy corresponding to a scene with a small data amount, such as a game scene, a voice communication scene, and a page refresh scene, will be described, and among these scenes, the user is focused on the stability of surfing the internet.
Illustratively, in the game scenario, the voice communication scenario, and the page refresh scenario, the first network rate (initial rate) is set to MCS3, and the first network rate (MCS 3) is smaller than the default network rate (MCS 15).
The step of controlling the electronic device to connect to the network by adopting the first network transmission policy may specifically include the following steps:
and controlling the network rate to be adjusted in a first preset interval, wherein the first preset interval is a subinterval of a default interval, and the upper limit value of the first preset interval is smaller than the upper limit value of the default interval.
Illustratively, in order to ensure the stability of surfing the internet, the initial network rate and the network rate adjustment range are limited to be relatively low, so that surfing the internet is more stable and interference-resistant. The first preset interval (MCS 0, MCS 7) is a sub-interval of the default interval (MCS 0, MCS 15), and an upper limit value (MCS 7) of the first preset interval is smaller than an upper limit value (MCS 15) of the default interval.
The step of controlling the connection between the electronic device and the network by adopting the first network transmission policy may specifically include the following steps:
Reducing the network rate in the event of failure to continuously transmit a first number of data packets, the first number being less than a first default number; and increasing the network rate if the continuous transmission of the second number of data packets is successful, the second number being greater than the second default number.
Illustratively, where the application running in the foreground is a game, the network rate requirement is within 1M, the network bandwidth requirement is low, but the network stability requirement is high, the minimum rate of 1Mbps for WiFi is sufficient to meet the game requirements. In this way, the rate of failure to send packets for a first number (e.g., N1/2) of consecutive packets can be appropriately adjusted to a downshift so that the electronic device can be more quickly placed at a steady network rate. In addition, if the game interface is slowed down, a timer T0 is set, the speed does not rise within the time T0, and if the number of packets of the second number (2 x N2) is continuously successful after T0, the speed rises by 1 gear. The first number (N1/2) is smaller than a first default number (N1); the second number (2 x N2) is greater than a second default number (N2).
The step of controlling the connection between the electronic device and the network by adopting the second network transmission policy may specifically include the following steps:
Reducing the network rate in the event of failure to continuously transmit a third number of data packets, the third number being greater than the first default number; and increasing the network rate if the continuous transmission of the fourth number of data packets is successful, wherein the fourth number is smaller than the second default number.
Illustratively, since the requirements for playing video, uploading files and downloading files are higher on the network speed, the requirements for stability and instantaneity are lower, in order to be able to be in high bandwidth with greater possibility, in case of failure of continuously transmitting the third number (2×n1) of data packets, the network speed is reduced, and the third number (2×n1) is greater than the first default number (N1); in the case that the consecutive transmission of a fourth number (N2/2) of data packets succeeds, the network rate is increased, the fourth number (N2/2) being smaller than the second default number (N2).
The step of controlling the connection between the electronic device and the network by adopting the first network transmission policy may specifically include the following steps:
And under the condition that the network rate is smaller than the first threshold value, controlling the network rate to be adjusted in a second preset interval, wherein the second preset interval is a subinterval of a default interval, and the upper limit value of the second preset interval is smaller than the upper limit value of the default interval.
Illustratively, if the rate drops below a first threshold (MCS 1), the control network rate is adjusted within a second preset interval (MCS 0, MCS 3). The second preset interval (MCS 0, MCS 3) is a sub-interval of the default interval (MCS 0, MCS 15), and an upper limit value (MCS 3) of the second preset interval is smaller than an upper limit value (MCS 15) of the default interval. The second preset section is a sub-section of the first preset section, and the upper limit value of the second preset section is smaller than the upper limit value of the first preset section.
Wherein the second preset interval (MCS 0, MCS 3) may be a sub-interval of the first preset interval (MCS 0, MCS 7), and an upper limit value (MCS 3) of the second preset interval is smaller than an upper limit value of the first preset interval (MCS 7).
For example, in the case where the target network usage scenario is a play video scenario and/or a transmission file scenario, the initial network rate may be set to MCS15, with the adjustment range being MCS0-MCS15. In order to ensure quick network connection, the initial rate of the network connection and the adjustment range of the network rate are limited to be higher, so that the purposes of faster internet surfing and smoother network are achieved.
The step of controlling the connection between the electronic device and the network by adopting the second network transmission policy may specifically include the following steps:
and under the condition that the network rate is smaller than the second threshold value, controlling the network rate to be adjusted in a third preset interval, wherein the third preset interval is a subinterval of the default interval, and the upper limit value of the third preset interval is smaller than the upper limit value of the default interval.
Illustratively, in case the network rate is less than the second threshold (MCS 7), the network rate is controlled to be adjusted within a third preset interval (MCS 0, MCS 7), the third preset interval (MCS 0, MCS 7) being a sub-interval of the default interval (MCS 0, MCS 15), the upper limit value (MCS 7) of the third preset interval being smaller than the upper limit value (MCS 15) of the default interval.
In one possible embodiment, if the game and data download scenario are performed simultaneously, at this time, both the stability of the surfing and the speed of the download are to be considered, the initial network rate may be set to MCS5, and the adjustment range is (MCS 0, MCS 10). And (3) transmitting continuous successful N2 packet rates to rise by 1 gear, and transmitting continuous failed N1 packet rates to fall by 1 gear.
In one possible embodiment, detecting a packet loss rate within at least one preset time period;
Determining a target time period from at least one preset time period, wherein the packet loss rate of the target time period is smaller than a preset packet loss rate threshold;
determining a second network rate according to the network rate corresponding to the target time period;
and controlling the network rate to be adjusted in a fourth preset interval, wherein the upper limit value of the fourth preset interval is the second network rate.
Detecting a packet loss rate in at least one preset time period (3 minutes); determining a target time period (within 2 minutes) from at least one preset time period, wherein the packet loss rate of the target time period is smaller than a preset packet loss rate threshold value (10%); determining a second network rate (TX 0) according to the network rate corresponding to the target time period (within 2 minutes); the control network rate is adjusted within a fourth preset interval (MCS 0, TX 0), the upper limit value of the fourth preset interval being the second network rate.
In addition, the internet surfing condition of 3 megaflows can be counted; and (5) counting the Internet surfing condition of the WiFi, losing the packet rate, and resetting the transmission rate of the WiFi and the adjustment range of the rate. Correspondingly, the rate of N1 data packets which are continuously successful is increased by 1 gear, and the rate of N2 data packets which are continuously failed is decreased by 1 gear.
Therefore, the initialization transmitting rate and the rate adjusting range which are suitable for the current application and the environment are set through the user scene and monitoring the WiFi surfing condition for a period of time, so that the surfing experience of the user is better.
In summary, in the embodiment of the present application, a network usage scenario where an electronic device is located is determined according to an operation parameter of the electronic device; and then controlling the electronic equipment to be connected with the network according to the network transmission strategy corresponding to the network use scene. Therefore, network transmission is performed by determining the network transmission strategy matched with the operation parameters of the electronic equipment, different requirements of different operation parameters on the network transmission strategy can be met, and further stable and rapid network transmission is ensured. It should be noted that, in the network connection method provided in the embodiment of the present application, the execution body may be a network connection device, or a control module in the network connection device for executing the loading network connection method. In the embodiment of the application, the network connection device is taken as an example to execute the loading network connection method, and the network connection method provided by the embodiment of the application is described.
In addition, based on the network connection method, the embodiment of the application further provides a network connection device, which is specifically described in detail with reference to fig. 3.
Fig. 3 is a schematic structural diagram of a network connection device according to an embodiment of the present application.
As shown in fig. 3, the network connection device 300 may include:
an obtaining module 310 is configured to obtain an operation parameter of the electronic device.
A determining module 320, configured to determine a network usage scenario in which the electronic device is located according to the operation parameter.
The control module 330 is configured to control the electronic device to connect with the network according to a network transmission policy corresponding to the network usage scenario.
In one possible embodiment, the control module 330 is specifically configured to:
And under the condition of a first preset scene of the network use field Jing Manzu, adopting a first network transmission strategy to control the electronic equipment to be connected with the network.
And under the condition of a second preset scene of the network use field Jing Manzu, adopting a second network transmission strategy to control the electronic equipment to be connected with the network, wherein the first network transmission strategy is different from the second network transmission strategy.
In one possible embodiment, the control module 330 includes:
and the connection module is used for carrying out network connection at a first network rate, and the first network rate is smaller than a default network rate.
In one possible embodiment, the control module 330 includes:
The adjusting module is used for controlling the network rate to be adjusted in a first preset interval, wherein the first preset interval is a subinterval of a default interval, and the upper limit value of the first preset interval is smaller than the upper limit value of the default interval.
In one possible embodiment, the control module 330 includes:
A reducing module, configured to reduce the network rate in the case of failure to continuously send the first number of data packets, where the first number is less than the first default number.
And the increasing module is used for increasing the network rate under the condition that the continuous transmission of the second number of data packets is successful, wherein the second number is larger than the second default number.
The reducing module is further configured to reduce the network rate in case of failure to continuously send a third number of data packets, where the third number is greater than the first default number.
And the increasing module is further used for increasing the network rate under the condition that the fourth number of data packets are successfully transmitted continuously, wherein the fourth number is smaller than the second default number.
In one possible embodiment, the control module 330 is specifically configured to:
And under the condition that the network rate is smaller than the first threshold value, controlling the network rate to be adjusted in a second preset interval, wherein the second preset interval is a subinterval of a default interval, and the upper limit value of the second preset interval is smaller than the upper limit value of the default interval.
And under the condition that the network rate is smaller than the second threshold value, controlling the network rate to be adjusted in a third preset interval, wherein the third preset interval is a subinterval of the default interval, and the upper limit value of the third preset interval is smaller than the upper limit value of the default interval.
In summary, according to the network connection device provided by the embodiment of the application, the network use scene of the electronic equipment is determined according to the operation parameters of the electronic equipment; and then controlling the electronic equipment to be connected with the network according to the network transmission strategy corresponding to the network use scene. Therefore, network transmission is performed by determining the network transmission strategy matched with the operation parameters of the electronic equipment, different requirements of different operation parameters on the network transmission strategy can be met, and further stable and rapid network transmission is ensured.
The network connection device in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc., and the non-mobile electronic device may be a server, a network attached storage (Network Attached storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, etc., and the embodiments of the present application are not limited in particular.
The network connection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The network connection device provided in the embodiment of the present application can implement each process implemented by the network connection device in the method embodiment of fig. 2, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 4, the embodiment of the present application further provides an electronic device 400, including a processor 401, a memory 402, and a program or an instruction stored in the memory 402 and capable of running on the processor 401, where the program or the instruction implements each process of the embodiment of the chat group creation method described above when executed by the processor 401, and the same technical effects can be achieved, and for avoiding repetition, a description is omitted herein.
It should be noted that, the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 5 is a schematic hardware structure of another electronic device according to an embodiment of the present application.
The electronic device 500 includes, but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor 510, and power source 511. Wherein the input unit 504 may include a graphics processor 5041 and a microphone 5042; the display unit 506 may include a display panel 5061; the user input unit 507 may include a touch panel 5071 and other input devices 5072; memory 509 may include application programs and an operating system.
Those skilled in the art will appreciate that the electronic device 500 may further include a power source (e.g., a battery) for powering the various components, and that the power source 511 may be logically coupled to the processor 510 via a power management system, such as a power management system for performing functions such as managing charging, discharging, and power consumption. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
A processor 510 for obtaining an operating parameter of the electronic device.
And the processor 510 is configured to determine a network usage scenario in which the electronic device is located according to the operation parameter.
And the processor 510 is configured to control the electronic device to connect with the network according to a network transmission policy corresponding to the network usage scenario.
Optionally, the processor 510 is further configured to control the electronic device to connect to the network using the first network transmission policy under the first preset scenario of the network usage field Jing Manzu.
And under the condition of a second preset scene of the network use field Jing Manzu, adopting a second network transmission strategy to control the electronic equipment to be connected with the network, wherein the first network transmission strategy is different from the second network transmission strategy.
Optionally, the processor 510 is further configured to perform network connection at a first network rate, where the first network rate is less than the default network rate.
Optionally, the processor 510 is further configured to control the network rate to adjust within a first preset interval, where the first preset interval is a subinterval of the default interval, and an upper limit value of the first preset interval is smaller than an upper limit value of the default interval.
Optionally, the processor 510 is further configured to reduce the network rate in case of failure to continuously send the first number of data packets, the first number being smaller than the first default number.
The processor 510 is further configured to increase the network rate if the consecutively transmitting the second number of data packets is successful, the second number being greater than the second default number.
The processor 510 is further configured to reduce the network rate in case of failure to continuously send a third number of data packets, the third number being greater than the first default number.
The processor 510 is further configured to increase the network rate if the continuously transmitting the fourth number of data packets is successful, the fourth number being smaller than the second default number.
Optionally, the processor 510 is further configured to control the network rate to adjust within a second preset interval when the network rate is less than the first threshold, where the second preset interval is a subinterval of the default interval, and an upper limit value of the second preset interval is less than an upper limit value of the default interval.
The processor 510 is further configured to control the network rate to adjust within a third preset interval when the network rate is less than the second threshold, where the third preset interval is a subinterval of the default interval, and an upper limit value of the third preset interval is less than an upper limit value of the default interval.
In the embodiment of the application, the network use scene of the electronic equipment is determined according to the operation parameters of the electronic equipment; and then controlling the electronic equipment to be connected with the network according to the network transmission strategy corresponding to the network use scene. Therefore, network transmission is performed by determining the network transmission strategy matched with the operation parameters of the electronic equipment, different requirements of different operation parameters on the network transmission strategy can be met, and further stable and rapid network transmission is ensured.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements the processes of the network connection method embodiment described above, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the network connection method embodiment, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. A network connection method applied to an electronic device, comprising:
Acquiring operation parameters of the electronic equipment;
According to the operation parameters, determining a network usage scene in which the electronic equipment is located;
Controlling the electronic equipment to be connected with a network according to a network transmission strategy corresponding to the network use scene;
The controlling the electronic device to connect with the network according to the network transmission policy corresponding to the network usage scenario includes:
and under the condition of a first preset scene of the network usage field Jing Manzu, adopting a first network transmission strategy to control the electronic equipment to be connected with a network, wherein the first preset scene comprises at least one of the following steps: game scenes, voice communication scenes and page refreshing scenes;
The controlling the electronic device to connect with the network by adopting the first network transmission policy includes:
The network rate is controlled to be adjusted in a first preset interval, the first preset interval is a subinterval of a default interval, and the upper limit value of the first preset interval is smaller than the upper limit value of the default interval.
2. The method of claim 1, wherein controlling the electronic device to connect with the network according to a network transmission policy corresponding to the network usage scenario comprises:
And under the condition of a second preset scene of the network use field Jing Manzu, adopting a second network transmission strategy to control the electronic equipment to be connected with the network, wherein the first network transmission strategy is different from the second network transmission strategy.
3. The method of claim 1, wherein using the first network transmission policy to control the electronic device to connect to a network comprises:
network connection is made at a first network rate that is less than a default network rate.
4. The method of claim 2, wherein using the first network transmission policy to control the electronic device to connect to a network comprises:
reducing the network rate in the event of failure to continuously transmit a first number of data packets, the first number being less than a first default number;
increasing the network rate if the continuous transmission of a second number of data packets is successful, the second number being greater than a second default number;
The adopting the second network transmission policy to control the electronic device to connect with the network includes:
reducing the network rate in the event of failure to continuously transmit a third number of data packets, the third number being greater than the first default number;
And increasing the network rate if the continuous transmission of the fourth number of data packets is successful, wherein the fourth number is smaller than the second default number.
5. The method of claim 2, wherein using the first network transmission policy to control the electronic device to connect to a network comprises:
Controlling the network rate to be adjusted in a second preset interval under the condition that the network rate is smaller than a first threshold value, wherein the second preset interval is a subinterval of a default interval, and the upper limit value of the second preset interval is smaller than the upper limit value of the default interval;
The adopting the second network transmission policy to control the electronic device to connect with the network includes:
and under the condition that the network rate is smaller than a second threshold value, controlling the network rate to be adjusted in a third preset interval, wherein the third preset interval is a subinterval of the default interval, and the upper limit value of the third preset interval is smaller than the upper limit value of the default interval.
6. A network connection device applied to an electronic device, comprising:
the acquisition module is used for acquiring the operation parameters of the electronic equipment;
the determining module is used for determining a network use scene where the electronic equipment is located according to the operation parameters;
The control module is used for controlling the electronic equipment to be connected with the network according to a network transmission strategy corresponding to the network use scene;
the control module is specifically configured to:
and under the condition of a first preset scene of the network usage field Jing Manzu, adopting a first network transmission strategy to control the electronic equipment to be connected with a network, wherein the first preset scene comprises at least one of the following steps: game scenes, voice communication scenes and page refreshing scenes;
the control module executing the first network transmission strategy to control the electronic equipment to connect with the network comprises:
The network rate is controlled to be adjusted in a first preset interval, the first preset interval is a subinterval of a default interval, and the upper limit value of the first preset interval is smaller than the upper limit value of the default interval.
7. The apparatus of claim 6, wherein the control module is configured to:
And under the condition of a second preset scene of the network use field Jing Manzu, adopting a second network transmission strategy to control the electronic equipment to be connected with the network, wherein the first network transmission strategy is different from the second network transmission strategy.
8. The apparatus of claim 6, wherein the control module comprises:
And the connection module is used for carrying out network connection at a first network rate, wherein the first network rate is smaller than a default network rate.
9. The apparatus of claim 6, wherein the control module comprises:
A reduction module, configured to reduce a network rate in a case where consecutive transmission of a first number of data packets fails, where the first number is less than a first default number;
An increasing module, configured to increase a network rate if the continuous transmission of the second number of data packets is successful, where the second number is greater than a second default number;
The reducing module is further configured to reduce the network rate in case of failure in continuously transmitting a third number of data packets, where the third number is greater than the first default number;
the increasing module is further configured to increase the network rate if the continuous sending of the fourth number of data packets is successful, where the fourth number is smaller than the second default number.
10. The apparatus of claim 6, wherein the control module is configured to:
Controlling the network rate to be adjusted in a second preset interval under the condition that the network rate is smaller than a first threshold value, wherein the second preset interval is a subinterval of a default interval, and the upper limit value of the second preset interval is smaller than the upper limit value of the default interval;
and under the condition that the network rate is smaller than a second threshold value, controlling the network rate to be adjusted in a third preset interval, wherein the third preset interval is a subinterval of the default interval, and the upper limit value of the third preset interval is smaller than the upper limit value of the default interval.
CN202110815798.5A 2021-07-19 2021-07-19 Network connection method and device Active CN113573338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110815798.5A CN113573338B (en) 2021-07-19 2021-07-19 Network connection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110815798.5A CN113573338B (en) 2021-07-19 2021-07-19 Network connection method and device

Publications (2)

Publication Number Publication Date
CN113573338A CN113573338A (en) 2021-10-29
CN113573338B true CN113573338B (en) 2024-05-14

Family

ID=78165578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110815798.5A Active CN113573338B (en) 2021-07-19 2021-07-19 Network connection method and device

Country Status (1)

Country Link
CN (1) CN113573338B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595520A (en) * 2012-02-07 2012-07-18 北京傲天动联技术有限公司 Transmitting speed adjusting method in wireless local area network and device using same
CN103532669A (en) * 2013-10-14 2014-01-22 福建星网锐捷网络有限公司 Data transmission rate regulation method, device and wireless access point
CN110505660A (en) * 2019-07-23 2019-11-26 维沃移动通信有限公司 A kind of network rate method of adjustment and terminal device
WO2021077375A1 (en) * 2019-10-24 2021-04-29 深圳市欢太科技有限公司 Communication frequency adjustment method and apparatus, and electronic device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9380534B2 (en) * 2012-06-07 2016-06-28 Google Inc. System and method for selecting a power efficient network interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595520A (en) * 2012-02-07 2012-07-18 北京傲天动联技术有限公司 Transmitting speed adjusting method in wireless local area network and device using same
CN103532669A (en) * 2013-10-14 2014-01-22 福建星网锐捷网络有限公司 Data transmission rate regulation method, device and wireless access point
CN110505660A (en) * 2019-07-23 2019-11-26 维沃移动通信有限公司 A kind of network rate method of adjustment and terminal device
WO2021077375A1 (en) * 2019-10-24 2021-04-29 深圳市欢太科技有限公司 Communication frequency adjustment method and apparatus, and electronic device and storage medium

Also Published As

Publication number Publication date
CN113573338A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
US20170302990A1 (en) Method, terminal, and system for processing data of video stream
EP2640083A2 (en) Multimedia data processing apparatus and method of terminal
KR100987552B1 (en) Ever-increasing quality for stored video streaming in a mobile wireless interworking environment
US10397664B2 (en) Method for operating a mobile device
US20210368571A1 (en) Method for link connection, electronic device and storage medium
US10893275B2 (en) Video coding method, device, device and storage medium
CN113572836B (en) Data transmission method, device, server and storage medium
CN112399190A (en) Audio and video data acquisition method and device
CN110662093A (en) Initial code rate determination method and device, electronic equipment and storage medium
CN111527767B (en) Method and equipment for improving network performance
EP4240037A1 (en) Data processing method and apparatus, storage medium, terminal, and network access point device
CN113573338B (en) Network connection method and device
CN114710804A (en) Data transmission adjusting method and device, electronic equipment and readable storage medium
CN112312370B (en) Switching threshold value processing method and device
CN108347579B (en) Bandwidth control method and device
CN112929065B (en) Electronic equipment control method and device and electronic equipment
JP2023543761A (en) Transmission information determination method, device and terminal
JP2004312560A (en) Streaming receiving terminal, and streaming distribution apparatus
CN109565893B (en) Roaming to share communication channels
US7626998B2 (en) Communication device, communication node, and method for transmitting a message
CN114615725B (en) Terminal control method and device and electronic equipment
CN113784384B (en) Mode switching method, terminal and network side equipment
CN113490266B (en) Uplink power level adjusting method and device and electronic equipment
CN117857464A (en) Data transmission method, device, electronic equipment and readable storage medium
CN115426083A (en) Transmission control method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant