CN101060359B - Antenna selection method and device - Google Patents
Antenna selection method and device Download PDFInfo
- Publication number
- CN101060359B CN101060359B CN2006100746559A CN200610074655A CN101060359B CN 101060359 B CN101060359 B CN 101060359B CN 2006100746559 A CN2006100746559 A CN 2006100746559A CN 200610074655 A CN200610074655 A CN 200610074655A CN 101060359 B CN101060359 B CN 101060359B
- Authority
- CN
- China
- Prior art keywords
- antenna
- antennas
- signal
- parameter value
- noise
- 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
Images
Landscapes
- Radio Transmission System (AREA)
Abstract
Description
技术领域technical field
本发明关于一种天线选择的方法及装置,特别是,关于一种根据包完整性、信号强度及噪声大小而选择天线的方法及装置。The present invention relates to a method and device for antenna selection, in particular, to a method and device for selecting antennas according to packet integrity, signal strength and noise level.
背景技术Background technique
目前,许多电子装置都具有接收无线信号的功能,这些装置一般都设有天线,以加强信号接收效能。但是,由于基地台发射信号的方向不同、或是信号发生折射、绕射或反射等问题,可能造成一支天线无法接收到所有来自基地台的信号的问题。因此,需要利用多支天线来接收无线信号,然而这也产生了要选择使用哪一支天线的问题。At present, many electronic devices have the function of receiving wireless signals, and these devices are generally equipped with antennas to enhance signal receiving performance. However, due to the different directions of the signals transmitted by the base station, or problems such as refraction, diffraction or reflection of the signal, it may cause a problem that one antenna cannot receive all the signals from the base station. Therefore, multiple antennas need to be used to receive wireless signals, but this also creates a problem of choosing which antenna to use.
在专利号US5,844,632的美国专利中,公开一种具有多天线的分集接收装置,其选择接收信号强度最强以及模拟信号噪声最低的天线来使用。但是US5,844,632只针对模拟无线信号进行分析,对于数字信号(例如数字电视地面广播信号)则不一定适用。再者,信号强度越强并不表示信号品质越好,强度最强的信号可能因为发生过饱和现象而不是最佳的选择。若信号因为折射或绕射的关系而发生重迭的现象,且重迭的信号强度都很强,则可能发生天线所接收的信号良好,但仍收不到数据的情况。此外,US5,844,632是在比较完所有天线所接收到的信号后才选择使用其中一个天线,过程亦相当耗时。In US Pat. No. 5,844,632, a diversity receiving device with multiple antennas is disclosed, which selects the antenna with the strongest received signal strength and the lowest analog signal noise for use. However, US5,844,632 only analyzes analog wireless signals, and is not necessarily applicable to digital signals (such as digital TV terrestrial broadcast signals). Furthermore, stronger signal strength does not mean better signal quality, and the strongest signal may not be the best choice due to oversaturation. If the signals overlap due to refraction or diffraction, and the overlapping signal strength is very strong, it may happen that the signal received by the antenna is good, but the data is still not received. In addition, in US5,844,632, one of the antennas is selected to be used after comparing the signals received by all the antennas, and the process is also quite time-consuming.
因此,有必要提供一种天线选择方法,用以快速的选择最适合的天线来接收无线信号。Therefore, it is necessary to provide an antenna selection method for quickly selecting the most suitable antenna for receiving wireless signals.
发明内容Contents of the invention
鉴于先前技术所存在的问题,本发明提供了一种天线选择的方法及装置。In view of the problems existing in the prior art, the present invention provides a method and device for antenna selection.
根据本发明的一方面,提供了一种用于一电子装置的天线选择方法。该电子装置具有多个天线输入端,用以分别连接多个天线,以接收多个频道(channels)的无线信号。本发明的方法包含以下步骤:(a)针对一频道,检测多个天线的其中之一所接收的信号;(b)判断该天线所接收信号的包(packet)是否完整,若是则进行至步骤(c),若否则回到步骤(a),继续检测另一天线;(c)根据所接收信号的信号强度及噪声大小,而得到一优先参数值;(d)判断优先参数值是否落入一预定范围,若是则选择使用该天线并结束检测操作,若否则进行至步骤(e);以及(e)判断是否所有天线皆检测完毕,若否则回到步骤(a),继续检测另一天线,其中该噪声大小代表所接收信号的包的差错率大小,而该优先参数值藉以下而获得:将信号的强度值预先区分为多个强度区段;将信号的噪声值预先区分为多个噪声区段;将该所接收信号的信号强度及噪声与该多个强度区段及该多个噪声区段对比,而分别得到该所接收信号的一强度参数值及一噪声参数值;以及将该强度参数值及该噪声参数值相加而得到该优先参数值。According to one aspect of the present invention, an antenna selection method for an electronic device is provided. The electronic device has a plurality of antenna input terminals for respectively connecting the plurality of antennas to receive wireless signals of a plurality of channels. The method of the present invention includes the following steps: (a) detecting a signal received by one of a plurality of antennas for a channel; (b) judging whether the packet (packet) of the signal received by the antenna is complete, and if so, proceed to step (c), if otherwise return to step (a), continue to detect another antenna; (c) obtain a priority parameter value according to the signal strength and noise size of the received signal; (d) judge whether the priority parameter value falls into A predetermined range, if so, choose to use the antenna and end the detection operation, if otherwise, proceed to step (e); and (e) judge whether all antennas have been detected, if otherwise, return to step (a), and continue to detect another antenna , wherein the noise size represents the error rate of the packet of the received signal, and the priority parameter value is obtained by: pre-dividing the strength value of the signal into a plurality of strength segments; pre-dividing the noise value of the signal into a plurality of noise section; comparing the signal strength and noise of the received signal with the plurality of strength sections and the plurality of noise sections to obtain a strength parameter value and a noise parameter value of the received signal, respectively; and The value of the intensity parameter and the value of the noise parameter are added to obtain the value of the priority parameter.
根据本发明的另一方面,提供了一种用于一电子装置的电路。该电子装置具有多个天线输入端,用以分别连接多个天线,以接收多个频道(channels)的无线信号。该电路包含:一切换模块(switch module),用以耦合至多个天线输入端,其中切换模块由一微处理器控制,以选择多个天线的其中之一来接收无线信号;其中该微处理器根据各天线的优先参数值,而控制该切换模块选择其中一天线来接收无线信号,该微处理器用于:(a)针对一频道,检测该多个天线的其中之一所接收的信号;(b)判断该其中之一天线所接收信号的包是否完整,若是则进行至步骤(c),若否则回到步骤(a),继续检测另一天线;(c)根据该所接收信号的信号强度及噪声大小,而得到一优先参数值;(d)判断该优先参数值是否落入一预定范围,若是则选择使用该天线并结束检测操作,若否则进行至步骤(e);以及(e)判断是否所有天线皆检测完毕,若否则回到步骤(a),继续检测另一天线,其中该噪声大小代表所接收信号的包的差错率大小,而该优先参数值藉以下而获得:将信号的强度值预先区分为多个强度区段;将信号的噪声值预先区分为多个噪声区段;将该所接收信号的信号强度及噪声与该多个强度区段及该多个噪声区段对比,而分别得到该所接收信号的一强度参数值及一噪声参数值;以及将该强度参数值及该噪声参数值相加而得到该优先参数值。According to another aspect of the present invention, a circuit for an electronic device is provided. The electronic device has a plurality of antenna input terminals for respectively connecting the plurality of antennas to receive wireless signals of a plurality of channels. The circuit includes: a switch module (switch module), used for coupling to multiple antenna input terminals, wherein the switch module is controlled by a microprocessor to select one of the multiple antennas to receive wireless signals; wherein the microprocessor According to the priority parameter value of each antenna, the switching module is controlled to select one of the antennas to receive wireless signals, and the microprocessor is used to: (a) detect a signal received by one of the plurality of antennas for a channel; b) Judging whether the packet of the signal received by one of the antennas is complete, if so, proceed to step (c), otherwise return to step (a), and continue to detect another antenna; (c) according to the signal of the received signal intensity and noise size to obtain a priority parameter value; (d) judge whether the priority parameter value falls within a predetermined range, if so, choose to use the antenna and end the detection operation, otherwise proceed to step (e); and (e ) to determine whether all antennas have been detected, otherwise return to step (a) and continue to detect another antenna, wherein the noise level represents the error rate of the packet of the received signal, and the priority parameter value is obtained as follows: The strength value of the signal is pre-divided into a plurality of strength segments; the noise value of the signal is pre-divided into a plurality of noise segments; the signal strength and noise of the received signal are compared with the plurality of strength segments and the plurality of noise regions segment comparison to obtain a strength parameter value and a noise parameter value of the received signal respectively; and adding the strength parameter value and the noise parameter value to obtain the priority parameter value.
根据本发明的又一方面,提供了一种电子装置。该电子装置具有多个天线输入端,用以分别连接多个天线,以接收多个频道的无线信号。该电子装置包含:一切换模块,耦合至多个天线输入端;一微处理器,控制切换模块,以选择多个天线的其中之一来接收无线信号;其中该微处理器根据各天线的优先参数值,而控制该切换模块选择其中一天线来接收无线信号,该微处理器用于:(a)针对一频道,检测该多个天线的其中之一所接收的信号;(b)判断该其中之一天线所接收信号的包是否完整,若是则进行至步骤(c),若否则回到步骤(a),继续检测另一天线;(c)根据该所接收信号的信号强度及噪声大小,而得到一优先参数值;(d)判断该优先参数值是否落入一预定范围,若是则选择使用该天线并结束检测操作,若否则进行至步骤(e);以及(e)判断是否所有天线皆检测完毕,若否则回到步骤(a),继续检测另一天线,其中该噪声大小代表所接收信号的包的差错率大小,而该优先参数值藉以下而获得:将信号的强度值预先区分为多个强度区段;将信号的噪声值预先区分为多个噪声区段;将该所接收信号的信号强度及噪声与该多个强度区段及该多个噪声区段对比,而分别得到该所接收信号的一强度参数值及一噪声参数值;以及将该强度参数值及该噪声参数值相加而得到该优先参数值。According to still another aspect of the present invention, an electronic device is provided. The electronic device has a plurality of antenna input ends, which are used to respectively connect the plurality of antennas to receive wireless signals of a plurality of channels. The electronic device includes: a switching module coupled to multiple antenna input terminals; a microprocessor controlling the switching module to select one of the multiple antennas to receive wireless signals; wherein the microprocessor is based on the priority parameters of each antenna value, and control the switching module to select one of the antennas to receive wireless signals, the microprocessor is used for: (a) detecting the signal received by one of the multiple antennas for a channel; (b) judging the one of the antennas Whether the packet of the signal received by an antenna is complete, if so, proceed to step (c), otherwise return to step (a), and continue to detect another antenna; (c) according to the signal strength and noise size of the received signal, and Obtaining a priority parameter value; (d) judging whether the priority parameter value falls within a predetermined range, if so, selecting to use the antenna and ending the detection operation, otherwise proceeding to step (e); and (e) judging whether all antennas are After the detection is completed, if otherwise, return to step (a) and continue to detect another antenna, wherein the noise level represents the error rate of the packet of the received signal, and the priority parameter value is obtained by the following: the strength value of the signal is pre-differentiated It is a plurality of strength sections; the noise value of the signal is pre-divided into a plurality of noise sections; the signal strength and noise of the received signal are compared with the plurality of strength sections and the plurality of noise sections, and respectively obtained a strength parameter value and a noise parameter value of the received signal; and adding the strength parameter value and the noise parameter value to obtain the priority parameter value.
配合以下的较佳实施例的叙述与附图说明,本发明的目的、实施例、特征、及优点将更为清楚。In conjunction with the description of the following preferred embodiments and the accompanying drawings, the purpose, embodiments, features, and advantages of the present invention will become clearer.
附图说明Description of drawings
图1为根据本发明所表示的一无线信号接收系统;Fig. 1 is a wireless signal receiving system represented according to the present invention;
图2为图1所示的电路模块的一实施例;Fig. 2 is an embodiment of the circuit module shown in Fig. 1;
图3为根据本发明所表示一方法流程图,用以决定一天线的一优先参数值;FIG. 3 is a flowchart of a method for determining a priority parameter value of an antenna according to the present invention;
图4表示一方法流程图,用以说明在一电子装置开机时,根据图3所决定的优先参数值而选择天线的方法;以及FIG. 4 shows a flow chart of a method for illustrating a method for selecting an antenna according to the priority parameter values determined in FIG. 3 when an electronic device is turned on; and
图5表示一方法流程图,用以说明在一电子装置切换接收频道时,根据图3所决定的优先参数值而选择天线的方法。FIG. 5 shows a flow chart of a method for illustrating a method for selecting an antenna according to the priority parameter values determined in FIG. 3 when an electronic device switches receiving channels.
附图元件符号说明Explanation of symbols in drawings
100、无线信号接收系统100. Wireless signal receiving system
112、114、212、214、216、天线112, 114, 212, 214, 216, antenna
120、电子装置 122、124、输入端120,
130、230、电路模块 140、240、切换模块130, 230,
150、250、调谐器 160、处理器150, 250,
242、切换器 244、放大器242.
246、信号传输线246. Signal transmission line
具体实施方式Detailed ways
本发明公开一种天线选择方法及装置。为了使本发明的叙述更加详尽与完备,可参照下列描述并配合图1至图5的附图。然以下实施例中所述的装置、元件及方法步骤,仅用以说明本发明,并非用以限制本发明的范围。The invention discloses an antenna selection method and device. In order to make the description of the present invention more detailed and complete, reference may be made to the following description together with the accompanying drawings of FIG. 1 to FIG. 5 . However, the devices, components and method steps described in the following embodiments are only used to illustrate the present invention, and are not intended to limit the scope of the present invention.
图1为根据本发明所表示的一无线信号接收系统100,包含一电子装置120以及用以接收无线信号的天线112、114。电子装置120可例如为一数字电视机、一机顶盒(set-top box)、或是配备有地面电视广播接收卡(tunercard)或卫星电视广播接收卡的个人计算机。依照应用类型的不同,天线112及114可设计为用以接收不同种类的无线信号,例如数字地面广播信号、数字卫星广播信号、或其他射频信号等。此外,天线112及114可为各种公知的天线结构,例如平板天线、螺旋天线等,且不限于单频、双频、或多频天线。电子装置120包含两个天线输入端122及124,用以分别连接天线112及114。在本发明另一实施例中,无线信号接收系统100可包含N(大于2)个天线,而电子装置120亦具有相对应的N个天线输入端,用以分别连接N个天线,且该N个天线输入端可分散在电子装置120的不同部位(例如顶部或侧边),以接收来自不同方向的无线信号。FIG. 1 shows a wireless
电子装置120还包含一电路模块130以及一处理器160,其中电路模块130包含一切换模块140以及一调谐器150。切换模块140与天线输入端122及124连接,以接收来自各天线的信号。在处理器160的控制下,切换模块140可进行天线的切换,使来自其中一天线的无线信号传送至调谐器150。处理器160除了可控制切换模块140而进行天线的切换,亦可根据切换模块140所接收到的信号而判断天线112及114是否与天线输入端122及124正常连接。若所有天线皆没有与电子装置120连接,则处理器160可产生一提示信号,以提醒使用者无天线可使用。调谐器150用以调整无线信号的频率,以供后续的信号解调及图像处理。依其应用的不同,调谐器150可例如为一数字电视调谐器(DTV tuner)或卫星广播调谐器(satellite radio tuner)。以数字电视机为例,电子装置120可用以接收处理以各种传输规格所传输的射频信号,例如数字视频广播(DVB(Digital Video Broadcasting))标准、先进电视系统委员会(ATSC(Advanced Television Systems Committee))标准、或整合性服务数字广播(ISDB(Integrated Services Digital Broadcasting))标准。The
图2为图1所示的电路模块的一实施例。在图2中,电路模块230包含一切换模块240以及一调谐器250,其中切换模块240还包含一切换器242及一放大器244。切换器242与第一天线212、第二天线214至第N天线216连接,用以将其中一天线所接收的无线信号传送至放大器244。这些天线可用以接收多个频道(channels)的无线信号。放大器244用以选择性地放大来自切换器242的无线信号,其中放大器244可例如为公知具有可变增益的低噪声放大器。切换器242及放大器244通过信号传输线246连接至一处理器(图未示),该处理器可用以判断各个天线是否存在,并可根据各天线所接收的信号而控制切换器242选择那一个天线及控制放大器244是否放大信号强度。针对不同频道,处理器可控制切换器242选择不同的天线。需注意,切换器242及放大器244亦可通过不同的信号传输线与处理器沟通,本发明并不限定其沟通方式。FIG. 2 is an embodiment of the circuit module shown in FIG. 1 . In FIG. 2 , the
本发明根据各天线的优先参数值,而决定选择使用那一个天线。图3为根据本发明所表示一方法流程图,用以决定一天线的一优先参数值。首先,在步骤S310中,检测一天线所接收到信号的强度。本发明预先将信号强度分为多个区段后,再依强度的适用程度而分别指定不同参数给这多个区段。将天线所接收信号的强度与预先所设定的各个强度区段对比,即可获得一强度参数值。强度区段的划分将依应用系统的不同而有差异。举例来说,指定参数值2给强度介于0dBm(分贝毫瓦)及-75dBm的间的区段、指定参数值1给强度大于0dBm的区段、以及指定参数值0给强度小于-75dBm的区段。在该例中,若天线所接收信号的强度为-50dBm,则其强度参数值为2。在另一实施例中,信号强度可预先分为5个区段,并依其适用程度的高低而分别指定参数值4、3、2、1、0给每个区段。本发明并不限定强度区段的数量及其划分方式,本领域技术人员可根据不同的应用而进行不同的区段划分,再依各个区段的适用程度高低而分别指定不同的参数值,其中适用程度愈高的区段,参数值也愈高。需注意的是,强度越强并不代表信号越佳,若信号强度过强,可能导致过饱和的现象发生。The present invention determines which antenna to use according to the priority parameter value of each antenna. FIG. 3 is a flowchart of a method for determining a priority parameter value of an antenna according to the present invention. First, in step S310, the strength of a signal received by an antenna is detected. The present invention divides the signal strength into multiple sections in advance, and then assigns different parameters to the multiple sections according to the applicability of the strength. A strength parameter value can be obtained by comparing the strength of the signal received by the antenna with each preset strength range. The division of strength zones will vary according to different application systems. For example, assign parameter value 2 to segments with intensity between 0dBm (decibel milliwatts) and -75dBm, assign parameter value 1 to segments with intensity greater than 0dBm, and assign parameter value 0 to segments with intensity less than -75dBm segment. In this example, if the strength of the signal received by the antenna is -50dBm, its strength parameter value is 2. In another embodiment, the signal strength can be divided into 5 sections in advance, and
接着,在步骤S320中,检测一天线所接收的噪声值的大小。本发明预先将噪声值分为多个区段后,再依噪声值的大小而分别指定不同参数给这多个区段。将天线所接收到的噪声值与预先所设定的各个噪声区段对比,而获得一噪声参数值。根据本发明的一实施例,噪声代表包差错率(packet errorrate)的大小,即信号传送接收过程中遗失位的比率。噪声区段的划分将依系统的不同而有差异。举例来说,指定参数值1给噪声值小于5×10-3包差错率(即每1000个位中有5个收不到)的区段,并指定参数值0给噪声值大于5×10-3包差错率的区段。在该例中,若天线所接收信号的噪声值为1×10-3,则其噪声参数值为1。在另一实施例中,噪声值可预先分为4个区段,并依噪声值的大小而分别指定参数值0、1、2、3给每个区段。本发明并不限定噪声区段的数量及其划分方式,本领域技术人员可根据不同的应用而进行不同的区段划分,再依各个区段的适用程度高低而分别指定不同的参数值,其中噪声值愈低的区段,参数值愈高。Next, in step S320, the magnitude of the noise value received by an antenna is detected. The present invention divides the noise value into multiple sections in advance, and then assigns different parameters to the multiple sections according to the magnitude of the noise value. A noise parameter value is obtained by comparing the noise value received by the antenna with each preset noise segment. According to an embodiment of the present invention, the noise represents the size of the packet error rate (packet error rate), that is, the ratio of lost bits during signal transmission and reception. The division of noise zones will vary from system to system. For example, specify a parameter value of 1 for segments with a noise value less than 5×10 -3 packet error rate (i.e., 5 out of every 1000 bits not received), and a parameter value of 0 for a noise value greater than 5×10 -3 Sections for Packet Error Rate. In this example, if the noise value of the signal received by the antenna is 1×10 -3 , then its noise parameter value is 1. In another embodiment, the noise value can be divided into 4 sections in advance, and
接着,在步骤S330中,判断天线所接收到的信号包是否锁定(lock)。包有无锁定依据能否接收到完整的信号而定。举例来说,在所接收到一连串的位流(bit stream)中,要正确认出标头(header)中的同步字节(sync byte),且认出同步字节后要可读取到其后面固定长度的位数据,才算接收到一完整的包,也才算锁定。然而,需在多少位内正确认出同步字节才算锁定,本发明并无限定,而由各种实际应用来而决定。接着,在步骤S340中,决定天线的优先参数值。若步骤S330中判断天线所接收到的信号包为锁定,则该天线的优先参数值将设定为其强度参数值与噪声参数值相加后所得到的数值。若在步骤S330中判断为没有锁定,则该天线的优先参数值将设定为零。其中,优先参数值的最大值为强度参数的最大值加上噪声参数的最大值,换句话说,若天线所接收到的信号具有最适当的强度及最小的噪声值,则该天线的优先参数值等于一预定最大值。Next, in step S330, it is determined whether the signal packet received by the antenna is locked (lock). Whether the packet is locked depends on whether the complete signal can be received. For example, in a series of received bit streams (bit stream), the synchronization byte (sync byte) in the header (header) must be correctly identified, and after the synchronization byte is recognized, it must be readable. The following fixed-length bit data is regarded as a complete packet received and locked. However, the number of bits in which the synchronization byte needs to be correctly confirmed to be considered locked is not limited by the present invention, but is determined by various practical applications. Next, in step S340, the priority parameter value of the antenna is determined. If it is determined in step S330 that the signal packet received by the antenna is locked, then the priority parameter value of the antenna will be set to the value obtained by adding the strength parameter value and the noise parameter value. If it is determined in step S330 that there is no lock, the priority parameter value of the antenna will be set to zero. Among them, the maximum value of the priority parameter is the maximum value of the strength parameter plus the maximum value of the noise parameter. In other words, if the signal received by the antenna has the most appropriate strength and the minimum noise value, then the priority parameter of the antenna The value is equal to a predetermined maximum value.
图4表示一方法流程图,用以说明在一电子装置开机时,根据图3所决定的优先参数值而选择天线的方法。本发明的电子装置具有多个天线输入端,用以分别连接多个天线,以接收多个频道(channels)的无线信号。针对一频道,可选择由其中接收效果较佳的一天线来接收。电子装置一开机,其内部电路将执行图4所示的方法步骤。首先,在步骤S400中,检测是否有天线安装于电子装置上,亦即天线是否与电子装置的天线输入端正常连接。若无任何天线安装,则程序进行至步骤S405,电子装置产生一提示信号,以通知使用者无任何天线可使用。若检测到有任何天线已安装于电子装置上,则程序进行至步骤S410,进行初始化的操作,将已安装的天线的优先参数值设定为零。接着,在步骤S415中,判断是否所有的频道皆检测完毕,若是则程序进行至步骤S420,结束该方法。若否,则程序进行至步骤S425,选择其中一未检测的频道进行检测。一般而言,各频道依序号排列,本发明的方法可根据频道的序号大小而依序选择频道检测,但并不限于依该顺序。接着,在步骤S430中,针对步骤S425所选频道,选择已安装但尚未检测的一天线。一般而言,可预先将所有天线编排序号,并按照序号大小依序选择天线来检测。在步骤S435中,计算步骤S430所选天线的优先参数值,并判断该优先参数值是否等于一预定最大值。优先参数值的计算方法已经叙述于相关于图3的说明中,故不赘述。在步骤S435中,若判断为是,则程序进行至步骤S440,设定该天线为用以接收目前所检测频道的无线信号的天线,并储存该天线的优先参数值。接着,程序回到步骤S415,以针对其他频道进行检测。根据本发明,对于任一特定频道,只要一找到优先参数值等于预定最大值的天线,就停止针对该特定频道的检测,不再判断其他天线的优先参数值,因此可加快检测速度。因此,结束时,可能仍有一些尚未检测的天线。然而,在其他实施例中,亦可针对该特定频道,在检测完所有天线后再决定所欲使用的天线。FIG. 4 shows a flow chart of a method for illustrating a method for selecting an antenna according to the priority parameter value determined in FIG. 3 when an electronic device is turned on. The electronic device of the present invention has a plurality of antenna input terminals for respectively connecting the plurality of antennas to receive wireless signals of a plurality of channels. For a channel, an antenna with better reception effect can be selected for reception. Once the electronic device is turned on, its internal circuit will execute the method steps shown in FIG. 4 . First, in step S400, it is detected whether there is an antenna installed on the electronic device, that is, whether the antenna is normally connected to the antenna input end of the electronic device. If no antenna is installed, the process proceeds to step S405, and the electronic device generates a prompt signal to inform the user that no antenna is available. If it is detected that any antenna has been installed on the electronic device, the procedure proceeds to step S410 to perform an initialization operation, and set the priority parameter value of the installed antenna to zero. Next, in step S415, it is determined whether all the channels have been detected, and if so, the procedure proceeds to step S420, and the method ends. If not, the procedure proceeds to step S425 to select one of the undetected channels for detection. Generally speaking, the channels are arranged according to the serial numbers, and the method of the present invention can select the channels to detect sequentially according to the serial numbers of the channels, but is not limited to the order. Next, in step S430, for the channel selected in step S425, an antenna that has been installed but not yet detected is selected. Generally speaking, all the antennas can be numbered in advance, and the antennas are selected in sequence according to the size of the serial numbers for detection. In step S435, the priority parameter value of the antenna selected in step S430 is calculated, and it is determined whether the priority parameter value is equal to a predetermined maximum value. The calculation method of the priority parameter value has been described in the description related to FIG. 3 , so it will not be repeated. In step S435, if the determination is yes, the procedure proceeds to step S440, setting the antenna as the antenna for receiving the wireless signal of the currently detected channel, and storing the priority parameter value of the antenna. Then, the procedure returns to step S415 to detect other channels. According to the present invention, for any specific channel, as soon as an antenna whose priority parameter value is equal to the predetermined maximum value is found, the detection for the specific channel is stopped, and the priority parameter values of other antennas are no longer judged, so the detection speed can be accelerated. So, at the end, there may still be some antennas that haven't been tested yet. However, in other embodiments, for the specific channel, the antenna to be used may be determined after all antennas are detected.
若步骤S435的判断结果为否,则程序进行至步骤S445,储存所检测天线的优先参数值,以供后续步骤使用。接着,在步骤S450中,针对所选频道,判断是否所有已安装的天线皆检测完毕,若否,则回到步骤S430,以选择其他天线进行检测。若是,则程序进行至步骤S455,根据步骤S445中所记录的各天线的优先参数值,选择具有相对最大优先参数值的天线。若有两个以上天线的优先参数值相同且都为相对最大值,则选择其中一个,其选择方法以应用而定,本发明并不限定。举例来说,可根据天线序号、强度参数值或噪声参数值的大小来选择,亦可设定为随机选择。接着,程序回到步骤S440,将步骤455所选择的天线设定为用以接收目前所检测频道的无线信号的天线,并储存该天线的优先参数值。If the judgment result of step S435 is negative, then the procedure proceeds to step S445 to store the priority parameter value of the detected antenna for use in subsequent steps. Next, in step S450, for the selected channel, it is determined whether all installed antennas have been detected, if not, return to step S430 to select other antennas for detection. If yes, the procedure proceeds to step S455, and the antenna with the relatively largest priority parameter value is selected according to the priority parameter values of each antenna recorded in step S445. If the priority parameter values of more than two antennas are the same and both are relative maximum values, one of them will be selected, and the selection method depends on the application, which is not limited by the present invention. For example, it can be selected according to the antenna serial number, the value of the strength parameter or the value of the noise parameter, or it can be set to be randomly selected. Then, the procedure returns to step S440, and the antenna selected in step 455 is set as the antenna for receiving the wireless signal of the currently detected channel, and the priority parameter value of the antenna is stored.
本发明的电子装置在一开机时,可自动执行图4所示的方法,以记录各频道所欲使用的天线。本发明亦提供电子装置在切换所接收频道时的天线选择方法,如图5所示。图5表示一方法流程图,用以说明在一电子装置切换所接收频道时,根据图3所决定的优先参数值而选择天线的方法。该电子装置在开机时,执行图4所示的方法步骤,而记录了每一频道所欲使用的天线及其优先参数值。如上述,当电子装置从频道A切换至频道B时,其内部电路将执行图5所示的方法步骤。首先,在步骤S500中,判断频道B所设定(图4的方法)用以接收无线信号的天线的优先参数值(图3的方法)是否为预定最大值。若是,则程序进行至步骤S505,电子装置使用所设定的天线来接收频道B的信号。若否,则程序进行至步骤S510,针对频道B,选择已安装的其中一天线进行检测。在步骤S515中,计算步骤S510中所选天线的优先参数值,并判断该优先参数值是否等于预定最大值。优先参数值的计算方法与图3相同,故不赘述。若是,则程序进行至步骤S520,使用该天线来接收频道B的信号,并记录该天线及其优先参数值。若步骤S515的判断结果为否,则程序进行至步骤S525,储存所检测天线的优先参数值,以供后续步骤使用。接着,在步骤S530中,针对频道B,判断是否所有已安装的天线皆检测完毕,若否,则回到步骤S510,以选择其他天线进行检测。若是,则程序进行至步骤S535,根据步骤S520中所记录的各天线的优先参数值,选择具有相对最大优先参数值的天线。若有两个以上天线的优先参数值相同且都为相对最大值,则可根据天线序号、强度参数值或噪声参数值的大小来选择其中一天线,亦可随机选择。When the electronic device of the present invention is turned on, the method shown in FIG. 4 can be automatically executed to record the antennas to be used by each channel. The present invention also provides an antenna selection method for the electronic device when switching channels to be received, as shown in FIG. 5 . FIG. 5 shows a flow chart of a method for illustrating a method for selecting an antenna according to the priority parameter values determined in FIG. 3 when an electronic device switches channels to be received. When the electronic device is turned on, the method steps shown in FIG. 4 are executed, and the antennas to be used for each channel and their priority parameter values are recorded. As mentioned above, when the electronic device switches from channel A to channel B, its internal circuit will execute the method steps shown in FIG. 5 . First, in step S500, it is judged whether the priority parameter value of the antenna (method in FIG. 3) set by channel B (method in FIG. 4) for receiving wireless signals is a predetermined maximum value. If yes, the procedure proceeds to step S505, and the electronic device uses the set antenna to receive the channel B signal. If not, the procedure proceeds to step S510 , for the channel B, one of the installed antennas is selected for detection. In step S515, the priority parameter value of the antenna selected in step S510 is calculated, and it is judged whether the priority parameter value is equal to a predetermined maximum value. The calculation method of the priority parameter value is the same as that in Fig. 3, so it will not be repeated. If yes, the procedure proceeds to step S520, using the antenna to receive the channel B signal, and recording the antenna and its priority parameter value. If the judgment result of step S515 is negative, the process proceeds to step S525 to store the priority parameter value of the detected antenna for use in subsequent steps. Next, in step S530, for channel B, it is determined whether all installed antennas have been detected, if not, return to step S510 to select other antennas for detection. If yes, the procedure proceeds to step S535, and the antenna with the relatively largest priority parameter value is selected according to the priority parameter values of each antenna recorded in step S520. If the priority parameter values of more than two antennas are the same and are relatively maximum values, one of the antennas can be selected according to the antenna serial number, strength parameter value or noise parameter value, or can be selected randomly.
综上述,根据本发明,电子装置在一开机时,就自动针对每一频道进行天线的扫描,并针对每一频道设定不同的天线。而当切换频道时,电子装置会先选用开机时扫描所设定的天线,若该天线的优先参数值小于预定最大值,再检测其他天线,以决定是否需切换天线。此外,本发明一开机即先检测有无安装天线,若无检测到任何天线,便通知使用者安装,而不需等到所有频道皆进行完天线的扫描后,才发现接收不到任何信号。而且,在扫描各天线时,电子装置只会检测已安装的天线,使得天线的检测及切换更有效率。最后,在硬件的部分,只需在现有的架构上增加一切换模块(如图1的元件140),在搭配适当的软件控制,即可实现本发明,而不需增加过多的成本。To sum up, according to the present invention, when the electronic device is turned on, it automatically scans the antenna for each channel, and sets a different antenna for each channel. When switching channels, the electronic device will first select the antenna set during power-on scanning, and if the priority parameter value of the antenna is less than the predetermined maximum value, then detect other antennas to determine whether to switch antennas. In addition, the present invention detects whether an antenna is installed as soon as it is turned on. If no antenna is detected, the user is notified to install it. There is no need to wait until all channels have been scanned for antennas to find out that no signal can be received. Moreover, when scanning the antennas, the electronic device only detects the installed antennas, so that the detection and switching of the antennas are more efficient. Finally, in terms of hardware, it is only necessary to add a switching module (such as the
在本发明另一实施例中,优先参数值的预定最大值可以一预定范围代替,只要天线的优先参数值落入该预定范围内,即选择使用该天线。举例来说,可设定优先参数值的预定最大值与预定次大值为一预定范围,因此在图4的步骤S435中,若所检测天线的优先参数值等于预定最大值或预定次大值,则选择使用该天线。In another embodiment of the present invention, the predetermined maximum value of the priority parameter value may be replaced by a predetermined range, and as long as the priority parameter value of the antenna falls within the predetermined range, the antenna is selected for use. For example, the predetermined maximum value and the predetermined second maximum value of the priority parameter value can be set to a predetermined range, so in step S435 of FIG. 4 , if the priority parameter value of the detected antenna is equal to the predetermined maximum value or the predetermined second maximum value , then choose to use the antenna.
在本发明另一实施例中,除了开机及切换频道时会执行选择天线的方法的外,电子装置亦可随时利用机器工作的空档来执行图4或图5所示的方法,以检查所使用天线的优先参数值是否改变。In another embodiment of the present invention, in addition to the method of selecting the antenna when starting up and switching channels, the electronic device can also use the idle time of the machine to execute the method shown in Figure 4 or Figure 5 at any time to check the Whether the priority parameter value of the antenna is changed.
本发明虽以优选实施例公开如上,然其并非用以限定本发明,任何本领域技术人员,在不脱离本发明的精神和范围的情况下,可进行更动与修改,因此本发明的保护范围以所提出的权利要求所限定的范围为准。Although the present invention is disclosed as above with preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection of the present invention The scope is as defined by the appended claims.
Claims (17)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006100746559A CN101060359B (en) | 2006-04-21 | 2006-04-21 | Antenna selection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006100746559A CN101060359B (en) | 2006-04-21 | 2006-04-21 | Antenna selection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101060359A CN101060359A (en) | 2007-10-24 |
CN101060359B true CN101060359B (en) | 2010-09-15 |
Family
ID=38866275
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2006100746559A Active CN101060359B (en) | 2006-04-21 | 2006-04-21 | Antenna selection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101060359B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101521515B (en) * | 2008-02-26 | 2014-10-08 | 瑞昱半导体股份有限公司 | Integrated digital broadcast receiving system |
CN103248383B (en) * | 2012-02-06 | 2015-12-16 | 宇龙计算机通信科技(深圳)有限公司 | The control method of terminal and terminal antenna |
CN103414507A (en) * | 2013-07-26 | 2013-11-27 | 北京小米科技有限责任公司 | Mobile terminal and method and device for switching antennas of mobile terminal |
CN104980205A (en) * | 2014-04-09 | 2015-10-14 | 中兴通讯股份有限公司 | Transmitter diversity circuit and mobile terminal |
CN106612125B (en) * | 2015-10-22 | 2020-09-25 | 微软技术许可有限责任公司 | Apparatus and method for receiving broadcast |
CN107659346A (en) * | 2017-08-30 | 2018-02-02 | 努比亚技术有限公司 | A kind of antenna switch triggering method, communication terminal and computer-readable storage medium |
CN107733509A (en) * | 2017-08-30 | 2018-02-23 | 努比亚技术有限公司 | A kind of antenna switch triggering method, communication terminal and computer-readable storage medium |
CN107645325A (en) * | 2017-08-30 | 2018-01-30 | 努比亚技术有限公司 | Antenna handover trigger control method, communication terminal and computer-readable recording medium |
IL255437A (en) * | 2017-11-05 | 2018-03-29 | Israel Aerospace Ind Ltd | A dynamically adaptable multipurpose data acquisition system |
CN109067449B (en) * | 2018-05-28 | 2021-08-03 | 成都市精准时空科技有限公司 | Multimode satellite communication terminal with multiple antenna lines and method |
CN108832988B (en) * | 2018-05-28 | 2021-09-17 | 成都市精准时空科技有限公司 | Method for controlling communication of multimode satellite communication terminal and communication terminal |
CN111313950B (en) * | 2018-12-11 | 2023-06-20 | 北京小米移动软件有限公司 | Antenna control method and device |
TWI758798B (en) * | 2020-07-29 | 2022-03-21 | 廣達電腦股份有限公司 | Electronic device and method for antenna switching |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1169630A (en) * | 1996-05-14 | 1998-01-07 | 松下通信工业株式会社 | Data receiving apparatus |
CN1248827A (en) * | 1998-08-10 | 2000-03-29 | 日本电气株式会社 | Antenna diversity transfer method and antenna receiver using said method |
CN1279853A (en) * | 1997-09-22 | 2001-01-10 | 英特尔公司 | High data rate communications netowrk employing an adaptive sectored antenna |
CN1287416A (en) * | 1999-09-02 | 2001-03-14 | 松下电器产业株式会社 | Communication equipment |
US20040192416A1 (en) * | 2003-01-09 | 2004-09-30 | Shuichi Sekine | Mobile communication terminal apparatus and mobile communication method |
-
2006
- 2006-04-21 CN CN2006100746559A patent/CN101060359B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1169630A (en) * | 1996-05-14 | 1998-01-07 | 松下通信工业株式会社 | Data receiving apparatus |
CN1279853A (en) * | 1997-09-22 | 2001-01-10 | 英特尔公司 | High data rate communications netowrk employing an adaptive sectored antenna |
CN1248827A (en) * | 1998-08-10 | 2000-03-29 | 日本电气株式会社 | Antenna diversity transfer method and antenna receiver using said method |
CN1287416A (en) * | 1999-09-02 | 2001-03-14 | 松下电器产业株式会社 | Communication equipment |
US20040192416A1 (en) * | 2003-01-09 | 2004-09-30 | Shuichi Sekine | Mobile communication terminal apparatus and mobile communication method |
Also Published As
Publication number | Publication date |
---|---|
CN101060359A (en) | 2007-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101060359B (en) | Antenna selection method and device | |
US7624414B2 (en) | Broadcast reception apparatus receiving broadcast by using directional antenna | |
CN101027897B (en) | Wireless mobile device, error correction method and integrated circuit for receiving data | |
JP4470045B2 (en) | Television broadcast receiver | |
US7436914B2 (en) | Methods and apparatus for providing television signals | |
JP2002320165A (en) | Digital broadcast receiving method | |
US8032074B2 (en) | Method and device for setting connection type of dual tuner | |
US20060010474A1 (en) | Television broadcast receiver | |
JP4449382B2 (en) | Receiving device and television apparatus equipped with the same | |
WO2010100889A1 (en) | Digital broadcast receiving device and digital broadcast receiving method | |
JP2007274072A (en) | Digital broadcast receiver | |
US7552461B2 (en) | Antenna system and television receiver | |
US20090219207A1 (en) | Signal receiving system | |
US7822396B2 (en) | Radio receiver and method for detecting carrier waves | |
US7640572B2 (en) | Electronic switch for TV signal booster | |
US7689161B2 (en) | Broadcast receiver with selective scanning and signal retrieval | |
JP2007235967A (en) | Method for receiving signal transmitted on plural channels, corresponding apparatus and receiver | |
JP2006042181A (en) | Broadcast receiver and television equipped therewith | |
US20060080712A1 (en) | Television tuner | |
US7528888B2 (en) | Television broadcast receiver | |
JP2006042160A (en) | Receiver | |
US8155043B2 (en) | Wireless communication receiver, system, and method for loading firmware | |
JP4645510B2 (en) | Television broadcast signal receiver | |
JP2005318140A (en) | Digital television broadcast signal receiving device | |
JP2007067707A (en) | Receiver |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
ASS | Succession or assignment of patent right |
Owner name: AU OPTRONICS CO. LTD Free format text: FORMER OWNER: QISDA TECHNOLOGY CO., LTD. Effective date: 20100413 |
|
C41 | Transfer of patent application or patent right or utility model | ||
COR | Change of bibliographic data |
Free format text: CORRECT: ADDRESS; FROM: TAOYUAN COUNTY, TAIWAN PROVINCE, CHINA TO: HSINCHU CITY, TAIWAN PROVINCE, CHINA |
|
TA01 | Transfer of patent application right |
Effective date of registration: 20100413 Address after: Hsinchu City, Taiwan, China Applicant after: AU Optronics Corporation Address before: China Taiwan Taoyuan County Applicant before: Qisda Corporation |
|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |