TWI306214B - - Google Patents

Download PDF

Info

Publication number
TWI306214B
TWI306214B TW94117111A TW94117111A TWI306214B TW I306214 B TWI306214 B TW I306214B TW 94117111 A TW94117111 A TW 94117111A TW 94117111 A TW94117111 A TW 94117111A TW I306214 B TWI306214 B TW I306214B
Authority
TW
Taiwan
Prior art keywords
segment
test
offset
mouse
data
Prior art date
Application number
TW94117111A
Other languages
Chinese (zh)
Other versions
TW200641677A (en
Inventor
Huai Liang Ding
Hsuan Tung Chen
Win Harn Liu
Original Assignee
Inventec Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to TW094117111A priority Critical patent/TW200641677A/en
Publication of TW200641677A publication Critical patent/TW200641677A/en
Application granted granted Critical
Publication of TWI306214B publication Critical patent/TWI306214B/zh

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

1306214 • 九、發明說明: • 【發明所屬之技術領域】 本發明係關於一種電腦系統設備的測試方法,尤其關於一種 在磁盤操作系統(DOS)下測試第二代個人電腦(Personal System/2 ; PS2)設備的方法。 ' 【先前技術】 滑鼠、鍵盤是電腦周邊設備中極其重要的位置標定與專案選 Ψ 取工具’其功能好壞直接影響電腦運用的便利性,因此每台電腦 在出廠前,這些周邊設備的可靠性的驗定顯得尤爲重要。 ps2滑鼠是當 今筆記本電腦上較流行的設備,目前筆記本電 腦上的touchpad設備歸根到底是ps2滑鼠設備的變種、一般情況 下測試ps2滑鼠需要安裝驅動,在dos下稱爲TSR程式。 測試滑鼠設備時’當滑鼠設備產生中斷,驅動依賴掃描(scall) 方式不停的調用bios中斷最先得到測試需要的資訊,然後系統中 • 的處理函數根據這些資訊獲得滑鼠在中斷處的狀態數據,設備測 試程式依照這些數據在螢幕上繪製滑鼠設備圖,進行測試。第1 圖所示爲先前技術系統記憶體的示意圖,其中包括三個部分,分 . 別爲驅動、測試程式(包括處理函數和設備測試程式)和bios。 _ 雖然這種測試方法能夠滿足我們測試滑鼠的需要,但是卻是 以犧牲記憶體空間為代價,況且DOS下可以支配的記憶體本來就 有限(小於1M),如果被它再佔用-部分的話,將造成其他程式的 使用記憶體減少,降低了其他程式的運行速度,將造成巨大 Ί306214 « 年丨)外日§0正替換頁 .的貢源浪費。另外,每種機型的驅動程式都有些差別,這種測試 方法不利於用戶測試程式的編寫,既浪費財力物力也給蜊試帶來 不必要的麻煩。因此,業界急需一種不受硬體限制並能相容多種 系統的測試方法。 【發明内容】 鑒於以上的問題,本發明的主要目的在於提供—種不受硬體 限制並能相容多種系統的個人電腦系統的測試方法。 • 本發明所揭露之一種在磁碟作業系統(D0S)下測試第二代個 人電腦系統(Personal System/2 ; PS2)之設備的方法,將預先定義之 一測試程式串接到一系統服務中斷副程式以進行測試,包括下列 步驟·執行該系統服務中斷副程式並轉化執行該測試程式;獲取 該測試程式的一偏移量與一段址;根據該偏移量與該段址構造一 中斷位置;依據該測試程式儲存該設備之一位移舆/或狀態數據至 一堆:态中,及返回該中斷位置並顯示該堆疊器之該位移與,/或狀 | 態數據。 本發明通過DOS下的一種中斷調用im丨5將處理程式與中斷 聯係起來’當設備產生中斷時,它就會轉入事先定義處理程式對 時間響應,程式從堆疊中找到所需要的數值,包括滑鼠的左右鍵 或者鍵盤的某個鍵是否按下等資訊,從而在螢幕上顯示測試者剛 才所做的操作,達到測試目的。並且本發明滑鼠測試方法不受硬 體限制’可適用於多種滑鼠設備,例如pS2滑鼠設備及與之相似 的 OHCI(Open Host Controller Interface) USB 設備,避免了 每種機 6 1306214 ^^^**"*"*“ __Ί 1«^.说一、„r r-mMUM '#ΠΙ|0/Ε.替換瓦 型使用不關驅_給職帶來的義,_這 欲-: :二都可自己對自己的電—,進嫌^ 相:為出礙的最後檢測程式。 ’''、 施例詳細 有關本發明的特徵與實作,茲配合圖式作最佳 明如-ρ。 【實施方式】 以下舉出具體實施例以詳細說明本發明之内容,1306214 • Nine, invention description: • Technical field of the invention The present invention relates to a test method for a computer system device, in particular to a second generation personal computer (Personal System/2; PS2) Method of the device. [Prior Art] The mouse and keyboard are extremely important position calibration and project selection tools in the computer peripherals. The function of the tool directly affects the convenience of the computer. Therefore, each computer is shipped from the factory. The verification of reliability is particularly important. The ps2 mouse is a popular device on today's laptops. At present, the touchpad device on the notebook computer is a variant of the ps2 mouse device. In general, the ps2 mouse needs to be installed with the driver, and it is called the TSR program under the dos. When testing the mouse device, 'When the mouse device generates an interrupt, the driver relies on the scall method to continuously call the bios interrupt to get the information needed for the test first, and then the handler in the system gets the mouse at the interrupt according to the information. The status data, the device test program draws the mouse device map on the screen according to the data, and tests. Figure 1 shows a schematic diagram of the prior art system memory, which consists of three parts, divided into drivers, test programs (including handlers and device test programs), and bios. _ Although this test method can meet the needs of our test mouse, but at the expense of memory space, and the memory that can be dominated by DOS is limited (less than 1M), if it is reoccupied - part of it Will reduce the memory usage of other programs, reduce the running speed of other programs, will cause huge Ί 306214 « years 丨) outside the day § 0 is replacing the page. In addition, there are some differences in the drivers of each model. This test method is not conducive to the user's test program writing, which wastes financial resources and unnecessary troubles. Therefore, there is an urgent need in the industry for a test method that is not limited by hardware and is compatible with a variety of systems. SUMMARY OF THE INVENTION In view of the above problems, it is a primary object of the present invention to provide a test method for a personal computer system that is not limited by hardware and that is compatible with a variety of systems. • A method for testing a second generation personal computer system (Personal System/2; PS2) device under a disk operating system (D0S) according to the present invention, which serializes one of the predefined test programs to a system service interrupt a subroutine for testing, comprising the steps of: executing the system service interrupt subroutine and converting the execution of the test program; obtaining an offset and a segment of the test program; and constructing an interrupt location according to the offset and the segment address According to the test program, one of the device's displacement 舆/or status data is stored in a stack: state, and the interrupt position is returned and the displacement and/or state data of the stacker is displayed. The invention associates the processing program with the interrupt by an interrupt call im丨5 under DOS. When the device generates an interrupt, it will transfer to the predefined processing program to respond to the time, and the program finds the required value from the stack, including The left and right keys of the mouse or whether a key of the keyboard is pressed or not, so that the tester just performed the operation on the screen to achieve the test purpose. Moreover, the mouse test method of the present invention is not limited by hardware', and can be applied to a variety of mouse devices, such as a pS2 mouse device and a similar OHCI (Open Host Controller Interface) USB device, avoiding each machine 6 1306214 ^^ ^**"*"*" __Ί 1«^. Say one, „r r-mMUM '#ΠΙ|0/Ε. Replace the tile type use is not the drive _ to bring the meaning of the job, _ this desire - : : The second can be their own electricity -, it is suspected ^ phase: the last detection program for the trouble. DETAILED DESCRIPTION OF THE INVENTION The features and implementations of the present invention are best described in conjunction with the drawings as -ρ. [Embodiment] Hereinafter, specific embodiments will be described in detail to explain the contents of the present invention.

亚以圖式作 马輞助說明。說明中提及之符號係參照圖式符號。 試第二代個人 本發明所述之 中斷副程式以 第2圖所示係本發明磁盤操作系統(D0S)下蜊 電腦設備(Personal System/2 ; PS2)的方法的流程圖。 方法需將預先定義之一測試程序串接到一系統服務 進行測試,之後如第2圖所示,包括下述步驟: 步驟301 :執行系統服務中斷副程式並轉化執行測試輕产· 步驟303 ·獲取測5式私序的一偏移量與一段址; 步驟305 :根據偏移量與段址構造一中斷位置; 步驟307 :依據测試程序儲存設備之一位移與/或狀雜、攀於空 一堆疊器中;及 步驟309 :返回該中斷位置並顯示堆疊器之位移與/或狀能 據。 依照本發明所述之方法,可實現無需驅動而對PS2的周邊抓 備進行測試,爲了更明確的解釋本發明,以下實施例將詳細才、 本發明的應用。 •1306214 第3圖所示係本發明在磁盤操作系統(DOS)下刿執第_代個 人電腦設備(Personal System/2 ; PS2)的方法第一實施例的济浐备 請參照第3圖,在本實施例中本發明係滑鼠設備的測試方泠 通過調用INT 15將中斷處理凼數的句柄存儲在通用寄存器二卩、力' 段寄存〶f 備產生硬巾~時直接刺巾斷處理函數, 該方法包括以下步驟: Μ 步驟501:初始化; 步驟5㈤:利用獲得控制碼的偏移地址(Fp 〇ff)和 碼祕刪即―_獲得中斷處理函數的地址1將之喻= 用岢存器(bx)和附加段寄存器(eg).; 步驟505:利用intl5將將要處理的 曰Μ王武锝化成中斷虡理尿勃. 步驟5〇7 ··當職設備產生硬中 、㈡數, ^ J T k斤處理函鸯獾、-$ 乳在此處中斷的γ 鼠在中斷處的各項數據,包括從堆叠中讀取滑〇〜後取,骨 軸位移、X軸位移和按鍵狀態; 步驟:中斷處理函數恢復現場返回 、 備測試程式已經#得滑鼠在此巾斷處的錄.㈣位通知設 步驟511:設備測試程式根據記㈣= .示滑鼠設備仿真圖標以實時顯示卷 步驟513 :設備測試程式彳盾環 步驟515,若否則繼續等待;及 步驟515:設備測試程式判斷野應鍵 顯示滑鼠設備仿真圖標以會拄二』,乂 &amp; 1呆存的數據在螢幕上 則的測試操作; 寺待是否有键按下,若是執行 ,調用int 15的目的是爲了將處理 其中 是否在螢幕上變色。 滑鼠設備中斷的函數 j3〇62l4 %年丨沐 I .替換買丨 ^祕觀函數控制碼權限以後,如果有滑氣 本發明第二^^ ^ ^相場麵人巾嗔理函數。 實施例她,^施舰獅権職方法,本實棚與第— 的按鍵狀態和所獲得的是鍵盤糊處 在養幕増鍵盤糊_軸麵存的數據 佔用^難用只扣種,如第4圖獅,分別為^ 制碼製作㈤,私(包括處顧數、設_m程式及函數控 先前技峨測試程式非常小巧,所佔空間遠小於 双1τ丁曰7展動所佔的空間, 體,保證了其他程式的使羯體/來就有限的記憶 本發明通過DOS下的一獐ψ磨ρ闽田. 聯係起來,者W Λ _用购將處理程式與中斷 時門乡^ “遍生中啊,它就會轉人事先絲處理程式對 二= 式從堆疊中找猶要的數值,包刪 计/是否按下等資訊,從而在螢幕上顯抑m者剛 1所做的操作,__目的。並且本發 體限制’可適用於多種滑鼠設備,例如ps2滑鼠設備二 ^ 〇HCl(〇pen H〇st c〇ntr〇ller Interface) υ§Β ^ 讀用不同的驅動程式給測試帶來醜煩,利用這種測試任何: 而用戶都可自己對自己的電腦t〇u麵廿進行測試,同時也可以 爲產品出廠的最後檢測程式。 &quot; 雖然本發明以前述之較佳實施例揭露如上,然其並非用以限 1306214 =本《,任何熟f相像技藝者5在不脫離本發明之精神圍 内1可作些許之更動無飾,因此本發明之專利保護範: 本說明書賴之_請專利範騎界定者解。 、 【圖式簡單說明】 第1圖所示爲先前技術系統記憶體的示意圖。 第2圖所示係本發明在磁盤操作系統下測試第二代個人電腦 設備的方法的流程圖。 第3圖所示係本發明在磁盤操作系統下測試第二代個人電腦 設備的方法的第一實施例的流程圖。 第4圖所示為本發明在磁盤操作系統下測試第二代個人電腦 設備的方法的系統記憶體的示意圖。 【主要元件符號說明】Ya is a picture of the horse. The symbols mentioned in the description refer to the schema symbols. USE OF SECOND GENERATION INDIVIDUAL The interrupt subroutine of the present invention is a flow chart showing a method of downloading a computer device (Personal System/2; PS2) by the disk operating system (D0S) of the present invention as shown in Fig. 2. The method needs to connect one of the predefined test programs to a system service for testing, and then, as shown in FIG. 2, the following steps are included: Step 301: Execute the system service interrupt subroutine and convert the execution test light production. Step 303 Obtaining an offset of the 5-type private sequence and a segment of the address; Step 305: Constructing an interrupt position according to the offset and the segment address; Step 307: According to the test program, one of the storage devices is displaced and/or miscellaneous Empty in a stacker; and step 309: return to the interrupted position and display the displacement and/or shape energy of the stacker. According to the method of the present invention, it is possible to test the peripheral pickup of the PS2 without driving. In order to explain the present invention more clearly, the following embodiments will be described in detail for the application of the present invention. • 1306214 Fig. 3 shows a method for implementing the first generation personal computer device (Personal System/2; PS2) under the disk operating system (DOS) according to the first embodiment of the present invention. In the present embodiment, the test method of the mouse device of the present invention stores the handle of the interrupt processing parameter by calling INT 15 in the general-purpose register, and the force is stored in the hard disk. Function, the method comprises the following steps: Μ Step 501: Initialization; Step 5 (5): Using the offset address (Fp 〇 ff) of the obtained control code and the code secret to delete the address of the interrupt processing function is obtained. Storing (bx) and additional segment register (eg).; Step 505: Using intl5 to turn the 锝王武锝 to be processed into an interrupted diarrhea. Step 5 〇 7 ·· The current equipment generates hard, (two), ^ JT k kg processing function, -$ milk data interrupted here γ mouse at the interruption of the data, including reading from the stack slip ~ post, bone axis displacement, X axis displacement and button status; : interrupt handler to restore the scene return, prepare the test program has been #了鼠标The recording of the towel break. (4) bit notification step 511: the device test program according to the record (4) = . Show the mouse device simulation icon to display the volume in real time Step 513: Device Test Program 彳 Shield Ring Step 515, if otherwise continue to wait; Step 515: The device test program determines that the wild key is displayed on the mouse device emulation icon to be 拄2, 乂&amp; 1 the data remaining on the screen is tested; the temple waits for a key press, if executed, invokes The purpose of int 15 is to handle whether it is discolored on the screen. The function of the mouse device interrupt j3〇62l4 %年丨沐 I. Replacement buy 丨 ^ Secret view function control code authority, if there is slippery, the second ^^ ^ ^ phase scene of the invention. The example of her, ^ Shishi lion dereliction method, the actual shed and the first button state and the obtained keyboard paste in the curtain 増 keyboard paste _ axis storage data occupation ^ difficult to use only deducted, such as Figure 4, lion, respectively, ^ code production (5), private (including the number of points, set _m program and function control previous technical test program is very small, occupying much less space than the double 1τ Ding 曰 7 exhibition Space, body, guarantees the memory of other programs to make the body / come to a limited memory. The invention through the DOS under a 闽 闽 闽 .. Contact, W Λ _ use the processing program and interrupt the door town ^ "In the middle of life, it will be transferred to the pre-wire processing program for the second = type to find the value of the stack from the stack, the package deletion / whether to press the information, etc., so that the screen is displayed on the screen. Operation, __ purpose. and the present body limitation 'is applicable to a variety of mouse devices, such as ps2 mouse device II 〇 HCl (〇pen H〇st c〇ntr〇ller Interface) υ§Β ^ read different The driver brings ugly test to the test, using this test for any: and the user can himself tweeted on his own computer The test can be carried out at the same time as the final test program of the product. <RTIgt; Although the present invention is disclosed above in the preferred embodiment, it is not limited to 1306214=本》, any skilled f-image artist 5 does not leave The spirit of the present invention can be modified to be somewhat untouched. Therefore, the patent protection of the present invention is as follows: The specification is based on the definition of the patent, and the simple description of the figure is shown in the first figure. Schematic diagram of the memory of the technical system. Figure 2 is a flow chart showing the method of testing the second generation personal computer device under the disk operating system of the present invention. Fig. 3 shows the second generation of the invention under the disk operating system. A flowchart of a first embodiment of a method of a personal computer device. Fig. 4 is a schematic diagram showing a system memory of a method for testing a second generation personal computer device under a disk operating system according to the present invention.

2020

Claims (1)

•Ί306214•Ί306214 十、申請專利範圍: 1. 一種在磁碟作業系統(DOS)下測試第二代個人電腦系統 (Personal System/2 ; PS2)之設備的方法,將預先定義之一測試 程序串接到一系統服務中斷副程式以進行測試,包括下列步 驟: 執行該系統服務中斷副程式並轉化執行該測試程序; 獲取該測試程序的一偏移量與一段址; 根據該偏移量與該段址構造一中斷位置; 依據該測試程序儲存該設備之'位移與/或狀悲數據至一 堆疊器中;及 返回該中斷位置並顯示該堆疊器之該位移與/或狀態數據。 2. 如申請專利範圍第1項所述的方法,其中該系統服務中斷副程 式係為INT 15。 3. 如申請專利範圍第1項所述的方法,其中該偏移量係透過控制 碼的偏移地址FP_OFF函數獲取並暫存至一通用暫存器中。 4. 如申請專利範圍第1項所述的方法,其中該段址係透過控制碼 的段地址FP_SEG函數設置並暫存至一附加段暫存器中。 5. 如申請專利範圍第1項所述的方法’其中該設備為一滑鼠或一 鍵盤。 6. 如申請專利範圍第5項所述的方法,其中該位移數據係指該滑 鼠的X軸及Y轴的位移數據。 7. 如申請專利範圍第5項所述的方法,其中該狀態數據係指該滑 :UU6214 乃 既或該鍵盤的按鍵狀態數據。 8.如申請專機mi項所述的方法,財 … )不錢備的一仿真圖標以實時顯示當前的測試操作/社、'員 •如申请專利範圍第1項所盖的方法,其中更適用OHCI周邊設 備。X. Patent application scope: 1. A method for testing a second-generation personal computer system (Personal System/2; PS2) device under a disk operating system (DOS), connecting one of the predefined test programs to a system The service interrupts the subroutine for testing, including the following steps: executing the system service interrupt subroutine and converting the execution of the test program; obtaining an offset and a segment of the test program; constructing a segment according to the offset and the segment address Interrupting position; storing the 'displacement and/or sadness data of the device into a stacker according to the test program; and returning the interrupted position and displaying the displacement and/or status data of the stacker. 2. The method of claim 1, wherein the system service interruption subroutine is INT 15. 3. The method of claim 1, wherein the offset is obtained by a control code offset address FP_OFF function and temporarily stored in a general purpose register. 4. The method of claim 1, wherein the segment is set and temporarily stored in an additional segment register by a segment address FP_SEG function of the control code. 5. The method of claim 1, wherein the device is a mouse or a keyboard. 6. The method of claim 5, wherein the displacement data is displacement data of the X-axis and the Y-axis of the mouse. 7. The method of claim 5, wherein the status data refers to the slide: UU6214 is the key state data of the keyboard or the keyboard. 8. If you apply for the method described in the mi item, you can use the emulation icon to display the current test operation/social, 'members', as described in the first paragraph of the patent application, which is more applicable. OHCI peripheral equipment.
TW094117111A 2005-05-25 2005-05-25 Method for testing second generation personal computer system under the disk operating system TW200641677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW094117111A TW200641677A (en) 2005-05-25 2005-05-25 Method for testing second generation personal computer system under the disk operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW094117111A TW200641677A (en) 2005-05-25 2005-05-25 Method for testing second generation personal computer system under the disk operating system

Publications (2)

Publication Number Publication Date
TW200641677A TW200641677A (en) 2006-12-01
TWI306214B true TWI306214B (en) 2009-02-11

Family

ID=45071330

Family Applications (1)

Application Number Title Priority Date Filing Date
TW094117111A TW200641677A (en) 2005-05-25 2005-05-25 Method for testing second generation personal computer system under the disk operating system

Country Status (1)

Country Link
TW (1) TW200641677A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615512A (en) * 2013-11-05 2015-05-13 英业达科技有限公司 System and method for executing target program executed by PNST (Power On Self Test) by Interrupt

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615512A (en) * 2013-11-05 2015-05-13 英业达科技有限公司 System and method for executing target program executed by PNST (Power On Self Test) by Interrupt

Also Published As

Publication number Publication date
TW200641677A (en) 2006-12-01

Similar Documents

Publication Publication Date Title
US6326985B1 (en) Display apparatus and method for controlling the same
TWI599877B (en) Method for reading complete kernel log when kernel panic takes place in operating system
US20090031227A1 (en) Intelligent screen capture and interactive display tool
US6259432B1 (en) Information processing apparatus for improved intuitive scrolling utilizing an enhanced cursor
JP5603945B2 (en) Calculation system using visual clipboard
TWI480802B (en) Platform system, universal extension firmware interface Basic input and output system Support for hardware configuration changes, recording media and computer program products
US20080209443A1 (en) Apparatus and method for displaying process operation
KR100711913B1 (en) Method for securing data stored in hard discs of a computer system
JP6134860B2 (en) Multiple displays for displaying workspaces
US20070288937A1 (en) Virtual Device Driver
US20130057572A1 (en) Multiple Display Device Taskbars
TW201222361A (en) Resolving merged touch contacts
CN103635873A (en) Touch operation processing method and terminal device
US7412661B2 (en) Method and system for changing visual states of a toolbar
TW201044272A (en) Parallel processing method for a dual operating system
TWI401604B (en) System and method for managing system management interrupts in a multiprocessor computer system
US20100238123A1 (en) Input Device Gesture To Generate Full Screen Change
CN112000563A (en) User behavior recording method, device and equipment
JP2009169480A (en) Technique for supporting user data input
US20130201107A1 (en) Simulating Input Types
TWI285319B (en) Method, device and system to issue message signaled interrupts
MXPA06013949A (en) Computer aided design interface .
JP2004086735A (en) Electronic device and operating mode switching method
US8886962B2 (en) Systems and methods for disk encryption with two keys
JP5532317B2 (en) Data structure of image formation control program, image formation program, and image formation setting information

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees