TW201522998A - Testing device using standalone control module for testing and method thereof - Google Patents

Testing device using standalone control module for testing and method thereof Download PDF

Info

Publication number
TW201522998A
TW201522998A TW102145825A TW102145825A TW201522998A TW 201522998 A TW201522998 A TW 201522998A TW 102145825 A TW102145825 A TW 102145825A TW 102145825 A TW102145825 A TW 102145825A TW 201522998 A TW201522998 A TW 201522998A
Authority
TW
Taiwan
Prior art keywords
test
control module
testing
command
programmable logic
Prior art date
Application number
TW102145825A
Other languages
Chinese (zh)
Inventor
Zhe-Zhang Yuan
Hui Yun
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 TW102145825A priority Critical patent/TW201522998A/en
Publication of TW201522998A publication Critical patent/TW201522998A/en

Links

Abstract

A testing device using a standalone control module for testing and a method thereof are provided. By configuring a control module on the testing device for replacing a main controller, generating a control command corresponding with a test command by the control module after the control module receives the test command transmitted from the main controller, transmitting the control command from the control module to a programmable logic device (PLD) corresponding with the control command, and controlling general-purpose I/O ports comprised in the PLD to test a target based on the control command by the PLD, the testing device and relating method can decreasing test time, and can achieve the effect of letting main controller do other jobs during testing.

Description

使用獨立控制模組進行測試之測試裝置及其方法 Test device and method for testing using independent control module

一種測試裝置及其方法,特別係指一種使用獨立控制模組進行測試之測試裝置及其方法。 A test device and method thereof, in particular, a test device and method for testing using an independent control module.

在電子產品的生產過程中,通常都需要對電子產品的輸出入腳位(pin)進行連通性的測試。 In the production process of electronic products, it is usually necessary to test the connectivity of the output pins of electronic products.

目前進行測試的一種方法是使用專用的測試裝置,在每次測試時,先由主控端在測試裝置上設定一項測試的預定結果,接著由主控端控制測試裝置對電子產品(測試目標)之輸出入腳位的連通性進行該項測試,直到所有的測試項目都完成為止。 One method currently used for testing is to use a dedicated test device. At each test, the host control unit sets a predetermined test result on the test device, and then the master control device controls the test device for the electronic product (test target). The connectivity of the input and output pins is tested until all test items are completed.

然而,上述之方法會完全佔用主控端,導致主控端無法進行其他的測試工作。因此,上述之方法僅適合對少量之輸出入腳位的裝置進行腳位連通性的測試,一旦電子產品的輸出入腳位數量多,主控端被佔用的時間也會跟著增加,如此便增加了測試的時間。 However, the above method will completely occupy the main control terminal, and the main control terminal cannot perform other test work. Therefore, the above method is only suitable for testing the pin connectivity of a small number of devices that are input and output to the foot. Once the number of input and output pins of the electronic product is large, the time taken by the main control terminal will also increase, thus increasing The time of the test.

另外,上述的方法中,每一項測試都需要在測試裝置上設定預定結果,但事實上,設定預定結果的速度非常慢,一旦電子產品的輸出入腳位數量增加,則表示需要進行測試的項目也會跟著增加,因此,也會增加測試的時間。 In addition, in the above method, each test needs to set a predetermined result on the test device, but in fact, the speed of setting the predetermined result is very slow, and once the number of output pins of the electronic product increases, it indicates that the test needs to be performed. The project will also increase, so it will also increase the test time.

綜上所述,可知先前技術中長期以來一直存在輸出入腳位多之電子產品的測試時間過長的問題,因此有必要提出改進的技術手段,來解決此一問題。 In summary, it can be seen that in the prior art, there has been a problem that the test time of an electronic product having a large input and output position is too long, and therefore it is necessary to propose an improved technical means to solve the problem.

有鑒於先前技術存在輸出入腳位多之電子產品的測試時間 過長的問題,本發明遂揭露一種使用獨立控制模組進行測試之測試裝置及其方法,其中:本發明所揭露之使用獨立控制模組進行測試之測試裝置,至少包含:控制模組,用以接收主控端所傳送之測試命令,及依據測試命令產生相對應之控制命令,並依序傳送控制命令;可程式邏輯元件(Programmable Logic Device,PLD),每一可程式邏輯元件包含多個通用輸入輸出(General Purpose I/O,GPIO)埠,用以依據控制模組所傳送之控制命令控制通用輸入輸出埠,藉以對測試目標進行測試。 In view of the prior art, there is a test time for electronic products with a large output. The problem is that the test device and the method for testing using the independent control module are disclosed in the present invention. The test device for testing using the independent control module disclosed in the present invention includes at least: a control module. Receiving a test command transmitted by the host, and generating a corresponding control command according to the test command, and sequentially transmitting the control command; a Programmable Logic Device (PLD), each of the programmable logic components includes multiple A general purpose input/output (General Purpose I/O, GPIO) port is used to control the general purpose input/output port according to a control command transmitted by the control module, thereby testing the test target.

本發明所揭露之使用獨立控制模組進行測試之方法,其步驟至少包括:主控端傳送測試命令至測試裝置,測試裝置包含控制模組及可程式邏輯元件;控制模組依據測試命令產生相對應之控制命令,並依序傳送控制命令至相對應之可程式邏輯元件;可程式邏輯元件依據所接收到之控制命令控制所包含之通用輸入輸出埠,藉以對測試目標進行測試。 The method for testing by using the independent control module disclosed in the present invention comprises the following steps: the main control terminal transmits a test command to the test device, the test device includes a control module and a programmable logic component; and the control module generates a phase according to the test command. Corresponding to the control command, and sequentially transmitting the control command to the corresponding programmable logic component; the programmable logic component controls the included general purpose input/output according to the received control command, thereby testing the test target.

