TW200844730A - Testing system of universal serial bus device and method thereof - Google Patents

Testing system of universal serial bus device and method thereof Download PDF

Info

Publication number
TW200844730A
TW200844730A TW96117116A TW96117116A TW200844730A TW 200844730 A TW200844730 A TW 200844730A TW 96117116 A TW96117116 A TW 96117116A TW 96117116 A TW96117116 A TW 96117116A TW 200844730 A TW200844730 A TW 200844730A
Authority
TW
Taiwan
Prior art keywords
test
output
usb
input
computer system
Prior art date
Application number
TW96117116A
Other languages
Chinese (zh)
Other versions
TWI361351B (en
Inventor
Chang-Li Tu
Original Assignee
Via Tech Inc
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 Via Tech Inc filed Critical Via Tech Inc
Priority to TW96117116A priority Critical patent/TWI361351B/en
Publication of TW200844730A publication Critical patent/TW200844730A/en
Application granted granted Critical
Publication of TWI361351B publication Critical patent/TWI361351B/en

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

A testing system of a universal serial bus (USB) device for performing a copy and compare test via first computer system comprises a logic analyzer and a test fixture. The logic analyzer is for detecting the accessing operation of the USB device and triggering a pulse signal on a driving signal when accessing operation error occurs. The test fixture is for receiving the driving signal and altering the level of a general purpose input and output (GPIO) signal from high to low for controlling the first computer system stop the copy and compare test when the test fixture receives the pulse signal.

Description

200844730200844730

二·沉· TW3459PA _ 九、發明說明: 【發明所屬之技術領域】 本發明是有關於一種通用序列匯流排(Universa 1 Serial Bus,USB)裝置之測試系統,且特別是有關於一種 可有效地於USB裝置操作錯誤時保存對應之傳輸資訊的測 試系統。 【先前技術】 由於通用序列匯流排(Un丨versal Serial Bus,USB)裝 置具有隨差即用、高支援性與高傳輪效率等優點而已廣泛 地應用在各種電子產品中,如讀卡機(Card Reader)。一般 多透過電齡絲錢USB裝置及執行軟體來重複對 USB裝置進行複製比對(CQpy 〇。叫3⑼操作,並透 過包括邏輯分析儀(L〇gjc Ana|yzer)及USB協定分析儀分 裝置之存取操作及顯示包括USB傳輸協定 指令與育料封包之傳輸資訊。 盆係析,測到咖裝置發生存取操作錯誤時 i輸資π 協疋分析齡留對應於此存取操作錯誤之 ‘裝^如此,操作者可以根據對應之傳輸資訊來對 咖F L =錯。因此’如何找出可有效地保存對應於 方向1赠錯誤之傳輸#_手段為業界不斷致力的 5· TW3459PA _ IX, invention description: [Technical field of the invention] The present invention relates to a universal serial bus (USB) device test system, and in particular, an effective A test system that stores corresponding transmission information when the USB device operates incorrectly. [Prior Art] Since the Universal Serial Bus (USB) device has advantages such as easy-to-use, high support, and high transmission efficiency, it has been widely used in various electronic products, such as card readers ( Card Reader). In general, the USB device is repeatedly copied and compared by the USB device and the execution software (CQpy 〇. 3(9) operation, and through the logic analyzer (L〇gjc Ana|yzer) and the USB protocol analyzer device The access operation and display include the transmission information of the USB transmission protocol command and the nurturing packet. When the access control operation error occurs when the coffee device is detected, the π 疋 疋 analysis analysis age corresponds to the access operation error. 'Install ^ so, the operator can use the corresponding transmission information to the coffee FL = wrong. So 'how to find out that can effectively save the transmission corresponding to the direction 1 gift error #_ means the industry is constantly committed 5

TW3459PA 200844730 【發明内容】 .本發明係㈣於—鶴用序龍動卜(Universa 1 Sei^l Bus,_裝置之測試裝置及其料,其可有效地 =系ί中保留於嶋定分析儀,對應至操作 二J貝訊*易被操作錯誤時間點之後的傳輸資訊 效地保存之缺點,而實質上具有可有效地驅 動協疋/刀析儀保留對應之傳輸資訊之優點。 〜:據本發明提出-種_裝置之测試系統,用以經由 弟一电腦系統對㈣裝置進行複製比對測試(Copy and C〇:Pa^) 〇 Anaiyzer)^ 物口具。邏輯分析儀用以偵測USB裝置之存取操作 時㈣、^ Γ ^具接收驅動訊號並於接收到脈波 =控制通用輸人輸出(General pur_ Input _ utput ’ GPIO)威號之位準由高位準變為☆ 一電腦系統終止複製比制試、w…準以驅動第 根據本發明提出-種USB裝置之測試方法,牛 驟.提供電腦系統來對USB裝置進行複製比對$ ζ USB裝置之存取操作是否發生錯誤;當咖裝置^存= 作發生錯誤時於驅動訊號上產生脈波;及回庫脈:雨 本發月之上述内谷能更明顯易懂,下文特舉-較 仫心例’並配合所附圖式’作詳細說明如下: 200844730TW3459PA 200844730 [Summary of the Invention] The present invention is based on (4) in the crane and the use of the device (Universa 1 Sei^l Bus, _ device test device and its material, which can be effectively = system 保留 retained in the 分析 analyzer Corresponding to the shortcomings of the operation information of the second operation, the transmission information is saved after the operation error time point, and substantially has the advantage of effectively driving the coordination/knife analyzer to retain the corresponding transmission information. The invention proposes a test system for the device to perform a copy comparison test (Copy and C〇: Pa^) 〇Anaiyzer) on the (4) device via the brother-computer system. The logic analyzer is used to detect the access operation of the USB device (4), ^ Γ ^ receiving the driving signal and receiving the pulse wave = controlling the general input output (General pur_ Input _ utput ' GPIO) The high level becomes ☆ A computer system terminates the copying than the test, w...the driver is proposed according to the present invention - a USB device test method, providing a computer system to copy the USB device to the comparison device ζ USB device Whether the access operation has an error; when the coffee device is stored = an error occurs on the drive signal to generate a pulse wave; and back to the library pulse: the above-mentioned inner valley of the rainy month is more obvious and easy to understand, the following special - more The following is a detailed description of the example 'with the drawing': 200844730

二遂緬魷.TW3459PA ^ 【實施方式】 本實施例之通用序列匯流排(Universal Serial Bus,USB)裝置之測試系統係透過特殊測試治具來提供與 電腦系統相容之訊號以於USB裝置操作錯誤時停止電腦系 統執行之複製比對(Copy and Compare)操作。 請參照第1及第2圖’第1圖I會示依照本發明較佳實 施例之USB裝置之測試系統的方塊圖,第2圖繪示乃第} 圖中部分訊號的波形圖。USB裝置之測試系統1〇用以對 鲁 USB裝置進行複製比對(Copy and Compare)測試,本實施 例之測試系統10係經由被程式化來執行複製比對測試之 電腦系統120來透過USB存取USB裝置以對其進行複製比 對測試。 在本實施例中USB裝置例如為讀卡機122,其與具有 相容規格之記憶卡124相連接,而本實施例之測試系統1〇 用以對讀卡機122存取與記憶卡124之功能進行複製比對 測試〇遂 遂 TW TW TW3459PA ^ [Embodiment] The test system of the universal serial bus (USB) device of the present embodiment provides a signal compatible with the computer system for operation of the USB device through a special test fixture. When the error occurs, the copy and compare operations performed by the computer system are stopped. Referring to Figures 1 and 2, Figure 1 is a block diagram of a test system for a USB device in accordance with a preferred embodiment of the present invention, and Figure 2 is a waveform diagram of a portion of the signal in the Figure. The test system 1 of the USB device is configured to perform a copy and compare test on the Lu USB device. The test system 10 of the present embodiment is stored via the USB via the computer system 120 that is programmed to perform the copy comparison test. The USB device is taken to perform a copy comparison test. In this embodiment, the USB device is, for example, a card reader 122, which is connected to a memory card 124 having a compatible specification, and the test system 1 of the embodiment is used to access the card reader 122 and the memory card 124. Function for copy comparison test〇

測試系統10包括邏輯分析儀(Logic Analyzer) 126、 測試治具128、USB協定分析儀130及電腦系統132。USB 協定分析單元130分別經由USB 12與14與電腦系統120 及讀卡機122耦接,以於測試系統1〇進行複製比對測試 時分析電腦系統120與讀卡機122間包括USB通訊協定指 令與資料封包之傳輸資訊。USB協定分析單元130更包括 暫存器(Buffer),用以於各操作時間點暫存對應之操作時 間點前後特定時間内之傳輸資訊。電腦系統132連接至USB 7 200844730The test system 10 includes a logic analyzer (Logic Analyzer) 126, a test fixture 128, a USB protocol analyzer 130, and a computer system 132. The USB protocol analysis unit 130 is coupled to the computer system 120 and the card reader 122 via the USB 12 and 14 respectively, so that the test system 1 performs the copy comparison test, and the analysis between the computer system 120 and the card reader 122 includes a USB protocol. Transmission information with data packets. The USB protocol analysis unit 130 further includes a buffer (Buffer) for temporarily storing the transmission information at a specific time before and after the corresponding operation time point at each operation time point. Computer system 132 is connected to USB 7 200844730

二激麻鱿:TW3459PA 協疋分析單元130,用以被程式化來控制USB協定分析單 元130之動作並顯示對應之分析訊號。 邏輯分析儀126係與記憶卡124中對應之檢測接腳 (未繪示)相連接,以根據其上之訊號來偵測讀卡機122與 §己饫卡124間之存取操作。邏輯分析儀126並用以於偵測 到讀卡機122與記憶卡124間之存取操作發生錯誤時於驅 動訊號Sd上產生脈波(puise)p。邏輯分析儀126例如具 有BNC接頭(Bayonet-Naui* Connector)以透過同軸纜線 (Coaxial Cable)來輸出驅動訊號sd。 測試治具128分別與邏輯分析儀126及電腦系統12〇 耦接以接收驅動訊號sd及輸出通用輸入輸出(GeneralThe second numbness: TW3459PA protocol analysis unit 130 is used to be programmed to control the action of the USB protocol analysis unit 130 and display the corresponding analysis signal. The logic analyzer 126 is coupled to a corresponding detection pin (not shown) of the memory card 124 to detect an access operation between the card reader 122 and the card 124 according to the signal thereon. The logic analyzer 126 is further configured to generate a pulse p on the driving signal Sd when detecting an error in the access operation between the card reader 122 and the memory card 124. The logic analyzer 126 has, for example, a BNC connector (Bayonet-Naui* Connector) for outputting the drive signal sd through a coaxial cable. The test fixture 128 is coupled to the logic analyzer 126 and the computer system 12A to receive the driving signal sd and output the general-purpose input and output (General

Purpose I_t and Output,GPI〇)訊號 S—GPI0。其中通 用輸入輸出吼號S-GP10之預設位準例如為高位準。而測 試治具128更用以回應於脈波p之上升緣(Rising Edge) 來控制通用輸入輸出訊號S—GPI0之位準由高位準變為低 ⑩ 位準以產生下降緣(Falling Edge)。 電腦系統120包括通用輸入輸出接腳(未繪示)來接收 通用輸入輪出訊號S-GPI0,而電腦系統12〇係用以被程式 化來回應其通用輸入輸出接腳接收之通用輸入輸出訊號 S-GPI0,下降緣(Falling Edge)終止複製比對測試。 本實施例之測試系統ίο於偵測到讀卡機122與記憶 卡124間之存取錯誤時經由包括邏輯分析儀126與測試治 ’、128之路徑來驅動電細系、统12〇終止複製比對測試,使 終止電腦系統120與讀卡機122間之_傳輸,而腸12 8 200844730Purpose I_t and Output, GPI〇) Signal S-GPI0. The preset level of the general-purpose input and output nickname S-GP10 is, for example, a high level. The test fixture 128 is further configured to control the general input/output signal S_GPI0 from the high level to the low level 10 to generate a falling edge in response to the rising edge of the pulse wave p (Rising Edge). The computer system 120 includes a universal input/output pin (not shown) for receiving the universal input round-trip signal S-GPI0, and the computer system 12 is configured to be programmed to respond to the general-purpose input and output signals received by the universal input/output pin. S-GPI0, Falling Edge terminates the replication alignment test. The test system of the embodiment is configured to drive the electrical system through the path including the logic analyzer 126 and the test process, 128 when the access error between the card reader 122 and the memory card 124 is detected. The comparison test terminates the transmission between the computer system 120 and the card reader 122, while the intestines 12 8 200844730

二達編號:TW3459PA •與14上之資料流量實質上接近於零。如此,可有效地於 存取錯誤發生時避免USB協定分析们射暫存之對應至 操作錯誤之傳輸資訊被此時間點後之傳輸資訊覆蓋而無 法有校地保存之問題。這樣一來,本實施例之測試系統1〇 可有效地保存對應至存取操作錯誤 請參照第3圖,其繪示乃第二m轉 細方塊圖。測試治具128例如包括單晶片系統腕及非 揮發性5己憶體,其中非揮發性記憶體例如為快閃記憶體 攀128b。單晶片系統128a包括通用輸入輸出接腳m]33、 處理器134及隨機存取記憶體138。通用輸入輸出接腳l3i 及133分別耦接至邏輯分析儀126及電腦系統。 處理器134用以被程式化來設定通用輸入輸出接腳 及131分別為輸入接腳及輸出接腳,以分別接收驅動 訊號sd及輸出通用輸入輸出訊號s—Gpi〇。處理器134更 被程式化來於通用輸入輸出接腳133接收到脈波p時改變 # 通甩輸入輸出訊號S_GPI0之位準為低位準。 其中快閃記憶體128b中儲存用以執行上述操作之程 式碼並將對應之程式碼儲存於隨機存取記憶體136中。 如此,處理器134係執行隨機存取記憶體136中之程 以被程式化來執行上述之操作。 1 在本實施例中,測試治具128具有與讀卡機122實質 上相同之硬體結構,其不同之處係在於其中包含之快閃言1 憶體係存有不同之程式碼,以驅動其分別執行不同之操 作如此’測試治具128更例如包括:USB控制器138、、 200844730Erda number: TW3459PA • The data flow with 14 is substantially close to zero. In this way, it is possible to effectively avoid the problem that the transmission information corresponding to the operation error of the USB protocol analysis is overwritten by the transmission information after the time point when the access error occurs, and there is no problem of saving the school. In this way, the test system 1 of the present embodiment can effectively save the corresponding access operation error. Please refer to FIG. 3, which is a second m-transition block diagram. The test fixture 128 includes, for example, a single wafer system wrist and a non-volatile 5 memory, wherein the non-volatile memory is, for example, a flash memory 128b. The single chip system 128a includes a general purpose input and output pin m] 33, a processor 134, and a random access memory 138. The general purpose input and output pins l3i and 133 are coupled to the logic analyzer 126 and the computer system, respectively. The processor 134 is configured to be programmed to set the general-purpose input and output pins and 131 as input pins and output pins, respectively, to receive the driving signal sd and the output general-purpose input/output signal s-Gpi. The processor 134 is further programmed to change when the general-purpose input/output pin 133 receives the pulse wave p. The level of the input/output signal S_GPI0 is low. The flash memory 128b stores a program code for performing the above operation and stores the corresponding code in the random access memory 136. Thus, processor 134 executes the process in random access memory 136 to be programmed to perform the operations described above. In the present embodiment, the test fixture 128 has substantially the same hardware structure as the card reader 122, except that the flash memory 1 contains a different code to drive the test fixture 128. Different operations are performed separately. Thus, the test fixture 128 includes, for example, a USB controller 138, 200844730.

三達編號:TW3459PA 微型快閃記憶體(CompactFlash,CF)控制器140、智慧型 多媒體(SmartMedia,SM)/極限數位(Extreme Digital, xD)快閃記憶體控制器142及安全數位(Secure Digital, SD)/多媒體卡(Multimedia Card,MMC)快閃記憶體控制器 144其中之一或全部,其係均透過内部匯流排與處理器134 相連接。 在本實施例中使用者除了用以驅動電腦系統12〇執行 馨對應之程式來執行複製比對操作,使用者更透過電腦系統 120之系統程式提供之軟體開發套件,如微軟(Micr〇s〇ft) 作業系統提供之周邊開發套件(Driver Devel卯 Kit,DM)工具來產生驅動程式來驅動電腦系統12〇回應 其通用輸入輸出接腳接收之通用輸入輸出訊號S-GpI〇的 下降緣來停止其複製比較操作。 請參照第4圖,其繪示依照本發明較佳實施例之USB 裝置之測試方法的流程圖。首先如步驟(a),提供電腦系 _ 統120來對USB裝置進行複製比對測試,在本實施例中USB 裝置為與對應格式之記憶卡丨24耦接之讀卡機122。 接著如步驟(b),經由邏輯分析儀126來判斷讀卡機 122存取記憶卡124之操作是否發生錯誤;若是執行步驟 (c),邏輯分析儀126係於其輸出之驅動訊號3(1上產生脈 波P。之後如步驟(d),測試治具128回應脈波p改變通用 輸入輸出訊號S-GPI0之位準由高位準變為低位準,並輸 出通用輸入輸出訊號SJJPIO至電腦系統12〇以控制其停 止複製比對測試。 200844730Sanda number: TW3459PA Compact Flash (CF) controller 140, SmartMedia (SM) / Extreme Digital (xD) flash memory controller 142 and Secure Digital (Secure Digital, One or all of the SD)/Multimedia Card (MMC) flash memory controllers 144 are connected to the processor 134 via an internal bus. In this embodiment, the user develops a software development kit such as Microsoft (Micr〇s〇) provided by the system program of the computer system 120 in addition to the computer system 12 for executing the program corresponding to the execution of the copy comparison operation. Ft) The Driver Devel卯Kit (DM) tool provided by the operating system to generate a driver to drive the computer system 12 to respond to the falling edge of the general-purpose input/output signal S-GpI〇 received by its universal I/O pin. It replicates the comparison operation. Please refer to FIG. 4, which is a flow chart showing a test method of a USB device according to a preferred embodiment of the present invention. First, as step (a), the computer system 120 is provided to perform a copy comparison test on the USB device. In the embodiment, the USB device is a card reader 122 coupled to the memory card 24 of the corresponding format. Then, as step (b), the logic analyzer 126 determines whether the card reader 122 accesses the memory card 124 by an error; if the step (c) is performed, the logic analyzer 126 is connected to the output of the driving signal 3 (1). Pulse wave P is generated. Then, in step (d), the test fixture 128 responds to the pulse wave p to change the level of the general input/output signal S-GPI0 from the high level to the low level, and outputs the general input and output signal SJJPIO to the computer system. 12〇 to control its stop copy comparison test. 200844730

二達編號:TW3459PA 其中步驟(d)更例如包括下列之步驟,其中在各步驟 中系統單晶片128a係均複製快閃記憶體128b中對應之程 式碼至隨機存取記憶體136中,而處理器134係回應於隨 機存起記憶體136中之程式碼來執行對應之操作。首先如 步驟(dl) ’系統單晶片i28a開始自快閃記憶體i28b中讀 取對應之程式碼,如開機碼至隨機存取記憶體136,而處 理器134係執行隨機存取記憶體136中之程式碼來以啟動 _ 測減治具12 8。 接著如步驟(d2),處理器134被程式化來設定通用輸 入輸出接腳133為輸入接腳以接收驅動訊號S(i。然後如步 驟(d3)’處理器134被程式化來設定通用輸入輸出接腳i3l 為輸出接腳,以輸出通用輸入輸出訊號s_Gpi〇,其中通用 輸入輸出訊號S_GPI0之起始位準為高位準。接著如步驟 (J14) ’處理器134被程式化來判斷通用輸入輸出接腳 疋否接收到脈波P ;若是執行步驟(d5),處理器134被程 • 式化來控制通用輸入輸出訊號S—GPIO之位準由高位準變 為低位準。 其中而於步驟(d4)中,若通用輸入輸出接腳133未接 $到脈波P時係重複執行步驟(d4)。而於步驟(1))中,若 喝卡機122之存取操作未發生錯誤時係重複執行步驟(b)。 在本實施例中雖僅以與讀卡機122具有實質上相同之 硬體結構之測試治具128來產线用輸入輸出訊號s_Gpi〇 來停止電腦系統12〇之複製比對操作的情形為例做說明, 本貫施例中應用之測試治具128並不侷限於與讀卡機 200844730 三達編號:TW3459PA 122具有相同硬體結構,而更可為其他結構;只要測試治 具128可回應於驅動訊號Sd中之脈波P來產生對應之通 用輸入輸出訊號S-GPI0者均不脫離本實施例之技術範圍。 在本實施例中雖僅以USB裝置為讀卡機122之情形為 例做說明,然,本實施例之USB裝置並不侷限於為讀卡機 122而更可為其他USB裝置。Erda number: TW3459PA, wherein step (d) further includes the following steps, wherein in each step, the system single chip 128a copies the corresponding code in the flash memory 128b into the random access memory 136, and processes The 134 is responsive to the code stored in the memory 136 to perform the corresponding operation. First, as shown in step (dl), the system single chip i28a starts to read the corresponding code from the flash memory i28b, such as the boot code to the random access memory 136, and the processor 134 executes the random access memory 136. The code is used to start the _ test fixture 12 8 . Then, as in step (d2), the processor 134 is programmed to set the general-purpose input/output pin 133 as an input pin to receive the drive signal S (i. Then, as in step (d3), the processor 134 is programmed to set the universal input. The output pin i3l is an output pin to output a general-purpose input/output signal s_Gpi〇, wherein the start level of the general-purpose input/output signal S_GPI0 is a high level. Then, as step (J14), the processor 134 is programmed to determine the universal input. The output pin receives the pulse wave P; if the step (d5) is executed, the processor 134 is programmed to control the level of the general-purpose input/output signal S_GPIO from the high level to the low level. In (d4), if the general-purpose input/output pin 133 is not connected to the pulse wave P, the step (d4) is repeatedly executed. In the step (1)), if the access operation of the card dispenser 122 does not occur. Repeat step (b). In the present embodiment, the test fixture 128 having substantially the same hardware structure as the card reader 122 is used to stop the copying operation of the computer system 12 by the input/output signal s_Gpi〇. It should be noted that the test fixture 128 used in the present embodiment is not limited to the same hardware structure as the card reader 200844730 Sanda number: TW3459PA 122, but may be other structures; as long as the test fixture 128 can respond to The pulse wave P in the driving signal Sd is generated to generate the corresponding general-purpose input/output signal S-GPI0 without departing from the technical scope of the embodiment. In the embodiment, the case where the USB device is the card reader 122 is taken as an example. However, the USB device of the embodiment is not limited to the card reader 122 but may be other USB devices.

本實施例之ϋ S B裝置之測試系統係以與待測試之讀卡 機具有實質上相同硬體結構之測試治具來回應於邏輯分 析儀回應於讀卡機之存取操作錯誤提供之驅動訊號產生 通用輸入輸出訊號,並以其停止電腦系統執行之複製比對 (Copy and Compare)操作。如此,本實施例之usB裝置之 測試系統可有效地改善傳統測試系統中保留於U s B協定分 析儀中對應轉作錯誤之傳輸資絲易被猶錯誤時間 點之後的傳輸資喊蓋而紐有效㈣存之缺點,而實質 上具有可有效地驅動USB協定分析儀保留對應之傳輸資訊 綜上所述’雖然本發明已以一較佳實施例揭露如上, 然其亚^用Μ限定本發明。本發明所屬技術領域中具有 常知識者’在不脫離本發明之精神和範圍内,當可作各^ 因此’本發明之保護範圍當視後附之申, 專利乾圍所界定者為準。 Ύ ^ 12 200844730The test system of the SB device of the present embodiment responds to the driving signal provided by the logic analyzer in response to the access operation error of the card reader by using a test fixture having substantially the same hardware structure as the card reader to be tested. Generates a general-purpose input and output signal and uses it to stop the copy and compare operations performed by the computer system. In this way, the test system of the usB device of the embodiment can effectively improve the transmission of the corresponding test in the U s B protocol analyzer in the U s B protocol, which is easy to be transmitted after the error time. Effective (4) shortcomings, and substantially have the ability to effectively drive the USB protocol analyzer to retain the corresponding transmission information. Although the present invention has been disclosed in a preferred embodiment, the present invention is used to define the present invention. . It is to be understood that the scope of the invention is intended to be embraced by the appended claims. Ύ ^ 12 200844730

二连麻航 * TW3459PA ’ 【圖式簡單說明】 第1圖繪示依照本發明較佳實施例之USB裝置之測試 糸統的方塊圖。 第2圖繪示乃第1圖中部分訊號的波形圖。 第3圖繪示乃第1圖中測試治具128的詳細方塊圖。 第4圖繪示依照本發明較佳實施例之1^6裝置之測試 方法的流程圖。 _ 【主要元件符號說明】 10 : USB裝置之測試系統 12 、 14 : USB 120、132 :電腦系統 122 :讀卡機 124 :記憶卡 126 :邏輯分析儀 128 :測試治具 • 128a :系統單晶片 128b:快閃記憶體 130 : USB協定分析儀 131、133 :通用輸入輸出接腳 134 :處理器 136 :隨機存取記憶體 138: USB控制器Erlang Ma Hang * TW3459PA ' [Simple Description of the Drawings] Fig. 1 is a block diagram showing a test system of a USB device in accordance with a preferred embodiment of the present invention. Figure 2 is a waveform diagram of a portion of the signal in Figure 1. Figure 3 is a detailed block diagram of the test fixture 128 in Figure 1. Figure 4 is a flow chart showing the test method of the 1^6 device in accordance with a preferred embodiment of the present invention. _ [Main component symbol description] 10 : USB device test system 12, 14 : USB 120, 132 : Computer system 122 : Card reader 124 : Memory card 126 : Logic analyzer 128 : Test fixture • 128a : System single chip 128b: Flash memory 130: USB protocol analyzer 131, 133: General-purpose input/output pin 134: Processor 136: Random access memory 138: USB controller

140、142、144 : CF 控制器、SM/xD 控制器、SD/MMC 控制器 13140, 142, 144: CF controller, SM/xD controller, SD/MMC controller 13

Claims (1)

200844730 三達編號:TW3459PA ' 十、申請專利範圍: 1· 一種通用序列匯流排(Universal Serial Bus,USB) 裝置之測試系統,用以經由一第一電腦系統對一 USB裝置 進行複製比對測試(Copy and Compare),該測試系統包括: 一邏輯分析儀(Logic Analyzer),用以偵測該USB裝 置之存取操作,並於偵測到該USB裝置之存取操作發生錯 誤時於一驅動訊號上產生一脈波(Pulse);以及 一測試治具,接收該驅動訊號並於接收到該脈波時控 制一通用輸入輸出(General Purpose Input and Output, GPIO)訊號之位準由高位準變為低位準,以驅動該第一電 腦系統終止複製比對測試。 2·如申請專利範圍第1項所述之測試系統,其中該 測試治具包括: 一弟一通用輸入輸出接腳及一第二通用輸入輸出接 腳’分別轉接至該邏輯分析儀及該第一電腦系統;及 _ 一處理器,用以被程式化來設定該第一及該第二通用 輸入輸出接腳分別為輸入及輸出接腳,以分別接收該驅動 吼號及輸出該通用輸入輸出訊號,該處理器並於該第一通 用輸入輸出接腳接收到該脈波時改變該通用輸入輸出訊 號之位準為低位準。 3·如申請專利範圍第1項所述之測試系統,更包括: 一 USB協定分析單元,該第一電腦系統係經由該USB 協定分析,元連接至該USB裝置,該USB協定分析單元用 以分析該第一電腦系統與該USB裝置間之USB通訊協定; 200844730 三逶編號:TW3459PA • 及 一弟二電腦系統’連接至該_協定分析單元,用以 子程式化來控制並顯示該USB蚊分析單元之分析操作。 4.如申請專利範圍第i項所述之測試系統,盆中 測試治具與該_震置具有實質上相等之硬體結構 # 5.如^請專利範圍第1項所述之測試系統,其中該 弟-電腦糸統連接至該USB震置,用以自該咖裝置中存200844730 Sanda number: TW3459PA ' X. Patent application scope: 1. A universal serial bus (USB) device test system for copying and comparing a USB device via a first computer system ( Copy and Compare), the test system includes: a logic analyzer (Logic Analyzer) for detecting an access operation of the USB device, and detecting a drive signal when the access operation of the USB device is incorrect Generating a pulse (Pulse); and a test fixture, receiving the driving signal and controlling the level of a General Purpose Input and Output (GPIO) signal to change from a high level to receiving the pulse wave The low level is used to drive the first computer system to terminate the replication comparison test. 2. The test system of claim 1, wherein the test fixture comprises: a first-one universal input/output pin and a second universal input/output pin respectively transferred to the logic analyzer and the a first computer system; and a processor configured to be programmed to set the first and second universal input and output pins as input and output pins, respectively, to receive the drive signal and output the universal input Outputting a signal, and the processor changes the level of the general-purpose input and output signal to a low level when the first universal input/output pin receives the pulse wave. 3. The test system of claim 1, further comprising: a USB protocol analysis unit, wherein the first computer system is analyzed by the USB protocol, and the element is connected to the USB device, and the USB protocol analysis unit is used for A USB communication protocol between the first computer system and the USB device is analyzed; 200844730 逶3: TW3459PA • and a second computer system are connected to the _ protocol analysis unit for sub-programming to control and display the USB mosquito Analysis unit analysis operation. 4. In the test system described in claim i, the test fixture in the basin has a substantially identical hardware structure to the oscillating surface. 5. The test system described in claim 1 of the patent scope, The younger brother-computer is connected to the USB, and is stored in the coffee device. 取-測試㈣’並輯該職㈣與— 複製比對測試。 叶术執仃該 6·-種通用序列匯流排(UniversalSeriaiB此,觸 裝置之測試方法,包括: (a) 提供-電腦系統來對—裝置進行複製比對測 試(Copy and Compare); (b) 判斷該USB裝置之存取操作是否發生錯誤; (c) 當該USB裝置之存取操作發生錯誤時於一驅動訊 號上產生一脈波(Pulse);以及 (d) 回應該脈波改變一通用輸入輸出(Generai Purpose Input and Output,GPI0)訊號之位準由高位準 變為低位準,以控制該電腦系統停止複製比對測試。 7·如申請專利範圍第6項所述之測試方法,其中步 驟(d)更包括: (dl)啟動一測試治具,該測試治具包括一第一通用 輸入輸出接腳及一第二通用輸入輸出接腳; (d2)設定該第一通用輸入輸出接腳為輸入接腳以接 15 200844730 二達編航.rW3459PA 收該驅動訊號; (d3)設定該第二通用輸入輸出接腳為輸出接腳以輸 出高位準之該通用輸入輸出訊號; (d4)判斷該第一通用輸入輸出接腳是否接收到該脈 波;及 (d5)當該第一通用輸入輸出接腳接收到該脈波時控 制該通用輸入輸出訊號之位準由高位準變為低位準。Take-test (four)' and compile the job (four) and - copy the comparison test. Ye Shu is responsible for the 6--general sequence bus (UniversalSeriaiB, the test method of the touch device, including: (a) providing - computer system to - copy and compare the device (Copy and Compare); (b) Determining whether an error occurs in the access operation of the USB device; (c) generating a pulse on a driving signal when an error occurs in the access operation of the USB device; and (d) responding to the pulse wave to change a general pulse The level of the input and output (Generi Purpose Input and Output, GPI0) signal changes from a high level to a low level to control the computer system to stop the copy comparison test. 7 · The test method described in claim 6 of the patent application, wherein The step (d) further includes: (dl) starting a test fixture, the test fixture includes a first universal input/output pin and a second universal input/output pin; (d2) setting the first universal input/output connection The foot is an input pin to connect 15 200844730 Erda Navigator. rW3459PA receives the driving signal; (d3) sets the second general-purpose input and output pin as an output pin to output the high-level general-purpose input and output signal; (d4) Determining whether the first universal input/output pin receives the pulse wave; and (d5) controlling the level of the general-purpose input/output signal to change from a high level to a low level when the first universal input/output pin receives the pulse wave quasi. 8·如申請專利範圍第7項所述之測試方法,其中於 步驟(d4)之後更包括: 當該第一通用輸入輸出接腳未接收到該脈波時係重 複執行步驟W4)。 9·如申請專利範圍第6項所述之測試方法,其中於 步驟(b)之後更包括: ' 當該USB裝置之存取操 驟(b)。 作未發生錯誤時係重複執行步8. The test method of claim 7, wherein after the step (d4), the method further comprises: repeating the step W4) when the first universal input/output pin does not receive the pulse. 9. The test method of claim 6, wherein after step (b) further comprises: 'when the USB device is accessed (b). Repeat steps when no error occurs 1616
TW96117116A 2007-05-14 2007-05-14 Testing system of universal serial bus device and method thereof TWI361351B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW96117116A TWI361351B (en) 2007-05-14 2007-05-14 Testing system of universal serial bus device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW96117116A TWI361351B (en) 2007-05-14 2007-05-14 Testing system of universal serial bus device and method thereof

Publications (2)

Publication Number Publication Date
TW200844730A true TW200844730A (en) 2008-11-16
TWI361351B TWI361351B (en) 2012-04-01

Family

ID=44822700

Family Applications (1)

Application Number Title Priority Date Filing Date
TW96117116A TWI361351B (en) 2007-05-14 2007-05-14 Testing system of universal serial bus device and method thereof

Country Status (1)

Country Link
TW (1) TWI361351B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI413905B (en) * 2010-03-24 2013-11-01 Inventec Corp Apparatus for testing usb ports
TWI416133B (en) * 2009-06-22 2013-11-21 Hon Hai Prec Ind Co Ltd Fixture and method for testing a card reader

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI472783B (en) * 2012-12-28 2015-02-11 Zeroplus Technology Co Ltd Data capture and detection method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI416133B (en) * 2009-06-22 2013-11-21 Hon Hai Prec Ind Co Ltd Fixture and method for testing a card reader
TWI413905B (en) * 2010-03-24 2013-11-01 Inventec Corp Apparatus for testing usb ports

Also Published As

Publication number Publication date
TWI361351B (en) 2012-04-01

Similar Documents

Publication Publication Date Title
Axelson USB complete
US7945899B2 (en) Method and system for remote software testing
US20070288937A1 (en) Virtual Device Driver
JPH05341923A (en) Protocol for providing bi-directional communicating capability and method therefor
CN106547636A (en) Debugging system and method
TW200844730A (en) Testing system of universal serial bus device and method thereof
TW409204B (en) Expansion interface conversion device and conversion method therefor
US20100191945A1 (en) Portable device with user interface
WO2014000299A1 (en) Serial port redirection processing method, device, and system
CN114691223B (en) Method and device for transmitting BIOS logs through network
Van Tonder et al. Lowering the {USB} Fuzzing Barrier by Transparent {Two-Way} Emulation
TWI230857B (en) Automatic motherboard testing system and method
US10216525B1 (en) Virtual disk carousel
JP2005284953A (en) Automatic performance apparatus, automatic performance method, medium with automatic performance program recorded thereon, function adding device, and usb connection wireless lan adapter
TW200945028A (en) Computer system error detecting method and electronic device
TWI383294B (en) System to identify components of a data communications architecture
JP4562439B2 (en) Program verification system and computer program for controlling program verification system
TW550452B (en) Power-on self test device and the method thereof
JP6911082B2 (en) How to generate scripts for mobile terminals based on actual use with status information
TWI794997B (en) Method and apparatus and computer program product for debugging solid state disk devices
CN113114783B (en) Computer data migration device and method
EP1914628A1 (en) Method for changing booting sources of computer system and related backup/restore method thereof
TWI335503B (en) The apparatus and method for testing ps/2 interface
Lee et al. USB Write Blocking and Forensics
JP4945966B2 (en) Embedded device