476043 五、發明說明(1) 發明背景: 本發明係一種可自動測試不同規格鍵盤之方法,係透 過一中央處理單元讀取一待測鍵盤之内含語言代碼,將該 代碼與一記憶體中語系註冊表相比對,而判斷出該待測鍵 盤所屬之國家規格,再由該待測鍵盤上讀取該待測鍵盤所 屬之應用程式介面函數,從函數中該識別出該待測鍵盤之 機種,以及讀取該待測鍵盤所使用之特殊按鍵及功能鍵之 内碼,從該内碼識別出該待測鍵盤之機型,再從記憶體之 數據庫之資料中查找出與該待測鍵盤相對應之測試軟體, 再透過查找出之測試軟體針對該待測鍵盤進行測試。 先前技藝: 按,一般電腦之製造廠,會在電腦出廠前針對該電腦 之鍵盤進行測試,以避免鍵盤在日後使用時發生錯誤,而 一般習用之測試方式,皆係以標準規格之鍵盤測試軟體, 針對待測鍵盤之每一俩按鍵進行測試。 惟,由於鍵盤之種類繁多,不同之國家語言有不同之 規格、不同之按鍵排列順序及不同之按鍵數量,如果以標 準規格之鍵盤測試軟體,對不同種類之鍵盤進行測試,則 將造成該標準規格之測試軟體之鍵盤佈局與待測鍵盤之佈 局不匹配,而產生測試結果錯誤,如此勢必影響到按鍵無 法正常使用。 發明綱要:476043 V. Description of the invention (1) Background of the invention: The present invention is a method for automatically testing keyboards of different specifications. It reads a language code contained in a keyboard under test through a central processing unit, and combines the code with a memory. The language registry is compared, and the country specification to which the keyboard under test belongs is determined, and then the application program interface function to which the keyboard under test belongs is read from the keyboard under test, and the function of the keyboard under test is identified from the function. Model, and read the internal code of the special keys and function keys used by the keyboard under test, identify the model of the keyboard under test from the internal code, and then find out from the data in the memory database Test software corresponding to the keyboard, and then test the keyboard under test through the found test software. Previous skills: Press, the general computer manufacturer will test the keyboard of the computer before it leaves the factory to avoid errors when the keyboard is used in the future, and the commonly used test methods are standard keyboard test software. Test each two keys of the keyboard under test. However, due to the variety of keyboards, different national languages have different specifications, different key arrangements, and different numbers of keys. If you use a standard keyboard test software to test different types of keyboards, the standard will be caused. The keyboard layout of the test software of the specifications does not match the layout of the keyboard under test, resulting in an error in the test results. This will inevitably affect the normal use of the keys. Outline of invention:
第5頁 476043 五、發明說明(2) 有鑑於此, 研究與實驗,終 同規格鍵盤之方 本發明之一 測鍵盤之内含語 語系註冊表相比 格’再由該待測 面函數5從該函 該待測鍵盤所使 識別出該待測鍵 據庫中資料查找 及機型之測試軟 測鍵盤進行測試 為改進習 於開發設 法。 目的,係 言代碼, 對,而判 鍵盤上讀 數中識別 用之特殊 盤之機型 出與該待 體,再透 用之缺點 計出本發 透過 將該 斷出 取該 出該 按鍵 ,嗣 測鍵 過該 ,發明人經過長久努力 明之一種可自動測試不 中央處 代碼 該待 待測 待測 及功 ,再 盤相 查找 與一 測鍵 鍵盤 鍵盤 能鍵 從一 對應 出之 理單元 記憶體 盤所屬 所屬之 之槪種 之内碼 記憶體 之國家 測試軟 先讀 中所 之國 應用 ,以 ,從 所儲 規格 體針 取一待 儲存之 家規 程式介 及讀取 該内碼 存之數 、機種 對該待 為便貴審查委員能對本發明之目的、形狀、構造裝 置特徵及其功效,做更進一步之認識與瞭解,茲舉實施例 配合圖示,詳細說明如下: 詳細說明: 本發明係一種「可自動測試不同規格鍵盤之方法」, 請參閱第一圖所示,其係主要針對筆記型電腦鍵盤之每一 個按鍵進行測試,該方法利用一事先儲存在記憶體中之語 系註冊表及測試軟體數據庫,俾測試鍵盤時,依下列步驟 進行處理:Page 5 476043 V. Description of the invention (2) In view of this, research and experiments have finally achieved the same specifications as the keyboard. One of the present invention is to test the keyboard's built-in language registry. From the letter of the keyboard to be tested, the software test keyboard that identifies the data to be tested and the model in the database of the key to be tested is tested to improve the learning and development methods. The purpose is the dialect code. Yes, the model of the special disk used for identification in the reading on the keyboard is judged to be related to the object, and the disadvantages of re-use are calculated. After the key is pressed, the inventor has long worked to figure out a type that can automatically test the code at the center of the test to be tested and work, and then search for a key with a test keyboard and keyboard keys. The national test of the internal code memory of its own type is tested in the soft-reading country application, so as to take a specification of the home to be stored from the stored specification and read the number and model of the internal code. The review committee members who have been able to further understand and understand the purpose, shape, structural device features and functions of the present invention will be described in detail with reference to the following examples. Detailed description: The present invention is a kind of "Method for automatically testing keyboards of different specifications", please refer to the first figure, which is mainly for testing each key of a notebook computer keyboard. Language-based method using the registry database and a test software previously stored in memory, the keyboard during the test to serve, according to the following processing steps:
476043 五、發明說明(3) (101)首先,透過一中央處理單元(cpu)讀取該待 測鍵盤之内含語言代碼,將該代碼與該記憶體中所儲存之 公認國家語系註冊表相比對,判斷該待測鍵盤是否屬於公 認之國家規格,若判斷出為現有公認之國家規格,則取判 斷出之公認國家規格,並進行步驟(1 0 3 ),否則繼續下 列步驟; (1 0 2 )該中央處理單元讀取該記憶體中所儲存之已註 冊之國豕5吾糸代碼表’透過該代碼表搜尋與該待測鍵盤相 對應之語言代碼,而查找出該待測鍵盤所屬之國家規格; (1 0 3 )該中央處理單元由該待測鍵盤上讀取一該待測 鍵盤所屬之應用程式介面(Application Program Interface 簡稱A P I )函數,從^該函數中(G e t K e y b o a r d476043 V. Description of the invention (3) (101) First, read the language code contained in the keyboard under test through a central processing unit (cpu), and compare the code with the recognized national language registry stored in the memory. Compare and determine whether the keyboard under test belongs to a recognized national standard. If it is determined to be an existing recognized national standard, take the determined recognized national standard and proceed to step (103), otherwise continue with the following steps; (1 0 2) The central processing unit reads the registered country code 5U code table stored in the memory, searches for the language code corresponding to the keyboard under test through the code table, and finds out the keyboard under test National Standards to which it belongs; (103) The central processing unit reads from the keyboard under test a function of the Application Program Interface (API) to which the keyboard under test belongs, from ^ the function (G et K eyboard
Type )識別出該待測鍵盤之機種,而確定該待測鍵盤之機 種; 測鍵盤上讀取該待測鍵 (Programmabled Keys ,從該内碼識別出該待 盤之機型; 出之該待測鍵盤之國家 待測鍵盤之佈局識別編 吕己丨思體所儲存之測試軟 與該待測鍵盤之佈局識 相對應之測試軟體,若 (1 0 4 )該中央處理單元由該待 盤所使用之特殊按鍵(如可編程鍵 ))及功能鍵(Function)之内碼 測鍵盤之機型,而確定出該待測鍵 (105)該中央處理單元由確定 規格、機種及機型之資料,獲得該 號(Layout ID); (1 0 6 )該中央處理單元讀取該 體數據庫,並透過該數據庫中資料 別編號相比對,查找與該待測鍵盤Type) Identify the type of the keyboard to be tested, and determine the type of the keyboard to be tested; Read the Programmabled Keys on the test keyboard, and identify the type of the disk to be tested from the internal code; The keyboard identification of the country under test keyboard layout editor Lu Ji 丨 The test software stored by the thinking body corresponds to the layout of the keyboard under test. If (104) the central processing unit is used by the disk under test Special keys (such as programmable keys)) and function keys (Function) to determine the model of the keyboard, and determine the key to be tested (105) and the central processing unit to determine the specifications, models and model information, Obtain the number (Layout ID); (1 0 6) The central processing unit reads the volume database and compares the data type numbers in the database to find the keyboard that is to be tested
476043 五、發明說明(4) 成功查找出來則進行步驟(1 0 8 ),否則繼續下列步驟; (107)該中央處理單元從該數據庫中選擇使用公認之 測試軟體, (1 0 8 )該中央處理單元透過一顯示器將查找出來之測 試軟體之鍵盤佈局顯示出來,令使用者可由該顯示器上所 顯示之鍵盤佈局,針對該待測鍵盤之每一個按鍵進行測 試。 按,以上所述,僅為本發明最佳之一具體實施例,惟 本發明之構造特徵並不侷限於此,任何熟悉該項技藝者在 本發明領域内,可輕易思及之變化或修飾,皆可涵蓋在以 下本案之專利範圍。476043 V. Description of the invention (4) If the search is successful, proceed to step (108), otherwise continue with the following steps; (107) The central processing unit chooses to use recognized testing software from the database, (1 0 8) the central The processing unit displays the keyboard layout of the found testing software through a display, so that the user can test each key of the keyboard under test from the keyboard layout displayed on the display. According to the above, it is only one of the best specific embodiments of the present invention, but the structural features of the present invention are not limited to this. Any person skilled in the art can easily think of changes or modifications in the field of the present invention. , Can be covered by the patent scope of this case.
第8頁 476043 圖式簡單說明 圖示說明: 第一圖係本發明之流程圖。Page 8 476043 Brief description of the drawings Illustration: The first diagram is a flowchart of the present invention.