TWI381176B - Apparatus and method for testing electronic apparatus - Google Patents
Apparatus and method for testing electronic apparatus Download PDFInfo
- Publication number
- TWI381176B TWI381176B TW97147319A TW97147319A TWI381176B TW I381176 B TWI381176 B TW I381176B TW 97147319 A TW97147319 A TW 97147319A TW 97147319 A TW97147319 A TW 97147319A TW I381176 B TWI381176 B TW I381176B
- Authority
- TW
- Taiwan
- Prior art keywords
- button
- script file
- analog
- testing
- tested
- Prior art date
Links
Description
本發明涉及一種電子裝置測試裝置及測試方法。 The invention relates to an electronic device testing device and a testing method.
在電子裝置生產完後,需對其相應的功能進行測試,以判斷電子裝置是否能正常執行相應的功能,從而保證出產的電子裝置能夠正常使用。而現有的測試方法是電腦執行記錄按鍵命令的腳本檔案,發送按鍵命令至待測電子裝置。待測電子裝置根據所接收的按鍵命令確定導通與按鍵命令相對應的按鍵,執行相應的功能。這種測試方法需要待測電子裝置內置根據按鍵命令選擇導通相應的按鍵的程式。而通常在電子裝置測試正常待出貨時,必須卸載上述內置的程式。如此,當生產的電子裝置數量比較大時,操作十分麻煩,嚴重影響測試效率。 After the electronic device is produced, it is required to test its corresponding function to determine whether the electronic device can perform the corresponding function normally, thereby ensuring that the produced electronic device can be used normally. The existing test method is that the computer executes a script file for recording a button command and sends a button command to the electronic device to be tested. The electronic device to be tested determines to turn on the button corresponding to the button command according to the received button command, and performs a corresponding function. This test method requires a program built into the electronic device to be tested to select and turn on the corresponding button according to the button command. Usually, when the electronic device test is normally shipped, the built-in program must be uninstalled. Thus, when the number of electronic devices produced is relatively large, the operation is very troublesome and seriously affects the test efficiency.
本發明的目的在於提供一種電子裝置測試裝置及測試方法,以解決上述技術存在的問題。 An object of the present invention is to provide an electronic device testing device and a testing method for solving the problems of the above technology.
該電子裝置測試裝置包括一測試控制單元、一記憶體及一顯示螢幕,該測試裝置還包括:一類比按鍵板驅動模組,具有一插槽,用於插入不同類型的類比按鍵板,其中,每一類比按鍵板具有一識別碼,每一類型的類比按鍵板對應一類型的待測裝置,以及每一類比按鍵板上具有與對應的待測裝置上按鍵數量相同的電氣通路,每一電氣通路與待測裝置上一對應的按鍵相連通;該記憶體用於存儲一測試項目對應表及對各待測裝置進行測試用 的腳本檔案,該測試項目對應表記錄了每一類型的類比按鍵板的識別碼與對各待測裝置進行測試用的腳本檔案代碼的對應關係,該腳本檔案為多個按鍵命令的集合;該測試控制單元包括:一識別碼讀取模組,用於讀取該類比按鍵板驅動模組上插入的類比按鍵板的識別碼;一測試腳本檔案確定模組,用於根據所讀取的識別碼從該記憶體存儲的測試項目對應表中確定對待測裝置進行測試用的腳本檔案的代碼;以及一測試腳本檔案執行模組,用於調用並執行所獲取的腳本檔案代碼對應的腳本檔案,按照腳本檔案上記錄按鍵命令的順序發送按鍵命令至該類比按鍵驅動模組;該類比按鍵驅動模組還用於識別所發送的按鍵命令,確定導通該類比按鍵板上與按鍵命令對應的所述電氣通路,使得與該電氣通路連通的該待測裝置的按鍵產生該按鍵命令對應的按鍵訊號。 The electronic device testing device includes a test control unit, a memory and a display screen. The test device further includes: an analog keyboard driver module having a slot for inserting different types of analog keyboards, wherein Each type of keypad has an identification code, each type of analog keypad corresponds to a type of device to be tested, and each type of keypad has the same electrical path as the number of buttons on the corresponding device under test, each electrical The path is connected to a corresponding button on the device to be tested; the memory is used for storing a test item correspondence table and testing the device to be tested a script file, the test item correspondence table records a correspondence between an identification code of each type of analog keyboard and a script file code for testing each device to be tested, the script file being a set of a plurality of key commands; The test control unit includes: an identification code reading module for reading an identification code of the analog keyboard inserted in the analog keyboard driving module; and a test script file determining module for identifying according to the reading a code for determining a script file for testing the device to be tested from the test item correspondence table stored in the memory; and a test script file execution module for calling and executing the script file corresponding to the acquired script file code, Sending a button command to the analog button driver module in the order of recording a button command on the script file; the analog button driver module is further configured to identify the sent button command, and determine to turn on the analog button board corresponding to the button command An electrical path, such that a button of the device under test communicating with the electrical path generates a button signal corresponding to the button command
該電子裝置測試方法,提供一記憶體,用於存儲一測試項目對應表及對各待測裝置進行測試用的腳本檔案,該測試項目對應表記錄了每一類型的類比按鍵板的識別碼與對各待測裝置進行測試用的腳本檔案代碼的對應關係,該腳本檔案為多個按鍵命令的集合,該測試方法包括步驟:讀取一類比按鍵板的識別碼;根據所讀取的識別碼在該測試項目對應表中確定對待測裝置進行測試用的腳本檔案的代碼;調用並執行所述腳本檔案代碼對應的腳本檔案,按照腳本檔案記錄按鍵命令的順序發送按鍵命令;以及識別所發送的按鍵命令,以確定導通該類比按鍵板上與該按鍵命令對應的一電氣通路,使得與該電 氣通路連通的該待測裝置的按鍵產生該按鍵命令對應的按鍵訊號。本發明提供的電子裝置測試裝置及方法,能夠自動識別待側裝置的類型,並從存儲的測試用的腳本檔案中調用並執行與待測裝置對應的腳本檔案,發送按鍵命令,以導通類比按鍵板上與按鍵命令對應的一電氣通路使待測裝置執行相應的功能。 The electronic device testing method provides a memory for storing a test item correspondence table and a script file for testing each device to be tested, and the test item correspondence table records the identification code of each type of analog keyboard Corresponding relationship between script file codes for testing each device to be tested, the script file being a set of a plurality of key commands, the test method comprising the steps of: reading an identification code of an analog keyboard; according to the read identification code Determining, in the test item correspondence table, a code of a script file for testing the device to be tested; calling and executing a script file corresponding to the script file code, sending a button command in the order of the script file record button command; and identifying the sent command Pressing a command to determine to turn on an electrical path corresponding to the button command on the analog keyboard, so that the electrical The button of the device to be tested connected to the gas passage generates a button signal corresponding to the button command. The electronic device testing device and method provided by the invention can automatically identify the type of the device to be side, and call and execute a script file corresponding to the device to be tested from the stored script file for testing, and send a button command to turn on the analog button. An electrical path on the board corresponding to the button command causes the device under test to perform a corresponding function.
使用本發明之測試裝置及測試方法,每台待測試的電子裝置在測試時都不需要內置根據按鍵命令確定導通相應的按鍵的程式,如此,在測試正常後,也不需要卸載上述內置的程式,能夠大大提高測試效率。 By using the testing device and the testing method of the present invention, each electronic device to be tested does not need to have a built-in program for determining the corresponding button according to the button command during the test, so that after the test is normal, the built-in program does not need to be uninstalled. Can greatly improve the test efficiency.
請參考圖1,為本發明一實施方式下電子裝置測試系統的架構圖。 Please refer to FIG. 1 , which is a structural diagram of an electronic device testing system according to an embodiment of the present invention.
該測試系統包括一測試裝置10、一連接器20及一待測裝置30。該測試裝置10包括一類比按鍵板驅動模組101及一測試控制單元102。該測試控制單元102包括一個或多個處理單元。該類比按鍵板驅動模組101與該測試控制單元102通過通用輸入/輸出(General Purpose Input Output,GPIO)埠連接。該類比按鍵板驅動模組101上有一插槽,用於插入不同類型的類比按鍵板1010。不同類型的待測裝置30需要不同類型的類比按鍵板1010,每一類型的類比按鍵板1010上有與對應的待測裝置30上按鍵的數量相同的電氣通路。每一類型的類比按鍵板1010還有一識別碼。該連接器20用於將該類比按鍵板驅動模組101上的類比按鍵板1010與該待測裝置30上的按鍵板進 行連接,該類比按鍵板1010的每一電氣通路與該待測裝置30的每一對應的按鍵相連通。該連接器20可根據待測裝置30的類型進行更換。該待測裝置30為一可擕式電子裝置,如電子相框、電子書等。 The test system includes a test device 10, a connector 20, and a device under test 30. The test device 10 includes an analog keyboard drive module 101 and a test control unit 102. The test control unit 102 includes one or more processing units. The analog keypad drive module 101 and the test control unit 102 are connected by a General Purpose Input Output (GPIO). The analog keypad drive module 101 has a slot for inserting different types of analog keypads 1010. Different types of devices to be tested 30 require different types of analog keypads 1010, and each type of analog keypad 1010 has the same number of electrical pathways as the corresponding buttons on the device under test 30. Each type of analog keyboard 1010 also has an identification code. The connector 20 is configured to enter the analog keypad 1010 on the analog keypad drive module 101 and the keypad on the device under test 30. In the row connection, each electrical path of the analog keypad 1010 is in communication with each corresponding button of the device under test 30. The connector 20 can be replaced according to the type of the device 30 to be tested. The device under test 30 is a portable electronic device, such as an electronic photo frame, an electronic book, or the like.
該測試裝置10還包括一記憶體103及一顯示螢幕104。該記憶體103用於存儲一測試項目對應表及對待測裝置30進行測試用的腳本檔案。如表一所示,該測試項目對應表包括一識別碼欄及一腳本檔案代碼欄。該識別碼欄記錄每一類型的類比按鍵板1010的識別碼。該腳本檔案代碼欄記錄不同腳本檔案的代碼。該腳本檔案為多個按鍵命令的集合。其中,該按鍵命令至少包括以下內容:按鍵代碼、按鍵間的間隔與按鍵按壓持續的時長。在本實施方式中,執行每一腳本檔案可對待測裝置30的多個測試項目進行測試,如對電子相框的播放圖片、播放音樂等項目進行測試。 The test device 10 further includes a memory 103 and a display screen 104. The memory 103 is used to store a test item correspondence table and a script file for testing the device to be tested 30. As shown in Table 1, the test item correspondence table includes an identification code column and a script file code column. The identification code column records the identification code of each type of analog keyboard 1010. The script file code column records the code of the different script files. The script file is a collection of multiple key commands. The button command includes at least the following contents: a button code, an interval between the buttons, and a duration of the button press. In this embodiment, each script file is executed to test a plurality of test items of the device to be tested 30, such as playing a picture of an electronic photo frame, playing music, and the like.
請參考圖2,為本發明一實施方式下電子裝置測試裝置的測試控制單元所執行功能的模組圖。 Please refer to FIG. 2 , which is a block diagram of functions performed by a test control unit of an electronic device testing device according to an embodiment of the present invention.
該測試控制單元102包括一識別碼讀取模組1021、一腳本 檔案確定模組1022、一腳本檔案執行模組1023、一顯示模組1024及一操作介面處理模組1025。 The test control unit 102 includes an identification code reading module 1021 and a script. The file determination module 1022, a script file execution module 1023, a display module 1024, and an operation interface processing module 1025.
該識別碼讀取模組1021用於讀取該類比按鍵板驅動模組101上插入的類比按鍵板1010的識別碼。該腳本檔案確定模組1022用於根據所讀取的識別碼在測試項目對應表中確定該待測裝置30測試時所需要的腳本檔案的代碼。該腳本檔案執行模組1023用於根據所確定的腳本檔案的代碼調用並執行相應的腳本檔案,將該腳本檔案上記錄的按鍵命令按記錄的順序通過GPIO埠傳輸至該類比按鍵板驅動模組101。該類比按鍵板驅動模組101識別所發送的按鍵命令,發送一訊號,例如高電平,使該類比按鍵板1010上與按鍵命令對應的一電氣通路導通,即該待測裝置30上與該電氣通路連通的一按鍵導通以產生該按鍵命令相應的按鍵訊號,該待測裝置30根據該按鍵訊號執行相應的功能。該顯示模組1024用於將該操作介面處理模組1025提供的一操作介面顯示在該顯示螢幕104上,以及將該腳本檔案執行模組1023執行腳本檔案的過程顯示在該操作介面提供的一文本顯示區內,以供測試人員及時知曉當前在測試待測裝置30的何種功能,以及判斷待測裝置30是否正常執行了與發送的按鍵命令對應的功能。該操作介面還提供暫停執行腳本檔案、標識按鍵命令、繼續執行腳本檔案及停止執行腳本檔案等功能。該操作介面處理模組1025能夠回應測試人員在該操作介面上執行的操作。當待測裝置30不能正常執行相應的功能時,測試人員可通過該操作介面提供的暫停功能,暫停腳本 檔案的執行。測試人員還可通過該操作介面提供的標識功能,對待測裝置30不能正常執行的按鍵命令進行標識,例如對該按鍵命令加以文字注解,這樣在測試結束後,測試人員可及時追蹤待測裝置30不能正常執行的按鍵命令。在對待測裝置30不能正常執行的按鍵命令進行標識後,測試人員可通過該操作介面提供的繼續執行腳本檔案的功能,以繼續執行腳本檔案,或者是通過該操作介面提供的停止腳本檔案的功能,以停止腳本檔案的執行。 The identification code reading module 1021 is configured to read an identification code of the analog key pad 1010 inserted in the analog key pad driving module 101. The script file determining module 1022 is configured to determine, in the test item correspondence table, the code of the script file required for testing the device under test 30 according to the read identification code. The script file execution module 1023 is configured to invoke and execute a corresponding script file according to the determined code of the script file, and transmit the key command recorded on the script file to the analog button board driver module through the GPIO埠 in the order of recording. 101. The analog keyboard driver module 101 recognizes the sent key command and sends a signal, such as a high level, to turn on an electrical path corresponding to the button command on the keypad 1010, that is, the device under test 30 A button connected to the electrical path is turned on to generate a corresponding button signal of the button command, and the device under test 30 performs a corresponding function according to the button signal. The display module 1024 is configured to display an operation interface provided by the operation interface processing module 1025 on the display screen 104, and display the script file execution module 1023 to execute a script file in the operation interface. The text display area is for the tester to know in time which function of the device under test 30 is currently being tested, and whether the device 30 to be tested normally performs the function corresponding to the transmitted key command. The operation interface also provides functions such as suspending execution of the script file, identifying key commands, continuing to execute the script file, and stopping execution of the script file. The operational interface processing module 1025 is responsive to the operations performed by the tester on the operational interface. When the device under test 30 cannot perform the corresponding function normally, the tester can pause the script through the pause function provided by the operation interface. Execution of the file. The tester can also identify the key command that the device to be tested 30 cannot perform normally by using the identification function provided by the operation interface, for example, text-commenting the button command, so that after the test is finished, the tester can track the device to be tested 30 in time. Key commands that cannot be executed normally. After the button command that cannot be normally executed by the device to be tested 30 is identified, the tester can continue to execute the script file through the function provided by the operation interface to continue executing the script file, or the function of stopping the script file provided through the operation interface. To stop the execution of the script file.
請參考圖3,為本發明一實施方式下電子裝置測試方法流程圖。 Please refer to FIG. 3 , which is a flowchart of a method for testing an electronic device according to an embodiment of the present invention.
步驟S301中,該識別碼讀取模組1021讀取該類比按鍵板驅動模組101上插入的類比按鍵板1010的識別碼。 In step S301, the identification code reading module 1021 reads the identification code of the analog keyboard 1010 inserted on the analog keyboard driving module 101.
步驟S302中,該腳本檔案確定模組1022根據所讀取的識別碼在測試項目對應表中確定該待測裝置30測試時所需要的腳本檔案的代碼。 In step S302, the script file determining module 1022 determines the code of the script file required for testing the device under test 30 in the test item correspondence table according to the read identification code.
步驟S303中,該腳本檔案執行模組1023根據所確定的腳本檔案的代碼調用並執行相應的腳本檔案,將該腳本檔案上記錄的按鍵命令按記錄的順序通過GPIO埠傳輸至該類比按鍵板驅動模組101。在本實施方式下,在該腳本檔案執行模組1023執行腳本檔案時,該顯示模組1024調用該操作介面模組1025提供的操作介面,並將該操作介面顯示在該顯示螢幕104上,以及將該腳本檔案執行模組1023執行腳本檔案的過程顯示在該操作介面的文本顯示 區內。 In step S303, the script file execution module 1023 calls and executes the corresponding script file according to the determined code of the script file, and the key command recorded on the script file is transmitted to the analog keyboard driver through the GPIO埠 in the order of recording. Module 101. In the embodiment, when the script file execution module 1023 executes the script file, the display module 1024 calls the operation interface provided by the operation interface module 1025, and displays the operation interface on the display screen 104, and The process of executing the script file by the script file execution module 1023 is displayed in the text display of the operation interface. In the district.
步驟S304中,該類比按鍵板驅動模組101識別所發送的按鍵命令,發送一訊號,例如高電平,使該類比按鍵板1010上與按鍵命令對應的一電氣通路導通,即使該待測裝置30上與該電氣通路連通的一按鍵導通產生該按鍵命令相應的按鍵訊號,該待測裝置30根據該該按鍵訊號執行相應的功能。 In step S304, the analog keypad driving module 101 recognizes the sent key command, and sends a signal, such as a high level, to make an electrical path corresponding to the key command on the analog keyboard 1010, even if the device to be tested A button connected to the electrical path on the 30 is turned on to generate a corresponding button signal of the button command, and the device under test 30 performs a corresponding function according to the button signal.
步驟S305中,判斷該待測裝置30是否正常執行了相應的功能,如果是,則執行步驟S306,否則,測試人員可在該顯示螢幕104顯示的操作介面上執行相關的功能。 In step S305, it is determined whether the device under test 30 performs the corresponding function normally. If yes, step S306 is performed. Otherwise, the tester can perform related functions on the operation interface displayed by the display screen 104.
步驟S306中,該腳本檔案執行模組1023判斷是否還有下一條按鍵命令需要發送,如果是,則重複執行步驟S303,否則,整個測試過程結束。 In step S306, the script file execution module 1023 determines whether there is still a next key command to be sent, and if so, repeats step S303; otherwise, the entire test process ends.
10‧‧‧測試裝置 10‧‧‧Testing device
101‧‧‧類比按鍵板驅動模組 101‧‧‧ analog keyboard drive module
1010‧‧‧類比按鍵板 1010‧‧‧ analog keyboard
102‧‧‧測試控制單元 102‧‧‧Test Control Unit
103‧‧‧記憶體 103‧‧‧ memory
104‧‧‧顯示螢幕 104‧‧‧Display screen
20‧‧‧連接器 20‧‧‧Connector
30‧‧‧待測裝置 30‧‧‧Device under test
圖1為本發明一實施方式下電子裝置測試系統的架構圖。 1 is a block diagram of an electronic device test system according to an embodiment of the present invention.
圖2為本發明一實施方式下電子裝置測試裝置的測試控制單元所執行功能的模組圖。 2 is a block diagram showing functions performed by a test control unit of an electronic device testing device according to an embodiment of the present invention.
圖3為本發明一實施方式下電子裝置測試方法流程圖。 3 is a flow chart of a method for testing an electronic device according to an embodiment of the present invention.
10‧‧‧測試裝置 10‧‧‧Testing device
101‧‧‧類比按鍵板驅動模組 101‧‧‧ analog keyboard drive module
1010‧‧‧類比按鍵板 1010‧‧‧ analog keyboard
102‧‧‧測試控制單元 102‧‧‧Test Control Unit
103‧‧‧記憶體 103‧‧‧ memory
104‧‧‧顯示螢幕 104‧‧‧Display screen
20‧‧‧連接器 20‧‧‧Connector
30‧‧‧待測裝置 30‧‧‧Device under test
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW97147319A TWI381176B (en) | 2008-12-05 | 2008-12-05 | Apparatus and method for testing electronic apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW97147319A TWI381176B (en) | 2008-12-05 | 2008-12-05 | Apparatus and method for testing electronic apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201022686A TW201022686A (en) | 2010-06-16 |
TWI381176B true TWI381176B (en) | 2013-01-01 |
Family
ID=44833076
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW97147319A TWI381176B (en) | 2008-12-05 | 2008-12-05 | Apparatus and method for testing electronic apparatus |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI381176B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102788919B (en) * | 2012-07-18 | 2015-02-11 | 友达光电(苏州)有限公司 | Wire detecting device and wire detecting method |
CN103679105B (en) * | 2012-09-05 | 2017-01-04 | 纬创资通股份有限公司 | For testing method and the test system of system input data |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW580577B (en) * | 1999-10-22 | 2004-03-21 | Clarion Co Ltd | Automatic measuring apparatus, automatic measurement data processing and control apparatus, network system, and record medium of automatic measurement processing and control program |
TW200608031A (en) * | 2004-05-22 | 2006-03-01 | Advantest Corp | Method and system for controlling interchangeable components in a modular test system |
US20070233509A1 (en) * | 2006-01-23 | 2007-10-04 | Buchman Jeffrey A | Testing method and system |
-
2008
- 2008-12-05 TW TW97147319A patent/TWI381176B/en not_active IP Right Cessation
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW580577B (en) * | 1999-10-22 | 2004-03-21 | Clarion Co Ltd | Automatic measuring apparatus, automatic measurement data processing and control apparatus, network system, and record medium of automatic measurement processing and control program |
TW200608031A (en) * | 2004-05-22 | 2006-03-01 | Advantest Corp | Method and system for controlling interchangeable components in a modular test system |
US20070233509A1 (en) * | 2006-01-23 | 2007-10-04 | Buchman Jeffrey A | Testing method and system |
Also Published As
Publication number | Publication date |
---|---|
TW201022686A (en) | 2010-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101738550B (en) | Electronic device test device and test method | |
US10956291B2 (en) | Method, computer apparatus, and user interface for performing automatic test upon storage devices | |
TWI510913B (en) | Testing device and testing method thereof | |
CN101368991B (en) | Electronic device test device and method thereof | |
US8443238B2 (en) | System and method for testing hard disk ports | |
CN101493790B (en) | Record playback system and record back method | |
CN101599035A (en) | USB port proving installation and method | |
US7400998B2 (en) | Test apparatus and test method | |
US20080016385A1 (en) | Plain Language Announcement of Diagnostic and Troubleshooting Information for Users | |
CN109669831B (en) | Test method and electronic equipment | |
TWI381176B (en) | Apparatus and method for testing electronic apparatus | |
CN101470647A (en) | Computer mainboard fault diagnosis apparatus | |
JP2007218598A (en) | Circuit board testing system | |
CN102305906B (en) | Chip testing method and device | |
CN101312546A (en) | Method for tracking and recording television operation steps and television thereof | |
CN103269473A (en) | Automatic audio test system | |
JP5367551B2 (en) | Command logger device | |
CN113257334B (en) | Test method, device and system for solid state disk | |
TWI391816B (en) | Computer debug method | |
US8463754B2 (en) | Electronic equipment and log output method | |
CN102819472B (en) | Quick detecting method for laptop keyboard | |
CN101826046A (en) | Power-on debugging method of computer | |
JPH09160842A (en) | Bus load test system | |
JP2010170459A (en) | Test system, test method, and test program | |
JP7228144B2 (en) | Inspection support system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |