TWI803121B - Smart antenna switching method, electronic device and computer readable storage medium - Google Patents

Smart antenna switching method, electronic device and computer readable storage medium Download PDF

Info

Publication number
TWI803121B
TWI803121B TW110149416A TW110149416A TWI803121B TW I803121 B TWI803121 B TW I803121B TW 110149416 A TW110149416 A TW 110149416A TW 110149416 A TW110149416 A TW 110149416A TW I803121 B TWI803121 B TW I803121B
Authority
TW
Taiwan
Prior art keywords
antenna
switched
operation stage
wireless signal
wireless
Prior art date
Application number
TW110149416A
Other languages
Chinese (zh)
Other versions
TW202327176A (en
Inventor
賴韋帆
Original Assignee
新加坡商鴻運科股份有限公司
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 新加坡商鴻運科股份有限公司 filed Critical 新加坡商鴻運科股份有限公司
Priority to TW110149416A priority Critical patent/TWI803121B/en
Application granted granted Critical
Publication of TWI803121B publication Critical patent/TWI803121B/en
Publication of TW202327176A publication Critical patent/TW202327176A/en

Links

Images

Landscapes

  • Radar Systems Or Details Thereof (AREA)
  • Near-Field Transmission Systems (AREA)
  • Input Circuits Of Receivers And Coupling Of Receivers And Audio Equipment (AREA)
  • Variable-Direction Aerials And Aerial Arrays (AREA)

Abstract

A smart antenna switching method is disclosed. Multiple wireless signal parameters of a wireless environment are collected. Under a current processing stepper, when a holding period of a to-be-switched antenna is 0, the qualities of wireless signals between an original antenna and the to-be-switched antenna are compared according to the wireless signal parameters. When a comparing period of the to-be-switched antenna is 0, it is determined whether an antenna switching operation is performed. If the antenna switching operation is not performed, the next processing stepper is served as the current processing stepper. If the antenna switching operation is performed, a signal receiving-and-sending operating is switched from the to-be-switched antenna to the outdoor antenna or from the outdoor antenna to the to-be-switched antenna, and the previous processing stepper is served as the current processing stepper.

Description

智慧天線切換方法、電子裝置及電腦可讀儲存媒體Smart antenna switching method, electronic device, and computer-readable storage medium

本發明係有關於智慧天線,且特別有關於一種智慧天線切換方法、電子裝置及電腦可讀儲存媒體。The present invention relates to a smart antenna, and in particular to a smart antenna switching method, an electronic device and a computer-readable storage medium.

由於5G通訊大多運作在高頻,其電磁穿透力較差,導致天線裝置在室內甚至地下室時有明顯較差的收發品質。已知的智慧天線操作切換都僅根據天線之間的接收信號強度指示(Received Signal Strength Indicator,RSSI)值的差異來判斷好壞,並且在訊號收發品質較差時會增大發送的訊號強度進而增加電力的損耗。Since 5G communication mostly operates at high frequencies, its electromagnetic penetration is poor, resulting in significantly poorer sending and receiving quality when the antenna device is indoors or even in a basement. Known smart antenna operation switching only judges whether it is good or bad based on the difference in the Received Signal Strength Indicator (RSSI) value between the antennas, and when the quality of the signal transmission and reception is poor, the transmitted signal strength will be increased to increase loss of electricity.

有鑑於此,本發明提供了一種智慧天線切換方法及電子裝置,通過一個可延伸至外部之天線,能智慧地切換內部天線與外部天線,快速喚醒智慧天線以節省電力損耗並提升無線訊號品質。In view of this, the present invention provides a smart antenna switching method and an electronic device. Through an antenna that can be extended to the outside, it can intelligently switch the internal antenna and the external antenna, and quickly wake up the smart antenna to save power consumption and improve the quality of wireless signals.

本發明實施例提供一種智慧天線切換方法,應用於一電子裝置中,該電子裝置包括一待切換天線與一初始天線,該待切換天線與一室外天線連接,包括下列步驟:收集一無線環境的複數無線訊號參數;在一目前運作階段,判斷該待切換天線之一維持期是否為0;若該維持期為0,根據該些無線訊號參數比對該初始天線與該待切換天線的無線訊號品質好壞,並判斷該待切換天線之一比較期是否為0;若該比較期為0,根據該無線訊號品質的判斷結果,判斷是否切換天線;若不切換天線,將下一運作階段做為該目前運作階段,並根據該調整後之該目前運作階段設定該維持期與該比較期;以及若切換天線,將一訊號收發操作由該待切換天線切換到該室外天線來執行,或是由該室外天線切換回該待切換天線來執行,同時將前一運作階段做為該目前運作階段,並根據該調整後之該目前運作階段設定該維持期與該比較期。An embodiment of the present invention provides a smart antenna switching method, which is applied to an electronic device, the electronic device includes an antenna to be switched and an initial antenna, and the antenna to be switched is connected to an outdoor antenna, including the following steps: collecting a wireless environment Multiple wireless signal parameters; in a current operation stage, determine whether a maintenance period of the antenna to be switched is 0; if the maintenance period is 0, compare the wireless signals of the initial antenna and the antenna to be switched according to the wireless signal parameters The quality is good or bad, and judge whether the comparison period of one of the antennas to be switched is 0; if the comparison period is 0, judge whether to switch the antenna according to the judgment result of the wireless signal quality; if the antenna is not switched, do it in the next operation stage For the current operation stage, set the maintenance period and the comparison period according to the adjusted current operation stage; and if the antenna is switched, switch a signal sending and receiving operation from the antenna to be switched to the outdoor antenna for execution, or Switching from the outdoor antenna back to the antenna to be switched is performed, and at the same time, the previous operation stage is used as the current operation stage, and the maintenance period and the comparison period are set according to the adjusted current operation stage.

本發明實施例還提供一種電子裝置,包括一初始天線、連接於一室外天線之一待切換天線、一數據取得模組、一判斷模組與一處理模組。The embodiment of the present invention also provides an electronic device, including an initial antenna, an antenna to be switched connected to an outdoor antenna, a data acquisition module, a judgment module and a processing module.

該數據取得模組用於收集一無線環境的複數無線訊號參數。The data acquisition module is used for collecting complex wireless signal parameters of a wireless environment.

該判斷模組用於在一目前運作階段,判斷該待切換天線之一維持期是否為0,若該維持期為0,根據該些無線訊號參數比對該初始天線與該待切換天線的無線訊號品質好壞,並判斷該待切換天線之一比較期是否為0,以及若該比較期為0,根據該無線訊號品質的判斷結果,判斷是否切換天線。The judging module is used to judge whether a maintenance period of the antenna to be switched is 0 in a current operation stage, and if the maintenance period is 0, compare the wireless signals of the initial antenna and the antenna to be switched according to the wireless signal parameters. The signal quality is good or bad, and judge whether a comparison period of the antenna to be switched is 0, and if the comparison period is 0, judge whether to switch the antenna according to the judgment result of the wireless signal quality.

該處理模組用於若不切換天線,將下一運作階段做為該目前運作階段,並根據該調整後之該目前運作階段設定該維持期與該比較期,以及若切換天線,將一訊號收發操作由該待切換天線切換到該室外天線來執行,或是由該室外天線切換回該待切換天線來執行,同時將前一運作階段做為該目前運作階段,並根據該調整後之該目前運作階段設定該維持期與該比較期。The processing module is used to use the next operation stage as the current operation stage if the antenna is not switched, and set the maintenance period and the comparison period according to the adjusted current operation stage, and if the antenna is switched, a signal The transceiving operation is performed by switching the antenna to be switched to the outdoor antenna, or by switching the outdoor antenna back to the antenna to be switched, and at the same time, the previous operation stage is used as the current operation stage, and according to the adjusted The current operation stage sets the maintenance period and the comparison period.

本發明實施例還提供一種電腦可讀儲存媒體,該電腦可讀儲存媒體上儲存有電腦程式,該電腦程式被執行時實現如前述的智慧天線切換方法的步驟。An embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed, the steps of the aforementioned smart antenna switching method are implemented.

以下結合附圖和具體實施例對本發明進行詳細描述,但不作為對本發明的限定。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments, but not as a limitation of the present invention.

為了能夠更清楚地理解本發明的上述目的、特徵和優點,下面結合附圖和具體實施例對本發明進行詳細描述。需要說明的是,在不衝突的情況下,本申請的實施例及實施例中的特徵可以相互組合。In order to more clearly understand the above objects, features and advantages of the present invention, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.

在下面的描述中闡述了很多具體細節以便於充分理解本發明,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。Many specific details are set forth in the following description to facilitate a full understanding of the present invention, and the described embodiments are only some of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

除非另有定義,本文所使用的所有的技術和科學術語與屬於本發明的技術領域的技術人員通常理解的含義相同。本文中在本發明的說明書中所使用的術語只是為了描述具體的實施例的目的,不是旨在於限制本發明。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field of the invention. The terms used herein in the description of the present invention are for the purpose of describing specific embodiments only, and are not intended to limit the present invention.

需要說明的是,在本發明中涉及“第一”、“第二”等的描述僅用於描述目的,而不能理解為指示或暗示其相對重要性或者隱含指明所指示的技術特徵的數量。由此,限定有“第一”、“第二”的特徵可以明示或者隱含地包括至少一個該特徵。另外,各個實施例之間的技術方案可以相互結合,但是必須是以本領域普通技術人員能夠實現為基礎,當技術方案的結合出現相互矛盾或無法實現時應當認為這種技術方案的結合不存在,也不在本發明要求的保護範圍之內。It should be noted that the descriptions involving "first", "second", etc. in the present invention are only for descriptive purposes, and should not be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features . Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In addition, the technical solutions of the various embodiments can be combined with each other, but it must be based on the realization of those skilled in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist , nor within the scope of protection required by the present invention.

本發明實施例的智慧天線切換方法添加一個可延伸的室外天線裝置,讓室內天線裝置的部分天線能夠智慧的切換到室外天線裝置來進行無線訊號收發,在天線有任何變異情況下(例如,損壞或者遭受移動式障礙物的干擾),能夠快速的喚醒可用的天線進行切換,達到天線之間更智慧的選擇,以提供良好的無線訊號並有效地解決電力消耗。The smart antenna switching method of the embodiment of the present invention adds an extensible outdoor antenna device, so that some antennas of the indoor antenna device can be intelligently switched to the outdoor antenna device for wireless signal transmission and reception. Or suffer interference from moving obstacles), can quickly wake up the available antennas to switch, achieve a smarter selection between antennas, provide good wireless signals and effectively solve power consumption.

圖1是本發明實施例的智慧天線切換系統的示意圖。本發明實施例的智慧天線切換系統100包括一個室內通訊裝置(InDoor Unit,IDU)110、切換裝置121與123與室外通訊裝置(OutDoor Unit,ODU)130。IDU 110具有至少兩組天線,其中一組是初始天線111,另一組為待切換天線113。待切換天線113用來當IDU 110的無線訊號品質不好時利用切換裝置121與123切換到室外通訊裝置(OutDoor Unit,ODU)130以改善無線訊號品質。室內通訊裝置110根據初始天線111與待切換天線113的無線訊號品質來決定是否將訊號收發操作由待切換天線113切換到ODU 130來執行,或是由ODU 130切換回待切換天線113來執行。同時,根據是否切換待切換天線113來調整待切換天線113的維持期(Holding Period,HP)及比較期(Comparing Period,CP)。FIG. 1 is a schematic diagram of a smart antenna switching system according to an embodiment of the present invention. The smart antenna switching system 100 of the embodiment of the present invention includes an indoor communication device (InDoor Unit, IDU) 110 , switching devices 121 and 123 , and an outdoor communication device (Outdoor Unit, ODU) 130 . The IDU 110 has at least two groups of antennas, one group is the initial antenna 111 and the other group is the antenna 113 to be switched. The antenna to be switched 113 is used to switch to the outdoor communication device (Outdoor Unit, ODU) 130 by switching devices 121 and 123 when the wireless signal quality of the IDU 110 is not good, so as to improve the wireless signal quality. The indoor communication device 110 determines whether to switch the signal transmitting and receiving operation from the antenna 113 to be switched to the ODU 130 or to switch back to the antenna 113 to be switched by the ODU 130 according to the wireless signal quality of the initial antenna 111 and the antenna to be switched 113 . Meanwhile, the holding period (Holding Period, HP) and the comparison period (Comparing Period, CP) of the antenna 113 to be switched are adjusted according to whether the antenna 113 to be switched is switched.

圖2是本發明實施例的智慧天線切換方法的步驟流程圖,應用於電子裝置的微控制器中,該電子裝置是如圖1所示的室內通訊裝置110。根據不同的需求,該流程圖中步驟的順序可以改變,某些步驟可以省略。FIG. 2 is a flow chart of steps of a smart antenna switching method according to an embodiment of the present invention, which is applied in a microcontroller of an electronic device, and the electronic device is the indoor communication device 110 shown in FIG. 1 . According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

步驟S201,收集無線環境的無線訊號參數,例如,接收信號強度指示(Received Signal Strength Indicator,RSSI)、參考信號接收品質(Reference Signal Receiving Quality,RSRQ)、參考信號接收功率(Reference Signal Receiving Power,RSRP)等等。Step S201, collecting wireless signal parameters of the wireless environment, for example, Received Signal Strength Indicator (RSSI), Reference Signal Receiving Quality (Reference Signal Receiving Quality, RSRQ), Reference Signal Received Power (Reference Signal Receiving Power, RSRP )etc.

步驟S202,判斷室內通訊裝置110的待切換天線113的HP是否為0(HP == 0),表示是否運作。維持期(HP)指的是待切換天線113在某一個運作階段維持運作的週期時間,而比較期(CP)指的是在同一個運作階段比對初始天線111與待切換天線113的無線訊號品質好壞的週期時間。Step S202 , judging whether the HP of the antenna 113 to be switched of the indoor communication device 110 is 0 (HP == 0), indicating whether it is in operation. The maintenance period (HP) refers to the cycle time during which the antenna 113 to be switched maintains operation in a certain operation stage, and the comparison period (CP) refers to the comparison of the wireless signals of the initial antenna 111 and the antenna 113 to be switched in the same operation stage The cycle time of good and bad quality.

在本發明實施例中,舉例來說,可定義五個運作階段(定義為Stepper=1..5),但不以為此限,如下所示:In the embodiment of the present invention, for example, five operation stages (defined as Stepper=1..5) can be defined, but not limited thereto, as follows:

第一階段(Stepper=1),HP值為30秒,CP值為1分鐘;In the first stage (Stepper=1), the HP value is 30 seconds, and the CP value is 1 minute;

第二階段(Stepper=2),HP值為1分鐘,CP值為40秒;In the second stage (Stepper=2), the HP value is 1 minute, and the CP value is 40 seconds;

第三階段(Stepper=3),HP值為10分鐘,CP值為30秒;In the third stage (Stepper=3), the HP value is 10 minutes, and the CP value is 30 seconds;

第四階段(Stepper=4),HP值為30分鐘,CP值為10秒;以及In the fourth stage (Stepper=4), the HP value is 30 minutes, and the CP value is 10 seconds; and

第五階段(Stepper=5),HP值維持不變(可視為HP為無限大),CP可能為0秒或任意值。In the fifth stage (Stepper=5), the HP value remains unchanged (HP can be regarded as infinite), and the CP may be 0 seconds or any value.

步驟S203,若HP值為0,表示待切換天線113在目前運作階段維持運作的週期時間已結束,則在該目前運作階段根據該無線訊號參數該比對初始天線111與待切換天線113的無線訊號品質好壞,並判斷在該目前運作階段的CP值是否為0(CP == 0)。若CP值不為0,則繼續比對操作。Step S203, if the HP value is 0, it means that the cycle time for the antenna 113 to be switched to maintain operation in the current operation stage has ended, then in the current operation stage, according to the wireless signal parameters, compare the wireless signals of the initial antenna 111 and the antenna 113 to be switched. The signal quality is good or bad, and judge whether the CP value in the current operation stage is 0 (CP == 0). If the CP value is not 0, continue the comparison operation.

步驟S204,若CP值為0,根據無線訊號品質的判斷結果,判斷是否切換天線。也就是說,將訊號收發操作由待切換天線113切換到ODU 130來執行,或是由ODU 130切換回待切換天線113來執行。Step S204, if the CP value is 0, it is determined whether to switch the antenna according to the determination result of the wireless signal quality. That is to say, the signal transceiving operation is performed by switching from the antenna 113 to be switched to the ODU 130 , or by switching the ODU 130 back to the antenna 113 to be switched to be performed.

步驟S205,若不切換天線,將Stepper+1(Stepper++),此時HP值會增加,CP值會減少。接著,回到步驟S201,繼續收集無線環境的無線訊號參數,重複執行前述步驟。Step S205, if the antenna is not switched, set Stepper+1 (Stepper++), at this time, the HP value will increase, and the CP value will decrease. Next, return to step S201, continue to collect wireless signal parameters of the wireless environment, and repeat the aforementioned steps.

