Summary of the invention
In view of the existing problem of prior art, the invention provides the method and the device of a kind of day line options.
According to an aspect of the present invention, provide a kind of antenna selecting method that is used for an electronic installation.This electronic installation has a plurality of antenna inputs, in order to connect a plurality of antennas respectively, to receive the wireless signal of a plurality of channels (channels).Method of the present invention comprises following steps: (a) at a channel, detect the signal that one of them received of a plurality of antennas; (b) judge whether the bag (packet) of this antenna received signal is complete, if then proceed to step (c), then gets back to step (a) if not, continue to detect another antenna; (c), and obtain a priority parameter value according to the signal strength signal intensity and the noise size of received signal; (d) judge whether the priority parameter value falls into a preset range,, then proceed to step (e) if not if then select to use this antenna and detection of end operation; And (e) judge whether that all antennas all detect and finish, then get back to step (a) if not, continue to detect another antenna, wherein this noise size is represented the error rate size of the bag of received signal, and this priority parameter value is used down and obtained: the intensity level of signal is divided into a plurality of intensity sections in advance; The noise level of signal is divided into a plurality of noise sections in advance; With the signal strength signal intensity of this received signal and noise and this a plurality of intensity sections and should contrast by a plurality of noise sections, and obtain an intensity parameters value and a noise parameter value of this received signal respectively; And with this intensity parameters value and this noise parameter value addition and obtain this priority parameter value.
According to a further aspect in the invention, provide a kind of circuit that is used for an electronic installation.This electronic installation has a plurality of antenna inputs, in order to connect a plurality of antennas respectively, to receive the wireless signal of a plurality of channels (channels).This circuit comprises: all die change pieces (switch module), and in order to be coupled to a plurality of antenna inputs, wherein handover module is controlled by a microprocessor, receives wireless signal with one of them that select a plurality of antennas; Wherein this microprocessor is according to the priority parameter value of each antenna, selects wherein that an antenna receives wireless signal and control this handover module, and this microprocessor is used for: (a) at a channel, detect the signal that one of them received of these a plurality of antennas; (b) judge whether the bag of this one of them antenna received signal is complete, if then proceed to step (c), then gets back to step (a) if not, continue to detect another antenna; (c), and obtain a priority parameter value according to the signal strength signal intensity and the noise size of this received signal; (d) judge whether this priority parameter value falls into a preset range,, then proceed to step (e) if not if then select to use this antenna and detection of end operation; And (e) judge whether that all antennas all detect and finish, then get back to step (a) if not, continue to detect another antenna, wherein this noise size is represented the error rate size of the bag of received signal, and this priority parameter value is used down and obtained: the intensity level of signal is divided into a plurality of intensity sections in advance; The noise level of signal is divided into a plurality of noise sections in advance; With the signal strength signal intensity of this received signal and noise and this a plurality of intensity sections and should contrast by a plurality of noise sections, and obtain an intensity parameters value and a noise parameter value of this received signal respectively; And with this intensity parameters value and this noise parameter value addition and obtain this priority parameter value.
According to another aspect of the invention, provide a kind of electronic installation.This electronic installation has a plurality of antenna inputs, in order to connect a plurality of antennas respectively, to receive the wireless signal of a plurality of channels.This electronic installation comprises: all die change pieces are coupled to a plurality of antenna inputs; One microprocessor, the control handover module receives wireless signal with one of them that select a plurality of antennas; Wherein this microprocessor is according to the priority parameter value of each antenna, selects wherein that an antenna receives wireless signal and control this handover module, and this microprocessor is used for: (a) at a channel, detect the signal that one of them received of these a plurality of antennas; (b) judge whether the bag of this one of them antenna received signal is complete, if then proceed to step (c), then gets back to step (a) if not, continue to detect another antenna; (c), and obtain a priority parameter value according to the signal strength signal intensity and the noise size of this received signal; (d) judge whether this priority parameter value falls into a preset range,, then proceed to step (e) if not if then select to use this antenna and detection of end operation; And (e) judge whether that all antennas all detect and finish, then get back to step (a) if not, continue to detect another antenna, wherein this noise size is represented the error rate size of the bag of received signal, and this priority parameter value is used down and obtained: the intensity level of signal is divided into a plurality of intensity sections in advance; The noise level of signal is divided into a plurality of noise sections in advance; With the signal strength signal intensity of this received signal and noise and this a plurality of intensity sections and should contrast by a plurality of noise sections, and obtain an intensity parameters value and a noise parameter value of this received signal respectively; And with this intensity parameters value and this noise parameter value addition and obtain this priority parameter value.
The narration and the description of drawings that cooperate following preferred embodiment, purpose of the present invention, embodiment, feature, and advantage will be more clear.
Description of drawings
Fig. 1 is a wireless signal receiving system represented according to the present invention;
Fig. 2 is an embodiment of circuit module shown in Figure 1;
Fig. 3 is a represented method flow diagram according to the present invention, in order to determine a priority parameter value of an antenna;
Fig. 4 represents a method flow diagram, when an electronic installation is started shooting, selects the method for antenna in order to explanation according to the priority parameter value that Fig. 3 determined; And
Fig. 5 represents a method flow diagram, when an electronic installation switches receiving channels, selects the method for antenna in order to explanation according to the priority parameter value that Fig. 3 determined.
The figure elements symbol description
100, wireless signal receiving system
112,114,212,214,216, antenna
120, electronic installation 122,124, input
130,230, circuit module 140,240, handover module
150,250, tuner 160, processor
242, switch 244, amplifier
246, signal transmssion line
Embodiment
The present invention discloses a kind of antenna selecting method and device.In order to make narration of the present invention more detailed and complete, can be with reference to the accompanying drawing of following description and cooperation Fig. 1 to Fig. 5.Device, element and method step described in right following examples in order to explanation the present invention, is not in order to limit the scope of the invention only.
Fig. 1 is a wireless signal receiving system 100 represented according to the present invention, comprises an electronic installation 120 and in order to receive the antenna 112,114 of wireless signal.Electronic installation 120 can for example be a digital television, a set-top box (set-top box) or the personal computer that is equipped with ground TV broadcast receiving card (tunercard) or satellite television broadcasting receiving card.According to the difference of application type, antenna 112 and 114 can be designed in order to receive different types of wireless signal, for example DTB Digital Terrestrial Broadcasting signal, digital satellite broadcasting signal or other radiofrequency signals etc.In addition, antenna 112 and 114 can be various known antenna structures, for example plate aerial, helical antenna etc., and be not limited to single-frequency, double frequency or multifrequency antenna.Electronic installation 120 comprises two antenna inputs 122 and 124, in order to connect antenna 112 and 114 respectively.In another embodiment of the present invention, wireless signal receiving system 100 can comprise the individual antenna of N (greater than 2), and electronic installation 120 also has a corresponding N antenna input, in order to connect N antenna respectively, and this N antenna input can be dispersed in the different parts (for example top or side) of electronic installation 120, to receive the wireless signal from different directions.
Electronic installation 120 also comprises a circuit module 130 and a processor 160, and wherein circuit module 130 comprises all die change pieces 140 and a tuner 150.Handover module 140 is connected with antenna input 122 and 124, to receive the signal from each antenna.Under the control of processor 160, handover module 140 can carry out the switching of antenna, makes from the wireless signal of an antenna wherein and is sent to tuner 150.Processor 160 carries out the switching of antenna except may command handover module 140, also can judge whether antenna 112 and 114 normally is connected with antenna input 122 and 124 according to handover module 140 received signals.If all antennas all are not connected with electronic installation 120, then processor 160 can produce a cue, can use to remind the user not have antenna.Tuner 150 is in order to adjust the frequency of wireless signal, for follow-up signal demodulation and image processing.According to the difference of its application, tuner 150 can for example be a digital TV tuner (DTV tuner) or satellite broadcast tuner (satellite radio tuner).With the digital television is example, electronic installation 120 can be handled with the radiofrequency signal that various transmission standard was transmitted in order to receive, for example digital video broadcasting (DVB (Digital Video Broadcasting)) standard, advanced television system committee (ATSC (Advanced Television Systems Committee)) standard or conformability service digits broadcasting (ISDB (Integrated Services Digital Broadcasting)) standard.
Fig. 2 is an embodiment of circuit module shown in Figure 1.In Fig. 2, circuit module 230 comprises all die change pieces 240 and a tuner 250, and wherein handover module 240 also comprises a switch 242 and an amplifier 244.Switch 242 is connected with first antenna 212, second antenna 214 to the N antenna 216, in order to will be wherein the wireless signal that received of an antenna be sent to amplifier 244.These antenna can be in order to receive the wireless signal of a plurality of channels (channels).Amplifier 244 is in order to optionally to amplify the wireless signal from switch 242, and wherein amplifier 244 can for example be known low noise amplifier with variable gain.Switch 242 and amplifier 244 are connected to a processor (figure does not show) by signal transmssion line 246, whether this processor can exist in order to judge each antenna, and can control switch 242 according to the signal that each antenna received and select whether amplifying signal intensity of those antennas and control amplifier 244.At different channel, processor may command switch 242 is selected different antennas.Note that switch 242 and amplifier 244 also can be linked up by different signal transmssion lines and processor, the present invention does not limit its communication way.
The present invention is according to the priority parameter value of each antenna, and decision selects to use that antenna.Fig. 3 is a represented method flow diagram according to the present invention, in order to determine a priority parameter value of an antenna.At first, in step S310, detect the intensity of the received signal of an antenna.After the present invention is divided into a plurality of sections with signal strength signal intensity in advance, specify different parameters to give this a plurality of sections more respectively according to the how appropriate of intensity.With the intensity of antenna received signal and each intensity section contrast that sets in advance, can obtain an intensity parameters value.The intensity section division will be variant according to the difference of application system.For instance, designated parameter value 2 give intensity between 0dBm (dBm) and-75dBm between section, designated parameter value 1 give the section of intensity for section and the designated parameter value 0 of intensity greater than 0dBm less than-75dBm.In this embodiment, if the intensity of antenna received signal is-50dBm that then its intensity parameters value is 2.In another embodiment, signal strength signal intensity can be divided into 5 sections in advance, and difference designated parameter value 4,3,2,1,0 is given each section according to the height of its how appropriate.The present invention is the quantity and the dividing mode thereof of limited strength section not, those skilled in the art can carry out different sections according to different application and divide, again according to the how appropriate of each section height and specify different parameter values respectively, the how appropriate high section of healing wherein, parameter value is also higher.Be noted that the strong more not representation signal of intensity is good more,, may cause oversaturated phenomenon to take place if signal strength signal intensity is strong excessively.
Then, in step S320, detect the size of the noise level that an antenna received.After the present invention is divided into a plurality of sections with noise level in advance, specify different parameters to give this a plurality of sections more respectively according to the size of noise level.The noise level that antenna is received and each noise section contrast that sets in advance, and obtain a noise parameter value.According to one embodiment of the invention, noise is represented the size of PER (packet errorrate), and promptly signal transmits the ratio of losing the position in the receiving course.The noise section division will be variant according to the difference of system.For instance, designated parameter value 1 gives noise level less than 5 * 10
-3The section of PER (being to have 5 in per 1000 positions can not receive), and designated parameter value 0 gives noise level greater than 5 * 10
-3The section of PER.In this embodiment, if the noise level of antenna received signal is 1 * 10
-3, then its noise parameter value is 1.In another embodiment, noise level can be divided into 4 sections in advance, and difference designated parameter value 0,1,2,3 is given each section according to the size of noise level.The present invention does not limit the quantity and the dividing mode thereof of noise section, those skilled in the art can carry out different sections according to different application and divide, again according to the how appropriate of each section height and specify different parameter values respectively, the noise level low section of healing wherein, parameter value is higher.
Then, in step S330, judge whether the received signal packet of antenna locks (lock).Can be surrounded by latch-up-free decides according to receiving complete signal.For instance, in received a series of bit stream (bit stream), just confirm the sync byte (sync byte) in the header (header), and recognize the bit data that will may be read into its back regular length behind the sync byte, just calculate and receive a complete bag, also just calculate locking.Yet, need in how many positions, just to confirm that sync byte just calculates locking, the present invention and indefinite, and come and determine by various practical applications.Then, in step S340, the priority parameter value of decision antenna.Be locking if judge the received signal packet of antenna among the step S330, then the priority parameter value of this antenna will be set at resulting numerical value after its intensity parameters value and the addition of noise parameter value.If be judged as not locking in step S330, then the priority parameter value of this antenna will be set at zero.Wherein, the maximum of priority parameter value is the maximum that the maximum of intensity parameters adds noise parameter, in other words, if the received signal of antenna has optimal intensity and minimum noise level, then the priority parameter value of this antenna equals a predetermined maximum.
Fig. 4 represents a method flow diagram, when an electronic installation is started shooting, selects the method for antenna in order to explanation according to the priority parameter value that Fig. 3 determined.Electronic installation of the present invention has a plurality of antenna inputs, in order to connect a plurality of antennas respectively, to receive the wireless signal of a plurality of channels (channels).At a channel, can select to receive by the preferable antenna of reception wherein.Electronic installation one start, its internal circuit will be carried out method step shown in Figure 4.At first, in step S400, whether have antenna be installed on electronic installation on, that is whether antenna normally is connected with the antenna input of electronic installation if detecting.If no any antenna is installed, then program proceeds to step S405, and electronic installation produces a cue, can use to notify the user not have any antenna.If detected any antenna and be installed on the electronic installation, then program proceeds to step S410, carries out initialized operation, and the priority parameter value of mounted antenna is set at zero.Then, in step S415, judge whether that all channels all detect to finish,, finish this method if then program proceeds to step S420.If not, then program proceeds to step S425, and selecting wherein, a channel that does not detect detects.Generally speaking, each channel is arranged in regular turn number, and method of the present invention can be selected channel detection in regular turn according to the sequence number size of channel, but is not limited to according to this order.Then, in step S430,, select to have installed but the antenna that do not detect as yet at step S425 selected channel.Generally speaking, can be in advance with all antenna layout sequence numbers, and select antenna to detect in regular turn according to the sequence number size.In step S435, the priority parameter value of the selected antenna of calculation procedure S430, and judge whether this priority parameter value equals a predetermined maximum.The computational methods of priority parameter value have been described in the explanation that is relevant to Fig. 3, so do not give unnecessary details.In step S435, if be judged as and be, then program proceeds to step S440, sets this antenna and is the antenna in order to the wireless signal that receives present detection channel, and store the priority parameter value of this antenna.Then, program is got back to step S415, to detect at other channels.According to the present invention, for arbitrary specific channel, need only one and find the priority parameter value to equal the antenna of predetermined maximum, just stop detection at this specific channel, no longer judge the priority parameter value of other antennas, therefore can accelerate detection speed.Therefore, during end, the antenna that may still have some not detect as yet.Yet, in other embodiments, also can after having detected all antennas, determine the antenna that institute's desire is used again at this specific channel.
If the judged result of step S435 is that then program does not proceed to step S445, store the priority parameter value of institute's detection antenna, use for subsequent step.Then, in step S450,, judge whether that all mounted antennas all detect to finish, if not, then get back to step S430, detect to select other antennas at selected channel.If then program proceeds to step S455,, select antenna with maximum relatively priority parameter value according to the priority parameter value of each antenna that is write down among the step S445.If there is the priority parameter value of two above antennas identical and all be relative maximum, then select one of them, its system of selection is decided with application, and the present invention does not limit.For instance, can select, also can be set at random and select according to the size of antenna sequence number, intensity parameters value or noise parameter value.Then, program is got back to step S440, and the selected antenna settings of step 455 is the antenna in order to the wireless signal that receives present detection channel, and stores the priority parameter value of this antenna.
Electronic installation of the present invention can automatically perform method shown in Figure 4 when a start, to write down the antenna that each channel institute desire is used.The present invention also provides the antenna selecting method of electronic installation when switching institute's receiving channels, as shown in Figure 5.Fig. 5 represents a method flow diagram, when an electronic installation switches institute's receiving channels, selects the method for antenna in order to explanation according to the priority parameter value that Fig. 3 determined.This electronic installation is carried out method step shown in Figure 4 when start, and has write down antenna and priority parameter value thereof that each channel institute desire is used.As above-mentioned, when electronic installation when channel A switches to channel B, its internal circuit will be carried out method step shown in Figure 5.At first, in step S500, judge whether channel B sets (method of Fig. 4) is predetermined maximum in order to the priority parameter value (method of Fig. 3) of the antenna that receives wireless signal.If then program proceeds to step S505, electronic installation uses the antenna that sets to come the signal of receiving channels B.If not, then program proceeds to step S510, at channel B, selects a mounted wherein antenna to detect.In step S515, the priority parameter value of selected antenna among the calculation procedure S510, and judge whether this priority parameter value equals predetermined maximum.The computational methods of priority parameter value are identical with Fig. 3, so do not give unnecessary details.If then program proceeds to step S520, use this antenna to come the signal of receiving channels B, and write down this antenna and priority parameter value thereof.If the judged result of step S515 is that then program does not proceed to step S525, store the priority parameter value of institute's detection antenna, use for subsequent step.Then, in step S530,, judge whether that all mounted antennas all detect to finish, if not, then get back to step S510, detect to select other antennas at channel B.If then program proceeds to step S535,, select antenna with maximum relatively priority parameter value according to the priority parameter value of each antenna that is write down among the step S520.If there is the priority parameter value of two above antennas identical and all be relative maximum, then can select a wherein antenna according to the size of antenna sequence number, intensity parameters value or noise parameter value, also can select at random.
To sum up state, according to the present invention, electronic installation just carries out the scanning of antenna at each channel automatically when a start, and at the different antenna of each channel setting.And when switching channels, whether the antenna that scanning set when electronic installation can be selected start earlier for use if the priority parameter value of this antenna less than predetermined maximum, detects other antennas again, needs switched antenna with decision.In addition, the present invention's one start promptly detects to have or not earlier and fixes up an aerial wire, and does not detect any antenna if having, and just notifies the user to install, and after need not waiting until that all channels all finish the scanning of antenna, just finds not receive any signal.And when each antenna of scanning, electronic installation only can detect mounted antenna, makes that the detection of antenna and switching are more efficient.At last,, only need on existing framework, to increase all die change pieces (as the element 140 of Fig. 1),, can realize the present invention, and need not increase too much cost in the control of collocation appropriate software in the part of hardware.
In another embodiment of the present invention, the predetermined maximum of priority parameter value can replace by a preset range, as long as the priority parameter value of antenna falls in this preset range, promptly selects to use this antenna.For instance, predetermined maximum and the predetermined second largest value that can set the priority parameter value are a preset range, therefore in the step S435 of Fig. 4, if the priority parameter value of institute's detection antenna equals predetermined maximum or predetermined second largest value, then select to use this antenna.
In another embodiment of the present invention, except start and can carry out during switching channels the method for selecting antenna, whether electronic installation also can utilize the neutral gear of machine works to come execution graph 4 or method shown in Figure 5 at any time, change with the priority parameter value of checking institute's use antenna.
Though the present invention with preferred embodiment openly as above; right its is not that any those skilled in the art are under the situation that does not break away from the spirit and scope of the present invention in order to qualification the present invention; can change and modification, so protection scope of the present invention is as the criterion with the claim institute restricted portion that is proposed.