本發明所揭露之系統與方法如上,與先前技術之間的差異在於本發明透過在測試裝置上設置取代主控端的控制模組,控制模組在接收到主控端所傳送的測試命令後,可以產生相對應的控制命令,並傳送到相對應的可程式邏輯元件,接收到控制命令的可程式邏輯元件可以依據控制命令控制所包含的通用輸入輸出埠來對測試目標進行測試,藉以解決先前技術所存在的問題,並可以達成讓主控端可以在對測試目標進行測試的同時進行其他工作的技術功效。 The system and method disclosed in the present invention are as above, and the difference from the prior art is that the present invention sets a control module that replaces the main control terminal on the test device, and after receiving the test command transmitted by the control terminal, the control module receives the test command transmitted by the control terminal. A corresponding control command can be generated and transmitted to the corresponding programmable logic element, and the programmable logic element receiving the control command can test the test target according to the control input command to control the test target, thereby solving the previous The technical problems, and can achieve the technical effect of allowing the main control to perform other work while testing the test target.

100‧‧‧測試裝置 100‧‧‧Testing device

110‧‧‧可程式邏輯元件 110‧‧‧Programmable logic components

116‧‧‧暫存器 116‧‧‧ register

116a‧‧‧暫存器 116a‧‧‧ register

116b‧‧‧暫存器 116b‧‧‧ register

118‧‧‧通用輸入輸出埠 118‧‧‧Common Input and Output埠

118a‧‧‧通用輸入輸出埠 118a‧‧‧General I/O埠

118b‧‧‧通用輸入輸出埠 118b‧‧‧General I/O埠

130‧‧‧控制模組 130‧‧‧Control Module

200‧‧‧主控端 200‧‧‧Master

400‧‧‧測試目標 400‧‧‧ test target

步驟310‧‧‧主控端傳送測試命令至測試裝置,測試裝置包含控制模組及可程式邏輯元件 Step 310‧‧‧ The host transmits a test command to the test device, and the test device includes a control module and a programmable logic component

步驟320‧‧‧控制模組依據測試命令產生相對應之控制命令 Step 320‧‧‧ The control module generates a corresponding control command according to the test command

步驟330‧‧‧控制模組依序傳送控制命令至相對應之可程式邏輯元件 Step 330‧‧‧ The control module sequentially transmits control commands to the corresponding programmable logic components

步驟350‧‧‧可程式邏輯元件依據所接收到之控制命令控制所包含之通用輸入輸出埠,藉以對測試目標進行測試 Step 350‧‧‧ The programmable logic component controls the test target by controlling the included general input/output according to the received control command

步驟370‧‧‧控制模組產生測試結果 Step 370‧‧‧ Control module produces test results

步驟390‧‧‧控制模組接收主控端所傳送之收集指令,並傳送測試結果至主控端 Step 390‧‧‧ The control module receives the collection instruction transmitted by the host and transmits the test result to the host

第1圖為本發明所提之使用獨立控制模組進行測試之元件示意圖。 Figure 1 is a schematic diagram of components of the present invention for testing using an independent control module.

第2圖為本發明所提之可程式邏輯元件之示意圖。 Figure 2 is a schematic diagram of the programmable logic elements of the present invention.

第3圖為本發明所提之使用獨立控制模組進行測試之方法流程圖。 Figure 3 is a flow chart of a method for testing using an independent control module according to the present invention.

以下將配合圖式及實施例來詳細說明本發明之特徵與實施方式,內容足以使任何熟習相關技藝者能夠輕易地充分理解本發明解決技術問題所應用的技術手段並據以實施,藉此實現本發明可達成的功效。 The features and embodiments of the present invention will be described in detail below with reference to the drawings and embodiments, which are sufficient to enable those skilled in the art to fully understand the technical means to which the present invention solves the technical problems, and The achievable effects of the present invention.

本發明提供包含可獨立運作之控制模組的測試裝置,當該測試裝置接收到主控端所傳送之測試命令時,控制模組可以執行與所接收到之測試命令對應的測試流程,並依據測試流程控制測試裝置所包含的通用輸入輸出(General Purpose I/O,GPIO)埠(port),藉以對測試目標進行測試。 The present invention provides a test device including an independently operable control module. When the test device receives the test command transmitted by the control terminal, the control module can execute a test flow corresponding to the received test command, and The test flow controls the General Purpose I/O (GPIO) port included in the test set to test the test target.

以下先以「第1圖」本發明所提之使用獨立控制模組進行測試之測試裝置之元件示意圖來說明本發明的運作過程。如「第1圖」所示,本發明之測試裝置100含有可程式邏輯元件(Programmable Logic Device,PLD)110以及控制模組130。 Hereinafter, the operation of the present invention will be described with reference to the components of the test apparatus of the present invention which is tested using the independent control module in the "Fig. 1". As shown in FIG. 1, the test apparatus 100 of the present invention includes a Programmable Logic Device (PLD) 110 and a control module 130.

