Network connection method and device

文档序号:173124 发布日期:2021-10-29 浏览:24次 中文

阅读说明:本技术 一种网络连接方法和装置 (Network connection method and device ) 是由 李自来 于 2021-07-19 设计创作,主要内容包括:本申请实施例公开了一种网络连接方法和装置,该方法包括:获取电子设备的运行参数;根据运行参数,确定电子设备所处的网络使用场景;根据与网络使用场景对应的网络传输策略,控制电子设备与网络进行连接。(The embodiment of the application discloses a network connection method and a device, wherein the method comprises the following steps: acquiring operating parameters of the electronic equipment; determining a network use scene where the electronic equipment is located according to the operation parameters; and controlling the electronic equipment to be connected with the network according to the network transmission strategy corresponding to the network use scene.)

1. A network connection method applied to an electronic device is characterized by comprising the following steps:

acquiring operating parameters of the electronic equipment;

determining a network use scene where the electronic equipment is located according to the operation parameters;

and controlling the electronic equipment to be connected with the network according to the network transmission strategy corresponding to the network use scene.

2. The method of claim 1, wherein the controlling the electronic device to connect to the network according to the network transmission policy corresponding to the network usage scenario comprises:

under the condition that the network use scene meets a first preset scene, a first network transmission strategy is adopted to control the electronic equipment to be connected with the network;

and under the condition that the network use scene meets a second preset scene, a second network transmission strategy is adopted to control the electronic equipment to be connected with the network, and the first network transmission strategy is different from the second network transmission strategy.

3. The method of claim 2, wherein the controlling the electronic device to connect to the network using the first network transmission policy comprises:

and performing network connection at a first network rate, wherein the first network rate is less than the default network rate.

4. The method of claim 2, wherein the controlling the electronic device to connect to the network using the first network transmission policy comprises:

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.

5. The method of claim 2, wherein the controlling the electronic device to connect to the network using the first network transmission policy comprises:

reducing the network rate in case of failure to continuously send a first number of packets, the first number being smaller than a first default number;

increasing the network rate under the condition that a second number of data packets are transmitted successfully, wherein the second number is larger than a second default number;

the controlling the electronic device to connect with the network by using the second network transmission strategy includes:

reducing the network rate in case of a failure to continuously send a third number of packets, the third number being greater than the first default number;

increasing the network rate in the event that a fourth number of packets is successfully transmitted, the fourth number being less than a second default number.

6. The method of claim 2, wherein the controlling the electronic device to connect to the network using the first network transmission policy comprises:

under the condition that the network rate is smaller than a first threshold value, controlling the network rate to be adjusted in a second preset interval, wherein the second preset interval is a sub-interval of the default interval, and the upper limit value of the second preset interval is smaller than the upper limit value of the default interval;

the controlling the electronic device to connect with the network by using the second network transmission strategy 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 sub-interval 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.

7. A network connection device applied to an electronic device, comprising:

the acquisition module is used for acquiring the operating 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.

8. The apparatus of claim 7, wherein the control module is specifically configured to:

under the condition that the network use scene meets a first preset scene, a first network transmission strategy is adopted to control the electronic equipment to be connected with the network;

and under the condition that the network use scene meets a second preset scene, a second network transmission strategy is adopted to control the electronic equipment to be connected with the network, and the first network transmission strategy is different from the second network transmission strategy.

9. The apparatus of claim 8, wherein the control module comprises:

the connection module is used for performing network connection at a first network rate, wherein the first network rate is less than a default network rate.

10. The apparatus of claim 8, wherein the control module comprises:

the adjusting module is used for controlling the network rate to be adjusted in a first preset interval, the first preset interval is a sub-interval 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.

11. The apparatus of claim 8, wherein the control module comprises:

a reduction module configured to reduce a network rate in case of a failure to continuously transmit a first number of packets, the first number being smaller than a first default number;

the device comprises an increasing module, a judging module and a transmitting module, wherein the increasing module is used for increasing the network rate under the condition that a second number of data packets are continuously transmitted successfully, and the second number is larger than a second default number;

the reducing module is further configured to reduce the network rate under a condition that continuous transmission of a third number of data packets fails, where the third number is greater than the first default number;

the increasing module is further configured to increase the network rate when a fourth number of data packets are successfully sent, where the fourth number is smaller than a second default number.

12. The apparatus of claim 8, wherein the control module is specifically configured to:

under the condition that the network rate is smaller than a first threshold value, controlling the network rate to be adjusted in a second preset interval, wherein the second preset interval is a sub-interval of the 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 sub-interval 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.

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 can connect networks 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 performed according to actual network connection scenes, and then the 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, and aims to solve the problem that network connection requirements under different network connection scenes cannot be met.

In order to solve the technical problem, the present application is implemented as follows:

in a first aspect, an embodiment of the present application provides a network connection method, where the method may include:

acquiring operating parameters of the electronic equipment;

determining a network use scene where the electronic equipment is located according to the operation parameters;

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 apparatus, which may include:

the acquisition module is used for acquiring the operating 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, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.

In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement 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 the processor is configured to execute a program or instructions to implement the method according to the first aspect.

In the embodiment of the application, a network use scene where the electronic equipment is located 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 carried out 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 stable and quick network transmission is further ensured.

Drawings

The present application may be better understood from the following description of specific embodiments of the application taken in conjunction with the accompanying drawings, in which like or similar reference numerals identify like or similar features.

Fig. 1 is a schematic view 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 disclosure;

fig. 4 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;

fig. 5 is a schematic hardware structure diagram of another electronic device according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The terms first, second and the like in the description and in the claims of the present application 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 is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.

The network connection method provided in the embodiment of the present application can be applied to at least the following application scenarios, which are described below.

As shown in fig. 1, the network rates of the current wireless communication technology (WiFi) during data transmission are shown in fig. 1, the rate configuration is implemented by index values of Modulation and Coding Schemes (MCS), and the network rates can be classified 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 larger the network rate level, the larger the network rate. The MCS forms a rate table with the MCS index as a row and the columns of the table as the factors that affect the communication rate concerned. Therefore, each MCS index actually 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 poor, the appropriate network rate can be reduced only after long-time transmission failure, so that the situation that the internet cannot be accessed for a long time occurs; then, when the network rate is reduced and normal network transmission can be carried out, the network rate is increased again; however, after the network is back up, if the current network environment cannot support a high network rate, the network rate repeats the step of failing to slow down, which may cause the network connection to be unstable.

Wherein, the mentioned network rate 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, cellular mobile communication adopts a cellular wireless networking mode, and the terminal and the network equipment are connected through a wireless channel, so that users can communicate with each other during activities. The main characteristic is the mobility of the terminal, and the terminal has the functions of handover and automatic roaming across local networks. The cellular mobile communication service refers to services such as voice, data, video images and the like provided by a cellular mobile communication network formed by equipment such as a base station subsystem, a mobile switching subsystem and the like.

In view of the problems in the related art, embodiments of the present application provide a network connection method and apparatus, so as to solve the problem in the related art that the network connection requirements in different network connection scenarios cannot be met.

The method provided by the embodiment of the application can be applied to any scene which cannot meet the network connection requirements under different network connection scenes besides the application scenes.

According to the method provided by the embodiment of the application, the network use scene where the electronic equipment is located 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 carried out 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 stable and quick network transmission is further ensured.

Based on the application scenario, the network connection method provided in 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 disclosure.

As shown in fig. 2, the network connection method may include steps 210 to 230, and the method is applied to a network connection device, and specifically as follows:

step 210, obtaining an operating parameter of the electronic device.

Step 220, determining a network usage scenario in which the electronic device is located according to the operation parameters.

And step 230, controlling the electronic device to be connected with the network according to the network transmission strategy corresponding to the network use scene.

According to the network connection method, the network use scene where the electronic equipment is located 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 carried out 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 stable and quick network transmission is further ensured.

The contents of steps 210-230 are described below:

first, step 210 is involved.

And acquiring the operating parameters of the electronic equipment. The above-mentioned running parameters may include an application running in the foreground. An application, which refers to a computer program designed to perform one or more specific tasks, operates in a user mode, can interact with a user, and has a visual user interface.

Next, step 220 is involved.

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 use scenes are different, the network use scene where the electronic equipment is located is determined according to the operation parameters, a network transmission strategy matched with the network use scene can be provided, the network rate can be dynamically adjusted, and more stable and better internet experience is provided for users.

Finally, step 230 is involved.

In step 230, the following steps may be specifically included:

under the condition that a network use scene meets a first preset scene, a first network transmission strategy is adopted to control the electronic equipment to be connected with the network;

and under the condition that the network use scene meets a second preset scene, 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.

Wherein the first preset scenario may include at least one of: a game scene, a voice communication scene, and a page refresh scene.

Wherein the second preset scenario may include: playing video scenes and/or transmitting file scenes.

To facilitate the description of the first network transmission policy and the second network transmission policy, the following description will be made of a default network rate, a default interval, and a second default number. The above-mentioned parameter values related to the default network rate, the default interval, the first default number and the second default number are related to the kind 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 different transmission power, and the lower the transmission rate, the higher the transmission power. The anti-interference capability of each rate is different, and the lower the rate, the stronger the anti-interference capability.

In the existing rate adjustment scheme, the transmission rate is adjusted downward by one step when the first default number (N1) of continuous data packets fails to be transmitted, and the transmission rate is increased by one step when the second default number (N2) of continuous data packets is successfully transmitted. The default interval is: (MCS0, MCS 15).

The step of controlling the connection between the electronic device and the network by using 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 less than the default network rate.

The network transmission strategies corresponding to scenes with small data volume, such as game scenes, voice communication scenes, page refreshing scenes and the like, are explained, and in these scenes, users pay more attention to the stability of internet surfing.

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 (MCS3) is less than the default network rate (MCS 15).

The step of controlling the connection between the electronic device and the network by using 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 internet access, the limits of the initial network speed and the network speed adjustment range are lower, so that the internet access is more stable and the interference resistance is stronger. The first preset interval (MCS0, MCS7) is a sub-interval of the default interval (MCS0, MCS15), and the upper limit value (MCS7) of the first preset interval is smaller than the upper limit value (MCS15) of the default interval.

The step of controlling the connection between the electronic device and the network by using the first network transmission policy may specifically include the following steps:

reducing the network rate in the case of failure to continuously transmit a first number of packets, the first number being less than a first default number; the network rate is increased in case a second number of data packets is successfully transmitted consecutively, the second number being larger than a second default number.

Illustratively, when the application running in the foreground is a game, the requirement on the network rate is within 1M, the requirement on the network bandwidth is low, but the requirement on the network stability is high, and the minimum rate of 1Mbps of WiFi is enough to meet the requirement of the game. Thus, the failure rate of the first number of consecutive packets (e.g., N1/2) can be adjusted to be reduced by one, so that the electronic device can be at a stable network rate more quickly. In addition, if the game interface is down, a timer T0 is set, the speed is not increased within the time T0, and after T0, the speed is increased by 1 step if the second number (2 x N2) of packets are continuously successful. The first number (N1/2) is less than the first default number (N1); the second number (2 × N2) is greater than the second default number (N2).

The step of controlling the connection between the electronic device and the network by using the second network transmission policy may specifically include the following steps:

reducing the network rate under the condition that the continuous sending of a third number of data packets fails, wherein the third number is larger than the first default number; and increasing the network rate under the condition that the data packets of the fourth quantity are transmitted successfully, wherein the fourth quantity is less than the second default quantity.

