TWI669022B - Wireless access point filtering method, computer program, and electronic device - Google Patents
Wireless access point filtering method, computer program, and electronic device Download PDFInfo
- Publication number
- TWI669022B TWI669022B TW106142827A TW106142827A TWI669022B TW I669022 B TWI669022 B TW I669022B TW 106142827 A TW106142827 A TW 106142827A TW 106142827 A TW106142827 A TW 106142827A TW I669022 B TWI669022 B TW I669022B
- Authority
- TW
- Taiwan
- Prior art keywords
- access point
- wireless access
- electronic device
- speed
- preset
- Prior art date
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
一種無線接入點過濾方法,該方法包括:判斷步驟,判斷電子裝置是否位於交通工具內;計算步驟,當判斷該電子裝置位於該交通工具內,計算該電子裝置與該無線接入點之相對速度;以及篩選步驟,根據該相對速度篩選及過濾該無線接入點。 A wireless access point filtering method, the method comprising: determining a step of determining whether an electronic device is located in a vehicle; and calculating a step of determining that the electronic device is located in the vehicle and calculating a relative of the electronic device and the wireless access point Speed; and a screening step of filtering and filtering the wireless access point based on the relative speed.
Description
本發明涉及一種無線接入點(Access Point,AP)過濾方法、電腦程式產品及電子裝置,特別涉及一種對於移動狀態(如行駛中之交通工具)之無線接入點過濾方法、電腦程式產品及電子裝置。 The present invention relates to a wireless access point (AP) filtering method, a computer program product, and an electronic device, and more particularly to a wireless access point filtering method, a computer program product, and a mobile state (such as a moving vehicle) Electronic device.
當移動裝置之使用者乘坐公車時,即使公車上就有接入點(access point,AP),移動裝置還是可能會自動連接到公車外部之AP,然於公車行駛過程中,隨著公車之不斷移動,移動裝置與該等AP之間距離不斷變化,使得移動裝置會不斷與AP斷開並重新連接新之AP,從而導致移動裝置於公車上之無線連接不夠穩定、通訊品質較差。 When the user of the mobile device rides on the bus, even if there is an access point (AP) on the bus, the mobile device may automatically connect to the AP outside the bus, but during the bus driving, as the bus continues Mobile, the distance between the mobile device and the APs is constantly changing, so that the mobile device will continuously disconnect from the AP and reconnect to the new AP, thereby causing the wireless connection of the mobile device on the bus to be unstable and the communication quality to be poor.
針對以上問題,有必要提供一種可篩選出能夠提供穩定之無線連接之無線接入點之無線接入點過濾方法。 In view of the above problems, it is necessary to provide a wireless access point filtering method that can filter out wireless access points capable of providing a stable wireless connection.
另外,有必要提供一種上述方法對應之電腦程式產品及電子裝置。 In addition, it is necessary to provide a computer program product and an electronic device corresponding to the above method.
一種無線接入點過濾方法,用於對位於行駛之交通工具內之電子裝置所掃描到之無線接入點進行過濾,該方法包括:判斷步驟,判斷該電子裝置是否位於該交通工具內;計算步驟,當判斷該電子裝置位於該交通工具內,計算該電子裝置與該無線接入點之相對速度;以及 篩選步驟,根據該相對速度篩選及過濾該無線接入點。 A wireless access point filtering method for filtering a wireless access point scanned by an electronic device located in a traveling vehicle, the method comprising: determining a step of determining whether the electronic device is located in the vehicle; Step, when determining that the electronic device is located in the vehicle, calculating a relative speed of the electronic device and the wireless access point; A screening step of filtering and filtering the wireless access point based on the relative speed.
一種用於無線接入點過濾之電腦程式產品,用於對位於行駛之交通工具內之電子裝置所掃描到之無線接入點進行過濾,該電腦程式產品包括:判斷模組,用於判斷該電子裝置是否位於該交通工具內;計算模組,用於當該判斷模組判斷該電子裝置位於該交通工具內,計算該電子裝置與該無線接入點之相對速度;以及篩選模組,用於根據該相對速度篩選及過濾該無線接入點。 A computer program product for wireless access point filtering for filtering a wireless access point scanned by an electronic device located in a traveling vehicle, the computer program product comprising: a determining module for determining the Whether the electronic device is located in the vehicle; the computing module is configured to: when the determining module determines that the electronic device is located in the vehicle, calculate a relative speed of the electronic device and the wireless access point; and The wireless access point is filtered and filtered according to the relative speed.
一種電子裝置,其包括處理器及與該處理器相連之記憶體,該記憶體用於存儲上述用於無線接入點過濾之電腦程式產品,該處理器用於執行上述該用於無線接入點過濾之電腦程式產品。 An electronic device comprising a processor and a memory connected to the processor, the memory for storing the computer program product for wireless access point filtering, wherein the processor is configured to perform the wireless access point Filtered computer program products.
本發明之用於無線接入點過濾之電腦程式產品及方法可篩選出可提供較為穩定之無線連接之無線接入點,使得電子裝置即便處於移動狀態中仍能夠獲得較為穩定之無線連接。 The computer program product and method for wireless access point filtering of the present invention can screen out wireless access points that can provide a relatively stable wireless connection, so that the electronic device can obtain a relatively stable wireless connection even when it is in a mobile state.
1‧‧‧電子裝置 1‧‧‧Electronic device
10‧‧‧用於無線接入點過濾之電腦程式產品 10‧‧‧Computer Program Products for Wireless Access Point Filtering
11‧‧‧測速模組 11‧‧‧Speed Module
13‧‧‧距離感測模組 13‧‧‧ Distance sensing module
15‧‧‧接收模組 15‧‧‧ receiving module
17‧‧‧顯示器 17‧‧‧Monitor
18‧‧‧記憶體 18‧‧‧ memory
19‧‧‧處理器 19‧‧‧ Processor
101‧‧‧設定模組 101‧‧‧Setting module
102‧‧‧獲取模組 102‧‧‧Get Module
103‧‧‧判斷模組 103‧‧‧Judgement module
104‧‧‧監聽模組 104‧‧‧Monitor module
105‧‧‧計算模組 105‧‧‧Computation Module
106‧‧‧篩選模組 106‧‧‧Screening module
107‧‧‧記錄模組 107‧‧‧recording module
圖1是本發明較佳實施例之電子裝置之功能模組圖。 1 is a functional block diagram of an electronic device in accordance with a preferred embodiment of the present invention.
圖2是本發明較佳實施例之用於無線接入點過濾之電腦程式產品之功能模組圖。 2 is a functional block diagram of a computer program product for wireless access point filtering in accordance with a preferred embodiment of the present invention.
圖3A-3B是本發明較佳實施例之無線接入點過濾方法之流程圖。 3A-3B are flow diagrams of a wireless access point filtering method in accordance with a preferred embodiment of the present invention.
圖4A-4B是本發明較佳實施例之無線接入點及電子裝置之移動方向示意圖。 4A-4B are schematic diagrams showing movement directions of a wireless access point and an electronic device according to a preferred embodiment of the present invention.
下面將結合本發明實施例中之附圖,對本發明實施例中之技 術方案進行清楚、完整地描述,顯然,所描述之實施例僅僅是本發明一部分實施例,而不是全部之實施例。基於本發明中之實施例,所屬領域具有通常知識者於沒有做出創造性勞動前提下所獲得之所有其他實施例,均屬於本發明保護之範圍。 The technology in the embodiment of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention. The embodiments are described clearly and completely, and it is obvious that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without the creative work are all within the scope of the present invention.
需要說明之是,當一個元件被稱為“電連接”另一個元件,它可直接於另一個元件上或者亦可存在居中之元件。當一個元件被認為是“電連接”另一個元件,它可是接觸連接,例如,可是導線連接之方式,亦可是非接觸式連接,例如,可是非接觸式耦合之方式。 It should be noted that when an element is referred to as "electrically connected" to another element, it can be directly on the other element or the element can be present. When an element is considered to be "electrically connected" to another element, it can be a contact connection, for example, a wire connection or a non-contact connection, for example, a non-contact coupling.
除非另有定義,本文所使用之所有之技術與科學術語與屬於所屬領域具有通常知識者通常理解之含義相同。本文中於本發明之說明書中所使用之術語僅是為描述具體之實施例之目不是旨在於限制本發明。本文所使用之術語“及/或”包括一個或多個相關之所列項目的任意之與所有之組合。 Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the art. The terminology used in the description of the invention herein is for the purpose of describing the particular embodiments. The term "and/or" used herein includes any and all combinations of one or more of the associated listed items.
下面結合附圖,對本發明之一些實施方式作詳細說明。於不衝突之情況下,下述之實施例及實施例中之特徵可相互組合。 Some embodiments of the present invention are described in detail below with reference to the accompanying drawings. The features of the embodiments and examples described below may be combined with each other without conflict.
請參閱圖1及圖2,本發明較佳實施例之用於無線接入點過濾之電腦程式產品10之運用環境及功能模組圖。該用於無線接入點過濾之電腦程式產品10安裝並運行於電子裝置1中。該電子裝置1可是手機、PDA(personal digital assistant,個人數位助理)、掌上遊戲機、數位相機或掌上電腦等需連接無線接入點之裝置。該用於無線接入點過濾之電腦程式產品10可於電子裝置1處於移動狀態時(例如,位於行駛中之車、船等交通工具中),對該電子裝置1所掃描到之無線接入點進行過濾,以篩選出可向該電子裝置1提供較為穩定之無線連接之無線接入點,例如所述交通工具本身提供之無線接入點。於本較佳實施例中,該用於無線接入點過濾之電腦程 式產品10可篩選出與該電子裝置1之相對速度為零或者相對速度較小之無線接入點。 Please refer to FIG. 1 and FIG. 2 for an application environment and a functional module diagram of a computer program product 10 for wireless access point filtering according to a preferred embodiment of the present invention. The computer program product 10 for wireless access point filtering is installed and operates in the electronic device 1. The electronic device 1 can be a device for connecting a wireless access point, such as a mobile phone, a PDA (personal digital assistant), a handheld game console, a digital camera or a palmtop computer. The computer program product 10 for wireless access point filtering can be wirelessly scanned by the electronic device 1 when the electronic device 1 is in a moving state (for example, in a moving vehicle, a ship, etc.) The points are filtered to screen out wireless access points that provide a more stable wireless connection to the electronic device 1, such as the wireless access point provided by the vehicle itself. In the preferred embodiment, the computer program for wireless access point filtering The product 10 can screen out wireless access points with a relative speed of zero or a relatively low speed to the electronic device 1.
該電子裝置1還包括測速模組11、距離感測模組13、接收模組15、顯示器17、記憶體18及處理器19。 The electronic device 1 further includes a speed measuring module 11 , a distance sensing module 13 , a receiving module 15 , a display 17 , a memory 18 , and a processor 19 .
該測速模組11用於量測該電子裝置1之移動速度。例如該測速模組11可利用習知之衛星定位系統決定該電子裝置1之位置,並利用該位置隨時間之變動來計算該電子裝置1之移動速度。該衛星定位系統可是俄羅斯之全球導航衛星系統(GLONASS)、美國之全球定位系統(GPS)、歐盟之伽利略定位系統或中國之北斗衛星定位系統。當電子裝置1位於行駛中之交通工具內時,該移動速度亦就是該交通工具之行駛速度。 The speed measuring module 11 is configured to measure the moving speed of the electronic device 1. For example, the speed measuring module 11 can determine the position of the electronic device 1 by using a conventional satellite positioning system, and calculate the moving speed of the electronic device 1 by using the position change with time. The satellite positioning system can be Russia's Global Navigation Satellite System (GLONASS), the United States' Global Positioning System (GPS), the European Union's Galileo positioning system or China's Beidou satellite positioning system. When the electronic device 1 is located in a traveling vehicle, the moving speed is also the traveling speed of the vehicle.
該距離感測模組13用於量測該電子裝置1與周圍物體之距離。於本較佳較佳實施例中,該距離感測模組13可為微波感測器,於該電子裝置1位於行駛中之交通工具內時,該物體可是交通工具之內壁、頂壁等。該距離感測模組13所量測之距離結合該測速模組11所量測之該電子裝置1之移動速度用於判斷該電子裝置1是否位於行駛中之交通工具內。 The distance sensing module 13 is configured to measure the distance between the electronic device 1 and surrounding objects. In the preferred embodiment, the distance sensing module 13 can be a microwave sensor. When the electronic device 1 is located in a traveling vehicle, the object can be the inner wall, the top wall, etc. of the vehicle. . The distance measured by the distance sensing module 13 combined with the moving speed of the electronic device 1 measured by the speed measuring module 11 is used to determine whether the electronic device 1 is located in a traveling vehicle.
該接收模組15用於接收無線接入點定期廣播之資訊,例如該資訊可為訊號幀(beacon frame)等無線訊號,並得到該資訊之訊號頻率Fap及該電子裝置1實際接收到該資訊之訊號頻率Fsta。具體地,該接收模組15根據從該無線接入點所接收資訊可得知該無線接入點之當前通道資訊(current channel information)及該電子裝置1實際接收到該資訊之訊號頻率Fsta,然後,藉由當前通道資訊中所包含之當前通道編號查詢到與其對應之該無線接入點之發送該資訊之訊號頻率Fap。該無線接入點之發送該資訊之訊號頻率Fap及該電子裝置1實際接收到該資訊之訊號頻率Fsta用於該用於無線接入點過濾之電腦程式產品10計算該無線接入點與該電子裝置1 之相對速度。 The receiving module 15 is configured to receive information periodically broadcast by the wireless access point, for example, the information may be a wireless signal such as a beacon frame, and obtain the signal frequency Fap of the information and the electronic device 1 actually receives the information. The signal frequency is Fsta. Specifically, the receiving module 15 can learn the current channel information of the wireless access point and the signal frequency Fsta that the electronic device 1 actually receives the information according to the information received from the wireless access point. Then, by referring to the current channel number included in the current channel information, the signal frequency Fap of the wireless access point corresponding to the information is sent. The signal frequency Fap of the wireless access point transmitting the information and the signal frequency Fsta of the electronic device 1 actually receiving the information are used by the computer program product 10 for wireless access point filtering to calculate the wireless access point and the Electronic device 1 Relative speed.
該顯示器17用於顯示該用於無線接入點過濾之電腦程式產品10篩選出之無線接入點清單,以提供給使用者進行選擇。 The display 17 is configured to display a list of wireless access points selected by the computer program product 10 for wireless access point filtering to provide a selection for the user.
該記憶體18可內置於該電子裝置1,還可是獨立之外部儲存卡,如SM卡(Smart Media Card,智慧媒體卡)、SD卡(Secure Digital Card,安全數位卡)等。該記憶體18用於儲存各類資料及程式碼等,例如上述用於無線接入點過濾之電腦程式產品10。該處理器19用於執行該電子裝置1中之作業系統及各應用程式,例如執行上述用於無線接入點過濾之電腦程式產品10。 The memory 18 can be built in the electronic device 1, and can also be a separate external storage card, such as a SIM card (Smart Media Card), an SD card (Secure Digital Card), and the like. The memory 18 is used to store various types of data and code, such as the computer program product 10 described above for wireless access point filtering. The processor 19 is configured to execute an operating system and applications in the electronic device 1, for example, to execute the computer program product 10 for wireless access point filtering.
該用於無線接入點過濾之電腦程式產品10包括設定模組101、獲取模組102、判斷模組103、監聽模組104、計算模組105、篩選模組106以及記錄模組107。 The computer program product 10 for wireless access point filtering includes a setting module 101, an obtaining module 102, a determining module 103, a monitoring module 104, a computing module 105, a screening module 106, and a recording module 107.
該設定模組101,用於設定該電子裝置1之狀態參數P之初始值,狀態參數P代表該電子裝置1是否位於交通工具內。於本較佳實施例中,該狀態參數P初始值設定為false,表明該電子裝置1位於交通工具外。另外,當該狀態參數P為true時,則表明該電子裝置1位於交通工具內。 The setting module 101 is configured to set an initial value of the state parameter P of the electronic device 1, and the state parameter P represents whether the electronic device 1 is located in the vehicle. In the preferred embodiment, the initial value of the state parameter P is set to false, indicating that the electronic device 1 is located outside the vehicle. In addition, when the state parameter P is true, it indicates that the electronic device 1 is located in the vehicle.
該獲取模組102,用於藉由該測速模組11及該距離感測模組13獲取該電子裝置1之移動速度及與該電子裝置1距離最遠之物體之距離,該物體可是交通工具之內壁、頂壁等。 The obtaining module 102 is configured to obtain the moving speed of the electronic device 1 and the distance of the object farthest from the electronic device 1 by the speed measuring module 11 and the distance sensing module 13 , and the object may be a vehicle The inner wall, the top wall, and the like.
該判斷模組103,用於判斷該電子裝置1是否位於該交通工具內,具體地,該判斷模組103判斷該移動速度是否大於第一預設速度(如20km/h)且該距離是否小於預設距離(如1m),如果該移動速度大於該第一預設速度,且該距離小於該預設距離,則判斷該電子裝置1位於該交通工具內,如果該移動速度小於第一預設速度或者該距離大於該預設距離,該 判斷模組103進一步判斷該移動速度是否小於第二預設速度(如2km/h)且該距離是否大於該預設距離(如1m),如果該移動速度小於該第二預設速度,且該距離大於該預設距離,則判斷該電子裝置1位於該交通工具外,如果該移動速度大於第二預設速度或者該距離小於該預設距離,則重新判斷該電子裝置1是否位於該交通工具內。 The determining module 103 is configured to determine whether the electronic device 1 is located in the vehicle. Specifically, the determining module 103 determines whether the moving speed is greater than a first preset speed (eg, 20 km/h) and whether the distance is less than a preset distance (eg, 1 m), if the moving speed is greater than the first preset speed, and the distance is less than the preset distance, determining that the electronic device 1 is located in the vehicle, if the moving speed is less than the first preset Speed or the distance is greater than the preset distance, The determining module 103 further determines whether the moving speed is less than a second preset speed (eg, 2 km/h) and whether the distance is greater than the preset distance (eg, 1 m), if the moving speed is less than the second preset speed, and the If the distance is greater than the preset distance, it is determined that the electronic device 1 is located outside the vehicle, and if the moving speed is greater than the second preset speed or the distance is less than the preset distance, it is determined whether the electronic device 1 is located in the vehicle. Inside.
該監聽模組104,用於藉由接收模組15監聽無線接入點定期廣播之資訊,並根據該資訊獲取該無線接入點發送資訊之訊號頻率Fap及該電子裝置1實際收到該資訊之訊號頻率Fsta。 The monitoring module 104 is configured to monitor, by the receiving module 15 , the information periodically broadcast by the wireless access point, and obtain the signal frequency Fap of the information sent by the wireless access point according to the information, and the electronic device 1 actually receives the information. The signal frequency is Fsta.
該計算模組105,用於根據該無線接入點發送資訊之訊號頻率Fap及該電子裝置1實際收到該資訊之訊號頻率Fsta計算出該電子裝置1與該無線接入點之相對速度。於本較佳實施例中,該計算模組105根據多普勒效應(Doppler Effect)之公式:(Fsta-Fap)/Fap=-Vsta×cosθ/c計算該相對速度,其中,Fap代表該無線接入點發送該資訊之訊號頻率,Fsta代表該電子裝置1實際收到該資訊之訊號頻率,θ代表該無線接入點發送該資訊之電磁波行進方向與該電子裝置1之移動方向之間之夾角(如圖4A所示,其中,AP代表無線接入點,STA代表該電子裝置1),於本較佳實施例中,該夾角θ定義為零,即假設該資訊之電磁波行進方向與該電子裝置1之移動方向相同(如圖4B所示),c為光速,等於2.99792458×108m/s,Vsta代表該相對速度。 The computing module 105 is configured to calculate a relative speed of the electronic device 1 and the wireless access point according to the signal frequency Fap of the information transmitted by the wireless access point and the signal frequency Fsta of the electronic device 1 actually receiving the information. In the preferred embodiment, the calculation module 105 calculates the relative speed according to the Doppler Effect formula: (Fsta-Fap) / Fap = -Vsta × cos θ / c, where Fap represents the wireless The signal frequency at which the access point sends the information, Fsta represents the frequency of the signal that the electronic device 1 actually receives the information, and θ represents the direction of travel of the electromagnetic wave that the wireless access point transmits the information and the direction of movement of the electronic device 1. An angle (as shown in FIG. 4A, wherein the AP represents a wireless access point and the STA represents the electronic device 1). In the preferred embodiment, the angle θ is defined as zero, that is, the electromagnetic wave traveling direction of the information is assumed to be The moving direction of the electronic device 1 is the same (as shown in FIG. 4B), and c is the speed of light, which is equal to 2.97972458×10 8 m/s, and Vsta represents the relative speed.
該篩選模組106,用於根據該相對速度篩選及過濾該無線接入點。具體地,該篩選模組106判斷該相對速度是否等於零,如果該相對速度等於零,則該記錄模組107判斷該無線接入點是否未等待過,如果該無線接入點未等待過,則等待預設時間(如1s)後,再由該監聽模組104監聽該無線接入點定期廣播之資訊,以及該計算模組105計算出該無線接入點 與該電子裝置1之相對速度,如果此時,該相對速度仍然為零,且已經等待過,說明該無線接入點相對該電子裝置1靜止,可提供穩定之無線連接,則接受該無線接入點。 The screening module 106 is configured to filter and filter the wireless access point according to the relative speed. Specifically, the screening module 106 determines whether the relative speed is equal to zero. If the relative speed is equal to zero, the recording module 107 determines whether the wireless access point has not waited, and if the wireless access point has not waited, waits After the preset time (for example, 1 s), the monitoring module 104 monitors the information periodically broadcast by the wireless access point, and the computing module 105 calculates the wireless access point. The relative speed with the electronic device 1, if the relative speed is still zero at this time, and has been waited for, indicating that the wireless access point is stationary relative to the electronic device 1, providing a stable wireless connection, accepting the wireless connection Entry point.
如果該相對速度不等於零,該篩選模組106進一步判斷該相對速度是否小於預設相對速度(如2km/h),如果該相對速度小於該預設相對速度,則說明該無線接入點可提供相對穩定之無線連接,則該篩選模組106接受該無線接入點。該篩選模組106可藉由顯示器17提供被該篩選模組106接受之無線接入點清單,使用者可根據該清單選擇可提供較為穩定之無線連接之無線接入點。如果該相對速度大於或等於該預設相對速度,則說明該無線接入點無法提供相對穩定之無線連接,則該篩選模組106過濾掉該無線接入點,亦就是不接受該無線接入點。 If the relative speed is not equal to zero, the screening module 106 further determines whether the relative speed is less than a preset relative speed (eg, 2 km/h), and if the relative speed is less than the preset relative speed, indicating that the wireless access point is available The relatively dynamic wireless connection, the screening module 106 accepts the wireless access point. The screening module 106 can provide a list of wireless access points accepted by the screening module 106 through the display 17, and the user can select a wireless access point that can provide a relatively stable wireless connection according to the list. If the relative speed is greater than or equal to the preset relative speed, the wireless access point cannot provide a relatively stable wireless connection, and the screening module 106 filters out the wireless access point, that is, does not accept the wireless access. point.
如圖3A-3B所示,本發明無線接入點過濾方法之較佳實施流程圖。該無線接入點過濾方法應用於安裝有用於無線接入點過濾之電腦程式產品10之電子裝置1,包括以下步驟。 3A-3B are flowcharts showing a preferred implementation of the wireless access point filtering method of the present invention. The wireless access point filtering method is applied to an electronic device 1 equipped with a computer program product 10 for wireless access point filtering, and includes the following steps.
步驟301,該設定模組101設定狀態參數P,代表該電子裝置1是否位於交通工具內,於本較佳實施例中,該狀態參數P初始值設定為false,表明該電子裝置1位於交通工具外。可理解,該狀態參數P之初始值一旦設定,再次進行該流程時,該步驟301可省略。 Step 301, the setting module 101 sets a state parameter P, indicating whether the electronic device 1 is located in the vehicle. In the preferred embodiment, the initial value of the state parameter P is set to false, indicating that the electronic device 1 is located in the vehicle. outer. It can be understood that once the initial value of the state parameter P is set and the flow is performed again, the step 301 can be omitted.
步驟303,該獲取模組102藉由該測速模組11及該距離感測模組13獲取該電子裝置1之移動速度及與該電子裝置1距離最遠之物體之距離,該物體可是交通工具之內壁、頂壁等。 In step 303, the acquisition module 102 obtains the moving speed of the electronic device 1 and the distance of the object farthest from the electronic device 1 by the speed measuring module 11 and the distance sensing module 13, and the object may be a vehicle. The inner wall, the top wall, and the like.
步驟305,該判斷模組103判斷該移動速度是否大於第一預設速度(如20km/h)且該距離是否小於預設距離(如1m),如果該移動速度大於該第一預設速度,且該距離小於該預設距離,則判斷該電子裝置1位於 該交通工具內,進入步驟307;如果該移動速度小於第一預設速度或者該距離大於該預設距離,則進入步驟309。 Step 305, the determining module 103 determines whether the moving speed is greater than a first preset speed (eg, 20 km/h) and whether the distance is less than a preset distance (eg, 1 m), and if the moving speed is greater than the first preset speed, And the distance is less than the preset distance, determining that the electronic device 1 is located In the vehicle, the process proceeds to step 307; if the moving speed is less than the first preset speed or the distance is greater than the preset distance, then step 309 is entered.
步驟307,該設定模組101將該狀態參數P設定為true,表明該電子裝置1位於交通工具內。 In step 307, the setting module 101 sets the state parameter P to true, indicating that the electronic device 1 is located in the vehicle.
步驟309,該判斷模組103進一步判斷該移動速度是否小於第二預設速度(如2km/h)且該距離是否大於該預設距離(如1m),如果該移動速度小於該第二預設速度,且該距離大於該預設距離,則判斷該電子裝置1位於該交通工具外,進入步驟311;如果該移動速度大於第二預設速度或者該距離小於該預設距離,則返回至步驟303,重新判斷該電子裝置1是否位於該交通工具內。 Step 309, the determining module 103 further determines whether the moving speed is less than a second preset speed (eg, 2 km/h) and whether the distance is greater than the preset distance (eg, 1 m), if the moving speed is less than the second preset If the speed is greater than the preset distance, it is determined that the electronic device 1 is located outside the vehicle, and proceeds to step 311; if the moving speed is greater than the second preset speed or the distance is less than the preset distance, returning to the step 303. Re-determine whether the electronic device 1 is located in the vehicle.
步驟311,該設定模組101將該狀態參數P設定為false,表明該電子裝置1位於交通工具外。 Step 311, the setting module 101 sets the state parameter P to false, indicating that the electronic device 1 is located outside the vehicle.
步驟313,根據該狀態參數P判斷出該電子裝置1是否位於交通工具內。當該狀態參數P為true時,則進入步驟315,當該狀態參數P為false時,則結束流程。 Step 313, determining, according to the state parameter P, whether the electronic device 1 is located in the vehicle. When the state parameter P is true, the process proceeds to step 315. When the state parameter P is false, the process ends.
可理解,上述步驟301、307、311及313可省略,可直接根據步驟305及309中該判斷模組103之判斷結果進行後續流程,如判斷該電子裝置1位於交通工具內時,則進入步驟315,判斷該電子裝置1位於交通工具外時,則結束流程。 It can be understood that the foregoing steps 301, 307, 311, and 313 can be omitted, and the subsequent process can be directly performed according to the determination result of the determination module 103 in steps 305 and 309. If it is determined that the electronic device 1 is located in the vehicle, the process proceeds to the step. 315. When it is determined that the electronic device 1 is located outside the vehicle, the process ends.
步驟315,該監聽模組104藉由接收模組15監聽無線接入點定期廣播之資訊,並根據該資訊獲取該無線接入點發送資訊之訊號頻率Fap及該電子裝置1實際收到該資訊之訊號頻率Fsta。 Step 315, the monitoring module 104 monitors the information periodically broadcast by the wireless access point by the receiving module 15, and obtains the signal frequency Fap of the wireless access point to send information according to the information, and the electronic device 1 actually receives the information. The signal frequency is Fsta.
步驟317,該計算模組105根據該無線接入點發送資訊之訊號頻率Fap及該電子裝置1實際收到該資訊之訊號頻率Fsta計算出該電子裝置1 與該無線接入點之相對速度。於本較佳實施例中,該計算模組105根據多普勒效應之公式:(Fsta-Fap)/Fap=-Vsta×cosθ/c計算該相對速度,其中,Fap代表該無線接入點發送資訊之訊號頻率,Fsta代表該電子裝置1實際收到該資訊之訊號頻率,θ代表該無線接入點發送該資訊之電磁波行進方向與該電子裝置1之移動方向之間之夾角(如圖4A所示,其中,AP代表無線接入點,STA代表該電子裝置1),於本較佳實施例中,該夾角θ定義為零,即假設該資訊之電磁波行進方向與該電子裝置1之移動方向相同(如圖4B所示),c為光速,等於2.99792458×108m/s,Vsta代表該相對速度。 In step 317, the computing module 105 calculates the relative speed of the electronic device 1 and the wireless access point according to the signal frequency Fap of the information transmitted by the wireless access point and the signal frequency Fsta of the electronic device 1 actually receiving the information. In the preferred embodiment, the calculation module 105 calculates the relative speed according to the formula of the Doppler effect: (Fsta-Fap) / Fap = -Vsta × cos θ / c, wherein Fap represents the wireless access point to send The signal frequency of the information, Fsta represents the frequency of the signal that the electronic device 1 actually receives the information, and θ represents the angle between the traveling direction of the electromagnetic wave that the wireless access point transmits the information and the moving direction of the electronic device 1 (see FIG. 4A). The AP represents the wireless access point, and the STA represents the electronic device 1). In the preferred embodiment, the angle θ is defined as zero, that is, the electromagnetic wave traveling direction of the information and the movement of the electronic device 1 are assumed. The direction is the same (as shown in Figure 4B), c is the speed of light, equal to 2.97972458 × 10 8 m / s, Vsta represents the relative speed.
步驟319,該篩選模組106根據該相對速度篩選及過濾該無線接入點,具體地,該篩選模組106判斷該相對速度是否等於零,如果該相對速度等於零,則進入步驟321,如果該相對速度不等於零,則進入步驟325。 Step 319, the screening module 106 filters and filters the wireless access point according to the relative speed. Specifically, the screening module 106 determines whether the relative speed is equal to zero. If the relative speed is equal to zero, the process proceeds to step 321 if the relative If the speed is not equal to zero, then step 325 is entered.
步驟321,該記錄模組107判斷該無線接入點是否未等待過,如果該記錄模組107判斷該無線接入點未等待過,則進入步驟323,同時,該記錄模組107記錄下等待該無線接入點;如果該記錄模組107判斷該無線接入點已經等待過,則進入步驟329。 Step 321 , the recording module 107 determines whether the wireless access point has not waited. If the recording module 107 determines that the wireless access point has not waited, then proceeds to step 323, and at the same time, the recording module 107 records the waiting. The wireless access point; if the recording module 107 determines that the wireless access point has been waiting, then proceeds to step 329.
步驟323,等待預設時間(如1s)後,再次進入步驟315,重複步驟317、319及321,如果,此時,該相對速度仍然為零,且已經等待過,說明該無線接入點相對該電子裝置1靜止,可提供穩定之無線連接,則該流程進入步驟329。 Step 323, after waiting for the preset time (such as 1 s), proceed to step 315 again, and repeat steps 317, 319, and 321 . If, at this time, the relative speed is still zero, and has waited, indicating that the wireless access point is relatively The electronic device 1 is stationary to provide a stable wireless connection, and the flow proceeds to step 329.
步驟325,該篩選模組106進一步判斷該相對速度是否小於預設相對速度(如2km/h),如果該相對速度小於該預設相對速度,則說明該無線接入點可提供相對穩定之無線連接,則該流程進入步驟329。如果該相對速度大於或等於該預設相對速度,則說明該無線接入點無法提供相對 穩定之無線連接,則進入步驟327。 Step 325, the screening module 106 further determines whether the relative speed is less than a preset relative speed (eg, 2 km/h). If the relative speed is less than the preset relative speed, the wireless access point can provide relatively stable wireless. Connect, the flow proceeds to step 329. If the relative speed is greater than or equal to the preset relative speed, it indicates that the wireless access point cannot provide relative For a stable wireless connection, proceed to step 327.
步驟327,該篩選模組106過濾掉該無線接入點,亦就是不接受該無線接入點,流程結束。 In step 327, the screening module 106 filters out the wireless access point, that is, does not accept the wireless access point, and the process ends.
步驟329,該篩選模組106接受該無線接入點,該篩選模組106可藉由顯示器17提供被該篩選模組106接受之無線接入點清單,使用者可根據該清單選擇可提供較為穩定之無線連接之無線接入點,流程結束。 In step 329, the screening module 106 receives the wireless access point, and the screening module 106 can provide a list of wireless access points accepted by the screening module 106 by using the display 17. The user can select and provide according to the list. The wireless access point for a stable wireless connection ends.
本發明之用於無線接入點過濾之電腦程式產品及方法可篩選出可提供較為穩定之無線連接之無線接入點,使得電子裝置1即便處於移動狀態中仍能夠獲得較為穩定之無線連接。 The computer program product and method for wireless access point filtering of the present invention can screen out wireless access points that can provide a relatively stable wireless connection, so that the electronic device 1 can obtain a relatively stable wireless connection even when it is in a mobile state.
以上所述,僅為本發明的較佳實施例,並非是對本發明作任何形式上的限定。另外,本領域技術人員還可在本發明精神內做其它變化,當然,這些依據本發明精神所做的變化,都應包含在本發明所要求保護的範圍之內。 The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention in any way. In addition, those skilled in the art can make other changes in the spirit of the present invention. Of course, the changes made in accordance with the spirit of the present invention should be included in the scope of the present invention.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW106142827A TWI669022B (en) | 2017-12-06 | 2017-12-06 | Wireless access point filtering method, computer program, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW106142827A TWI669022B (en) | 2017-12-06 | 2017-12-06 | Wireless access point filtering method, computer program, and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201927060A TW201927060A (en) | 2019-07-01 |
TWI669022B true TWI669022B (en) | 2019-08-11 |
Family
ID=68048618
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW106142827A TWI669022B (en) | 2017-12-06 | 2017-12-06 | Wireless access point filtering method, computer program, and electronic device |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI669022B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090075678A1 (en) * | 2005-03-31 | 2009-03-19 | Nec Corporation | Portable wireless terminal and moving velocity detecting method for portable wireless terminal |
US8346478B2 (en) * | 2010-03-25 | 2013-01-01 | GM Global Technology Operations LLC | Location and mobile-adaptation of wireless access-points using map-based navigation |
CN103442413A (en) * | 2013-08-29 | 2013-12-11 | 惠州Tcl移动通信有限公司 | Wireless network setting method of mobile terminal |
EP2797366A1 (en) * | 2011-12-20 | 2014-10-29 | Huawei Technologies Co., Ltd. | Method, device and system for vehicular communication |
-
2017
- 2017-12-06 TW TW106142827A patent/TWI669022B/en active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090075678A1 (en) * | 2005-03-31 | 2009-03-19 | Nec Corporation | Portable wireless terminal and moving velocity detecting method for portable wireless terminal |
US8346478B2 (en) * | 2010-03-25 | 2013-01-01 | GM Global Technology Operations LLC | Location and mobile-adaptation of wireless access-points using map-based navigation |
EP2797366A1 (en) * | 2011-12-20 | 2014-10-29 | Huawei Technologies Co., Ltd. | Method, device and system for vehicular communication |
CN103442413A (en) * | 2013-08-29 | 2013-12-11 | 惠州Tcl移动通信有限公司 | Wireless network setting method of mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
TW201927060A (en) | 2019-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107250830B (en) | Method, device and system for positioning | |
CN112116654B (en) | Vehicle pose determining method and device and electronic equipment | |
US20140004877A1 (en) | Position Determination Using Round-Trip Delay and Angle-of-Arrival | |
WO2014007754A2 (en) | Methods nodes and computer program for positioning of a device | |
US20170219717A1 (en) | Alignment of visual inertial odometry and satellite positioning system reference frames | |
JP3209090B2 (en) | Location information providing system | |
EP3195003A1 (en) | Mobile device sensor and radio frequency reporting techniques | |
EP2415237A1 (en) | Method and apparatus for determining location information | |
CN112399334A (en) | Ultra-wideband-based positioning method and device, electronic equipment and readable storage medium | |
KR20160135584A (en) | A method and a system for measuring a position with high accuracy based on uwb | |
US20170336516A1 (en) | Method for positioning a mobile terminal at the moment when a trigger event occurs | |
CN103969625A (en) | Wireless positioning method | |
CN110703191A (en) | Positioning method, system, device, positioning equipment and storage medium | |
CN110888703A (en) | Terminal control method and device, storage medium and computer equipment | |
CN109525931B (en) | Method, device, equipment and storage medium for positioning wireless equipment | |
JP2014106562A (en) | Information providing device, information output device, and program for controlling information output device | |
TWI669022B (en) | Wireless access point filtering method, computer program, and electronic device | |
JP2008244942A (en) | Mobile terminal and radio wave state confirming method | |
KR20220036209A (en) | Apparatus and method for providing service related to target location based on uwb | |
US11212643B1 (en) | Relative device localization | |
WO2018053969A1 (en) | Azimuth calibration method and apparatus | |
US20160373889A1 (en) | Location accuracy improvement method and system using network elements relations and scaling methods | |
CN115097379A (en) | Positioning tracking method, device, equipment and storage medium | |
US20190357111A1 (en) | Method and system for localization-based data connectivity transitioning | |
Jeon et al. | Smart parking system based on an ultrasonic sensor and bluetooth low energy in the internet of things |