CN106604364B - A method, terminal and storage medium for network connection - Google Patents
A method, terminal and storage medium for network connection Download PDFInfo
- Publication number
- CN106604364B CN106604364B CN201611121187.6A CN201611121187A CN106604364B CN 106604364 B CN106604364 B CN 106604364B CN 201611121187 A CN201611121187 A CN 201611121187A CN 106604364 B CN106604364 B CN 106604364B
- Authority
- CN
- China
- Prior art keywords
- application
- terminal
- target application
- unit
- rate
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/18—Selecting a network or a communication service
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
发明提供了一种网络连接的方法及终端。所述方法包括:若检测到Wi‑Fi被开启,则确定终端中与所述Wi‑Fi共用天线的目标应用;判断所述目标应用是否处于开启状态;若所述目标应用处于开启状态,则提升Wi‑Fi使用所述天线的优先级以使得所述终端快速接入Wi‑Fi网络。从而可知,通过实施本发明提供的技术方案,能够使得终端快速连接Wi‑Fi网络,从而提升用户体验。
The invention provides a network connection method and terminal. The method includes: if it is detected that Wi-Fi is turned on, determining a target application in the terminal that shares an antenna with the Wi-Fi; judging whether the target application is in an on state; if the target application is in an on state, increasing the priority of Wi-Fi using the antenna so that the terminal can quickly access the Wi-Fi network. It can be seen that by implementing the technical solution provided by the present invention, the terminal can quickly connect to the Wi-Fi network, thereby improving the user experience.
Description
技术领域technical field
本发明涉及终端领域,具体涉及了一种网络连接的方法及终端。The present invention relates to the field of terminals, in particular to a method and terminal for network connection.
背景技术Background technique
随着宽带行业蓬勃发展及智能终端的普及,越来越多的用户通过智能终端 Wi-Fi接入网关,以享受网络服务。With the vigorous development of the broadband industry and the popularization of smart terminals, more and more users access the gateway through Wi-Fi of smart terminals to enjoy network services.
需要指出的是,现有技术中,Wi-Fi、蓝牙等短距离传输技术都是共用终端的天线已进行数据包的收发,因此在当多个短距离传输技术同时开启时, Wi-Fi的连网速度会变慢。It should be pointed out that in the prior art, short-range transmission technologies such as Wi-Fi and Bluetooth all share the antenna of the terminal to send and receive data packets. Therefore, when multiple short-range transmission technologies are enabled at the same time, Wi-Fi The connection speed will be slower.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种网络连接的方法及终端,能够使得终端快速连接 Wi-Fi网络,从而提升用户体验。Embodiments of the present invention provide a network connection method and terminal, which can enable the terminal to quickly connect to a Wi-Fi network, thereby improving user experience.
本发明实施例第一方面公开了网络连接的方法,所述方法包括:A first aspect of the embodiments of the present invention discloses a method for network connection, and the method includes:
若检测到Wi-Fi被开启,则确定终端中与所述Wi-Fi共用天线的目标应用;If it is detected that Wi-Fi is turned on, determining the target application in the terminal that shares the antenna with the Wi-Fi;
判断所述目标应用是否处于开启状态;Determine whether the target application is in an open state;
若所述目标应用处于开启状态,则提升Wi-Fi使用所述天线的优先级以使得所述终端快速接入Wi-Fi网络。If the target application is in an open state, the priority of using the antenna for Wi-Fi is increased so that the terminal can quickly access the Wi-Fi network.
本发明第二方面公开了一种终端,所述终端包括:A second aspect of the present invention discloses a terminal, the terminal comprising:
确定单元,用于若检测到Wi-Fi被开启,则确定终端中与所述Wi-Fi共用天线的目标应用;a determining unit, configured to determine a target application that shares an antenna with the Wi-Fi in the terminal if it is detected that the Wi-Fi is turned on;
判断单元,用于判断所述目标应用是否处于开启状态;a judging unit for judging whether the target application is in an open state;
提升单元,用于若所述目标应用处于开启状态,则提升Wi-Fi使用所述天线的优先级以使得所述终端快速接入Wi-Fi网络。An elevating unit, configured to elevate the priority of Wi-Fi using the antenna if the target application is in an open state, so that the terminal can quickly access the Wi-Fi network.
本发明第三方面公开了一种终端,所述终端包括:A third aspect of the present invention discloses a terminal, the terminal comprising:
存储有可执行程序代码的存储器;a memory in which executable program code is stored;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行如第一方面所述的方法。The processor invokes the executable program code stored in the memory to execute the method according to the first aspect.
本发明实施例的方案中,若检测到Wi-Fi被开启,则确定终端中与所述 Wi-Fi共用天线的目标应用;判断所述目标应用是否处于开启状态;若所述目标应用处于开启状态,则提升Wi-Fi使用所述天线的优先级以使得所述终端快速接入Wi-Fi网络。从而可知,通过实施本发明提供的技术方案,能够使得终端快速连接Wi-Fi网络,从而提升用户体验。In the solution of the embodiment of the present invention, if it is detected that Wi-Fi is turned on, the target application in the terminal that shares the antenna with the Wi-Fi is determined; it is judged whether the target application is in the open state; if the target application is in the open state status, then the priority of Wi-Fi using the antenna is increased so that the terminal can quickly access the Wi-Fi network. It can be seen that, by implementing the technical solution provided by the present invention, the terminal can be quickly connected to the Wi-Fi network, thereby improving user experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本发明实施例提供的一种网络连接的方法的流程示意图;1 is a schematic flowchart of a method for network connection according to an embodiment of the present invention;
图2为本发明实施例提供的另一种网络连接的方法的流程示意图;2 is a schematic flowchart of another method for network connection provided by an embodiment of the present invention;
图3为本发明实施例提供的另一种网络连接的方法的流程示意图;3 is a schematic flowchart of another method for network connection provided by an embodiment of the present invention;
图4为本发明实施例提供的一种终端的结构示意图;FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图5为本发明实施例提供的另一种终端的结构示意图;FIG. 5 is a schematic structural diagram of another terminal according to an embodiment of the present invention;
图6为本发明实施例提供的另一种终端的结构示意图;FIG. 6 is a schematic structural diagram of another terminal provided by an embodiment of the present invention;
图7为本发明实施例提供的一种终端的实体装置结构示意图;FIG. 7 is a schematic structural diagram of a physical device of a terminal according to an embodiment of the present invention;
图8为本发明实施例提供的一种手机的实体装置结构示意图。FIG. 8 is a schematic structural diagram of a physical device of a mobile phone according to an embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例提供了一种网络连接的方法及终端,能够使得终端快速连接 Wi-Fi网络,从而提升用户体验。Embodiments of the present invention provide a network connection method and terminal, which can enable the terminal to quickly connect to a Wi-Fi network, thereby improving user experience.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order for those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are of the present invention. Some examples, but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明说明书、权利要求书和附图中出现的术语“第一”、“第二”和“第三”等是用于区别不同的对象,而并非用于描述特定的顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second" and "third" appearing in the specification, claims and drawings of the present invention are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
在本发明的一个实施例中公开了一种网络连接的方法,所述方法包括:若检测到Wi-Fi被开启,则确定终端中与所述Wi-Fi共用天线的目标应用;判断所述目标应用是否处于开启状态;若所述目标应用处于开启状态,则提升 Wi-Fi使用所述天线的优先级以使得所述终端快速接入Wi-Fi网络。An embodiment of the present invention discloses a method for network connection. The method includes: if it is detected that Wi-Fi is turned on, determining a target application in a terminal that shares an antenna with the Wi-Fi; Whether the target application is in an open state; if the target application is in an open state, the priority of Wi-Fi using the antenna is increased so that the terminal can quickly access the Wi-Fi network.
请参阅图1,图1是本发明一个实施例提供的一种网络连接的方法。其中,如图1所示,本发明的一个实施例提供的一种网络连接的方法包括以下内容:Please refer to FIG. 1. FIG. 1 is a method for network connection provided by an embodiment of the present invention. Wherein, as shown in FIG. 1 , a method for network connection provided by an embodiment of the present invention includes the following contents:
S101、若检测到Wi-Fi被开启,则确定终端中与所述Wi-Fi共用天线的目标应用;S101. If it is detected that Wi-Fi is turned on, determine a target application in the terminal that shares an antenna with the Wi-Fi;
其中,需要指出的是,该方法的执行主体是终端。所述终端包括但不限于智能手机、平板电脑、计算机以及穿戴式设备等可通过网络进行数据传输业务的电子设备。Among them, it should be pointed out that the execution body of the method is the terminal. The terminals include, but are not limited to, electronic devices such as smart phones, tablet computers, computers, and wearable devices that can perform data transmission services through a network.
其中,可选的,所述确定终端中与所述Wi-Fi共用天线的目标应用,包括:搜索所述终端中安装的具备短距离传输功能的应用;读取所述应用的配置信息以确定所述应用传输频率;将与所述Wi-Fi相同频率的应用设置为目标应用。Wherein, optionally, the determining the target application that shares the antenna with the Wi-Fi in the terminal includes: searching for an application with a short-distance transmission function installed in the terminal; reading configuration information of the application to determine The application transmission frequency; the application with the same frequency as the Wi-Fi is set as the target application.
其中,所述短距离传输功能的应用包括但不限于射频识别应用、蓝牙应用、ZigBee应用、超宽带应用等。The applications of the short-distance transmission function include but are not limited to radio frequency identification applications, Bluetooth applications, ZigBee applications, ultra-wideband applications, and the like.
举例来说,常用的Wi-Fi为2.4GHz,而蓝牙的频率也是2.4GHz,那么蓝牙就会被设置为目标应用。For example, the commonly used Wi-Fi is 2.4GHz, and the frequency of Bluetooth is also 2.4GHz, then Bluetooth will be set as the target application.
S102、判断所述目标应用是否处于开启状态;S102, judging whether the target application is in an open state;
举例来说,可以查询后台运行的程序的列表,如果该列表中包含目标应用的标识,则个目标应用就处于开启状态。For example, a list of programs running in the background can be queried, and if the list contains the identifier of the target application, the target application is in an open state.
S103、若所述目标应用处于开启状态,则提升Wi-Fi使用所述天线的优先级以使得所述终端快速接入Wi-Fi网络。S103. If the target application is in an open state, increase the priority of using the antenna for Wi-Fi to enable the terminal to quickly access the Wi-Fi network.
举例来说,如果该Wi-Fi原先的优先级为中级,可以将Wi-Fi的优先级调整为高级。For example, if the original priority of the Wi-Fi is medium, the priority of Wi-Fi can be adjusted to high.
可以理解的是,优先级一般分为高级、中级和低级。由于目标应用和Wi-Fi 共用天线,所以他们为时分复用。优先级越高,占用的时间片越多。It can be understood that the priorities are generally divided into high, medium and low. Since the target application and Wi-Fi share the same antenna, they are time division multiplexed. The higher the priority, the more time slices are occupied.
举例来说,低优先级的应用占用的时间片为1份,中优先级的应用占用的时间片为2份,高优先级的应用占用的时间片为3份。可以理解的是,占用的时间片份数越多,连接网络的速度越快。For example, a low-priority application occupies 1 time slice, a medium-priority application occupies 2 time slices, and a high-priority application occupies 3 time slices. It is understandable that the more time slices occupied, the faster the connection to the network.
其中,可选的,所述方法还包括:若所述目标应用处于开启状态,则判断所述目标应用传输数据的速率是否大于预设阈值;若所述目标应用中存在传输数据的速率大于第一预设速率的繁忙应用,则暂停该繁忙应用的运行。Wherein, optionally, the method further includes: if the target application is in an open state, judging whether the data transmission rate of the target application is greater than a preset threshold; if the target application has a transmission data rate greater than the first For a busy application at a preset rate, the operation of the busy application is suspended.
举例来说,如果蓝牙处于开启状态,那么就判断蓝牙当前传输数据的速率是否大于1M/S,如果蓝牙当前传输数据的速率大于1M/S,则暂停该蓝牙的运行。For example, if the Bluetooth is in the on state, then it is determined whether the current data transmission rate of the Bluetooth is greater than 1M/S, and if the current data transmission rate of the Bluetooth is greater than 1M/S, the operation of the Bluetooth is suspended.
可选的,所述暂停该繁忙应用的运行之后,所述方法还包括:获取Wi-Fi 的连接状态;若所述终端连接Wi-Fi成功,则将所述Wi-Fi的优先级恢复到默认状态,并回复所述繁忙应用的运行。Optionally, after suspending the running of the busy application, the method further includes: acquiring the Wi-Fi connection status; if the terminal successfully connects to the Wi-Fi, restoring the Wi-Fi priority to default state, and resume running of the busy application.
举例来说,可以监测Wi-Fi是否有上下行数据的传输,且如果该Wi-Fi 存在上下行数据的传输,则说明Wi-Fi连接成功。如果该Wi-FiFor example, it is possible to monitor whether the Wi-Fi has transmission of uplink and downlink data, and if the Wi-Fi has transmission of uplink and downlink data, it means that the Wi-Fi connection is successful. If the Wi-Fi
可选的,所述方法还包括:检测Wi-Fi传输数据的速率;若检测到的速率小于第二预设速率,则获取处于后台运行的应用列表;识别所述应用列表中使用频率小于预设使用频率的应用,并将所述使用频率小于预设使用频率的应用进行关闭。Optionally, the method further includes: detecting the rate at which Wi-Fi transmits data; if the detected rate is less than a second preset rate, acquiring a list of applications running in the background; identifying that the frequency of use in the application list is less than a predetermined rate. An application with a frequency of use is set, and the application with a frequency of use less than the preset frequency of use is closed.
可以看出,本发明实施例的方案中,若检测到Wi-Fi被开启,则确定终端中与所述Wi-Fi共用天线的目标应用;判断所述目标应用是否处于开启状态;若所述目标应用处于开启状态,则提升Wi-Fi使用所述天线的优先级以使得所述终端快速接入Wi-Fi网络。从而可知,通过实施本发明提供的技术方案,能够使得终端快速连接Wi-Fi网络,从而提升用户体验。It can be seen that, in the solution of the embodiment of the present invention, if it is detected that Wi-Fi is turned on, the target application that shares the antenna with the Wi-Fi in the terminal is determined; it is determined whether the target application is in the turned-on state; if the If the target application is in an open state, the priority of Wi-Fi using the antenna is increased so that the terminal can quickly access the Wi-Fi network. It can be seen that, by implementing the technical solution provided by the present invention, the terminal can be quickly connected to the Wi-Fi network, thereby improving user experience.
请参阅图2,图2是本发明一个实施例提供的一种网络连接的方法。其中,如图2所示,本发明的一个实施例提供的一种网络连接的方法包括以下内容:Please refer to FIG. 2. FIG. 2 is a method for network connection provided by an embodiment of the present invention. Wherein, as shown in FIG. 2 , a method for network connection provided by an embodiment of the present invention includes the following contents:
S201、若检测到Wi-Fi被开启,则搜索所述终端中安装的具备短距离传输功能的应用;S201. If it is detected that Wi-Fi is turned on, search for an application with a short-distance transmission function installed in the terminal;
其中,需要指出的是,该方法的执行主体是终端。所述终端包括但不限于智能手机、平板电脑、计算机以及穿戴式设备等可通过网络进行数据传输业务的电子设备。Among them, it should be pointed out that the execution body of the method is the terminal. The terminals include, but are not limited to, electronic devices such as smart phones, tablet computers, computers, and wearable devices that can perform data transmission services through a network.
例如,该短距离传输的应用可以是蓝牙、ZigBee等等。For example, the application of the short-distance transmission may be Bluetooth, ZigBee, and the like.
S202、读取所述应用的配置信息以确定所述应用传输频率;S202, read the configuration information of the application to determine the transmission frequency of the application;
例如,蓝牙的频率为2.4GHz。For example, the frequency of Bluetooth is 2.4GHz.
S203、将与所述Wi-Fi相同频率的应用设置为目标应用;S203, setting the application of the same frequency as the Wi-Fi as the target application;
例如,Wi-Fi的频率也是2.4GH在,那么蓝牙就是目标应用。For example, the frequency of Wi-Fi is also 2.4GH, so Bluetooth is the target application.
S202、判断所述目标应用是否处于开启状态;S202, judging whether the target application is in an open state;
其中,可以查询程序运行列表,判断该列表中是否包含蓝牙的标识,如果该列表中包含蓝牙的标识,则说明蓝牙处于开启状态;Among them, the program running list can be queried to determine whether the list contains the bluetooth logo, if the list contains the bluetooth logo, it means that the bluetooth is in the open state;
S203、若所述目标应用处于开启状态,则提升Wi-Fi使用所述天线的优先级以使得所述终端快速接入Wi-Fi网络。S203. If the target application is in an open state, increase the priority of using the antenna in Wi-Fi so that the terminal can quickly access the Wi-Fi network.
S204、若所述目标应用处于开启状态,则判断所述目标应用传输数据的速率是否大于预设阈值;S204, if the target application is in an open state, determine whether the data transmission rate of the target application is greater than a preset threshold;
例如,预设阈值为1M/S或2M/S等等,在此不做限制。For example, the preset threshold is 1M/S or 2M/S, etc., which is not limited here.
S205、若所述目标应用中存在传输数据的速率大于第一预设速率的繁忙应用,则暂停该繁忙应用的运行;S205. If there is a busy application with a data transmission rate greater than a first preset rate in the target application, suspend the operation of the busy application;
S206、获取Wi-Fi的连接状态;S206, obtain the connection status of Wi-Fi;
可以理解的是,连接状态可以是连接成功或连接失败。It can be understood that the connection status can be connection success or connection failure.
S207、若所述终端连接Wi-Fi成功,则将所述Wi-Fi的优先级恢复到默认状态,并恢复所述繁忙应用的运行。S207. If the terminal is successfully connected to the Wi-Fi, restore the priority of the Wi-Fi to the default state, and resume the running of the busy application.
比如,Wi-Fi原先的优先级为中级,提升后为高级,当所述终端连接Wi-Fi 成功时,则将所述Wi-Fi的优先级从高级恢复到中级,并恢复所述繁忙应用的运行。For example, the original priority of Wi-Fi is medium, and it is upgraded to high. When the terminal successfully connects to Wi-Fi, the priority of Wi-Fi is restored from high to medium, and the busy application is restored. operation.
S208、检测Wi-Fi传输数据的速率;S208. Detect the data transmission rate of Wi-Fi;
S209、若检测到的速率小于第二预设速率,则获取处于后台运行的应用列表;S209, if the detected rate is less than the second preset rate, obtain a list of applications running in the background;
其中,第二预设速率可以是终端默认的,也可以是用户设置的。第二预设速率可以是1M/S,也可以是3M/S,在此不做限制。The second preset rate may be the default of the terminal, or may be set by the user. The second preset rate may be 1M/S or 3M/S, which is not limited here.
S210、识别所述应用列表中使用频率小于预设使用频率的应用,并将所述使用频率小于预设使用频率的应用进行关闭。S210. Identify applications in the application list whose usage frequency is lower than a preset usage frequency, and close the applications whose usage frequency is lower than the preset usage frequency.
可以看出,本发明实施例的方案中扩展了检测目标应用传输数据的速率是否大于预设阈值;若所述目标应用中存在传输数据的速率大于第一预设速率的繁忙应用,则暂停该繁忙应用的运行。可以理解的是,暂停该繁忙应用的运行,可以释放该繁忙应用占用的资源,这样Wi-Fi就可以直接利用被释放的资源进行网络连接。It can be seen that the solution in this embodiment of the present invention extends the detection of whether the data transmission rate of the target application is greater than the preset threshold; if there is a busy application in the target application whose transmission data rate is greater than the first preset rate, the application is suspended. Running of busy applications. It can be understood that by suspending the running of the busy application, the resources occupied by the busy application can be released, so that Wi-Fi can directly use the released resources for network connection.
请参阅图3,图3是本发明一个实施例提供的一种网络连接的方法。其中,如图3所示,本发明的一个实施例提供的一种网络连接的方法包括以下内容:Please refer to FIG. 3 , which is a method for network connection provided by an embodiment of the present invention. Wherein, as shown in FIG. 3 , a method for network connection provided by an embodiment of the present invention includes the following contents:
S301、若检测到Wi-Fi被开启,则确定终端中与所述Wi-Fi共用天线的目标应用;S301. If it is detected that Wi-Fi is turned on, determine a target application in the terminal that shares an antenna with the Wi-Fi;
其中,需要指出的是,该方法的执行主体是终端。所述终端包括但不限于智能手机、平板电脑、计算机以及穿戴式设备等可通过网络进行数据传输业务的电子设备。Among them, it should be pointed out that the execution body of the method is the terminal. The terminals include, but are not limited to, electronic devices such as smart phones, tablet computers, computers, and wearable devices that can perform data transmission services through a network.
其中,所述确定终端中与所述Wi-Fi共用天线的目标应用,包括:搜索所述终端中安装的具备短距离传输功能的应用;读取所述应用的配置信息以确定所述应用传输频率;将与所述Wi-Fi相同频率的应用设置为目标应用。The determining of the target application in the terminal that shares the antenna with the Wi-Fi includes: searching for an application installed in the terminal with a short-distance transmission function; reading configuration information of the application to determine the application transmission Frequency; set the application with the same frequency as the Wi-Fi as the target application.
S302、判断所述目标应用是否处于开启状态;S302, judging whether the target application is in an open state;
其中,可以查询程序运行列表,判断该列表中是否包含蓝牙的标识,如果该列表中包含蓝牙的标识,则说明蓝牙处于开启状态;Among them, the program running list can be queried to determine whether the list contains the bluetooth logo, if the list contains the bluetooth logo, it means that the bluetooth is in the open state;
S303、若所述目标应用处于开启状态,则判断所述目标应用传输数据的速率是否大于预设阈值;S303, if the target application is in an open state, determine whether the data transmission rate of the target application is greater than a preset threshold;
S304、若所述目标应用中存在传输数据的速率大于第一预设速率的繁忙应用,则暂停该繁忙应用的运行;S304. If there is a busy application with a data transmission rate greater than a first preset rate in the target application, suspend the operation of the busy application;
其中,第一预设速率可以是终端默认的,也可以是用户设置的。第一预设速率可以是1M/S,也可以是3M/S,在此不做限制。The first preset rate may be the default of the terminal, or may be set by the user. The first preset rate may be 1M/S or 3M/S, which is not limited here.
S305、获取Wi-Fi的连接状态;S305. Obtain the connection status of Wi-Fi;
可以理解的是,连接状态可以是连接成功或连接失败。It can be understood that the connection status can be connection success or connection failure.
S306、若所述终端连接Wi-Fi成功,则恢复所述繁忙应用的运行;S306. If the terminal is successfully connected to Wi-Fi, resume the operation of the busy application;
S307、检测Wi-Fi传输数据的速率;S307. Detect the data transmission rate of Wi-Fi;
S308、若检测到的速率小于第二预设速率,则获取处于后台运行的应用列表;S308. If the detected rate is less than the second preset rate, obtain a list of applications running in the background;
其中,第二预设速率可以是终端默认的,也可以是用户设置的。第二预设速率可以是1M/S,也可以是3M/S,在此不做限制。The second preset rate may be the default of the terminal, or may be set by the user. The second preset rate may be 1M/S or 3M/S, which is not limited here.
S309、识别所述应用列表中使用频率小于预设使用频率的应用,并将所述使用频率小于预设使用频率的应用进行关闭。S309 . Identify applications in the application list whose usage frequency is lower than a preset usage frequency, and close the applications whose usage frequency is lower than the preset usage frequency.
其中,可以理解的是,预设使用频率可以是终端默认的,还可以是用户设置的。预设使用频率可以是,每天运行时间为3小时。还可以是每周运行时间为5小时,在此不做限制。It can be understood that the preset usage frequency may be the default of the terminal, or may be set by the user. The preset usage frequency can be 3 hours per day. It can also run for 5 hours per week, which is not limited here.
可以看出,本发明实施例的方案中扩展了关闭使用频率小于预设使用频率的应用的步骤,可以理解的是,关闭一些应用,可以释放一些资源,从而保证Wi-Fi有足够的终端资源可以使用,进而保证Wi-Fi的数据传输速度。It can be seen that the solution in the embodiment of the present invention extends the step of closing applications whose usage frequency is less than the preset usage frequency. It can be understood that closing some applications can release some resources, thereby ensuring that Wi-Fi has sufficient terminal resources It can be used to ensure the data transmission speed of Wi-Fi.
请参阅图4,图4是本发明的一个实施例提供的一种终端的结构示意图。其中,如图4所示,本发明的一个实施例提供的一种终端400,其中,该终端可以是为智能手机、平板电脑、智能穿戴式设备等电子设备。该终端400包括确定单元401、判断单元402、以及提升单元403;Please refer to FIG. 4 , which is a schematic structural diagram of a terminal provided by an embodiment of the present invention. As shown in FIG. 4 , an embodiment of the present invention provides a terminal 400 , where the terminal may be an electronic device such as a smart phone, a tablet computer, and a smart wearable device. The terminal 400 includes a determination unit 401, a determination unit 402, and a promotion unit 403;
确定单元401,用于若检测到Wi-Fi被开启,则确定终端中与所述Wi-Fi 共用天线的目标应用;A determining unit 401, configured to determine a target application in the terminal that shares an antenna with the Wi-Fi if it is detected that Wi-Fi is turned on;
判断单元402,用于判断所述目标应用是否处于开启状态;A determination unit 402, configured to determine whether the target application is in an open state;
提升单元403,用于若所述目标应用处于开启状态,则提升Wi-Fi使用所述天线的优先级以使得所述终端快速接入Wi-Fi网络。An elevating unit 403, configured to elevate the priority of Wi-Fi using the antenna if the target application is in an open state, so that the terminal can quickly access the Wi-Fi network.
其中,确定单元401、判断单元402、以及提升单元403可以用于执行实施例1中步骤S101至S103所述的方法,具体描述详见实施例1对所述方法的描述,在此不再赘述。The determining unit 401, the judging unit 402, and the elevating unit 403 may be used to execute the method described in steps S101 to S103 in Embodiment 1. For details, please refer to the description of the method in Embodiment 1, which will not be repeated here. .
请参阅图5,图5是本发明的一个实施例提供的一种终端的结构示意图。其中,如图5所示,本发明的一个实施例提供的另一种终端500,其中,该终端可以是为智能手机、平板电脑、智能穿戴式设备等电子设备。该终端500 包括确定单元501、判断单元502、提升单元503、暂停单元504、获取单元 505、恢复单元506、检测单元507和识别单元508;Please refer to FIG. 5, which is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 5 , another terminal 500 is provided by an embodiment of the present invention, where the terminal may be an electronic device such as a smart phone, a tablet computer, and a smart wearable device. The terminal 500 includes a determination unit 501, a judgment unit 502, a promotion unit 503, a pause unit 504, an acquisition unit 505, a recovery unit 506, a detection unit 507 and an identification unit 508;
确定单元501,用于若检测到Wi-Fi被开启,则确定终端中与所述Wi-Fi 共用天线的目标应用;A determining unit 501, configured to determine a target application that shares an antenna with the Wi-Fi in the terminal if it is detected that Wi-Fi is turned on;
具体的,确定单元501包括搜索子单元、读取子单元、设置子单元;Specifically, the determining unit 501 includes a search subunit, a reading subunit, and a setting subunit;
所述搜索子单元,用于搜索所述终端中安装的具备短距离传输功能的应用;The search subunit is used to search for applications installed in the terminal with a short-distance transmission function;
所述读取子单元,用于读取所述应用的配置信息以确定所述应用传输频率;the reading subunit, configured to read the configuration information of the application to determine the transmission frequency of the application;
所述设置子单元,用于将与所述Wi-Fi相同频率的应用设置为目标应用。The setting subunit is used for setting an application of the same frequency as the Wi-Fi as a target application.
判断单元502,用于判断所述目标应用是否处于开启状态;A judgment unit 502, configured to judge whether the target application is in an open state;
提升单元503,用于若所述目标应用处于开启状态,则提升Wi-Fi使用所述天线的优先级以使得所述终端快速接入Wi-Fi网络;An elevating unit 503, configured to elevate the priority of Wi-Fi using the antenna if the target application is in an open state, so that the terminal can quickly access the Wi-Fi network;
判断单元502,用于若所述目标应用处于开启状态,则判断所述目标应用传输数据的速率是否大于预设阈值;A judgment unit 502, configured to judge whether the data transmission rate of the target application is greater than a preset threshold if the target application is in an open state;
暂停单元504,用于若所述目标应用中存在传输数据的速率大于第一预设速率的繁忙应用,则暂停该繁忙应用的运行;A suspending unit 504, configured to suspend the running of the busy application if there is a busy application whose data transmission rate is greater than the first preset rate in the target application;
获取单元505,用于获取Wi-Fi的连接状态;an obtaining unit 505, configured to obtain the connection status of Wi-Fi;
恢复单元506,用于若所述终端连接Wi-Fi成功,则将所述Wi-Fi的优先级恢复到默认状态,并恢复所述繁忙应用的运行;Restoring unit 506, configured to restore the priority of the Wi-Fi to a default state and restore the operation of the busy application if the terminal is successfully connected to the Wi-Fi;
检测单元507,用于检测Wi-Fi传输数据的速率;A detection unit 507, configured to detect the rate at which Wi-Fi transmits data;
获取单元505,还用于若检测到的速率小于第二预设速率,则获取处于后台运行的应用列表;The acquiring unit 505 is further configured to acquire a list of applications running in the background if the detected rate is less than the second preset rate;
识别单元508,用于识别所述应用列表中使用频率小于预设使用频率的应用,并将所述使用频率小于预设使用频率的应用进行关闭。The identifying unit 508 is configured to identify an application whose usage frequency is lower than a preset usage frequency in the application list, and close the application whose usage frequency is lower than the preset usage frequency.
其中,确定单元501、判断单元502、判断单元503、暂停单元504、获取单元505、恢复单元506、检测单元507和识别单元508可以用于执行实施例 2中步骤S201至S210所述的方法,具体描述详见实施例2对所述方法的描述,在此不再赘述。Wherein, the determining unit 501, the determining unit 502, the determining unit 503, the suspending unit 504, the acquiring unit 505, the resuming unit 506, the detecting unit 507 and the identifying unit 508 can be used to execute the method described in steps S201 to S210 in Embodiment 2, For details, see the description of the method in Embodiment 2, and details are not repeated here.
请参阅图6,图6是本发明的一个实施例提供的一种终端的结构示意图。其中,如图6所示,本发明的一个实施例提供的另一种终端600,其中,该终端可以是为智能手机、平板电脑、智能穿戴式设备等电子设备。该终端600 包括终端600包括确定单元601、判断单元602、暂停单元603、获取单元604、恢复单元605、检测单元606和识别单元607;Please refer to FIG. 6, which is a schematic structural diagram of a terminal provided by an embodiment of the present invention. As shown in FIG. 6 , another terminal 600 is provided by an embodiment of the present invention, where the terminal may be an electronic device such as a smart phone, a tablet computer, and a smart wearable device. The terminal 600 includes a terminal 600 including a determination unit 601, a determination unit 602, a pause unit 603, an acquisition unit 604, a recovery unit 605, a detection unit 606 and an identification unit 607;
确定单元601,用于若检测到Wi-Fi被开启,则确定终端中与所述Wi-Fi 共用天线的目标应用;A determining unit 601, configured to determine a target application in the terminal that shares an antenna with the Wi-Fi if it is detected that Wi-Fi is turned on;
具体的,确定单元601包括搜索子单元、读取子单元、设置子单元;Specifically, the determining unit 601 includes a search subunit, a reading subunit, and a setting subunit;
所述搜索子单元,用于搜索所述终端中安装的具备短距离传输功能的应用;The search subunit is used to search for applications installed in the terminal with a short-distance transmission function;
所述读取子单元,用于读取所述应用的配置信息以确定所述应用传输频率;the reading subunit, configured to read the configuration information of the application to determine the transmission frequency of the application;
所述设置子单元,用于将与所述Wi-Fi相同频率的应用设置为目标应用。The setting subunit is used for setting an application of the same frequency as the Wi-Fi as a target application.
判断单元602,用于判断所述目标应用是否处于开启状态;A determination unit 602, configured to determine whether the target application is in an open state;
判断单元602,用于若所述目标应用处于开启状态,则判断所述目标应用传输数据的速率是否大于预设阈值;A judgment unit 602, configured to judge whether the data transmission rate of the target application is greater than a preset threshold if the target application is in an open state;
暂停单元603,用于若所述目标应用中存在传输数据的速率大于第一预设速率的繁忙应用,则暂停该繁忙应用的运行;A suspending unit 603, configured to suspend the running of the busy application if there is a busy application whose data transmission rate is greater than the first preset rate in the target application;
获取单元604,用于获取Wi-Fi的连接状态;an obtaining unit 604, configured to obtain the connection status of Wi-Fi;
恢复单元605,用于若所述终端连接Wi-Fi成功,则将所述Wi-Fi的优先级恢复到默认状态,并恢复所述繁忙应用的运行;A restoring unit 605, configured to restore the priority of the Wi-Fi to a default state and restore the running of the busy application if the terminal is successfully connected to the Wi-Fi;
检测单元606,用于检测Wi-Fi传输数据的速率;A detection unit 606, configured to detect the rate at which Wi-Fi transmits data;
获取单元604,还用于若检测到的速率小于第二预设速率,则获取处于后台运行的应用列表;The obtaining unit 604 is further configured to obtain a list of applications running in the background if the detected rate is less than the second preset rate;
识别单元607,用于识别所述应用列表中使用频率小于预设使用频率的应用,并将所述使用频率小于预设使用频率的应用进行关闭。The identifying unit 607 is configured to identify an application whose usage frequency is lower than a preset usage frequency in the application list, and close the application whose usage frequency is lower than the preset usage frequency.
其中,确定单元601、判断单元602、暂停单元603、获取单元604、恢复单元605、检测单元606和识别单元607可以用于执行实施例3中步骤S301 至S309所述的方法,具体描述详见实施例3对所述方法的描述,在此不再赘述。The determining unit 601, the judging unit 602, the suspending unit 603, the acquiring unit 604, the resuming unit 605, the detecting unit 606 and the identifying unit 607 can be used to execute the method described in steps S301 to S309 in Embodiment 3. For details, please refer to the detailed description. The description of the method in Embodiment 3 is not repeated here.
请参阅图7,在本发明的另一个实施例中,提供一种第二终端。所述第二终端700包括CPU701、存储器702、总线703。其中,该终端700可以是智能手机、平板电脑、智能穿戴设备等具有通话功能的电子设备。Referring to FIG. 7, in another embodiment of the present invention, a second terminal is provided. The second terminal 700 includes a CPU 701 , a memory 702 , and a bus 703 . The terminal 700 may be an electronic device with a call function, such as a smart phone, a tablet computer, and a smart wearable device.
其中,CPU701执行预先存储在存储器702中的程序,该执行过程具体包括:The CPU 701 executes a program pre-stored in the memory 702, and the execution process specifically includes:
若检测到Wi-Fi被开启,则确定终端中与所述Wi-Fi共用天线的目标应用;If it is detected that Wi-Fi is turned on, determining the target application in the terminal that shares the antenna with the Wi-Fi;
判断所述目标应用是否处于开启状态;Determine whether the target application is in an open state;
若所述目标应用处于开启状态,则提升Wi-Fi使用所述天线的优先级以使得所述终端快速接入Wi-Fi网络。If the target application is in an open state, the priority of using the antenna for Wi-Fi is increased so that the terminal can quickly access the Wi-Fi network.
可选的,所述确定终端中与所述Wi-Fi共用天线的目标应用,包括:Optionally, the determining of a target application sharing an antenna with the Wi-Fi in the terminal includes:
搜索所述终端中安装的具备短距离传输功能的应用;searching for an application with a short-distance transmission function installed in the terminal;
读取所述应用的配置信息以确定所述应用传输频率;Read the configuration information of the application to determine the transmission frequency of the application;
将与所述Wi-Fi相同频率的应用设置为目标应用。Set the application of the same frequency as the Wi-Fi as the target application.
可选的,所述执行过程还包括:Optionally, the execution process further includes:
若所述目标应用处于开启状态,则判断所述目标应用传输数据的速率是否大于预设阈值;If the target application is in an open state, determine whether the data transmission rate of the target application is greater than a preset threshold;
若所述目标应用中存在传输数据的速率大于第一预设速率的繁忙应用,则暂停该繁忙应用的运行。If there is a busy application whose data transmission rate is greater than the first preset rate in the target application, the operation of the busy application is suspended.
可选的,所述暂停该繁忙应用的运行之后,所述执行过程还包括:Optionally, after suspending the running of the busy application, the execution process further includes:
获取Wi-Fi的连接状态;Get Wi-Fi connection status;
若所述终端连接Wi-Fi成功,则将所述Wi-Fi的优先级恢复到默认状态,并恢复所述繁忙应用的运行。If the terminal is successfully connected to the Wi-Fi, the priority of the Wi-Fi is restored to the default state, and the operation of the busy application is resumed.
可选的,所述执行过程还包括:Optionally, the execution process further includes:
检测Wi-Fi传输数据的速率;Detect the rate at which Wi-Fi transmits data;
若检测到的速率小于第二预设速率,则获取处于后台运行的应用列表;If the detected rate is less than the second preset rate, acquiring a list of applications running in the background;
识别所述应用列表中使用频率小于预设使用频率的应用,并将所述使用频率小于预设使用频率的应用进行关闭。Identifying an application whose usage frequency is less than a preset usage frequency in the application list, and closing the application whose usage frequency is lower than the preset usage frequency.
可以看出,本发明实施例的方案中,若检测到Wi-Fi被开启,则确定终端中与所述Wi-Fi共用天线的目标应用;判断所述目标应用是否处于开启状态;若所述目标应用处于开启状态,则提升Wi-Fi使用所述天线的优先级以使得所述终端快速接入Wi-Fi网络。从而可知,通过实施本发明提供的技术方案,能够使得终端快速连接Wi-Fi网络,从而提升用户体验。It can be seen that, in the solution of the embodiment of the present invention, if it is detected that Wi-Fi is turned on, the target application that shares the antenna with the Wi-Fi in the terminal is determined; it is determined whether the target application is in the turned-on state; if the If the target application is in an open state, the priority of Wi-Fi using the antenna is increased so that the terminal can quickly access the Wi-Fi network. It can be seen that, by implementing the technical solution provided by the present invention, the terminal can be quickly connected to the Wi-Fi network, thereby improving user experience.
请参阅图8,图8是本发明的一个实施例提供的终端相关的手机的部分结构的框图。参考图8,手机包括:射频(Radio Frequency,RF)电路810、存储器820、输入单元830、显示单元840、传感器850、音频电路860、无线保真(Wireless Fidelity,Wi-Fi)模块870、处理器880、以及电源890等部件。本领域技术人员可以理解,图8中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please refer to FIG. 8 , which is a block diagram of a partial structure of a terminal-related mobile phone provided by an embodiment of the present invention. 8, the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a wireless fidelity (Wireless Fidelity, Wi-Fi) module 870, processing 880, and the power supply 890 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 8 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown, or combine some components, or arrange different components.
下面结合图8对手机的各个构成部件进行具体的介绍:The following is a detailed introduction to each component of the mobile phone with reference to Figure 8:
RF电路810可用于信息的接收和发送。通常,RF电路810包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路810还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobilecommunication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code DivisionMultiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。RF circuitry 810 may be used for the reception and transmission of information. Typically, the RF circuit 810 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 810 may also communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (Short Messaging Service, SMS) and the like.
存储器820可用于存储软件程序以及模块,处理器880通过运行存储在存储器820的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器820可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如网络连接功能、触控操作检测功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如天线使用优先级等)等。此外,存储器820可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 820 can be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 820 . The memory 820 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a network connection function, a touch operation detection function, etc.), etc.; the storage data area may Stores data created according to the usage of the phone (such as antenna usage priority, etc.), etc. Additionally, memory 820 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元830可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元830可包括指纹模组 831以及其他输入设备832。指纹模组831,可采集用户在其上的指纹数据。可选的,指纹模组831可包括光学式指纹模块、电容式指纹模块以及射频式指纹模块。以指纹模组831为电容式指纹模组为例,具体包括感应电极(n1个异常感应电极和n2个正常感应电极)和与所述感应电极连接的信号处理电路 (如放大电路、噪声抑制电路、模数转化电路,等等)。除了指纹模组831,输入单元830还可以包括其他输入设备832。具体地,其他输入设备832可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 830 may be used for receiving inputted numerical or character information, and generating key signal input related to user setting and function control of the mobile phone. Specifically, the input unit 830 may include a fingerprint module 831 and other input devices 832. The fingerprint module 831 can collect the fingerprint data of the user on it. Optionally, the fingerprint module 831 may include an optical fingerprint module, a capacitive fingerprint module and a radio frequency fingerprint module. Taking the fingerprint module 831 as an example of a capacitive fingerprint module, it specifically includes sensing electrodes (n1 abnormal sensing electrodes and n2 normal sensing electrodes) and a signal processing circuit (such as an amplifier circuit, a noise suppression circuit) connected to the sensing electrodes , analog-to-digital conversion circuits, etc.). Besides the fingerprint module 831 , the input unit 830 may also include other input devices 832 . Specifically, other input devices 832 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
显示单元840可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元840可包括显示屏841,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏841。虽然在图8中,指纹模组831与显示屏841是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹模组831与显示屏841集成而实现手机的输入和输出功能。The display unit 840 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 840 may include a display screen 841. Optionally, the display screen 841 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Although in FIG. 8 , the fingerprint module 831 and the display screen 841 are used as two independent components to realize the input and input functions of the mobile phone, but in some embodiments, the fingerprint module 831 and the display screen 841 can be integrated to form Realize the input and output functions of the mobile phone.
手机还可包括至少一种传感器850,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏841的亮度,接近传感器可在手机移动到耳边时,关闭显示屏841和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone may also include at least one sensor 850, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 841 according to the brightness of the ambient light, and the proximity sensor may turn off the display screen 841 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Repeat.
音频电路860、扬声器881,传声器882可提供用户与手机之间的音频接口。音频电路860可将接收到的音频数据转换后的电信号,传输到扬声器881,由扬声器881转换为声音信号输出;另一方面,传声器882将收集的声音信号转换为电信号,由音频电路860接收后转换为音频数据,再将音频数据输出处理器880处理后,经RF电路810以发送给比如另一手机,或者将音频数据输出至存储器820以便进一步处理。The audio circuit 860, the speaker 881, and the microphone 882 can provide an audio interface between the user and the mobile phone. The audio circuit 860 can convert the received audio data into an electrical signal, and transmit it to the speaker 881, and the speaker 881 converts it into a sound signal for output; on the other hand, the microphone 882 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 860 After receiving, it is converted into audio data, and then the audio data is output to the processor 880 for processing, and then sent to, for example, another mobile phone through the RF circuit 810, or the audio data is output to the memory 820 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块870可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了WiFi模块870,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 870. It provides users with wireless broadband Internet access. Although FIG. 8 shows the WiFi module 870, it can be understood that it is not a necessary component of the mobile phone, and can be completely omitted as required within the scope of not changing the essence of the invention.
处理器880是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器820内的软件程序和/或模块,以及调用存储在存储器820内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器880可包括一个或多个处理单元;优选的,处理器880可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器880中。The processor 880 is the control center of the mobile phone, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 820, and calling the data stored in the memory 820. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. Optionally, the processor 880 may include one or more processing units; preferably, the processor 880 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 880.
手机还包括给各个部件供电的电源890(比如电池),优选的,电源可以通过电源管理系统与处理器880逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 890 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 880 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, and the like, which will not be repeated here.
前述图1、图2以及图3所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the foregoing embodiments shown in FIG. 1 , FIG. 2 and FIG. 3 , the method flow of each step can be implemented based on the structure of the mobile phone.
前述图4、图5以及图6所示的实施例中,各单元功能可以基于该手机的结构实现。In the aforementioned embodiments shown in FIG. 4 , FIG. 5 and FIG. 6 , the functions of each unit can be implemented based on the structure of the mobile phone.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes .
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: The technical solutions described in the embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611121187.6A CN106604364B (en) | 2016-12-07 | 2016-12-07 | A method, terminal and storage medium for network connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611121187.6A CN106604364B (en) | 2016-12-07 | 2016-12-07 | A method, terminal and storage medium for network connection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106604364A CN106604364A (en) | 2017-04-26 |
CN106604364B true CN106604364B (en) | 2019-08-30 |
Family
ID=58597404
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611121187.6A Active CN106604364B (en) | 2016-12-07 | 2016-12-07 | A method, terminal and storage medium for network connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106604364B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112714907B (en) * | 2018-11-08 | 2023-08-11 | 深圳市欢太科技有限公司 | Method and device for filtering during application freezing and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1516459A1 (en) * | 2002-06-27 | 2005-03-23 | STMicroelectronics S.A. | Method for packet-like data transmission between two slave units and a master unit comprising two processors |
CN101553993A (en) * | 2006-12-11 | 2009-10-07 | 苹果公司 | Wireless communication circuit with simultaneous reception capability for handheld electronic devices |
CN102263857A (en) * | 2011-07-12 | 2011-11-30 | 康佳集团股份有限公司 | Shared antenna circuit for mobile terminal |
CN105704725A (en) * | 2016-03-09 | 2016-06-22 | 青岛海信电器股份有限公司 | Method and device for preventing mutual interference between WIFI communication and Bluetooth communication |
-
2016
- 2016-12-07 CN CN201611121187.6A patent/CN106604364B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1516459A1 (en) * | 2002-06-27 | 2005-03-23 | STMicroelectronics S.A. | Method for packet-like data transmission between two slave units and a master unit comprising two processors |
CN101553993A (en) * | 2006-12-11 | 2009-10-07 | 苹果公司 | Wireless communication circuit with simultaneous reception capability for handheld electronic devices |
CN102263857A (en) * | 2011-07-12 | 2011-11-30 | 康佳集团股份有限公司 | Shared antenna circuit for mobile terminal |
CN105704725A (en) * | 2016-03-09 | 2016-06-22 | 青岛海信电器股份有限公司 | Method and device for preventing mutual interference between WIFI communication and Bluetooth communication |
Also Published As
Publication number | Publication date |
---|---|
CN106604364A (en) | 2017-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106055408B (en) | A kind of application control method and mobile terminal | |
CN106446111B (en) | Data migration method and terminal | |
CN107302628B (en) | Application function control method and related product | |
CN107277230B (en) | Voice broadcasting method of message and related product | |
US11138041B2 (en) | Method for automatically releasing resource occupied by process in background of terminal, storage medium and terminal | |
CN106484326B (en) | Data transmission processing method and mobile terminal | |
WO2017206901A1 (en) | Process control method and related device | |
CN111611027A (en) | A method for starting an application program, a terminal device and a readable storage medium | |
CN106534288B (en) | A data transmission method and mobile terminal | |
CN107402783A (en) | Management control method of background application program and user terminal | |
CN106155557A (en) | A virtual button display method and mobile terminal | |
CN106454976B (en) | A wireless network switching method, device and terminal | |
CN106095566B (en) | Response control method and mobile terminal | |
CN107291327A (en) | Application control method and related product | |
CN106572163B (en) | Data migration method and terminal | |
CN106454979B (en) | A kind of network system switching method and mobile terminal | |
CN106066814B (en) | Application control method and mobile terminal | |
CN106686704B (en) | Terminal monitoring method and mobile terminal | |
CN107317917B (en) | Application control methods and related products | |
CN106095567B (en) | A method for allocating installation tasks and a mobile terminal | |
CN106792434B (en) | Hotspot establishing method and terminal equipment | |
CN106951223A (en) | Desktop display method and terminal | |
CN106527980A (en) | Data migration method and terminal | |
CN106095558A (en) | A kind of method of audio effect processing and terminal | |
CN106604364B (en) | A method, terminal and storage medium for network connection |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |