技术领域technical field
本发明涉及通信技术领域,尤其涉及一种无线网络处理方法及移动终端。The present invention relates to the field of communication technologies, and in particular, to a wireless network processing method and a mobile terminal.
背景技术Background technique
随着移动互联网技术的不断发展,移动智能设备已融入我们的生活,且发挥着越来越重要的作用。通过移动终端上网已经成为我们生活中的一部分,WIFI是一种可以将个人电脑、手持设备(如pad、手机等)等终端以无线方式互相连接的技术,目前在各种场所已经布置了大量的无线WIFI网络,但当一个环境中有多个WIFI网络时,移动终端仅能连接其中的一个,而其它的WIFI网络资源就会被浪费,而且当用户在下载资料时,浏览网页或其他访问网络数据的速度就会变得很慢,无法根据具体的应用使用情况合理分配WIFI网络资源,影响了用户体验。With the continuous development of mobile Internet technology, mobile smart devices have been integrated into our lives and play an increasingly important role. Internet access through mobile terminals has become a part of our life. WIFI is a technology that can wirelessly connect personal computers, handheld devices (such as pads, mobile phones, etc.) and other terminals to each other. Wireless WIFI network, but when there are multiple WIFI networks in an environment, the mobile terminal can only connect to one of them, and other WIFI network resources will be wasted, and when users download data, browse web pages or other access networks The data speed will become very slow, and the WIFI network resources cannot be reasonably allocated according to the specific application usage, which affects the user experience.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种无线网络处理方法及移动终端,以解决现有技术中WIFI网络利用率低,且无法根据具体的应用使用情况合理分配WIFI网络资源的问题。Embodiments of the present invention provide a wireless network processing method and a mobile terminal, so as to solve the problem of low utilization rate of WIFI network in the prior art and inability to reasonably allocate WIFI network resources according to specific application usage conditions.
第一方面,本发明实施例提供了一种无线网络处理方法,应用于一移动终端,该移动终端设置有多个WIFI连接模块;其中,该无线网络处理方法包括:In a first aspect, an embodiment of the present invention provides a wireless network processing method, which is applied to a mobile terminal, and the mobile terminal is provided with a plurality of WIFI connection modules; wherein, the wireless network processing method includes:
获取待接入的多个无线网络的网络接入信息;Obtain network access information of multiple wireless networks to be accessed;
根据网络接入信息,将多个WIFI连接模块依次接入对应的无线网络;其中,不同的WIFI连接模块接入的无线网络不同;According to the network access information, connect the multiple WIFI connection modules to the corresponding wireless network in turn; wherein, the wireless networks connected to different WIFI connection modules are different;
根据应用程序的优先级,控制处于运行状态的应用程序通过与该优先级对应的WIFI连接模块接入的无线网络进行数据访问。According to the priority of the application, the application in the running state is controlled to access data through the wireless network connected to the WIFI connection module corresponding to the priority.
第二方面,本发明实施例还提供了一种移动终端,该移动终端设置有多个WIFI连接模块;以及,In a second aspect, an embodiment of the present invention further provides a mobile terminal, the mobile terminal is provided with a plurality of WIFI connection modules; and,
第一获取模块,用于获取待接入的多个无线网络的网络接入信息;a first acquiring module, configured to acquire network access information of multiple wireless networks to be accessed;
接入模块,用于根据网络接入信息,将多个WIFI连接模块依次接入对应的无线网络;其中,不同的WIFI连接模块接入的无线网络不同;The access module is used for sequentially connecting the multiple WIFI connection modules to the corresponding wireless network according to the network access information; wherein, different WIFI connection modules access different wireless networks;
访问模块,用于根据应用程序的优先级,控制处于运行状态的应用程序通过与该优先级对应的WIFI连接模块接入的无线网络进行数据访问。The access module is used to control the running application to access data through the wireless network accessed by the WIFI connection module corresponding to the priority according to the priority of the application.
本发明实施例的有益效果是:The beneficial effects of the embodiments of the present invention are:
通过在移动终端设置多个WIFI连接模块,并控制多个WIFI连接模块依次接入不同的无线网络,进一步通过不同的无线网络完成应用程序的数据访问服务。这样充分利用多个无线网络进行数据访问,避免了无线网络资源浪费的问题,并提高了移动终端的数据访问效率,提高了用户体验。By setting a plurality of WIFI connection modules in the mobile terminal, and controlling the plurality of WIFI connection modules to access different wireless networks in turn, the data access service of the application program is further completed through different wireless networks. In this way, multiple wireless networks are fully utilized for data access, the problem of wasting wireless network resources is avoided, the data access efficiency of the mobile terminal is improved, and the user experience is improved.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the drawings that are used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. , for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.
图1表示本发明的无线网络处理方法的第一实施例的流程图;Fig. 1 shows the flow chart of the first embodiment of the wireless network processing method of the present invention;
图2表示本发明的无线网络处理方法的第二实施例的流程图;Fig. 2 shows the flow chart of the second embodiment of the wireless network processing method of the present invention;
图3表示本发明的无线网络处理方法的第三实施例的流程图;Fig. 3 shows the flow chart of the third embodiment of the wireless network processing method of the present invention;
图4表示本发明的移动终端的第四实施例的结构示意图;4 is a schematic structural diagram of a fourth embodiment of the mobile terminal of the present invention;
图5表示本发明移动终端的第五实施例的框图;5 shows a block diagram of a fifth embodiment of the mobile terminal of the present invention;
图6表示本发明移动终端的第六实施例的框图。FIG. 6 shows a block diagram of a sixth embodiment of the mobile terminal of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present invention will be more thoroughly understood, and will fully convey the scope of the present invention to those skilled in the art.
第一实施例first embodiment
本发明的实施例提供了一种无线网络处理方法,应用于一移动终端,该移动终端设置有多个WIFI连接模块。其中,如图1所示,该无线网络处理方法具体包括:The embodiment of the present invention provides a wireless network processing method, which is applied to a mobile terminal, and the mobile terminal is provided with a plurality of WIFI connection modules. Wherein, as shown in FIG. 1 , the wireless network processing method specifically includes:
步骤101:获取待接入的多个无线网络的网络接入信息。Step 101: Obtain network access information of multiple wireless networks to be accessed.
其中,当移动终端处于多个无线网络汇集的区域时,可通过扫描方式扫描到各个无线网络的网络接入信息。其中,网络接入信息包括:无线网络的服务集标识SSID信息、无线网络的加密类型(如WPA2-PSK方式等)和无线网络的IP信息(如IP地址、子网掩码、路由器地址、DNS地址等)中的至少一种。此外,网络接入信息中还包括:无线网络的强度信息和无线网络的位置距离信息。Wherein, when the mobile terminal is in an area where multiple wireless networks converge, the network access information of each wireless network can be scanned in a scanning manner. Wherein, the network access information includes: service set identification SSID information of the wireless network, encryption type of the wireless network (such as WPA2-PSK method, etc.) and IP information of the wireless network (such as IP address, subnet mask, router address, DNS address, etc.) at least one. In addition, the network access information also includes: strength information of the wireless network and position distance information of the wireless network.
步骤102:根据网络接入信息,将多个WIFI连接模块依次接入对应的无线网络。Step 102: According to the network access information, connect the multiple WIFI connection modules to the corresponding wireless network in sequence.
这里,用户可根据网络接入信息选择需要接入的无线网络,并通过输入密钥等方式对无线网络进行解密并建立移动终端与无线网络的连接。其中,值得指出的是不同的WIFI连接模块接入的无线网络不同。例如,移动终端上设置有两个WIFI连接模块,而移动终端当前所处区域具有WIFI1、WIFI2和WIFI3三个无线网络,那么可通过两个不同的WIFI连接模块分别连接WIFI1、WIFI2和WIFI3中任意不同的两个无线网络。Here, the user can select the wireless network to be accessed according to the network access information, decrypt the wireless network by inputting a key, etc., and establish a connection between the mobile terminal and the wireless network. Among them, it is worth pointing out that the wireless networks accessed by different WIFI connection modules are different. For example, if two WIFI connection modules are set on the mobile terminal, and the area where the mobile terminal is currently located has three wireless networks, WIFI1, WIFI2 and WIFI3, then two different WIFI connection modules can be used to connect any of WIFI1, WIFI2 and WIFI3 respectively. Two different wireless networks.
步骤103:根据应用程序的优先级,控制处于运行状态的应用程序通过与该优先级对应的WIFI连接模块接入的无线网络进行数据访问。Step 103: According to the priority of the application, the application in the running state is controlled to access data through the wireless network accessed by the WIFI connection module corresponding to the priority.
这里所说的控制应用程序通过对应的WIFI连接模块接入的无线网络进行数据访问指的是,不同的应用程序可通过不同的无线网络进行数据访问,以保证不同的应用程序的数据访问速度;相同的应用程序亦可通过多个不同的无线网络共同进行数据访问,以提高其数据访问速度。优选地,根据应用程序的优先级高低合理分配WIFI网络资源,即控制优先级高的应用程序通过传输速度快或信号强度高的WIFI连接模块接入。The control application program to access data through the wireless network accessed by the corresponding WIFI connection module here means that different application programs can access data through different wireless networks to ensure the data access speed of different application programs; The same application can also jointly access data through multiple different wireless networks to increase its data access speed. Preferably, the WIFI network resources are allocated reasonably according to the priority of the application, that is, the application with high priority is controlled to be accessed through the WIFI connection module with fast transmission speed or high signal strength.
这样,通过在移动终端设置多个WIFI连接模块,控制多个WIFI连接模块依次接入不同的无线网络,并通过不同的无线网络完成应用程序的数据访问服务。充分利用了处于同一区域内的多个无线网络来进行数据访问,避免了无线网络资源浪费的问题,并提高了移动终端的数据访问效率,提高了用户体验。In this way, by arranging multiple WIFI connection modules in the mobile terminal, the multiple WIFI connection modules are controlled to access different wireless networks in turn, and the data access service of the application program is completed through different wireless networks. It makes full use of multiple wireless networks in the same area for data access, avoids the waste of wireless network resources, improves the data access efficiency of the mobile terminal, and improves user experience.
第二实施例Second Embodiment
以上第一实施例对本发明的无线网络处理方法进行了简单介绍,下面本实施例将结合附图和具体应用场景对其进行进一步地说明。The first embodiment above briefly introduces the wireless network processing method of the present invention, which will be further described in this embodiment below with reference to the accompanying drawings and specific application scenarios.
如图2所示,该无线网络处理方法包括:As shown in Figure 2, the wireless network processing method includes:
步骤201:获取待接入的多个无线网络的网络接入信息。Step 201: Obtain network access information of multiple wireless networks to be accessed.
其中,网络接入信息包括:无线网络的服务集标识SSID信息、加密类型、IP信息、信号强度信息和位置距离信息中的一种或多种。进一步地,移动终端在扫描到有多个无线网络的网络接入信息时,生成一提示用户同时连接多个无线网络的提示消息,以便用户及时连接。Wherein, the network access information includes: one or more of wireless network service set identification SSID information, encryption type, IP information, signal strength information and location distance information. Further, when scanning the network access information of multiple wireless networks, the mobile terminal generates a prompt message prompting the user to connect to the multiple wireless networks at the same time, so that the user can connect in time.
步骤202:根据网络接入信息,将多个WIFI连接模块依次接入对应的无线网络。Step 202: According to the network access information, connect the multiple WIFI connection modules to the corresponding wireless network in sequence.
其中,不同的WIFI连接模块接入的无线网络不同。Among them, the wireless networks accessed by different WIFI connection modules are different.
步骤203:获取用户配置主WIFI连接模块和辅WIFI连接模块的配置信息。Step 203: Acquire the configuration information of the primary WIFI connection module and the secondary WIFI connection module configured by the user.
步骤204:根据该配置信息将多个WIFI连接模块划分为主WIFI连接模块和辅WIFI连接模块。Step 204: Divide the plurality of WIFI connection modules into a main WIFI connection module and a secondary WIFI connection module according to the configuration information.
在连接多个无线网络后,用户可根据自身偏好配置哪些WIFI连接模块为主WIFI连接模块。其中,这里说的主WIFI连接模块和辅WIFI连接模块是指WIFI连接模块的身份。其中,可优先确定主WIFI连接模块,在确定主WIFI连接模块之后,其余的WIFI连接模块被确定为辅WIFI连接模块;亦或者,可优先确定辅WIFI连接模块,在确定辅WIFI连接模块后,其余的WIFI连接模块被确定为主WIFI模块。After connecting to multiple wireless networks, the user can configure which WIFI connection modules are the main WIFI connection modules according to their own preferences. Among them, the main WIFI connection module and the auxiliary WIFI connection module mentioned here refer to the identity of the WIFI connection module. Among them, the main WIFI connection module can be preferentially determined, and after the main WIFI connection module is determined, the remaining WIFI connection modules are determined as auxiliary WIFI connection modules; The rest of the WIFI connection modules are determined as main WIFI modules.
步骤205:根据处于运行状态的应用程序的优先级,为处于运行状态的应用程序配置对应的WIFI连接模块。Step 205: Configure a corresponding WIFI connection module for the application in the running state according to the priority of the application in the running state.
其中,主WIFI连接模块所对应的应用程序的优先级高于辅WIFI连接模块所对应的应用程序。这里具体指按照处于运行状态的应用程序的优先级高低进行排序,将优先级高的应用程序映射至主WIFI连接模块,优先级较低的应用程序映射至辅WIFI连接模块。也就是说,利用主WIFI连接模块接入的无线网络做一些紧急或重要的数据访问,利用辅WIFI连接模块接入的无线网络做一些非紧急或重要性较低的数据访问。例如,在线观看视频时,利用主WIFI连接模块接入的无线网络进行下载缓存用户当前观看的视频,辅WIFI连接模块接入的无线网络进行缓存用户为观看的视频或后台消息(微信、QQ等)等。The priority of the application program corresponding to the main WIFI connection module is higher than that of the application program corresponding to the auxiliary WIFI connection module. This specifically refers to sorting according to the priority of the applications in the running state, mapping the applications with high priority to the main WIFI connection module, and mapping the applications with lower priority to the auxiliary WIFI connection module. That is to say, use the wireless network connected by the main WIFI connection module to do some urgent or important data access, and use the wireless network connected by the auxiliary WIFI connection module to do some non-urgent or less important data access. For example, when watching a video online, the wireless network connected to the main WIFI connection module is used to download and cache the video currently watched by the user, and the wireless network connected to the auxiliary WIFI connection module is used to cache the video or background messages (WeChat, QQ, etc.) that the user is watching. )Wait.
步骤206:控制处于运行状态的多个应用程序中的不同应用程序分别通过对应的WIFI连接模块接入的无线网络进行数据访问。Step 206 : Control different application programs among the multiple application programs in the running state to access data through the wireless network accessed by the corresponding WIFI connection module respectively.
其中,不同应用程序所对应的WIFI连接模块不同。具体控制不同应用程序通过不同WIFI连接模块接入的无线网络进行数据访问的过程包括以下步骤:获取当前运行的第一应用程序;控制第一应用程序通过主WIFI连接模块接入的无线网络进行数据访问;和/或,获取后台运行的第二应用程序;控制第二应用程序通过辅WIFI连接模块接入的无线网络进行数据访问。这里是说当前运行的第一应用程序的优先级高于后台运行的第二应用程序,因此控制数据传输速率较高的主WIFI连接模块承载优先级较高的第一应用程序,数据传输速率较低的辅WIFI连接模块承载优先级较低的第二应用程序。The WIFI connection modules corresponding to different applications are different. Specifically, the process of controlling different applications to access data through the wireless network accessed by different WIFI connection modules includes the following steps: acquiring the currently running first application; controlling the first application to access data through the wireless network accessed by the main WIFI connection module and/or, acquiring a second application running in the background; and controlling the second application to access data through the wireless network accessed by the auxiliary WIFI connection module. This means that the priority of the currently running first application is higher than that of the second application running in the background, so the main WIFI connection module that controls the higher data transmission rate carries the first application with higher priority, and the data transmission rate is higher The lower secondary WIFI connection module carries the second application with lower priority.
此外,还可根据数据访问量的大小对主WIFI连接模块和辅WIFI连接模块的工作进行规划。具体地,控制数据访问量高于预设值的第三应用程序通过主WIFI连接模块接入的无线网络进行数据访问;和/或,控制数据访问量低于预设值的第四应用程序通过辅WIFI连接模块接入的无线网络进行数据访问。例如,观看或缓冲视频、语音通话或视频通话等数据访问量大的业务通过主WIFI连接模块接入的无线网络承载,其他数据访问量小的业务通过辅WIFI连接模块接入的无线网络承载。In addition, the work of the main WIFI connection module and the auxiliary WIFI connection module can also be planned according to the amount of data access. Specifically, the third application program whose data access amount is higher than the preset value is controlled to access data through the wireless network accessed by the main WIFI connection module; and/or the fourth application program whose data access amount is lower than the preset value is controlled through The wireless network accessed by the auxiliary WIFI connection module performs data access. For example, watching or buffering video, voice calls, or video calls and other services with large data access are carried over the wireless network accessed by the primary WIFI connection module, and other services with small data access are carried over the wireless network accessed by the secondary WIFI connection module.
进一步地,除了不同应用程序通过不同WIFI连接模块接入的无线网络进行数据访问的场景外,该无线网络处理方法还包括以下场景。Further, in addition to the scenarios in which different applications access data through wireless networks accessed by different WIFI connection modules, the wireless network processing method also includes the following scenarios.
步骤207:控制处于运行状态的一个应用程序同时通过多个WIFI连接模块接入的无线网络进行数据访问。Step 207 : control an application program in a running state to perform data access through a wireless network accessed by multiple WIFI connection modules at the same time.
这里是指一个应用程序可利用多个无线网络进行数据访问,具体可包括但不限于以下应用场景。当前移动终端仅运行了一个应用程序,但移动终端当前接入了多个无线网络,这时可同时通过多个无线网络来服务当前应用程序,以提高该应用程序的数据访问速度,提高用户体验。亦或者,当前移动终端接入了多个无线网络,且运行着多个应用程序,当其他应用程序的数据访问工作均完成时,可同时通过多个无线网络来服务未完成数据访问的应用程序,以提高该应用程序的数据访问速度,提高用户体验。例如:辅WIFI连接模块完成了缓存视频,而主WIFI连接模块还未完成观看视频的缓存,此时主辅WIFI连接模块同时工作以尽快完成当前用户观看的视频缓存;或者,主WIFI连接模块完成了当前观看视频的缓存,而辅WIFI连接模块未完成其他视频的缓存,则主辅WIFI连接模块同时工作完成未观看的视频的缓存。Here, it means that an application can use multiple wireless networks for data access, which may include but not limited to the following application scenarios. At present, the mobile terminal only runs one application program, but the mobile terminal is currently connected to multiple wireless networks. At this time, the current application program can be served through multiple wireless networks at the same time, so as to improve the data access speed of the application program and improve the user experience. . Or, the current mobile terminal is connected to multiple wireless networks and is running multiple applications. When the data access work of other applications is completed, the applications that have not completed data access can be served through multiple wireless networks at the same time. , in order to improve the data access speed of the application and improve the user experience. For example: the auxiliary WIFI connection module has finished caching the video, but the main WIFI connection module has not completed the caching of the watched video. At this time, the main and auxiliary WIFI connection modules work at the same time to complete the video caching for the current user as soon as possible; or, the main WIFI connection module has completed If the buffering of the currently watched video is completed, and the auxiliary WIFI connection module has not completed the buffering of other videos, the main and auxiliary WIFI connection modules work simultaneously to complete the buffering of the unwatched videos.
这样,移动终端在接入多个无线网络时,根据用户自主选择划分出主辅WIFI连接模块,并利用主WIFI连接模块服务优先级较高的应用程序,辅WIFI连接模块服务优先级较低的应用程序,充分利用了多个无线网络,提高了无线网络资源的利用率,且提高了移动终端的数据访问速度,一定程度上提高了用户体验。In this way, when the mobile terminal accesses multiple wireless networks, it divides the main and auxiliary WIFI connection modules according to the user's independent choice, and uses the main WIFI connection module to serve applications with higher priority, and the auxiliary WIFI connection module to serve applications with lower priority. The application program makes full use of multiple wireless networks, improves the utilization rate of wireless network resources, improves the data access speed of the mobile terminal, and improves the user experience to a certain extent.
第三实施例Third Embodiment
以上第一实施例和第二实施例结合附图和具体应用场景对本发明的无线网络处理方法进行了介绍,下面本实施例将结合附图和另一应用场景对其进行进一步地说明。The first embodiment and the second embodiment above introduce the wireless network processing method of the present invention with reference to the accompanying drawings and specific application scenarios, and the present embodiment will further describe them below with reference to the accompanying drawings and another application scenario.
如图3所示,该无线网络处理方法包括:As shown in Figure 3, the wireless network processing method includes:
步骤301:获取待接入的多个无线网络的网络接入信息。Step 301: Obtain network access information of multiple wireless networks to be accessed.
其中,网络接入信息包括:无线网络的服务集标识SSID信息、加密类型、IP信息、信号强度信息和位置距离信息中的一种或多种。进一步地,移动终端在扫描到有多个无线网络的网络接入信息时,生成一提示用户同时连接多个无线网络的提示消息,以便用户及时连接。Wherein, the network access information includes: one or more of wireless network service set identification SSID information, encryption type, IP information, signal strength information and location distance information. Further, when scanning the network access information of multiple wireless networks, the mobile terminal generates a prompt message prompting the user to connect to the multiple wireless networks at the same time, so that the user can connect in time.
步骤302:根据网络接入信息,将多个WIFI连接模块依次接入对应的无线网络。Step 302: According to the network access information, connect the multiple WIFI connection modules to the corresponding wireless network in sequence.
其中,不同的WIFI连接模块接入的无线网络不同。Among them, the wireless networks accessed by different WIFI connection modules are different.
步骤303:获取多个WIFI连接模块接入的无线网络的数据传输速率。Step 303: Acquire the data transmission rate of the wireless network accessed by the multiple WIFI connection modules.
根据扫描到的无线网络的网络接入信息,解析接入的各个无线网络的数据传输速率。其中,无线网络的信号强度与数据传输速率并无直接联系,信号强度较弱的无线网络有可能数据传输速率较高。According to the network access information of the scanned wireless network, analyze the data transmission rate of each wireless network accessed. The signal strength of the wireless network is not directly related to the data transmission rate, and a wireless network with weak signal strength may have a higher data transmission rate.
步骤304:将多个WIFI连接模块按照数据传输速率降幂进行排序,得到一WIFI连接模块序列。Step 304: Sort the multiple WIFI connection modules in descending order of the data transmission rate to obtain a sequence of WIFI connection modules.
这里指的是对接入的多个无线网络按照其实际数据传输速率的降幂顺序进行排序,即数据传输速率高的无线网络排在数据传输速率低的无线网络之前。This refers to sorting the multiple wireless networks accessed according to the descending order of their actual data transmission rates, that is, a wireless network with a high data transmission rate is ranked before a wireless network with a low data transmission rate.
步骤305:确定WIFI连接模块序列中的前N个WIFI连接模块为主WIFI连接模块。Step 305: Determine that the first N WIFI connection modules in the WIFI connection module sequence are the main WIFI connection modules.
其中,N为正整数,优选地N可以为1或2。考虑到实际应用,由于移动终端的硬件布置限制,移动终端不会设置过多的WIFI连接模块,一般最多不会超过4个,因此,可将数据传输速率靠前的前一个或前两个无线网络作为主要网络,即将前1或2个WIFI连接模块作为主WIFI连接模块。值得指出的是,这里说的前N个WIFI连接模块不是指WIFI连接模块的身份,而是指实际连接到数据传输速率较高的前N个无线网络的WIFI连接模块。Wherein, N is a positive integer, preferably N can be 1 or 2. Considering the practical application, due to the limitation of the hardware layout of the mobile terminal, the mobile terminal will not have too many WIFI connection modules, generally no more than 4 at most. The network is used as the main network, that is, the first 1 or 2 WIFI connection modules are used as the main WIFI connection modules. It is worth pointing out that the first N WIFI connection modules mentioned here do not refer to the identity of the WIFI connection modules, but refer to the WIFI connection modules that are actually connected to the first N wireless networks with higher data transmission rates.
步骤306:确定WIFI连接模块序列中除主WIFI连接模块外的其他WIFI连接模块为辅WIFI连接模块。Step 306: Determine other WIFI connection modules except the main WIFI connection module in the WIFI connection module sequence as auxiliary WIFI connection modules.
相应的,在确定主WIFI连接模块之后,其余的WIFI连接模块被确定为辅WIFI连接模块。Correspondingly, after the main WIFI connection module is determined, the remaining WIFI connection modules are determined as auxiliary WIFI connection modules.
步骤307:根据处于运行状态的应用程序的优先级,为处于运行状态的应用程序配置对应的WIFI连接模块。Step 307: Configure a corresponding WIFI connection module for the application in the running state according to the priority of the application in the running state.
其中,主WIFI连接模块所对应的应用程序的优先级高于辅WIFI连接模块所对应的应用程序。这里具体指按照处于运行状态的应用程序的优先级高低进行排序,将优先级高的应用程序映射至主WIFI连接模块,优先级较低的应用程序映射至辅WIFI连接模块。也就是说,利用主WIFI连接模块接入的无线网络做一些紧急或重要的数据访问,利用辅WIFI连接模块接入的无线网络做一些非紧急或重要性较低的数据访问。例如,在线观看视频时,利用主WIFI连接模块接入的无线网络进行下载缓存用户当前观看的视频,辅WIFI连接模块接入的无线网络进行缓存用户为观看的视频或后台消息(微信、QQ等)等。The priority of the application program corresponding to the main WIFI connection module is higher than that of the application program corresponding to the auxiliary WIFI connection module. This specifically refers to sorting according to the priority of the applications in the running state, mapping the applications with high priority to the main WIFI connection module, and mapping the applications with lower priority to the auxiliary WIFI connection module. That is to say, use the wireless network connected by the main WIFI connection module to do some urgent or important data access, and use the wireless network connected by the auxiliary WIFI connection module to do some non-urgent or less important data access. For example, when watching a video online, the wireless network connected to the main WIFI connection module is used to download and cache the video currently watched by the user, and the wireless network connected to the auxiliary WIFI connection module is used to cache the video or background messages (WeChat, QQ, etc.) that the user is watching. )Wait.
步骤308:控制处于运行状态的多个应用程序中的不同应用程序分别通过对应的WIFI连接模块接入的无线网络进行数据访问。Step 308 : Control different application programs among the multiple application programs in the running state to access data through the wireless network accessed by the corresponding WIFI connection module respectively.
其中,不同应用程序所对应的WIFI连接模块不同。具体控制不同应用程序通过不同WIFI连接模块接入的无线网络进行数据访问的过程包括以下步骤:获取当前运行的第一应用程序;控制第一应用程序通过主WIFI连接模块接入的无线网络进行数据访问;和/或,获取后台运行的第二应用程序;控制第二应用程序通过辅WIFI连接模块接入的无线网络进行数据访问。这里是说当前运行的第一应用程序的优先级高于后台运行的第二应用程序,因此控制数据传输速率较高的主WIFI连接模块承载优先级较高的第一应用程序,数据传输速率较低的辅WIFI连接模块承载优先级较低的第二应用程序。The WIFI connection modules corresponding to different applications are different. Specifically, the process of controlling different applications to access data through the wireless network accessed by different WIFI connection modules includes the following steps: acquiring the currently running first application; controlling the first application to access data through the wireless network accessed by the main WIFI connection module and/or, acquiring a second application running in the background; and controlling the second application to access data through the wireless network accessed by the auxiliary WIFI connection module. This means that the priority of the currently running first application is higher than that of the second application running in the background, so the main WIFI connection module that controls the higher data transmission rate carries the first application with higher priority, and the data transmission rate is higher The lower secondary WIFI connection module carries the second application with lower priority.
此外,还可根据数据访问量的大小对主WIFI连接模块和辅WIFI连接模块的工作进行规划。具体地,控制数据访问量高于预设值的第三应用程序通过主WIFI连接模块接入的无线网络进行数据访问;和/或,控制数据访问量低于预设值的第四应用程序通过辅WIFI连接模块接入的无线网络进行数据访问。例如,观看或缓冲视频、语音通话或视频通话等数据访问量大的业务通过主WIFI连接模块接入的无线网络承载,其他数据访问量小的业务通过辅WIFI连接模块接入的无线网络承载。In addition, the work of the main WIFI connection module and the auxiliary WIFI connection module can also be planned according to the amount of data access. Specifically, the third application program whose data access amount is higher than the preset value is controlled to access data through the wireless network accessed by the main WIFI connection module; and/or the fourth application program whose data access amount is lower than the preset value is controlled through The wireless network accessed by the auxiliary WIFI connection module performs data access. For example, watching or buffering video, voice calls, or video calls and other services with large data access are carried over the wireless network accessed by the primary WIFI connection module, and other services with small data access are carried over the wireless network accessed by the secondary WIFI connection module.
进一步地,除了不同应用程序通过不同WIFI连接模块接入的无线网络进行数据访问的场景外,该无线网络处理方法还包括以下场景。Further, in addition to the scenarios in which different applications access data through wireless networks accessed by different WIFI connection modules, the wireless network processing method also includes the following scenarios.
步骤309:控制处于运行状态的一个应用程序同时通过多个WIFI连接模块接入的无线网络进行数据访问。Step 309 : control an application program in a running state to perform data access through a wireless network accessed by multiple WIFI connection modules at the same time.
这里是指一个应用程序可利用多个无线网络进行数据访问,具体可包括但不限于以下应用场景。当前移动终端仅运行了一个应用程序,但移动终端当前接入了多个无线网络,这时可同时通过多个无线网络来服务当前应用程序,以提高该应用程序的数据访问速度,提高用户体验。亦或者,当前移动终端接入了多个无线网络,且运行着多个应用程序,当其他应用程序的数据访问工作均完成时,可同时通过多个无线网络来服务未完成数据访问的应用程序,以提高该应用程序的数据访问速度,提高用户体验。例如:辅WIFI连接模块完成了缓存视频,而主WIFI连接模块还未完成观看视频的缓存,此时主辅WIFI连接模块同时工作以尽快完成当前用户观看的视频缓存;或者,主WIFI连接模块完成了当前观看视频的缓存,而辅WIFI连接模块未完成其他视频的缓存,则主辅WIFI连接模块同时工作完成未观看的视频的缓存。Here, it means that an application can use multiple wireless networks for data access, which may include but not limited to the following application scenarios. At present, the mobile terminal only runs one application program, but the mobile terminal is currently connected to multiple wireless networks. At this time, the current application program can be served through multiple wireless networks at the same time, so as to improve the data access speed of the application program and improve the user experience. . Or, the current mobile terminal is connected to multiple wireless networks and is running multiple applications. When the data access work of other applications is completed, the applications that have not completed data access can be served through multiple wireless networks at the same time. , in order to improve the data access speed of the application and improve the user experience. For example: the auxiliary WIFI connection module has finished caching the video, but the main WIFI connection module has not completed the caching of the watched video. At this time, the main and auxiliary WIFI connection modules work at the same time to complete the video caching for the current user as soon as possible; or, the main WIFI connection module has completed If the buffering of the currently watched video is completed, and the auxiliary WIFI connection module has not completed the buffering of other videos, the main and auxiliary WIFI connection modules work simultaneously to complete the buffering of the unwatched videos.
这样,移动终端在接入多个无线网络时,系统根据接入的无线网络的数据传输速率自动划分出主辅WIFI连接模块,并利用主WIFI连接模块服务优先级较高的应用程序,辅WIFI连接模块服务优先级较低的应用程序,充分利用了多个无线网络,提高了无线网络资源的利用率,且提高了移动终端的数据访问速度,一定程度上提高了用户体验。In this way, when the mobile terminal accesses multiple wireless networks, the system automatically divides the main and auxiliary WIFI connection modules according to the data transmission rate of the wireless networks accessed, and uses the main WIFI connection module to serve applications with higher priority, and the auxiliary WIFI connection module. The connection module serves applications with lower priority, makes full use of multiple wireless networks, improves the utilization rate of wireless network resources, improves the data access speed of the mobile terminal, and improves the user experience to a certain extent.
第四实施例Fourth Embodiment
以上第一实施例至第三实施例分别详细介绍了不同场景下的无线网络处理方法,下面将结合图4对与其对应的移动终端做进一步介绍。The above first to third embodiments respectively describe in detail the wireless network processing methods in different scenarios, and the corresponding mobile terminals will be further introduced below with reference to FIG. 4 .
本发明实施例提供了一种移动终端,该移动终端设置有多个WIFI连接模块;如图4所示,该移动终端还包括:An embodiment of the present invention provides a mobile terminal, and the mobile terminal is provided with a plurality of WIFI connection modules; as shown in FIG. 4 , the mobile terminal further includes:
第一获取模块41,用于获取待接入的多个无线网络的网络接入信息。网络接入信息包括:无线网络的服务集标识SSID信息、无线网络的加密类型(如WPA2-PSK方式等)和无线网络的IP信息(如IP地址、子网掩码、路由器地址、DNS地址等)中的至少一种。此外,网络接入信息中还包括:无线网络的强度信息和无线网络的位置距离信息。The first obtaining module 41 is configured to obtain network access information of multiple wireless networks to be accessed. Network access information includes: wireless network service set identification SSID information, wireless network encryption type (such as WPA2-PSK, etc.) and wireless network IP information (such as IP address, subnet mask, router address, DNS address, etc. ) at least one of them. In addition, the network access information also includes: strength information of the wireless network and position distance information of the wireless network.
接入模块42,用于根据网络接入信息,将多个WIFI连接模块依次接入对应的无线网络;其中,不同的WIFI连接模块接入的无线网络不同;The access module 42 is used for sequentially connecting multiple WIFI connection modules to corresponding wireless networks according to the network access information; wherein, different WIFI connection modules access different wireless networks;
访问模块43,用于根据应用程序的优先级,控制处于运行状态的应用程序通过与该优先级对应的WIFI连接模块接入的无线网络进行数据访问。不同的应用程序可通过不同的无线网络进行数据访问,以保证不同的应用程序的数据访问速度;相同的应用程序亦可通过多个不同的无线网络共同进行数据访问,以提高其数据访问速度。The access module 43 is configured to control the application in the running state to access data through the wireless network accessed by the WIFI connection module corresponding to the priority according to the priority of the application. Different applications can access data through different wireless networks to ensure the data access speed of different applications; the same application can also access data through multiple different wireless networks to improve its data access speed.
其中,该移动终端还包括:Wherein, the mobile terminal also includes:
第二获取模块,用于获取多个WIFI连接模块接入的无线网络的数据传输速率;The second acquisition module is used to acquire the data transmission rate of the wireless network accessed by the multiple WIFI connection modules;
排序模块,用于将多个WIFI连接模块按照数据传输速率降幂进行排序,得到一WIFI连接模块序列;The sorting module is used to sort the multiple WIFI connection modules according to the descending power of the data transmission rate to obtain a sequence of WIFI connection modules;
第一处理模块,用于确定WIFI连接模块序列中的前N个WIFI连接模块为主WIFI连接模块;N为正整数;The first processing module is used to determine that the first N WIFI connection modules in the WIFI connection module sequence are the main WIFI connection modules; N is a positive integer;
第二处理模块,用于确定WIFI连接模块序列中除主WIFI连接模块外的其他WIFI连接模块为辅WIFI连接模块。The second processing module is used to determine that other WIFI connection modules except the main WIFI connection module in the WIFI connection module sequence are auxiliary WIFI connection modules.
其中,该移动终端还包括:Wherein, the mobile terminal also includes:
第三获取模块,用于获取用户配置主WIFI连接模块和辅WIFI连接模块的配置信息;The third obtaining module is used to obtain the configuration information of the user-configured main WIFI connection module and the auxiliary WIFI connection module;
第三处理模块,用于根据配置信息将多个WIFI连接模块划分为主WIFI连接模块和辅WIFI连接模块。The third processing module is used for dividing the plurality of WIFI connection modules into a main WIFI connection module and an auxiliary WIFI connection module according to the configuration information.
其中,该移动终端还包括:Wherein, the mobile terminal also includes:
配置模块,用于根据处于运行状态的应用程序的优先级,为处于运行状态的应用程序配置对应的WIFI连接模块;其中,主WIFI连接模块所对应的应用程序的优先级高于辅WIFI连接模块所对应的应用程序。The configuration module is used to configure the corresponding WIFI connection module for the application program in the running state according to the priority of the application program in the running state; wherein, the priority of the application program corresponding to the main WIFI connection module is higher than that of the auxiliary WIFI connection module the corresponding application.
其中,访问模块包括:Among them, the access module includes:
第一控制单元,用于控制处于运行状态的一个应用程序同时通过多个WIFI连接模块接入的无线网络进行数据访问;或者,A first control unit, used to control an application program in a running state to access data through a wireless network accessed by multiple WIFI connection modules at the same time; or,
第二控制单元,用于控制处于运行状态的多个应用程序中的不同应用程序分别通过对应的WIFI连接模块接入的无线网络进行数据访问;其中,不同应用程序所对应的WIFI连接模块不同。The second control unit is used to control different application programs in the running state to access data through the wireless network accessed by the corresponding WIFI connection module respectively; wherein, the WIFI connection modules corresponding to different application programs are different.
其中,第二控制单元包括:Wherein, the second control unit includes:
第一获取子单元,用于获取当前运行的第一应用程序;a first acquisition subunit, used to acquire the currently running first application;
第一控制子单元,用于控制第一应用程序通过主WIFI连接模块接入的无线网络进行数据访问;和/或,a first control subunit, configured to control the first application to access data through the wireless network accessed by the main WIFI connection module; and/or,
第二获取子单元,用于获取后台运行的第二应用程序;The second acquisition subunit is used to acquire the second application running in the background;
第二控制子单元,用于控制第二应用程序通过辅WIFI连接模块接入的无线网络进行数据访问。The second control subunit is used to control the second application program to access data through the wireless network accessed by the auxiliary WIFI connection module.
值得指出的是,本发明实施例的移动终端是与上述无线网络处理方法方法对应的移动终端,上述方法的实施方式和实现的技术效果均适用于该移动终端的实施例中。其中,该移动终端设置多个WIFI连接模块,并控制多个WIFI连接模块依次接入不同的无线网络,进一步通过不同的无线网络完成应用程序的数据访问服务。这样充分利用多个无线网络进行数据访问,避免了无线网络资源浪费的问题,并提高了移动终端的数据访问速度,提高了用户体验。It is worth noting that the mobile terminal in the embodiment of the present invention is a mobile terminal corresponding to the above method for processing a wireless network, and the implementation manner and technical effect achieved by the above method are applicable to the embodiment of the mobile terminal. The mobile terminal is provided with a plurality of WIFI connection modules, and controls the plurality of WIFI connection modules to access different wireless networks in turn, and further completes the data access service of the application program through different wireless networks. In this way, multiple wireless networks are fully utilized for data access, the problem of wasting wireless network resources is avoided, the data access speed of the mobile terminal is improved, and the user experience is improved.
第五实施例Fifth Embodiment
图5是本发明另一个实施例的移动终端500的框图,如图5所示的移动终端包括:至少一个处理器501、存储器502和用户接口503。移动终端500中的各个组件通过总线系统505耦合在一起。可理解,总线系统505用于实现这些组件之间的连接通信。总线系统505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统505。FIG. 5 is a block diagram of a mobile terminal 500 according to another embodiment of the present invention. The mobile terminal shown in FIG. 5 includes: at least one processor 501 , a memory 502 and a user interface 503 . The various components in the mobile terminal 500 are coupled together by a bus system 505 . It is understood that the bus system 505 is used to implement the connection communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 505 in FIG. 5 .
其中,用户接口503可以包括显示器或者点击设备(例如触感板或者触摸屏等。The user interface 503 may include a display or a pointing device (eg, a touch pad or a touch screen, etc.).
可以理解,本发明实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DRRAM)。本文描述的系统和方法的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 502 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Wherein, the non-volatile memory may be Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (Erasable PROM, EPROM), Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synchlink DRAM, SLDRAM) and Direct memory bus random access memory (DirectRambus RAM, DRRAM). The memory 502 of the systems and methods described herein is intended to include, but not be limited to, these and any other suitable types of memory.
在一些实施方式中,存储器502存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统5021和应用程序5022。In some embodiments, memory 502 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set of them: an operating system 5021 and applications 5022 .
其中,操作系统5021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序5022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序5022中。The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The program for implementing the method of the embodiment of the present invention may be included in the application program 5022 .
在本发明的实施例中,通过调用存储器502存储的程序或指令,具体地,可以是应用程序5022中存储的程序或指令。其中,处理器501用于获取待接入的多个无线网络的网络接入信息;根据网络接入信息,将多个WIFI连接模块依次接入对应的无线网络;其中,不同的WIFI连接模块接入的无线网络不同;根据应用程序的优先级,控制处于运行状态的应用程序通过与该优先级对应的WIFI连接模块接入的无线网络进行数据访问。In the embodiment of the present invention, by calling the program or instruction stored in the memory 502 , specifically, it may be the program or instruction stored in the application program 5022 . The processor 501 is configured to acquire network access information of multiple wireless networks to be accessed; according to the network access information, connect multiple WIFI connection modules to corresponding wireless networks in sequence; wherein, different WIFI connection modules are connected to According to the priority of the application, the application in the running state is controlled to access data through the wireless network connected to the WIFI connection module corresponding to the priority.
上述本发明实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the above embodiments of the present invention may be applied to the processor 501 or implemented by the processor 501 . The processor 501 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method can be completed by an integrated logic circuit of hardware in the processor 501 or an instruction in the form of software. The above-mentioned processor 501 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA), or other possible Programming logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502, and completes the steps of the above method in combination with its hardware.
可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It will be appreciated that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more Application Specific Integrated Circuits (ASIC), Digital Signal Processing (DSP), Digital Signal Processing Device (DSP Device, DSPD), programmable logic Devices (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in this application or a combination thereof.
对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein may be implemented through modules (eg, procedures, functions, etc.) that perform the functions described herein. Software codes may be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
具体地,处理器501还用于:获取多个WIFI连接模块接入的无线网络的数据传输速率;将多个WIFI连接模块按照数据传输速率降幂进行排序,得到一WIFI连接模块序列;确定WIFI连接模块序列中的前N个WIFI连接模块为主WIFI连接模块;确定WIFI连接模块序列中除主WIFI连接模块外的其他WIFI连接模块为辅WIFI连接模块。Specifically, the processor 501 is further configured to: obtain the data transmission rate of the wireless network accessed by the multiple WIFI connection modules; sort the multiple WIFI connection modules according to the descending power of the data transmission rate to obtain a sequence of WIFI connection modules; determine the WIFI connection The first N WIFI connection modules in the connection module sequence are primary WIFI connection modules; other WIFI connection modules other than the primary WIFI connection module in the WIFI connection module sequence are determined as auxiliary WIFI connection modules.
具体地,处理器501还用于:获取用户配置主WIFI连接模块和辅WIFI连接模块的配置信息;根据配置信息将多个WIFI连接模块划分为主WIFI连接模块和辅WIFI连接模块。Specifically, the processor 501 is further configured to: obtain the configuration information of the main WIFI connection module and the auxiliary WIFI connection module configured by the user; and divide the plurality of WIFI connection modules into the main WIFI connection module and the auxiliary WIFI connection module according to the configuration information.
具体地,处理器501还用于:根据处于运行状态的应用程序的优先级,为处于运行状态的应用程序配置对应的WIFI连接模块;其中,主WIFI连接模块所对应的应用程序的优先级高于辅WIFI连接模块所对应的应用程序。Specifically, the processor 501 is further configured to: configure a corresponding WIFI connection module for the application in the running state according to the priority of the application in the running state; wherein, the priority of the application corresponding to the main WIFI connection module is high The application program corresponding to the auxiliary WIFI connection module.
进一步地,处理器501还用于:控制处于运行状态的一个应用程序同时通过多个WIFI连接模块接入的无线网络进行数据访问;或者,控制处于运行状态的多个应用程序中的不同应用程序分别通过对应的WIFI连接模块接入的无线网络进行数据访问;其中,不同应用程序所对应的WIFI连接模块不同。Further, the processor 501 is further configured to: control an application program in a running state to access data through a wireless network accessed by multiple WIFI connection modules at the same time; or, control different application programs among the multiple application programs in a running state Data access is performed respectively through the wireless network accessed by the corresponding WIFI connection module; wherein, the WIFI connection modules corresponding to different applications are different.
其中,处理器501还用于:获取当前运行的第一应用程序;控制第一应用程序通过主WIFI连接模块接入的无线网络进行数据访问;和/或,获取后台运行的第二应用程序;控制第二应用程序通过辅WIFI连接模块接入的无线网络进行数据访问。Wherein, the processor 501 is further configured to: acquire the currently running first application; control the first application to access data through the wireless network accessed by the main WIFI connection module; and/or acquire the second application running in the background; Control the second application to access data through the wireless network accessed by the auxiliary WIFI connection module.
本发明实施例的移动终端500,设置多个WIFI连接模块,并控制多个WIFI连接模块依次接入不同的无线网络,进一步通过不同的无线网络完成应用程序的数据访问服务。这样充分利用多个无线网络进行数据访问,避免了无线网络资源浪费的问题,并提高了移动终端的数据访问速度,提高了用户体验。The mobile terminal 500 in the embodiment of the present invention is provided with multiple WIFI connection modules, and controls the multiple WIFI connection modules to access different wireless networks in sequence, and further completes data access services of applications through different wireless networks. In this way, multiple wireless networks are fully utilized for data access, the problem of wasting wireless network resources is avoided, the data access speed of the mobile terminal is improved, and the user experience is improved.
第六实施例Sixth Embodiment
图6是本发明另一个实施例的移动终端的结构示意图。具体地,图6中的移动终端600可以是手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、或车载电脑等。FIG. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 600 in FIG. 6 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.
图6中的移动终端600包括电源610、存储器620、输入单元630、显示单元640、处理器650、WIFI(Wireless Fidelity)模块660、音频电路670和RF电路680,其中,WIFI模块660包括多个个WIFI连接模块。The mobile terminal 600 in FIG. 6 includes a power supply 610, a memory 620, an input unit 630, a display unit 640, a processor 650, a WIFI (Wireless Fidelity) module 660, an audio circuit 670 and an RF circuit 680, wherein the WIFI module 660 includes a plurality of A WIFI connection module.
其中,输入单元630可用于接收用户输入的信息,以及产生与移动终端600的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元630可以包括触控面板631。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器650,并能接收处理器650发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。The input unit 630 may be used to receive information input by the user, and generate signal input related to user settings and function control of the mobile terminal 600 . Specifically, in this embodiment of the present invention, the input unit 630 may include a touch panel 631 . The touch panel 631, also known as a touch screen, can collect the user's touch operations on or near it (such as the user's operations on the touch panel 631 using any suitable objects or accessories such as a finger, a stylus, etc.) The specified program drives the corresponding connection device. Optionally, the touch panel 631 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 650, and can receive the commands sent by the processor 650 and execute them. In addition, the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
其中,显示单元640可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种菜单界面。显示单元640可包括显示面板641,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板641。The display unit 640 may be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal. The display unit 640 may include a display panel 641. Alternatively, the display panel 641 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).
应注意,触控面板631可以覆盖显示面板641,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器650以确定触摸事件的类型,随后处理器650根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 631 may cover the display panel 641 to form a touch display screen. After the touch display screen detects a touch operation on or near it, it is transmitted to the processor 650 to determine the type of touch event, and then the processor 650 provides corresponding visual output on the touch display screen according to the type of touch event.
触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch screen includes the application program interface display area and the commonly used controls display area. The arrangement of the application program interface display area and the common control display area is not limited, and may be an arrangement that can distinguish the two display areas, such as up-down arrangement, left-right arrangement, or the like. The application program interface display area can be used to display the interface of the application program. Each interface may contain at least one application icon and/or interface elements such as widget desktop controls. The application program interface display area can also be an empty interface that does not contain any content. The commonly used control display area is used to display controls with high usage rate, such as setting buttons, interface numbers, scroll bars, phonebook icons and other application icons.
其中处理器650是移动终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器621内的软件程序和/或模块,以及调用存储在第二存储器622内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。可选的,处理器650可包括一个或多个处理单元。The processor 650 is the control center of the mobile terminal, 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 first memory 621, and calling the software programs and/or modules stored in the second memory 622, perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. Optionally, processor 650 may include one or more processing units.
在本发明实施例中,通过调用存储该第一存储器621内的软件程序和/或模块和/给第二存储器622内的数据,获取待接入的多个无线网络的网络接入信息;根据网络接入信息,将多个WIFI连接模块依次接入对应的无线网络;其中,不同的WIFI连接模块接入的无线网络不同;根据应用程序的优先级,控制处于运行状态的应用程序通过与该优先级对应的WIFI连接模块接入的无线网络进行数据访问。In this embodiment of the present invention, the network access information of multiple wireless networks to be accessed is acquired by calling and storing software programs and/or modules in the first memory 621 and/or data in the second memory 622; according to Network access information, connect multiple WIFI connection modules to the corresponding wireless network in turn; among them, different WIFI connection modules access different wireless networks; according to the priority of the application, the application in the running state is controlled to pass the connection with the corresponding wireless network. The wireless network accessed by the WIFI connection module corresponding to the priority performs data access.
具体地,处理器650还用于:获取多个WIFI连接模块接入的无线网络的数据传输速率;将多个WIFI连接模块按照数据传输速率降幂进行排序,得到一WIFI连接模块序列;确定WIFI连接模块序列中的前N个WIFI连接模块为主WIFI连接模块;确定WIFI连接模块序列中除主WIFI连接模块外的其他WIFI连接模块为辅WIFI连接模块。Specifically, the processor 650 is further configured to: acquire the data transmission rates of the wireless networks accessed by the multiple WIFI connection modules; sort the multiple WIFI connection modules in descending order of the data transmission rates to obtain a sequence of WIFI connection modules; determine the WIFI connection The first N WIFI connection modules in the connection module sequence are primary WIFI connection modules; other WIFI connection modules other than the primary WIFI connection module in the WIFI connection module sequence are determined as auxiliary WIFI connection modules.
具体地,处理器650还用于:获取用户配置主WIFI连接模块和辅WIFI连接模块的配置信息;根据配置信息将多个WIFI连接模块划分为主WIFI连接模块和辅WIFI连接模块。Specifically, the processor 650 is further configured to: obtain the configuration information of the main WIFI connection module and the auxiliary WIFI connection module configured by the user; and divide the plurality of WIFI connection modules into the main WIFI connection module and the auxiliary WIFI connection module according to the configuration information.
进一步地,处理器650还用于:根据处于运行状态的应用程序的优先级,为处于运行状态的应用程序配置对应的WIFI连接模块;其中,主WIFI连接模块所对应的应用程序的优先级高于辅WIFI连接模块所对应的应用程序。Further, the processor 650 is further configured to configure a corresponding WIFI connection module for the application in the running state according to the priority of the application in the running state; wherein, the priority of the application corresponding to the main WIFI connection module is high The application program corresponding to the auxiliary WIFI connection module.
其中,处理器650还用于:控制处于运行状态的一个应用程序同时通过多个WIFI连接模块接入的无线网络进行数据访问;或者,控制处于运行状态的多个应用程序中的不同应用程序分别通过对应的WIFI连接模块接入的无线网络进行数据访问;其中,不同应用程序所对应的WIFI连接模块不同。Wherein, the processor 650 is further configured to: control an application in a running state to access data through a wireless network accessed by multiple WIFI connection modules at the same time; Data access is performed through the wireless network accessed by the corresponding WIFI connection module; wherein, the WIFI connection modules corresponding to different applications are different.
其中,处理器650还用于:获取当前运行的第一应用程序;控制第一应用程序通过主WIFI连接模块接入的无线网络进行数据访问;和/或,获取后台运行的第二应用程序;控制第二应用程序通过辅WIFI连接模块接入的无线网络进行数据访问。The processor 650 is further configured to: acquire the currently running first application; control the first application to access data through the wireless network accessed by the main WIFI connection module; and/or acquire the second application running in the background; Control the second application to access data through the wireless network accessed by the auxiliary WIFI connection module.
本发明实施例的移动终端600,设置多个WIFI连接模块,并控制多个WIFI连接模块依次接入不同的无线网络,进一步通过不同的无线网络完成应用程序的数据访问服务。这样充分利用多个无线网络进行数据访问,避免了无线网络资源浪费的问题,并提高了移动终端的数据访问速度,提高了用户体验。The mobile terminal 600 in the embodiment of the present invention is provided with multiple WIFI connection modules, and controls the multiple WIFI connection modules to access different wireless networks in sequence, and further completes data access services of applications through different wireless networks. In this way, multiple wireless networks are fully utilized for data access, the problem of wasting wireless network resources is avoided, the data access speed of the mobile terminal is improved, and the user experience is improved.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method 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. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated 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, mechanical 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.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause 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: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk and other mediums that can store program codes.
以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本发明的保护范围内。The above are the preferred embodiments of the present invention, and it should be pointed out that for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications are also included in the present invention. within the scope of protection of the invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610616414.6ACN106304276B (en) | 2016-07-29 | 2016-07-29 | A wireless network processing method and mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610616414.6ACN106304276B (en) | 2016-07-29 | 2016-07-29 | A wireless network processing method and mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN106304276A CN106304276A (en) | 2017-01-04 |
| CN106304276Btrue CN106304276B (en) | 2019-07-26 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610616414.6AActiveCN106304276B (en) | 2016-07-29 | 2016-07-29 | A wireless network processing method and mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN106304276B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107484172A (en)* | 2017-08-15 | 2017-12-15 | 上海展扬通信技术有限公司 | The method for connecting network and network connection device of a kind of intelligent terminal |
| CN107770841B (en)* | 2017-09-29 | 2020-10-27 | 珠海大横琴科技发展有限公司 | Hotspot connection method, mobile terminal and computer-readable storage medium |
| CN107580359B (en)* | 2017-09-29 | 2020-11-03 | 新沂市摩尔网络科技有限公司 | Wireless hotspot sharing method, mobile terminal and computer readable storage medium |
| CN107944320A (en)* | 2017-11-28 | 2018-04-20 | 浪潮金融信息技术有限公司 | Control method and device, computer-readable storage medium, the terminal of smart machine |
| CN108307462A (en)* | 2018-01-30 | 2018-07-20 | 努比亚技术有限公司 | A kind of method for connecting network, terminal and computer readable storage medium |
| US10862893B2 (en)* | 2018-09-19 | 2020-12-08 | GM Global Technology Operations LLC | Method for network policy management of foreground applications |
| CN110944408B (en)* | 2019-10-31 | 2022-05-17 | 维沃移动通信有限公司 | Data transmission method and electronic equipment |
| CN111148278A (en)* | 2019-12-30 | 2020-05-12 | Oppo广东移动通信有限公司 | Data transmission method, device, storage medium and electronic device |
| CN111901897A (en)* | 2020-07-28 | 2020-11-06 | Tcl通讯(宁波)有限公司 | A data download method, device, storage medium and terminal |
| CN114630390B (en)* | 2020-12-10 | 2025-02-28 | 中兴通讯股份有限公司 | Automatic collaboration method, device and storage medium of network devices |
| CN112752284B (en)* | 2020-12-30 | 2022-11-04 | 惠州Tcl移动通信有限公司 | Application network optimization method, device, equipment and medium under double WIFI |
| CN119997090A (en)* | 2022-11-23 | 2025-05-13 | 荣耀终端股份有限公司 | Multi-network collaborative operation method, device and storage medium |
| CN116347482B (en)* | 2023-04-12 | 2023-09-01 | 北京智享嘉网络信息技术有限公司 | Automatic network optimization method and system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102056329A (en)* | 2009-11-04 | 2011-05-11 | 中国移动通信集团公司 | Method and device for connecting and managing multiple APs (access points) |
| US9439099B2 (en)* | 2013-10-14 | 2016-09-06 | Netgear, Inc. | Systems and methods for simultaneously using multiple WLAN modules operating in different wireless bands |
| CN105744597B (en)* | 2014-12-12 | 2019-06-21 | 华为终端有限公司 | A terminal and a wireless connection method thereof |
| CN105338569B (en)* | 2015-09-30 | 2018-12-25 | 宇龙计算机通信科技(深圳)有限公司 | A kind of multiple-bearer data transmission method and device |
| Publication number | Publication date |
|---|---|
| CN106304276A (en) | 2017-01-04 |
| Publication | Publication Date | Title |
|---|---|---|
| CN106304276B (en) | A wireless network processing method and mobile terminal | |
| CN107171874B (en) | A voice engine switching method, mobile terminal and server | |
| US9535576B2 (en) | Touchscreen apparatus user interface processing method and touchscreen apparatus | |
| CN106657793B (en) | An image processing method and mobile terminal | |
| CN106332307B (en) | Method for accessing application program to network and mobile terminal | |
| CN115793950A (en) | Control method applied to screen projection scene and related equipment | |
| CN111352597B (en) | Multi-screen display control method and device, electronic equipment and readable storage medium | |
| CN107256129A (en) | Method and device for switching applications in split-screen mode and related equipment | |
| CN113169992B (en) | Equipment network distribution method and device, electronic equipment and storage medium | |
| CN106095250B (en) | Application icon layout method and mobile terminal | |
| CN108605220B (en) | Application processing method and device for embedded universal integrated circuit card | |
| CN106506401A (en) | A traffic management method and mobile terminal | |
| WO2015014144A1 (en) | Method and apparatus for installing application, and terminal device | |
| CN106453953B (en) | A wireless access point connection method and mobile terminal | |
| CN108809547B (en) | Data transmission method, base station and terminal | |
| CN103106007B (en) | Icon display method and device | |
| JP2016164769A (en) | Method for implementing multi-screen by distributing plural screens and sharing input interface between user apparatuses, and user apparatuses for setting up as multi-screen | |
| CN106993267A (en) | A hotspot connection method, a first terminal and a second terminal | |
| CN107509051A (en) | Long-range control method, device, terminal and computer-readable recording medium | |
| WO2017032080A1 (en) | Method and device for address book control and mobile terminal | |
| CN109151843B (en) | Data transmission method, mobile terminal, base station, and computer-readable storage medium | |
| CN107423099B (en) | Key code programming method, server, terminal, key code programming system and storage medium | |
| CN107145386B (en) | Data migration method, terminal device and computer readable storage medium | |
| CN106776871A (en) | The storage method and mobile terminal of a kind of multimedia file | |
| US20140282058A1 (en) | Electronic device with a funiction of applying applications of different operating systems, system and method thereof |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |