CN114374417A - Antenna detection method and device, electronic equipment and storage medium - Google Patents
Antenna detection method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114374417A CN114374417A CN202210050928.5A CN202210050928A CN114374417A CN 114374417 A CN114374417 A CN 114374417A CN 202210050928 A CN202210050928 A CN 202210050928A CN 114374417 A CN114374417 A CN 114374417A
- Authority
- CN
- China
- Prior art keywords
- antenna
- candidate
- antennas
- detection
- electronic device
- 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.)
- Pending
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 191
- 238000000034 method Methods 0.000 claims abstract description 31
- 230000008054 signal transmission Effects 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 12
- 230000004044 response Effects 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000004891 communication Methods 0.000 abstract description 26
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 230000008901 benefit Effects 0.000 description 7
- 230000009286 beneficial effect Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000010835 comparative analysis Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
Images
Classifications
-
- 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/0613—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 simultaneous transmission
-
- 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/0868—Hybrid systems, i.e. switching and combining
- H04B7/088—Hybrid systems, i.e. switching and combining using beam selection
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Radio Transmission System (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本申请涉及天线技术领域,尤其涉及一种天线检测方法及装置、电子设备、存储介质。The present application relates to the field of antenna technology, and in particular, to an antenna detection method and device, electronic equipment, and storage medium.
背景技术Background technique
当前,设有多天线的电子设备在需要进行无线通信的场景中,通常需要从多个天线中选择天线性能最优的天线来作为收发天线。然而,在实践中发现,传统的天线检测方法存在诸多缺陷,往往难以准确确定出实际上最优的收发天线,从而容易导致电子设备进行错误的天线配置,不利于提高电子设备的通信性能。Currently, in a scenario where wireless communication is required for an electronic device provided with multiple antennas, it is usually necessary to select an antenna with the best antenna performance from multiple antennas as a transceiver antenna. However, in practice, it is found that there are many defects in the traditional antenna detection method, and it is often difficult to accurately determine the actual optimal transceiver antenna, which easily leads to wrong antenna configuration of electronic equipment, which is not conducive to improving the communication performance of electronic equipment.
发明内容SUMMARY OF THE INVENTION
本申请实施例公开了一种天线检测方法及装置、电子设备、存储介质,能够使电子设备准确配置当前天线性能最高的收发天线,从而有利于提升电子设备的通信性能。The embodiments of the present application disclose an antenna detection method and device, an electronic device, and a storage medium, which can enable the electronic device to accurately configure the current transceiver antenna with the highest antenna performance, thereby helping to improve the communication performance of the electronic device.
本申请实施例第一方面公开一种天线检测方法,应用于电子设备,所述电子设备包括多个待选天线,所述方法包括:A first aspect of embodiments of the present application discloses an antenna detection method, which is applied to an electronic device, where the electronic device includes a plurality of antennas to be selected, and the method includes:
分别在每个待选天线处于信号发射状态的情况下,通过与各个所述待选天线对应的检测天线,检测各个所述待选天线对应的信号强度,其中,目标待选天线对应的检测天线,包括所述多个待选天线中,除所述目标待选天线以外的其他待选天线,所述目标待选天线为所述多个待选天线中的任一待选天线;In the case where each antenna to be selected is in a signal transmission state, the signal strength corresponding to each of the antennas to be selected is detected through the detection antennas corresponding to the antennas to be selected, wherein the detection antenna corresponding to the antenna to be selected of the target , including other candidate antennas other than the target candidate antenna among the multiple candidate antennas, and the target candidate antenna is any candidate antenna among the multiple candidate antennas;
根据各个所述待选天线对应的信号强度,从所述多个待选天线中确定出天线性能最高的待选天线,并将所述天线性能最高的待选天线配置为所述电子设备的收发天线。According to the signal strength corresponding to each of the candidate antennas, the candidate antenna with the highest antenna performance is determined from the plurality of candidate antennas, and the candidate antenna with the highest antenna performance is configured as the transceiver of the electronic device. antenna.
本申请实施例第二方面公开一种天线检测装置,应用于电子设备,所述电子设备包括多个待选天线,所述天线检测装置包括:A second aspect of the embodiments of the present application discloses an antenna detection device, which is applied to an electronic device, where the electronic device includes a plurality of antennas to be selected, and the antenna detection device includes:
信号检测单元,用于分别在每个待选天线处于信号发射状态的情况下,通过与各个所述待选天线对应的检测天线,检测各个所述待选天线对应的信号强度,其中,目标待选天线对应的检测天线,包括所述多个待选天线中,除所述目标待选天线以外的其他待选天线,所述目标待选天线为所述多个待选天线中的任一待选天线;The signal detection unit is used to detect the signal strength corresponding to each of the candidate antennas through the detection antennas corresponding to each of the candidate antennas when each candidate antenna is in a signal transmission state, wherein the target to be selected The detection antenna corresponding to the selected antenna, including the multiple candidate antennas, other candidate antennas except the target candidate antenna, and the target candidate antenna is any of the multiple candidate antennas choose an antenna;
天线确定单元,用于根据各个所述待选天线对应的信号强度,从所述多个待选天线中确定出天线性能最高的待选天线,并将所述天线性能最高的待选天线配置为所述电子设备的收发天线。The antenna determination unit is configured to determine the candidate antenna with the highest antenna performance from the plurality of candidate antennas according to the signal strength corresponding to each of the candidate antennas, and configure the candidate antenna with the highest antenna performance as The transceiver antenna of the electronic device.
本申请实施例第三方面公开了一种电子设备,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如本申请实施例第一方面公开的任意一种天线检测方法中的全部或部分步骤。A third aspect of the embodiments of the present application discloses an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the same operation as the present application. Embodiment All or part of the steps in any one of the antenna detection methods disclosed in the first aspect.
本申请实施例第四方面公开了一种计算机可读存储介质,其存储计算机程序,其中,所述计算机程序被处理器执行时实现如本申请实施例第一方面公开的任意一种天线检测方法中的全部或部分步骤。A fourth aspect of the embodiments of the present application discloses a computer-readable storage medium, which stores a computer program, wherein, when the computer program is executed by a processor, any one of the antenna detection methods disclosed in the first aspect of the embodiments of the present application is implemented all or part of the steps.
与相关技术相比,本申请实施例具有以下有益效果:Compared with the related art, the embodiments of the present application have the following beneficial effects:
本申请实施例中的天线检测方法可以应用于电子设备,该电子设备可以包括多个待选天线,电子设备可以分别在每个待选天线处于信号发射状态的情况下,通过与各个待选天线对应的检测天线,检测各个待选天线对应的信号强度。其中,目标待选天线对应的检测天线,可以包括多个待选天线中,除该目标待选天线以外的其他待选天线,而该目标待选天线则可以为上述多个待选天线中的任一待选天线。在此基础上,电子设备可以根据各个待选天线对应的信号强度,从多个待选天线中确定出天线性能最高的待选天线,并将该天线性能最高的待选天线配置为该电子设备的收发天线。可见,实施本申请实施例,设有多天线的电子设备能够利用各个待选天线相互作为彼此的检测天线,进而可以准确检测出其中天线性能最高的待选天线。这样的天线检测方法可以避免在检测天线性能时依赖不确定的外部网络,而导致出现检测结果失准甚至无法检测的情况。同时,也能够利用多天线之间相互检测的优势,提升检测结果的准确性,使得电子设备可以准确配置当前天线性能最高的收发天线,从而有利于提升电子设备的通信性能。The antenna detection method in the embodiment of the present application may be applied to an electronic device, the electronic device may include a plurality of antennas to be selected, and the electronic device may, when each antenna to be selected is in a signal transmitting state, respectively, The corresponding detection antenna detects the signal strength corresponding to each candidate antenna. The detection antenna corresponding to the target candidate antenna may include other candidate antennas other than the target candidate antenna among the multiple candidate antennas, and the target candidate antenna may be one of the above-mentioned multiple candidate antennas. any of the antennas to choose from. On this basis, the electronic device can determine the candidate antenna with the highest antenna performance from the plurality of candidate antennas according to the signal strength corresponding to each candidate antenna, and configure the candidate antenna with the highest antenna performance as the electronic device the transceiver antenna. It can be seen that, by implementing the embodiments of the present application, an electronic device with multiple antennas can use each candidate antenna as each other's detection antennas, thereby accurately detecting the candidate antenna with the highest antenna performance. Such an antenna detection method can avoid relying on an uncertain external network when detecting antenna performance, resulting in inaccurate or even undetectable detection results. At the same time, the advantages of mutual detection between multiple antennas can also be used to improve the accuracy of the detection results, so that the electronic device can accurately configure the current transceiver antenna with the highest antenna performance, thereby helping to improve the communication performance of the electronic device.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图进行简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1是本申请实施例公开的天线检测方法的一种应用场景示意图;FIG. 1 is a schematic diagram of an application scenario of the antenna detection method disclosed in an embodiment of the present application;
图2是本申请实施例公开的一种天线检测方法的流程示意图;FIG. 2 is a schematic flowchart of an antenna detection method disclosed in an embodiment of the present application;
图3是本申请实施例公开的一种天线检测方法的循环检测过程示意图;3 is a schematic diagram of a cycle detection process of an antenna detection method disclosed in an embodiment of the present application;
图4是本申请实施例公开的另一种天线检测方法的流程示意图;FIG. 4 is a schematic flowchart of another antenna detection method disclosed in an embodiment of the present application;
图5是本申请实施例公开的又一种天线检测方法的流程示意图;FIG. 5 is a schematic flowchart of another antenna detection method disclosed in an embodiment of the present application;
图6是本申请实施例公开的一种天线检测电路的结构示意图;6 is a schematic structural diagram of an antenna detection circuit disclosed in an embodiment of the present application;
图7是本申请实施例公开的一种天线检测装置的模块化示意图;FIG. 7 is a modular schematic diagram of an antenna detection device disclosed in an embodiment of the present application;
图8是本申请实施例公开的一种电子设备的模块化示意图。FIG. 8 is a modular schematic diagram of an electronic device disclosed in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only 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.
需要说明的是,本申请实施例的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。在不冲突的情况下,本申请中的实施例、实施方式及相关技术特征可以相互组合、替换,不同实施例、实施方式中的解释可以相互适用。本申请中的“多个”是指两个或两个以上。It should be noted that the terms "comprising" and "having" and any modifications thereof in the embodiments of the present application are intended to cover non-exclusive inclusion, for example, a process, method, system, product or process including a series of steps or units. The apparatus is not necessarily limited to those steps or units expressly listed, but may include other steps or units not expressly listed or inherent to the process, method, product or apparatus. In the case of no conflict, the embodiments, implementation manners and related technical features in this application may be combined and replaced with each other, and the explanations in different embodiments and implementation manners may be mutually applicable. "Plural" in this application means two or more.
本申请实施例公开了一种天线检测方法及装置、电子设备、存储介质,能够使电子设备准确配置当前天线性能最高的收发天线,从而有利于提升电子设备的通信性能。The embodiments of the present application disclose an antenna detection method and device, an electronic device, and a storage medium, which can enable the electronic device to accurately configure the current transceiver antenna with the highest antenna performance, thereby helping to improve the communication performance of the electronic device.
以下将结合附图进行详细描述。The following will be described in detail with reference to the accompanying drawings.
请参阅图1,图1是本申请实施例公开的天线检测方法的一种应用场景示意图,包括电子设备10。其中,该电子设备10可以包括多个待选天线20,例如天线21、天线22、天线23、天线24等。需要说明的是,上述各个待选天线20在电子设备10上的位置、方向性、频谱特性等均可以有所不同,并且可用于实现同一类型的无线通信功能,也可用于实现不同类型的无线通信功能(例如5G频段通信、4G频段通信、Wi-Fi频段通信等)。在此基础上,图1作为示例可以仅示出电子设备10中的部分待选天线20,不应视为对本申请实施例中天线数量及类型的限定。Please refer to FIG. 1 . FIG. 1 is a schematic diagram of an application scenario of the antenna detection method disclosed in the embodiment of the present application, including an
示例性地,上述电子设备10,可以包括具备无线通信功能的各类设备或系统,如手机、智能可穿戴设备、车载终端、平板电脑、PC(Personal Computer,个人电脑)、PDA(Personal Digital Assistant,个人数字助理)等,本申请实施例中不作具体限定。需要说明的是,图1所示的电子设备为手机,这仅仅是一种示例,不应视为对本申请实施例中电子设备的设备类型的限定。Exemplarily, the above
在相关技术中,当电子设备10需要确定上述待选天线20的天线性能优劣时,往往是通过接收外部网络的下行信号来进行判断,即,根据电子设备10配置不同待选天线20时,各个待选天线20所接收到的下行信号强度来进行对比,以从中确定出天线性能最高的待选天线。然而,在电子设备10所连接的外部网络不稳定的情况下,各个待选天线20所接收到的下行信号强度可能存在较大波动,难以准确体现其真实的天线性能;并且,在电子设备10无法连接到外部网络的情况下,上述测试方法也无法进行,从而导致电子设备10难以可靠地确定出天线性能最高的待选天线。In the related art, when the
在本申请实施例中,为了从各个待选天线20中确定出天线性能最高的待选天线来作为该电子设备10的收发天线,该电子设备10可以利用各个待选天线20来相互进行检测。示例性地,电子设备10可以分别在每个待选天线20处于信号发射状态的情况下,通过与各个待选天线20对应的检测天线,检测各个待选天线20对应的信号强度。其中,以目标待选天线为例,该目标待选天线可以为上述多个待选天线20中的任一待选天线,而该目标待选天线对应的检测天线,则可以包括上述多个待选天线20中,除该目标待选天线以外的其他全部待选天线20。在此基础上,电子设备10可以根据各个待选天线20对应的信号强度,从上述多个待选天线20中确定出天线性能最高的待选天线20,并将该天线性能最高的待选天线20配置为电子设备10的收发天线。In the embodiment of the present application, in order to determine the candidate antenna with the highest antenna performance from the
可见,实施上述天线检测方法,设有多天线的电子设备10能够利用各个待选天线20相互作为彼此的检测天线,进而可以准确检测出其中天线性能最高的待选天线20。这样的天线检测方法可以避免在检测天线性能时依赖不确定的外部网络,而导致出现检测结果失准甚至无法检测的情况。同时,也能够利用多天线之间相互检测的优势,提升检测结果的准确性,使得电子设备10可以准确配置当前天线性能最高的收发天线,便于实现准确可靠的天线切换,从而有利于提升电子设备10的通信性能。It can be seen that, by implementing the above antenna detection method, the
请参阅图2,图2是本申请实施例公开的一种天线检测方法的流程示意图,该方法可以应用于上述的电子设备,该电子设备可以包括多个待选天线。如图2所示,该天线检测方法可以包括以下步骤:Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of an antenna detection method disclosed in an embodiment of the present application. The method can be applied to the above-mentioned electronic device, and the electronic device may include a plurality of candidate antennas. As shown in Figure 2, the antenna detection method may include the following steps:
202、分别在每个待选天线处于信号发射状态的情况下,通过与各个待选天线对应的检测天线,检测各个待选天线对应的信号强度,其中,目标待选天线对应的检测天线,包括多个待选天线中,除该目标待选天线以外的其他待选天线,该目标待选天线为上述多个待选天线中的任一待选天线。202. When each antenna to be selected is in a signal transmission state, detect the signal strength corresponding to each antenna to be selected through the detection antenna corresponding to the antenna to be selected, wherein the detection antenna corresponding to the antenna of the target to be selected includes: Among the plurality of candidate antennas, for other candidate antennas except the target candidate antenna, the target candidate antenna is any candidate antenna among the above-mentioned plurality of candidate antennas.
在本申请实施例中,设有多天线的电子设备可以通过分别对各个待选天线进行检测,从中确定出天线性能最高的待选天线,来作为该电子设备的收发天线,以尽可能地提高该电子设备的通信性能。其中,电子设备收发天线的天线性能越高,可以表示其发射和/或接收无线信号的能力更强,从而有利于电子设备适应信号强度较弱、通信条件较差的场景,确保该电子设备进行无线通信的可靠性。In the embodiment of the present application, an electronic device with multiple antennas can detect each candidate antenna respectively, and determine the candidate antenna with the highest antenna performance from it, which can be used as the transmitting and receiving antenna of the electronic device, so as to improve the performance as much as possible. The communication performance of the electronic device. Among them, the higher the antenna performance of the transceiver antenna of the electronic device, the stronger the ability to transmit and/or receive wireless signals, which is beneficial for the electronic device to adapt to the scene with weak signal strength and poor communication conditions, and ensures that the electronic device can perform Reliability of wireless communication.
示例性地,电子设备可以通过检测待选天线的指定天线参数来判断其天线性能,例如发射增益、接收增益、接收信号强度等。在本申请实施例中,电子设备可以依次将每个待选天线作为目标待选天线,并在目标待选天线处于信号发射状态的情况下,通过相应的检测天线来检测该目标待选天线对应的信号强度,进而可以在后续步骤中根据上述信号强度的值,对目标待选天线的天线性能进行评判。其中,目标待选天线对应的检测天线,可以包括上述多个待选天线中除该目标待选天线以外的其他全部待选天线。区别于相关技术中依赖外部网络的检测方案,本申请实施例中的电子设备可以完全独立地完成针对每个待选天线的循环检测,即通过该电子设备所包括的多个待选天线之间的相互轮流检测,能够方便地实现整个天线检测流程。Exemplarily, the electronic device may determine its antenna performance by detecting the specified antenna parameters of the antenna to be selected, such as transmit gain, receive gain, received signal strength, and the like. In the embodiment of the present application, the electronic device may sequentially use each candidate antenna as the target candidate antenna, and when the target candidate antenna is in a signal transmission state, detect the corresponding target candidate antenna through the corresponding detection antenna. The signal strength of the target antenna can be judged according to the value of the signal strength in the subsequent steps. Wherein, the detection antenna corresponding to the target candidate antenna may include all other candidate antennas except the target candidate antenna among the above-mentioned plurality of candidate antennas. Different from the detection scheme in the related art that relies on an external network, the electronic device in the embodiment of the present application can completely independently complete the cyclic detection for each candidate antenna, that is, through the detection between multiple candidate antennas included in the electronic device. The mutual rotation detection can easily realize the entire antenna detection process.
请参阅图3,图3是本申请实施例公开的一种天线检测方法的循环检测过程示意图。如图3所示,电子设备可以包括N个待选天线(N为正整数),并且可以控制目标待选天线TXi(i=1,2,3…,N)以一定的发射功率(例如该目标待选天线所支持的最大发射功率,或者指定的标准测试功率等)发射检测信号,同时可以控制该目标待选天线TXi对应的检测天线RX1、RX2……RXN-1来接收上述检测信号对应的接收信号,并确定出相应的接收信号强度。其中,上述检测天线RX1、RX2……RXN-1可以包括上述N个待选天线(TX1、TX2……TXN)中除目标待选天线TXi以外的其他全部待选天线。当针对当前的目标待选天线完成检测后,电子设备可以重新按照相同的流程对另一目标待选天线进行检测,直至上述N个待选天线全部完成检测为止。在此基础上,电子设备可以在后续步骤中根据各个待选天线对应的接收信号强度,从上述N个待选天线中确定出天线性能最高的待选天线,作为该电子设备的收发天线。Please refer to FIG. 3 , which is a schematic diagram of a cycle detection process of an antenna detection method disclosed in an embodiment of the present application. As shown in FIG. 3 , the electronic device may include N candidate antennas (N is a positive integer), and may control the target candidate antenna TX i (i=1, 2, 3..., N) to transmit at a certain transmit power (for example, The maximum transmit power supported by the target candidate antenna, or the specified standard test power, etc.) to transmit detection signals, and at the same time, the detection antennas RX 1 , RX 2 ... RX N-1 corresponding to the target candidate antenna TX i can be controlled to A received signal corresponding to the above detection signal is received, and the corresponding received signal strength is determined. Wherein , the above - mentioned detection antennas RX 1 , RX 2 , . . After the detection of the current target candidate antenna is completed, the electronic device can re-detect another target candidate antenna according to the same process until all the N candidate antennas are detected. On this basis, the electronic device can, in subsequent steps, determine the candidate antenna with the highest antenna performance from the N candidate antennas according to the received signal strength corresponding to each candidate antenna, as the transceiver antenna of the electronic device.
204、根据各个待选天线对应的信号强度,从多个待选天线中确定出天线性能最高的待选天线,并将该天线性能最高的待选天线配置为电子设备的收发天线。204. Determine a candidate antenna with the highest antenna performance from the plurality of candidate antennas according to the signal strength corresponding to each candidate antenna, and configure the candidate antenna with the highest antenna performance as a transceiver antenna of the electronic device.
在本申请实施例中,电子设备在确定出上述各个待选天线对应的信号强度之后,可以基于各个信号强度值进行对比分析,综合判断各个待选天线的天线性能,进而可以从中确定出天线性能最高的待选天线。示例性地,某一待选天线对应的信号强度值更大,则可以表示该待选天线所发射的检测信号增益相对较大、在传输过程中的衰减相对较少,从而该待选天线更适合作为电子设备当前的收发天线。In the embodiment of the present application, after determining the signal strengths corresponding to the above-mentioned candidate antennas, the electronic device can perform comparative analysis based on the respective signal strength values, comprehensively judge the antenna performance of each candidate antenna, and then determine the antenna performance from the antenna performance. The highest candidate antenna. Exemplarily, if the signal strength value corresponding to a certain antenna to be selected is larger, it can indicate that the detection signal transmitted by the antenna to be selected has relatively large gain and relatively little attenuation during transmission, so that the antenna to be selected is more powerful. It is suitable as the current transceiver antenna for electronic equipment.
在一些实施例中,电子设备可以直接对各个待选天线对应的信号强度进行横向对比,以确定出对应的信号强度最大的待选天线,并将其配置为电子设备的收发天线。In some embodiments, the electronic device may directly compare the signal intensities corresponding to each candidate antenna in a horizontal direction to determine the corresponding candidate antenna with the highest signal strength, and configure it as a transceiver antenna of the electronic device.
在另一些实施例中,电子设备也可以先按照统一流程对上述各个待选天线对应的信号强度进行预处理,例如进行误差校正、归一化等,得到各个待选天线对应的第一强度参数,进而电子设备可以再根据上述各个第一强度参数来进行对比分析,从而有利于提升天线检测结果的准确性和可靠性,同时也能够降低计算难度,提升电子设备确定收发天线的效率。In other embodiments, the electronic device may also preprocess the signal strengths corresponding to the above-mentioned antennas to be selected according to a unified process, such as performing error correction, normalization, etc., to obtain the first strength parameters corresponding to the antennas to be selected. , and then the electronic device can perform comparative analysis according to each of the above-mentioned first intensity parameters, thereby helping to improve the accuracy and reliability of the antenna detection results, and at the same time, it can also reduce the difficulty of calculation and improve the efficiency of the electronic device in determining the transceiver antenna.
还有一些实施例中,由于每个待选天线对应的检测天线可以包括多个,从而电子设备所检测到的每个待选天线对应的信号强度也可以包括多个。针对目标待选天线对应的多个信号强度,电子设备可以先计算其对应的第二强度参数,该第二强度参数可以包括上述多个信号强度的总和、平均数等,进而电子设备可以再根据上述各个待选天线对应的第二强度参数来进行对比分析,以确定出其中天线性能最高的待选天线。In still other embodiments, since the detection antenna corresponding to each candidate antenna may include multiple, the signal strength corresponding to each candidate antenna detected by the electronic device may also include multiple. For the multiple signal strengths corresponding to the target antenna to be selected, the electronic device may first calculate the corresponding second strength parameter, and the second strength parameter may include the sum, average, etc. The second intensity parameters corresponding to each of the above-mentioned candidate antennas are compared and analyzed to determine the candidate antenna with the highest antenna performance.
可见,实施上述实施例所描述的天线检测方法,设有多天线的电子设备能够利用各个待选天线相互作为彼此的检测天线,进而可以准确检测出其中天线性能最高的待选天线。这样的天线检测方法可以避免在检测天线性能时依赖不确定的外部网络,而导致出现检测结果失准甚至无法检测的情况。同时,也能够利用多天线之间相互检测的优势,提升检测结果的准确性,使得电子设备可以准确配置当前天线性能最高的收发天线,从而有利于提升电子设备的通信性能。It can be seen that, by implementing the antenna detection method described in the above embodiments, an electronic device with multiple antennas can use each candidate antenna as each other's detection antennas, thereby accurately detecting the candidate antenna with the highest antenna performance. Such an antenna detection method can avoid relying on an uncertain external network when detecting antenna performance, resulting in inaccurate or even undetectable detection results. At the same time, the advantages of mutual detection between multiple antennas can also be used to improve the accuracy of the detection results, so that the electronic device can accurately configure the current transceiver antenna with the highest antenna performance, thereby helping to improve the communication performance of the electronic device.
请参阅图4,图4是本申请实施例公开的另一种天线检测方法的流程示意图,该方法可以应用于上述的电子设备,该电子设备可以包括多个待选天线。如图4所示,该天线检测方法可以包括以下步骤:Please refer to FIG. 4 . FIG. 4 is a schematic flowchart of another antenna detection method disclosed in an embodiment of the present application. The method can be applied to the above-mentioned electronic device, and the electronic device may include multiple antennas to be selected. As shown in Figure 4, the antenna detection method may include the following steps:
402、在目标待选天线处于信号发射状态的情况下,将该目标待选天线对应的多个检测天线设置为信号接收状态,其中,该目标待选天线为上述多个待选天线中的任一待选天线。402. In the case that the target candidate antenna is in a signal transmitting state, set multiple detection antennas corresponding to the target candidate antenna to a signal receiving state, wherein the target candidate antenna is any of the above-mentioned multiple candidate antennas. An antenna to be selected.
在本申请实施例中,电子设备可以依次将每个待选天线作为目标待选天线,针对目标待选天线的天线性能进行检测。此时,电子设备可以将除了目标待选天线以外的其他全部待选天线,作为该目标待选天线对应的检测天线。为了实现上述检测,电子设备在确定出目标待选天线之后,可以将其对应的各个检测天线分别设置为信号接收状态,以用于对上述目标待选天线所发射的检测信号进行接收。In this embodiment of the present application, the electronic device may sequentially use each candidate antenna as the target candidate antenna, and perform detection on the antenna performance of the target candidate antenna. At this time, the electronic device may use all other candidate antennas except the target candidate antenna as the detection antenna corresponding to the target candidate antenna. In order to realize the above detection, after determining the target candidate antenna, the electronic device may set each corresponding detection antenna to the signal receiving state, so as to receive the detection signal transmitted by the target candidate antenna.
可以理解,电子设备在设置目标待选天线对应的检测天线为信号接收状态的时候,还可以相应地将该目标待选天线设置为信号发射状态,以用于向外部空间发射检测信号。示例性地,电子设备可以响应于天线检测指令,将目标待选天线设置为信号发射状态,以触发该目标待选天线按照最大发射功率(即该目标待选天线所支持的最大发射功率)发射检测信号;可选地,电子设备也可以配置目标待选天线,以使该目标待选天线按照指定的标准测试功率来发射检测信号。It can be understood that when the electronic device sets the detection antenna corresponding to the target candidate antenna to the signal receiving state, the electronic device can also correspondingly set the target candidate antenna to the signal transmission state for transmitting detection signals to the external space. Exemplarily, the electronic device may, in response to the antenna detection instruction, set the target candidate antenna to a signal transmission state, so as to trigger the target candidate antenna to transmit according to the maximum transmission power (that is, the maximum transmission power supported by the target candidate antenna) detection signal; optionally, the electronic device may also configure the target candidate antenna, so that the target candidate antenna transmits the detection signal according to the specified standard test power.
在一些实施例中,电子设备可以通过专用的射频收发模块来对上述各个待选天线的收发状态进行控制。示例性地,该射频收发模块上可以设有用于信号发射以及信号接收的不同端口,电子设备可以通过单刀双掷(Single Pole Double Throw,SPDT)开关或者具备类似功能的选择电路来对待选天线进行配置。当待选天线与射频收发模块上的信号发射端口导通时,该待选天线可以被设置为信号发射状态;当待选天线与射频收发模块上的信号接收端口导通时,则该待选天线可以被设置为信号接收状态。In some embodiments, the electronic device may use a dedicated radio frequency transceiver module to control the transceiver state of each of the above-mentioned candidate antennas. Exemplarily, the radio frequency transceiver module may be provided with different ports for signal transmission and signal reception, and the electronic device may select the antenna to be selected through a single pole double throw (Single Pole Double Throw, SPDT) switch or a selection circuit with similar functions. configuration. When the antenna to be selected is connected to the signal transmitting port on the RF transceiver module, the antenna to be selected can be set to a signal transmitting state; when the antenna to be selected is connected to the signal receiving port on the RF transceiver module, the antenna to be selected is The antenna can be set to the signal reception state.
在另一些实施例中,电子设备也可以通过FPGA(Field Programmable GateArray,现场可编程逻辑门阵列)等专用集成电路来实现上述控制逻辑,从而电子设备可以响应于天线检测指令,快速对当前选定的目标待选天线以及相应的检测天线进行配置,有利于提升电子设备进行天线检测的效率以及灵活性。In other embodiments, the electronic device can also implement the above-mentioned control logic through an application-specific integrated circuit such as an FPGA (Field Programmable Gate Array, Field Programmable Gate Array), so that the electronic device can respond to the antenna detection command to quickly select the currently selected The configuration of the target candidate antenna and the corresponding detection antenna is beneficial to improve the efficiency and flexibility of the electronic device for antenna detection.
404、通过处于信号接收状态的各个目标待选天线对应的检测天线,分别检测该目标待选天线对应的接收信号强度。404. Detect the received signal strength corresponding to the target candidate antenna by using the detection antennas corresponding to each target candidate antenna in a signal receiving state, respectively.
在本申请实施例中,电子设备在将目标待选天线对应的检测天线设置为信号接收状态之后,该检测天线即可用于对外部空间中符合其接收频率范围的无线信号进行接收。示例性地,针对目标待选天线所发射的检测信号,处于信号接收状态的各个检测天线可以分别接收该检测信号对应的接收信号,进而可以根据该接收信号确定上述目标待选天线对应的接收信号强度。In the embodiment of the present application, after the electronic device sets the detection antenna corresponding to the target candidate antenna to the signal receiving state, the detection antenna can be used to receive wireless signals in the external space that meet its receiving frequency range. Exemplarily, for the detection signal transmitted by the target candidate antenna, each detection antenna in the signal receiving state can receive the corresponding reception signal of the detection signal respectively, and then can determine the reception signal corresponding to the above-mentioned target candidate antenna according to the received signal. strength.
在一些实施例中,电子设备在依次将每个待选天线作为目标待选天线,并分别通过与每个目标待选天线对应的各个检测天线来检测得到每个目标待选天线对应的接收信号强度之后,可以对上述接收信号强度统一整理,并记录在信号强度收集表中。示例性地,该信号强度收集表的样式可以如以下表1所示(“\”表示此处无记录数据)。In some embodiments, the electronic device sequentially uses each candidate antenna as the target candidate antenna, and obtains the received signal corresponding to each target candidate antenna by detecting the respective detection antennas corresponding to each target candidate antenna. After the strength, the above received signal strengths can be uniformly sorted and recorded in the signal strength collection table. Exemplarily, the format of the signal strength collection table may be as shown in Table 1 below ("\" indicates that no data is recorded here).
表1:Table 1:
其中,A1~A4分别表示电子设备所包括的各个待选天线(以总共包括4个待选天线为例),针对每个待选天线作为目标待选天线的情况,均可设置其他3个待选天线为信号接收状态,以获取相应的接收信号强度,应用于后续步骤中来实现对各个目标待选天线的天线性能的评判。Among them, A1 to A4 respectively represent each candidate antenna included in the electronic device (taking a total of 4 candidate antennas as an example), for the case where each candidate antenna is used as the target candidate antenna, the other 3 candidate antennas can be set Select the antenna to be in the signal receiving state, so as to obtain the corresponding received signal strength, which is applied in the subsequent steps to realize the evaluation of the antenna performance of each target candidate antenna.
406、分别将各个待选天线对应的接收信号强度,与相应的校准数据进行比较,并根据比较结果确定出信号强度下降最小的待选天线,作为天线性能最高的待选天线,其中,校准数据包括各个待选天线对应的最大测量信号强度。406. Compare the received signal strength corresponding to each candidate antenna with the corresponding calibration data, and determine the candidate antenna with the smallest signal strength drop according to the comparison result, as the candidate antenna with the highest antenna performance, wherein the calibration data Including the maximum measured signal strength corresponding to each candidate antenna.
在本申请实施例中,针对每个待选天线作为目标待选天线的情况,目标待选天线对应的各个检测天线均可对应设有一定的校准数据。其中,上述校准数据可以用于表示各个待选天线对应的最大测量信号强度,即针对目标待选天线而言,该校准数据可以表示该目标待选天线对应的各个检测天线所能够检测到的最大测量信号强度。示例性地,当待选天线A1作为目标待选天线时,其相应的检测天线A2、A3、A4在尽可能无遮挡、无干扰的状态下,所检测到的与A1所发射的检测信号对应的接收信号的接收信号强度(即最大测量信号强度),即可作为该目标待选天线A1对应的校准数据。In the embodiment of the present application, in the case where each candidate antenna is used as the target candidate antenna, each detection antenna corresponding to the target candidate antenna may be correspondingly provided with certain calibration data. The above calibration data can be used to represent the maximum measured signal strength corresponding to each candidate antenna, that is, for the target candidate antenna, the calibration data can represent the maximum measured signal strength that can be detected by each detection antenna corresponding to the target candidate antenna. Measure signal strength. Exemplarily, when the candidate antenna A1 is used as the target candidate antenna, the corresponding detection antennas A2, A3, and A4 are in a state as unobstructed and free from interference as possible, and the detected signals correspond to the detection signals transmitted by A1. The received signal strength of the received signal (ie, the maximum measured signal strength) can be used as the calibration data corresponding to the target candidate antenna A1.
在此基础上,实际检测过程中各个检测天线A2、A3、A4所检测到的与A1所发射的检测信号对应的接收信号,均可能存在不同程度的衰减,从而实际检测到的接收信号强度应当小于或等于上述校准数据。因此,电子设备可以将各个待选天线对应的接收信号强度,与相应的校准数据进行比较,并基于两者的差值大小确定出信号强度下降最小的待选天线。在一些实施例中,若各个待选天线的最大发射功率相等或相近,则上述信号强度下降最小的待选天线即为上述各个待选天线中天线性能最高的待选天线。On this basis, in the actual detection process, the received signals detected by each of the detection antennas A2, A3, and A4 corresponding to the detection signal transmitted by A1 may have different degrees of attenuation, so the actually detected received signal strength should be Less than or equal to the above calibration data. Therefore, the electronic device can compare the received signal strength corresponding to each candidate antenna with the corresponding calibration data, and determine the candidate antenna with the smallest signal strength drop based on the difference between the two. In some embodiments, if the maximum transmit power of each candidate antenna is equal or similar, the candidate antenna with the smallest signal strength drop is the candidate antenna with the highest antenna performance among the above candidate antennas.
408、若电子设备当前配置的收发天线不为上述天线性能最高的待选天线,则将其当前配置的收发天线切换为该天线性能最高的待选天线。408. If the currently configured transceiver antenna of the electronic device is not the candidate antenna with the highest antenna performance, switch the currently configured transceiver antenna to the candidate antenna with the highest antenna performance.
在本申请实施例中,由于电子设备所处环境的改变可能极其迅速(例如用户手持电子设备进行移动或放置),导致电子设备当前配置的收发天线可能并非天线性能最高的待选天线。此时,电子设备可以进行收发天线的切换,即,将其当前配置的收发天线切换为通过上述天线检测过程中所确定出的天线性能最高的待选天线。在一些实施例中,电子设备可以通过专用的射频收发模块来实现上述切换,将天线性能最高的待选天线设置为收发天线,而其他待选天线可以不做处理,也可以屏蔽或禁用部分收发功能,以避免对收发天线造成不必要的干扰,尽可能提高电子设备的通信性能。In the embodiments of the present application, since the environment in which the electronic device is located may change extremely rapidly (for example, the user moves or places the electronic device by holding it), the transceiver antenna currently configured on the electronic device may not be a candidate antenna with the highest antenna performance. At this time, the electronic device may switch the transceiver antenna, that is, switch the currently configured transceiver antenna to the candidate antenna with the highest antenna performance determined in the above-mentioned antenna detection process. In some embodiments, the electronic device can implement the above-mentioned switching through a dedicated radio frequency transceiver module, and the candidate antenna with the highest antenna performance is set as the transceiver antenna, while other candidate antennas can be left unprocessed, or part of the transceiver can be shielded or disabled function to avoid unnecessary interference to the transceiver antenna and improve the communication performance of the electronic device as much as possible.
可见,实施上述实施例所描述的天线检测方法,设有多天线的电子设备能够利用各个待选天线相互作为彼此的检测天线,进而可以准确检测出其中天线性能最高的待选天线,既能够避免在检测天线性能时依赖不确定的外部网络而导致出现检测结果失准甚至无法检测的情况,同时也能够利用多天线之间相互检测的优势,提升检测结果的准确性,使得电子设备可以准确配置当前天线性能最高的收发天线,从而有利于提升电子设备的通信性能。此外,利用预先测定的校准数据来对待选天线的天线性能进行评判,能够有效体现天线的细微状态变化,从而有利于进一步提升天线检测结果的准确性和可靠性。It can be seen that, by implementing the antenna detection method described in the above embodiment, an electronic device with multiple antennas can use each candidate antenna as each other's detection antennas, and then can accurately detect the candidate antenna with the highest antenna performance, which can avoid When detecting antenna performance, it relies on an uncertain external network, resulting in inaccurate or even undetectable detection results. At the same time, it can also take advantage of the mutual detection between multiple antennas to improve the accuracy of detection results, so that electronic equipment can be accurately configured. The current transceiver antenna with the highest antenna performance is beneficial to improve the communication performance of electronic equipment. In addition, using pre-measured calibration data to evaluate the antenna performance of the antenna to be selected can effectively reflect the subtle state changes of the antenna, thereby further improving the accuracy and reliability of the antenna detection results.
请参阅图5,图5是本申请实施例公开的又一种天线检测方法的流程示意图,该方法可以应用于上述的电子设备,该电子设备可以包括多个待选天线。其中,上述多个待选天线可以包括主集天线以及分集天线,该主集天线可以包括外置主天线和内置主天线,该分集天线可以包括外置分集天线和内置分集天线。如图5所示,该天线检测方法可以包括以下步骤:Please refer to FIG. 5. FIG. 5 is a schematic flowchart of another antenna detection method disclosed in an embodiment of the present application. The method can be applied to the above-mentioned electronic device, and the electronic device may include a plurality of antennas to be selected. The plurality of candidate antennas may include main antennas and diversity antennas, the main antennas may include external main antennas and built-in main antennas, and the diversity antennas may include external diversity antennas and built-in diversity antennas. As shown in Figure 5, the antenna detection method may include the following steps:
502、响应电子设备的天线检测指令,将目标待选天线设置为信号发射状态,以触发该目标待选天线按照最大发射功率发射检测信号,其中,该目标待选天线为上述多个待选天线中的任一待选天线。502. In response to the antenna detection instruction of the electronic device, set the target candidate antenna to a signal transmission state, so as to trigger the target candidate antenna to transmit a detection signal according to the maximum transmission power, wherein the target candidate antenna is the above-mentioned multiple candidate antennas any of the selected antennas.
504、在目标待选天线处于信号发射状态的情况下,将该目标待选天线对应的多个检测天线设置为信号接收状态。504. In the case that the target candidate antenna is in a signal transmitting state, set the plurality of detection antennas corresponding to the target candidate antenna to a signal receiving state.
506、通过处于信号接收状态的各个目标待选天线对应的检测天线,分别接收上述检测信号对应的接收信号,并根据该接收信号确定目标待选天线对应的接收信号强度。506. Receive the received signals corresponding to the detection signals through the detection antennas corresponding to the respective target candidate antennas in the signal receiving state, respectively, and determine the received signal strengths corresponding to the target candidate antennas according to the received signals.
其中,步骤502、步骤504以及步骤506均已在上述步骤402以及步骤404的具体实施方式中阐述,此处不再赘述。Wherein,
需要说明的是,在一些实施例中,电子设备可以通过专用的射频收发模块来对上述各个待选天线的收发状态进行控制,从而可以针对目标待选天线以及该目标待选天线对应的各个检测天线进行相应的设置。It should be noted that, in some embodiments, the electronic device can control the transceiver status of each of the above-mentioned candidate antennas through a dedicated radio frequency transceiver module, so that the target candidate antenna and each detection corresponding to the target candidate antenna can be detected. The antenna is set accordingly.
示例性地,电子设备在将目标待选天线设置为信号发射状态时,可以响应于该电子设备的天线检测指令,通过第一开关电路,导通目标待选天线与射频收发模块之间的连接通路,以使得上述射频收发模块可以用于控制该目标待选天线进行信号收发。而在上述目标待选天线处于信号发射状态的情况下,电子设备还可以通过各个第二开关电路,分别导通目标待选天线对应的多个检测天线与射频收发模块之间的连接通路,以使得上述射频收发模块还可以进一步用于控制该目标待选天线对应的各个检测天线进行信号接收。Exemplarily, when the electronic device sets the target candidate antenna to the signal transmission state, in response to the antenna detection instruction of the electronic device, the connection between the target candidate antenna and the radio frequency transceiver module can be turned on through the first switch circuit. channel, so that the above-mentioned radio frequency transceiver module can be used to control the target candidate antenna to send and receive signals. When the above-mentioned target candidate antenna is in the signal transmission state, the electronic device can also conduct the connection paths between the plurality of detection antennas corresponding to the target candidate antenna and the radio frequency transceiver module through each second switch circuit, so as to Therefore, the above-mentioned radio frequency transceiver module can be further used to control each detection antenna corresponding to the target candidate antenna to receive signals.
具体举例来说,请参阅图6,图6是本申请实施例公开的一种天线检测电路的结构示意图。如图6所示,该天线检测电路可以包括多个待选天线610以及射频收发模块620。其中,多个待选天线610可以包括外置主天线611和内置主天线612,以及外置分集天线613和内置分集天线614。而上述射频收发模块620,则可以包括射频收发器621以及主集射频收发组件622和分集射频收发组件623。For a specific example, please refer to FIG. 6 , which is a schematic structural diagram of an antenna detection circuit disclosed in an embodiment of the present application. As shown in FIG. 6 , the antenna detection circuit may include a plurality of
示例性地,为了实现对主集天线的控制,射频收发器621可以通过第一主集开关电路631以及第二主集开关电路632来分别与上述外置主天线611和内置主天线612连接,而该外置主天线611和内置主天线612还可以分别通过第三主集开关电路633与主集射频收发组件622连接,以通过该主集射频收发组件622连接至射频收发器621实现信号收发。Exemplarily, in order to control the main set antenna, the
在此基础上,当外置主天线611被设为目标待选天线时,该外置主天线611可以通过上述第一主集开关电路631以及第三主集开关电路633导通至主集射频收发组件622,从而可以用于发射检测信号。此时,内置主天线612则可以通过第二主集开关电路632直接导通至射频收发器621,以用于接收上述检测信号对应的接收信号。On this basis, when the external
当内置主天线612被设为目标待选天线时,该内置主天线612则可以通过上述第二主集开关电路632以及第三主集开关电路633导通至主集射频收发组件622,从而可以用于发射检测信号。此时,外置主天线611可以通过第一主集开关电路631直接导通至射频收发器621,以用于接收上述检测信号对应的接收信号。When the built-in
类似地,为了实现对分集天线的控制,射频收发器621可以通过第一分集开关电路641以及第二分集开关电路642来分别与上述外置分集天线613和内置分集天线614连接,而该外置分集天线613和内置分集天线614还可以分别通过第三分集开关电路643与分集射频收发组件623连接,以通过该分集射频收发组件623连接至射频收发器621实现信号收发。Similarly, in order to realize the control of the diversity antenna, the
可以理解,无论是上述外置主天线611还是内置主天线612作为目标待选天线,此时的外置分集天线613和内置分集天线614均可作为目标待选天线对应的检测天线,直接导通至射频收发器621,以用于接收目标待选天线对应的接收信号。而无论是上述外置分集天线613还是内置分集天线614作为目标待选天线,此时的外置主天线611和内置主天线612也均可作为目标待选天线对应的检测天线,直接导通至射频收发器621来接收相应的接收信号。It can be understood that, whether the above-mentioned external
508、根据外置主天线对应的信号强度,以及内置主天线对应的信号强度,从上述外置主天线和内置主天线中确定出天线性能最高的目标主集天线;以及,根据外置分集天线对应的信号强度,以及内置分集天线对应的信号强度,从上述外置分集天线和内置分集天线中确定出天线性能最高的目标分集天线。508. Determine the target main set antenna with the highest antenna performance from the external main antenna and the built-in main antenna according to the signal strength corresponding to the external main antenna and the signal strength corresponding to the built-in main antenna; and, according to the external diversity antenna The corresponding signal strength, and the signal strength corresponding to the built-in diversity antenna, determine the target diversity antenna with the highest antenna performance from the above-mentioned external diversity antenna and built-in diversity antenna.
510、将目标主集天线及目标分集天线配置为电子设备的收发天线。510. Configure the target main set antenna and the target diversity antenna as the transceiver antennas of the electronic device.
其中,步骤508以及步骤510与上述步骤204类似。需要说明的是,在本申请实施例中,电子设备可以在检测天线性能时利用全部4个待选天线(即外置主天线、内置主天线、外置分集天线以及内置分集天线)进行相互检测;而在配置该电子设备的收发天线时,则可以从2个主集天线以及2个分集天线中分别配置相应的目标主集天线以及目标分集天线。通过对电子设备的主集天线以及分集天线分别进行配置,能够灵活地设置电子设备的收发天线,尽可能提升该电子设备的通信性能。Wherein, step 508 and step 510 are similar to step 204 above. It should be noted that, in this embodiment of the present application, the electronic device may use all four candidate antennas (ie, the external main antenna, the built-in main antenna, the external diversity antenna, and the built-in diversity antenna) to perform mutual detection when detecting the performance of the antenna. When configuring the transceiver antenna of the electronic device, the corresponding target main antenna and target diversity antenna can be configured from the two main antennas and the two diversity antennas respectively. By separately configuring the main antenna and the diversity antenna of the electronic device, the transceiver antenna of the electronic device can be flexibly set, and the communication performance of the electronic device can be improved as much as possible.
其中,电子设备在根据各个待选天线对应的信号强度确定天线性能最高的目标主集天线以及目标分集天线时,可以分别将各个待选天线对应的信号强度,与相应的校准数据进行比较,并根据比较结果确定出信号强度下降最小的待选天线,作为天线性能最高的待选天线。示例性地,电子设备可以根据上述比较结果,从外置主天线和内置主天线中确定出信号强度下降最小的一者,作为目标主集天线;同时,还可以从外置分集天线和内置分集天线中确定出信号强度下降最小的一者,作为目标分集天线。Wherein, when the electronic device determines the target main set antenna and the target diversity antenna with the highest antenna performance according to the signal strength corresponding to each candidate antenna, it can compare the signal strength corresponding to each candidate antenna with the corresponding calibration data, and According to the comparison result, the candidate antenna with the smallest signal strength drop is determined as the candidate antenna with the highest antenna performance. Exemplarily, the electronic device can determine, from the external main antenna and the built-in main antenna, the one with the smallest signal strength drop according to the above comparison result, as the target main antenna; Among the antennas, the one with the smallest signal strength drop is determined as the target diversity antenna.
可见,实施上述实施例所描述的天线检测方法,设有多天线的电子设备能够利用各个待选天线相互作为彼此的检测天线,进而可以准确检测出其中天线性能最高的待选天线,既能够避免在检测天线性能时依赖不确定的外部网络而导致出现检测结果失准甚至无法检测的情况,同时也能够利用多天线之间相互检测的优势,提升检测结果的准确性,使得电子设备可以准确配置当前天线性能最高的收发天线,从而有利于提升电子设备的通信性能。此外,通过对电子设备的主集天线以及分集天线分别进行配置,能够灵活地设置电子设备的收发天线,尽可能提升该电子设备的通信性能。It can be seen that, by implementing the antenna detection method described in the above embodiment, an electronic device with multiple antennas can use each candidate antenna as each other's detection antennas, and then can accurately detect the candidate antenna with the highest antenna performance, which can avoid When detecting antenna performance, it relies on an uncertain external network, resulting in inaccurate or even undetectable detection results. At the same time, it can also take advantage of the mutual detection between multiple antennas to improve the accuracy of detection results, so that electronic equipment can be accurately configured. The current transceiver antenna with the highest antenna performance is beneficial to improve the communication performance of electronic equipment. In addition, by separately configuring the main antenna and the diversity antenna of the electronic device, the transceiver antenna of the electronic device can be flexibly set, and the communication performance of the electronic device can be improved as much as possible.
请参阅图7,图7是本申请实施例公开的一种天线检测装置的模块化示意图,该天线检测装置可以应用于上述的电子设备,该电子设备可以包括多个待选天线。其中,上述多个待选天线可以包括主集天线以及分集天线,该主集天线可以包括外置主天线和内置主天线,该分集天线可以包括外置分集天线和内置分集天线。如图7所示,该天线检测装置可以包括信号检测单元701以及天线确定单元702,其中:Please refer to FIG. 7. FIG. 7 is a modular schematic diagram of an antenna detection apparatus disclosed in an embodiment of the present application. The antenna detection apparatus may be applied to the above-mentioned electronic equipment, and the electronic equipment may include a plurality of candidate antennas. The plurality of candidate antennas may include main antennas and diversity antennas, the main antennas may include external main antennas and built-in main antennas, and the diversity antennas may include external diversity antennas and built-in diversity antennas. As shown in FIG. 7 , the antenna detection apparatus may include a
信号检测单元701,用于分别在每个待选天线处于信号发射状态的情况下,通过与各个待选天线对应的检测天线,检测各个待选天线对应的信号强度,其中,目标待选天线对应的检测天线,包括多个待选天线中,除该目标待选天线以外的其他待选天线,该目标待选天线为上述多个待选天线中的任一待选天线;The
天线确定单元702,用于根据各个待选天线对应的信号强度,从多个待选天线中确定出天线性能最高的待选天线,并将该天线性能最高的待选天线配置为电子设备的收发天线。The
可见,采用上述实施例所描述的天线检测装置,设有多天线的电子设备能够利用各个待选天线相互作为彼此的检测天线,进而可以准确检测出其中天线性能最高的待选天线。这样的天线检测方法可以避免在检测天线性能时依赖不确定的外部网络,而导致出现检测结果失准甚至无法检测的情况。同时,也能够利用多天线之间相互检测的优势,提升检测结果的准确性,使得电子设备可以准确配置当前天线性能最高的收发天线,从而有利于提升电子设备的通信性能。It can be seen that, using the antenna detection device described in the above embodiments, an electronic device with multiple antennas can use each candidate antenna as detection antennas for each other, thereby accurately detecting the candidate antenna with the highest antenna performance. Such an antenna detection method can avoid relying on an uncertain external network when detecting antenna performance, resulting in inaccurate or even undetectable detection results. At the same time, the advantages of mutual detection between multiple antennas can also be used to improve the accuracy of the detection results, so that the electronic device can accurately configure the current transceiver antenna with the highest antenna performance, thereby helping to improve the communication performance of the electronic device.
在一种实施例中,上述信号检测单元701可以包括未图示的第一设置子单元以及信号接收子单元,其中:In an embodiment, the above-mentioned
第一设置子单元,用于在目标待选天线处于信号发射状态的情况下,将该目标待选天线对应的多个检测天线设置为信号接收状态;a first setting subunit, configured to set a plurality of detection antennas corresponding to the target candidate antenna to a signal receiving state when the target candidate antenna is in a signal transmitting state;
信号接收子单元,用于通过处于信号接收状态的各个目标待选天线对应的检测天线,分别检测该目标待选天线对应的接收信号强度。The signal receiving subunit is used to detect the received signal strength corresponding to the target candidate antenna through the detection antenna corresponding to each target candidate antenna in the signal receiving state.
在一种实施例中,上述信号检测单元701还可以包括未图示的第二设置子单元,其中:In an embodiment, the above-mentioned
第二设置子单元,用于响应电子设备的天线检测指令,将目标待选天线设置为信号发射状态,以触发该目标待选天线按照最大发射功率发射检测信号;The second setting subunit is used to set the target candidate antenna to a signal transmission state in response to the antenna detection instruction of the electronic device, so as to trigger the target candidate antenna to transmit a detection signal according to the maximum transmission power;
上述信号接收子单元,具体可以用于通过处于信号接收状态的各个目标待选天线对应的检测天线,分别接收上述检测信号对应的接收信号,并根据该接收信号确定目标待选天线对应的接收信号强度。The above-mentioned signal receiving subunit can specifically be used to receive the received signal corresponding to the above-mentioned detection signal through the detection antenna corresponding to each target candidate antenna in the signal receiving state, and determine the corresponding received signal according to the target candidate antenna according to the received signal. strength.
其中,上述第二设置子单元在设置目标待选天线为信号发射状态时,具体可以是响应电子设备的天线检测指令,通过第一开关电路,导通目标待选天线与射频收发模块之间的连接通路,其中,该射频收发模块用于控制目标待选天线进行信号收发;Wherein, when the above-mentioned second setting sub-unit sets the target candidate antenna to be in the signal transmission state, it may specifically respond to the antenna detection instruction of the electronic device, and conduct the connection between the target candidate antenna and the radio frequency transceiver module through the first switch circuit. a connection path, wherein the radio frequency transceiver module is used to control the target candidate antenna to send and receive signals;
上述第一设置子单元在设置检测天线为信号接收状态时,具体可以是在目标待选天线处于信号发射状态的情况下,通过各个第二开关电路,分别导通该目标待选天线对应的多个检测天线与射频收发模块之间的连接通路,其中,该射频收发模块用于控制各个目标待选天线对应的检测天线进行信号接收。When the above-mentioned first setting subunit sets the detection antenna to be in the signal receiving state, specifically, when the target antenna to be selected is in the signal transmission state, through each second switch circuit, the multiple corresponding antennas of the target to be selected are turned on respectively. A connection path between each detection antenna and a radio frequency transceiver module, wherein the radio frequency transceiver module is used to control the detection antenna corresponding to each target candidate antenna to receive signals.
在一种实施例中,针对上述多个待选天线包括主集天线以及分集天线的情况,上述天线确定单元702可以包括未图示的第一确定子单元、第二确定子单元以及天线配置子单元,其中:In an embodiment, in the case where the plurality of candidate antennas include the main antenna and the diversity antenna, the
第一确定子单元,用于根据上述外置主天线对应的信号强度,以及内置主天线对应的信号强度,从该外置主天线和所述内置主天线中确定出天线性能最高的目标主集天线;The first determination subunit is used to determine the target main set with the highest antenna performance from the external main antenna and the built-in main antenna according to the signal strength corresponding to the external main antenna and the signal strength corresponding to the built-in main antenna antenna;
第二确定子单元,用于根据上述外置分集天线对应的信号强度,以及内置分集天线对应的信号强度,从该外置分集天线和所述内置分集天线中确定出天线性能最高的目标分集天线;The second determination subunit is configured to determine the target diversity antenna with the highest antenna performance from the external diversity antenna and the built-in diversity antenna according to the signal strength corresponding to the external diversity antenna and the signal strength corresponding to the built-in diversity antenna ;
天线配置子单元,用于将上述目标主集天线及目标分集天线配置为该电子设备的收发天线。The antenna configuration subunit is used to configure the above-mentioned target main antenna and target diversity antenna as the transceiver antenna of the electronic device.
可见,采用上述实施例所描述的天线检测装置,通过对电子设备的主集天线以及分集天线分别进行配置,能够灵活地设置电子设备的收发天线,尽可能提升该电子设备的通信性能。It can be seen that by using the antenna detection device described in the above embodiments, by configuring the main antenna and the diversity antenna of the electronic device respectively, the transceiver antenna of the electronic device can be flexibly set, and the communication performance of the electronic device can be improved as much as possible.
在一种实施例中,上述天线确定单元702具体可以分别将各个待选天线对应的信号强度,与相应的校准数据进行比较,并根据比较结果确定出信号强度下降最小的待选天线,作为天线性能最高的待选天线,其中,校准数据包括各个待选天线对应的最大测量信号强度。在此基础上,若电子设备当前配置的收发天线不为上述天线性能最高的待选天线,则可以将其当前配置的收发天线切换为该天线性能最高的待选天线。In an embodiment, the
可见,采用上述实施例所描述的天线检测装置,设有多天线的电子设备能够利用各个待选天线相互作为彼此的检测天线,进而可以准确检测出其中天线性能最高的待选天线,既能够避免在检测天线性能时依赖不确定的外部网络而导致出现检测结果失准甚至无法检测的情况,同时也能够利用多天线之间相互检测的优势,提升检测结果的准确性,使得电子设备可以准确配置当前天线性能最高的收发天线,从而有利于提升电子设备的通信性能。此外,利用预先测定的校准数据来对待选天线的天线性能进行评判,能够有效体现天线的细微状态变化,从而有利于进一步提升天线检测结果的准确性和可靠性。It can be seen that, using the antenna detection device described in the above embodiment, an electronic device with multiple antennas can use each candidate antenna as the detection antenna for each other, and then can accurately detect the candidate antenna with the highest antenna performance, which can avoid When detecting antenna performance, it relies on an uncertain external network, resulting in inaccurate or even undetectable detection results. At the same time, it can also take advantage of the mutual detection between multiple antennas to improve the accuracy of detection results, so that electronic equipment can be accurately configured. The current transceiver antenna with the highest antenna performance is beneficial to improve the communication performance of electronic equipment. In addition, using pre-measured calibration data to evaluate the antenna performance of the antenna to be selected can effectively reflect the subtle state changes of the antenna, thereby further improving the accuracy and reliability of the antenna detection results.
请参阅图8,图8是本申请实施例公开的一种电子设备的模块化示意图。如图8所示,该电子设备可以包括:Please refer to FIG. 8 , which is a schematic diagram of a modularization of an electronic device disclosed in an embodiment of the present application. As shown in Figure 8, the electronic device may include:
存储有可执行程序代码的存储器801;a
与存储器801耦合的处理器802;a
其中,处理器802调用存储器801中存储的可执行程序代码,可以执行上述实施例所描述的任意一种天线检测方法中的全部或部分步骤。The
此外,本申请实施例进一步公开了一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,该计算机程序使得计算机可以执行上述实施例所描述的任意一种天线检测方法中的全部或部分步骤。In addition, the embodiments of the present application further disclose a computer-readable storage medium, which stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute any of the antenna detection methods described in the above embodiments. all or part of the steps.
此外,本申请实施例进一步公开一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机可以执行上述实施例所描述的任意一种天线检测方法中的全部或部分步骤。In addition, the embodiments of the present application further disclose a computer program product, when the computer program product runs on a computer, the computer can execute all or part of the steps in any of the antenna detection methods described in the above embodiments.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其它光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其它介质。Those of ordinary skill 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 storage medium, and the storage medium includes a read-only storage medium. Memory (Read-Only Memory, ROM), Random Access Memory (Random Access Memory, RAM), Programmable Read-only Memory (PROM), Erasable Programmable Read Only Memory (Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), CompactDisc Read -Only Memory, CD-ROM) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
以上对本申请实施例公开的一种天线检测方法及装置、电子设备、存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The antenna detection method and device, electronic device, and storage medium disclosed in the embodiments of the present application have been described in detail above. The principles and implementations of the present application are described with specific examples. The descriptions of the above embodiments are only used for In order to help understand the method of the present application and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation and application scope. In summary, this specification The content should not be construed as a limitation on this application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210050928.5A CN114374417A (en) | 2022-01-17 | 2022-01-17 | Antenna detection method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210050928.5A CN114374417A (en) | 2022-01-17 | 2022-01-17 | Antenna detection method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114374417A true CN114374417A (en) | 2022-04-19 |
Family
ID=81144657
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210050928.5A Pending CN114374417A (en) | 2022-01-17 | 2022-01-17 | Antenna detection method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114374417A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115173885A (en) * | 2022-06-30 | 2022-10-11 | Oppo广东移动通信有限公司 | Channel switching method and device, electronic equipment and computer readable medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018040572A1 (en) * | 2016-08-29 | 2018-03-08 | 纳恩博(北京)科技有限公司 | Antenna control method, apparatus and computer storage medium |
CN111654341A (en) * | 2020-05-29 | 2020-09-11 | 北京小米移动软件有限公司 | Method, device, equipment and storage medium for testing wireless communication equipment |
CN112290983A (en) * | 2020-10-30 | 2021-01-29 | 深圳移航通信技术有限公司 | Antenna selection method and device |
-
2022
- 2022-01-17 CN CN202210050928.5A patent/CN114374417A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018040572A1 (en) * | 2016-08-29 | 2018-03-08 | 纳恩博(北京)科技有限公司 | Antenna control method, apparatus and computer storage medium |
CN111654341A (en) * | 2020-05-29 | 2020-09-11 | 北京小米移动软件有限公司 | Method, device, equipment and storage medium for testing wireless communication equipment |
CN112290983A (en) * | 2020-10-30 | 2021-01-29 | 深圳移航通信技术有限公司 | Antenna selection method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115173885A (en) * | 2022-06-30 | 2022-10-11 | Oppo广东移动通信有限公司 | Channel switching method and device, electronic equipment and computer readable medium |
CN115173885B (en) * | 2022-06-30 | 2023-10-03 | Oppo广东移动通信有限公司 | Method and device for switching access, electronic equipment and computer readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107294557B (en) | Radio frequency front-end circuit and complete machine coupling test method of mobile terminal | |
CN106464389B (en) | Antenna test device, system, method and related equipment | |
CN102565582B (en) | Test device of radio frequency identification equipment | |
US12336033B2 (en) | Device control method, computer-readable storage medium, and electronic device for dual Wi-Fi | |
CN112782567B (en) | Chip testing system, method, device, medium and equipment | |
CN113078961B (en) | Detection method and detection device for testing state of electronic equipment | |
KR20210028841A (en) | An electronic device and method for calibrating and detecting ferformance of a radio frequency intergrated circuit | |
CN116996135A (en) | Channel configuration apparatus, method, readable medium and equipment for radio frequency conduction testing | |
CN114374417A (en) | Antenna detection method and device, electronic equipment and storage medium | |
WO2022002099A1 (en) | Standing wave detection method, standing wave detection apparatus, and network device | |
US11012164B2 (en) | Systems and methods for radio frequency head validation via antenna coupling or signal reflection | |
US10693545B2 (en) | Different sector rotation speeds for post-amble processing of a beam forming packet | |
KR102342396B1 (en) | Method, apparatus and computer readable storage medium for measuring radio performance of a receiver of a wireless terminal | |
CN116388895B (en) | Antenna testing device and method | |
CN108923866B (en) | Antenna calibration method, device, terminal equipment and storage medium | |
CN111224723B (en) | Calibration method and system of radio frequency front-end module, electronic equipment and storage medium | |
CN116137552A (en) | Antenna calibration method and device, storage medium and electronic equipment | |
US20180317160A1 (en) | Method for detecting an external antenna connected to a communication device | |
US20250219300A1 (en) | Antenna system including multiple range antennas and multiple angle-of-arrival antennas for electronic devices | |
CN111464244A (en) | Radio frequency circuit, detection method and electronic device | |
CN222356367U (en) | RF front-end circuits and electronic equipment | |
CN120150857A (en) | Method for testing communication system of target device, electronic device and storage medium | |
US20190386754A1 (en) | Method for testing wireless transceiver | |
CN116506037A (en) | Radio frequency test junction box, system, method, device and storage medium | |
CN117997378A (en) | Ultra-wideband communication device, control method, system, control device and medium |
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 |