Illustratively, since the requirements for network speed are high, the requirements for stability and real-time are low, for playing video, uploading files and downloading files, in order to be more likely at high bandwidth, the network rate is reduced in case of failure to send a third number (2 × N1) of packets consecutively, the third number (2 × N1) being greater than the first default number (N1); in the case where the continuous transmission of the fourth number (N2/2) of packets is successful, 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 using 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, controlling the network rate to be adjusted in a second preset interval, wherein the second preset interval is a sub-interval of the 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 the first threshold (MCS1), the control network rate is adjusted within a second preset interval (MCS0, MCS 3). The second preset interval (MCS0, MCS3) is a sub-interval of the default interval (MCS0, MCS15), and the upper limit value (MCS3) of the second preset interval is smaller than the upper limit value (MCS15) of the default interval. The second preset interval is a sub-interval of the first preset interval, and the upper limit value of the second preset interval is smaller than that of the first preset interval.

The second preset interval (MCS0, MCS3) may be a sub-interval of the first preset interval (MCS0, MCS7), and the upper limit value (MCS3) of the second preset interval is smaller than the upper limit value of the first preset interval (MCS 7).

For example, in the case that 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, and the adjustment range is MCS0-MCS 15. In order to ensure fast network connection, the initial rate of network connection and the adjustment range of network rate are both limited to be higher, so as to achieve the purposes of faster internet access and smoother network.

The step of controlling the connection between the electronic device and the network by using 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, controlling the network rate to be adjusted in a third preset interval, wherein the third preset interval is a sub-interval 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 smaller than the second threshold (MCS7), the network rate is controlled to be adjusted within a third preset interval (MCS0, MCS7), the third preset interval (MCS0, MCS7) is a sub-interval of the default interval (MCS0, MCS15), and the upper limit value (MCS7) of the third preset interval is smaller than the upper limit value (MCS15) of the default interval.

In a possible embodiment, if the game and the data download scenario are simultaneously performed, in this case, to ensure the stability of the internet, and also to consider the download speed, the initial network rate may be set to MCS5, and the adjustment range is (MCS0, MCS 10). And (3) sending N2 continuous success packets, increasing the rate by 1, and sending N1 continuous failure packets, and down-shifting the rate by 1.

In a possible embodiment, the packet loss rate in at least one preset time period is detected;

determining a target time period from at least one preset time period, wherein the packet loss rate of the target time period is less 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 the packet loss rate in at least one preset time period (3 minutes); determining a target time period (within 2 nd minute) from at least one preset time period, wherein the packet loss rate of the target time period is less than a preset packet loss rate threshold (10%); determining a second network rate (TX0) according to the network rate corresponding to the target time period (within 2 minutes); and controlling the network rate to be adjusted in a fourth preset interval (MCS0, TX0), wherein the upper limit value of the fourth preset interval is the second network rate.

In addition, the network access condition of 3 megaflows can be counted; and (4) counting the Internet access condition and the packet loss rate of the WiFi, and resetting the transmission rate of the WiFi and the adjustment range of the rate. Correspondingly, the rate of N1 data packets which are sent continuously is increased by 1 gear, and the rate of N2 data packets which are sent continuously is decreased by 1 gear.

Therefore, the initial transmission rate and the rate adjustment range suitable for the current application and environment are set through the user scene and the WiFi internet surfing condition monitored for a period of time, and the user internet surfing experience is better.

In summary, in the embodiment of the present application, a network usage scenario where the electronic device is located is determined according to the operation parameters 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 carried out 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 stable and quick network transmission is further ensured. It should be noted that, in the network connection method provided in the embodiment of the present application, the execution main body may be a network connection device, or a control module in the network connection device, which is used for executing the loading of the network connection method. In the embodiment of the present application, a network connection device is taken as an example to execute a method for loading a network connection, and the network connection method provided in the embodiment of the present application is described.

In addition, based on the foregoing network connection method, an embodiment of the present 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 disclosure.

As shown in fig. 3, the network connection device 300 may include:

the obtaining module 310 is configured to obtain an operating parameter of the electronic device.

And the determining module 320 is 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 to the network according to a network transmission policy corresponding to a network usage scenario.

In a possible embodiment, the control module 330 is specifically configured to:

and under the condition that the network use scene meets a first preset scene, the electronic equipment is controlled to be connected with the network by adopting a first network transmission strategy.

And under the condition that the network use scene meets a second preset scene, 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 performing network connection at a first network rate, wherein the first network rate is less than the default network rate.

In one possible embodiment, the control module 330 includes:

and the adjusting module is used for controlling the network rate to be adjusted in a first preset interval, the first preset interval is a sub-interval of the 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:

the apparatus includes a reduction module to reduce a network rate in the event of a failure to continuously send a first number of packets, the first number being less than a first default number.

And the increasing module is used for increasing the network rate under the condition that a second number of data packets are continuously transmitted successfully, wherein the second number is larger than a second default number.

And the reducing module is further used for reducing the network rate under the condition that the continuous sending of a third number of data packets fails, wherein the third number is larger than the first default number.

And the increasing module is further used for increasing the network rate under the condition that the continuous sending of a fourth number of data packets is successful, wherein the fourth number is smaller than the second default number.

In a possible embodiment, the control module 330 is specifically configured to:

and under the condition that the network rate is smaller than the first threshold, controlling the network rate to be adjusted in a second preset interval, wherein the second preset interval is a sub-interval of the 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, controlling the network rate to be adjusted in a third preset interval, wherein the third preset interval is a sub-interval 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, the network connection device provided in the embodiment of the present application determines a network usage scenario in which the electronic device is located according to the operating parameters 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 carried out 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 stable and quick network transmission is further ensured.

The network connection device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.

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 (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are 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 is not described here again to avoid repetition.

Optionally, as shown in fig. 4, an electronic device 400 is further provided in this embodiment of the present application, and includes a processor 401, a memory 402, and a program or an instruction stored in the memory 402 and executable on the processor 401, where the program or the instruction is executed by the processor 401 to implement each process of the above-mentioned chat group creation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.

It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.

Fig. 5 is a schematic hardware structure diagram 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 supply 511. Among other things, 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; the memory 509 may include an application program and an operating system.

Those skilled in the art will appreciate that the electronic device 500 may further comprise a power supply (e.g., a battery) for supplying power to various components, and the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. 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 those shown, or combine some components, or arrange different components, and thus, the description is omitted here.

A processor 510 for obtaining operating parameters 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 a processor 510, configured to control the electronic device to connect to the network according to a network transmission policy corresponding to a network usage scenario.

Optionally, the processor 510 is further configured to control the electronic device to connect to the network by using a first network transmission policy when the network usage scenario satisfies a first preset scenario.

And under the condition that the network use scene meets a second preset scene, 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 smaller than the default network rate.

Optionally, the processor 510 is further configured to control the network rate to be adjusted within a first preset interval, where the first preset interval is a sub-interval 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 a first number of packets, the first number being smaller than the first default number.

The processor 510 is further configured to increase the network rate in case a second number of data packets is successfully transmitted consecutively, the second number being larger than a second default number.

The processor 510 is further configured to reduce the network rate in case of a failure to continuously send a third number of packets, the third number being greater than the first default number.

The processor 510 is further configured to increase the network rate if a fourth number of packets is successfully transmitted, the fourth number being less than the second default number.

Optionally, the processor 510 is further configured to control the network rate to be adjusted within a second preset interval when the network rate is smaller than the first threshold, where the second preset interval is a sub-interval of the default interval, and an upper limit value of the second preset interval is smaller 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 smaller than the second threshold, where the third preset interval is a sub-interval of the default interval, and an upper limit value of the third preset interval is smaller than an upper limit value of the default interval.

In the embodiment of the application, a network use scene where the electronic equipment is located 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 carried out 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 stable and quick network transmission is further ensured.

The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing network connection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.

The processor is the 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 (RAM), a magnetic disk or an optical disk, and so on.

The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing network connection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.

It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.

While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种设备无线连接方法及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!