可程式邏輯元件110包含多個通用輸入輸出埠。可程式邏輯元件110負責接收控制模組130所傳送的控制命令,並依據所接收到的控制命令控制一個或多個通用輸入輸出埠。一般而言,可程式邏輯元件110會依據所接收到的控制命令,控制一個或多個通用輸入輸出埠輸出測試訊號到測試目標400上之相對應的輸入腳位(pin),及/或控制一個或多個通用輸入輸出埠接收測試目標400上之相對應的輸出入腳位上的回應訊號。 The programmable logic component 110 includes a plurality of general purpose input and output ports. The programmable logic component 110 is responsible for receiving control commands transmitted by the control module 130 and controlling one or more general purpose input and output ports in accordance with the received control commands. In general, the programmable logic component 110 controls one or more general purpose input and output outputs a test signal to a corresponding input pin on the test target 400 according to the received control command, and/or controls One or more general purpose input and output ports receive a response signal on the corresponding input pin position on the test target 400.

值得一提的是,由於可程式邏輯元件110包含了大量的通用輸出入埠,因此,特別適合用來對具有大量輸出入腳位的測試目標400進行輸出入腳位之訊號的測試,同時,由於通用輸出入埠的訊號切換速度快,也非常適合用來對輸出入腳位(pin)之訊號變化速度快之測試目標進行測試。 It is worth mentioning that, since the programmable logic component 110 includes a large number of general-purpose input ports, it is particularly suitable for testing the signal of the input and output pins of the test target 400 having a large number of input and output pins. Since the signal switching speed of the general-purpose input and output port is fast, it is also suitable for testing the test target whose signal input speed of the input pin (pin) is fast.

另外,可程式邏輯元件110還可以如「第2圖」所示,包含暫存器(register)116,暫存器116可以提供可程式邏輯元件110控制通用輸入輸出埠118輸出測試訊號到測試目標400,例如,可程式邏輯元件110可以設定暫存器116a為高電位(High)或低電位(Low),如此,與被設定 之暫存器116a連接的通用輸入輸出埠118a便會輸出高電位或低電位的測試訊號至測試目標400的對應輸入腳位;可程式邏輯元件110也可以透過暫存器116與通用輸入輸出埠118獲得測試目標400上與通用輸入輸出埠118相對應之輸出入腳位上的回應訊號,例如,在通用輸入輸出埠118b獲得測試目標400之特定輸出入腳位上的回應訊號後,暫存器116b會被通用輸入輸出埠118b所獲得之高電位或低電位的回應訊號設定為高電位或低電位,可程式邏輯元件110便可以藉由暫存器116b的電位高低獲得回應訊號為高電位或低電位。 In addition, the programmable logic component 110 can also include a register 116 as shown in FIG. 2, and the register 116 can provide a programmable logic component 110 to control the general-purpose input/output terminal 118 to output a test signal to the test target. 400, for example, the programmable logic component 110 can set the register 116a to be high (High) or low (Low), thus, and set The general-purpose input/output port 118a connected to the register 116a outputs a high-potential or low-potential test signal to the corresponding input pin of the test target 400; the programmable logic element 110 can also pass through the register 116 and the general-purpose input/output port. 118 obtains a response signal on the output pin corresponding to the general-purpose input/output port 118 on the test target 400, for example, after the general-purpose input/output port 118b obtains the response signal on the specific output pin of the test target 400, temporarily storing The high-potential or low-potential response signal obtained by the general-purpose input/output 埠118b is set to a high level or a low level, and the programmable logic element 110 can obtain a high response signal by the potential of the register 116b. Or low potential.

控制模組130負責接收主控端200所傳送的測試命令。主控端200會依據不同的測試需求(例如,測試不同的測試目標,測試同一測試目標的不同部分)傳送不同的測試命令到測試裝置100,使得控制模組130隨著所接收到的不同測試命令進行不同的測試流程。 The control module 130 is responsible for receiving the test command transmitted by the host 200. The master 200 transmits different test commands to the test device 100 according to different test requirements (for example, testing different test targets, testing different parts of the same test target), so that the control module 130 receives different tests. Commands perform different test procedures.

控制模組130也負責產生與所接收到之測試命令對應的控制命令,控制模組130所產生之與測試命令對應的控制命令可能只有一個,也可能有多個,本發明並沒有特別的限制。由於控制模組130所進行的測試流程會隨著所接收到之測試命令不同而有不同,因此,控制模組130所產生之用來進行測試的控制命令也會隨著測試命令不同而有不同。 The control module 130 is also responsible for generating a control command corresponding to the received test command. The control command generated by the control module 130 may have only one or more control commands, and the present invention is not particularly limited. . Since the test flow performed by the control module 130 varies with the received test command, the control commands generated by the control module 130 for testing may also vary with the test command. .

控制模組130也負責將所產生的控制命令依序傳送到與控制命令對應的一個或多個可程式邏輯元件110。其中,控制模組130可以依據測試流程傳送控制命令到相對應的可程式邏輯元件110,使得測試裝置100上之部分或全部的可程式邏輯元件110以一定的順序執行控制命令,藉以對測試目標400進行輸出入腳位之連通性的測試。 Control module 130 is also responsible for sequentially transmitting the generated control commands to one or more programmable logic elements 110 corresponding to the control commands. The control module 130 can transmit a control command to the corresponding programmable logic component 110 according to the test flow, so that some or all of the programmable logic components 110 on the testing device 100 execute the control command in a certain order, thereby testing the target. 400 tests for connectivity of the input and output pins.

