Patent Document

BACKGROUND 
     1. Technical Field 
     The present disclosure relates to mobile phones, and particularly to a method for testing wireless connection function of a mobile phone. 
     2. Description of Related Art 
     Portable electronic devices such as mobile phones enjoy widespread popularity. In particular, characteristics of these devices provide users with access to information and communication outlets in ways that were never before available. To ensure the continued popularity of portable electronic devices, attempts are made to further expand the flexibility and capabilities of these portable electronic devices and to further enhance the services available to users. For example, mobile phones are now capable of accessing the Internet in different ways, such as WIFI (Wireless Fidelity). 
     Before the mobile phones go to market, they are tested. However, it is often troublesome and time-consuming to test the wireless connection function of mobile phones in a conventional manner. 
     Therefore, there is room for improvement within the art. 
    
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
       Many aspects of the embodiments can be better understood with references to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views. 
         FIG. 1  is a block view of a system of an embodiment for testing wireless connection function of a mobile phone; 
         FIG. 2  is a schematic view of a test parameter input interface of the system of  FIG. 1 ; 
         FIG. 3  is a flow chart of a method of an embodiment for testing wireless connection function of a mobile phone; 
         FIG. 4  is a detailed flow chart of a step  306  of the method of  FIG. 3 ; 
         FIG. 5  is a detailed flow chart of a step  307  of the method of  FIG. 3 ; and 
         FIG. 6  is a detailed flow chart of a step  308  of the method of  FIG. 3 . 
     
    
    
     DETAILED DESCRIPTION 
     Referring to  FIGS. 1 and 2 , a system for testing wireless connection function of a mobile phone, in accordance with an embodiment, includes an access point  10  which is connected to the Internet, and a mobile phone  50  which needs to be tested. The mobile phone  50  includes a wireless module  51  (such as a WIFI module), a control module  53 , and a screen  54 . The control module  53  is capable of turning on or off the wireless module  51 . 
     Referring to  FIG. 2 , a test parameter input interface on the screen  54  is shown to input test parameters in the control module  53 . The test parameters may include names of the access points, websites, and a test count. The test parameters can be set in different patterns. 
     For example, in a first pattern, set an access point, such as “AP 1 ”, set a website, such as “www.1.com”, and set a test count, such as five times. Therefore, in test, the mobile phone  50  connects to the access point AP 1 , and then accesses the website “www.1.com”. The above test steps are repeated five times. 
     In a second pattern, set a plurality of access points, such as “AP 1 ”, “AP 2 ”, “AP 3 ”, set a website, such as “www.1.com”, and do not set a test count. Therefore, in test, the mobile phone  50  in turn connects to each of the plurality of access points, and accesses the website “www.1.com” through each of the access points. 
     In a third pattern, set an access point, such as “AP 1 ”, a plurality of websites, such as “www.1.com”, “www.2.com”, “www.3.com”; and do not set test count. Therefore, in test, the mobile phone  50  connects to the access point AP 1  for a plurality of times, and accesses a different website each time connected to the access point AP 1 . 
     Referring to  FIG. 3 , a method for testing a wireless connection function of the mobile phone  50 , is shown as follows: 
     In step  301 , the control module  53  of the mobile phone  50  turns on the wireless module  51 ; then go to step  302 . 
     In step  302 , the wireless module  51  searches for access points; then go to step  303 . 
     In step  303 , check if all of the access points listed in the test parameters are found; if all of the access points are not found, go to step  304 ; if all of the access points are found, go to step  305 . 
     In step  304 , the mobile phone fails test. 
     In step  305 , check the pattern of the test parameters being set; if the parameters are set in the first pattern, go to a first test mode of step  306 ; if the parameters are set in the second pattern, go to a first test mode of step  307 ; if the parameters are set in the third pattern, go to a third test mode of step  308 . 
     Referring to  FIG. 4 , detail steps of the step  306  are shown as follows: 
     In step  601 , the wireless module  51  connects to the access point listed in the test parameters; then go to step  602 . 
     In step  602 , check if the connection between the wireless module  51  and the access point is good; if it is, go to step  603 ; if it is not, go to step  304 , and the mobile phone  50  fails test. 
     In step  603 , the mobile phone  50  accesses the website listed in the test parameters via the wireless module  51  and the access point; then go to  604 . 
     In step  604 , check if the mobile phone  50  successfully accesses the website; if it does, go to step  605 ; if it does not, go to step  304 , and the mobile phone  50  fails. 
     In step  605 , a counter, whose initial count is zero, is incremented by one; then go to step  606 . 
     In step  606 , check if the count of the counter is the same as the test count listed in the test parameters; if it is, go to step  608 ; if it is not, go to step  607 . 
     In step  607 , the connection between the wireless module  51  and the access point is cut off; then go back to step  601 . 
     In step  608 , the mobile phone  50  passes the test, and the count of the counter is reset to zero. 
     Referring to  FIG. 5 , detail steps of the step  307  are shown as follows: 
     In step  701 , the wireless module  51  connects to the first access point listed in the test parameters; then go to step  702 . 
     In step  702 , check if the connection between the wireless module  51  and the access point is good; if it is, go to step  703 ; if it is not, go to step  304 , and the mobile phone  50  fails. 
     In step  703 , the mobile phone  50  accesses the website listed in the test parameters via the wireless module  51  and the access point; then go to  704 . 
     In step  704 , check if the mobile phone  50  successfully accesses the website; if it does, go to step  705 ; if it does not, go to step  304 , and the mobile phone  50  fails. 
     In step  705 , check if the access point is the last access point in the test parameters; if it is not, go to step  706 ; if it is, go to step  707 . 
     In step  706 , the connection between the wireless module  51  and the access point is cut off; then go back to step  601 , and connect to next access point. 
     In step  707 , the mobile phone  50  passes the test. 
     Referring to  FIG. 6 , detail steps of the step  307  are shown as follows: 
     In step  801 , the wireless module  51  connects to the access point listed in the test parameters; then go to step  802 . 
     In step  802 , check if the connection between the wireless module  51  and the access point is good; if it is, go to step  803 ; if it is not, go to step  304 , and the mobile phone  50  fails. 
     In step  803 , the mobile phone  50  accesses to the first website listed in the test parameters via the wireless module  51  and the access point; then go to  804 . 
     In step  804 , check if the mobile phone  50  successfully accesses the website; if it does, go to step  805 ; if it does not, go to step  304 , and the mobile phone  50  fails. 
     In step  805 , check if the web network is the last web network in the test parameters; if it is not, go to step  806 ; if it is, go to step  807 . 
     In step  806 , the connection between the wireless module  51  and the access point is cut off; then go back to step  801 , and connect to the access point again to access the next website. 
     In step  807 , the mobile phone  50  passes the test. 
     It is to be understood, however, that even though numerous characteristics and advantages of the embodiments have been set forth in the foregoing description, together with details of the structure and function of the embodiments, the disclosure is illustrative only, and changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the present disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed. 
     It is also to be understood that the above description and the claims drawn to a method may include some indication in reference to certain steps. However, the indication used is only to be viewed for identification purposes and not as a suggestion as to an order for the steps.

Technology Category: 5