1357016 九、發明說明: 【發明所屬之技術領域】 本發明係關於一種地區參數設定方法,特別關於一種 電子裝置之地區參數設定方法。 【先前技術】. 隨著科技的進步,各式各樣的電子產品亦被開發出 來。其中,應用於網際網路的電子產品因網路的普遍更是 成為熱賣商品,例如網路視訊裝置、網路語音裝置、網路 接取裝置等等。藉由這些可連上網路的電子裝置,人們可 遨遊於網路。 當一使用者從商場將這些電子裝置買回家後,可能會 先遇到參數設定的問題。因為這個電子裝置可能是在別的 國家製造,然後運送至本地販賣。然而,因各國或各地區 對於電子裝置的參數都有些不同,特別是在電信規範上, 例如電子裝置之鈴聲頻率、鈴聲電壓、音調頻率或阻抗之. 規範等等。以致當使用者於第一次使用或移往不同國家或 地區使用時,需要先調整電子裝置之設定,然後才能開始 使用。 但是,以電信規範來說,並非每一位使用者都對自己 當地的電信規範非常了解,以致使用者在設定時,常常會 產生困擾。再者,讓使用者以手動方式來設定電子裝置之 參數也造成使用者的不便,因而降低產品的競爭力。 因此,如何提供一種電子裝置之地區參數設定方法, 5 1357016 能夠讓電子裝置依據其所在地區之地區參數而自動設 定,以解決使用者之困擾並提升產品競爭力,實為當前重 要課題之一。 【發明.内容】 有鑑於上述課題,本發明之目的為提供一種讓電子裝 置能夠依據其所在地區之地區參數而自動設定之方法。 緣是,為達上述目的,依據本發明之一種電子裝置之 地區參數設定方法包含取得電子裝置與網際網路溝通之 一介面位址,其中介面位址係一公共位址;查詢出介面位 址所對應之一地區;查詢出電子裝置於該地區之至少一地 區參數,以及依據地區參數設定電子裝置。 承上所述,本發明之一種電子裝置之地區參數設定方 法係取得一用以溝通電子裝置及網際網路之公開的介面 位址。在網際網路上,公共位址皆可查到其對應之地區, 因此本發明之地區參數設定方法能夠自動地依據公開的 介面位址查詢出對應地區並依據對應地區查詢出該地區 之地區參數(例如電信規範)。如此一來,電子裝置便可 依據當地之地區參數自動設定,並取代使用者之手動調整 方式,進而解決使用者之困擾並提升電子裝置之競爭力。 【實施方式】 以下將參照相關圖式,說明依據本發明較佳實施例之 一種電子裝置之地區參數設定方法。 6 1357016 請參照圖1所示,本發明較佳實施例之一種地區參數 設定方法係應用於一可連結於一網際網路INT之電子裝置 11。在本實施例中,電子裝置11係可為一網路接取裝置或 一網路語音裝置。使用者藉由將一終端裝置12連接電子 裝置11,並經由電子裝置11連上網際網路INT,便可與 其他的終端裝置13進行溝通。當然,本實施例之電子裝 置11亦可為本身具有網路接取或網路語音功能之終端裝 置,而不需再與終端裝置12連接。 當使用者使用電子裝置11時,需要對其設定一些地 區參數以利後續使用。在本實例中,所謂的地區參數是指 某些參數會因地區之不同或國家的不同而有不同的規 範,例如電信規範,以電話來說則是鈴聲頻率、鈐聲電壓、 音調頻率或阻抗之規範等等。本實施例之地區參數設定方 法係可讓電子裝置11自行設定地區參數,以解決使用者 以手動方式設定之困擾。 請參照圖2所示,以說明電子裝置如何執行本實施例 之地區參數設定方法。 、 首先,於步驟S1中係取得電子裝置11與網際網路INT 溝通之一介面位址,且介面位址必需為公共位址( Public Address)。於此,介面位址係可為自電子裝置11至網際網 路INT之間所會經過之路由節點之網路位址,例如是電子 裝置11所在的區域網路與網際網路INT連接之路由器、 閘通道等的公共位址。或是介面位址係可為電子裝置11 本身使用之網路協定位址。 7 1357016 在取得為公共位址之介面位址後,就可查詢出介面位 址所對應之一地區(步驟S2);然後再查詢出電子袭置1工 於該地區之至少一地區參數(步驟S3);最後就可依據地 區參數設定電子裝置11 (步驟S4)。 由於所有的公共位址皆由地方機構(例如網路服務供 應商)向 IANA (Internet Assigns Numbers Authority)註1357016 IX. Description of the invention: [Technical field to which the invention pertains] The present invention relates to a method for setting a regional parameter, and more particularly to a method for setting a regional parameter of an electronic device. [Prior Art]. With the advancement of technology, various electronic products have also been developed. Among them, the electronic products applied to the Internet have become popular products due to the popularity of the Internet, such as network video devices, network voice devices, network access devices, and the like. With these electronic devices that can be connected to the Internet, people can travel around the Internet. When a user buys these electronic devices from the mall, they may first encounter the problem of parameter setting. Because this electronic device may be manufactured in another country and then shipped to local sales. However, the parameters of electronic devices vary from country to region, especially in telecommunications specifications, such as ringing frequency, ringing voltage, pitch frequency or impedance of electronic devices. Therefore, when the user uses it for the first time or moves to a different country or region, it is necessary to adjust the settings of the electronic device before starting to use it. However, in terms of telecommunications specifications, not every user has a good understanding of their local telecommunications specifications, so that users often have troubles when setting up. Furthermore, it is also inconvenient for the user to manually set the parameters of the electronic device, thereby reducing the competitiveness of the product. Therefore, how to provide a regional parameter setting method for an electronic device, 5 1357016, can automatically set the electronic device according to the regional parameters of the region in which it is located, so as to solve the user's troubles and enhance the competitiveness of the product, which is one of the current important issues. SUMMARY OF THE INVENTION In view of the above problems, it is an object of the present invention to provide a method for allowing an electronic device to be automatically set according to a region parameter of a region in which it is located. Therefore, in order to achieve the above object, a regional parameter setting method for an electronic device according to the present invention includes obtaining an interface address of an electronic device and an Internet communication, wherein the interface address is a public address; and the interface address is queried. Corresponding to one of the regions; querying at least one regional parameter of the electronic device in the region, and setting the electronic device according to the regional parameter. As described above, the regional parameter setting method of an electronic device of the present invention obtains a public interface address for communicating the electronic device and the Internet. In the Internet, the public address can be found in the corresponding area. Therefore, the regional parameter setting method of the present invention can automatically query the corresponding area according to the published interface address and query the regional parameters of the area according to the corresponding area ( For example, telecommunications specifications). In this way, the electronic device can be automatically set according to the local area parameters, and replace the manual adjustment mode of the user, thereby solving the user's troubles and improving the competitiveness of the electronic device. [Embodiment] Hereinafter, a method of setting a region parameter of an electronic device according to a preferred embodiment of the present invention will be described with reference to the related drawings. 6 1357016 Referring to FIG. 1, a regional parameter setting method according to a preferred embodiment of the present invention is applied to an electronic device 11 connectable to an Internet INT. In this embodiment, the electronic device 11 can be a network access device or a network voice device. The user can communicate with other terminal devices 13 by connecting a terminal device 12 to the electronic device 11 and connecting to the Internet INT via the electronic device 11. Of course, the electronic device 11 of the embodiment can also be a terminal device having a network access or network voice function, and does not need to be connected to the terminal device 12. When the user uses the electronic device 11, it is necessary to set some regional parameters for subsequent use. In this example, the so-called regional parameters mean that certain parameters may have different specifications depending on the region or country, such as telecom specifications, or ringing frequency, click voltage, pitch frequency or impedance by telephone. Specifications and so on. The regional parameter setting method of this embodiment allows the electronic device 11 to set the regional parameters by itself to solve the user's manual setting problem. Please refer to Fig. 2 for explaining how the electronic device performs the regional parameter setting method of the present embodiment. First, in step S1, an interface address of the electronic device 11 and the Internet INT is obtained, and the interface address must be a Public Address. Here, the interface address may be a network address of a routing node that passes between the electronic device 11 and the Internet INT, for example, a router connected to the regional network where the electronic device 11 is located and the Internet INT connection. Public address of the gate, etc. Or the interface address may be a network protocol address used by the electronic device 11 itself. 7 1357016 After obtaining the interface address of the public address, it is possible to query one of the regions corresponding to the interface address (step S2); and then query for at least one regional parameter of the electronic attack 1 work in the region (step S3); Finally, the electronic device 11 can be set according to the regional parameters (step S4). Since all public addresses are addressed to IANA (Internet Assigns Numbers Authority) by local agencies (such as Internet service providers)
冊使用’故每一公共位址皆可視為對應至該地方機構所在 之地區。因此’該對應地區可依據公共位址查詢出。在本Use of the book “Each public address can be considered to correspond to the area where the local institution is located. Therefore, the corresponding area can be queried according to the public address. In this
實施例中,查詢出對應的地區之步驟係可從網際網路INT 之一節點查詢’例如 IANA ( Internet Assigns NumbersIn an embodiment, the step of querying the corresponding region can be queried from one of the Internet INT nodes, such as IANA (Internet Assigns Numbers).
Authority)之網站;亦可從電子裝置n之一位址對照表查 洵。在本貫施例中,位址對照表係内建於電子裝置Η中 並可從網路更新。Authority's website; it can also be checked from the address comparison table of the electronic device n. In the present embodiment, the address mapping table is built into the electronic device and can be updated from the network.
_本貫施例之地區參數係屬於一規範,例如為電信規 祀。電信規範包含對電子裝置11之鈴聲頻率、鈴聲電壓、 曰調頻率或阻抗之設定。在步驟Μ中,查詢出地區參數 驟:系:從網際網路mT之一節點查詢,其申節點可為 地區失^4網路伺服器等等;亦可從電子《置11之一 η中1可從地區參數對絲係_電子裝置 區參=1:區裝f11便能夠自動完成地 而不而使用者以手動方式來設定。 方式。:夫本實施例之步驟S1係有二種取得介面位址之 'w照圖3所示’在第一種方法中,步驟S11係取 1357016 得電子裝置11之一網路協定位址(IP Address) ’然後,步 驟S12係判斷該網路協定位址是否為公共位址。當網路協 定位址為公共位址時,步驟S13係以網路協定位址作為介 面位址。 在網路協定位址第四版(IP v4 )的規定中,每一網路 協定位址係為32位元,每8位元換算成十進位後之格式 例如為61.230.192.25,其係由四組數字組成。其中,網路 協定位址可區分為公共位址及私有位址(Private Address)。公共位址係可以在網際網路上被認知及使用的 位址,而私有位址僅供區域網路使用。私有位址之範圍通 常為 10.0.0.0 〜10.255.255.255 , 172.16.〇.〇 〜 172.31.255.255 以及 192.168.0.0〜192.168.255.255 等等。 通常,私有位址及公共位址之範圍是公開給大眾知道的, 因此步驟S12可將網路協定位址與私有位址或公共位址作 比較,以便決定網路協定位址是否為公共位址。 另外,第二種取得介面位址之方法係為一追溯方式。 在這種情況中,電子裝f u係向上述之網路狀位址之 至少-上齡址追溯,直肋上游位址為公共位址。該公 開之上游位址係作為介面位址。於此需說明的是,此種方 法可在決定電子裝f U之網路協定位址非為公共位址之 後使用。當然’追溯方式亦可在不管網路協定位址是公此 位址或私有紐的情況下❹。另外,在本實施例中需先 給定一目的位址,以便雷早驻罢 电于裝置11能夠藉著朝目的位址 追溯而得到想要的公開上游位址。 1357016 明續參照圖3所示,首先’取得網〜 層的該上游位址,其中N為正整數(步錢址之上N 值為1 ’ _判斷上N層的上游位址 4)’n的初始The regional parameters of this example are part of a specification, such as a telecommunications regulation. The telecommunications specification includes settings for ringtone frequencies, ringing voltages, tuning frequencies, or impedances of the electronic device 11. In the step Μ, the regional parameter is queried: the system node is queried from one of the Internet mT nodes, and the node can be a local network server, etc.; 1 From the regional parameters to the silk system _ electronic device area =1: zone f11 can be automatically completed and not manually set by the user. the way. Step S1 of the present embodiment has two types of interface addresses: "shown in FIG. 3". In the first method, step S11 is to obtain a network protocol address (IP) of the electronic device 11 of 1357016. Address) ' Then, step S12 determines whether the network protocol address is a public address. When the network colocation address is a public address, step S13 uses the network protocol address as the interface address. In the fourth edition of the Network Protocol Address (IP v4), each network protocol address is 32 bits, and the format of each octet converted to decimal is, for example, 61.230.192.25. Four sets of numbers. Among them, the network protocol address can be divided into a public address and a private address (Private Address). A public address is a location that can be recognized and used on the Internet, while a private address is used only for a local area network. The range of private addresses is usually 10.0.0.0 ~ 10.255.255.255, 172.16.〇.〇 ~ 172.31.255.255 and 192.168.0.0~192.168.255.255 and so on. Generally, the range of private addresses and public addresses is publicly known to the public, so step S12 can compare the network protocol address with a private address or a public address to determine whether the network protocol address is a public address. site. In addition, the second method of obtaining the interface address is a traceback method. In this case, the electronic device is traced back to at least the upper-age site of the above-mentioned network-like address, and the upstream address of the straight rib is a common address. The public upstream address is used as the interface address. It should be noted that such a method can be used after determining that the network protocol address of the electronic device is not a public address. Of course, the traceback method can also be used regardless of whether the network protocol address is a public address or a private link. In addition, in the present embodiment, a destination address needs to be given first, so that the device can be traced back to the destination address to obtain the desired public upstream address. Referring to FIG. 3, the first step is to obtain the upstream address of the network layer, where N is a positive integer (the N value is 1 ' above the money address _ the upper address of the upper layer 4 is judged) beginning of
鲁 肆叫當上N層的上游位址為公為,位址(步 的上游位址作為介面位址(步肆S16);時’以上N層 位址並非為公共位址時,將之"N層的上游 回到步驟Sl4以取得網路協定位址之上=h17)再次 址。對應上述,步驟S14至步驟S17之循户層的上游位 出所要之公開的上游位址。.☆可以重覆以找 請參照圖4所示,電子裝置u之目 目的節點N5之位置。在本實施例中,目的?址係代表-一網站(例如www.chinatimes.c〇m),這個^P點N5係可為 過的公共位址。當目的位址確定後,從電、有-s主冊 的節點N5之路由即被決定,且在路由上 '置11到目 由節點Nl〜N4。每一路由節點m〜N4 ς、,、坚過其他的路 =道可為使用於區域網路游: 4疋一網路服務供應商(Internet Service Provider)之 伺服器。 可細在追溯過程中,電子裝置11向目的節點N5追溯,並 ^之過路由節點N1〜N4。當取得其中一路由節點ni〜n4 位址址¥,電子裝置11即判斷所取得之位址是否為公共 略_右疋,則停止追溯過程;若否,則再取得上一層之 :點之位址並判斷是否為公共位址。 田然,在追溯過程中,電子裝置η可以一個接一個 1357016 地取得並判斷路由節點N1〜N4之位址;或者是取得所有 路由節點N1〜N4的位址然後再判斷所取得之位址。 另外,電子裝置11可能會因為區域網路或者網路服 務供應商之伺服器的問題,而無法得到公開之介面位址。 在這種情況,電子裝置11可等待一段時間,然後再次執 行追溯方式。在取得為公共位址之上游位址後,電子裝置 11係將上游位址作為介面位址(步驟S16)。電子裝置11 再依據介面位址查詢出所對應之地區(步驟S2)及地區參 數(步驟S3)。因此,電子裝置11係可依據地區參數自動 設定.(步驟S4)。 綜上所述,本發明之一種電子裝置之地區參數設定方 法係取得一用以溝通電子裝置及網際網路之公開的介面 位址。在網際網路上,公共位址皆可查到其對應之地區, 因此本發明之地區參數設定方法能夠自動地依據公開的 介面位址查詢出對應地區並依據對應地區查詢出該地區 之地區參數(例如電信規範)。如此一來,電子裝置便可 依據當地之地區參數自動設定,並取代使用者之手動調整 方式,進而解決使用者之困擾並提升電子裝置之競爭力。 以上所述僅為舉例性,而非為限制性者。任何未脫離 本發明之精神與範疇,而對其進行之等效修改或變更,均 應包含於後附之申請專利範圍中。 【圖式簡單說明】 圖1為依據本發明較佳實施例之地區參數設定方法 11 1357016 中,電子裝置與網際網路連接之示意圖; 圖2為依據本發明較佳實施例之電子裝置之地區參數 設定方法之流程圖; 圖3為依據本發明較佳實施例之電子裝置之.地區參數 設定方法中取得介面位址之流程圖;以及 圖4為依據本發明較佳實施例之地區參數設定方法 中,電子裝置及路由節點之示意圖。 【主要元件符號說明】 11 電子裝置 12 ' 13 終端裝置 INT 網際網路^ N1 〜N4 路由節點 N5 目的節點 S1〜S4、S11〜S17 地區參數設定方法之步驟Lu Xun called the upstream address of the N layer as the public, the address (the upstream address of the step as the interface address (step S16); when the above N layer address is not the public address, it will be The upstream of the N layer returns to step S14 to obtain the address of the network protocol address = h17). Corresponding to the above, the upstream address of the desired disclosure is located upstream of the subscriber layer of steps S14 to S17. .☆ Can be repeated. Please refer to Figure 4 for the location of the destination node N5 of the electronic device u. In this embodiment, the purpose? The site is represented by a website (for example, www.chinatimes.c〇m), and this ^P point N5 is a public address that can be used. After the destination address is determined, the route from the node N5 with the -s main book is determined, and the route is set to the destination node N1~N4. Each routing node m~N4 ς,,, and other paths can be used for the area network tour: 4. The Internet Service Provider server. In the traceback process, the electronic device 11 traces back to the destination node N5 and passes through the routing nodes N1 N N4. When one of the routing nodes ni~n4 address is obtained, the electronic device 11 determines whether the obtained address is a public_right, then the traceback process is stopped; if not, the upper layer is obtained: Address and determine if it is a public address. Tian Ran, in the traceback process, the electronic device η can obtain and judge the addresses of the routing nodes N1 N N4 one by one, or obtain the addresses of all the routing nodes N1 N N4 and then determine the obtained address. In addition, the electronic device 11 may not be able to obtain a public interface address due to a problem with the local area network or the server of the network service provider. In this case, the electronic device 11 can wait for a while and then perform the traceback method again. After obtaining the upstream address of the public address, the electronic device 11 uses the upstream address as the interface address (step S16). The electronic device 11 then queries the corresponding region (step S2) and the region parameter based on the interface address (step S3). Therefore, the electronic device 11 can be automatically set in accordance with the regional parameters (step S4). In summary, the local parameter setting method of an electronic device of the present invention obtains a public interface address for communicating the electronic device and the Internet. In the Internet, the public address can be found in the corresponding area. Therefore, the regional parameter setting method of the present invention can automatically query the corresponding area according to the published interface address and query the regional parameters of the area according to the corresponding area ( For example, telecommunications specifications). In this way, the electronic device can be automatically set according to the local area parameters, and replace the manual adjustment mode of the user, thereby solving the user's troubles and improving the competitiveness of the electronic device. The above is intended to be illustrative only and not limiting. Any equivalent modifications or alterations to the spirit and scope of the present invention are intended to be included in the scope of the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram showing an electronic device connected to an Internet in a regional parameter setting method 11 1357016 according to a preferred embodiment of the present invention; FIG. 2 is an area of an electronic device according to a preferred embodiment of the present invention. FIG. 3 is a flow chart of obtaining an interface address in a regional parameter setting method of an electronic device according to a preferred embodiment of the present invention; and FIG. 4 is a regional parameter setting according to a preferred embodiment of the present invention. In the method, a schematic diagram of an electronic device and a routing node. [Description of main component symbols] 11 Electronic device 12 ' 13 Terminal device INT Internet ^ N1 ~ N4 routing node N5 Destination node S1 to S4, S11 to S17 Regional parameter setting method steps