步驟S206,若切換天線,將Stepper-1(Stepper --),將訊號收發操作由待切換天線113切換到ODU 130來執行,或是由ODU 130切換回待切換天線113來執行,且HP值會減少,CP值會增加。接著,回到步驟S201,繼續收集無線環境的無線訊號參數,重複執行前述步驟。Step S206, if the antenna is switched, Stepper-1 (Stepper --) is used to switch the signal sending and receiving operation from the antenna 113 to be switched to the ODU 130, or switch the ODU 130 back to the antenna 113 to be switched, and the HP value will decrease, and the CP value will increase. Next, return to step S201, continue to collect wireless signal parameters of the wireless environment, and repeat the aforementioned steps.

步驟S207,在步驟S202中,若HP值不為0,判斷Stepper的值是否為最大(Stepper == Max)。In step S207, in step S202, if the HP value is not 0, it is determined whether the value of Stepper is the maximum (Stepper == Max).

若Stepper的值為最大,HP值為無限大(HP == infinite),CP可能為0秒或任意值。此時,訊號收發操作都會由目前在運作的天線來執行,該目前在運作的天線可能是待切換天線113或ODU 130。反之,若Stepper的值非為最大,將HP-1(HP --)。If the value of Stepper is the maximum, the HP value is infinite (HP == infinite), and the CP may be 0 seconds or any value. At this time, the signal transceiving operation will be performed by the currently operating antenna, which may be the antenna 113 to be switched or the ODU 130 . Conversely, if the value of Stepper is not the maximum, set HP-1 (HP --).

步驟S208,判斷該無線網路環境的無線訊號品質的變動幅度是否達到一臨界值。例如,RSRP的訊號強度值的變動幅度達到該臨界值。若該無線網路環境的無線訊號品質的變動幅度未達到該臨界值,回到步驟S201,繼續收集該無線環境的無線訊號參數,重複執行前述步驟。Step S208, judging whether the variation range of the wireless signal quality of the wireless network environment reaches a critical value. For example, the variation range of the signal strength value of RSRP reaches the threshold value. If the fluctuation range of the wireless signal quality of the wireless network environment does not reach the critical value, go back to step S201, continue to collect the wireless signal parameters of the wireless environment, and repeat the aforementioned steps.

步驟S209,若該無線網路環境的無線訊號品質的變動幅度達到該臨界值,將該目前在運作的天線的HP值設為0(HP = 0),然後回到步驟S201,繼續收集該無線環境的無線訊號參數,重複執行前述步驟。Step S209, if the fluctuation range of the wireless signal quality of the wireless network environment reaches the critical value, set the HP value of the currently operating antenna to 0 (HP = 0), and then return to step S201 to continue collecting the wireless The wireless signal parameters of the environment, repeat the above steps.

圖3係顯示本發明實施例的行動電子裝置的硬體架構示意圖。電子裝置200,但不僅限於,可通過系統匯流排相互通信連接處理器210、記憶體220以及智慧天線切換系統230,圖3僅示出了具有元件210-230的電子裝置200,但是應理解的是,並不要求實施所有示出的元件,可以替代的實施更多或者更少的元件。FIG. 3 is a schematic diagram showing the hardware architecture of the mobile electronic device according to the embodiment of the present invention. The electronic device 200, but not limited to, can connect the processor 210, the memory 220, and the smart antenna switching system 230 through the system bus. FIG. 3 only shows the electronic device 200 with components 210-230, but it should be understood Yes, implementation of all illustrated elements is not required, and more or fewer elements may instead be implemented.

該記憶體220至少包括一種類型的可讀儲存媒體,該可讀儲存媒體包括快閃記憶體、硬碟、多媒體卡、卡型記憶體(例如,SD或DX記憶體等)、隨機訪問記憶體(RAM)、靜態隨機訪問記憶體(SRAM)、唯讀記憶體(ROM)、電可擦除可程式設計唯讀記憶體(EEPROM)、可程式設計唯讀記憶體(PROM)、磁性記憶體、磁片、光碟等。在一些實施例中,該記憶體220可以是該電子裝置10的內部存儲單元,例如電子裝置200的硬碟或記憶體。在另一些實施例中,該記憶體也可以是該電子裝置200的外部存放裝置,例如該電子裝置200上配備的插接式硬碟,智慧存儲卡(Smart Media Card,SMC),安全數位(Secure Digital,SD)卡,快閃記憶體卡(Flash Card)等。當然,該記憶體220還可以既包括該電子裝置200的內部存儲單元也包括其外部存放裝置。本實施例中,該記憶體220通常用於存儲安裝於該電子裝置200的作業系統和各類應用軟體,例如智慧天線切換系統230的程式碼等。此外,該記憶體220還可以用於暫時地存儲已經輸出或者將要輸出的各類資料。The memory 220 includes at least one type of readable storage medium, which includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), Static Random Access Memory (SRAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Programmable Read Only Memory (PROM), Magnetic Memory , Diskettes, CDs, etc. In some embodiments, the memory 220 may be an internal storage unit of the electronic device 10 , such as a hard disk or a memory of the electronic device 200 . In other embodiments, the memory can also be an external storage device of the electronic device 200, such as a plug-in hard disk equipped on the electronic device 200, a smart memory card (Smart Media Card, SMC), a secure digital ( Secure Digital, SD) card, flash memory card (Flash Card), etc. Of course, the memory 220 may also include both the internal storage unit of the electronic device 200 and its external storage device. In this embodiment, the memory 220 is usually used to store the operating system and various application software installed in the electronic device 200 , such as program codes of the smart antenna switching system 230 . In addition, the memory 220 can also be used to temporarily store various types of data that have been output or will be output.

該處理器210在一些實施例中可以是中央處理器(Central Processing Unit,CPU)、控制器、微控制器、微處理器、或其他資料處理晶片。該處理器210通常用於控制該電子裝置200的總體操作。本實施例中,該處理器210用於運行該記憶體220中存儲的程式碼或者處理資料,例如,運行該智慧天線切換系統230等。The processor 210 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chips in some embodiments. The processor 210 is generally used to control the overall operation of the electronic device 200 . In this embodiment, the processor 210 is used to run the program codes stored in the memory 220 or process data, for example, to run the smart antenna switching system 230 and so on.

需要說明的是,圖3僅為舉例說明電子裝置200。在其他實施例中,電子裝置200也可以包括更多或者更少的元件,或者具有不同的元件配置。It should be noted that FIG. 3 is only an example to illustrate the electronic device 200 . In other embodiments, the electronic device 200 may also include more or less elements, or have different element configurations.

該電子裝置200集成的模組/單元如果以軟體功能單元的形式實現並作為獨立的產品銷售或使用時,可以存儲在一個電腦可讀取儲存媒體中。基於這樣的理解,本發明實現上述實施例方法中的全部或部分流程,也可以通過電腦程式來指令相關的硬體來完成,該的電腦程式可存儲於一電腦可讀儲存媒體中,該電腦程式在被處理器執行時,可實現上述各個方法實施例的步驟。其中,該電腦程式包括電腦程式代碼,該電腦程式代碼可以為原始程式碼形式、物件代碼形式、可執行檔或某些中間形式等。該電腦可讀介質可以包括:能夠攜帶該電腦程式代碼的任何實體或裝置、記錄介質、U盤、移動硬碟、磁片、光碟、電腦記憶體、唯讀記憶體、隨機存取記憶體、電載波訊號、電信訊號以及軟體分發介質等。需要說明的是,該電腦可讀介質包含的內容可以根據司法管轄區內立法和專利實踐的要求進行適當的增減,例如在某些司法管轄區,根據立法和專利實踐,電腦可讀介質不包括電載波訊號和電信訊號。If the integrated modules/units of the electronic device 200 are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the present invention realizes all or part of the processes in the methods of the above-mentioned embodiments, and it can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps of the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of original code, object code, executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory, random access memory, Electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not Including electric carrier signal and telecommunication signal.

圖4係顯示本發明實施例的電子裝置的功能方塊圖,其用於執行智慧天線切換方法。本發明實施例的智慧天線切換方法可由儲存媒體中的電腦程式來實現,例如,電子裝置200中的記憶體220。當實現本發明方法的電腦程式由處理器210載入到記憶體220時,驅動電子裝置200的處理器210執行本發明實施例的智慧天線切換方法。FIG. 4 is a functional block diagram of an electronic device according to an embodiment of the present invention, which is used for implementing a smart antenna switching method. The smart antenna switching method of the embodiment of the present invention can be implemented by a computer program in a storage medium, for example, the memory 220 in the electronic device 200 . When the computer program implementing the method of the present invention is loaded into the memory 220 by the processor 210, the processor 210 of the electronic device 200 is driven to execute the smart antenna switching method of the embodiment of the present invention.

本發明實施例的電子裝置200,例如,智慧天線裝置,包括數據取得模組310、判斷模組320與處理模組330。The electronic device 200 of the embodiment of the present invention, for example, a smart antenna device, includes a data obtaining module 310 , a judging module 320 and a processing module 330 .

數據取得模組310收集無線環境的無線訊號參數,例如,接收信號強度指示(RSSI)、參考信號接收品質(RSRQ)、參考信號接收功率(RSRP)等等。The data acquisition module 310 collects wireless signal parameters of the wireless environment, such as Received Signal Strength Indicator (RSSI), Reference Signal Received Quality (RSRQ), Reference Signal Received Power (RSRP) and so on.

判斷模組320判斷室內通訊裝置110的待切換天線113的維持期(HP)是否為0(HP == 0)。維持期(HP)指的是待切換天線113在某一個運作階段維持運作的週期時間,而比較期(CP)指的是在同一個運作階段比對初始天線111與待切換天線113的無線訊號品質好壞的週期時間。The judging module 320 judges whether the maintenance period (HP) of the antenna 113 to be switched of the indoor communication device 110 is 0 (HP==0). The maintenance period (HP) refers to the cycle time during which the antenna 113 to be switched maintains operation in a certain operation stage, and the comparison period (CP) refers to the comparison of the wireless signals of the initial antenna 111 and the antenna 113 to be switched in the same operation stage The cycle time of good and bad quality.

在本發明實施例中,舉例來說,可定義五個運作階段(定義為Stepper=1..5),但不以為此限,如下所示:In the embodiment of the present invention, for example, five operation stages (defined as Stepper=1..5) can be defined, but not limited thereto, as follows:

第一階段(Stepper=1),HP值為30秒,CP值為1分鐘;In the first stage (Stepper=1), the HP value is 30 seconds, and the CP value is 1 minute;

第二階段(Stepper=2),HP值為1分鐘,CP值為40秒;In the second stage (Stepper=2), the HP value is 1 minute, and the CP value is 40 seconds;

第三階段(Stepper=3),HP值為10分鐘,CP值為30秒;In the third stage (Stepper=3), the HP value is 10 minutes, and the CP value is 30 seconds;

第四階段(Stepper=4),HP值為30分鐘,CP值為10秒;以及In the fourth stage (Stepper=4), the HP value is 30 minutes, and the CP value is 10 seconds; and

第五階段(Stepper=5),HP值維持不變(可視為HP為無限大),CP可能為0秒或任意值。In the fifth stage (Stepper=5), the HP value remains unchanged (HP can be regarded as infinite), and the CP may be 0 seconds or any value.

若HP值為0,表示待切換天線113在目前運作階段維持運作的週期時間已結束,則判斷模組320在該目前運作階段比對初始天線111與待切換天線113的無線訊號品質好壞,並判斷在該目前運作階段的CP值是否為0(CP == 0)。若CP值不為0,則繼續比對操作。If the HP value is 0, it means that the cycle time for the antenna 113 to be switched to maintain operation in the current operation stage has ended, and then the judging module 320 compares the wireless signal quality of the initial antenna 111 and the antenna 113 to be switched in the current operation stage. And judge whether the CP value in the current operation stage is 0 (CP == 0). If the CP value is not 0, continue the comparison operation.

若CP值為0,判斷模組320根據無線訊號品質的判斷結果,判斷是否切換天線。也就是說,將訊號收發操作由待切換天線113切換到ODU 130來執行,或是由ODU 130切換回待切換天線113來執行。If the CP value is 0, the judging module 320 judges whether to switch the antenna according to the judging result of the wireless signal quality. That is to say, the signal transceiving operation is performed by switching from the antenna 113 to be switched to the ODU 130 , or by switching the ODU 130 back to the antenna 113 to be switched to be performed.

若不切換天線,處理模組330將Stepper+1(Stepper++),此時HP值會增加,CP值會減少。接著,數據取得模組310繼續收集無線環境的無線訊號參數,重複執行前述步驟。If the antenna is not switched, the processing module 330 will set Stepper+1 (Stepper++), at this time, the HP value will increase, and the CP value will decrease. Then, the data acquisition module 310 continues to collect the wireless signal parameters of the wireless environment, and repeats the aforementioned steps.

若切換天線,處理模組330將Stepper-1(Stepper--),此時HP值會減少,CP值會增加。接著,數據取得模組310繼續收集無線環境的無線訊號參數,重複執行前述步驟。If the antenna is switched, the processing module 330 will be Stepper-1 (Stepper--), at this time, the HP value will decrease, and the CP value will increase. Then, the data acquisition module 310 continues to collect the wireless signal parameters of the wireless environment, and repeats the aforementioned steps.

若HP值不為0,判斷模組320判斷Stepper的值是否為最大(Stepper == Max)。If the HP value is not 0, the judging module 320 judges whether the value of Stepper is the maximum (Stepper == Max).

若Stepper的值為最大,處理模組330將HP值設為無限大(HP == infinite),CP值可能為0秒或任意值。此時,訊號收發操作都會由目前在運作的天線來執行,該目前在運作的天線可能是待切換天線113或ODU 130。反之,若Stepper的值非為最大,處理模組330將HP-1(HP --)。If the value of Stepper is the maximum, the processing module 330 sets the HP value to be infinite (HP == infinite), and the CP value may be 0 seconds or any value. At this time, the signal transceiving operation will be performed by the currently operating antenna, which may be the antenna 113 to be switched or the ODU 130 . On the contrary, if the value of Stepper is not the maximum, the processing module 330 will set HP-1 (HP --).

判斷模組320判斷該無線網路環境的無線訊號品質的變動幅度是否達到該臨界值。例如,RSRP的訊號強度值的變動幅度達到該臨界值。若該無線網路環境的無線訊號品質的變動幅度未達到該臨界值,數據取得模組310繼續收集該無線環境的無線訊號參數,重複執行前述步驟。The judging module 320 judges whether the fluctuation range of the wireless signal quality of the wireless network environment reaches the critical value. For example, the variation range of the signal strength value of RSRP reaches the threshold value. If the fluctuation range of the wireless signal quality of the wireless network environment does not reach the critical value, the data acquisition module 310 continues to collect the wireless signal parameters of the wireless environment, and repeats the aforementioned steps.

若該無線網路環境的無線訊號品質的變動幅度達到該臨界值,處理模組330將該目前在運作的天線的HP值設為0(HP = 0),然後數據取得模組310繼續收集該無線環境的無線訊號參數,重複執行前述步驟。If the variation range of the wireless signal quality of the wireless network environment reaches the critical value, the processing module 330 sets the HP value of the currently operating antenna to 0 (HP=0), and then the data acquisition module 310 continues to collect the For the wireless signal parameters of the wireless environment, repeat the preceding steps.

可以理解的是,以上所描述的模組劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式。另外,在本申請各個實施例中的各功能模組可以集成在相同處理單元中,也可以是各個模組單獨物理存在,也可以兩個或兩個以上模組集成在相同單元中。上述集成的模組既可以採用硬體的形式實現,也可以採用硬體加軟體功能模組的形式實現。It can be understood that the module division described above is only a logical function division, and there may be another division method in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into the same processing unit, or each module may exist separately physically, or two or more modules may be integrated into the same unit. The above-mentioned integrated modules can be implemented in the form of hardware, or in the form of hardware plus software function modules.

以上實施例僅用以說明本發明的技術方案而非限制,儘管參照實施例對本發明進行了詳細的說明,本領域的普通技術人員應該理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。The above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to the embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced, and Without departing from the spirit and scope of the technical solution of the present invention.

100:智慧天線切換系統100:Smart Antenna Switching System

110:室內通訊裝置110: Indoor communication device

111:初始天線111:Initial Antenna

113:待切換天線113: Antenna to be switched

121、123:切換裝置121, 123: switching device

130:室外通訊裝置130: Outdoor communication device

200:電子裝置200: electronic device

210:處理器210: Processor

220:記憶體220: memory

230:智慧天線切換系統230:Smart antenna switching system

310:數據取得模組310: Data acquisition module

320:判斷模組320: Judgment module

330:處理模組330: Processing module

圖1是本發明實施例的智慧天線切換系統的示意圖。FIG. 1 is a schematic diagram of a smart antenna switching system according to an embodiment of the present invention.

圖2是本發明實施例的智慧天線切換方法的步驟流程圖。Fig. 2 is a flow chart of the steps of the smart antenna switching method according to the embodiment of the present invention.

圖3是本發明實施例的電子裝置的硬體架構示意圖。FIG. 3 is a schematic diagram of a hardware architecture of an electronic device according to an embodiment of the present invention.

圖4是本發明實施例的電子裝置的功能方塊圖。FIG. 4 is a functional block diagram of an electronic device according to an embodiment of the present invention.

none

Claims (9)

一種智慧天線切換方法,應用於電子裝置中,該電子裝置包括一待切換天線與一初始天線,該待切換天線與一室外天線連接,該方法包括下列步驟: 收集一無線環境的複數無線訊號參數; 在一目前運作階段,判斷該待切換天線之一維持期是否為0; 若該維持期為0,根據該些無線訊號參數比對該初始天線與該待切換天線的無線訊號品質好壞,並判斷該待切換天線之一比較期是否為0; 若該比較期為0,根據該無線訊號品質的判斷結果,判斷是否切換天線; 若不切換天線,將下一運作階段做為該目前運作階段,並根據該調整後之該目前運作階段設定該維持期與該比較期;以及 若切換天線,將一訊號收發操作由該待切換天線切換到該室外天線來執行,或是由該室外天線切換回該待切換天線來執行,同時將前一運作階段做為該目前運作階段,並根據該調整後之該目前運作階段設定該維持期與該比較期。 A smart antenna switching method is applied to an electronic device. The electronic device includes an antenna to be switched and an initial antenna, and the antenna to be switched is connected to an outdoor antenna. The method includes the following steps: Collecting complex wireless signal parameters of a wireless environment; In a current operation stage, judging whether a maintenance period of the antenna to be switched is 0; If the maintenance period is 0, compare the wireless signal quality of the initial antenna and the antenna to be switched according to the wireless signal parameters, and determine whether the comparison period of the antenna to be switched is 0; If the comparison period is 0, judge whether to switch the antenna according to the judgment result of the wireless signal quality; If the antenna is not switched, use the next operation stage as the current operation stage, and set the maintenance period and the comparison period according to the adjusted current operation stage; and If the antenna is switched, a signal transceiving operation is performed by switching from the antenna to be switched to the outdoor antenna, or by switching from the outdoor antenna back to the antenna to be switched, and taking the previous operation stage as the current operation stage, And set the maintenance period and the comparison period according to the adjusted current operation stage. 如請求項1的智慧天線切換方法,其更包括下列步驟: 若該維持期不為0,判斷該目前運作階段是否為最後運作階段; 若該目前運作階段為該最後運作階段,該維持期為無限大,且該訊號收發操作總是由目前在運作的天線來執行;以及 若該目前運作階段非為該最後運作階段,將該維持期-1。 Such as the smart antenna switching method of claim item 1, which further includes the following steps: If the maintenance period is not 0, determine whether the current operation stage is the last operation stage; If the current operating phase is the last operating phase, the maintenance period is infinite and the signal transceiving operation is always performed by the currently operating antenna; and If the current operating phase is not the last operating phase, the duration is -1. 如請求項2的智慧天線切換方法,其更包括下列步驟: 判斷該無線網路環境之該無線訊號品質的變動幅度是否達到一臨界值;以及 若該無線網路環境之該無線訊號品質的變動幅度未達到該臨界值,繼續收集該無線環境的無線訊號參數,並重複執行前述步驟。 Such as the smart antenna switching method of claim 2, which further includes the following steps: judging whether the variation range of the wireless signal quality in the wireless network environment reaches a critical value; and If the variation range of the wireless signal quality of the wireless network environment does not reach the critical value, continue to collect wireless signal parameters of the wireless environment, and repeat the aforementioned steps. 如請求項3的智慧天線切換方法,其更包括下列步驟: 若該無線網路環境之該無線訊號品質的變動幅度達到該臨界值,將該目前在運作的天線之該維持期設為0,然後繼續收集該無線環境之該無線訊號參數,重複執行前述步驟。 Such as the smart antenna switching method of claim 3, which further includes the following steps: If the fluctuation range of the wireless signal quality of the wireless network environment reaches the critical value, set the maintenance period of the currently operating antenna to 0, then continue to collect the wireless signal parameters of the wireless environment, and repeat the above steps . 一種電子裝置,包括: 一初始天線; 一待切換天線,連接於一室外天線; 一數據取得模組,用於收集一無線環境的複數無線訊號參數; 一判斷模組,用於在一目前運作階段,判斷該待切換天線之一維持期是否為0,若該維持期為0,根據該些無線訊號參數比對該初始天線與該待切換天線的無線訊號品質好壞,並判斷該待切換天線之一比較期是否為0,以及若該比較期為0,根據該無線訊號品質的判斷結果,判斷是否切換天線;以及 一處理模組,用於若不切換天線,將下一運作階段做為該目前運作階段,並根據該調整後之該目前運作階段設定該維持期與該比較期,以及若切換天線,將一訊號收發操作由該待切換天線切換到該室外天線來執行,或是由該室外天線切換回該待切換天線來執行,同時將前一運作階段做為該目前運作階段,並根據該調整後之該目前運作階段設定該維持期與該比較期。 An electronic device comprising: an initial antenna; An antenna to be switched, connected to an outdoor antenna; A data acquisition module, used to collect multiple wireless signal parameters of a wireless environment; A judging module, used to judge whether a maintenance period of the antenna to be switched is 0 in a current operation stage, and if the maintenance period is 0, compare the initial antenna and the antenna to be switched according to the wireless signal parameters The quality of the wireless signal is good or bad, and judging whether a comparison period of the antenna to be switched is 0, and if the comparison period is 0, judging whether to switch the antenna according to the judgment result of the wireless signal quality; and A processing module, used to use the next operation stage as the current operation stage if the antenna is not switched, and set the maintenance period and the comparison period according to the adjusted current operation stage, and if the antenna is switched, a The signal transceiving operation is performed by switching the antenna to be switched to the outdoor antenna, or by switching the outdoor antenna back to the antenna to be switched, and taking the previous operation stage as the current operation stage, and according to the adjusted The current operation stage sets the maintenance period and the comparison period. 如請求項5的電子裝置,其中: 若該維持期不為0,該判斷模組判斷該目前運作階段是否為最後運作階段;以及 若該目前運作階段為該最後運作階段,該處理模組設定該維持期為無限大,且該訊號收發操作總是由目前在運作的天線來執行;以及 若該目前運作階段非為該最後運作階段,該處理模組將該維持期-1。 The electronic device of claim 5, wherein: If the maintenance period is not 0, the judging module judges whether the current operation stage is the last operation stage; and If the current operation stage is the last operation stage, the processing module sets the maintenance period to be infinite, and the signal transceiving operation is always performed by the currently operating antenna; and If the current operational phase is not the last operational phase, the processing module will maintain a period of -1. 如請求項6的電子裝置,其中: 該判斷模組判斷該無線網路環境之該無線訊號品質的變動幅度是否達到一臨界值;以及 若該無線網路環境之該無線訊號品質的變動幅度未達到該臨界值,該數據取得模組繼續收集該無線環境的無線訊號參數,以重複執行前述步驟。 The electronic device of claim 6, wherein: The judging module judges whether the variation range of the wireless signal quality in the wireless network environment reaches a critical value; and If the variation range of the wireless signal quality of the wireless network environment does not reach the critical value, the data acquisition module continues to collect the wireless signal parameters of the wireless environment to repeat the aforementioned steps. 如請求項7的電子裝置,其中: 若該無線網路環境之該無線訊號品質的變動幅度達到該臨界值,該處理模組將該目前在運作的天線之該維持期設為0,該數據取得模組繼續收集該無線環境之該無線訊號參數,以重複執行前述步驟。 The electronic device of claim 7, wherein: If the fluctuation range of the wireless signal quality of the wireless network environment reaches the critical value, the processing module sets the maintenance period of the currently operating antenna to 0, and the data acquisition module continues to collect the wireless environment. Wireless signal parameters to repeat the above steps. 一種電腦可讀儲存媒體,包括記憶體、處理器以及存儲在記憶體上並可在處理器上運行的電腦程式,其中,該處理器執行該電腦程式時實現請求項1至4之智慧天線切換方法的步驟。A computer-readable storage medium, including a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein, when the processor executes the computer program, the smart antenna switching of claim items 1 to 4 is realized method steps.
TW110149416A 2021-12-29 2021-12-29 Smart antenna switching method, electronic device and computer readable storage medium TWI803121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110149416A TWI803121B (en) 2021-12-29 2021-12-29 Smart antenna switching method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110149416A TWI803121B (en) 2021-12-29 2021-12-29 Smart antenna switching method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
TWI803121B true TWI803121B (en) 2023-05-21
TW202327176A TW202327176A (en) 2023-07-01

Family

ID=87424494

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110149416A TWI803121B (en) 2021-12-29 2021-12-29 Smart antenna switching method, electronic device and computer readable storage medium

Country Status (1)

Country Link
TW (1) TWI803121B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201014238A (en) * 2008-09-10 2010-04-01 Nec Access Technica Ltd Communication device, antenna switching method, and program
TWM388175U (en) * 2010-05-11 2010-09-01 Avermedia Tech Inc Antenna selecting apparatus in a TV card module
US20140329470A1 (en) * 2013-05-03 2014-11-06 Wistron Neweb Corporation Method and Antenna System for Setting Working Antenna Units
CN110034776A (en) * 2018-01-09 2019-07-19 和硕联合科技股份有限公司 External antenna and wireless communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201014238A (en) * 2008-09-10 2010-04-01 Nec Access Technica Ltd Communication device, antenna switching method, and program
TWM388175U (en) * 2010-05-11 2010-09-01 Avermedia Tech Inc Antenna selecting apparatus in a TV card module
US20140329470A1 (en) * 2013-05-03 2014-11-06 Wistron Neweb Corporation Method and Antenna System for Setting Working Antenna Units
CN110034776A (en) * 2018-01-09 2019-07-19 和硕联合科技股份有限公司 External antenna and wireless communication system

Also Published As

Publication number Publication date
TW202327176A (en) 2023-07-01

Similar Documents

Publication Publication Date Title
CN103945478A (en) Cell reselection method and mobile terminal
CN103597867B (en) For the apparatus and method for the power for saving base station
CN108632309B (en) Method and device for upgrading narrow-band Internet of things terminal
KR100619646B1 (en) Reselection optimization in mobile wireless communication devices and methods therefor
TWI803121B (en) Smart antenna switching method, electronic device and computer readable storage medium
US9326248B2 (en) Terminal device, communication method, program, storage medium having program stored thereon, and radio communication system
CN111132197B (en) Wireless mesh dual-frequency return performance optimization method, server and storage medium
CN101841493B (en) Obtaining method and receiving terminal for channel estimation window
CN113708802B (en) Module and method for promoting Bluetooth link budget and solving multipath effect
CN114205885A (en) Network connection control method and device of 5G mobile terminal, storage medium and mobile terminal
CN116418362A (en) Smart antenna switching method, electronic device and storage medium
CN116667874A (en) Smart antenna switching method, electronic device and storage medium
US11870483B2 (en) Smart antenna switching method, electronic device and computer readable storage medium
CN112788713A (en) Network connection method, terminal and computer storage medium
CN114980288B (en) Power consumption control method and device for data transmission, terminal equipment and storage medium
CN114885343B (en) Communication method and device and storage medium
CN113452460B (en) Clock frequency selection method, system, medium and terminal of high-speed digital interface
CN114980145B (en) Communication method and device and storage medium
CN112469111B (en) Wireless communication method and device based on LoRa and gateway equipment
CN111030767B (en) Method for optimizing wireless mesh backhaul performance, wireless device and storage medium
WO2022067488A1 (en) Channel selection method, electronic device, and storage medium
CN115103429A (en) Control method and device of Wi-Fi device, electronic device and storage medium
CN116390151A (en) Data reporting method, device, equipment, system and medium of internet of things terminal
CN115348647A (en) Power saving method and system based on narrowband Internet of things
CN115955198A (en) Frequency agility radio frequency system and phase-locked loop frequency agility method