[go: up one dir, main page]

CN101060359B - Antenna selection method and device - Google Patents

Antenna selection method and device Download PDF

Info

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
Application number
CN2006100746559A
Other languages
Chinese (zh)
Other versions
CN101060359A (en
Inventor
余丁坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
AUO Corp
Original Assignee
AU Optronics Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by AU Optronics Corp filed Critical AU Optronics Corp
Priority to CN2006100746559A priority Critical patent/CN101060359B/en
Publication of CN101060359A publication Critical patent/CN101060359A/en
Application granted granted Critical
Publication of CN101060359B publication Critical patent/CN101060359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Radio Transmission System (AREA)

Abstract

The invention provides an antenna selection method and device. A priority parameter value is obtained by detecting whether a packet of a signal received by an antenna is locked, the strength of the signal and the noise level. The method of the invention selects the antenna to be used according to the size of the priority parameter value. The device of the invention is provided with a plurality of antenna input ends which are respectively connected with a plurality of antennas so as to receive wireless signals of a plurality of channels. The electronic device comprises a switching module and a tuner, wherein the switching module is controlled by a microprocessor and is used for selecting one of a plurality of antennas to receive wireless signals, and the tuner is used for converting the wireless signals into computer readable signals.

Description

天线选择方法及装置 Antenna selection method and device

技术领域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, electronic device 122, 124, input terminal

130、230、电路模块         140、240、切换模块130, 230, circuit module 140, 240, switching module

150、250、调谐器           160、处理器150, 250, tuner 160, processor

242、切换器                244、放大器242. Switcher 244. Amplifier

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 signal receiving system 100 according to the present invention, including an electronic device 120 and antennas 112 and 114 for receiving wireless signals. The electronic device 120 may be, for example, a digital TV, a set-top box, or a personal computer equipped with a terrestrial TV broadcast tuner card or a satellite TV broadcast receiver card. According to different types of applications, the antennas 112 and 114 can be designed to receive different types of wireless signals, such as digital terrestrial broadcast signals, digital satellite broadcast signals, or other radio frequency signals. In addition, the antennas 112 and 114 can be various known antenna structures, such as patch antennas, helical antennas, etc., and are not limited to single-band, dual-band, or multi-band antennas. The electronic device 120 includes two antenna input terminals 122 and 124 for connecting the antennas 112 and 114 respectively. In another embodiment of the present invention, the wireless signal receiving system 100 may include N (greater than 2) antennas, and the electronic device 120 also has corresponding N antenna input terminals for connecting to the N antennas respectively, and the N The antenna input ports can be dispersed in different parts (eg top or side) of the electronic device 120 to receive wireless signals from different directions.

电子装置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 electronic device 120 further includes a circuit module 130 and a processor 160 , wherein the circuit module 130 includes a switching module 140 and a tuner 150 . The switching module 140 is connected to the antenna input terminals 122 and 124 to receive signals from the respective antennas. Under the control of the processor 160 , the switching module 140 can switch the antennas, so that the wireless signal from one of the antennas is transmitted to the tuner 150 . In addition to controlling the switching module 140 to switch the antennas, the processor 160 can also determine whether the antennas 112 and 114 are normally connected to the antenna input terminals 122 and 124 according to the signal received by the switching module 140 . If all antennas are not connected to the electronic device 120, the processor 160 may generate a prompt signal to remind the user that no antenna is available. The tuner 150 is used to adjust the frequency of the wireless signal for subsequent signal demodulation and image processing. Depending on its application, the tuner 150 can be, for example, a digital television tuner (DTV tuner) or a satellite radio tuner (satellite radio tuner). Taking digital TV as an example, the electronic device 120 can be used to receive and process radio frequency signals transmitted in various transmission standards, such as DVB (Digital Video Broadcasting) standard, ATSC (Advanced Television Systems Committee )) standard, or Integrated Services Digital Broadcasting (ISDB (Integrated Services Digital Broadcasting)) standard.

图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 circuit module 230 includes a switching module 240 and a tuner 250 , wherein the switching module 240 further includes a switcher 242 and an amplifier 244 . The switch 242 is connected to the first antenna 212 , the second antenna 214 to the Nth antenna 216 for transmitting the wireless signal received by one of the antennas to the amplifier 244 . These antennas can be used to receive wireless signals on multiple channels. The amplifier 244 is used to selectively amplify the wireless signal from the switcher 242 , wherein the amplifier 244 can be, for example, a well-known low noise amplifier with variable gain. The switcher 242 and the amplifier 244 are connected to a processor (not shown) through the signal transmission line 246, and the processor can be used to determine whether each antenna exists, and can control the switcher 242 to select which antenna according to the signal received by each antenna And control the amplifier 244 whether to amplify the signal strength. For different channels, the processor can control the switcher 242 to select different antennas. It should be noted that the switcher 242 and the amplifier 244 can also communicate with the processor through different signal transmission lines, and the present invention does not limit the communication method.

本发明根据各天线的优先参数值,而决定选择使用那一个天线。图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 parameter values 4, 3, 2, 1, and 0 are respectively assigned to each section according to its applicability. The present invention does not limit the number of strength sections and their division methods. Those skilled in the art can divide different sections according to different applications, and then specify different parameter values according to the applicability of each section. The segment with a higher degree of applicability has a higher parameter value. It should be noted that the stronger the strength does not mean the better the signal, if the signal strength is too strong, it may lead to oversaturation.

接着,在步骤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 parameter values 0, 1, 2, and 3 are respectively assigned to each section according to the size of the noise value. The present invention does not limit the number of noise sections and their division methods. Those skilled in the art can divide different sections according to different applications, and then specify different parameter values according to the applicability of each section. The segment with lower noise value has higher parameter value.

接着,在步骤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 element 140 in FIG. 1 ) to the existing architecture, and with appropriate software control, the present invention can be realized without adding too much cost.

在本发明另一实施例中,优先参数值的预定最大值可以一预定范围代替,只要天线的优先参数值落入该预定范围内,即选择使用该天线。举例来说,可设定优先参数值的预定最大值与预定次大值为一预定范围,因此在图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)

1.一种用于一电子装置的天线选择方法,该电子装置具有多个天线输入端,用以分别连接多个天线,以接收多个频道的无线信号,该方法包含以下步骤:1. An antenna selection method for an electronic device, the electronic device has a plurality of antenna input terminals for respectively connecting a plurality of antennas to receive wireless signals of a plurality of channels, the method comprises the following steps: (a)针对一频道,检测该多个天线的其中之一所接收的信号;(a) detecting a signal received by one of the plurality of antennas for a frequency channel; (b)判断该其中之一天线所接收信号的包是否完整,若是则进行至步骤(c),若否则回到步骤(a),继续检测另一天线;(b) judging whether the package 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)根据该所接收信号的信号强度及噪声大小,而得到一优先参数值;(c) obtaining a priority parameter value according to the signal strength and noise level of the received signal; (d)判断该优先参数值是否落入一预定范围,若是则选择使用该天线并结束检测操作,若否则进行至步骤(e);以及(d) judging whether the priority parameter value falls within a predetermined range, if so, select to use the antenna and end the detection operation, if not, proceed to step (e); and (e)判断是否所有天线皆检测完毕,若否则回到步骤(a),继续检测另一天线,(e) Judging whether all antennas have been detected, if not, return to step (a) and continue to detect another antenna, 其中该噪声大小代表所接收信号的包的差错率大小,而该优先参数值藉以下而获得:Wherein the noise size represents the packet error rate size of the received signal, and the priority parameter value is obtained by: 将信号的强度值预先区分为多个强度区段;Divide the strength value of the signal into a plurality of strength segments in advance; 将信号的噪声值预先区分为多个噪声区段;Pre-divide the noise value of the signal into multiple noise segments; 将该所接收信号的信号强度及噪声与该多个强度区段及该多个噪声区段对比,而分别得到该所接收信号的一强度参数值及一噪声参数值;以及comparing the signal strength and noise of the received signal with the plurality of strength bins and the plurality of noise bins to obtain a strength parameter value and a noise parameter value of the received signal, respectively; and 将该强度参数值及该噪声参数值相加而得到该优先参数值。The priority parameter value is obtained by adding the intensity parameter value and the noise parameter value. 2.如权利要求1所述的方法,其中在该步骤(a)还包含以下步骤:2. The method as claimed in claim 1, wherein in this step (a) also comprises the following steps: (x1)检测该多个天线是否与该多个天线输入端正常连接,其中正常连接的天线才进行后续步骤,无正常连接的天线则不进行后续步骤。(x1) Detecting whether the plurality of antennas are normally connected to the input terminals of the plurality of antennas, wherein only the antennas that are normally connected will perform the subsequent steps, and the antennas that are not normally connected will not perform the subsequent steps. 3.如权利要求2所述的方法,其中在该步骤(x1)还包含以下步骤:3. method as claimed in claim 2, wherein in this step (x1) also comprises the following steps: (x2)若所有该多个天线与该多个天线输入端皆无正常连接,则该电子装置产生一提示信号,用以指示无安装天线。(x2) If all of the plurality of antennas are not properly connected to the plurality of antenna input terminals, the electronic device generates a prompt signal to indicate that no antenna is installed. 4.如权利要求3所述的方法,其中该步骤(e)还包含以下步骤:4. method as claimed in claim 3, wherein this step (e) also comprises the following steps: (e1)若所有天线皆检测完毕,则根据各该天线所得到的优先参数值大小,选择其中一天线使用。(e1) If all the antennas are detected, one of the antennas is selected for use according to the value of the priority parameter obtained for each antenna. 5.如权利要求4所述的方法,其中还包含以下步骤:5. The method of claim 4, further comprising the steps of: (f)记录该所选择使用的天线以及该天线的优先参数值大小于该电子装置中;以及(f) record the selected antenna and the priority parameter value of the antenna is smaller than that in the electronic device; and (g)针对另一频道,重复步骤(a),直到记录所有频道所分别使用的天线。(g) For another channel, repeat step (a) until the antennas used by all channels are recorded. 6.如权利要求5所述的方法,其中步骤(a)至(g)于该电子装置每次开机时执行。6. The method as claimed in claim 5, wherein steps (a) to (g) are executed every time the electronic device is turned on. 7.如权利要求5所述的方法,还包含以下步骤:7. The method of claim 5, further comprising the steps of: (h)切换至下一频道时,判断该下一频道的所记录的天线的优先参数值是否落入该预定范围,若是则使用该所记录的天线来接收无线信号,若否则进行至步骤(i);(h) When switching to the next channel, judge whether the priority parameter value of the recorded antenna of the next channel falls within the predetermined range, if so, use the recorded antenna to receive wireless signals, otherwise proceed to step ( i); (i)重复步骤(a)至(f),以选择其中一天线来接收无线信号。(i) Repeat steps (a) to (f) to select one of the antennas to receive the wireless signal. 8.如权利要求7所述的方法,其中该步骤(h)还包含以下步骤:8. method as claimed in claim 7, wherein this step (h) also comprises the following steps: (h1)未切换频道时,每隔一预定时间检测所使用天线的优先参数值是否减少,若是则重复步骤(a)至(f),以选择另一天线使用。(h1) When the channel is not switched, check whether the priority parameter value of the antenna used decreases every predetermined time, and if so, repeat steps (a) to (f) to select another antenna for use. 9.一种用于一电子装置的电路,该电子装置具有多个天线输入端,用以分别连接多个天线,以接收多个频道的无线信号,该电路包含:9. A circuit for an electronic device, the electronic device has a plurality of antenna input terminals for respectively connecting a plurality of antennas to receive wireless signals of a plurality of channels, the circuit comprising: 一切换模块,用以耦合至该多个天线输入端,其中该切换模块由一微处理器控制,以选择该多个天线的其中之一来接收无线信号;a switching module, used to be coupled to the plurality of antenna input terminals, wherein the switching module is controlled by a microprocessor to select one of the plurality of antennas to receive wireless signals; 其中该微处理器根据各天线的优先参数值,而控制该切换模块选择其中一天线来接收无线信号,该微处理器用于:Wherein the microprocessor controls the switching module to select one of the antennas to receive the wireless signal according to the priority parameter value of each antenna, and the microprocessor is used for: (a)针对一频道,检测该多个天线的其中之一所接收的信号;(a) detecting a signal received by one of the plurality of antennas for a frequency channel; (b)判断该其中之一天线所接收信号的包是否完整,若是则进行至步骤(c),若否则回到步骤(a),继续检测另一天线;(b) judging whether the package 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)根据该所接收信号的信号强度及噪声大小,而得到一优先参数值;(c) obtaining a priority parameter value according to the signal strength and noise level of the received signal; (d)判断该优先参数值是否落入一预定范围,若是则选择使用该天线并结束检测操作,若否则进行至步骤(e);以及(d) judging whether the priority parameter value falls within a predetermined range, if so, select to use the antenna and end the detection operation, if not, proceed to step (e); and (e)判断是否所有天线皆检测完毕,若否则回到步骤(a),继续检测另一天线,(e) Judging whether all antennas have been detected, if not, return to step (a) and continue to detect another antenna, 其中该噪声大小代表所接收信号的包的差错率大小,而该优先参数值藉以下而获得:Wherein the noise size represents the packet error rate size of the received signal, and the priority parameter value is obtained by: 将信号的强度值预先区分为多个强度区段;Divide the strength value of the signal into a plurality of strength segments in advance; 将信号的噪声值预先区分为多个噪声区段;Pre-divide the noise value of the signal into multiple noise segments; 将该所接收信号的信号强度及噪声与该多个强度区段及该多个噪声区段对比,而分别得到该所接收信号的一强度参数值及一噪声参数值;以及comparing the signal strength and noise of the received signal with the plurality of strength bins and the plurality of noise bins to obtain a strength parameter value and a noise parameter value of the received signal, respectively; and 将该强度参数值及该噪声参数值相加而得到该优先参数值。The priority parameter value is obtained by adding the intensity parameter value and the noise parameter value. 10.如权利要求9所述的电路,其中该切换模块包含:10. The circuit of claim 9, wherein the switching module comprises: 一切换器,连接至该多个天线输入端,其中该微处理器耦合至该切换器,以判断该多个天线是否与该多个天线输入端正常连接;以及a switcher connected to the plurality of antenna input terminals, wherein the microprocessor is coupled to the switcher to determine whether the plurality of antennas are normally connected to the plurality of antenna input terminals; and 一放大器,连接至该切换器,用以放大所接收无线信号的强度,其中该微处理器耦合至该放大器,以控制是否放大该所接收的无线信号。An amplifier, connected to the switch, is used to amplify the strength of the received wireless signal, wherein the microprocessor is coupled to the amplifier to control whether to amplify the received wireless signal. 11.如权利要求9所述的电路,其中该多个天线输入端的其中之一置于该电子装置的顶部,且该多个天线输入端中的其中另一个置于该电子装置的两侧。11. The circuit as claimed in claim 9, wherein one of the plurality of antenna input terminals is disposed on the top of the electronic device, and the other of the plurality of antenna input terminals is disposed on two sides of the electronic device. 12.一种电子装置,具有多个天线输入端,用以分别连接多个天线,以接收多个频道的无线信号,该电子装置包含:12. An electronic device having a plurality of antenna input terminals for respectively connecting a plurality of antennas to receive wireless signals of a plurality of channels, the electronic device comprising: 一切换模块,耦合至该多个天线输入端;以及a switching module coupled to the plurality of antenna inputs; and 一微处理器,控制该切换模块,以选择该多个天线的其中之一来接收无线信号;a microprocessor, controlling the switching module to select one of the plurality of antennas to receive wireless signals; 其中该微处理器根据各天线的优先参数值,而控制该切换模块选择其中一天线来接收无线信号,该微处理器用于:Wherein the microprocessor controls the switching module to select one of the antennas to receive the wireless signal according to the priority parameter value of each antenna, and the microprocessor is used for: (a)针对一频道,检测该多个天线的其中之一所接收的信号;(a) detecting a signal received by one of the plurality of antennas for a frequency channel; (b)判断该其中之一天线所接收信号的包是否完整,若是则进行至步骤(c),若否则回到步骤(a),继续检测另一天线;(b) judging whether the package 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)根据该所接收信号的信号强度及噪声大小,而得到一优先参数值;(c) obtaining a priority parameter value according to the signal strength and noise level of the received signal; (d)判断该优先参数值是否落入一预定范围,若是则选择使用该天线并结束检测操作,若否则进行至步骤(e);以及(d) judging whether the priority parameter value falls within a predetermined range, if so, select to use the antenna and end the detection operation, if not, proceed to step (e); and (e)判断是否所有天线皆检测完毕,若否则回到步骤(a),继续检测另一天线,(e) Judging whether all antennas have been detected, if not, return to step (a) and continue to detect another antenna, 其中该噪声大小代表所接收信号的包的差错率大小,而该优先参数值藉以下而获得:Wherein the noise size represents the packet error rate size of the received signal, and the priority parameter value is obtained by: 将信号的强度值预先区分为多个强度区段;Divide the strength value of the signal into a plurality of strength segments in advance; 将信号的噪声值预先区分为多个噪声区段;Pre-divide the noise value of the signal into multiple noise segments; 将该所接收信号的信号强度及噪声与该多个强度区段及该多个噪声区段对比,而分别得到该所接收信号的一强度参数值及一噪声参数值;以及comparing the signal strength and noise of the received signal with the plurality of strength bins and the plurality of noise bins to obtain a strength parameter value and a noise parameter value of the received signal, respectively; and 将该强度参数值及该噪声参数值相加而得到该优先参数值。The priority parameter value is obtained by adding the intensity parameter value and the noise parameter value. 13.如权利要求12所述的电子装置,其中该切换模块包含:13. The electronic device as claimed in claim 12, wherein the switching module comprises: 一切换器,连接至该多个天线输入端,其中该微处理器耦合至该切换器,以判断该多个天线是否与该多个天线输入端正常连接;以及a switcher connected to the plurality of antenna input terminals, wherein the microprocessor is coupled to the switcher to determine whether the plurality of antennas are normally connected to the plurality of antenna input terminals; and 一放大器,连接至该切换器,用以放大所接收无线信号的强度,其中该微处理器耦合至该放大器,以控制是否放大该所接收的无线信号。An amplifier, connected to the switch, is used to amplify the strength of the received wireless signal, wherein the microprocessor is coupled to the amplifier to control whether to amplify the received wireless signal. 14.如权利要求12所述的电子装置,其中该多个天线输入端的其中之一置于该电子装置的顶部,且该多个天线输入端中的其中另一个置于该电子装置的两侧。14. The electronic device as claimed in claim 12, wherein one of the plurality of antenna input terminals is placed on the top of the electronic device, and the other of the plurality of antenna input terminals is placed on both sides of the electronic device . 15.一种用于一电子装置的天线选择方法,该电子装置具有多个天线,以接收一第一频道的无线信号,该方法包含以下步骤:15. An antenna selection method for an electronic device, the electronic device has a plurality of antennas to receive a wireless signal of a first channel, the method comprising the following steps: (a)针对该第一频道,检测一第一天线所接收的信号;(a) detecting a signal received by a first antenna for the first channel; (b)判断该第一天线所接收信号的包是否完整,若是则进行至步骤(c),若否则回到步骤(a),继续检测一第二天线;(b) judging whether the packet of the signal received by the first antenna is complete, if so, proceed to step (c), otherwise return to step (a), and continue to detect a second antenna; (c)根据该第一天线所接收信号的信号强度及噪声大小,而得到一第一优先参数值;(c) obtaining a first priority parameter value according to the signal strength and noise level of the signal received by the first antenna; (d)判断该第一优先参数值是否等于落入一预设值范围,若是则该电子装置选择使用该第一天线并结束检测操作,若否则进行至步骤(e);以及(d) judging whether the first priority parameter value falls within a preset value range, if so, the electronic device selects to use the first antenna and ends the detection operation, otherwise proceeds to step (e); and (e)判断是否所有天线皆检测完毕,若否则回到步骤(a),继续检测该第二天线,(e) judging whether all antennas have been detected, if not, return to step (a) and continue to detect the second antenna, 其中该噪声大小代表所接收信号的包的差错率大小,而该优先参数值藉以下而获得:Wherein the noise size represents the packet error rate size of the received signal, and the priority parameter value is obtained by: 将信号的强度值预先区分为多个强度区段;Divide the strength value of the signal into a plurality of strength segments in advance; 将信号的噪声值预先区分为多个噪声区段;Pre-divide the noise value of the signal into multiple noise segments; 将该所接收信号的信号强度及噪声与该多个强度区段及该多个噪声区段对比,而分别得到该所接收信号的一强度参数值及一噪声参数值;以及comparing the signal strength and noise of the received signal with the plurality of strength bins and the plurality of noise bins to obtain a strength parameter value and a noise parameter value of the received signal, respectively; and 将该强度参数值及该噪声参数值相加而得到该优先参数值。The priority parameter value is obtained by adding the intensity parameter value and the noise parameter value. 16.如权利要求15所述的方法,其中在该步骤(a)还包含以下步骤:16. The method as claimed in claim 15, wherein in the step (a), further comprising the following steps: (x1)检测该多个天线是否正常工作,其中正常工作的天线才进行后续步骤,无法正常工作的天线则不进行后续步骤。(x1) Detecting whether the plurality of antennas are working normally, wherein the antennas that work normally will go to the next step, and the antennas that cannot work normally will not go to the next step. 17.如权利要求15所述的方法,其中在该步骤(x1)还包含以下步骤:17. The method as claimed in claim 15, wherein in this step (x1) also comprises the following steps: (x2)若所有该多个天线皆无法正常工作,则该电子装置产生一提示信号,用以指示无天线正常工作。(x2) If all the multiple antennas fail to work normally, the electronic device generates a prompt signal to indicate that no antenna works normally.
CN2006100746559A 2006-04-21 2006-04-21 Antenna selection method and device Active CN101060359B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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