Patent Publication Number: US-2012035911-A1

Title: Customer premises equipment and configuration method thereof

Description:
BACKGROUND 
     1. Technical Field 
     The present disclosure relates to a customer premises equipment and a configuration method thereof. 
     2. Description of Related Art 
     In order to sell customer premises equipment (CPE) to many countries, the manufacturers usually pre-store multiple language environments in the CPE, and set a default language environment according to which country the CPE will be sold in. Yet, in a globalized world, a user may buy a CPE from a country of a different language. He then needs to set the language of the CPE to his native language by himself. In this case, the user must connect the CPE to a computer, access the user interface of the CPE with a browser of the computer, and select a language environment from the user interface. However, the language of the browser is usually the native language of the user and is different from the default language environment of the CPE. Thus, the foreign characters of the user interface of the CPE may appear as gibberish, even when the foreign characters are normally displayed, the user may not know how to set the language because he is unfamiliar with the foreign language. 
     What is needed, therefore, is a new customer premises equipment and a configuration method thereof to overcome the above-described problem. 
    
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
       Many aspects of the embodiments can be better understood with reference 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. 
         FIG. 1  is a block diagram of customer premises equipment, connected with an electronic device, according to an exemplary embodiment. 
         FIG. 2  is a WIFI-channel option mapping table for different countries stored in the customer premises equipment of  FIG. 1 . 
         FIG. 3  is a flowchart of a configuration method for the customer premises equipment of  FIG. 1 . 
     
    
    
     DETAILED DESCRIPTION 
     Embodiments of the present disclosure will now be described in detail below, with reference to the accompanying drawings. 
     Referring to  FIG. 1 , a customer premises equipment (hereinafter “CPE”)  100 , according to an exemplary embodiment, is connected to an electronic device  200 . In the present embodiment, the CPE  100  is a router. The electronic device  200  is a personal computer. The CPE  100  is connected to the electronic device  200  with a cable. In other embodiments, the CPE  100  can be a network switch, the electronic device  200  can be a workstation or a portable device installing a browser  201 , such as a hand-held computer or a smart phone, and the CPE  100  can communicate with the electronic device  200  by wireless technology. 
     The browser  201  is installed in the electronic device  200 . The language version of the browser  201  is considered as the familiar language version for the user. In the present embodiment, the language environment of the CPE  100  is automatically set the same as that of the browser  201 , and the configuration of the CPE  100  is automatically set to match the language setting of the browser  201 . 
     The CPE  100  pre-stores multiple language environments and the corresponding configuration parameters, such as WIFI-channel options and wimax frequencies. In the present embodiment, the CPE  100  pre-stores WIFI-channel options corresponding to different countries. The  FIG. 2  is a mapping table that contains WIFI-channel options for different countries. 
     The CPE  100  stores a configuration web page showing the configuration parameters which can be changed by the user. The language of the configuration web page is the default language of the CPE  100 . The configuration parameter is the default configuration corresponding to the default language of the CPE  100 . 
     The CPE  100  includes an identifying module  11 , a language module  12 , a matching module  13 , and a setting module  14 . The identifying module  11  is used for identifying the type of browser  201  the electronic device  200  is using. The identifying module  11  sends a request to the electronic device  200  for checking what type of browser  201  is being used, using, for example, PHP language or JavaScript language, when the electronic device  200  accesses the CPE  100 . The identifying module  11  identifies the type of browser  201  being used according to the responding message feedback from the browser  201 . In the present embodiment, the identifying module  11  identifies the type of browser  201  being used, by sending a request to the electronic device  200  for checking the return value of the special function corresponding to the type of browser  201  being used by JavaScript language. For example, one of the ActiveXObject functions is to return a type value of the IE browser. The identifying module  11  sends a request to the electronic device  200  for checking the returned value of the ActiveXObject function. The identifying module  11  checks the value of the ActiveXObject function to check whether the browser  201  is an IE browser or not. In other embodiments, the identifying module  11  can also check the type of browser  201  by using a User Agent information of the browser  201 . If the identifying module  11  is incapable of identifying the type of browser  201 , the identifying module  11  will send a reminder message to the electronic device  200  to remind the user that the CPE  100  is incapable of identifying the browser  201 . 
     The language module  12  is used for recognizing the language version of the browser  201 . The language module  12  sends a request to the electronic device  200  for checking the language version of the browser  201 . In the present embodiment, the language module  12  sends a request to the electronic device  200  to check the language version of the browser  201  using JavaScript language. The language module  12  can also use PHP language. For example, if the browser  201  is an IE browser, the language module  12  sends a request to the electronic device  200  to check the value of the navigator. Browserlanguage property to check the language code of the IE browser. If the return value is en-US, the language module  12  identifies the language version of the browser  201  is United States English. The language module  12  can also obtain the language version of other types of browsers by the same method. 
     The matching module  13  is used for checking whether the CPE  100  stores a language environment the same as the language version of the browser  201  or not, and outputs a matching result to the setting module  14  when the language environment is the same as the language version of the browser  201 . When the language version of the browser  201  is different from any language environment stored in the CPE  100 , the matching module  13  sends a reminder message that there is no appropriate language environment that can be used by the electronic device  200 . 
     The setting module  14  is used for making the language environment of the CPE  100  the same as the language version of the browser  201  and listing the selective configuration parameters corresponding to the language version of the browser  201 , upon the matching result of the matching module  13 . Generally, the manufacturers may pre-store configuration parameters, such as WIFI-channel options and wimax frequencies, in the CPE  100 . For different countries, the configuration parameters are different. Before the CPE  100  is shipped from the factory, the manufacturers select a configuration parameter corresponding to the marketing country. In the present embodiment, after changing the language environment, the setting module  14  also changes the configuration parameters of the CPE  100  corresponding to the current language environment. In addition, lists the configuration parameters corresponding to the current language environment and the user can find and choose the correct configuration parameter corresponding to the current language environment quickly. For example, when the setting module  14  sets the language environment of the CPE  100  as United States English version, it then refreshes the configuration web page of the CPE  100  to show the configuration web page in English. Then the setting module  14  reloads the configuration parameters corresponding to the United States and shows an options list to the user. 
     Referring to  FIG. 3 , a configuration method of the CPE  100  includes the following steps. 
     Step S 110 , a request is sent to the electronic device  200  to check the type of browser  201  of the electronic device  200 . As different types of browsers  201  have different special functions, in the present embodiment, the identifying module  11  sends a request to the electronic device  200  to check the return value of the special functions corresponding to the browser  201  with JavaScript language. 
     Step S 113 , whether the type of the browser  201  of the electronic device  200  is identified or not. In the present embodiment, the identifying module  11  identifies the type of browser  201  according to the return value of the special functions. If the identifying module  11  is incapable of identifying the type of browser  201 , then the CPE  100  performs step S 130   
     Step S 116 , a request is sent to the electronic device  200  to check the language version of the browser  201 . In the present embodiment, the language module  12  sends a request to the electronic device  200  for checking the language version of the browser  201  basing on the type of browser  201 . 
     Step S 119 , the language version of the browser  201  of the electronic device  200  is identified. In the present embodiment, the language module  12  identifies the language version of the browser  201  by checking the language code of the browser  201 . 
     Step S 122 , the language environments stored in the CPE  100  are checked whether the CPE  100  has a language environment the same as the language version of the browser  201  or not. In the present embodiment, the matching module  13  compares the language version of the browser  201  checked by the language module  12  with the language environments corresponding to different countries stored in the CPE  100 , and outputs the matching result to the setting module  14 . If the matching module  13  can not find a language environment of the CPE  100  the same as the language of the browser  201 , then the CPE  100  performs step S 135 . 
     Step S 125 , the language environment of the CPE  100  is set the same as the language version of the browser  201  and the configuration parameters corresponding to the country of the language version are shown. In the present embodiment, the setting module  14  makes the language environment of the CPE  100  same as the language version of the browser  201  to allows the user to be able to read it easily, when the matching module  13  checks that the CPE  100  stores a language environment matching the language of the browser  201 . The setting module  14  also lists the configuration parameters corresponding to the country of the language version to allow the user find the corresponding configuration quickly, when the matching module  13  checks that the CPE  100  stores a language environment matching the language of the browser  201 . 
     Step S 130 , a reminder message is sent to inform the user that the language browser is unidentifiable. In the present embodiment, if the identifying module  11  is incapable of identifying the type of browser  201 , the identifying module  11  will send a reminder message to the electronic device  200  to inform the user that the CPE  100  is incapable of identifying the browser  201 . 
     Step S 135 , a reminder message is sent to inform the user that there is no appropriate language environment that can be used. In the present embodiment, if the language version of the browser  201  is different from any language environment stored in the CPE  100 , the matching module  13  sends a reminder message that there is no appropriate language environment to the electronic device  200 . 
     While certain embodiments have been described and exemplified above, various other embodiments will be apparent to those skilled in the art from the foregoing disclosure. The present disclosure is not limited to the particular embodiments described and exemplified, and the embodiments are capable of considerable variation and modification without departure from the scope of the appended claims.