CN106455132B - Multi-WIFI module control method, device and terminal equipment - Google Patents
Multi-WIFI module control method, device and terminal equipment Download PDFInfo
- Publication number
- CN106455132B CN106455132B CN201610861146.4A CN201610861146A CN106455132B CN 106455132 B CN106455132 B CN 106455132B CN 201610861146 A CN201610861146 A CN 201610861146A CN 106455132 B CN106455132 B CN 106455132B
- Authority
- CN
- China
- Prior art keywords
- wifi
- connection state
- data transmission
- terminal
- data packet
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/20—Manipulation of established connections
- H04W76/23—Manipulation of direct-mode connections
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本申请涉及天线技术领域,尤其涉及一种多WIFI模块控制方法、装置及终端设备。The present application relates to the field of antenna technology, and in particular, to a method, device and terminal device for controlling multiple WIFI modules.
背景技术Background technique
随着互联网技术的高速发展,无线网络连接(Wireless Fidelity,简称WIFI)逐渐成为人们日常生活和工作中常用的一种网络连接方式。With the rapid development of Internet technology, wireless network connection (Wireless Fidelity, WIFI for short) has gradually become a network connection method commonly used in people's daily life and work.
当移动终端位于WIFI的覆盖区域时,用户可以通过预设的身份验证方式(例如:输入预设的密码)将移动终端接入相应的无线网络中,以通过无线连接进行数据传输或者网上冲浪。When the mobile terminal is located in the coverage area of WIFI, the user can connect the mobile terminal to the corresponding wireless network through a preset authentication method (for example, inputting a preset password), so as to perform data transmission or surf the Internet through the wireless connection.
但是,由于利用无线连接进行数据传输时,需要两个终端通过WIFI模块建立连接,此时,用户就无法使用无线网络进行网上冲浪,这极大的影响了终端的性能,影响了用户使用。However, when using a wireless connection for data transmission, two terminals need to establish a connection through a WIFI module. At this time, the user cannot use the wireless network to surf the Internet, which greatly affects the performance of the terminal and affects the user's use.
发明内容SUMMARY OF THE INVENTION
本申请旨在至少在一定程度上解决相关技术中的技术问题之一。The present application aims to solve one of the technical problems in the related art at least to a certain extent.
为此,本申请的第一个目的在于提出一种多WIFI模块控制方法,该方法实现了终端可同时利用无线网路进行数据传输和上网,提高了终端的性能,改善了用户体验。Therefore, the first purpose of the present application is to propose a multi-WIFI module control method, which enables the terminal to use the wireless network for data transmission and Internet access at the same time, thereby improving the performance of the terminal and improving the user experience.
本申请的第二个目的在于提出一种多WIFI模块控制装置。The second objective of the present application is to provide a multi-WIFI module control device.
本申请的第三个目的在于提出一种终端设备。The third objective of the present application is to provide a terminal device.
为达上述目的,本申请第一方面实施例提出了一种多WIFI模块控制方法,包括:确定终端设备中至少两个WIFI模块的连接状态;根据所述至少两个WIFI模块的连接状态,调整所述终端设备中N个天线的馈电点接入的天线信号,其中N为大于等于2的整数。In order to achieve the above purpose, an embodiment of the first aspect of the present application proposes a method for controlling multiple WIFI modules, including: determining the connection status of at least two WIFI modules in a terminal device; Antenna signals accessed by feed points of N antennas in the terminal device, where N is an integer greater than or equal to 2.
如上所述的多WIFI模块控制方法,所述确定终端设备中至少两个WIFI模块的连接状态,包括:In the above method for controlling multiple WIFI modules, the determining the connection status of at least two WIFI modules in the terminal device includes:
截获所述终端设备的无线端口发送的第一数据包,所述第一数据包中包括第一源地址和第一目的地址;intercepting a first data packet sent by the wireless port of the terminal device, where the first data packet includes a first source address and a first destination address;
判断所述第一数据包中的第一目的地址是否满足预设的条件;Judging whether the first destination address in the first data packet satisfies a preset condition;
若是,则确定与所述第一源地址对应的第一WIFI模块处于数据传输状态。If so, it is determined that the first WIFI module corresponding to the first source address is in a data transmission state.
如上所述的多WIFI模块控制方法,所述判断所述第一数据包中的目的地址是否满足预设的条件,包括:In the above-mentioned multi-WIFI module control method, the judging whether the destination address in the first data packet satisfies a preset condition includes:
判断所述第一数据包中的第一目的地址对应的目的终端是否与所述终端设备处于同一局域网内;或者,Determine whether the destination terminal corresponding to the first destination address in the first data packet is in the same local area network as the terminal device; or,
判断所述第一数据包中的第一目的地址对应的目的终端的标识,是否在预设的列表中。It is judged whether the identifier of the destination terminal corresponding to the first destination address in the first data packet is in a preset list.
如上所述的多WIFI模块控制方法,所述确定终端设备中至少两个WIFI模块的连接状态,包括:In the above method for controlling multiple WIFI modules, the determining the connection status of at least two WIFI modules in the terminal device includes:
截获所述终端设备的无线端口接收的第二数据包,所述第一数据包中包括第二源地址和第二目的地址;intercepting a second data packet received by the wireless port of the terminal device, where the first data packet includes a second source address and a second destination address;
判断所述第二数据包中的第二源地址是否满足预设的条件;Judging whether the second source address in the second data packet satisfies a preset condition;
若是,则确定与所述第二目的地址对应的第二WIFI模块处于数据传输状态。If so, it is determined that the second WIFI module corresponding to the second destination address is in a data transmission state.
如上所述的多WIFI模块控制方法,所述根据所述至少两个WIFI模块的连接状态,调整所述终端设备中N个天线的馈电点接入的天线信号,包括:In the above-mentioned multi-WIFI module control method, adjusting the antenna signals connected to the feed points of the N antennas in the terminal device according to the connection status of the at least two WIFI modules, includes:
若所述至少两个WIFI模块中仅第二WIFI模块处于网络连接状态,则控制所述N个天线的馈电点分别与所述第二WIFI模块的天线信号连接。If only the second WIFI module of the at least two WIFI modules is in a network connection state, the feeding points of the N antennas are controlled to be signal-connected to the antennas of the second WIFI module, respectively.
本申请实施例的多WIFI模块控制方法,通过根据终端中至少两个WIFI模块的连接状态,调整终端中N个天线的馈电点接入的天线信号。由此,实现了终端可同时利用无线网路进行数据传输和上网,提高了终端的性能,改善了用户体验。The method for controlling multiple WIFI modules in the embodiment of the present application adjusts the antenna signals connected to the feeding points of N antennas in the terminal according to the connection status of at least two WIFI modules in the terminal. Thereby, it is realized that the terminal can use the wireless network for data transmission and Internet access at the same time, which improves the performance of the terminal and improves the user experience.
为达上述目的,本申请第二方面实施例提出了一种多WIFI模块控制装置,包括:确定模块,用于确定终端设备中至少两个WIFI模块的连接状态;调整模块,用于根据所述至少两个WIFI模块的连接状态,调整所述终端设备中N个天线的馈电点接入的天线信号,其中N为大于等于2的整数。In order to achieve the above purpose, an embodiment of the second aspect of the present application proposes a multi-WIFI module control device, including: a determination module for determining the connection status of at least two WIFI modules in a terminal device; an adjustment module for The connection state of at least two WIFI modules adjusts the antenna signals accessed by the feed points of N antennas in the terminal device, where N is an integer greater than or equal to 2.
如上所述的多WIFI模块控制装置,所述确定模块,包括:In the above-mentioned multi-WIFI module control device, the determining module includes:
第一截获单元,用于截获所述终端设备的无线端口发送的第一数据包,所述第一数据包中包括第一源地址和第一目的地址;a first intercepting unit, configured to intercept a first data packet sent by a wireless port of the terminal device, where the first data packet includes a first source address and a first destination address;
第一判断单元,用于判断所述第一数据包中的第一目的地址是否满足预设的条件;a first judging unit, configured to judge whether the first destination address in the first data packet satisfies a preset condition;
第一确定单元,用于若所述第一数据包中的第一目的地址满足预设的条件,则确定与所述第一源地址对应的第一WIFI模块处于数据传输状态。The first determining unit is configured to determine that the first WIFI module corresponding to the first source address is in a data transmission state if the first destination address in the first data packet satisfies a preset condition.
如上所述的多WIFI模块控制装置,所述第一判断单元,具体用于:In the above-mentioned multi-WIFI module control device, the first judgment unit is specifically used for:
判断所述第一数据包中的第一目的地址对应的目的终端是否与所述终端设备处于同一局域网内;或者,Determine whether the destination terminal corresponding to the first destination address in the first data packet is in the same local area network as the terminal device; or,
判断所述第一数据包中的第一目的地址对应的目的终端的标识,是否在预设的列表中。It is judged whether the identifier of the destination terminal corresponding to the first destination address in the first data packet is in a preset list.
如上所述的多WIFI模块控制装置,所述确定模块,包括:In the above-mentioned multi-WIFI module control device, the determining module includes:
第二截获单元,用于截获所述终端设备的无线端口接收的第二数据包,所述第一数据包中包括第二源地址和第二目的地址;a second intercepting unit, configured to intercept a second data packet received by the wireless port of the terminal device, where the first data packet includes a second source address and a second destination address;
第二判断单元,用于判断所述第二数据包中的第二源地址是否满足预设的条件;a second judging unit, configured to judge whether the second source address in the second data packet satisfies a preset condition;
第二确定单元,用于若所述第二数据包中的第二源地址满足预设的条件,则确定与所述第二目的地址对应的第二WIFI模块处于数据传输状态。The second determining unit is configured to determine that the second WIFI module corresponding to the second destination address is in a data transmission state if the second source address in the second data packet satisfies a preset condition.
如上所述的多WIFI模块控制装置,所述调整模块,具体用于:In the above-mentioned multi-WIFI module control device, the adjustment module is specifically used for:
若所述至少两个WIFI模块中仅第二WIFI模块处于网络连接状态,则控制所述N个天线的馈电点分别与所述第二WIFI模块的天线信号连接。If only the second WIFI module of the at least two WIFI modules is in a network connection state, the feeding points of the N antennas are controlled to be signal-connected to the antennas of the second WIFI module, respectively.
本申请实施例的多WIFI模块控制装置,通过根据终端中至少两个WIFI模块的连接状态,调整终端中N个天线的馈电点接入的天线信号。由此,实现了终端可同时利用无线网路进行数据传输和上网,提高了终端的性能,改善了用户体验。The device for controlling multiple WIFI modules in the embodiment of the present application adjusts the antenna signals accessed by the feeding points of N antennas in the terminal according to the connection status of at least two WIFI modules in the terminal. Thereby, it is realized that the terminal can use the wireless network for data transmission and Internet access at the same time, which improves the performance of the terminal and improves the user experience.
为达上述目的,本申请第三方面实施例提出了一种终端设备,包括以下一个或多个组件:电路板、壳体、处理器,存储器,电源电路,至少两个WIFI模块,N个天线及无线端口;其中,所述电路板安置在所述壳体围成的空间内部,所述处理器、所述存储器和所述至少两个WIFI模块设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:To achieve the above purpose, a third aspect of the present application provides a terminal device, including one or more of the following components: a circuit board, a housing, a processor, a memory, a power supply circuit, at least two WIFI modules, and N antennas and a wireless port; wherein, the circuit board is arranged inside the space enclosed by the casing, and the processor, the memory and the at least two WIFI modules are arranged on the circuit board; the power circuit , used to supply power to each circuit or device of the mobile terminal; the memory is used to store executable program codes; the processor reads the executable program codes stored in the memory to run and execute the executable program code. Program code corresponding to the program to perform the following steps:
确定终端设备中至少两个WIFI模块的连接状态;Determine the connection status of at least two WIFI modules in the terminal device;
根据所述至少两个WIFI模块的连接状态,调整所述终端设备中N个天线的馈电点接入的天线信号,其中N为大于等于2的整数According to the connection status of the at least two WIFI modules, adjust the antenna signals connected to the feed points of the N antennas in the terminal device, where N is an integer greater than or equal to 2
本申请实施例的终端设备,通过根据终端中至少两个WIFI模块的连接状态,调整终端中N个天线的馈电点接入的天线信号。由此,实现了终端可同时利用无线网路进行数据传输和上网,提高了终端的性能,改善了用户体验。The terminal device in the embodiment of the present application adjusts the antenna signals accessed by the feeding points of the N antennas in the terminal according to the connection status of at least two WIFI modules in the terminal. Thereby, it is realized that the terminal can use the wireless network for data transmission and Internet access at the same time, which improves the performance of the terminal and improves the user experience.
附图说明Description of drawings
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:
图1是本申请一个实施例的多WIFI模块控制方法的流程图;FIG. 1 is a flowchart of a multi-WIFI module control method according to an embodiment of the present application;
图2a为本申请一个实施例提供的多WIFI模块与WIFI天线的连接示意图;FIG. 2a is a schematic diagram of the connection between a multi-WIFI module and a WIFI antenna provided by an embodiment of the present application;
图2b为本申请另一个实施例提供的多WIFI模块与WIFI天线的连接示意图;FIG. 2b is a schematic diagram of a connection between a multi-WIFI module and a WIFI antenna provided by another embodiment of the present application;
图2c为本申请另一个实施例提供的多WIFI模块与WIFI天线的连接示意图;FIG. 2c is a schematic diagram of a connection between a multi-WIFI module and a WIFI antenna provided by another embodiment of the present application;
图3是本申请一个实施例的多WIFI模块控制装置的结构示意图;3 is a schematic structural diagram of a multi-WIFI module control device according to an embodiment of the present application;
图4是本申请一个实施例的终端设备的结构示意图。FIG. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。The following describes in detail the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to be used to explain the present application, but should not be construed as a limitation to the present application.
下面参考附图描述本申请实施例的多WIFI模块控制方法、装置及终端设备。The following describes the multi-WIFI module control method, device, and terminal device according to the embodiments of the present application with reference to the accompanying drawings.
图1是本申请一个实施例的多WIFI模块控制方法的流程图。FIG. 1 is a flowchart of a method for controlling multiple WIFI modules according to an embodiment of the present application.
如图1所示,该多WIFI模块控制方法包括:As shown in Figure 1, the multi-WIFI module control method includes:
步骤101,确定终端设备中至少两个WIFI模块的连接状态。Step 101: Determine the connection status of at least two WIFI modules in the terminal device.
具体地,本实施例提供的多WIFI模块控制方法被配置在具有多个WIFI模块的终端设备中为例进行具体说明。需要注意的是,终端设备的类型很多,可以根据应用需要进行选择,例如:手机、IPAD、电脑、佩戴设备等。Specifically, the method for controlling multiple WIFI modules provided in this embodiment is configured in a terminal device having multiple WIFI modules as an example for specific description. It should be noted that there are many types of terminal devices, which can be selected according to application needs, such as mobile phones, IPADs, computers, and wearable devices.
具体的,本申请各实施例主要针对现有技术中,终端仅有一个WIFI模块(芯片)的情况下,若通过WIFI连接进行数据传输,比如在一个局域网内的手机和电视通过投屏方式播放视频时,就需要手机中的WIFI模块与电视中的WIFI模块建立点对点连接,此时,用户就无法再利用手机进行网上冲浪,比如浏览新闻等,影响了用户使用的问题,提出一种通过在终端中设置多个WIFI模块和天线,从而可以利用不同的WIFI模块和天线完成不同的功能。Specifically, the embodiments of the present application are mainly aimed at the prior art, in the case where the terminal has only one WIFI module (chip), if data transmission is performed through WIFI connection, for example, the mobile phone and TV in a local area network play through the screen projection mode When making videos, it is necessary to establish a point-to-point connection between the WIFI module in the mobile phone and the WIFI module in the TV. At this time, the user can no longer use the mobile phone to surf the Internet, such as browsing news, etc., which affects the user's use. Multiple WIFI modules and antennas are set in the terminal, so that different WIFI modules and antennas can be used to complete different functions.
其中,WIFI模块的连接状态,指WIIFI模块是处于数据传输连接状态,还是处于上网连接状态。可以理解的是,本申请实施例中的上网连接状态,指WIFI模块通过与网络或应用服务器进行数据传输,以使用户进行网上冲浪、聊天或者游戏等活动;而数据传输连接状态,是指终端与终端之间通过WIFI建立连接,以进行数据传输。The connection state of the WIFI module refers to whether the WIFI module is in a data transmission connection state or an Internet connection state. It can be understood that the Internet connection status in the embodiments of the present application refers to the WIFI module performing data transmission with the network or application server, so that the user can surf the Internet, chat or play activities; and the data transmission connection status refers to the terminal. Establish a connection with the terminal through WIFI for data transmission.
具体的,多WIFI模块控制装置可以通过以下多种方式,确定终端设备中WIFI模块的连接状态。Specifically, the multi-WIFI module control apparatus can determine the connection state of the WIFI module in the terminal device in the following multiple ways.
示例一Example 1
截获所述终端设备的无线端口发送的第一数据包,所述第一数据包中包括第一源地址和第一目的地址;intercepting a first data packet sent by the wireless port of the terminal device, where the first data packet includes a first source address and a first destination address;
判断所述第一数据包中的第一目的地址是否满足预设的条件;Judging whether the first destination address in the first data packet satisfies a preset condition;
若是,则确定与所述第一源地址对应的第一WIFI模块处于数据传输状态。If so, it is determined that the first WIFI module corresponding to the first source address is in a data transmission state.
具体的,由于终端设备中通过无线网络发送或接收的数据包,都会经过终端设备的无线端口,因此本实施例中,可以通过监控终端设备通过无线端口发送的第一数据包中包括的第一目的地址,来确定WIFI模块的连接状态。Specifically, since the data packets sent or received by the terminal device through the wireless network all pass through the wireless port of the terminal device, in this embodiment, the first data packet included in the first data packet sent by the terminal device through the wireless port can be monitored. Destination address to determine the connection status of the WIFI module.
通常,由于网络连接状态的WIFI模块发送的第一数据包中包括的第一目的地址为网络服务器地址、应用服务器地址等,而处于数据连接状态的WIFI模块,发送的第一数据包中包括的第一目的地址为其他的终端设备,比如电视、手机等。因此,本实施例中可判断第一数据包中包括的第一目的地址是否是电视、手机等设备的地址,来判断发送该第一数据包的WIFI模块是否处于数据传输状态。Usually, since the first destination address included in the first data packet sent by the WIFI module in the network connection state is the network server address, the application server address, etc., while the WIFI module in the data connection state, the first data packet sent by the WIFI module includes the The first destination address is other terminal devices, such as a TV, a mobile phone, and the like. Therefore, in this embodiment, it can be determined whether the first destination address included in the first data packet is the address of a device such as a TV or a mobile phone, to determine whether the WIFI module sending the first data packet is in a data transmission state.
具体的,由于可进行数据传输的两个终端需要位于同一局域网中,因此,判断第一数据包中第一目的地址是否为设备地址时,可以通过以下方式实现:Specifically, since the two terminals that can perform data transmission need to be located in the same local area network, when judging whether the first destination address in the first data packet is the device address, the following methods can be used:
判断所述第一数据包中的目的地址对应的目的终端是否与所述终端设备处于同一局域网内。It is judged whether the destination terminal corresponding to the destination address in the first data packet is in the same local area network as the terminal device.
举例来说,若终端设备中的WIFI模块连接的局域网址为XXX.XXX,而截获的第一数据包中包括的第一目的地址对应的终端连接的局域网址也为XXX.XXX,那么即可确定目的终端与源终端处于同一局域网内,且二者建立了无线连接。For example, if the local area network address connected to the WIFI module in the terminal device is XXX.XXX, and the local area network address corresponding to the first destination address included in the intercepted first data packet is also XXX.XXX, then you can It is determined that the destination terminal and the source terminal are in the same local area network, and the two have established a wireless connection.
或者,判断所述第一数据包中的第一目的地址对应的目的终端的标识,是否在预设的列表中。Or, it is determined whether the identifier of the destination terminal corresponding to the first destination address in the first data packet is in a preset list.
具体的,多WIFI模块控制装置中,可以存储可与终端设备建立无线连接的其他终端的标识,从而在截获第一数据包后,即可判断第一数据包中的第一目的地址对应的目的终端的标识是否在预设列表中。Specifically, in the multi-WIFI module control device, the identifiers of other terminals that can establish a wireless connection with the terminal device can be stored, so that after the first data packet is intercepted, the purpose corresponding to the first destination address in the first data packet can be determined. Whether the identifier of the terminal is in the preset list.
可以理解的是,若第一数据包的第一目的地址不满足预设的条件,则可以确定第一源地址对应的第一WIFI模块处于上网连接状态。It can be understood that, if the first destination address of the first data packet does not meet the preset condition, it can be determined that the first WIFI module corresponding to the first source address is in an Internet connection state.
需要说明的是,上述第一数据包,可能是一个数据包,也可能为多个数据包。从而多WIFI模块控制装置,即可根据至少两个数据包,确定终端设备中的各个WIFI模块的连接状态。It should be noted that the above-mentioned first data packet may be one data packet, or may be multiple data packets. Therefore, the multi-WIFI module control device can determine the connection state of each WIFI module in the terminal device according to at least two data packets.
示例二Example 2
截获所述终端设备的无线端口接收的第二数据包,所述第一数据包中包括第二源地址和第二目的地址;intercepting a second data packet received by the wireless port of the terminal device, where the first data packet includes a second source address and a second destination address;
判断所述第二数据包中的第二源地址是否满足预设的条件;Judging whether the second source address in the second data packet satisfies a preset condition;
若是,则确定与所述第二目的地址对应的第二WIFI模块处于数据传输状态。If so, it is determined that the second WIFI module corresponding to the second destination address is in a data transmission state.
具体的,多WIFI模块控制装置,还可以通过监控终端设备的无线接口接收的第二数据包,并根据接收的第二数据包中包括的第二源地址,确定第二目的地址对应的第二WIFI模块的连接状态。Specifically, the multi-WIFI module control device can also monitor the second data packet received by the wireless interface of the terminal device, and determine the second data packet corresponding to the second destination address according to the second source address included in the received second data packet. The connection status of the WIFI module.
可以理解的是,终端设备中的至少两个WIFI模块,可以分别工作在不同的连接状态,也可以工作在相同的连接状态,本实施例对此不作限定。It can be understood that, at least two WIFI modules in the terminal device may work in different connection states respectively, or may work in the same connection state, which is not limited in this embodiment.
步骤102,根据所述至少两个WIFI模块的连接状态,调整所述终端设备中N个天线的馈电点接入的天线信号,其中N为大于等于2的整数。Step 102 , according to the connection status of the at least two WIFI modules, adjust the antenna signals connected to the feed points of N antennas in the terminal device, where N is an integer greater than or equal to 2.
具体的,为了保证终端设备中的多个WIFI模块同时工作的需求,终端设备中可以设置多个WIFI天线,从而根据各个WIFI模块的连接状态,控制各个天线的馈电点接入不同的WIFI模块。Specifically, in order to ensure that multiple WIFI modules in the terminal device work at the same time, multiple WIFI antennas can be set in the terminal device, so as to control the feeding point of each antenna to access different WIFI modules according to the connection status of each WIFI module .
下面以终端设备中包括两个WIFI天线为例,对本申请提供的多WIFI模块控制方法进行进一步说明。The following further describes the method for controlling multiple WIFI modules provided by the present application by taking the terminal device including two WIFI antennas as an example.
图2a-图2c为本申请实施例提供的多WIFI模块与WIFI天线的连接示意图。如图2所示,假如终端设备中包括2个WIFI模块和3个WIFI天线,那么多WIFI模块控制装置,在确定WIFI模块1处于数据传输状态,WIFI模块2处于上网连接状态时,即可如图2a或图2b所示的形式,设置天线的馈电点与天线信号的连接形式;若确定仅有WIFI模块1处于数据连接或上网连接状态,那么即可如图2c所示的形式,设置所有的天线的馈电点都与WIFI模块1的天线信号连接。从而使终端即可以同时进行数据传输和上网。2a-2c are schematic diagrams of connection between a multi-WIFI module and a WIFI antenna according to an embodiment of the present application. As shown in Figure 2, if the terminal device includes 2 WIFI modules and 3 WIFI antennas, the multi-WIFI module control device, when it is determined that the WIFI module 1 is in the data transmission state and the WIFI module 2 is in the Internet connection state, can be as follows In the form shown in Figure 2a or Figure 2b, the connection form between the feeding point of the antenna and the antenna signal is set; if it is determined that only the WIFI module 1 is in the data connection or Internet connection state, then the form shown in Figure 2c can be set. The feed points of all antennas are connected to the antenna signals of the WIFI module 1 . Thus, the terminal can perform data transmission and Internet access at the same time.
本申请实施例的多WIFI模块控制方法,通过根据终端中至少两个WIFI模块的连接状态,调整终端中N个天线的馈电点接入的天线信号。由此,实现了终端可同时利用无线网路进行数据传输和上网,提高了终端的性能,改善了用户体验。The method for controlling multiple WIFI modules in the embodiment of the present application adjusts the antenna signals connected to the feeding points of N antennas in the terminal according to the connection status of at least two WIFI modules in the terminal. Thereby, it is realized that the terminal can use the wireless network for data transmission and Internet access at the same time, which improves the performance of the terminal and improves the user experience.
为了实现上述实施例,本申请还提出一种多WIFI模块控制装置。In order to realize the above embodiments, the present application also proposes a multi-WIFI module control device.
图3是本申请一个实施例的多WIFI模块控制装置的结构示意图。FIG. 3 is a schematic structural diagram of a multi-WIFI module control device according to an embodiment of the present application.
如图3所示,该多WIFI模块控制装置包括:As shown in Figure 3, the multi-WIFI module control device includes:
确定模块31,用于确定终端设备中至少两个WIFI模块的连接状态;A determination module 31, configured to determine the connection status of at least two WIFI modules in the terminal device;
调整模块32,用于根据所述至少两个WIFI模块的连接状态,调整所述终端设备中N个天线的馈电点接入的天线信号,其中N为大于等于2的整数。The adjustment module 32 is configured to adjust the antenna signals accessed by the feed points of N antennas in the terminal device according to the connection status of the at least two WIFI modules, where N is an integer greater than or equal to 2.
具体的,本实施例提供的多WIFI模块控制装置,可以用于执行上述实施例提供的多WIFI模块控制方法,其可以被配置在具有多个WIFI模块的终端设备中。Specifically, the apparatus for controlling multiple WIFI modules provided in this embodiment can be used to execute the method for controlling multiple WIFI modules provided in the foregoing embodiments, and it can be configured in a terminal device having multiple WIFI modules.
需要注意的是,终端设备的类型很多,可以根据应用需要进行选择,例如:手机、IPAD、佩戴设备、电脑等。It should be noted that there are many types of terminal devices, which can be selected according to application needs, such as mobile phones, IPADs, wearable devices, and computers.
具体的,上述确定模块31,可以通过多种方式,确定终端设备中各个WIFI模块的连接状态。相应的,上述确定模块31,可以包括:Specifically, the above determining module 31 can determine the connection status of each WIFI module in the terminal device in various ways. Correspondingly, the above determination module 31 may include:
第一截获单元,用于截获所述终端设备的无线端口发送的第一数据包,所述第一数据包中包括第一源地址和第一目的地址;a first intercepting unit, configured to intercept a first data packet sent by a wireless port of the terminal device, where the first data packet includes a first source address and a first destination address;
第一判断单元,用于判断所述第一数据包中的第一目的地址是否满足预设的条件;a first judging unit, configured to judge whether the first destination address in the first data packet satisfies a preset condition;
第一确定单元,用于若所述第一数据包中的第一目的地址满足预设的条件,则确定与所述第一源地址对应的第一WIFI模块处于数据传输状态。The first determining unit is configured to determine that the first WIFI module corresponding to the first source address is in a data transmission state if the first destination address in the first data packet satisfies a preset condition.
其中,第一判断单元,具体用于:Wherein, the first judgment unit is specifically used for:
判断所述第一数据包中的第一目的地址对应的目的终端是否与所述终端设备处于同一局域网内;或者,Determine whether the destination terminal corresponding to the first destination address in the first data packet is in the same local area network as the terminal device; or,
判断所述第一数据包中的第一目的地址对应的目的终端的标识,是否在预设的列表中。It is judged whether the identifier of the destination terminal corresponding to the first destination address in the first data packet is in a preset list.
或者,上述确定模块31,还可以包括:Alternatively, the above determination module 31 may also include:
第二截获单元,用于截获所述终端设备的无线端口接收的第二数据包,所述第一数据包中包括第二源地址和第二目的地址;a second intercepting unit, configured to intercept a second data packet received by the wireless port of the terminal device, where the first data packet includes a second source address and a second destination address;
第二判断单元,用于判断所述第二数据包中的第二源地址是否满足预设的条件;a second judging unit, configured to judge whether the second source address in the second data packet satisfies a preset condition;
第二确定单元,用于若所述第二数据包中的第二源地址满足预设的条件,则确定与所述第二目的地址对应的第二WIFI模块处于数据传输状态。The second determining unit is configured to determine that the second WIFI module corresponding to the second destination address is in a data transmission state if the second source address in the second data packet satisfies a preset condition.
其中,第二判断单元的具体判断过程与第一判断单元的过程类似,此处不再赘述。The specific judging process of the second judging unit is similar to the process of the first judging unit, which will not be repeated here.
进一步地,所述调整模块32,具体用于:Further, the adjustment module 32 is specifically used for:
若所述至少两个WIFI模块中仅第二WIFI模块处于网络连接状态,则控制所述N个天线的馈电点分别与所述第二WIFI模块的天线信号连接。If only the second WIFI module of the at least two WIFI modules is in a network connection state, the feeding points of the N antennas are controlled to be signal-connected to the antennas of the second WIFI module, respectively.
需要说明的是,前述对多WIFI模块控制方法实施例的解释说明也适用于该实施例的多WIFI模块控制装置,此处不再赘述。It should be noted that, the foregoing explanation of the embodiment of the multi-WIFI module control method is also applicable to the multi-WIFI module control device of this embodiment, and details are not repeated here.
本申请实施例的多WIFI模块控制方法,通过根据终端中至少两个WIFI模块的连接状态,调整终端中N个天线的馈电点接入的天线信号。由此,实现了终端可同时利用无线网路进行数据传输和上网,提高了终端的性能,改善了用户体验。The method for controlling multiple WIFI modules in the embodiment of the present application adjusts the antenna signals connected to the feeding points of N antennas in the terminal according to the connection status of at least two WIFI modules in the terminal. Thereby, it is realized that the terminal can use the wireless network for data transmission and Internet access at the same time, which improves the performance of the terminal and improves the user experience.
图4是本申请一个实施例的终端设备的结构示意图。例如,终端设备400可以是移动电话等。FIG. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application. For example, the terminal device 400 may be a mobile phone or the like.
参见图4,终端设备400可以包括以下一个或多个组件:电路板401、壳体402、处理器403,存储器404,电源电路405,至少两个WIFI模块406,N个天线407及无线端口408;其中,所述电路板401安置在所述壳体402围成的空间内部,所述处理器403、所述存储器404和所述至少两个WIFI模块406设置在所述电路板401上;所述电源电路405,用于Referring to FIG. 4 , the terminal device 400 may include one or more of the following components: a circuit board 401 , a housing 402 , a processor 403 , a memory 404 , a power circuit 405 , at least two WIFI modules 406 , N antennas 407 and a wireless port 408 ; wherein, the circuit board 401 is arranged inside the space enclosed by the housing 402, and the processor 403, the memory 404 and the at least two WIFI modules 406 are arranged on the circuit board 401; The power supply circuit 405 is used for
为所述移动终端的各个电路或器件供电;所述存储器404用于存储可执行程序代码;supplying power to each circuit or device of the mobile terminal; the memory 404 is used to store executable program codes;
所述处理器403通过读取所述存储器404中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:The processor 403 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 404, so as to perform the following steps:
确定终端设备中至少两个WIFI模块的连接状态;Determine the connection status of at least two WIFI modules in the terminal device;
根据所述至少两个WIFI模块的连接状态,调整所述终端设备中N个天线的馈电点接入的天线信号,其中N为大于等于2的整数。According to the connection state of the at least two WIFI modules, the antenna signals connected to the feed points of the N antennas in the terminal device are adjusted, where N is an integer greater than or equal to 2.
需要说明的是,前述对多WIFI模块控制方法实施例的解释说明也适用于该实施例的终端设备,其实现原理类似,此处不再赘述。It should be noted that the foregoing explanation of the embodiment of the method for controlling multiple WIFI modules is also applicable to the terminal device of this embodiment, and the implementation principle thereof is similar, which will not be repeated here.
本申请实施例的终端设备,通过根据终端中至少两个WIFI模块的连接状态,调整终端中N个天线的馈电点接入的天线信号。由此,实现了终端可同时利用无线网路进行数据传输和上网,提高了终端的性能,改善了用户体验。The terminal device in the embodiment of the present application adjusts the antenna signals accessed by the feeding points of the N antennas in the terminal according to the connection status of at least two WIFI modules in the terminal. Thereby, it is realized that the terminal can use the wireless network for data transmission and Internet access at the same time, which improves the performance of the terminal and improves the user experience.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构或者特点包含于本申请的至少一个实施例或示例中。In the description of this specification, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structure or feature is included in at least one embodiment or example of the present application.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any description of a process or method in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing a specified logical function or step of the process , and the scope of the preferred embodiments of the present application includes alternative implementations in which the functions may be performed out of the order shown or discussed, including performing the functions substantially concurrently or in the reverse order depending upon the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present application belong.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of this application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or a combination of the following techniques known in the art: Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, Programmable Gate Arrays (PGA), Field Programmable Gate Arrays (FPGA), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those skilled in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the program can be stored in a computer-readable storage medium. When executed, one or a combination of the steps of the method embodiment is included.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present application have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limitations to the present application. Embodiments are subject to variations, modifications, substitutions and variations.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610861146.4A CN106455132B (en) | 2016-09-28 | 2016-09-28 | Multi-WIFI module control method, device and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610861146.4A CN106455132B (en) | 2016-09-28 | 2016-09-28 | Multi-WIFI module control method, device and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106455132A CN106455132A (en) | 2017-02-22 |
CN106455132B true CN106455132B (en) | 2019-10-18 |
Family
ID=58169986
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610861146.4A Expired - Fee Related CN106455132B (en) | 2016-09-28 | 2016-09-28 | Multi-WIFI module control method, device and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106455132B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107040810A (en) * | 2017-04-25 | 2017-08-11 | 宇龙计算机通信科技(深圳)有限公司 | Multimedia projection method, terminal and display device |
CN108112052B (en) * | 2017-12-13 | 2021-09-10 | 广东美的制冷设备有限公司 | Terminal network sharing method and device, air conditioner and storage medium |
CN109947469B (en) * | 2019-03-08 | 2021-09-17 | 广州安加互联科技有限公司 | Address division method, device and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104954040A (en) * | 2015-06-10 | 2015-09-30 | 联想(北京)有限公司 | Method for determining antenna use and electronic equipment |
CN105450676A (en) * | 2014-05-30 | 2016-03-30 | 展讯通信(上海)有限公司 | Network sharing method and device, and network sharing system |
CN205142536U (en) * | 2015-08-28 | 2016-04-06 | 深圳市信锐网科技术有限公司 | Wireless access apparatus |
CN105744648A (en) * | 2016-01-30 | 2016-07-06 | 努比亚技术有限公司 | Mobile terminal and communication method |
CN105759937A (en) * | 2016-02-03 | 2016-07-13 | 努比亚技术有限公司 | Method for lowering terminal power consumption and terminal |
-
2016
- 2016-09-28 CN CN201610861146.4A patent/CN106455132B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105450676A (en) * | 2014-05-30 | 2016-03-30 | 展讯通信(上海)有限公司 | Network sharing method and device, and network sharing system |
CN104954040A (en) * | 2015-06-10 | 2015-09-30 | 联想(北京)有限公司 | Method for determining antenna use and electronic equipment |
CN205142536U (en) * | 2015-08-28 | 2016-04-06 | 深圳市信锐网科技术有限公司 | Wireless access apparatus |
CN105744648A (en) * | 2016-01-30 | 2016-07-06 | 努比亚技术有限公司 | Mobile terminal and communication method |
CN105759937A (en) * | 2016-02-03 | 2016-07-13 | 努比亚技术有限公司 | Method for lowering terminal power consumption and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106455132A (en) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102636658B1 (en) | Electronic device for requesting nssai in wireless communication network and method thereof | |
KR101940709B1 (en) | Cloud-based proximity pairing and switching for peer-to-peer devices | |
CN109890069B (en) | Network connection method, terminal, base station and computer storage medium | |
KR101697414B1 (en) | Shared network access via a peer-to-peer link | |
KR20200007754A (en) | Method edge computing service and electronic device thereof | |
CN109673001A (en) | Data transfer control method and Related product | |
CN112187435B (en) | Bandwidth part BWP activation method and related product | |
CN108243192B (en) | Method and system for identifying application access network | |
US11134435B2 (en) | Electronic device supporting multiple wireless communication protocols and method therefor | |
CN110312286B (en) | Network switching method, communication device and communication equipment | |
US11903062B2 (en) | Method for operating application requiring communication with external device, and electronic device therefor | |
CN114731515A (en) | Integrity protection of radio resource control messages | |
CN114390574B (en) | Wireless network throughput test method, device and computer readable storage medium | |
JP2020512734A (en) | Communication method and communication device | |
CN106455132B (en) | Multi-WIFI module control method, device and terminal equipment | |
JP2018500832A (en) | Control of dockee modalities in wireless docking systems | |
US20170325092A1 (en) | Discovery mechanism for service server connection | |
JP2023546564A (en) | Electronic devices that support multiple sims and how they operate | |
US12113669B1 (en) | Distributed service level enforcement in distributed system | |
CN106792434A (en) | A hotspot establishment method and terminal equipment | |
WO2023005898A1 (en) | Multi-terminal joint session management method, network side device and terminal | |
WO2021103331A1 (en) | Network resource scheduling method and device, storage medium, and mobile terminal | |
WO2021087854A1 (en) | Method and device for processing service flow | |
CN114788318B (en) | Caching configuration profiles associated with capability IDs | |
CN110166537B (en) | PDU session establishment method, network equipment and user terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191018 |
|
CF01 | Termination of patent right due to non-payment of annual fee |