201101783 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明涉及一種測試手機之方法 線上網功能之方法。 尤指一種測試手機無 ❹ ❹ 【先前技術】 隨著技術之進步,手機之功能亦越來越多,除具有通常 之電話功能外,還具有後多額外之功能,如藉由们 WirelessFidelity)模組連接到接入點上網等 一般具有較尚之傳輪速度,可逹到11Mbps,此外它 效距離亦很長,l_IFI之接入點_报廣泛的佈讯 ,如機場、商場等公共場所—㈣設有簡接入點,Γ用戶在該等地點時,可便捷地藉由手機接入互聯網,且^ 無費用。 _ 且 手機於出廠前,-般均需要對該手機之無線上網功能進 行測試,傳統之測試方法通常係人工進行且該項測試通 常需要重複多次’工作量大,效率低,花費大量人力成 本。 【發明内容】 [0004] 鑒於以上内容,有必要提供一種可方便測試手機無線上 網功能之方法。 [0005] —種測試手機無線上網功能之方法,該手機設有一WIFI 模組,該方法包括以下步驟: [0002] [0003] [0006] 啟動該WIFI模組; [0007] 該WIFI模組搜索接入點; 098121171 表單編號A0101 第3頁/共15頁 0982036044-0 201101783 [0008] 該WIFI模組於搜索到之接入點中查找設定之接入點,並 連接到設定之接入點,及 [0009] 該手機藉由該WIF I模組和該設定之接入點訪問設定之網 址對應之網站。 [0010] 相較於習知技術’本發明能快速高效的測試手機之無線 上網功能。 【實施方式】 [0011] 請參閱圖1 ’ 一測試手機無線上網功能之系統之一較佳實 施例包括一接入到互聯網之一接入點1 0與一待測試之手 機50,該手機50設有一WIFI模組51、一控制模組53與一 顯示屏,該控制模組53可控制啟動或關閉該fIFI模組51 [0012] 請參閱圖2,其為該手機50之顯示屏顯f:之控制模組53之 控制參數輸入介面,該控制模組53之控制參數包括測試 ; 時連接之接入點、測試時訪問之_站之網址與測試次數 ,該等參數可有多種設定方式,如第—種參數設定方式 ,設定一個接入點,如API,設定一個訪問網址,如 www. 1. cn,而後設定測試次數,如5次,則測試時該控 制模組53控制該手機50之WIFI模組51連接到該接入點 API,訪問網址www. l.cn,並循環5次;又如第二種參數 設定方式,設定多個接入點,如API、AP2、AP3等,設 定一個訪問網址,如www. 1. cn,不設定測試次數,則測 試時該控制模組53控制該手機50之WIFI模組51依次連接 到各接入點,並於連接到每一接入點時訪問網址 www. 1. cn ;再如第三種設定方式,設定一個接入點,如 098121171 表單編號A0101 第4頁/共15頁 098 201101783 [0013] ❹ [0014] ❹ API,設定多個連接網址,如www. 1. cn、www. 2. cn等, 不設定測試次數,則測試時該控制模組53控制該手機50 之WIFI模組51多次連接到該接入點,並於每一次連接到 該接入點時訪問一個網址。 請參閱圖3,其為本發明測試手機無線上網功能之一方法 之流程圖,測試開始後,控制模組53首先控制開啟該 WIFI模組51 (步驟301 ),該WIFI模組51搜索接入點( 步驟302 ),而後察看控制模組53中設定之所有接入點是 否被搜索到(步驟303 ),若否,則測試失敗(步驟304 ),若是,則到步驟305,於步驟305中,該控制模組53 根據其中參數之設定方式而選擇進入對應之測試模式。 當為上述之第一種參數設定方式時,進入第一種測試模 式即步驟306進行測試。請參閱圖4,其為步驟306之具體 步驟,首先WIFI模組51連接到設定之接入點(步驟601 ),察看是否連接成功(步驟602 ),若否,則到步驟 304,測試失敗,若是,則到步驟603,於步驟603中, 訪問設定之網址對應之網站,察看是否訪問成功(步驟 604 ),若否,則到步驟304,測試失敗,若是,則到步 驟605,於步驟605中,一起始數值為零之計數器加上一 ,而後檢測該計數器之計數是否為設定之測試次數(步 驟606 ),若否,則斷開WIFI模組51與接入點之連接( 步驟607 ),而後跳回到步驟601,重複上述步驟,若是 ,則該計數器被清零,且測試成功(步驟608 )。 當為上述之第二種參數設定方式時,進入第二種測試模 式即步驟307進行測試。請參閱圖5,其為步驟307之具體 098121171 表單編號A0101 第5頁/共15頁 0982036044-0 [0015] 201101783 步驟,首先WIFI模組51連接到設定之第一個接入點(步 驟701),察看是否連接成功(步驟702 ),若否,則到 步驟304,測試失敗,若是,則到步驟703,於步驟703 中,訪問設定之網址對應之網站,察看是否訪問成功( 步驟704 ),若否,則到步驟304,測試失敗,若是,則 到步驟7 0 5,於步驟7 0 5中,檢測連接之接入點是否係設 定之最後一個接入點,若否,則斷開WIFI模組51與接入 點之連接(步驟706 ),跳回到步驟701,接入到下一個 接入點,若是,則測試成功(步驟707 )。 [0016] 當為上述之第三種參數設定方式時,進入第三種測試模 式即步驟308進行測試。請參閱圖6,其為步驟308之具體 步驟,首先WIFI模組51連接到設定之接入點(步驟801 ),察看是否連接成功(步驟802 ),若否,則到步驟 304,測試失敗,若是,則到步驟803,於步驟803中, 訪問設定之第一個網址對應之網站,察看是否訪問成功 (步驟804 ),若否,則到步驟304,測試失敗,若是, 則到步驟805,於步驟805中,察看訪問之網址是否係設 定之最後一個網址,若否,則斷開WIFI模組51與接入點 之連接(步驟806 ),跳回到步驟801,重新接入到接入 點,訪問下一個網址對應之網站,若是,則測試成功( 步驟807 )。 [0017] 综上所述,本發明係合乎發明專利申請條件,爰依法提 出專利申請。惟,以上所述僅為本發明之較佳實施例, 舉凡熟悉本案技藝之人士其所爰依本案之創作精神所作 之等效修飾或變化,皆應涵蓋於以下之申請專利範圍内 098121171 表單編號A0101 第6頁/共15頁 0982036044-0 201101783 【圖式簡單說明】 [0018] [0019] [0020] [0021] [0022] [0023] Ο 統之 圖1為實現本發明測試手機無線上網功能之方法之系 示意圖。 、 圖2係圖1中之系統之測試參數之輸入介面。 圖3係本發明測試手機無線上網功能之一方法之法程圖 圖4係圖3中步驟306之具體步驟之流程圖。 圖5係圖3中步驟307之具體步驟之流程圖。 圖6係圖3中步驟308之具體步驟之流程圖。 【主要元件符號說明】 [0024] 接入點 10 ------ 手機 WIFI模組 51 ----— 控制模組 50 53 _.f. '· e: ❹201101783 VI. Description of the Invention: [Technical Field of the Invention] [0001] The present invention relates to a method of testing a mobile phone line-connecting function. Especially for testing a mobile phone without flaws 先前 [Prior Art] With the advancement of technology, the functions of mobile phones are also increasing. In addition to the usual telephone functions, there are many additional functions, such as by WirelessFidelity. The group is connected to the access point and the Internet generally has a higher speed, which can reach 11Mbps. In addition, its effective distance is also very long. The access point of l_IFI reports extensive information, such as airports, shopping malls and other public places—(4) With a simple access point, users can easily access the Internet via mobile phones when they are in these locations, and there is no cost. _ And before the mobile phone is shipped from the factory, it is generally necessary to test the wireless Internet access function of the mobile phone. The traditional test method is usually performed manually and the test usually needs to be repeated many times. 'The workload is large, the efficiency is low, and the labor cost is large. . SUMMARY OF THE INVENTION [0004] In view of the above, it is necessary to provide a method for conveniently testing a wireless network function of a mobile phone. [0005] A method for testing a wireless Internet access function of a mobile phone, the mobile phone having a WIFI module, the method comprising the following steps: [0002] [0003] [0006] starting the WIFI module; [0007] the WIFI module search Access point; 098121171 Form No. A0101 Page 3 of 15 0982036044-0 201101783 [0008] The WIFI module searches for the set access point in the searched access point and connects to the set access point. And [0009] the mobile phone accesses the website corresponding to the set website by the WIF I module and the set access point. [0010] Compared with the prior art, the present invention can quickly and efficiently test the wireless Internet function of a mobile phone. [Embodiment] [0011] Please refer to FIG. 1 'A preferred embodiment of a system for testing a wireless Internet access function of a mobile phone includes an access point 10 connected to the Internet and a mobile phone 50 to be tested, the mobile phone 50 A WIFI module 51, a control module 53 and a display screen are provided. The control module 53 can control the activation or shutdown of the fIFI module 51. [0012] Please refer to FIG. 2, which is a display screen of the mobile phone 50. : The control parameter input interface of the control module 53 , the control parameters of the control module 53 include testing; the access point of the time connection, the website address and the number of tests of the station accessed during the test, and the parameters can be set in various ways. For example, the first parameter setting method, setting an access point, such as an API, setting an access URL, such as www. 1.cn, and then setting the number of tests, such as 5 times, the control module 53 controls the mobile phone during the test. 50 WIFI module 51 is connected to the access point API, accessing the website www.l.cn, and looping 5 times; and as the second parameter setting mode, setting multiple access points, such as API, AP2, AP3, etc. , set an access URL, such as www. 1. cn, do not set the test The number of times, the control module 53 controls the WIFI module 51 of the mobile phone 50 to be connected to each access point in turn, and accesses the website www. 1.cn when connected to each access point; Setting method, set an access point, such as 098121171 Form No. A0101 Page 4 / Total 15 Page 098 201101783 [0013] ❹ [0014] ❹ API, set multiple connection URLs, such as www. 1. cn, www. 2. Cn et al., without setting the number of tests, the control module 53 controls the WIFI module 51 of the mobile phone 50 to connect to the access point multiple times during the test, and accesses a web address each time it connects to the access point. Please refer to FIG. 3 , which is a flowchart of a method for testing a wireless Internet access function of a mobile phone. After the test is started, the control module 53 first controls to turn on the WIFI module 51 (step 301 ), and the WIFI module 51 searches for access. Point (step 302), and then check whether all the access points set in the control module 53 are searched (step 303), if not, the test fails (step 304), and if yes, go to step 305, in step 305 The control module 53 selects to enter the corresponding test mode according to the manner in which the parameters are set. When the first parameter setting mode is described above, the first test mode, step 306, is entered for testing. Please refer to FIG. 4, which is a specific step of step 306. First, the WIFI module 51 is connected to the set access point (step 601) to check whether the connection is successful (step 602). If not, then to step 304, the test fails. If yes, go to step 603, in step 603, visit the website corresponding to the set URL to check whether the access is successful (step 604), if not, then go to step 304, the test fails, and if yes, go to step 605, in step 605 In the middle, a counter with a starting value of zero is added, and then the counter is detected as the set number of tests (step 606). If not, the connection between the WIFI module 51 and the access point is disconnected (step 607). Then, jumping back to step 601, the above steps are repeated, and if so, the counter is cleared and the test is successful (step 608). When the second parameter setting mode is described above, the second test mode, step 307, is entered for testing. Please refer to FIG. 5 , which is the specific 098121171 of the step 307. Form No. A0101 Page 5 / 15 pages 0992036044-0 [0015] 201101783 Step, first, the WIFI module 51 is connected to the set first access point (step 701) If the connection is successful (step 702), if not, then the process fails to step 304. If yes, go to step 703, in step 703, visit the website corresponding to the set URL to check whether the access is successful (step 704). If not, then to step 304, the test fails. If yes, go to step 7 0 5, in step 7 0 5, check whether the connected access point is the last access point set, and if not, disconnect the WIFI. The module 51 is connected to the access point (step 706), jumps back to step 701, and accesses the next access point, and if so, the test is successful (step 707). [0016] When the third parameter setting mode is described above, the third test mode, step 308, is entered for testing. Please refer to FIG. 6, which is a specific step of step 308. First, the WIFI module 51 is connected to the set access point (step 801) to check whether the connection is successful (step 802). If not, then to step 304, the test fails. If yes, go to step 803, in step 803, visit the website corresponding to the first website address to check whether the access is successful (step 804), and if not, go to step 304, the test fails, and if yes, go to step 805. In step 805, it is checked whether the accessed web address is the last URL set. If not, the WIFI module 51 is disconnected from the access point (step 806), and the process returns to step 801 to re-access the access. Click to access the website corresponding to the next URL, and if so, the test is successful (step 807). [0017] In summary, the present invention is in accordance with the conditions of the invention patent application, and the patent application is filed according to law. However, the above description is only the preferred embodiment of the present invention, and equivalent modifications or variations made by those skilled in the art to the spirit of the present invention should be included in the following patent application scope 098121171 A0101 Page 6 / 15 pages 0992036044-0 201101783 [Simple diagram of the drawing] [0019] [0023] [0023] FIG. 1 is a diagram for implementing the wireless internet access function of the test mobile phone of the present invention. A schematic diagram of the method. Figure 2 is the input interface of the test parameters of the system in Figure 1. 3 is a process diagram of a method for testing a wireless internet access function of a mobile phone according to the present invention. FIG. 4 is a flow chart showing the specific steps of step 306 in FIG. Figure 5 is a flow chart showing the specific steps of step 307 in Figure 3. 6 is a flow chart of the specific steps of step 308 in FIG. [Main component symbol description] [0024] Access point 10 ------ Mobile phone WIFI module 51 ----- Control module 50 53 _.f. '· e: ❹
"]I、#. f V .. K 'Jr ....... 穸” *- I .i鲁-會....:..琴 098121171 表單編號A0101 第7頁/共15頁 0982036044-0"]I,#. f V .. K 'Jr ....... 穸" *- I .i Lu-hui....:.. Qin 098121171 Form No. A0101 Page 7 of 15 0982036044-0