值得一提的是,在習知技術中,主控端對測試目標400進行測試的過程中,主控端會持續的被佔用,直到對測試目標400的測試完成為止,但在本發明中,控制模組130取代了習知技術中主控端的用途,也就是說,主控端200僅需要在開始對測試目標400進行測試時,傳送測試命令給控制模組130,由控制模組130進行完整的測試流程,同時,在控制模組130進行測試時,主控端200可以執行其他的功能,例如,對其他的測試項目進行測試等,如此,對於主控端200而言,便是同時對測試目標 400之輸出入腳位以及其他測試項目進行測試,明顯的可以減少測試的總時間。但在控制模組130進行測試時,主控端200所執行其他的功能並不以上述為限。 It is worth mentioning that in the prior art, during the test of the test target 400 by the main control terminal, the main control end is continuously occupied until the test of the test target 400 is completed, but in the present invention, The control module 130 replaces the use of the control terminal in the prior art. That is to say, the control terminal 200 only needs to transmit a test command to the control module 130 when the test target 400 is started to be tested, and the control module 130 performs the control module 130. The complete test process, at the same time, when the control module 130 performs the test, the host 200 can perform other functions, for example, testing other test items, etc., so that for the host 200, it is simultaneously Test target The 400 input and output pins and other test items are tested, which can significantly reduce the total time of the test. However, when the control module 130 performs the test, other functions performed by the main control terminal 200 are not limited to the above.

