CN110266361A - Antenna switching method and related products - Google Patents
Antenna switching method and related products Download PDFInfo
- Publication number
- CN110266361A CN110266361A CN201910557584.5A CN201910557584A CN110266361A CN 110266361 A CN110266361 A CN 110266361A CN 201910557584 A CN201910557584 A CN 201910557584A CN 110266361 A CN110266361 A CN 110266361A
- Authority
- CN
- China
- Prior art keywords
- diversity
- cellular
- target
- module
- communication
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/005—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission adapting radio receivers, transmitters andtransceivers for operation on two or more bands, i.e. frequency ranges
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/04—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
- H04B7/0404—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas the mobile station comprising multiple antennas, e.g. to provide uplink diversity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/04—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
- H04B7/06—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
- H04B7/0602—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/04—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
- H04B7/08—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
- H04B7/0802—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/04—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
- H04B7/08—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
- H04B7/0802—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection
- H04B7/0825—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection with main and with auxiliary or diversity antennas
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本申请涉及通信技术领域,具体涉及一种天线切换方法及相关产品。The present application relates to the field of communication technologies, and in particular, to an antenna switching method and related products.
背景技术Background technique
随着电子设备(如:手机、平板电脑等)的大量普及应用,电子设备能够支持的应用越来越多,功能越来越强大,电子设备向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。With the widespread application of electronic devices (such as mobile phones, tablet computers, etc.), electronic devices can support more and more applications, and their functions are becoming more and more powerful. Electronic devices are developing in the direction of diversification and personalization. Indispensable electronic supplies.
目前,大部分电子设备的射频前端电路都是采用蜂窝网络和短距离射频等技术,其中,短距离射频技术包括无线保真(wireless fidelity,WIFI)技术,蓝牙(bluetooth,BT)技术,全球定位系统(global positioning systems,GPS)技术,以及调频(frequencymodulation,FM)技术,但是很少采用点对点AD-HOC网络技术。其中,AD-HOC网络技术是是一种多跳的、无中心的、自组织无线网络。At present, the RF front-end circuits of most electronic devices use technologies such as cellular networks and short-range RF. Among them, short-range RF technologies include wireless fidelity (WIFI) technology, Bluetooth (Bluetooth, BT) technology, global positioning System (global positioning systems, GPS) technology, and frequency modulation (frequency modulation, FM) technology, but rarely use point-to-point AD-HOC network technology. Among them, AD-HOC network technology is a multi-hop, centerless, self-organizing wireless network.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种天线切换方法及相关产品,可根据蜂窝通信模块当前的通信频段进行天线切换,在蜂窝通信制式和AD-HOC通信制式同时使用时,根据目标对象的选择确定保证所选取的通信制式的通信质量。The embodiments of the present application provide an antenna switching method and related products, which can perform antenna switching according to the current communication frequency band of a cellular communication module. Communication quality of the selected communication system.
第一方面,本申请实施例提供了一种天线切换方法,应用于电子设备,所述电子设备包括蜂窝通信模块和AD-HOC通信模块、主集模块、分集模块、主集天线和分集天线,其中,所述蜂窝通信模块分别和所述主集模块和分集模块连接,形成蜂窝主集通路和蜂窝分集通路,所述AD-HOC通信模块与所述分集模块连接,形成AD-HOC射频通路,所述蜂窝主集通路与所述主集天线连接,所述方法包括:In a first aspect, an embodiment of the present application provides an antenna switching method, which is applied to an electronic device, where the electronic device includes a cellular communication module and an AD-HOC communication module, a main set module, a diversity module, a main set antenna and a diversity antenna, Wherein, the cellular communication module is respectively connected with the main set module and the diversity module to form a cellular main set channel and a cellular diversity channel, and the AD-HOC communication module is connected with the diversity module to form an AD-HOC radio frequency channel, The cellular master channel is connected to the master antenna, and the method includes:
获取目标对象的操作信息;Get the operation information of the target object;
根据所述操作信息确定目标网络制式,所述目标网络制式为所述蜂窝通信模块对应的蜂窝通信制式,或者,所述AD-HOC通信模块对应的AD-HOC通信制式;Determine the target network standard according to the operation information, where the target network standard is the cellular communication standard corresponding to the cellular communication module, or the AD-HOC communication standard corresponding to the AD-HOC communication module;
若所述蜂窝通信模块存在分集需求,获取所述蜂窝通信模块当前的通信频段,所述分集需求为使用所述蜂窝分集通路的需求;If the cellular communication module has a diversity requirement, obtain the current communication frequency band of the cellular communication module, where the diversity requirement is a requirement for using the cellular diversity channel;
根据所述目标网络制式和所述通信频段确定所述分集天线的待连接通路,所述待连接通路为所述蜂窝分集通路和所述AD-HOC射频通路中的一个通路;Determine the path to be connected of the diversity antenna according to the target network standard and the communication frequency band, and the path to be connected is one of the cellular diversity path and the AD-HOC radio frequency path;
将所述分集天线与所述待连接通路进行连接。Connect the diversity antenna to the to-be-connected path.
第二方面,本申请实施例提供了一种天线切换装置,应用于电子设备,所述电子设备包括蜂窝通信模块和AD-HOC通信模块、主集模块、分集模块、主集天线和分集天线,其中,所述蜂窝通信模块分别和所述主集模块和分集模块连接,形成蜂窝主集通路和蜂窝分集通路,所述AD-HOC通信模块与所述分集模块连接,形成AD-HOC射频通路,所述蜂窝主集通路与所述主集天线连接,所述天线切换装置包括:In a second aspect, an embodiment of the present application provides an antenna switching device, which is applied to an electronic device, where the electronic device includes a cellular communication module and an AD-HOC communication module, a main set module, a diversity module, a main set antenna and a diversity antenna, Wherein, the cellular communication module is respectively connected with the main set module and the diversity module to form a cellular main set channel and a cellular diversity channel, and the AD-HOC communication module is connected with the diversity module to form an AD-HOC radio frequency channel, The cellular main set path is connected to the main set antenna, and the antenna switching device includes:
获取单元,用于获取目标对象的操作信息;an acquisition unit, used to acquire the operation information of the target object;
确定单元,用于根据所述操作信息确定目标网络制式,所述目标网络制式为所述蜂窝通信模块对应的蜂窝通信制式,或者,所述AD-HOC通信模块对应的AD-HOC通信制式;a determining unit, configured to determine a target network format according to the operation information, where the target network format is a cellular communication format corresponding to the cellular communication module, or an AD-HOC communication format corresponding to the AD-HOC communication module;
所述获取单元,还用于若所述蜂窝通信模块存在分集需求,获取所述蜂窝通信模块当前的通信频段,所述分集需求为使用所述蜂窝分集通路的需求;The obtaining unit is further configured to obtain the current communication frequency band of the cellular communication module if the cellular communication module has a diversity requirement, and the diversity requirement is a requirement for using the cellular diversity channel;
所述确定单元,还用于根据所述目标网络制式和所述通信频段确定所述分集天线的待连接通路,所述待连接通路为所述蜂窝分集通路和所述AD-HOC射频通路中的一个通路;The determining unit is further configured to determine the path to be connected of the diversity antenna according to the target network standard and the communication frequency band, where the path to be connected is one of the cellular diversity path and the AD-HOC radio frequency path. a pathway;
切换单元,用于将所述分集天线与所述待连接通路进行连接。a switching unit, configured to connect the diversity antenna with the to-be-connected path.
第三方面,本申请实施例提供了一种电子设备,包括:蜂窝通信模块和AD-HOC通信模块、主集模块、分集模块、主集天线、分集天线、处理器、存储器和通信接口;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于如本申请实施例第一方面中所描述的部分或全部步骤的指令。In a third aspect, an embodiment of the present application provides an electronic device, including: a cellular communication module and an AD-HOC communication module, a main set module, a diversity module, a main set antenna, a diversity antenna, a processor, a memory, and a communication interface; and one or more programs, the one or more programs being stored in the memory and configured to be executed by the processor, the programs including Instructions for some or all of the steps.
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第一方面中所描述的部分或全部步骤的指令。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein the computer program causes a computer to execute the first aspect of the embodiment of the present application instructions for some or all of the steps described in .
第五方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the Part or all of the steps described in the first aspect of the application embodiment. The computer program product may be a software installation package.
实施本申请实施例,具有如下有益效果:Implementing the embodiments of the present application has the following beneficial effects:
可以看出,本申请实施例中所描述的天线切换方法及相关产品,应用于电子设备,获取目标对象的操作信息,根据操作信息确定目标网络制式,若蜂窝通信模块存在分集需求,获取蜂窝通信模块当前的通信频段,根据目标网络制式和通信频段确定分集天线的待连接通路,将分集天线与待连接通路进行连接,如此,可根据蜂窝通信模块当前的通信频段进行天线切换,在蜂窝通信制式和AD-HOC通信制式同时使用时,根据目标对象的选择确定保证所选取的通信制式的通信质量。It can be seen that the antenna switching method and related products described in the embodiments of the present application are applied to electronic equipment to obtain the operation information of the target object, and determine the target network standard according to the operation information. If the cellular communication module has a diversity requirement, obtain the cellular communication The current communication frequency band of the module, according to the target network standard and communication frequency band, determine the channel to be connected of the diversity antenna, and connect the diversity antenna to the channel to be connected. In this way, the antenna can be switched according to the current communication frequency band of the cellular communication module. When used with the AD-HOC communication standard at the same time, the communication quality of the selected communication standard is guaranteed according to the selection of the target object.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1A是本申请实施例提供的一种电子设备的结构示意图;FIG. 1A is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图1B是本申请实施例提供的一种天线切换方法的流程示意图;FIG. 1B is a schematic flowchart of an antenna switching method provided by an embodiment of the present application;
图2是本申请实施例提供的另一种天线切换方法的流程示意图;FIG. 2 is a schematic flowchart of another antenna switching method provided by an embodiment of the present application;
图3是本申请实施例提供的另一种天线切换方法的流程示意图;3 is a schematic flowchart of another antenna switching method provided by an embodiment of the present application;
图4是本申请实施例提供的另一种电子设备的结构示意图;4 is a schematic structural diagram of another electronic device provided by an embodiment of the present application;
图5是本申请实施例提供的一种天线切换装置的结构示意图;FIG. 5 is a schematic structural diagram of an antenna switching apparatus provided by an embodiment of the present application;
图6是本申请实施例提供的电子设备的另一种结构示意图。FIG. 6 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本申请实施例所涉及到的电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(user equipment,UE),移动台(mobile station,MS),终端设备(terminaldevice)等等。为方便描述,上面提到的设备统称为电子设备。The electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to wireless modems, as well as various forms of user equipment (user equipment). equipment, UE), a mobile station (mobile station, MS), a terminal device (terminal device) and so on. For convenience of description, the devices mentioned above are collectively referred to as electronic devices.
本申请实施例中,AD-HOC网是一种多跳的、无中心的、自组织无线网络,又称为多跳网(Multi-hop Network)、无基础设施网(Infrastructureless Network)或自组织网(Self-organizing Network)。电子设备的射频前端电路可采用AD-HOC网技术,实现较好的通信效果。In the embodiment of the present application, the AD-HOC network is a multi-hop, centerless, self-organizing wireless network, also called a multi-hop network (Multi-hop Network), an infrastructureless network (Infrastructureless Network) or a self-organizing network. Network (Self-organizing Network). The RF front-end circuit of electronic equipment can adopt AD-HOC network technology to achieve better communication effect.
下面对本申请实施例进行详细介绍。The embodiments of the present application will be described in detail below.
请参阅图1A,图1A是本申请实施例提供的一种电子设备100的结构示意图,上述电子设备100包括:处理器110、存储器120、AD-HOC通信模块130、蜂窝通信模块140、主集模块150、分集模块160、主集天线170和分集天线180,其中,所述蜂窝通信模块140分别和所述主集模块150和分集模块160连接,形成蜂窝主集通路和蜂窝分集通路,所述AD-HOC通信模块130与所述分集模块160连接,形成AD-HOC射频通路,所述蜂窝主集通路与所述主集天线连接。Please refer to FIG. 1A. FIG. 1A is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application. The electronic device 100 includes: a processor 110, a memory 120, an AD-HOC communication module 130, a cellular communication module 140, a main set module 150, diversity module 160, main set antenna 170 and diversity antenna 180, wherein the cellular communication module 140 is connected to the main set module 150 and the diversity module 160, respectively, to form a cellular main set channel and a cellular diversity channel. The AD-HOC communication module 130 is connected to the diversity module 160 to form an AD-HOC radio frequency channel, and the cellular main channel is connected to the main antenna.
其中,存储器120与处理器110之间进行连接,蜂窝通信模块140包括蜂窝通信收发器和蜂窝调制解调器,蜂窝调制解调器与处理器110连接,蜂窝通信收发器与分集模块连接。The memory 120 is connected to the processor 110, the cellular communication module 140 includes a cellular communication transceiver and a cellular modem, the cellular modem is connected to the processor 110, and the cellular communication transceiver is connected to the diversity module.
请参阅图1B,图1B是本申请实施例提供的一种天线切换方法的流程示意图,本实施例中所描述的天线切换方法,应用于如图1A所示的电子设备,所述电子设备包括蜂窝通信模块和AD-HOC通信模块、主集模块、分集模块、主集天线和分集天线,其中,所述蜂窝通信模块分别和所述主集模块和分集模块连接,形成蜂窝主集通路和蜂窝分集通路,所述AD-HOC通信模块与所述分集模块连接,形成AD-HOC射频通路,所述蜂窝主集通路与所述主集天线连接,该天线切换方法包括:Please refer to FIG. 1B . FIG. 1B is a schematic flowchart of an antenna switching method provided by an embodiment of the present application. The antenna switching method described in this embodiment is applied to the electronic device shown in FIG. 1A , and the electronic device includes The cellular communication module and the AD-HOC communication module, the main set module, the diversity module, the main set antenna and the diversity antenna, wherein the cellular communication module is respectively connected with the main set module and the diversity module to form a cellular main set channel and a cellular Diversity channel, the AD-HOC communication module is connected with the diversity module to form an AD-HOC radio frequency channel, the cellular main channel is connected with the main antenna, and the antenna switching method includes:
101、获取目标对象的操作信息。101. Obtain operation information of the target object.
其中,目标对象是指操作电子设备的用户。The target object refers to the user who operates the electronic device.
本申请实施例中,可获取目标对象操作电子设备的操作信息。其中,操作信息可以是目标对象开启的目标应用,还可以是目标对象从蜂窝通信制式和AD-HOC通信制式之中选择一个通信制式的信息。In this embodiment of the present application, the operation information of the target object operating the electronic device may be obtained. The operation information may be the target application opened by the target object, or may be information that the target object selects a communication standard from the cellular communication standard and the AD-HOC communication standard.
可选地,上述步骤101中,获取目标对象的操作信息,可包括以下步骤:Optionally, in the above step 101, obtaining the operation information of the target object may include the following steps:
获取所述目标对象开启的目标应用;或者,接收所述目标对象的选择操作指令,所述选择操作指令包含所述目标对象从所述蜂窝通信制式和所述AD-HOC通信制式之中选择一个通信制式的操作信息。Obtain the target application opened by the target object; or, receive a selection operation instruction of the target object, where the selection operation instruction includes that the target object selects one of the cellular communication standard and the AD-HOC communication standard Information about the operation of the communication system.
其中,目标对象使用电子设备时,可开启想要使用的目标应用,从而,电子设备可获取目标对象开启的目标应用。Wherein, when the target object uses the electronic device, the target application to be used can be opened, so that the electronic device can obtain the target application opened by the target object.
其中,目标对象还可以通过设置网络通信功能的方式,从蜂窝通信制式和AD-HOC通信制式之中选择一个通信制式,从而,电子设备可接收所述目标对象的选择操作指令,根据选择操作指令确定目标对象想要使用蜂窝通信制式和AD-HOC通信制式之中哪一通信制式。The target object can also select a communication standard from the cellular communication standard and the AD-HOC communication standard by setting the network communication function, so that the electronic device can receive the selection operation instruction of the target object, according to the selection operation command Determine which communication standard the target object wants to use among the cellular communication standard and the AD-HOC communication standard.
可选地,本申请实施例中,还可在所述蜂窝通信模块的通信频段处于预设范围时,发出提示信息,所述提示信息用于提示目标对象选择所述蜂窝通信制式或者所述AD-HOC通信制式作为所述目标通信制式。Optionally, in this embodiment of the present application, when the communication frequency band of the cellular communication module is within a preset range, prompt information may be sent, where the prompt information is used to prompt the target object to select the cellular communication system or the AD. - The HOC communication system is used as the target communication system.
其中,目标对象使用电子设备时,可获取蜂窝通信模块的通信频段,若该通信频段处于预设范围,例如,通信频段小于1Ghz,可向目标对象提示当前蜂窝通信模块的通信频段小于1Ghz,从而,目标对象可基于该通信频段判断蜂窝通信制式和AD-HOC通信制式之中选择哪一通信制式作为目标通信制式。Wherein, when the target object uses an electronic device, the communication frequency band of the cellular communication module can be obtained. If the communication frequency band is within a preset range, for example, the communication frequency band is less than 1Ghz, the target object can be prompted that the communication frequency band of the current cellular communication module is less than 1Ghz, thereby , the target object can determine which communication standard is selected as the target communication standard among the cellular communication standard and the AD-HOC communication standard based on the communication frequency band.
102、根据所述操作信息确定目标网络制式,所述目标网络制式为所述蜂窝通信模块对应的蜂窝通信制式,或者,所述AD-HOC通信模块对应的AD-HOC通信制式。102. Determine a target network standard according to the operation information, where the target network standard is a cellular communication standard corresponding to the cellular communication module, or an AD-HOC communication standard corresponding to the AD-HOC communication module.
本申请实施例中,电子设备包括蜂窝通信模块和AD-HOC通信模块,电子设备可使用蜂窝通信模块对应的蜂窝通信制式,以及,AD-HOC通信模块对应的AD-HOC通信制式。因此,电子设备可根据目标对象的操作信息确定蜂窝通信制式和所述AD-HOC通信制式之中的一个通信制式为目标通信制式,得到至少一个目标通信制式。In the embodiment of the present application, the electronic device includes a cellular communication module and an AD-HOC communication module, and the electronic device can use the cellular communication standard corresponding to the cellular communication module and the AD-HOC communication standard corresponding to the AD-HOC communication module. Therefore, the electronic device can determine one of the cellular communication standard and the AD-HOC communication standard as the target communication standard according to the operation information of the target object, and obtain at least one target communication standard.
可选地,在获取所述目标对象开启的目标应用之后,上述步骤102中,根据所述操作信息确定目标网络制式,可包括以下步骤:Optionally, after acquiring the target application opened by the target object, in the above step 102, determining the target network standard according to the operation information may include the following steps:
21、若所述目标应用属于预设的第一应用列表,将所述蜂窝通信制式作为所述目标通信制式;21. If the target application belongs to a preset first application list, use the cellular communication standard as the target communication standard;
22、若所述目标应用属于预设的第二应用列表,将所述AD-HOC通信制式作为所述目标通信制式。22. If the target application belongs to a preset second application list, use the AD-HOC communication standard as the target communication standard.
其中,本申请实施例中,可预先设定蜂窝通信制式对应的第一应用列表,以及,AD-HOC通信制式对应的第二应用列表,从而,可在确定电子设备前台运行的目标应用后,判定目标应用属于第一应用列表还是第二应用列表。若目标应用属于预设的第一应用列表,将蜂窝通信制式作为目标通信制式,例如,目标应用为浏览器应用时,且浏览器应用属于第一应用列表,表明适用蜂窝通信制式的数据传输速率更快,可将蜂窝通信制式作为目标通信制式。若目标应用属于预设的第二应用列表,将AD-HOC通信制式作为目标通信制式,第二应用列表中可设定多个在AD-HOC通信制式下数据传输速率更快的多个应用,从而,将AD-HOC通信制式作为目标通信制式,可使目标应用实现更好的通信性能。Among them, in the embodiment of the present application, the first application list corresponding to the cellular communication standard and the second application list corresponding to the AD-HOC communication standard can be preset, so that after determining the target application running in the foreground of the electronic device, It is determined whether the target application belongs to the first application list or the second application list. If the target application belongs to the preset first application list, the cellular communication standard is used as the target communication standard. For example, when the target application is a browser application and the browser application belongs to the first application list, it indicates that the data transmission rate of the cellular communication standard is applicable. Faster, the cellular communication standard can be used as the target communication standard. If the target application belongs to the preset second application list, the AD-HOC communication standard is used as the target communication standard, and multiple applications with faster data transmission rates under the AD-HOC communication standard can be set in the second application list. Therefore, using the AD-HOC communication standard as the target communication standard enables the target application to achieve better communication performance.
可选地,在接收所述目标对象的选择操作指令之后,上述步骤102中,根据所述操作信息确定目标网络制式,可包括以下步骤:Optionally, after receiving the selection operation instruction of the target object, in the above step 102, determining the target network standard according to the operation information may include the following steps:
将所述选择操作指令所选择的一个通信制式作为所述目标通信制式。One communication standard selected by the selection operation instruction is used as the target communication standard.
其中,可通过目标对象直接进行选择的选择操作指令确定目标对象想要使用蜂窝通信制式和AD-HOC通信制式之中哪一通信制式作为目标网络制式。Wherein, the selection operation instruction that the target object directly selects can be used to determine which communication standard among the cellular communication standard and the AD-HOC communication standard the target object wants to use as the target network standard.
103、若所述蜂窝通信模块存在分集需求,获取所述蜂窝通信模块当前的通信频段,所述分集需求为使用所述蜂窝分集通路的需求。103. If the cellular communication module has a diversity requirement, obtain a current communication frequency band of the cellular communication module, where the diversity requirement is a requirement for using the cellular diversity channel.
其中,分集需求可包括以下至少一种:上网、接收来电、通话呼叫、搜索网络等等。Wherein, the diversity requirement may include at least one of the following: surfing the Internet, receiving an incoming call, making a call, searching the network, and so on.
本申请实施例中,在电子设备需要进行上网、接收来电、进行通话呼叫等操作时,表明蜂窝通信模块存在分集需求,即,需要通过蜂窝通信模块的分集模块的通信功能,进而,可获取蜂窝通信模块当前的通信频段。In the embodiment of the present application, when the electronic device needs to perform operations such as surfing the Internet, receiving an incoming call, and making a call, it indicates that the cellular communication module has a diversity requirement, that is, the communication function of the diversity module of the cellular communication module needs to be used, and then the cellular communication module can be obtained. The current communication frequency band of the communication module.
可选地,本申请实施例中,还可包括以下步骤:Optionally, in this embodiment of the present application, the following steps may also be included:
A1、获取目标操作请求,所述目标操作请求为接收到由基站发送的请求,或者,由触控指令触发的;A1. Obtain a target operation request, where the target operation request is a request sent by a base station received, or triggered by a touch command;
A2、若所述目标操作请求存在于所述蜂窝通信模块对应的预设请求列表中,确定所述蜂窝通信模块存在所述分集需求。A2. If the target operation request exists in the preset request list corresponding to the cellular communication module, determine that the cellular communication module has the diversity requirement.
其中,上述目标操作请求可包括以下至少一种:基站发送的来电请求,基站发送的数据传输请求、用户通过电子设备触发的通话呼叫请求、视频聊天请求、用户通过电子设备触发的上网请求、搜网请求等等。The above-mentioned target operation request may include at least one of the following: an incoming call request sent by the base station, a data transmission request sent by the base station, a call call request triggered by a user through an electronic device, a video chat request, an Internet access request triggered by the user through an electronic device, a search request web requests, etc.
本申请实施例中,可以创建一个预设请求列表,与预设请求列表包括多个预设请求,若目标操作请求与预设请求列表中的任一预设请求一致,可确定目标操作请求存在于预设请求列表中,进而,可确定蜂窝通信模块存在分集需求。In this embodiment of the present application, a preset request list may be created, and the preset request list includes multiple preset requests. If the target operation request is consistent with any preset request in the preset request list, it can be determined that the target operation request exists In the preset request list, further, it can be determined that the cellular communication module has a diversity requirement.
104、根据所述目标网络制式和所述通信频段确定所述分集天线的待连接通路,所述待连接通路为所述蜂窝分集通路和所述AD-HOC射频通路中的一个通路。104. Determine a path to be connected to the diversity antenna according to the target network standard and the communication frequency band, where the path to be connected is one of the cellular diversity path and the AD-HOC radio frequency path.
本申请实施例中,根据图1A可以看出,AD-HOC射频通路与蜂窝分集通路共享分集天线,因此,可根据目标网络制式和通信频段确定将分集天线连接至蜂窝分集通路还是AD-HOC射频通路,如此,不需要为AD-HOC射频通路新增单独的天线。In the embodiment of the present application, it can be seen from FIG. 1A that the AD-HOC radio frequency channel and the cellular diversity channel share the diversity antenna. Therefore, it can be determined whether the diversity antenna is connected to the cellular diversity channel or the AD-HOC radio frequency according to the target network standard and communication frequency band. Paths, thus, do not need to add a separate antenna for the AD-HOC RF path.
可选地,上述步骤104中,根据所述目标网络制式和所述通信频段确定所述分集天线的待连接通路,可包括以下步骤:Optionally, in the above step 104, determining the to-be-connected path of the diversity antenna according to the target network standard and the communication frequency band may include the following steps:
41、在所述通信频段处于预设范围,且所述目标网络制式为所述蜂窝通信制式时,将所述蜂窝分集通路确定为所述待连接通路;41. When the communication frequency band is in a preset range and the target network standard is the cellular communication standard, determine the cellular diversity channel as the to-be-connected channel;
42、在所述通信频段处于预设范围,且所述目标网络制式为所述AD-HOC通信制式时,将所述AD-HOC射频通路确定所述待连接通路。42. When the communication frequency band is within a preset range and the target network standard is the AD-HOC communication standard, determine the to-be-connected channel from the AD-HOC radio frequency channel.
其中,上述预设阈值例如可以是1GHz,在通信频段处于预设范围时,例如,蜂窝通信模块的通信频段在1GHz以下,表明蜂窝通信模块通信频段较低,若此时根据操作信息确定的目标通信制式为蜂窝通信制式,可将蜂窝分集通路确定为待连接通路,如此,可在蜂窝通信制式和AD-HOC通信制式同时使用时,优先保证蜂窝通信制式的通信质量。在通信频段处于预设范围,且目标网络制式为AD-HOC通信制式时,可将AD-HOC射频通路确定为待连接通路,如此,可在蜂窝通信制式和AD-HOC通信制式同时使用时,优先保证AD-HOC通信制式的通信质量。The preset threshold may be, for example, 1 GHz. When the communication frequency band is within the preset range, for example, the communication frequency band of the cellular communication module is below 1 GHz, indicating that the communication frequency band of the cellular communication module is relatively low. The communication system is the cellular communication system, and the cellular diversity channel can be determined as the channel to be connected. In this way, when the cellular communication system and the AD-HOC communication system are used at the same time, the communication quality of the cellular communication system can be prioritized. When the communication frequency band is in the preset range and the target network standard is AD-HOC communication standard, the AD-HOC radio frequency channel can be determined as the channel to be connected. In this way, when the cellular communication standard and AD-HOC communication standard are used simultaneously, Priority is given to ensuring the communication quality of the AD-HOC communication standard.
105、将分集天线与所述待连接通路进行连接。105. Connect the diversity antenna to the to-be-connected path.
本申请实施例中,将分集天线与待连接通路进行连接,具体地,可通过分集模块将分集天线与待连接通路进行连接,当待连接通路为蜂窝分集通路时,可将分集天线与蜂窝分集通路进行连接;当待连接通路为AD-HOC射频通路时,可将分集天线与AD-HOC射频通路进行连接。如此,可使AD-HOC射频通路与蜂窝分集通路共享一根天线,并根据通信频段灵活控制AD-HOC射频通路与蜂窝射频分集与分集天线的连接,使电子设备实现更好的通信质量。In this embodiment of the present application, the diversity antenna is connected to the path to be connected. Specifically, the diversity antenna can be connected to the path to be connected through a diversity module. When the path to be connected is a cellular diversity path, the diversity antenna can be connected to the cellular diversity path. The channel is connected; when the channel to be connected is the AD-HOC radio frequency channel, the diversity antenna can be connected with the AD-HOC radio frequency channel. In this way, the AD-HOC RF channel and the cellular diversity channel can share an antenna, and the connection between the AD-HOC RF channel and the cellular RF diversity and diversity antenna can be flexibly controlled according to the communication frequency band, so that the electronic equipment can achieve better communication quality.
可选地,本申请实施例中,还可包括以下步骤:Optionally, in this embodiment of the present application, the following steps may also be included:
若所述蜂窝通信模块不存在所述分集需求,或者,若所述通信频段不处于所述预设范围,将所述分集天线与所述AD-HOC射频通路连接。If the cellular communication module does not have the diversity requirement, or if the communication frequency band is not within the preset range, connect the diversity antenna to the AD-HOC radio frequency channel.
本申请实施例中,若蜂窝通信模块不存在分集需求,或者,若蜂窝通信模块的通信频段不处于预设范围,则可将分集天线与AD-HOC射频通路连接,使蜂窝射频主集通路与AD-HOC射频通路同时工作,从而,可使电子设备同时使用两种通信模块。In the embodiment of the present application, if the cellular communication module does not have a diversity requirement, or if the communication frequency band of the cellular communication module is not within the preset range, the diversity antenna can be connected to the AD-HOC radio frequency channel, so that the cellular radio frequency main channel and the AD-HOC radio frequency channel can be connected. The AD-HOC radio frequency channel works simultaneously, so that the electronic equipment can use two communication modules at the same time.
可选地,本申请实施例中,在获取目标对象的操作信息之前,所述方法还可包括以下步骤:Optionally, in this embodiment of the present application, before acquiring the operation information of the target object, the method may further include the following steps:
B1、获取所述目标对象的人脸图像;B1, obtain the face image of the target object;
B2、将所述人脸图像与预设的人脸图像模板进行人脸匹配,得到匹配结果;B2, carrying out face matching between the face image and the preset face image template to obtain a matching result;
B3、若所述人脸图像匹配成功,执行所述获取目标对象的操作信息的操作。B3. If the face image is successfully matched, execute the operation of acquiring the operation information of the target object.
其中,上述目标对象为电子设备所属的用户。具体实现中,在智能家居场景下,当目标对象通过电子设备控制智能家电设备时,电子设备可获取目标对象的操作信息,然后根据操作信息确定目标对象想要使用的目标网络制式,本申请实施例中,为了提高网络选择的安全性,可对目标对象进行人脸识别,因此,可获取目标对象的人脸图像,将人脸图像与预设的人脸图像模板进行人脸匹配,从而,可在目标对象的人脸识别成功时,才获取目标对象的操作信息,进而,提高天线切换的安全性。Wherein, the above-mentioned target object is a user to which the electronic device belongs. In the specific implementation, in the smart home scenario, when the target object controls the smart home appliances through the electronic device, the electronic device can obtain the operation information of the target object, and then determine the target network standard that the target object wants to use according to the operation information. In an example, in order to improve the security of network selection, face recognition can be performed on the target object. Therefore, the face image of the target object can be obtained, and the face image can be matched with a preset face image template, thereby, The operation information of the target object can be obtained only when the face recognition of the target object is successful, thereby improving the security of antenna switching.
可选地,上述步骤B2中,将所述人脸图像与预设的人脸图像模板进行人脸匹配,可包括以下步骤:Optionally, in the above step B2, performing face matching between the face image and a preset face image template may include the following steps:
C1、分析所述人脸图像的人脸特征点分布;C1, analyze the face feature point distribution of the face image;
C2、按照M个不同圆心对所述人脸图像进行圆形区域图像截取,得到M个圆形区域图像,所述M为大于3的整数;C2, according to M different circle centers, carry out circular area image interception to described face image, obtain M circular area images, and described M is an integer greater than 3;
C3、将所述M个圆形区域图像中每一圆形区域图像划分得到N个圆环,所述N个圆环的环宽相同;C3, dividing each circular area image in the M circular area images to obtain N rings, and the ring widths of the N rings are the same;
C4、从所述N个圆环中半径最小的圆环开始,将所述M个圆形区域图像中每一圆形区域图像中的N个圆环依次与对应的预设人脸区域图像模板进行特征点匹配,并累计已匹配圆环的匹配值;C4. Starting from the ring with the smallest radius among the N rings, connect the N rings in each of the M circular area images to the corresponding preset face area image template in turn Perform feature point matching and accumulate matching values of matched rings;
C5、当所述M个圆形区域图像中每一圆形区域图像累计的匹配值大于预设匹配阈值时立即停止对应圆形区域图像的特征点匹配,当所述M个圆形区域图像对应的M个匹配值均大于预设匹配阈值时,确定所述人脸匹配成功。C5. When the accumulated matching value of each circular area image in the M circular area images is greater than the preset matching threshold, immediately stop the feature point matching of the corresponding circular area image. When the M circular area images correspond to When all of the M matching values are greater than the preset matching threshold, it is determined that the face matching is successful.
其中,可对人脸图像进行人脸特征提取,得到人脸特征点集,并分析所述人脸图像的特征点分布;然后按照M个不同圆心对人脸图像进行圆形图像截取,得到M个圆形区域图像,其中,M个圆形区域图像中每一圆形区域图像中包含的特征点数量大于预设数量;然后,可将每一目标圆形区域图像划分得到N个圆环,N个圆环的环宽相同,N为大于2的整数;针对每一目标圆形区域图像,可从N个圆环中半径最小的圆环开始,将N个圆环依次与对应的预设人脸区域图像模板进行特征点匹配,具体地,可从目标圆形区域图像的圆心开始,依次从圆心向外部对N个圆环进行匹配,并累计已匹配圆环的匹配值,当累计的匹配值大于预设匹配阈值时立即停止进行对应目标圆形区域图像的特征点匹配;当M个圆形区域图像对应的M个匹配值均大于预设匹配阈值时,可确定人脸匹配成功。如此,通过将人脸图像按照特征点分布划分为M个圆形区域图像,并针对每一圆形区域图像依次对N个圆环区域进行匹配,可根据圆环中的已匹配圆环的匹配结果,灵活控制后续的匹配操作,当前面匹配的圆环区域的匹配值越高,N个圆环中被匹配的圆环数量越少,无需对人脸图像中特征点较少的区域进行匹配,可仅对特征点较为集中的区域分别进行匹配,此外,针对每一圆形区域图像,仅对部分圆形区域进行匹配,可减少特征匹配的区域,提高人脸识别的速率。Among them, face feature extraction can be performed on the face image to obtain a face feature point set, and the distribution of the feature points of the face image can be analyzed; then the face image is intercepted according to M different circle centers, and M circular area images, wherein the number of feature points contained in each circular area image in the M circular area images is greater than the preset number; then, each target circular area image can be divided to obtain N rings, The ring widths of the N rings are the same, and N is an integer greater than 2; for each target circular area image, start from the ring with the smallest radius among the N rings, and sequentially match the N rings to the corresponding preset The face area image template performs feature point matching. Specifically, it can start from the center of the target circular area image, and then match N rings from the center to the outside in turn, and accumulate the matching values of the matched rings. When the matching value is greater than the preset matching threshold, the feature point matching corresponding to the target circular area image is stopped immediately; when the M matching values corresponding to the M circular area images are all greater than the preset matching threshold, it can be determined that the face matching is successful. In this way, by dividing the face image into M circular area images according to the distribution of feature points, and sequentially matching N circular area images for each circular area image, the matching of the matched circular rings in the circular area can be performed according to As a result, the subsequent matching operations are flexibly controlled. The higher the matching value of the ring area matched by the current face, the less the number of matched rings in the N rings, and there is no need to match the area with fewer feature points in the face image. , which can only match the areas with relatively concentrated feature points. In addition, for each circular area image, only part of the circular area is matched, which can reduce the area of feature matching and improve the speed of face recognition.
可以看出,本申请实施例中所描述的天线切换方法,应用于电子设备,获取目标对象的操作信息,根据操作信息确定目标网络制式,若蜂窝通信模块存在分集需求,获取蜂窝通信模块当前的通信频段,根据目标网络制式和通信频段确定分集天线的待连接通路,将分集天线与待连接通路进行连接,如此,可根据蜂窝通信模块当前的通信频段进行天线切换,在蜂窝通信制式和AD-HOC通信制式同时使用时,根据目标对象的选择确定保证所选取的通信制式的通信质量。It can be seen that the antenna switching method described in the embodiment of the present application is applied to electronic equipment, obtains operation information of the target object, and determines the target network standard according to the operation information. In the communication frequency band, the channel to be connected for the diversity antenna is determined according to the target network standard and communication frequency band, and the diversity antenna is connected to the channel to be connected. In this way, the antenna switching can be performed according to the current communication frequency band of the cellular communication module. When the HOC communication standard is used at the same time, the communication quality of the selected communication standard is guaranteed according to the selection of the target object.
请参阅图2,图2是本申请实施例提供的另一种天线切换方法的流程示意图,本实施例中所描述的天线切换方法,应用于如图1A所示的电子设备,所述电子设备包括蜂窝通信模块和AD-HOC通信模块、主集模块、分集模块、主集天线和分集天线,其中,所述蜂窝通信模块分别和所述主集模块和分集模块连接,形成蜂窝主集通路和蜂窝分集通路,所述AD-HOC通信模块与所述分集模块连接,形成AD-HOC射频通路,所述蜂窝主集通路与所述主集天线连接,该方法可包括以下步骤:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of another antenna switching method provided by an embodiment of the present application. The antenna switching method described in this embodiment is applied to the electronic device shown in FIG. 1A. The electronic device It includes a cellular communication module and an AD-HOC communication module, a main set module, a diversity module, a main set antenna and a diversity antenna, wherein the cellular communication module is respectively connected with the main set module and the diversity module to form a cellular main set path and A cellular diversity channel, the AD-HOC communication module is connected to the diversity module to form an AD-HOC radio frequency channel, and the cellular main channel is connected to the main antenna, and the method may include the following steps:
201、获取目标对象的操作信息。201. Obtain operation information of the target object.
202、根据所述操作信息确定目标网络制式,所述目标网络制式为所述蜂窝通信模块对应的蜂窝通信制式,或者,所述AD-HOC通信模块对应的AD-HOC通信制式。202. Determine a target network standard according to the operation information, where the target network standard is a cellular communication standard corresponding to the cellular communication module, or an AD-HOC communication standard corresponding to the AD-HOC communication module.
203、若所述蜂窝通信模块存在分集需求,获取所述蜂窝通信模块当前的通信频段,所述分集需求为使用所述蜂窝分集通路的需求。203. If the cellular communication module has a diversity requirement, obtain a current communication frequency band of the cellular communication module, where the diversity requirement is a requirement for using the cellular diversity channel.
204、在所述通信频段处于预设范围,且所述目标网络制式为所述蜂窝通信制式时,将所述蜂窝分集通路确定为所述待连接通路。204. When the communication frequency band is within a preset range and the target network standard is the cellular communication standard, determine the cellular diversity channel as the to-be-connected channel.
205、在所述通信频段处于预设范围,且所述目标网络制式为所述AD-HOC通信制式时,将所述AD-HOC射频通路确定所述待连接通路。205. When the communication frequency band is within a preset range and the target network standard is the AD-HOC communication standard, determine the to-be-connected channel from the AD-HOC radio frequency channel.
206、将所述分集天线与所述待连接通路进行连接。206. Connect the diversity antenna to the to-be-connected path.
207、若所述蜂窝通信模块不存在所述分集需求,或者,若所述通信频段不处于所述预设范围,将所述分集天线与所述AD-HOC射频通路连接。207. If the cellular communication module does not have the diversity requirement, or if the communication frequency band is not within the preset range, connect the diversity antenna to the AD-HOC radio frequency channel.
其中,上述步骤201-207的具体实现过程可参照步骤101-105中相应的描述,在此不再赘述。For the specific implementation process of the above steps 201-207, reference may be made to the corresponding descriptions in the steps 101-105, which will not be repeated here.
可以看出,本申请实施例中所描述的天线切换方法,应用于电子设备,获取目标对象的操作信息,根据操作信息确定目标网络制式,若蜂窝通信模块存在分集需求,获取蜂窝通信模块当前的通信频段,根据目标网络制式和通信频段确定分集天线的待连接通路,将分集天线与待连接通路进行连接,如此,可根据蜂窝通信模块当前的通信频段进行天线切换,在蜂窝通信制式和AD-HOC通信制式同时使用时,根据目标对象的操作信息确定保证所选取的通信制式的通信质量。It can be seen that the antenna switching method described in the embodiment of the present application is applied to electronic equipment, obtains operation information of the target object, and determines the target network standard according to the operation information. In the communication frequency band, the channel to be connected for the diversity antenna is determined according to the target network standard and communication frequency band, and the diversity antenna is connected to the channel to be connected. In this way, the antenna switching can be performed according to the current communication frequency band of the cellular communication module. When the HOC communication standard is used at the same time, the communication quality of the selected communication standard is determined and guaranteed according to the operation information of the target object.
与上述一致地,请参阅图3,为本申请实施例提供的另一种天线切换方法的流程示意图,本实施例中所描述的天线切换方法,应用于如图1A所示的电子设备,所述电子设备包括蜂窝通信模块和AD-HOC通信模块、主集模块、分集模块、主集天线和分集天线,其中,所述蜂窝通信模块分别和所述主集模块和分集模块连接,形成蜂窝主集通路和蜂窝分集通路,所述AD-HOC通信模块与所述分集模块连接,形成AD-HOC射频通路,所述蜂窝主集通路与所述主集天线连接,该方法可包括以下步骤:Consistent with the above, please refer to FIG. 3 , which is a schematic flowchart of another antenna switching method provided by an embodiment of the present application. The antenna switching method described in this embodiment is applied to the electronic device shown in FIG. 1A . The electronic equipment includes a cellular communication module and an AD-HOC communication module, a main set module, a diversity module, a main set antenna and a diversity antenna, wherein the cellular communication module is respectively connected with the main set module and the diversity module to form a cellular main set module. A collection path and a cellular diversity path, the AD-HOC communication module is connected with the diversity module to form an AD-HOC radio frequency path, and the cellular main collection path is connected with the main collection antenna, and the method may include the following steps:
301、获取所述目标对象开启的目标应用。301. Acquire a target application opened by the target object.
302、若所述目标应用属于预设的第一应用列表,将蜂窝通信制式作为目标通信制式;若所述目标应用属于预设的第二应用列表,将AD-HOC通信制式作为所述目标通信制式。302. If the target application belongs to the preset first application list, use the cellular communication system as the target communication system; if the target application belongs to the preset second application list, use the AD-HOC communication system as the target communication system standard.
303、若所述蜂窝通信模块存在分集需求,获取所述蜂窝通信模块当前的通信频段,所述分集需求为使用所述蜂窝分集通路的需求。303. If the cellular communication module has a diversity requirement, obtain a current communication frequency band of the cellular communication module, where the diversity requirement is a requirement for using the cellular diversity channel.
304、在所述通信频段处于预设范围,且所述目标网络制式为所述蜂窝通信制式时,将所述蜂窝分集通路确定为所述待连接通路。304. When the communication frequency band is within a preset range and the target network standard is the cellular communication standard, determine the cellular diversity channel as the to-be-connected channel.
305、在所述通信频段处于预设范围,且所述目标网络制式为所述AD-HOC通信制式时,将所述AD-HOC射频通路确定所述待连接通路。305. When the communication frequency band is within a preset range and the target network standard is the AD-HOC communication standard, determine the to-be-connected channel from the AD-HOC radio frequency channel.
306、将所述分集天线与所述待连接通路进行连接。306. Connect the diversity antenna to the to-be-connected path.
307、若所述蜂窝通信模块不存在所述分集需求,或者,若所述通信频段不处于所述预设范围,将所述分集天线与所述AD-HOC射频通路连接。307. If the cellular communication module does not have the diversity requirement, or if the communication frequency band is not within the preset range, connect the diversity antenna to the AD-HOC radio frequency path.
其中,步骤301-307的具体实现过程可参见步骤101-105中相应的描述,在此不再赘述。For the specific implementation process of steps 301-307, reference may be made to the corresponding descriptions in steps 101-105, which will not be repeated here.
可以看出,本申请实施例中所描述的天线切换方法,应用于电子设备,获取目标对象的操作信息,根据操作信息确定目标网络制式,若蜂窝通信模块存在分集需求,获取蜂窝通信模块当前的通信频段,根据目标网络制式和通信频段确定分集天线的待连接通路,将分集天线与待连接通路进行连接,如此,可根据蜂窝通信模块当前的通信频段进行天线切换,在蜂窝通信制式和AD-HOC通信制式同时使用时,根据目标对象的开启的目标应用确定保证所选取的通信制式的通信质量。It can be seen that the antenna switching method described in the embodiment of the present application is applied to electronic equipment, obtains operation information of the target object, and determines the target network standard according to the operation information. In the communication frequency band, the channel to be connected for the diversity antenna is determined according to the target network standard and communication frequency band, and the diversity antenna is connected to the channel to be connected. In this way, the antenna switching can be performed according to the current communication frequency band of the cellular communication module. When the HOC communication standard is used at the same time, the communication quality of the selected communication standard is guaranteed according to the target application opened by the target object.
以下是实施上述天线切换方法的装置,具体如下:The following is a device for implementing the above antenna switching method, and the details are as follows:
与上述一致地,请参阅图4,图4是本申请实施例提供的一种电子设备的结构示意图,该电子设备包括:处理器410、AD-HOC通信模块430、蜂窝通信模块440、主集模块450、分集模块460、主集天线470、分集天线480、通信接口490和存储器420;以及一个或多个程序,所述一个或多个程序421被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序421包括用于执行以下步骤的指令:Consistent with the above, please refer to FIG. 4. FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device includes: a processor 410, an AD-HOC communication module 430, a cellular communication module 440, a main set module 450, diversity module 460, main antenna 470, diversity antenna 480, communication interface 490, and memory 420; and one or more programs, the one or more programs 421 being stored in the memory and configured to Executed by the processor, the program 421 includes instructions for performing the following steps:
获取目标对象的操作信息;Get the operation information of the target object;
根据所述操作信息确定目标网络制式,所述目标网络制式为所述蜂窝通信模块对应的蜂窝通信制式,或者,所述AD-HOC通信模块对应的AD-HOC通信制式;Determine the target network standard according to the operation information, where the target network standard is the cellular communication standard corresponding to the cellular communication module, or the AD-HOC communication standard corresponding to the AD-HOC communication module;
若所述蜂窝通信模块存在分集需求,获取所述蜂窝通信模块当前的通信频段,所述分集需求为使用所述蜂窝分集通路的需求;If the cellular communication module has a diversity requirement, obtain the current communication frequency band of the cellular communication module, where the diversity requirement is a requirement for using the cellular diversity channel;
根据所述目标网络制式和所述通信频段确定所述分集天线的待连接通路,所述待连接通路为所述蜂窝分集通路和所述AD-HOC射频通路中的一个通路;Determine the path to be connected of the diversity antenna according to the target network standard and the communication frequency band, and the path to be connected is one of the cellular diversity path and the AD-HOC radio frequency path;
将所述分集天线与所述待连接通路进行连接。Connect the diversity antenna to the to-be-connected path.
在一个可能的示例中,在所述获取目标对象的操作信息方面,所述程序421包括用于执行以下步骤的指令:In a possible example, in terms of obtaining the operation information of the target object, the program 421 includes instructions for performing the following steps:
获取所述目标对象开启的目标应用;obtaining the target application opened by the target object;
在所述根据所述操作信息确定目标网络制式方面,所述程序421包括用于执行以下步骤的指令:In the aspect of determining the target network standard according to the operation information, the program 421 includes instructions for executing the following steps:
若所述目标应用属于预设的第一应用列表,将所述蜂窝通信制式作为所述目标通信制式;If the target application belongs to a preset first application list, use the cellular communication standard as the target communication standard;
若所述目标应用属于预设的第二应用列表,将所述AD-HOC通信制式作为所述目标通信制式。If the target application belongs to the preset second application list, the AD-HOC communication standard is used as the target communication standard.
在一个可能的示例中,在所述获取目标对象的操作信息方面,所述程序421包括用于执行以下步骤的指令:In a possible example, in terms of obtaining the operation information of the target object, the program 421 includes instructions for performing the following steps:
接收所述目标对象的选择操作指令,所述选择操作指令包含所述目标对象从所述蜂窝通信制式和所述AD-HOC通信制式之中选择一个通信制式的操作信息;Receive a selection operation instruction of the target object, where the selection operation instruction includes operation information for the target object to select a communication standard from the cellular communication standard and the AD-HOC communication standard;
在所述根据所述操作信息确定目标网络制式方面,所述程序421包括用于执行以下步骤的指令:In the aspect of determining the target network standard according to the operation information, the program 421 includes instructions for executing the following steps:
将所述选择操作指令所选择的一个通信制式作为所述目标通信制式。One communication standard selected by the selection operation instruction is used as the target communication standard.
在一个可能的示例中,在所述根据所述目标网络制式和所述通信频段确定所述分集天线的待连接通路方面,所述程序421还包括用于执行以下步骤的指令:In a possible example, in the aspect of determining the to-be-connected path of the diversity antenna according to the target network standard and the communication frequency band, the program 421 further includes instructions for performing the following steps:
在所述通信频段处于预设范围,且所述目标网络制式为所述蜂窝通信制式时,将所述蜂窝分集通路确定为所述待连接通路;When the communication frequency band is within a preset range and the target network standard is the cellular communication standard, determining the cellular diversity channel as the to-be-connected channel;
在所述通信频段处于预设范围,且所述目标网络制式为所述AD-HOC通信制式时,将所述AD-HOC射频通路确定所述待连接通路。When the communication frequency band is within a preset range and the target network standard is the AD-HOC communication standard, the AD-HOC radio frequency channel is determined as the to-be-connected channel.
在一个可能的示例中,所述程序421还包括用于执行以下步骤的指令:In a possible example, the program 421 further includes instructions for performing the following steps:
获取目标操作请求,所述目标操作请求为接收到由基站发送的请求,或者,由触控指令触发的;Obtain a target operation request, where the target operation request is received by a request sent by the base station, or triggered by a touch command;
若所述目标操作请求存在于所述蜂窝通信模块对应的预设请求列表中,确定所述蜂窝通信模块存在所述分集需求。If the target operation request exists in the preset request list corresponding to the cellular communication module, it is determined that the cellular communication module has the diversity requirement.
在一个可能的示例中,所述程序421还包括用于执行以下步骤的指令:In a possible example, the program 421 further includes instructions for performing the following steps:
若所述蜂窝通信模块不存在所述分集需求,或者,若所述通信频段不处于所述预设范围,将所述分集天线与所述AD-HOC射频通路连接。If the cellular communication module does not have the diversity requirement, or if the communication frequency band is not within the preset range, connect the diversity antenna to the AD-HOC radio frequency channel.
请参阅图5,图5是本实施例提供的一种天线切换装置的结构示意图,应用于电子设备,所述电子设备包括蜂窝通信模块和AD-HOC通信模块、主集模块、分集模块、主集天线和分集天线,其中,所述蜂窝通信模块分别和所述主集模块和分集模块连接,形成蜂窝主集通路和蜂窝分集通路,所述AD-HOC通信模块与所述分集模块连接,形成AD-HOC射频通路,所述蜂窝主集通路与所述主集天线连接,所述天线切换装置包括获取单元501、确定单元502和切换单元503,其中,Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of an antenna switching device provided in this embodiment, which is applied to electronic equipment, and the electronic equipment includes a cellular communication module and an AD-HOC communication module, a main set module, a diversity module, a main A set antenna and a diversity antenna, wherein the cellular communication module is respectively connected with the main set module and the diversity module to form a cellular main set path and a cellular diversity path, and the AD-HOC communication module is connected with the diversity module to form AD-HOC radio frequency channel, the cellular main channel is connected to the main antenna, and the antenna switching device includes an acquisition unit 501, a determination unit 502 and a switching unit 503, wherein,
所述获取单元501,用于获取目标对象的操作信息;The obtaining unit 501 is used to obtain the operation information of the target object;
所述确定单元502,用于根据所述操作信息确定目标网络制式,所述目标网络制式为所述蜂窝通信模块对应的蜂窝通信制式,或者,所述AD-HOC通信模块对应的AD-HOC通信制式;The determining unit 502 is configured to determine a target network format according to the operation information, where the target network format is a cellular communication format corresponding to the cellular communication module, or, an AD-HOC communication format corresponding to the AD-HOC communication module standard;
所述获取单元501,还用于若所述蜂窝通信模块存在分集需求,获取所述蜂窝通信模块当前的通信频段,所述分集需求为使用所述蜂窝分集通路的需求;The obtaining unit 501 is further configured to obtain the current communication frequency band of the cellular communication module if the cellular communication module has a diversity requirement, and the diversity requirement is a requirement for using the cellular diversity channel;
所述确定单元502,还用于根据所述目标网络制式和所述通信频段确定所述分集天线的待连接通路,所述待连接通路为所述蜂窝分集通路和所述AD-HOC射频通路中的一个通路;The determining unit 502 is further configured to determine the to-be-connected path of the diversity antenna according to the target network standard and the communication frequency band, where the to-be-connected path is one of the cellular diversity path and the AD-HOC radio frequency path. a pathway;
所述切换单元503,用于将所述分集天线与所述待连接通路进行连接。The switching unit 503 is configured to connect the diversity antenna with the to-be-connected path.
可选地,在所述获取目标对象的操作信息方面,所述获取单元501具体用于:Optionally, in terms of obtaining the operation information of the target object, the obtaining unit 501 is specifically configured to:
获取所述目标对象开启的目标应用;obtaining the target application opened by the target object;
在所述根据所述操作信息确定目标网络制式方面,所述确定单元502具体用于:In the aspect of determining the target network standard according to the operation information, the determining unit 502 is specifically configured to:
若所述目标应用属于预设的第一应用列表,将所述蜂窝通信制式作为所述目标通信制式;If the target application belongs to a preset first application list, use the cellular communication standard as the target communication standard;
若所述目标应用属于预设的第二应用列表,将所述AD-HOC通信制式作为所述目标通信制式。If the target application belongs to the preset second application list, the AD-HOC communication standard is used as the target communication standard.
可选地,在所述获取目标对象的操作信息方面,所述获取单元501具体用于:Optionally, in terms of obtaining the operation information of the target object, the obtaining unit 501 is specifically configured to:
接收所述目标对象的选择操作指令,所述选择操作指令包含所述目标对象从所述蜂窝通信制式和所述AD-HOC通信制式之中选择一个通信制式的操作信息;Receive a selection operation instruction of the target object, where the selection operation instruction includes operation information for the target object to select a communication standard from the cellular communication standard and the AD-HOC communication standard;
在所述根据所述操作信息确定目标网络制式方面,所述确定单元502具体用于:In the aspect of determining the target network standard according to the operation information, the determining unit 502 is specifically configured to:
将所述选择操作指令所选择的一个通信制式作为所述目标通信制式。One communication standard selected by the selection operation instruction is used as the target communication standard.
可选地,在所述根据所述目标网络制式和所述通信频段确定所述分集天线的待连接通路方面,所述确定单元502具体用于:Optionally, in the aspect of determining the to-be-connected path of the diversity antenna according to the target network standard and the communication frequency band, the determining unit 502 is specifically configured to:
在所述通信频段处于预设范围,且所述目标网络制式为所述蜂窝通信制式时,将所述蜂窝分集通路确定为所述待连接通路;When the communication frequency band is within a preset range and the target network standard is the cellular communication standard, determining the cellular diversity channel as the to-be-connected channel;
在所述通信频段处于预设范围,且所述目标网络制式为所述AD-HOC通信制式时,将所述AD-HOC射频通路确定所述待连接通路。When the communication frequency band is within a preset range and the target network standard is the AD-HOC communication standard, the AD-HOC radio frequency channel is determined as the to-be-connected channel.
可选地,所述获取单元,还用于获取目标操作请求,所述目标操作请求为接收到由基站发送的请求,或者,由触控指令触发的;Optionally, the obtaining unit is further configured to obtain a target operation request, where the target operation request is a request sent by a base station received, or triggered by a touch command;
所述确定单元,还用于在所述目标操作请求存在于所述蜂窝通信模块对应的预设请求列表中时,确定所述蜂窝通信模块存在所述分集需求。The determining unit is further configured to determine that the cellular communication module has the diversity requirement when the target operation request exists in a preset request list corresponding to the cellular communication module.
可选地,所述切换单元还用于:Optionally, the switching unit is also used for:
若所述蜂窝通信模块不存在所述分集需求,或者,若所述通信频段不处于所述预设范围,将所述分集天线与所述AD-HOC射频通路连接。If the cellular communication module does not have the diversity requirement, or if the communication frequency band is not within the preset range, connect the diversity antenna to the AD-HOC radio frequency channel.
可以看出,本申请实施例中所描述的天线切换装置,应用于电子设备,获取目标对象的操作信息,根据操作信息确定目标网络制式,若蜂窝通信模块存在分集需求,获取蜂窝通信模块当前的通信频段,根据目标网络制式和通信频段确定分集天线的待连接通路,将分集天线与待连接通路进行连接,如此,可根据蜂窝通信模块当前的通信频段进行天线切换,在蜂窝通信制式和AD-HOC通信制式同时使用时,根据目标对象的选择确定保证所选取的通信制式的通信质量。It can be seen that the antenna switching device described in the embodiment of the present application is applied to electronic equipment, obtains operation information of the target object, determines the target network standard according to the operation information, and if the cellular communication module has a diversity requirement, obtains the current In the communication frequency band, the channel to be connected for the diversity antenna is determined according to the target network standard and communication frequency band, and the diversity antenna is connected to the channel to be connected. In this way, the antenna switching can be performed according to the current communication frequency band of the cellular communication module. When the HOC communication standard is used at the same time, the communication quality of the selected communication standard is guaranteed according to the selection of the target object.
可以理解的是,本实施例的天线切换装置的各程序模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It can be understood that the functions of each program module of the antenna switching apparatus in this embodiment can be specifically implemented according to the methods in the above method embodiments, and the specific implementation process can refer to the relevant descriptions of the above method embodiments, which will not be repeated here.
本申请实施例还提供了另一种电子设备,如图6所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(personal digital assistant,个人数字助理)、POS(point of sales,销售终端)、车载电脑等任意终端设备,以电子设备为手机为例:The embodiment of the present application also provides another electronic device, as shown in FIG. 6 , for the convenience of description, only the part related to the embodiment of the present application is shown. If the specific technical details are not disclosed, please refer to the method of the embodiment of the present application. part. The electronic device can be any terminal device including a mobile phone, a tablet computer, a PDA (personal digital assistant, personal digital assistant), a POS (point of sales, a sales terminal), a vehicle-mounted computer, etc. The electronic device is a mobile phone as an example:
图6示出的是与本申请实施例提供的电子设备相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(Wireless Fidelity,Wi-Fi)模块970、处理器980、电源990、摄像头9100、AD-HOC通信模块9200、蜂窝通信模块9300、DPDT开关9400、主集天线9500、分集天线9600、主集模块9700、分集模块9800等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 6 is a block diagram showing a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application. 6, the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (Wireless Fidelity, Wi-Fi) module 970, processing 980, power supply 990, camera 9100, AD-HOC communication module 9200, cellular communication module 9300, DPDT switch 9400, main set antenna 9500, diversity antenna 9600, main set module 9700, diversity module 9800 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 6 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown, or combine some components, or arrange different components.
下面结合图6对手机的各个构成部件进行具体的介绍:Below in conjunction with Figure 6, the various components of the mobile phone are introduced in detail:
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobilecommunication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code DivisionMultiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。RF circuitry 910 may be used for the reception and transmission of information. Typically, the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 910 may communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (Short Messaging Service, SMS) and the like.
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据手机的使用所创建的数据等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 920 . The memory 920 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone. Additionally, memory 920 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹识别模组931以及其他输入设备932。指纹识别模组931,可采集用户在其上的指纹数据。除了指纹识别模组931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于触控屏、物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 may be used to receive inputted numerical or character information, and generate key signal input related to user setting and function control of the mobile phone. Specifically, the input unit 930 may include a fingerprint recognition module 931 and other input devices 932 . The fingerprint identification module 931 can collect the fingerprint data of the user on it. Besides the fingerprint recognition module 931 , the input unit 930 may also include other input devices 932 . Specifically, other input devices 932 may include, but are not limited to, one or more of a touch screen, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机或无机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏941。The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 940 may include a display screen 941, and optionally, the display screen 941 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic or inorganic light-emitting diode (Organic Light-Emitting Diode, OLED), and the like.
手机还可包括至少一种传感器950,比如光传感器、运动传感器、压力传感器、温度传感器以及其他传感器。具体地,光传感器可包括环境光传感器(也称为光线传感器)及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节手机的背光亮度,进而调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone may also include at least one sensor 950, such as a light sensor, a motion sensor, a pressure sensor, a temperature sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor (also referred to as a light sensor) and a proximity sensor, wherein the ambient light sensor may adjust the backlight brightness of the mobile phone according to the brightness of the ambient light, thereby adjusting the brightness of the display screen 941, and the proximity sensor may When the phone is moved to the ear, the display screen 941 and/or the backlight are turned off. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the attitude of mobile phones (such as horizontal and vertical screen switching, magnetic force Other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can be configured on mobile phones, will not be repeated here.
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the mobile phone. The audio circuit 960 can convert the received audio data into an electrical signal, and transmit it to the speaker 961, and the speaker 961 converts it into a sound signal for playback; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 960 After receiving, the audio data is converted into audio data, and then processed by the audio data playback processor 980, and sent to, for example, another mobile phone through the RF circuit 910, or the audio data is played to the memory 920 for further processing.
Wi-Fi属于短距离无线传输技术,手机通过Wi-Fi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了Wi-Fi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。Wi-Fi is a short-range wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the Wi-Fi module 970. It provides users with wireless broadband Internet access. Although FIG. 6 shows the Wi-Fi module 970, it can be understood that it is not a necessary component of the mobile phone, and can be completely omitted as required within the scope of not changing the essence of the invention.
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;优选的,处理器980可集成应用处理器AP和调制解调处理器,其中,应用处理器AP主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。The processor 980 is the control center of the mobile phone, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 920, and calling the data stored in the memory 920. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. Optionally, the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor AP and a modem processor, wherein the application processor AP mainly processes the operating system, user interface and applications Programs, etc., the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 980.
手机还包括给各个部件供电的电池990,优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a battery 990 for supplying power to various components. Preferably, the power source can be logically connected to the processor 980 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
手机还可以包括摄像头9100,摄像头9100包括前置摄像头和后置摄像头,前置摄像头和后置摄像头用于拍摄图像与视频,并将拍摄的图像和视频传输到处理器980进行处理。The mobile phone may further include a camera 9100. The camera 9100 includes a front camera and a rear camera. The front camera and the rear camera are used to capture images and videos, and transmit the captured images and videos to the processor 980 for processing.
手机还可以包括蓝牙模块等,在此不再赘述。The mobile phone may also include a Bluetooth module, etc., which will not be described herein again.
前述图1B、图2和图3所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the foregoing embodiments shown in FIG. 1B , FIG. 2 and FIG. 3 , the method flow of each step can be implemented based on the structure of the mobile phone.
本申请实施例还提供一种计算机可读存储介质,其中,该计算机可读存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述天线切换方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括电子设备。Embodiments of the present application further provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to execute any one of the antenna switching method embodiments described above. For some or all of the steps of the method, the above-mentioned computer includes an electronic device.
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一天线切换方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。Embodiments of the present application further provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute any one of the method embodiments described above. Some or all of the steps of the antenna switching method. The computer program product may be a software installation package, and the computer includes an electronic device.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the above-mentioned 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 integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components shown 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 application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a memory, Several instructions are included 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 above-mentioned methods in the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), magnetic disk or optical disk, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and the principles and implementations of the present application are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; at the same time, for Persons of ordinary skill in the art, based on the idea of the present application, will have changes in the specific implementation manner and application scope. In summary, the contents of this specification should not be construed as limitations on the present application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910557584.5A CN110266361B (en) | 2019-06-25 | 2019-06-25 | Antenna switching method and related product |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910557584.5A CN110266361B (en) | 2019-06-25 | 2019-06-25 | Antenna switching method and related product |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110266361A true CN110266361A (en) | 2019-09-20 |
| CN110266361B CN110266361B (en) | 2022-03-15 |
Family
ID=67921537
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910557584.5A Expired - Fee Related CN110266361B (en) | 2019-06-25 | 2019-06-25 | Antenna switching method and related product |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110266361B (en) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020107033A1 (en) * | 2001-02-08 | 2002-08-08 | Kim Seung Kil | Method and apparatus for use of GPS and cellular antenna combination |
| US20040029592A1 (en) * | 2002-08-08 | 2004-02-12 | Dong-Jye Shyy | System for and method of providing priority access service and cell load redistribution |
| US20080232238A1 (en) * | 2001-06-10 | 2008-09-25 | Agee Brian G | Method and system for robust, secure, and high-efficiency voice and packet transmission over ad-hoc, mesh, and MIMO communication networks |
| EP2299623A2 (en) * | 2010-09-20 | 2011-03-23 | Vodafone Group PLC | Resource allocation in a communication system |
| CN107276598A (en) * | 2017-07-25 | 2017-10-20 | 广东欧珀移动通信有限公司 | antenna switching system, method and mobile terminal |
| US20180083664A1 (en) * | 2016-09-19 | 2018-03-22 | Intel Corporation | Multi-carrier dynamic antenna diversity |
| CN108282214A (en) * | 2018-01-19 | 2018-07-13 | 广东欧珀移动通信有限公司 | Antenna assembly, electronic equipment and antenna switching method |
-
2019
- 2019-06-25 CN CN201910557584.5A patent/CN110266361B/en not_active Expired - Fee Related
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020107033A1 (en) * | 2001-02-08 | 2002-08-08 | Kim Seung Kil | Method and apparatus for use of GPS and cellular antenna combination |
| US20080232238A1 (en) * | 2001-06-10 | 2008-09-25 | Agee Brian G | Method and system for robust, secure, and high-efficiency voice and packet transmission over ad-hoc, mesh, and MIMO communication networks |
| US20040029592A1 (en) * | 2002-08-08 | 2004-02-12 | Dong-Jye Shyy | System for and method of providing priority access service and cell load redistribution |
| EP2299623A2 (en) * | 2010-09-20 | 2011-03-23 | Vodafone Group PLC | Resource allocation in a communication system |
| US20180083664A1 (en) * | 2016-09-19 | 2018-03-22 | Intel Corporation | Multi-carrier dynamic antenna diversity |
| CN107276598A (en) * | 2017-07-25 | 2017-10-20 | 广东欧珀移动通信有限公司 | antenna switching system, method and mobile terminal |
| CN108282214A (en) * | 2018-01-19 | 2018-07-13 | 广东欧珀移动通信有限公司 | Antenna assembly, electronic equipment and antenna switching method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110266361B (en) | 2022-03-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108093134B (en) | Anti-interference method for electronic equipment and related products | |
| CN110311704A (en) | Antenna switching method and related products | |
| CN110430592B (en) | Network control method and related product | |
| CN110247692B (en) | Path switching method, path switching device, electronic device and readable storage medium | |
| CN110224719B (en) | Communication control method and related products | |
| CN110428782B (en) | Brightness adjusting method and related product | |
| CN107708168A (en) | SIM card switching method, mobile terminal and computer-readable storage medium | |
| CN108063646A (en) | Anti-interference method for electronic equipment and related products | |
| CN109922504B (en) | Data triage method and related products | |
| CN108093135B (en) | Anti-interference method of electronic equipment and related product | |
| CN110209245A (en) | Face recognition method and related product | |
| US20190080120A1 (en) | Unlocking methods and related products | |
| CN107947894A (en) | Anti-interference method of electronic equipment and related product | |
| CN107302628A (en) | Application function control method and related products | |
| CN108124056A (en) | Anti-interference method of electronic equipment and related product | |
| CN105933204A (en) | Method and device for enabling first equipment to transmit synchronization message to second equipment | |
| CN110298277A (en) | Fingerprint identification method and Related product | |
| CN109922539B (en) | Network connection method and related product | |
| CN110212965B (en) | Antenna switching method and related product | |
| CN112135321B (en) | Channel switching method and related product | |
| CN106714279A (en) | A hotspot network switching method and terminal equipment | |
| CN110266359B (en) | Antenna switching method and device, electronic equipment and computer readable storage medium | |
| CN106815078A (en) | A kind of internal memory control method and equipment | |
| CN107889164A (en) | WLAN diversion processing method and Related product | |
| CN110266361A (en) | Antenna switching method and related products |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220315 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |