CN107465438B - Antenna switching method and mobile terminal - Google Patents
Antenna switching method and mobile terminal Download PDFInfo
- Publication number
- CN107465438B CN107465438B CN201710751906.0A CN201710751906A CN107465438B CN 107465438 B CN107465438 B CN 107465438B CN 201710751906 A CN201710751906 A CN 201710751906A CN 107465438 B CN107465438 B CN 107465438B
- Authority
- CN
- China
- Prior art keywords
- antenna
- call
- channel
- mobile terminal
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 230000005540 biological transmission Effects 0.000 claims abstract description 32
- 230000035945 sensitivity Effects 0.000 claims description 100
- 238000004891 communication Methods 0.000 claims description 26
- 238000006243 chemical reaction Methods 0.000 claims description 25
- 238000012360 testing method Methods 0.000 claims description 19
- 238000012790 confirmation Methods 0.000 claims description 13
- 238000004364 calculation method Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 4
- 230000005855 radiation Effects 0.000 claims description 4
- 230000006870 function Effects 0.000 description 12
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 230000001360 synchronised effect Effects 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000002184 metal Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 241000699666 Mus <mouse, genus> Species 0.000 description 1
- 241000699670 Mus sp. Species 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 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/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
- 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
- H04B1/0064—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 with separate antennas for the more than one band
-
- 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/0805—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 single receiver and 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
- H04B7/0805—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 single receiver and antenna switching
- H04B7/0814—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 single receiver and antenna switching based on current reception conditions, e.g. switching to different antenna when signal level is below threshold
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明提供了一种天线切换方法及移动终端,其中,所述方法包括:在接收到通话指令时,确定移动终端的通话模式;获取所述通话指令对应的当前通话信道;在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值;根据所述上天线加权值和下天线加权值,确定最优天线;切换至所述最优天线进行通话传输至本次通话结束。从而可以解决在上天线和下天线的信号强度相当时,会导致上下天线之间连续的来回切换,从而降低通话质量和数据传输质量的问题,可提高通话质量和数据传输质量。
The present invention provides an antenna switching method and a mobile terminal, wherein the method includes: when a call instruction is received, determining a call mode of the mobile terminal; obtaining a current call channel corresponding to the call instruction; In the call mode, obtain the weighted value of the upper antenna and the weighted value of the lower antenna corresponding to the current call channel; determine the optimal antenna according to the weighted value of the upper antenna and the weighted value of the lower antenna; switch to the optimal antenna for a call Transfer until the end of the call. Therefore, when the signal strengths of the upper antenna and the lower antenna are equal, continuous switching back and forth between the upper and lower antennas may be caused, thereby reducing the call quality and data transmission quality, and improving the call quality and data transmission quality.
Description
技术领域technical field
本发明涉及移动终端技术领域,尤其涉及一种天线切换方法及移动终端。The present invention relates to the technical field of mobile terminals, and in particular, to an antenna switching method and a mobile terminal.
背景技术Background technique
随着高端移动终端在人们日常生活中的日益普及,众多厂商使用金属后壳来提高移动终端的外形效果。而这种金属后壳会降低移动终端的天线发送和/或接收信号的质量。With the increasing popularity of high-end mobile terminals in people's daily life, many manufacturers use metal back shells to improve the appearance of mobile terminals. However, such a metal back shell will reduce the quality of the signal transmitted and/or received by the antenna of the mobile terminal.
现有技术中,为了提高天线发送和/或接收信号的质量,采用天线自由切换方法,在移动终端的上天线和下天线之间自由切换。具体步骤包括:首先,检测上天线和下天线的信号强度;然后,根据上天线和下天线的信号强度大小,确定最优天线从而实现天线切换;若上天线的信号强度大于下天线的信号强度时,将发送和/或接收信号从下天线切换至上天线;若上天线的信号强度小于下天线的信号强度时,将发送和/或接收信号从上天线切换至下天线。In the prior art, in order to improve the quality of the signal transmitted and/or received by the antenna, the antenna free switching method is adopted to freely switch between the upper antenna and the lower antenna of the mobile terminal. The specific steps include: first, detecting the signal strength of the upper antenna and the lower antenna; then, according to the signal strength of the upper antenna and the lower antenna, determining the optimal antenna to realize antenna switching; if the signal strength of the upper antenna is greater than that of the lower antenna When the signal strength of the upper antenna is lower than that of the lower antenna, the transmission and/or reception signal is switched from the upper antenna to the lower antenna.
对于上述天线切换的过程,在上天线和下天线的信号强度相当时,会导致上下天线之间连续的来回切换,从而降低通话质量和数据传输质量。For the above antenna switching process, when the signal strengths of the upper antenna and the lower antenna are equal, it will cause continuous switching back and forth between the upper and lower antennas, thereby reducing the call quality and data transmission quality.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供的天线切换方法及移动终端,可改善手机天线上下切换带来的信号不稳定,会跳变的现象,并通过固话上下天线的参数及加权值,调用上天线或者下天线,提高移动终端实际接通率和通话效果。The antenna switching method and mobile terminal provided by the embodiments of the present invention can improve the signal instability and jumping phenomenon caused by the up and down switching of the mobile phone antenna, and call the upper antenna or the lower antenna through the parameters and weighting values of the upper and lower antennas of the fixed phone , to improve the actual connection rate and call effect of the mobile terminal.
一方面,本发明实施例公开了一种天线切换方法,应用于移动终端,包括:On the one hand, an embodiment of the present invention discloses an antenna switching method, which is applied to a mobile terminal, including:
在接收到通话指令时,确定移动终端的通话模式;获取所述通话指令对应的当前通话信道;When receiving the call instruction, determine the call mode of the mobile terminal; obtain the current call channel corresponding to the call instruction;
在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值;In the call mode of the mobile terminal, obtain the upper antenna weight value and the lower antenna weight value corresponding to the current call channel;
根据所述上天线加权值和下天线加权值,确定最优天线;Determine the optimal antenna according to the weighted value of the upper antenna and the weighted value of the lower antenna;
切换至所述最优天线进行通话传输至本次通话结束。Switch to the optimal antenna for call transmission until the call ends.
另一方面,本发明实施例还公开了一种移动终端,包括:On the other hand, an embodiment of the present invention also discloses a mobile terminal, including:
通话模式确定模块,用于在接收到通话指令时,确定移动终端的通话模式;通话信道获取模块,用于获取所述通话指令对应的当前通话信道;a call mode determination module, used for determining the call mode of the mobile terminal when receiving a call instruction; a call channel acquisition module, used for acquiring the current call channel corresponding to the call instruction;
天线加权值获取模块,用于在所述通话模式确定模块确定的移动终端的通话模式下,获取所述通话信道获取模块获取的当前通话信道对应的上天线加权值和下天线加权值;an antenna weighted value acquisition module, configured to acquire the upper antenna weighted value and the lower antenna weighted value corresponding to the current communication channel acquired by the communication channel acquisition module in the communication mode of the mobile terminal determined by the communication mode determination module;
最优天线确定模块,用于根据所述天线加权值获取模块获取的上天线加权值和下天线加权值,确定最优天线;an optimal antenna determination module, configured to determine the optimal antenna according to the upper antenna weighted value and the lower antenna weighted value obtained by the antenna weighted value acquisition module;
天线切换模块,用于切换至所述最优天线确定模块确定的最优天线进行通话传输至本次通话结束。The antenna switching module is configured to switch to the optimal antenna determined by the optimal antenna determining module to perform call transmission until the current call ends.
在本发明实施例中,通过在接收到通话指令时,确定移动终端的通话模式;获取所述通话指令对应的当前通话信道;在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值;根据所述上天线加权值和下天线加权值,确定最优天线;切换至所述最优天线进行通话传输至本次通话结束。从而可以解决在上天线和下天线的信号强度相当时,会导致上下天线之间连续的来回切换,从而降低通话质量和数据传输质量的问题,达到提高通话质量和数据传输质量的目的。In the embodiment of the present invention, when a call instruction is received, the call mode of the mobile terminal is determined; the current call channel corresponding to the call instruction is obtained; in the call mode of the mobile terminal, the current call channel corresponding to the current call channel is obtained The upper antenna weighted value and the lower antenna weighted value are determined; the optimal antenna is determined according to the upper antenna weighted value and the lower antenna weighted value; and the call is transferred to the optimal antenna until the call ends. Therefore, when the signal strengths of the upper antenna and the lower antenna are equal, continuous switching back and forth between the upper and lower antennas will be caused, thereby reducing the quality of the call and the quality of data transmission, so as to achieve the purpose of improving the quality of the call and the data transmission.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the drawings that are used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. , for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.
图1示出了本发明实施例一中的一种天线切换方法的步骤流程图;FIG. 1 shows a flowchart of steps of an antenna switching method in Embodiment 1 of the present invention;
图2示出了本发明实施例二中的一种天线切换方法的步骤流程图;FIG. 2 shows a flowchart of steps of an antenna switching method in
图3示出了本发明实施例三中的一种移动终端的结构框图;3 shows a structural block diagram of a mobile terminal in Embodiment 3 of the present invention;
图4示出了本发明实施例四中的一种移动终端的结构框图;4 shows a structural block diagram of a mobile terminal in Embodiment 4 of the present invention;
图5示出了本发明实施例五中的一种移动终端的结构框图;5 shows a structural block diagram of a mobile terminal in Embodiment 5 of the present invention;
图6示出了本发明实施例六中的一种移动终端的结构框图。FIG. 6 shows a structural block diagram of a mobile terminal in Embodiment 6 of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
下面通过列举几个具体的实施例详细介绍本发明提供的一种天线切换方法及移动终端。The antenna switching method and the mobile terminal provided by the present invention are described in detail below by listing several specific embodiments.
实施例一Example 1
参照图1,示出了本发明实施例一的一种天线切换方法的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1, a flowchart of steps of an antenna switching method according to Embodiment 1 of the present invention is shown, which may specifically include the following steps:
步骤101,在接收到通话指令时,确定移动终端的通话模式。
在本发明优选实施方式中,所述通话模式包括但是不限于:耳机通话模式、手持人头模式及USB充电耳机模式;其中,耳机通话模式包括:使用耳机进行通话的方式;手持人头模式包括直接将移动终端置于耳朵旁边进行通话的方式;USB(Universal serial Bus,通用串行总线)充电耳机模式包括:通过USB充电过程中使用耳机进行通话的模式。In a preferred embodiment of the present invention, the call modes include but are not limited to: a headset call mode, a hand-held head mode and a USB charging headset mode; wherein, the headset call mode includes: using a headset to make a call; the hand-held head mode includes directly The way in which the mobile terminal is placed next to the ear to make a call; the USB (Universal serial Bus, Universal Serial Bus) charging headset mode includes: a mode of using the headset to make a call during the USB charging process.
其中,通话指令为在用户点击屏幕上的接听按钮之后发送至移动终端 CPU(Central Processing Unit,中央处理单元)的消息。The call instruction is a message sent to the mobile terminal CPU (Central Processing Unit, central processing unit) after the user clicks the answer button on the screen.
具体地,当检测到耳机插入到耳机接口的信号时,确定通话模式为耳机通话模式;当光感传感器检测到光线由亮变暗时,确定通话模式为手持人头模式;当检测到移动USB充电电流和耳机插入信号时,确定通话模式为USB 充电耳机模式。Specifically, when the signal that the earphone is inserted into the earphone interface is detected, the call mode is determined to be the earphone call mode; when the light sensor detects that the light changes from bright to dark, the call mode is determined to be the hand-held head mode; when it is detected that the mobile USB charging When the current and the earphone are plugged into the signal, make sure that the call mode is the USB charging earphone mode.
步骤102,获取所述通话指令对应的当前通话信道。Step 102: Obtain the current call channel corresponding to the call instruction.
其中,通话信道在不同网络制式不同频段下而不同。信道和频率一一对应。Among them, the call channel is different under different network standards and different frequency bands. Channels and frequencies are in one-to-one correspondence.
在实际应用中,在移动终端入网注册时,可以记录入网对应的频段和信道,其中信道以编号的形式记录。In practical applications, when the mobile terminal is registered in the network, the frequency band and channel corresponding to the network access can be recorded, wherein the channel is recorded in the form of a number.
步骤103,在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值。Step 103: In the call mode of the mobile terminal, acquire the upper antenna weight value and the lower antenna weight value corresponding to the current call channel.
在实际应用中,移动终端对应上天线和下天线两个天线,均可以进行信号的传输,且可以在两个天线之间相互切换,从而达到较好的通话质量。In practical applications, the mobile terminal corresponds to the upper antenna and the lower antenna, both of which can transmit signals, and can switch between the two antennas, so as to achieve better call quality.
具体地,本发明实施例通过实际测试数据对上下天线分别计算上天线加权值和下天线加权值,用以确定最优天线。Specifically, in the embodiment of the present invention, the upper and lower antenna weighted values are respectively calculated for the upper and lower antennas through actual test data, so as to determine the optimal antenna.
步骤104,根据所述上天线加权值和下天线加权值,确定最优天线。Step 104: Determine the optimal antenna according to the weighted value of the upper antenna and the weighted value of the lower antenna.
具体地,加权值较大的天线为最优天线。Specifically, the antenna with the larger weight value is the optimal antenna.
步骤105,切换至所述最优天线进行通话传输至本次通话结束。
在本发明实施例中,通过上/下天线加权值确定最优天线进行本次通话的信号传输,并在下次通话时,重新根据上/下天线加权值重新确定最优天线,并进行下次通话的信号传输。In the embodiment of the present invention, the optimal antenna is determined according to the weighted value of the upper/lower antenna to perform signal transmission of the current call, and in the next call, the optimal antenna is re-determined according to the weighted value of the upper/lower antenna, and the next call is made again. Call signaling.
在本发明实施例中,通过在接收到通话指令时,确定移动终端的通话模式;获取所述通话指令对应的当前通话信道;在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值;根据所述上天线加权值和下天线加权值,确定最优天线;切换至所述最优天线进行通话传输至本次通话结束。从而可以解决在上天线和下天线的信号强度相当时,会导致上下天线之间连续的来回切换,从而降低通话质量和数据传输质量的问题,取得了提高通话质量和数据传输质量的有益效果。In the embodiment of the present invention, when a call instruction is received, the call mode of the mobile terminal is determined; the current call channel corresponding to the call instruction is obtained; in the call mode of the mobile terminal, the current call channel corresponding to the current call channel is obtained The upper antenna weighted value and the lower antenna weighted value are determined; the optimal antenna is determined according to the upper antenna weighted value and the lower antenna weighted value; and the call is transferred to the optimal antenna until the call ends. Therefore, when the signal strengths of the upper antenna and the lower antenna are equal, continuous switching back and forth between the upper and lower antennas can be solved, thereby reducing the quality of the call and the quality of data transmission.
实施例二
参照图2,示出了本发明实施例二的一种天线切换方法的步骤流程图,具体可以包括如下步骤:Referring to FIG. 2, a flowchart of steps of an antenna switching method according to
步骤201,针对各通话模式下的各网络制式,测试各频段中的指定信道对应的上天线总辐射功率、上天线总全向灵敏度、下天线总辐射功率、下天线总全向灵敏度。
其中,网络制式包括:GSM(Global System for Mobile Communication,全球移动通信网络)、CDMA(Code Division Multiple Access,码分多址)、 TDSCDMA(TimeDivision-Synchronous Code Division Multiple Access,时分同步码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)。Among them, the network standard includes: GSM (Global System for Mobile Communication, global mobile communication network), CDMA (Code Division Multiple Access, code division multiple access), TDSCDMA (Time Division-Synchronous Code Division Multiple Access, time division synchronous code division multiple access) , WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access).
在本发明实施例中,对于GSM,分别测试频段EGSM900下的信道975、 38、124,频段DCS1800下的信道512、698、885,其中,975、38、124、 512、698、885均为信道编号,每个频段下测试高中低三个典型频率的信道。例如,信道975、512为高频信道,信道38、698为中频信道,信道124、885 为低频信道。In the embodiment of the present invention, for GSM, channels 975, 38, and 124 in the frequency band EGSM900 and channels 512, 698, and 885 in the frequency band DCS1800 are respectively tested, wherein 975, 38, 124, 512, 698, and 885 are all channels. No., test channels of three typical frequencies of high, medium and low in each frequency band. For example, channels 975 and 512 are high frequency channels, channels 38 and 698 are intermediate frequency channels, and channels 124 and 885 are low frequency channels.
对于我国CDMA,分别测试频段CDMA2000下的信道37、78、119、 160、201、242、283。在实际应用中,可以选择测试高频信道37,中频信道 160,低频信道283。对于国际CDMA,分别测试频段CDMA2000的高频信道384、中频信道777、低频信道1013。For my country's CDMA, the
对于TDSCDMA,分别测试频段BAND34下的信道10054、10087、10121, BAND39下的高频信道9404、中频信道9500、低频信道9596。For TDSCDMA, the channels 10054, 10087, and 10121 under the frequency band BAND34, the high-frequency channel 9404, the intermediate-frequency channel 9500, and the low-frequency channel 9596 under the BAND39 are tested respectively.
对于WCDMA,分别测试频段BAND1下的高频信道9612、中频信道 9750、低频信道9888。For WCDMA, test the high frequency channel 9612, the intermediate frequency channel 9750, and the low frequency channel 9888 under the frequency band BAND1 respectively.
可以理解,在本发明实施例中选择了部分典型的高中低频信道,在实际应用中还可以选择其他典型信道,本发明实施例对其不加以限制。It can be understood that some typical high, middle and low frequency channels are selected in the embodiments of the present invention, and other typical channels may also be selected in practical applications, which are not limited in the embodiments of the present invention.
本发明实施例通过测试实际应用数据,预测各种场景下的天线加权值。在实际应用中,还可以周期性的测试,从而保证天线加权值更可靠。The embodiments of the present invention predict antenna weighting values in various scenarios by testing actual application data. In practical applications, periodic testing can also be performed to ensure that the antenna weighting value is more reliable.
步骤202,针对所述各指定信道,根据对应的所述上天线总辐射功率、上天线总全向灵敏度计算上天线加权值及根据对应的所述下天线总辐射功率、下天线总全向灵敏度计算下天线加权值。
可以理解,天线总辐射功率和天线总全向灵敏度均影响信号的传输质量,天线总辐射功率越大,传输质量越好,天线加权值越大,总辐射功率越小,传输质量越差,天线加权值越小;天线总全向灵敏度越大,传输质量越好,天线加权值越大,总全向灵敏度越小,传输质量越差,天线加权值越小。从而天线总辐射功率和总全向灵敏度均较大时,天线加权值较大,天线为最优天线。It can be understood that the total radiated power of the antenna and the total omnidirectional sensitivity of the antenna both affect the transmission quality of the signal. The larger the total radiated power of the antenna, the better the transmission quality. The smaller the weighted value; the greater the total omnidirectional sensitivity of the antenna, the better the transmission quality; the larger the antenna weighted value, the smaller the total omnidirectional sensitivity, the worse the transmission quality, and the smaller the antenna weighted value. Therefore, when the total radiated power and total omnidirectional sensitivity of the antenna are both large, the weighted value of the antenna is large, and the antenna is the optimal antenna.
可选地,在本发明的另一种实施例中,步骤202包括子步骤2021至2024:Optionally, in another embodiment of the present invention,
子步骤2021,分别将上天线总全向灵敏度的绝对值及下天线总全向灵敏度的绝对值除以第一转换值,得到第一上天线总全向灵敏度及第一下天线总全向灵敏度。Sub-step 2021, divide the absolute value of the total omnidirectional sensitivity of the upper antenna and the absolute value of the total omnidirectional sensitivity of the lower antenna by the first conversion value to obtain the total omnidirectional sensitivity of the first upper antenna and the total omnidirectional sensitivity of the first lower antenna .
具体地,第一上天线总全向灵敏度和第一下天线总全向灵敏度均可以根据如下公式(1)进行计算:Specifically, the total omnidirectional sensitivity of the first upper antenna and the total omnidirectional sensitivity of the first lower antenna can be calculated according to the following formula (1):
Sf=|St|/Tf (1)S f =|S t |/T f (1)
其中,Sf为第一上天线总全向灵敏度或第一下天线总全向灵敏度,St为上天线总全向灵敏度或下天线总全向灵敏度,第一转换值Tf为经验值。由于总全向灵敏度比总辐射功率高数倍,为了在计算天线加权值时,总辐射功率的影响不被忽略掉,将总全向灵敏度除以第一转换值。在本发明实施例中,第一转换值为4。可以理解,第一转换值可以在4上下浮动,本发明实施例对其不加以限制。此外,还可以对总辐射功率乘以第一转换值,从而使得总辐射功率和总全向灵敏度在数量级上相当。Wherein, S f is the total omnidirectional sensitivity of the first upper antenna or the total omnidirectional sensitivity of the first lower antenna, S t is the total omnidirectional sensitivity of the upper antenna or the total omnidirectional sensitivity of the lower antenna, and the first conversion value T f is an empirical value. Since the total omnidirectional sensitivity is several times higher than the total radiated power, in order to not ignore the influence of the total radiated power when calculating the antenna weighting value, the total omnidirectional sensitivity is divided by the first conversion value. In this embodiment of the present invention, the first conversion value is 4. It can be understood that the first conversion value may float up or down 4, which is not limited in this embodiment of the present invention. Furthermore, the total radiated power can also be multiplied by the first conversion value, so that the total radiated power and the total isotropic sensitivity are comparable in magnitude.
子步骤2022,分别将所述第一上天线总全向灵敏度及第一下天线总全向灵敏度乘以第一加权参数,得到上天线第一结果及下天线第一结果。Sub-step 2022, multiply the total omnidirectional sensitivity of the first upper antenna and the total omnidirectional sensitivity of the first lower antenna by a first weighting parameter to obtain the first result of the upper antenna and the first result of the lower antenna.
具体地,上天线第一结果和下天线第一结果均可以根据如下公式(2)进行计算:Specifically, both the first result of the upper antenna and the first result of the lower antenna can be calculated according to the following formula (2):
Rf=Sf·Pf=|St|/Tf·Pf (2)R f =S f ·P f =|S t |/T f ·P f (2)
其中,Rf为上天线第一结果或下天线第一结果,Sf为第一上天线总全向灵敏度或第一下天线总全向灵敏度,Pf为第一加权参数。Wherein, R f is the first result of the upper antenna or the first result of the lower antenna, S f is the total omnidirectional sensitivity of the first upper antenna or the total omnidirectional sensitivity of the first lower antenna, and P f is the first weighting parameter.
在本发明实施例中,通过加权参数修改总全向灵敏度和总辐射功率对天线加权值的影响比重。考虑到总全向灵敏度比总辐射功率对通话质量的影响大,在实际应用中对总全向灵敏度的加权参数较大,对总辐射功率的加权参数较小。In the embodiment of the present invention, the weighting parameter is used to modify the proportion of the influence of the total omnidirectional sensitivity and the total radiated power on the antenna weighting value. Considering that the total omnidirectional sensitivity has a greater influence on the call quality than the total radiated power, in practical applications, the weighting parameter for the total omnidirectional sensitivity is larger, and the weighting parameter for the total radiated power is smaller.
子步骤2023,分别将上天线总辐射功率及下天线总辐射功率乘以第二加权参数,得到上天线第二结果及下天线第二结果。Sub-step 2023, multiply the total radiated power of the upper antenna and the total radiated power of the lower antenna by the second weighting parameter to obtain the second result of the upper antenna and the second result of the lower antenna.
具体地,上天线第二结果及下天线第二结果可以根据如下公式(3)进行计算:Specifically, the second result of the upper antenna and the second result of the lower antenna can be calculated according to the following formula (3):
Rs=Ft*Ps (3)R s =F t *P s (3)
其中,Rs为上天线第二结果或下天线第二结果,Rs为上天线总辐射功率或下天线总辐射功率,Ps为第二加权参数。Wherein, R s is the second result of the upper antenna or the second result of the lower antenna, R s is the total radiated power of the upper antenna or the total radiated power of the lower antenna, and P s is the second weighting parameter.
在具体应用中,第二加权参数与第一加权参数均在0至1之间。例如,第一加权参数为0.6,第二加权参数为0.4。可以理解,第一加权参数和第二加权参数可以根据实际应用场景调整,本发明实施例对其不加以限制。In a specific application, both the second weighting parameter and the first weighting parameter are between 0 and 1. For example, the first weighting parameter is 0.6 and the second weighting parameter is 0.4. It can be understood that the first weighting parameter and the second weighting parameter may be adjusted according to an actual application scenario, which is not limited in this embodiment of the present invention.
子步骤2024,分别在将所述上天线第一结果加上所述上天线第二结果之后乘以第二转换值、所述下天线第一结果加上所述下天线第二结果之后乘以第二转换值,得到上天线加权值及下天线加权值。Sub-step 2024, multiply the first result of the upper antenna plus the second result of the upper antenna by the second conversion value, and multiply the first result of the lower antenna plus the second result of the lower antenna by The second conversion value is to obtain the weighted value of the upper antenna and the weighted value of the lower antenna.
具体地,上天线加权值及下天线加权值可以根据如下公式(4)进行计算:Specifically, the upper antenna weighted value and the lower antenna weighted value can be calculated according to the following formula (4):
R=(Rf+Rs)*Ts=(|St|/Tf·Pf+Ft*Ps)*Ts (4)R=(R f +R s )*T s =(|S t |/T f ·P f +F t *P s )*T s (4)
其中,R为上天线加权值或下天线加权值,Rf为上天线第一结果或下天线第一结果,Rs为上天线第二结果或下天线第二结果,Ts为第二转换值,第二转换值将第一结果与第二结果的和转换为整数,以便于存储。Among them, R is the weighted value of the upper antenna or the weighted value of the lower antenna, R f is the first result of the upper antenna or the first result of the lower antenna, R s is the second result of the upper antenna or the second result of the lower antenna, and T s is the second conversion value, the second conversion value converts the sum of the first result and the second result to an integer for storage.
在本发明实施例中,如表1所示,为手持人头模式下GSM制式下/下天线加权值示例。针对频段EGSM900下的975信道、38信道和124信道,频段DCS1800下的512信道、698信道、885信道六个信道的上天线和下天线,根据总辐射功率(TRP,Total Radiated Power)和总全向灵敏度(TIS,Total Isotropic Sensitivity)计算得到天线加权值。在该示例中,TRP的权重统一使用0.4,TIS的权重统一使用0.6,根据公式(4)计算得到加权值。此外,为了方便存储,将天线加权值乘以10转换为整数。可以理解,还可以使用其他固定数据将天线加权值转换为整数。In the embodiment of the present invention, as shown in Table 1, it is an example of the lower/lower antenna weighting value of the GSM standard in the hand-held head mode. For the 975-channel, 38-channel and 124-channel under the frequency band EGSM900, the upper and lower antennas of the six-channel 512-channel, 698-channel and 885-channel under the frequency band DCS1800, according to the total radiated power (TRP, Total Radiated Power) and the total The antenna weighting value is obtained by calculating the Total Isotropic Sensitivity (TIS, Total Isotropic Sensitivity). In this example, the weight of TRP is uniformly 0.4, and the weight of TIS is uniformly 0.6, and the weighted value is calculated according to formula (4). In addition, for the convenience of storage, the antenna weight value is multiplied by 10 and converted to an integer. It will be appreciated that other fixed data may also be used to convert the antenna weights to integers.
可以理解,表1仅为本发明实施例的一个示例,本发明实施例还适用于其他通话模式、频带、信道。It can be understood that Table 1 is only an example of the embodiment of the present invention, and the embodiment of the present invention is also applicable to other call modes, frequency bands, and channels.
表1Table 1
步骤203,将所述各指定信道对应的上天线加权值和下天线加权值存储至移动终端的第一指定存储位置。Step 203: Store the upper antenna weight value and the lower antenna weight value corresponding to each designated channel in a first designated storage location of the mobile terminal.
其中,第一指定存储位置为移动终端存储器上的任意位置。可以理解,第二指定存储位置的大小可以根据实际应用场景分配,本发明实施例对其不加以限制。Wherein, the first designated storage location is any location on the memory of the mobile terminal. It can be understood that the size of the second designated storage location may be allocated according to an actual application scenario, which is not limited in this embodiment of the present invention.
在本发明实施例中,为了更加方便的获取到上天线加权值和下天线加权值,将上天线加权值和下天线加权值存储到移动终端的存储器中,从而在每次使用时直接从移动终端上读取,可以提高确定最优天线的效率。In this embodiment of the present invention, in order to more conveniently obtain the weighted value of the upper antenna and the weighted value of the lower antenna, the weighted value of the upper antenna and the weighted value of the lower antenna are stored in the memory of the mobile terminal. Reading on the terminal can improve the efficiency of determining the optimal antenna.
具体地,按照通话模式、信道将上天线加权值和下天线加权值分别存储。例如,若将通话模式编号为耳机通话模式对应0、手持人头模式对应1、USB 充电耳机模式对应2,按照格式{通话模式,信道,上天线加权值,下天线加权值}的格式存储,则表2A中的存储结果包括6条记录:{1,975,267,257}, {1,38,266,260},{1,124,264,259},{1,512,255,263},{1,698, 256,265},{1,885,256,261}。Specifically, the upper antenna weighted value and the lower antenna weighted value are respectively stored according to the call mode and the channel. For example, if the call mode number is 0 for the headset call mode, 1 for the handheld head mode, and 2 for the USB charging headset mode, and stored in the format {call mode, channel, upper antenna weight, lower antenna weight}, then The stored result in Table 2A includes 6 records: {1, 975, 267, 257}, {1, 38, 266, 260}, {1, 124, 264, 259}, {1, 512, 255, 263} , {1, 698, 256, 265}, {1, 885, 256, 261}.
步骤204,在接收到注册确认信息时,记录移动终端对应的信道。
在本发明实施例中,在用户注册入网时,将移动终端所处信道存储至移动终端的存储器中,以在使用时直接从移动终端存储器中读取,从而提高确定最优天线的效率。具体地,将信道编号和频率存储于移动终端的存储器中。In the embodiment of the present invention, when the user registers to the network, the channel where the mobile terminal is located is stored in the memory of the mobile terminal, so as to be directly read from the memory of the mobile terminal during use, thereby improving the efficiency of determining the optimal antenna. Specifically, the channel number and frequency are stored in the memory of the mobile terminal.
可选地,在本发明的另一种实施例中,步骤202包括子步骤2021至2024:Optionally, in another embodiment of the present invention,
子步骤2041,从注册确认信息中获取移动终端对应的信道编号。Sub-step 2041, obtain the channel number corresponding to the mobile terminal from the registration confirmation information.
在将移动终端进行注册入网时,核心网络会向移动终端发送注册确认信息,该信息携带移动终端注册入网后的相关信息,包括驻留的频段和信道编号。When registering the mobile terminal into the network, the core network will send the registration confirmation information to the mobile terminal, which carries the relevant information after the mobile terminal is registered and connected to the network, including the frequency band and channel number where it resides.
子步骤2042,将所述移动终端对应的信道编号存储至移动终端的第二指定存储位置。Sub-step 2042: Store the channel number corresponding to the mobile terminal in the second designated storage location of the mobile terminal.
其中,第二指定存储位置可以为移动终端存储器中的任意位置。由于不同网络制式、频段下的信道编号不会重复,从而仅通过信道编号可以唯一确定信道。Wherein, the second designated storage location may be any location in the memory of the mobile terminal. Since the channel numbers under different network standards and frequency bands will not be repeated, the channel can be uniquely determined only by the channel number.
可以理解,第二指定存储位置的大小可以根据实际应用场景分配,本发明实施例对其不加以限制。It can be understood that the size of the second designated storage location may be allocated according to an actual application scenario, which is not limited in this embodiment of the present invention.
步骤205,在接收到通话指令时,确定移动终端的通话模式。
步骤205可以参照步骤101的详细说明,在此不再赘述。For
步骤206,从所述第二指定存储位置中读取信道编号,得到当前通话信道。Step 206: Read the channel number from the second designated storage location to obtain the current call channel.
针对子步骤2041将信道编号存储于第二指定位置,步骤206从第二指定位置中读取信道编号。For sub-step 2041, the channel number is stored in the second designated location, and step 206 reads the channel number from the second designated location.
步骤207,在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值。Step 207: In the call mode of the mobile terminal, acquire the upper antenna weight value and the lower antenna weight value corresponding to the current call channel.
具体地,按照通话模式编号和信道编号查找到匹配的存储记录。Specifically, a matching storage record is found according to the call mode number and the channel number.
可选地,在本发明的另一种实施例中,步骤207包括子步骤2071:Optionally, in another embodiment of the present invention,
子步骤2071,在所述移动终端的通话模式下,从移动终端的第一指定存储位置中读取所述当前通话信道对应的上天线加权值和下天线加权值。Sub-step 2071, in the call mode of the mobile terminal, read the upper antenna weight value and the lower antenna weight value corresponding to the current call channel from the first designated storage location of the mobile terminal.
针对步骤203将上天线加权值和下天线加权值存储于移动终端的存储器的第一存储位置中,子步骤2071从该第一存储位置中读取上天线加权值和下天线加权值。For
可选地,在本发明的另一种实施例中,步骤207包括子步骤2072至2073:Optionally, in another embodiment of the present invention,
子步骤2072,在所述移动终端的通话模式下,确定与所述当前通话信道频率最接近的信道作为目标信道。Sub-step 2072, in the call mode of the mobile terminal, determine the channel with the closest frequency to the current call channel as the target channel.
由于存储了部分典型信道的天线加权值,从而当当前通话信道在存储中找不到时,按照频率找到与当前通话信道最接近的信道,将对应的天线加权值作为当前通话信道的天线加权值。Since the antenna weights of some typical channels are stored, when the current call channel cannot be found in the storage, the channel closest to the current call channel is found according to the frequency, and the corresponding antenna weight value is used as the antenna weight value of the current call channel. .
子步骤2073,分别将所述目标信道对应的上天线加权值和下天线加权值作为所述当前通话信道对应的上天线加权值和下天线加权值。Sub-step 2073, respectively use the upper antenna weight value and the lower antenna weight value corresponding to the target channel as the upper antenna weight value and the lower antenna weight value corresponding to the current communication channel.
可以理解,从预先存储在移动终端的记录中获取上天线加权值和下天线加权值,能够有效提高确定最优天线的效率。It can be understood that obtaining the upper antenna weight value and the lower antenna weight value from the records pre-stored in the mobile terminal can effectively improve the efficiency of determining the optimal antenna.
步骤208,根据所述上天线加权值和下天线加权值,确定最优天线。Step 208: Determine the optimal antenna according to the weighted value of the upper antenna and the weighted value of the lower antenna.
步骤208可以参照步骤104的详细说明,在此不再赘述。For
可选地,在本发明的另一种实施例中,步骤208包括子步骤2081至2082:Optionally, in another embodiment of the present invention,
子步骤2081,若所述上天线加权值大于下天线加权值,则确定所述上天线为最优天线。Sub-step 2081, if the weighted value of the upper antenna is greater than the weighted value of the lower antenna, determine that the upper antenna is the optimal antenna.
可以理解,当上天线加权值大于下天线加权值时,上天线总辐射功率和总全向灵敏度较好,上天线具有较好的传输信号的能力。It can be understood that when the weighted value of the upper antenna is greater than the weighted value of the lower antenna, the total radiated power and total omnidirectional sensitivity of the upper antenna are better, and the upper antenna has a better ability to transmit signals.
子步骤2082,若所述下天线加权值大于上天线加权值,则确定所述下天线为最优天线。Sub-step 2082, if the weighted value of the lower antenna is greater than the weighted value of the upper antenna, determine that the lower antenna is the optimal antenna.
可以理解,当下天线加权值大于上天线加权值时,下天线总辐射功率和总全向灵敏度较好,下天线具有较好的传输信号的能力。It can be understood that when the weighted value of the lower antenna is greater than the weighted value of the upper antenna, the total radiated power and total omnidirectional sensitivity of the lower antenna are better, and the lower antenna has a better ability to transmit signals.
步骤209,切换至所述最优天线进行通话传输至本次通话结束。
步骤209可以参照步骤105的详细说明,在此不再赘述。For
可选地,在本发明的另一种实施例中,步骤209包括子步骤2091:Optionally, in another embodiment of the present invention,
子步骤2091,将所述最优天线锁定至本次通话结束。Sub-step 2091, lock the optimal antenna until the end of the call.
将最优天线锁定至本次通话结束保证了本次通话过程中不会出现由于切换天线导致通话质量差的问题。Locking the optimal antenna until the end of the call ensures that there will be no problem of poor call quality due to antenna switching during the call.
步骤210,在接收到结束通话的指令时,解除对所述最优天线的锁定。
针对子步骤2091将最优天线锁定至本次通话结束,步骤210在通话结束时解除锁定,从而进入步骤201对下次通话重新确定最优天线。For the sub-step 2091, the optimal antenna is locked until the end of the current call, and in
在本发明实施例中,通过在接收到通话指令时,确定移动终端的通话模式;获取所述通话指令对应的当前通话信道;在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值;根据所述上天线加权值和下天线加权值,确定最优天线;切换至所述最优天线进行通话传输至本次通话结束。从而可以解决在上天线和下天线的信号强度相当时,会导致上下天线之间连续的来回切换,从而降低通话质量和数据传输质量的问题,取得了提高通话质量和数据传输质量的有益效果。此外,可以通过预先测试并计算得到天线加权值,存储至移动终端,从而提高了天线切换的效率。In the embodiment of the present invention, when a call instruction is received, the call mode of the mobile terminal is determined; the current call channel corresponding to the call instruction is obtained; in the call mode of the mobile terminal, the current call channel corresponding to the current call channel is obtained The upper antenna weighted value and the lower antenna weighted value are determined; the optimal antenna is determined according to the upper antenna weighted value and the lower antenna weighted value; and the call is transferred to the optimal antenna until the call ends. Therefore, when the signal strengths of the upper antenna and the lower antenna are equal, continuous switching back and forth between the upper and lower antennas can be solved, thereby reducing the quality of the call and the quality of data transmission. In addition, the antenna weighting value can be obtained by pre-testing and calculation, and stored in the mobile terminal, thereby improving the efficiency of antenna switching.
实施例三Embodiment 3
参照图3,示出了本发明实施例三的一种移动终端的结构框图。Referring to FIG. 3 , a structural block diagram of a mobile terminal according to Embodiment 3 of the present invention is shown.
所述移动终端300包括:通话模式确定模块301、通话信道获取模块302、天线加权值获取模块303、天线切换模块304。The
下面分别详细介绍各模块的功能以及各模块之间的交互关系。The functions of each module and the interaction between the modules are described in detail below.
通话模式确定模块301,用于在接收到通话指令时,确定移动终端的通话模式。The call
通话信道获取模块302,用于获取所述通话指令对应的当前通话信道。The call
天线加权值获取模块303,用于在所述通话模式确定模块确定的移动终端的通话模式下,获取所述通话信道获取模块获取的当前通话信道对应的上天线加权值和下天线加权值。The antenna
最优天线确定模块304,用于根据所述天线加权值获取模块获取的上天线加权值和下天线加权值,确定最优天线。The optimal
天线切换模块305,用于切换至所述最优天线确定模块确定的最优天线进行通话传输至本次通话结束。The
在本发明实施例中,通过在接收到通话指令时,确定移动终端的通话模式;获取所述通话指令对应的当前通话信道;在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值;根据所述上天线加权值和下天线加权值,确定最优天线;切换至所述最优天线进行通话传输至本次通话结束。从而可以解决在上天线和下天线的信号强度相当时,会导致上下天线之间连续的来回切换,从而降低通话质量和数据传输质量的问题,取得了提高通话质量和数据传输质量的有益效果。In the embodiment of the present invention, when a call instruction is received, the call mode of the mobile terminal is determined; the current call channel corresponding to the call instruction is obtained; in the call mode of the mobile terminal, the current call channel corresponding to the current call channel is obtained The upper antenna weighted value and the lower antenna weighted value are determined; the optimal antenna is determined according to the upper antenna weighted value and the lower antenna weighted value; and the call is transferred to the optimal antenna until the call ends. Therefore, when the signal strengths of the upper antenna and the lower antenna are equal, continuous switching back and forth between the upper and lower antennas can be solved, thereby reducing the quality of the call and the quality of data transmission.
实施例三是方法实施例一对应的装置实施例,详细说明可以参照实施例一,在此不再赘述。Embodiment 3 is an apparatus embodiment corresponding to method embodiment 1. For detailed description, reference may be made to embodiment 1, which will not be repeated here.
实施例四Embodiment 4
参照图4,示出了本发明实施例四的一种移动终端的结构框图。Referring to FIG. 4 , a structural block diagram of a mobile terminal according to Embodiment 4 of the present invention is shown.
所述移动终端400包括:数据测试模块401、天线加权值计算模块402、天线加权值存储模块403、信道记录模块404、通话模式确定模块405、通话信道获取模块406、天线加权值获取模块407、天线切换模块408、最优天线解除锁定模块409。The
下面分别详细介绍各模块的功能以及各模块之间的交互关系。The functions of each module and the interaction between the modules are described in detail below.
数据测试模块401,用于针对各通话模式下的各网络制式,测试各频段中的指定信道对应的上天线总辐射功率、上天线总全向灵敏度、下天线总辐射功率、下天线总全向灵敏度。The
天线加权值计算模块402,用于针对所述各指定信道,根据对应的所述数据测试模块测试的上天线总辐射功率、上天线总全向灵敏度计算上天线加权值及根据对应的所述下天线总辐射功率、下天线总全向灵敏度计算下天线加权值。The antenna weighted
天线加权值存储模块403,用于将所述各指定信道对应的天线加权值计算模块计算的上天线加权值和下天线加权值存储至移动终端的第一指定存储位置。The antenna weighting
信道记录模块404,用于在接收到注册确认信息时,记录移动终端对应的信道。The
通话模式确定模块405,用于在接收到通话指令时,确定移动终端的通话模式。The call
通话信道获取模块406,用于获取所述通话指令对应的当前通话信道。The call
在本发明实施例中,上述通话信道获取模块406包括:通话信道获取子模块4061,用于从所述第二指定存储位置中读取信道编号,得到当前通话信道。In the embodiment of the present invention, the call
天线加权值获取模块407,用于在所述通话模式确定模块确定的移动终端的通话模式下,获取所述通话信道获取模块获取的当前通话信道对应的上天线加权值和下天线加权值。The antenna
最优天线确定模块408,用于根据所述天线加权值获取模块获取的上天线加权值和下天线加权值,确定最优天线;an optimal
天线切换模块409,用于切换至所述最优天线确定模块确定的最优天线进行通话传输至本次通话结束。The
最优天线解除锁定模块410,用于在接收到结束通话的指令时,解除对所述最优天线的锁定。The optimal
可选地,在本发明的另一种实施例中,上述天线加权值计算模块402包括:Optionally, in another embodiment of the present invention, the foregoing antenna
总全向灵敏度转换子模块,用于分别将上天线总全向灵敏度的绝对值及下天线总全向灵敏度的绝对值除以第一转换值,得到第一上天线总全向灵敏度及第一下天线总全向灵敏度。The total omnidirectional sensitivity conversion sub-module is used to divide the absolute value of the total omnidirectional sensitivity of the upper antenna and the absolute value of the total omnidirectional sensitivity of the lower antenna by the first conversion value to obtain the total omnidirectional sensitivity of the first upper antenna and the first total omnidirectional sensitivity of the first upper antenna. Lower antenna total omnidirectional sensitivity.
总全向灵敏度加权子模块,用于分别将所述总全向灵敏度转换子模块转换的第一上天线总全向灵敏度及第一下天线总全向灵敏度乘以第一加权参数,得到上天线第一结果及下天线第一结果。The total omnidirectional sensitivity weighting submodule is used to multiply the total omnidirectional sensitivity of the first upper antenna and the total omnidirectional sensitivity of the first lower antenna converted by the total omnidirectional sensitivity conversion submodule by the first weighting parameter, respectively, to obtain the upper antenna The first result and the lower antenna first result.
总辐射功率加权子模块,用于分别将上天线总辐射功率及下天线总辐射功率乘以第二加权参数,得到上天线第二结果及下天线第二结果。The total radiated power weighting sub-module is used to multiply the total radiated power of the upper antenna and the total radiated power of the lower antenna by the second weighting parameter to obtain the second result of the upper antenna and the second result of the lower antenna.
天线加权值计算子模块,用于分别将所述总全向灵敏度加权子模块得到的上天线第一结果加上所述总辐射功率加权子模块得到的上天线第二结果、所述总全向灵敏度加权子模块得到的下天线第一结果加上所述总辐射功率加权子模块得到的下天线第二结果,得到上天线加权值及下天线加权值。The antenna weighting value calculation submodule is used to respectively add the first result of the upper antenna obtained by the total omnidirectional sensitivity weighting submodule to the second result of the upper antenna obtained by the total radiation power weighting submodule, the total The first result of the lower antenna obtained by the sensitivity weighting sub-module is added to the second result of the lower antenna obtained by the total radiation power weighting sub-module to obtain the upper antenna weighting value and the lower antenna weighting value.
可选地,在本发明的另一种实施例中,上述信道记录模块404包括:Optionally, in another embodiment of the present invention, the above-mentioned
信道编号获取子模块,用于从注册确认信息中获取移动终端对应的信道编号。The channel number acquisition sub-module is used to acquire the channel number corresponding to the mobile terminal from the registration confirmation information.
信道编号存储子模块,用于将所述信道编号获取子模块获取的移动终端对应的信道编号存储至移动终端的第二指定存储位置。The channel number storage submodule is configured to store the channel number corresponding to the mobile terminal acquired by the channel number acquisition submodule to the second designated storage location of the mobile terminal.
可选地,在本发明的另一种实施例中,上述天线加权值获取模块407包括:Optionally, in another embodiment of the present invention, the foregoing antenna weight
第一天线加权值获取子模块,用于在所述移动终端的通话模式下,从移动终端的第一指定存储位置中读取所述当前通话信道对应的上天线加权值和下天线加权值。The first antenna weight acquisition sub-module is configured to read the upper antenna weight value and the lower antenna weight value corresponding to the current call channel from the first designated storage location of the mobile terminal in the call mode of the mobile terminal.
可选地,在本发明的另一种实施例中,上述天线加权值获取模块407包括:Optionally, in another embodiment of the present invention, the foregoing antenna weight
目标信道确定子模块,用于在所述移动终端的通话模式下,确定与所述当前通话信道频率最接近的信道作为目标信道。The target channel determination sub-module is configured to determine the channel with the closest frequency to the current communication channel as the target channel in the communication mode of the mobile terminal.
第二天线加权值获取子模块,用于分别将所述目标信道确定子模块确定的目标信道对应的上天线加权值和下天线加权值作为所述当前通话信道对应的上天线加权值和下天线加权值。The second antenna weight acquisition sub-module is configured to use the upper antenna weight value and the lower antenna weight value corresponding to the target channel determined by the target channel determination sub-module as the upper antenna weight value and the lower antenna weight value corresponding to the current communication channel respectively. weighted value.
可选地,在本发明的另一种实施例中,上述最优天线确定模块408包括:Optionally, in another embodiment of the present invention, the above-mentioned optimal
上天线最优确定子模块,用于若所述天线加权值获取模块获取的上天线加权值大于下天线加权值,则确定所述上天线为最优天线。The upper antenna optimal determination sub-module is configured to determine that the upper antenna is the optimal antenna if the upper antenna weight value obtained by the antenna weight value obtaining module is greater than the lower antenna weight value.
下天线最优确定子模块,用于若所述天线加权值获取模块获取的下天线加权值大于上天线加权值,则确定所述下天线为最优天线。The lower antenna optimal determination sub-module is configured to determine that the lower antenna is the optimal antenna if the lower antenna weight value obtained by the antenna weight value obtaining module is greater than the upper antenna weight value.
可选地,在本发明的另一种实施例中,上述天线切换模块409包括:Optionally, in another embodiment of the present invention, the foregoing
最优天线锁定子模块,用于将所述最优天线锁定至本次通话结束。The optimal antenna locking sub-module is used to lock the optimal antenna until the end of the call.
在本发明实施例中,通过在接收到通话指令时,确定移动终端的通话模式;获取所述通话指令对应的当前通话信道;在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值;根据所述上天线加权值和下天线加权值,确定最优天线;切换至所述最优天线进行通话传输至本次通话结束。从而可以解决在上天线和下天线的信号强度相当时,会导致上下天线之间连续的来回切换,从而降低通话质量和数据传输质量的问题,取得了提高通话质量和数据传输质量的有益效果。此外,可以通过预先测试并计算得到天线加权值,存储至移动终端,从而提高了天线切换的效率。In the embodiment of the present invention, when a call instruction is received, the call mode of the mobile terminal is determined; the current call channel corresponding to the call instruction is obtained; in the call mode of the mobile terminal, the current call channel corresponding to the current call channel is obtained The upper antenna weighted value and the lower antenna weighted value are determined; the optimal antenna is determined according to the upper antenna weighted value and the lower antenna weighted value; and the call is transferred to the optimal antenna until the call ends. Therefore, when the signal strengths of the upper antenna and the lower antenna are equal, continuous switching back and forth between the upper and lower antennas can be solved, thereby reducing the quality of the call and the quality of data transmission. In addition, the antenna weighting value can be obtained by pre-testing and calculation, and stored in the mobile terminal, thereby improving the efficiency of antenna switching.
实施例四是方法实施例二对应的装置实施例,详细说明可以参照实施例二,在此不再赘述。The fourth embodiment is an apparatus embodiment corresponding to the second method embodiment. For a detailed description, reference may be made to the second embodiment, which will not be repeated here.
实施例五Embodiment 5
参照图5,示出了本发明实施例五的一种移动终端的结构框图。Referring to FIG. 5 , a structural block diagram of a mobile terminal according to Embodiment 5 of the present invention is shown.
图5所示的移动终端500包括:至少一个处理器501、存储器502、至少一个网络接口504和用户接口503。移动终端500中的各个组件通过总线系统505耦合在一起。可理解,总线系统505用于实现这些组件之间的连接通信。总线系统505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统 505。The
其中,用户接口503可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Among them, the
可以理解,本发明实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-OnlyMemory,ROM)、可编程只读存储器 (ProgrammableROM,PROM)、可擦除可编程只读存储器(ErasablePROM, EPROM)、电可擦除可编程只读存储器(ElectricallyEPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(RandomAccessMemory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(StaticRAM,SRAM)、动态随机存取存储器 (DynamicRAM,DRAM)、同步动态随机存取存储器(SynchronousDRAM, SDRAM)、双倍数据速率同步动态随机存取存储器(DoubleDataRateSDRAM, DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM, ESDRAM)、同步连接动态随机存取存储器(SynchlinkDRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambusRAM,DRRAM)。本发明实施例描述的系统和方法的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the
在一些实施方式中,存储器502存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统5021和应用程序 5022。In some embodiments,
其中,操作系统5021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序5022,包含各种应用程序,例如媒体播放器(MediaPlayer)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序 5022中。The
在本发明实施例中,通过调用存储器502存储的程序或指令,具体的,可以是应用程序5022中存储的程序或指令,处理器501用于在接收到通话指令时,确定移动终端的通话模式;获取所述通话指令对应的当前通话信道;在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值;根据所述上天线加权值和下天线加权值,确定最优天线;切换至所述最优天线进行通话传输至本次通话结束。上述本发明实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器 (DigitalSignalProcessor,DSP)、专用集成电路 (ApplicationSpecificIntegratedCircuit,ASIC)、现成可编程门阵列 (FieldProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。In this embodiment of the present invention, by calling the program or instruction stored in the
可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecificIntegratedCircuits,ASIC)、数字信号处理器(DigitalSignalProcessing,DSP)、数字信号处理设备(DSPDevice, DSPD)、可编程逻辑设备(ProgrammableLogicDevice,PLD)、现场可编程门阵列(Field-ProgrammableGateArray,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (DSP Device, DSPD), Programmable Logic Device (Programmable Logic Device, PLD) ), a Field-Programmable Gate Array (FPGA), a general-purpose processor, a controller, a microcontroller, a microprocessor, other electronic units for performing the functions described herein, or a combination thereof.
对于软件实现,可通过执行本发明实施例所述功能的模块(例如过程、函数等)来实现本发明实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the techniques described in the embodiments of the present invention may be implemented through modules (eg, procedures, functions, etc.) that perform the functions described in the embodiments of the present invention. Software codes may be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
可选地,处理器501在所述在接收到通话指令时,确定移动终端的通话模式的步骤之前,还包括:针对各通话模式下的各网络制式,测试各频段中的指定信道对应的上天线总辐射功率、上天线总全向灵敏度、下天线总辐射功率、下天线总全向灵敏度;针对所述各指定信道,根据对应的所述上天线总辐射功率、上天线总全向灵敏度计算上天线加权值及根据对应的所述下天线总辐射功率、下天线总全向灵敏度计算下天线加权值;将所述各指定信道对应的上天线加权值和下天线加权值存储至移动终端的第一指定存储位置;在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值时,包括:在所述移动终端的通话模式下,从移动终端的第一指定存储位置中读取所述当前通话信道对应的上天线加权值和下天线加权值。Optionally, before the step of determining the call mode of the mobile terminal when receiving the call instruction, the
可选地,处理器501在所述根据对应的所述上天线总辐射功率、上天线总全向灵敏度计算上天线加权值及根据对应的所述下天线总辐射功率、下天线总全向灵敏度计算下天线加权值时,包括:分别将上天线总全向灵敏度的绝对值及下天线总全向灵敏度的绝对值除以第一转换值,得到第一上天线总全向灵敏度及第一下天线总全向灵敏度;分别将所述第一上天线总全向灵敏度及第一下天线总全向灵敏度乘以第一加权参数,得到上天线第一结果及下天线第一结果;分别将上天线总辐射功率及下天线总辐射功率乘以第二加权参数,得到上天线第二结果及下天线第二结果;分别在将所述上天线第一结果加上所述上天线第二结果之后乘以第二转换值、所述下天线第一结果加上所述下天线第二结果之后乘以第二转换值,得到上天线加权值及下天线加权值。Optionally, the
可选地,处理器501在所述根据所述上天线加权值和下天线加权值,确定最优天线时,包括:若所述上天线加权值大于下天线加权值,则确定所述上天线为最优天线;若所述下天线加权值大于上天线加权值,则确定所述下天线为最优天线。Optionally, when determining the optimal antenna according to the upper antenna weight value and the lower antenna weight value, the
可选地,处理器501在所述切换至所述最优天线进行通话传输至本次通话结束时,包括:将所述最优天线锁定至本次通话结束;在所述切换至所述最优天线进行通话传输至本次通话结束之后,还包括:在接收到结束通话的指令时,解除对所述最优天线的锁定。Optionally, when the
可选地,处理器501在所述在接收到通话指令时,确定移动终端的通话模式的步骤之前,还包括:在接收到注册确认信息时,记录移动终端对应的信道。Optionally, before the step of determining the call mode of the mobile terminal when receiving the call instruction, the
可选地,处理器501在所述记录移动终端对应的信道时,包括:从注册确认信息中获取移动终端对应的信道编号;将所述移动终端对应的信道编号存储至移动终端的第二指定存储位置;在获取所述通话指令对应的当前通话信道时,包括:从所述第二指定存储位置中读取信道编号,得到当前通话信道。Optionally, when recording the channel corresponding to the mobile terminal, the
可选地,处理器501在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值时,包括:在所述移动终端的通话模式下,确定与所述当前通话信道频率最接近的信道作为目标信道;分别将所述目标信道对应的上天线加权值和下天线加权值作为所述当前通话信道对应的上天线加权值和下天线加权值。Optionally, when the
可见,在本发明实施例中,通过在接收到通话指令时,确定移动终端的通话模式;获取所述通话指令对应的当前通话信道;在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值;根据所述上天线加权值和下天线加权值,确定最优天线;切换至所述最优天线进行通话传输至本次通话结束。从而可以解决在上天线和下天线的信号强度相当时,会导致上下天线之间连续的来回切换,从而降低通话质量和数据传输质量的问题,取得了提高通话质量和数据传输质量的有益效果。It can be seen that, in this embodiment of the present invention, when a call instruction is received, the call mode of the mobile terminal is determined; the current call channel corresponding to the call instruction is obtained; in the call mode of the mobile terminal, the current call is obtained The upper antenna weighting value and the lower antenna weighting value corresponding to the channel; the optimal antenna is determined according to the upper antenna weighting value and the lower antenna weighting value; switching to the optimal antenna for call transmission until the end of the current call. Therefore, when the signal strengths of the upper antenna and the lower antenna are equal, continuous switching back and forth between the upper and lower antennas can be solved, thereby reducing the quality of the call and the quality of data transmission.
实施例六Embodiment 6
图6示出了本发明实施例九的移动终端的结构示意图。FIG. 6 shows a schematic structural diagram of a mobile terminal according to Embodiment 9 of the present invention.
本发明实施例的移动终端可以为手机、平板电脑、个人数字助理(PersonalDigital Assistant,PDA)、或车载电脑等。The mobile terminal in the embodiment of the present invention may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.
图6中的移动终端包括射频(RadioFrequency,RF)电路610、存储器620、输入单元630、显示单元640、处理器660、音频电路670、WiFi(WirelessFidelity) 模块680、电源690。The mobile terminal in FIG. 6 includes a radio frequency (RF)
其中,输入单元630可用于接收用户输入的数字或字符信息,以及产生与移动终端600的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元630可以包括触控面板631。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器660,并能接收处理器660发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除了触控面板631,输入单元630还可以包括其他输入设备632,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the
其中,显示单元640可用于显示由用户输入的信息或提供给用户的信息以及移动终端600的各种菜单界面。显示单元640可包括显示面板641,可选的,可以采用LCD或有机发光二极管(OrganicLight-EmittingDiode,OLED) 等形式来配置显示面板641。The
应注意,触控面板631可以覆盖显示面板641,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器660以确定触摸事件的类型,随后处理器660根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the
触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或 widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch screen includes the application program interface display area and the commonly used controls display area. The arrangement of the application program interface display area and the common control display area is not limited, and may be an arrangement that can distinguish the two display areas, such as up-down arrangement, left-right arrangement, or the like. The application program interface display area can be used to display the interface of the application program. Each interface may contain at least one application icon and/or interface elements such as widget desktop controls. The application program interface display area can also be an empty interface that does not contain any content. The commonly used control display area is used to display controls with high usage rate, such as setting buttons, interface numbers, scroll bars, phonebook icons and other application icons.
其中处理器660是移动终端600的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器621内的软件程序和/或模块,以及调用存储在第二存储器622内的数据,执行移动终端600 的各种功能和处理数据,从而对移动终端600进行整体监控。可选的,处理器660可包括一个或多个处理单元。The
在本发明实施例中,通过调用存储该第一存储器621内的软件程序和/ 或模块和/或该第二存储器622内的数据,处理器660用于在接收到通话指令时,确定移动终端的通话模式;获取所述通话指令对应的当前通话信道;在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值;根据所述上天线加权值和下天线加权值,确定最优天线;切换至所述最优天线进行通话传输至本次通话结束。In this embodiment of the present invention, by calling and storing software programs and/or modules in the
可选地,处理器660在所述在接收到通话指令时,确定移动终端的通话模式的步骤之前,还包括:针对各通话模式下的各网络制式,测试各频段中的指定信道对应的上天线总辐射功率、上天线总全向灵敏度、下天线总辐射功率、下天线总全向灵敏度;针对所述各指定信道,根据对应的所述上天线总辐射功率、上天线总全向灵敏度计算上天线加权值及根据对应的所述下天线总辐射功率、下天线总全向灵敏度计算下天线加权值;将所述各指定信道对应的上天线加权值和下天线加权值存储至移动终端的第一指定存储位置;在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值时,包括:在所述移动终端的通话模式下,从移动终端的第一指定存储位置中读取所述当前通话信道对应的上天线加权值和下天线加权值。Optionally, before the step of determining the call mode of the mobile terminal when receiving the call instruction, the
可选地,处理器660在所述根据对应的所述上天线总辐射功率、上天线总全向灵敏度计算上天线加权值及根据对应的所述下天线总辐射功率、下天线总全向灵敏度计算下天线加权值时,包括:分别将上天线总全向灵敏度的绝对值及下天线总全向灵敏度的绝对值除以第一转换值,得到第一上天线总全向灵敏度及第一下天线总全向灵敏度;分别将所述第一上天线总全向灵敏度及第一下天线总全向灵敏度乘以第一加权参数,得到上天线第一结果及下天线第一结果;分别将上天线总辐射功率及下天线总辐射功率乘以第二加权参数,得到上天线第二结果及下天线第二结果;分别在将所述上天线第一结果加上所述上天线第二结果之后乘以第二转换值、所述下天线第一结果加上所述下天线第二结果之后乘以第二转换值,得到上天线加权值及下天线加权值。Optionally, the
可选地,处理器660在所述根据所述上天线加权值和下天线加权值,确定最优天线时,包括:若所述上天线加权值大于下天线加权值,则确定所述上天线为最优天线;若所述下天线加权值大于上天线加权值,则确定所述下天线为最优天线。Optionally, when determining the optimal antenna according to the upper antenna weight value and the lower antenna weight value, the
可选地,处理器660在所述切换至所述最优天线进行通话传输至本次通话结束时,包括:将所述最优天线锁定至本次通话结束;在所述切换至所述最优天线进行通话传输至本次通话结束之后,还包括:在接收到结束通话的指令时,解除对所述最优天线的锁定。Optionally, when the
可选地,处理器660在所述在接收到通话指令时,确定移动终端的通话模式的步骤之前,还包括:在接收到注册确认信息时,记录移动终端对应的信道。Optionally, before the step of determining the call mode of the mobile terminal when the call instruction is received, the
可选地,处理器660在所述记录移动终端对应的信道时,包括:从注册确认信息中获取移动终端对应的信道编号;将所述移动终端对应的信道编号存储至移动终端的第二指定存储位置;在获取所述通话指令对应的当前通话信道时,包括:从所述第二指定存储位置中读取信道编号,得到当前通话信道。Optionally, when recording the channel corresponding to the mobile terminal, the
可选地,处理器660在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值时,包括:在所述移动终端的通话模式下,确定与所述当前通话信道频率最接近的信道作为目标信道;分别将所述目标信道对应的上天线加权值和下天线加权值作为所述当前通话信道对应的上天线加权值和下天线加权值。Optionally, when the
可见,在本发明实施例中,通过在接收到通话指令时,确定移动终端的通话模式;获取所述通话指令对应的当前通话信道;在所述移动终端的通话模式下,获取所述当前通话信道对应的上天线加权值和下天线加权值;根据所述上天线加权值和下天线加权值,确定最优天线;切换至所述最优天线进行通话传输至本次通话结束。从而可以解决在上天线和下天线的信号强度相当时,会导致上下天线之间连续的来回切换,从而降低通话质量和数据传输质量的问题,取得了提高通话质量和数据传输质量的有益效果。It can be seen that, in this embodiment of the present invention, when a call instruction is received, the call mode of the mobile terminal is determined; the current call channel corresponding to the call instruction is obtained; in the call mode of the mobile terminal, the current call is obtained The upper antenna weighting value and the lower antenna weighting value corresponding to the channel; the optimal antenna is determined according to the upper antenna weighting value and the lower antenna weighting value; switching to the optimal antenna for call transmission until the end of the current call. Therefore, when the signal strengths of the upper antenna and the lower antenna are equal, continuous switching back and forth between the upper and lower antennas can be solved, thereby reducing the quality of the call and the quality of data transmission.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for related parts.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments may be referred to each other.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used with teaching based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not directed to any particular programming language. It is to be understood that various programming languages may be used to implement the inventions described herein, and that the descriptions of specific languages above are intended to disclose the best mode for carrying out the invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it is to be understood that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together into a single embodiment, figure, or its description. This disclosure, however, should not be construed as reflecting an intention that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components in the embodiments may be combined into one module or unit or component, and further they may be divided into multiple sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination unless at least some of such features and/or procedures or elements are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will appreciate that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the invention within and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的移动终端设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the mobile terminal device according to the embodiments of the present invention. The present invention can also be implemented as apparatus or apparatus programs (eg, computer programs and computer program products) for performing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments illustrate rather than limit the invention, and that alternative embodiments may be devised by those skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.
本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk and other mediums that can store program codes.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710751906.0A CN107465438B (en) | 2017-08-28 | 2017-08-28 | Antenna switching method and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710751906.0A CN107465438B (en) | 2017-08-28 | 2017-08-28 | Antenna switching method and mobile terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107465438A CN107465438A (en) | 2017-12-12 |
| CN107465438B true CN107465438B (en) | 2020-10-13 |
Family
ID=60549486
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710751906.0A Active CN107465438B (en) | 2017-08-28 | 2017-08-28 | Antenna switching method and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107465438B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103401577A (en) * | 2013-07-12 | 2013-11-20 | 惠州Tcl移动通信有限公司 | Antenna switching system of mobile terminal |
| CN105704317A (en) * | 2016-03-08 | 2016-06-22 | 北京小米移动软件有限公司 | Antenna parameter adjustment method and apparatus, and electronic device |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100735397B1 (en) * | 2006-06-08 | 2007-07-04 | 삼성전자주식회사 | How to perform Bluetooth communication of a mobile terminal |
| CN105376757A (en) * | 2015-09-30 | 2016-03-02 | 青岛海信移动通信技术股份有限公司 | Mobile device Wi-Fi channel configuration method and device |
-
2017
- 2017-08-28 CN CN201710751906.0A patent/CN107465438B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103401577A (en) * | 2013-07-12 | 2013-11-20 | 惠州Tcl移动通信有限公司 | Antenna switching system of mobile terminal |
| CN105704317A (en) * | 2016-03-08 | 2016-06-22 | 北京小米移动软件有限公司 | Antenna parameter adjustment method and apparatus, and electronic device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107465438A (en) | 2017-12-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107277838B (en) | A kind of WIFI antenna control method of mobile terminal and mobile terminal | |
| CN108430101B (en) | Antenna closing method, device, storage medium and electronic device | |
| CN109167153B (en) | Electronic device, antenna radiator control method, and storage medium | |
| CN106374969A (en) | Antenna switching method and mobile terminal | |
| CN107204786B (en) | A kind of switching method and mobile terminal of signal receiving path | |
| CN106953675A (en) | Method for connecting mobile terminal and antenna | |
| CN107743279B (en) | Noise reduction method for earphone, earphone and mobile terminal | |
| CN107483821B (en) | Image processing method and mobile terminal | |
| CN106921041B (en) | An antenna control system, method and mobile terminal | |
| CN107566622B (en) | Temperature control method and mobile terminal | |
| CN106453953B (en) | A wireless access point connection method and mobile terminal | |
| CN107293857B (en) | Method of processing signal interference, mobile terminal and computer-readable storage medium | |
| CN107132941B (en) | A pressure touch method and electronic device | |
| CN106375048A (en) | A control method and device for wireless local area network antenna switching | |
| CN106375576B (en) | Method for controlling audio channel and mobile terminal | |
| CN107394362B (en) | A kind of antenna adaptation method and terminal | |
| CN107819922B (en) | A relay adjustment method for wireless earphones, wireless earphones and mobile terminal | |
| CN107026682A (en) | A kind of antenna switching method and device | |
| CN107148085A (en) | A carrier aggregation method and mobile terminal | |
| CN107069216B (en) | Antenna structure, mobile terminal and antenna control method | |
| CN107612595A (en) | A kind of antenna switching method and mobile terminal | |
| CN107342777B (en) | A control method of a radio frequency circuit and a mobile terminal | |
| CN107465438B (en) | Antenna switching method and mobile terminal | |
| CN107105462B (en) | Channel replacing method and mobile terminal | |
| CN107708093B (en) | A method and mobile terminal for establishing a relay data network by using a wireless headset |
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 |