在部分的實施例中,控制模組130可以讀取測試裝置100上之各個可程式邏輯元件110所獲取到的回應訊號,並比對讀取自各個可程式邏輯元件110之回應訊號及與所接收到之控制命令對應的預定資料(,甚至,控制模組130可以先將所讀取到的回應訊號由類比訊號轉換為數位資料後,再與預定資料進行比對,但本發明並不以此為限),並在比對各個回應訊號後產生相對應的測試結果,例如,回應訊號與預定資料完全相符,或是回應訊號中的一個或多個與預定資料不符等,但本發明所提之測試結果並不以此為限,凡可以理解回應訊號不與預定資料完全相同的資料都可以做為本發明所提之測試資料。其中,控制模組130用來與回應訊號比對的預定資料可以包含在所接收到的控制命令中,也可以預先被儲存在測試裝置100上,控制模組130會在接收到控制命令後,依據控制命令讀取相對應的預定資料。 In some embodiments, the control module 130 can read the response signals obtained by the programmable logic elements 110 on the test device 100, and compare the response signals and the read signals from the programmable logic elements 110. Receiving the predetermined data corresponding to the control command (even, the control module 130 may first convert the read response signal from the analog signal to the digital data, and then compare with the predetermined data, but the present invention does not This is limited to, and after comparing the respective response signals, corresponding test results are generated, for example, the response signal is completely consistent with the predetermined data, or one or more of the response signals does not match the predetermined information, etc., but the present invention The test results are not limited to this. Any data that can be understood that the response signal is not identical to the predetermined information can be used as the test data provided in the present invention. The predetermined data used by the control module 130 to be compared with the response signal may be included in the received control command, or may be stored in the test device 100 in advance. After receiving the control command, the control module 130 may receive the control command. The corresponding predetermined data is read according to the control command.

控制模組130也可以在接收到主控端200所傳送的收集指令後,傳送所產生的測試結果至主控端200。其中,控制模組130可以在完成測試後,也就是讀取到所有需比對之回應訊號後,主動傳送通知訊號給主控端200,使得主控端200傳送收集指令給控制模組130,控制模組130也可以被動的等待主控端200輪詢(Polling),也就是等待接收主控端200所傳送的詢問訊息,並在接收到主控端200所傳送的詢問訊息後,傳送確認訊息給主控端,使得主控端200傳送收集指令給控制模組130。 The control module 130 may also transmit the generated test result to the host 200 after receiving the collection instruction transmitted by the host 200. The control module 130 can actively transmit the notification signal to the control terminal 200 after the completion of the test, that is, after reading all the response signals that need to be compared, so that the control terminal 200 transmits the collection instruction to the control module 130. The control module 130 can also passively wait for the host terminal 200 to poll (Polling), that is, wait for receiving the inquiry message transmitted by the host terminal 200, and send the confirmation after receiving the inquiry message transmitted by the host terminal 200. The message is sent to the control terminal, so that the host terminal 200 transmits a collection instruction to the control module 130.

另外,為了避免測試裝置100同時對測試目標400之輸出入腳位進行測試的通用輸入輸出埠不足,控制模組130與可程式邏輯元件110之間會透過串列週邊介面(Serial Peripheral Interface,SPI)連接,由於串列週邊介面可以輕易的讓控制模組130連接多個可程式邏輯元件110,因此,便可以輕易的擴充測試裝置100所能對測試目標400進行輸出入腳位之測試的輸入輸出埠的數量。同時,由於串列週邊介面的資料傳輸速度(16M)與習知之測試過程所使用的資料傳輸速度(100K)相比,具有更快的資料 傳輸速度,因此,在對測試目標400之大量的輸出入腳位進行測試時,控制模組130可以以更短的時間取得所有的回應訊號。但控制模組130與可程式邏輯元件110之間的連接方式並不以使用串列週邊介面為限。 In addition, in order to prevent the test device 100 from simultaneously testing the input and output pins of the test target 400, the control module 130 and the programmable logic device 110 pass through the serial peripheral interface (SPI). The connection can easily connect the control module 130 to the plurality of programmable logic elements 110. Therefore, the input of the test device 100 for testing the output of the test target 400 can be easily expanded. The number of output defects. At the same time, the data transmission speed (16M) of the serial peripheral interface has faster data than the data transmission speed (100K) used in the conventional testing process. The transmission speed, therefore, when testing a large number of input and output pins of the test target 400, the control module 130 can obtain all the response signals in a shorter time. However, the connection between the control module 130 and the programmable logic component 110 is not limited to the use of the serial peripheral interface.

接著以一個實施例來解說本發明的運作系統與方法,並請參照「第3圖」本發明所提之使用獨立控制模組進行測試之方法流程圖。在本實施例中,假設控制模組130為微控制單元(Micro Control Unit,MCU),可程式邏輯元件110為複雜可程式邏輯裝置(Complex Programmable Logic Device,CPLD),但本發明並不以此為限。 Next, an operational system and method of the present invention will be described with reference to an embodiment. Referring to FIG. 3, a flow chart of a method for testing using an independent control module according to the present invention will be described. In this embodiment, it is assumed that the control module 130 is a Micro Control Unit (MCU), and the programmable logic component 110 is a Complex Programmable Logic Device (CPLD), but the present invention does not Limited.

首先,主控端200可以傳送測試命令到測試裝置100(步驟310),接著,主控端200便可以進行其他項目的測試。在本實施例中,假設主控端200與測試裝置100透過內部整合電路(Inter-Integrated Circuit,IIC)連接,則測試命令便會包含在內部整合電路封包的資料段中。 First, the host 200 can transmit a test command to the test device 100 (step 310), and then the host 200 can perform tests for other items. In this embodiment, it is assumed that the control terminal 200 and the test device 100 are connected through an Inter-Integrated Circuit (IIC), and the test command is included in the data segment of the internal integrated circuit packet.

測試裝置100的控制模組130可以在測試裝置100接收到主控端200所傳送的內部整合電路封包後,解開內部整合電路封包,藉以取得包含在內部整合電路封包測試命令,並可以產生與所接收到的測試命令對應的控制命令(步驟320)。在本實施例中,假設控制模組130會依據測試命令判斷與測試命令對應的測試流程,並依據所判斷出的測試流程產生可以完成所判斷出之測試流程的控制命令。 The control module 130 of the testing device 100 can unpack the internal integrated circuit packet after the testing device 100 receives the internal integrated circuit packet transmitted by the host 200, thereby obtaining the test command included in the internal integrated circuit packet, and can generate and The control command corresponding to the received test command (step 320). In this embodiment, it is assumed that the control module 130 determines the test flow corresponding to the test command according to the test command, and generates a control command that can complete the determined test flow according to the determined test flow.

在測試裝置100的控制模組130產生控制命令後,控制模組130可以將所產生的控制命令依序傳送到與將被傳送之控制命令對應的可程式邏輯元件110(步驟330)。在本實施例中,假設控制模組130與可程式邏輯元件110透過串列週邊介面連接,控制模組130會使用串列週邊介面協定傳送控制命令給可程式邏輯元件110。 After the control module 130 of the testing device 100 generates the control command, the control module 130 can sequentially transmit the generated control command to the programmable logic component 110 corresponding to the control command to be transmitted (step 330). In this embodiment, it is assumed that the control module 130 and the programmable logic component 110 are connected through the serial peripheral interface, and the control module 130 transmits a control command to the programmable logic component 110 using the serial peripheral interface protocol.

在測試裝置100的可程式邏輯元件110接收到測試裝置100之控制模組130所傳送的控制命令後,可以依據所接收到之控制命令控制所包含的通用輸入輸出埠118,藉以對測試目標400進行測試(步驟350)。如此,透過本發明,主控端200便可以透過包含可以獨立進行測試之控制模組130的測試裝置100完成對測試目標400的測試,不會再進行測試目標400之測試時被佔用。 After the programmable logic component 110 of the test apparatus 100 receives the control command transmitted by the control module 130 of the test apparatus 100, the included general-purpose input/output 118 can be controlled according to the received control command, thereby testing the test target 400. A test is performed (step 350). Thus, through the present invention, the host 200 can complete the test of the test target 400 through the test device 100 including the control module 130 that can be independently tested, and is not occupied when the test of the test target 400 is performed.

在本實施例中,假設控制模組130產生了三組控制命令,其中,第一組控制命令會讓接收到該控制命令的某個可程式邏輯元件110控制所包含之某個通用輸入輸出埠118將測試訊號輸出到測試目標400的對應輸入腳位,而其他的所有通用輸入輸出埠118則會獲取測試目標400之所有輸出入腳位上的回應訊號;另一組控制命令會讓接收到該控制命令的某個可程式邏輯元件110控制所包含之多個特定的通用輸入輸出埠118輸出測試訊號,其他的所有通用輸入輸出埠118同樣會獲取測試目標400之所有輸出入腳位上的回應訊號;最後一組控制命令則會讓接收到控制命令的多個可程式邏輯元件110分別控制其所包含之一個或多個通用輸入輸出埠118輸出測試訊號,同樣的,而其他的所有通用輸入輸出埠118會獲取測試目標400之所有輸出入腳位上的回應訊號。 In this embodiment, it is assumed that the control module 130 generates three sets of control commands, wherein the first set of control commands causes a certain programmable logic component 110 that receives the control command to control a certain universal input and output included. 118 outputs the test signal to the corresponding input pin of the test target 400, and all other general-purpose input/output 埠118 will obtain the response signal of all the input and output pins of the test target 400; another set of control commands will be received A programmable logic component 110 of the control command controls a plurality of specific general-purpose input/output ports 118 included to output a test signal, and all other general-purpose input/output ports 118 also acquire all the output pins of the test target 400. Responding to the signal; the last set of control commands causes the plurality of programmable logic elements 110 that receive the control commands to control one or more of the general-purpose input and output ports 118 included therein to output test signals, and the same, and all other general The input/output 埠118 will obtain a response signal from all the input pins of the test target 400.

接著,測試裝置100的控制模組130可以使用串列週邊介面協定傳送讀取資料的讀取指令給各個可程式邏輯元件110,各個可程式邏輯元件110在接收到讀取指令後,同樣會使用串列週邊介面協定將各個通用輸入輸出埠118所獲取到的回應訊號傳回控制模組130,控制模組130在接收到所有的通用輸入輸出埠118所傳回的回應訊號後,可以將所接收到的回應訊號與所產生之控制指令對應的預定資料進行比對,並在比對後產生測試結果(步驟370)。在本實施例中,由於控制模組130產生了三組控制命令,因此,控制模組130也會在每一次傳送控制命令後傳送一次讀取指令到各個可程式邏輯元件110,並比對各個可程式邏輯元件110所傳回之回應訊號以及與被傳送之控制命令對應的預定資料,其中,當所有回應訊號與預定資料都相同時,控制模組130可以產生表示為沒有錯誤的測試結果,而若當有任何一個回應訊號與預定資料不同時,控制模組130可以記錄獲取到與預定資料不同之回應訊號的通用輸入輸出埠的識別資料,甚至記錄測試訊號與回應訊號的電位高低。 Then, the control module 130 of the test apparatus 100 can transmit the read command of the read data to each programmable logic component 110 by using the serial peripheral interface protocol. Each programmable logic component 110 also uses the read command after receiving the read command. The serial interface protocol transmits the response signals obtained by the general-purpose input/output ports 118 back to the control module 130. After receiving the response signals returned by all the general-purpose input/output ports 118, the control module 130 can The received response signal is compared with the predetermined data corresponding to the generated control command, and the test result is generated after the comparison (step 370). In this embodiment, since the control module 130 generates three sets of control commands, the control module 130 also transmits a read command to each programmable logic component 110 after each transfer of the control command, and compares each The response signal returned by the programmable logic component 110 and the predetermined data corresponding to the transmitted control command, wherein when all the response signals are the same as the predetermined data, the control module 130 can generate a test result indicating that there is no error. If any of the response signals are different from the predetermined data, the control module 130 can record the identification data of the general input/output port that obtains the response signal different from the predetermined data, and even record the potential of the test signal and the response signal.

另外,測試裝置100的控制模組130也可以在完成對測試目標400的測試後,接收主控端200所傳送的收集指令,並將所產生的測試結果傳回主控端200(步驟390),使得主控端200可以將控制模組130所產生的測試結果提供給測試者參考。在本實施例中,假設主控端200會以 輪詢的方式,在每一段間隔後,使用內部整合電路封包詢問控制模組130是否完成測試,當控制模組130完成測試後,同樣可以使用內部整合電路封包傳回確認訊號給主控端200,主控端200在接收到控制模組130所傳送的確認訊號後,便可以使用內部整合電路封包傳送收集指令到控制模組130,如此,控制模組130便會使用內部整合電路封包將測試結果傳回主控端200。 In addition, the control module 130 of the testing device 100 may also receive the collection instruction transmitted by the host 200 after completing the test of the test target 400, and transmit the generated test result back to the main control terminal 200 (step 390). The main control terminal 200 can provide the test result generated by the control module 130 to the tester for reference. In this embodiment, it is assumed that the master 200 will In the polling manner, after each interval, the internal integrated circuit packet is used to query whether the control module 130 completes the test. When the control module 130 completes the test, the internal integrated circuit packet can also be used to transmit the acknowledgement signal to the control terminal 200. After receiving the confirmation signal transmitted by the control module 130, the master terminal 200 can use the internal integrated circuit packet to transmit the collection command to the control module 130. Thus, the control module 130 will use the internal integrated circuit packet to test. The result is passed back to the master 200.

綜上所述,可知本發明與先前技術之間的差異在於具有在測試裝置上設置取代主控端的控制模組,控制模組在接收到主控端所傳送的測試命令後,可以產生相對應的控制命令,並傳送到相對應的可程式邏輯元件,接收到控制命令的可程式邏輯元件可以依據控制命令控制所包含的通用輸入輸出埠來對測試目標進行測試之技術手段,藉由此一技術手段可以解決先前技術所存在輸出入腳位多之電子產品的測試時間過長的問題,進而達成讓主控端可以在對測試目標進行測試的同時進行其他工作的技術功效。 In summary, it can be seen that the difference between the present invention and the prior art is that a control module is provided on the test device instead of the master terminal, and the control module can generate a corresponding test command after receiving the test command transmitted by the master terminal. The control command is transmitted to the corresponding programmable logic component, and the programmable logic component receiving the control command can control the test target by using the general input/output port included in the control command, thereby The technical means can solve the problem that the testing time of the electronic products with the input and output positions of the prior art is too long, thereby achieving the technical effect that the main control end can perform other work while testing the test target.

再者,本發明之使用獨立控制模組進行測試之方法,可實現於硬體、軟體或硬體與軟體之組合中,亦可在電腦系統中以集中方式實現或以不同元件散佈於若干互連之電腦系統的分散方式實現。 Furthermore, the method for testing by using the independent control module of the present invention can be implemented in a combination of hardware, software or hardware and software, or can be implemented in a centralized manner in a computer system or spread over several different components by different components. Even the decentralized way of implementing computer systems.

雖然本發明所揭露之實施方式如上,惟所述之內容並非用以直接限定本發明之專利保護範圍。任何本發明所屬技術領域中具有通常知識者,在不脫離本發明所揭露之精神和範圍的前提下,對本發明之實施的形式上及細節上作些許之更動潤飾,均屬於本發明之專利保護範圍。本發明之專利保護範圍,仍須以所附之申請專利範圍所界定者為準。 While the embodiments of the present invention have been described above, the above description is not intended to limit the scope of the invention. Any modification of the form and details of the practice of the present invention, which is a matter of ordinary skill in the art to which the present invention pertains, is a patent protection of the present invention. range. The scope of the invention is to be determined by the scope of the appended claims.

步驟310‧‧‧主控端傳送測試命令至測試裝置,測試裝置包含控制模組及可程式邏輯元件 Step 310‧‧‧ The host transmits a test command to the test device, and the test device includes a control module and a programmable logic component

步驟320‧‧‧控制模組依據測試命令產生相對應之控制命令 Step 320‧‧‧ The control module generates a corresponding control command according to the test command

步驟330‧‧‧控制模組依序傳送控制命令至相對應之可程式邏輯元件 Step 330‧‧‧ The control module sequentially transmits control commands to the corresponding programmable logic components

步驟350‧‧‧可程式邏輯元件依據所接收到之控制命令控制所包含之通用輸入輸出埠,藉以對測試目標進行測試 Step 350‧‧‧ The programmable logic component controls the test target by controlling the included general input/output according to the received control command

步驟370‧‧‧控制模組產生測試結果 Step 370‧‧‧ Control module produces test results

步驟390‧‧‧控制模組接收主控端所傳送之收集指令,並傳送測試結果至主控端 Step 390‧‧‧ The control module receives the collection instruction transmitted by the host and transmits the test result to the host

Claims (10)

一種使用獨立控制模組進行測試之測試裝置,用以與一主控端連接,且與一測試目標連接,該測試裝置至少包含:一控制模組,用以接收該主控端所傳送之一測試命令,及依據該測試命令產生相對應之至少一控制命令,並依序傳送各該控制命令;及至少一可程式邏輯元件(Programmable Logic Device,PLD),每一該可程式邏輯元件包含多個通用輸入輸出(General Purpose I/O,GPIO)埠,用以依據該控制模組所傳送之至少一該控制命令控制至少一該通用輸入輸出埠,藉以對該測試目標進行測試。 A test device for testing with an independent control module for connecting to a host and connecting to a test target, the test device comprising at least: a control module for receiving one of the commands transmitted by the master Testing the command, and generating corresponding control commands according to the test command, and sequentially transmitting the control commands; and at least one Programmable Logic Device (PLD), each of the programmable logic components A general purpose input/output (General Purpose I/O, GPIO) port is configured to control at least one of the general purpose input and output ports according to at least one of the control commands transmitted by the control module, thereby testing the test target. 如申請專利範圍第1項所述之使用獨立控制模組進行測試之測試裝置,其中每一該可程式邏輯元件更包含一暫存器(register),用以提供各該可程式邏輯元件控制至少一該通用輸入輸出埠。 A test device for testing using an independent control module as described in claim 1, wherein each of the programmable logic elements further includes a register for providing control of each of the programmable logic elements. A general purpose input and output port. 如申請專利範圍第1項所述之使用獨立控制模組進行測試之測試裝置,其中每一該可程式邏輯元件是依據所接收到之一該控制命令,控制至少一該通用輸入輸出埠輸出一測試訊號至該測試目標,及/或控制至少一該通用輸入輸出埠接收該測試目標所產生之一回應訊號。 The test device for testing using an independent control module according to claim 1, wherein each of the programmable logic elements controls at least one of the universal input and output outputs according to one of the received control commands. Testing the signal to the test target and/or controlling at least one of the universal input/output/receiving one of the response signals generated by the test target. 如申請專利範圍第3項所述之使用獨立控制模組進行測試之測試裝置,其中該控制模組更用以讀取該些回應訊號,並比對各該回應訊號及與該被接收之控制命令對應之一預定資料以產生相對應之一測試結果。 A test device for testing using an independent control module as described in claim 3, wherein the control module is further configured to read the response signals and compare the response signals and the received control The command corresponds to one of the predetermined materials to generate a corresponding one of the test results. 如申請專利範圍第4項所述之使用獨立控制模組進行測試之測試裝置,其中該控制模組更用以於接收到該主控端所傳送之一收集指令後,傳送該測試結果至該主控端。 The test device for testing using an independent control module according to claim 4, wherein the control module is further configured to transmit the test result to the one after receiving the collection instruction sent by the main control terminal. The main control terminal. 如申請專利範圍第5項所述之使用獨立控制模組進行測試之測試裝置,其中該控制模組更用以輸出一通知訊號以通知該主控端傳送該收集指令。 The test device for testing using an independent control module according to claim 5, wherein the control module is further configured to output a notification signal to notify the host to transmit the collection instruction. 一種使用獨立控制模組進行測試之方法,該方法至少包含下列步驟:一主控端傳送一測試命令至一測試裝置,該測試裝置包含一控制模組及至少一可程式邏輯元件;該控制模組依據該測試命令產生相對應之至少一控制命令,並依序傳送各該控制命令至相對應之至少一該可程式邏輯元件;及各該可程式邏輯元件依據所接收到之至少一該控制命令控制所包含之至少一通用輸入輸出埠,藉以對一測試目標進行測試。 A method for testing using an independent control module, the method comprising at least the following steps: a host transmits a test command to a test device, the test device includes a control module and at least one programmable logic component; And generating, by the group, the corresponding at least one control command according to the test command, and sequentially transmitting each of the control commands to the corresponding at least one programmable logic element; and each of the programmable logic elements is controlled according to at least one of the received The command controls at least one general input/output port included to test a test target. 如申請專利範圍第7項所述之使用獨立控制模組進行測試之方法,其中各該可程式邏輯元件依據所接收到之該控制命令控制所包含之至少一通用輸入輸出埠之步驟包含各該可程式邏輯元件依據所接收到之該控制命令,控制至少一該通用輸入輸出埠輸出一測試訊號至該測試目標,及/或控制至少一該通用輸入輸出埠接收該測試目標所產生之一回應訊號之步驟。 The method for testing by using an independent control module according to claim 7, wherein each of the programmable logic elements includes at least one universal input/output according to the received control command. The programmable logic component controls at least one of the general purpose input and output outputs a test signal to the test target according to the received control command, and/or controls at least one of the universal input and output outputs to receive the test target. The steps of the signal. 如申請專利範圍第8項所述之使用獨立控制模組進行測試之方法,其中該方法於各該可程式邏輯元件依據所接收到之該控制命令控制所包含之至少一通用輸入輸出埠之步驟後,更包含讀取該些回應訊號,並比對各該回應訊號及與該被接收之控制命令對應之一預定資料以產生相對應之一測試結果之步驟。 The method of testing using an independent control module as described in claim 8 wherein the method controls the at least one general input/output included in the programmable logic element according to the received control command. Thereafter, the method further includes: reading the response signals, and comparing each of the response signals and one of the predetermined data corresponding to the received control command to generate a corresponding one of the test results. 如申請專利範圍第9項所述之使用獨立控制模組進行測試之方法,其中該方法更包含該控制模組於接收到該主控端所傳送之一收集指令後,傳送該測試結果至該主控端之步驟。 The method for testing by using an independent control module according to claim 9 , wherein the method further comprises: after receiving the collection instruction sent by the control terminal, transmitting the test result to the The steps of the main control terminal.
TW102145825A 2013-12-12 2013-12-12 Testing device using standalone control module for testing and method thereof TW201522998A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102145825A TW201522998A (en) 2013-12-12 2013-12-12 Testing device using standalone control module for testing and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102145825A TW201522998A (en) 2013-12-12 2013-12-12 Testing device using standalone control module for testing and method thereof

Publications (1)

Publication Number Publication Date
TW201522998A true TW201522998A (en) 2015-06-16

Family

ID=53935561

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102145825A TW201522998A (en) 2013-12-12 2013-12-12 Testing device using standalone control module for testing and method thereof

Country Status (1)

Country Link
TW (1) TW201522998A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314159A (en) * 2018-12-11 2020-06-19 英业达科技有限公司 Cabinet, and system and method for testing electronic device arranged in cabinet

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314159A (en) * 2018-12-11 2020-06-19 英业达科技有限公司 Cabinet, and system and method for testing electronic device arranged in cabinet
CN111314159B (en) * 2018-12-11 2022-12-23 英业达科技有限公司 Cabinet, and system and method for testing electronic device arranged in cabinet

Similar Documents

Publication Publication Date Title
JP4885316B2 (en) Test apparatus and test method
TWI434052B (en) Test system and method for testing electronic devices using a pipelined testing architecture
US8307235B2 (en) Cross controller clock synchronization
TWI436204B (en) Testing system and method for usb hub
US20120131403A1 (en) Multi-chip test system and test method thereof
US20180189157A1 (en) Blade centric automatic test equipment system
KR20150110526A (en) Embedded tester
US20150149842A1 (en) Test device and method using a separate control module for test
JP2011154023A (en) Test device and test method
CN110954808A (en) Limited pin test interface with analog test bus
US20140052881A1 (en) Systems and methods for concatenating multiple devices
CN102855150B (en) A kind of method and system to equipment burning information to be programmed
TWI742323B (en) Method for detecting a server
KR102148043B1 (en) Flexible test site synchronization
US10073801B2 (en) Computer and method of controlling I/O switch of computer
TW201522998A (en) Testing device using standalone control module for testing and method thereof
TWI452315B (en) Fixture, system and method for performing functional test
US8429591B2 (en) Methods and apparatus for single testing stimulus
US20200225286A1 (en) Test apparatus and test method
TW201439750A (en) Universal serial bus testing device
CN214311726U (en) A adapter plate for prototype is verified
CN111221684B (en) Detection method of server
US8521463B2 (en) System for performing electrical characterization of asynchronous integrated circuit interfaces
JP2018194548A (en) Method for identifying wiring topology
US9509633B2 (en) Multi-switching device and multi-switching method thereof