TW201227278A - Automatic configuring method for identification of test devices - Google Patents

Automatic configuring method for identification of test devices Download PDF

Info

Publication number
TW201227278A
TW201227278A TW99145347A TW99145347A TW201227278A TW 201227278 A TW201227278 A TW 201227278A TW 99145347 A TW99145347 A TW 99145347A TW 99145347 A TW99145347 A TW 99145347A TW 201227278 A TW201227278 A TW 201227278A
Authority
TW
Taiwan
Prior art keywords
test
identification
sequence
register
downstream
Prior art date
Application number
TW99145347A
Other languages
Chinese (zh)
Other versions
TWI412926B (en
Inventor
Quan-Jie Zheng
ya-jing Fan
Xiao Jiang
Chih-Feng Chen
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 TW99145347A priority Critical patent/TWI412926B/en
Publication of TW201227278A publication Critical patent/TW201227278A/en
Application granted granted Critical
Publication of TWI412926B publication Critical patent/TWI412926B/en

Links

Landscapes

  • Tests Of Electronic Circuits (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

An automatic configuring method for identification of test devices includes the steps of jointing a plurality of test devices to a serial bus, wherein each test device has a ID register; detecting the first test device jointed to the serial bus as a working device; writing a ID code of the working device into the ID register of the working device; connecting logically the working device and the downstream of the serial bus; detecting and determining if any next device corresponding to the working device exists in the downstream of the serial bus; and setting the detecting next device as the new working device and repeat the steps above until all test devices have their ID code when the next device exists.

Description

201227278 六、發明說明: 【發明所屬之技術領域】 本發明係關於一種測試裝置的識別碼的自動配置方法,特 別是一種不需要加裝額外的電子可抹除可規劃唯讀記憶體 (Electrically-Erasable Programmable Read-Only Memory 5 EEPROM)或是硬體配置電路之測試裝置的識別碼的自動配置 方法。 【先前技術】 測5式工作一直在產品的生產過程中占了 一個很重要的角 色。由於在生產過程中,很有可能因為一些不特定因素導致生 產出有瑕'疵的產品,因此生產完成的產品均需要經過測試方得 以出:^或上市。若沒有經過品管人員的測試,具有瑕疵的產品 最終會在瑕疵仍未被察覺的情況下被運送至市面上去販售。當 使用者購買到這些有問題的產品時,不僅會造成使用者的不 便,對生產公司的形象也會大打折扣。 但是在測試擁巾,可能會因為各式各樣關題使得測試 2效率不彰、成本過高,甚至是容易出錯。例如要職一制 單元(umtundertest,UUT)的多悔流排介面時,需要在同 一個匯流排上的各個介面掛接_魏_試裝置;但是要如 ^區別k些相同的測試裝置是—個很大的問題。測試時需要能 :=存取任何—網試裝置;且在峨失敗時,需要能夠簡 早確實地得知出錯的是哪一個。 201227278 為了訪問每侧試裝置,每個測試裝置都需要具有獨一無 二的被訪問位址(也就是識別碼)。通常的做法有以下兩種Γ 第-種方法是在職裝置上外加外部配置電阻、跳線開關 (jumper)歧指撥„ (bende〇,並以人工改變外部硬體腳 位το冋低組合的方式指定每一個測試裝置的識別碼。但這種方 法不但會增Μ树(lay⑽)所佔輕間,亦會增加外加硬體 、更體成本ji:匕外’在進行識別碼的配置時的複雜度更是一大201227278 VI. Description of the Invention: [Technical Field] The present invention relates to a method for automatically configuring an identification code of a test device, and more particularly to an electronically erasable programmable read-only memory (Electrically- Erasable Programmable Read-Only Memory 5 EEPROM) or an automatic configuration method for the identification code of the test device of the hardware configuration circuit. [Prior Art] The 5 type work has always occupied a very important role in the production process of the product. Since in the production process, it is very likely that some unspecified factors will result in the production of products that have been produced, so that the finished products need to be tested to obtain: ^ or listed. Without the testing of quality control personnel, defective products will eventually be shipped to the market for sale without being noticed. When users purchase these problematic products, not only will the user's inconvenience, but also the image of the production company will be greatly reduced. However, in testing the towel, it may be inefficient, costly, and even error-prone because of various issues. For example, when the umtundertest (UUT) multi-repentance interface is installed, it is necessary to mount the _wei_test device on each interface on the same bus; however, it is necessary to distinguish between k and the same test device. Very big problem. The test needs to be able to: = access any - network test device; and in the event of a failure, it is necessary to be able to know exactly which one is wrong. 201227278 In order to access each side of the test set, each test set needs to have a unique access address (ie identification code). The usual practice is to have the following two methods: The first method is to add an external configuration resistor, a jumper, and a manual combination to change the external hardware position το冋 low combination. The identification code of each test device. However, this method not only increases the light weight of the eucalyptus tree (lay(10)), but also increases the complexity of the added hardware and the cost. More is a big

問題。配獅工作人員需要手_設定每—伽機裝置的識別 f ’極谷易出錯;且隨著測試裝置的增加,複查度更是大幅提 升。且廷種方法受限於外部硬體配置環境,不能任意增加測試 設備的數量。 另-種方法是額外地在輯裝置巾增加—個電子可抹除 可規劃唯讀記憶體(Electrically_E聰恤加抑祕problem. The lion staff needs hand _ to set the identification of each gamma device f ‘ extremely easy to go wrong; and with the increase of the test device, the review degree is greatly increased. The method is limited to the external hardware configuration environment, and the number of test devices cannot be arbitrarily increased. Another method is to add an additional electronic wipeable to the device wiper. Planned read-only memory (Electrically_E Cognitive Plus

Read’ MemGly ’ EEpR〇M)等儲存元件以事先將不同的識 別碼寫入峨裝置。但是這财法對於不同_試項目可能需Storage elements such as Read' MemGly' EEpR〇M) are written to the device in advance with different identification codes. But this financial method may be needed for different _ test items

要維護很多不__案㈤eimage),且導致增加了維護 成本和降低了使財錄。餅加於顧設備狀EEPR0M 或曰力更粗成本不用說,此種方法所需之提供對册編 程的設備亦會增加成本。 U去對於多個測試裝置配置識別碼的方法具有需要 額外的硬_本、配置複雜度高且容易出錯,以及維護不易等 問題。 201227278 【發明内容】 為了職上销題’再此提出―種摩錄識別碼的自 ,射ί方法。測雜置的細㈣的自動配置方法包括:將多個 二,接於一序列匯流排(祕us),其中每一個夠試 (^ntification register,ID register) · 偵測與序列匯流排連接的第—個賴裝置並作為-工作裳 ,’寫入工作裝置的—識別碼於工作裝置的識別暫存器;邏輯 、接作t置與細g雜的下游:侧序舰流排的下游是 否存在對應社储置的—缺裝置(職他㈣;以及當次 級裳置存在時,將次崎置作為新的工作裝置,並重複以上步 驟直到將所有_試裝置寫續應的酬碼為止。 、根據—實施範例,其中次級裝置為在工作裝置之後與序列 匯流排連接的第-個測試裝置。而「邏輯連接工作裝置與序列 匯流排的下游」的步驟可包括··將工作裝置的暫存器的 值設為關(dose) ’以祕連接讀裝置的次級裝置與序列 匯机排。其+識別暫存器或是開關暫存料配置於每—個測試 裝置内建的-獅可料(CGmplex ___ logic device,CPLD)之中。 根據另-實絲例,在「以工作裝置的—朗碼於工作 裝置的識卿存器」的步驟之前,測試裝置的酬碼的自動配 置方法另可包括:啟動電源並初始化所有測試裝置。其中識別 暫存态的初始值可以是〇,而開關暫存器的初始值可以是開啟 201227278 (open) ° 此外,每-個測試裝置的CPLD可包括一次級裝置暫存 裔,用以表不在序列匯流排的下游是否存在對應 次級裝置。 综上所述,戦技的翻碼的自動配置綠在測試裝置 =CPLD…部設計識別暫存㈣此不需要在測試 二加裝的儲存7〇件或外部_。且藉由關暫存器能透 =制贿⑽犠,⑽斷或連通整 條序列匯流排,亦不_此另_硬體配置電路。此外, 置的翻碼的自動配置方法可自動依賴測的測 =置麟祕預觸,因林轉先在顺裝置中燒入識 別碼的配置檔案。 【實施方式】 ^下在實财式憎細敘述本發明之詳細雜以及優 ^播、内谷足以使任何熟習_技#者了解本發明之技術内容 $以貫施’且根據本說明書所揭露之内容、申請專利範圍及 的及 回式’任何《相關技藝者可輕易地理解本發明目 優點。 本發_齡-酬財置的朗碼的自絲置方法,其 連接於同—序列匯流排(seriaibus)的多個測試裝置。 1法可對於多個相_測試裝置個耻置予㈣的一識別 碼,而這些獲得唯—的識別碼的測試裝置可_對至少-待測 201227278 單元(unit under test,υυτ)進行測試。 凊同時參照「第1圖」、「第2Α圖」以及「第2Β圖」,其 分別為-實施範例之待測單Α之示賴、測試裝置與序列匯流 排之連接圖,以及測試裝置之方塊圖。待測單元32可與一監 控模組34連接以進行測試。在同一條序列匯流排3〇上,可同 時連接測試裝置20a、測試裝置2〇b以及測試裝置20c。且監 控模組34可連結於監控模組34所屬的一計算機的一主要計算 單元(Main Computational Unit,MCU) 36。於一實施範例中, 待測單元32可具有多個連接介面(池沈也^,亦可稱為連接 埠,port)以將這些測試裝置2〇連接至待測單元32。而序列 匯流排30用以控制啟動和關閉測試以及獲取測試結果,並序 列連接監控模組34以及各個測試裝置2〇。 舉例來說,待測單元32可以是一個筆記型電腦、伺服器、 智慧型手機或是主機板;連接介面以及序列匯流排3〇可以例 如是符合通用序列匯流排(Universal Serial Bus,USB)標準、 序列先進技術附件(Serial Advanced Technology Attachment, senalATA ’ SATA)標準、電機電子工程師學會1394 (Institute of Electrical and Electronics Engineers 1394,IEEE 1394)標準 或是RS-232標準的匯流排。而測試裝置20可以是一個外插式 小卡’其具有一主控器(master controller) 22以及一複雜可程 式邏輯元件(Complex programmable logic device,CPLD ) 24。 此外,每一個測試裝置20並内建有一識別暫存器241。識別 201227278 暫存器241可以配置於測試裝置2〇原有的肌⑽之中,如 • 「第2B圖」所示。測試裝置的識別碼的自動配置方法可以運 _ 行於待測單元32上,亦可運行於與待測單元32連接且用以監 • 控測試狀況的監控模組34上。 再舉例來說’當連接介面是先進技術附件(Advanced Technology Attachment ’ ATA)標準的介面時,測試裝置2〇可 以疋用來代替叩貝的SAS硬碟的硬碟模擬器(Hard Disk • emulator)。 印參照「第3圖」’其係為—實施範例之測職置的識別 碼的自動配置方法之流程圖。 首先將這些測試裝置20連接於序列匯流排3〇 (步驟 S110)。例如為了測試連接介面的傳輸能力,測試人員可以先 以人力將這些測試裝置20插上連接介面,並啟動待測單元32 的電源。 # 根據另一實施範例,如「第4圖」所示,在開始配置識別 碼之别,除了啟動電源外並可初始化所有的測試裝置(步 驟S115)。在各個測試裝置2〇的CPLD 24之甲可配置一初始 化程序,其在測試裝置2〇被電力開啟之後立刻執行。初始化 程序可在開始配置識別碼之前把所有的識別暫存器241的值 都清除為0或是一個特定的保留值。 初始化完成之後,測試裝置的識別碼的自動配置方法自動 偵測與序列匯流排30連接的第一個測試裝置2〇並將其作為一 201227278 工作裝置(步驟S12G)。以下說明係 列匯流排30連接的笛加, 衣置咖作為與序 第—個測試裝置20。則於步驟sm中, 則測雜置20a被作為工作農置。 Τ =樣置的識別侧動配置方法可按照一特殊規則,寫 =置物咖,置的養存謂(步驟 241可以是具有8位 )㈣存$,歡作裝置的 减別碼則可抛置為:t大值的〇xFF。 將識別碼寫入工作裝置的識別暫存器241之後,邏輯連接 工作農置與序寵流排3〇的下游(步驟s⑽)。其中定義序 =流排30中靠近訊號來源的一端為上游(靠近測試設備20a 處),而遠離訊號來源的-端為下游(靠近測試設備施處)。 S140中’可以將工作裝置的一開關暫存器扣的值設 為、閉」(d〇se),以邏輯連接工作裝置與序寵流排3〇的 下游。其中識別暫存器241亦可配置於測試裝置2〇原有的 CPLD 24 之中。 更詳細地說,雖然所有的測試設備2〇在物理上已經被連 接在連接介面上,但測試設備2G可以透過開關暫存器242截 二序列匯流排30中訊號的傳輸。位於開關暫存器242的值被 設為「開啟」(open)的測試裝置2〇 (如「第2B圖」所示) 之下游的财其他職織2G麵法_職,因此形成邏 輯上未與序列匯流排30連接的狀態。於步驟su5中,測試裝 201227278 置如的開關暫存器242的值可都被初始化為「開啟」,使得 一個測試輕都處於彼此_的狀態。而在步驟si4〇中, 作為工作裝置的測試裝置2〇才邏輯連接起序列匯流排%的下 游,使得卫作妓讀鱗舰流排3Q連_第—個測顺 之為-次罐’能夠收到序列匯流排 專輪的峨。換句話說,在步驟SM〇之中,將工作To maintain a lot of __ cases (five) eimage), and led to increased maintenance costs and reduced accounting. It is not necessary to add a cake to the equipment EEPR0M or the cost of the equipment. The equipment required for this method will also increase the cost. U's method of configuring an identification code for multiple test devices has the problem of requiring additional hard copy, high configuration complexity, error prone, and difficulty in maintenance. 201227278 [Summary of the Invention] In order to apply for the title of the job, it is proposed again. The automatic configuration method of measuring the fine (4) of the miscellaneous includes: connecting a plurality of two to a serial bus (secret us), each of which is tested (^ register), detecting the connection with the serial bus The first device is used as the - work skirt, the 'identification code of the writing device' is identified in the identification device of the working device; the logic is connected to the downstream of the t-set and the fine-grain: whether the downstream of the side-sequence ship There is a corresponding device for the storage of the company (the other (4); and when the secondary skirt is present, the secondary is set as a new working device, and the above steps are repeated until all the devices are renewed. According to an embodiment, wherein the secondary device is a first test device connected to the sequence bus after the working device, and the step of "logically connecting the working device to the downstream of the serial bus" may include: The value of the register is set to "dose" to connect the secondary device of the reading device with the serial port. The + identification register or the switch storage material is configured in each test device. - lion can be expected (CGmplex ___ l Between the ogic device and the CPLD. According to the other example, the automatic configuration method of the compensation device of the test device before the step of "working device-language in the working device" may further include: Start the power supply and initialize all test devices. The initial value for identifying the temporary state can be 〇, and the initial value of the switch register can be turned on 201227278 (open) ° In addition, the CPLD of each test device can include the primary device. The temporary storage is used to indicate whether there is a corresponding secondary device downstream of the serial bus. In summary, the automatic configuration of the coded code is green in the test device = CPLD... design identification temporary storage (4) Test 2 installed storage of 7 pieces or external _. And by closing the register can pass = bribe (10) 犠, (10) break or connect the entire sequence bus, nor _ this _ hardware configuration circuit. The automatic configuration method of the set code can automatically depend on the measured test = the first touch of the fingerprint, because the forest first burns the configuration file of the identification code in the device. [Embodiment] ^ Under the real financial formula Describe the details of the present invention and ^播,内谷 is enough to make any skilled person understand the technical content of the present invention, and according to the contents disclosed in the specification, the scope of the patent application and the back-type "any related art can easily Understand the advantages of the present invention. The method of self-wire setting of the Lange code of the present invention is connected to a plurality of test devices of the same-sequence bus seriaibus. An identification code for (4) is given, and the test device that obtains the unique identification code can test at least the unit under test (υυτ) to be tested. 凊 Also refer to "1", " The second diagram and the second diagram are respectively a description of the test unit to be tested, a connection diagram between the test device and the sequence bus, and a block diagram of the test device. The unit under test 32 can be connected to a monitoring module 34 for testing. On the same serial bus bar 3, the test device 20a, the test device 2〇b, and the test device 20c can be connected at the same time. The monitoring module 34 can be coupled to a Main Computational Unit (MCU) 36 of a computer to which the monitoring module 34 belongs. In an embodiment, the unit under test 32 may have a plurality of connection interfaces (also referred to as ports, ports) to connect the test devices 2 to the unit to be tested 32. The sequence bus 30 is used to control the startup and shutdown tests and to obtain test results, and to serially connect the monitoring module 34 and the respective test devices. For example, the unit under test 32 can be a notebook computer, a server, a smart phone, or a motherboard; the connection interface and the serial bus 3 can be, for example, conformed to the Universal Serial Bus (USB) standard. , Serial Advanced Technology Attachment (senalATA ' SATA ) standard, 1394 (Institute of Electrical and Electronics Engineers 1394, IEEE 1394) standard or RS-232 standard bus. The test device 20 can be an external plug-in card having a master controller 22 and a Complex programmable logic device (CPLD) 24. In addition, each test device 20 is internally provided with an identification register 241. Identification 201227278 The register 241 can be placed in the original muscle (10) of the test device 2, as shown in "Figure 2B". The automatic configuration method of the identification code of the test device can be performed on the unit to be tested 32 or on the monitoring module 34 connected to the unit to be tested 32 for monitoring the test condition. For example, when the connection interface is an interface of the Advanced Technology Attachment 'ATA' standard, the test device 2 can be used to replace the hard disk emulator of the SAS hard disk of the mussel (Hard Disk • emulator) . Referring to "Fig. 3", it is a flowchart of an automatic configuration method for the identification code of the test position of the embodiment. These test devices 20 are first connected to the serial bus 3 (step S110). For example, in order to test the transmission capability of the connection interface, the tester can first manually plug the test devices 20 into the connection interface and start the power of the unit to be tested 32. # According to another embodiment, as shown in Fig. 4, at the beginning of the configuration of the identification code, all the test devices can be initialized except for starting the power supply (step S115). The initialization of the CPLD 24 of each test device 2 can be performed immediately after the test device 2 is powered on. The initialization program can clear all the values of the identification register 241 to zero or a specific reserved value before starting to configure the identification code. After the initialization is completed, the automatic configuration method of the identification code of the test device automatically detects the first test device 2 connected to the serial bus 30 and uses it as a 201227278 work device (step S12G). The following describes the Descartes in which the series bus bars 30 are connected, and the clothes are used as the first test device 20. Then, in step sm, the miscellaneous 20a is used as a working farm. Τ = sample identification side-moving configuration method can be written according to a special rule = storage coffee, set the conservation term (step 241 can have 8 bits) (four) save $, the device's subtraction code can be placed It is: 〇xFF with a large value of t. After the identification code is written into the identification register 241 of the work device, the logical connection is placed downstream of the order flow (step s (10)). Wherein the definition sequence = one end of the flow row 30 close to the signal source is upstream (near the test device 20a), and the end far from the signal source is downstream (near the test equipment). In S140, the value of a switch register of the working device can be set to "closed" (d〇se) to logically connect the working device to the downstream of the sequence stream. The identification register 241 can also be disposed in the original CPLD 24 of the testing device 2 . In more detail, although all of the test equipment 2 are physically connected to the connection interface, the test equipment 2G can intercept the transmission of the signals in the serial bus 30 through the switch register 242. The value of the switch register 242 is set to "open" (the open device) 2 (as shown in "Figure 2B"), and the other is 2G surface method, so it is logically not The state of connection with the sequence bus 30. In step su5, the value of the switch register 242 of the test device 201227278 can be initialized to "on" so that one test light is in a state of each other. In step si4, the test device 2 as the working device is logically connected to the downstream of the serial bus bar %, so that the guardian reading the scale ship flow row 3Q connection _ the first measurement is the - the secondary tank can Received a 专 of the serial bus. In other words, in step SM〇, will work

開關暫存器242的值設為「關閉」,以邏輯連接工作較的次 級裝置與序列匯流排3〇。 邏輯連接工作裝置與序流排3G的下游之後,測試裝 置的識別碼的自動配置方法可重新掃描序列匯流排%,以備 測序列匯流排3〇的下游是否存在對應於工作裝置的次級裝置 (步驟S15G)。當職於目_工條置社喊置存在時, 將次級裝置作為新的玉作裝置(步驟S16G),並简的工作裳 置重複步驟Si3(m及麵⑽將_酬碼寫人新的工作農 置。 其中被寫入的識別碼可以以遞減的方式將這些測試裝置 20編號。例如測試裝置20a、2〇b以及2〇c的識別碼可时別 是OxFF、OxFE以及OxFD。並可重複以上選定新的工作褒置 並配置新的識別碼的步驟,直到將所有的測試裝置2〇寫入對 應的識別碼為止。 反之,當在特定時間内無法透過枚舉(enumerati〇n)等方 法確認對應於目前的工作裝置的次級裝置的存在時,表示目前 201227278 、乍欢置已經疋序列匯流排30上的最後一個測試裝置20 (例如測試裴置20〇。也就是所有的測試裝置20都已經被寫 入個別的識別碼,而可結束自動配置識別碼的作業。如此一 來,對序列匯流排30而言,每個測試裝置20都擁有獨一無二 的識別碼。而這些擁有不同識別碼的測試裝置20更能夠繼續 用以對待測單元32進行各種測試。 根據一實施範例,測試裝置2〇原有的CPLD24之中另可 配置有一次級裝置暫存器(未繪示),用以表示在序列匯流排 30的下游是否存在對應於測試裝置2〇的次級褒置。在步驟 S150以枚舉等方式偵測到是否有次級裝置以後,監控模組34 可以以一通用型輸入輸出(General Purpose I/O,GPIO )訊號 將偵測到的結果寫入測試裝置20的次級裝置暫存器。而測試 裝置20的主控器22可讀取次級裝置暫存器以得知在序列匯流 排30的下游是否存在對應於測試裝置2〇的次級褒置。 綜上所述,測試裝置的識別碼的自動配置方法在測試裝置 中現有的CPLD晶片内部設計識別暫存器,因此能夠省下習知 方法需在測試裝置額外加裝的電子可抹除可規劃唯讀記憶體 (Electrically-Erasable Programmable Read-Only Memory > EEPROM)等儲存元件或外部開關,亦節省習知方法的配線 (layout)面積’而降低硬體成本。且藉由開關暫存器能透實 現控制序列匯流排與測試裝置之間的連結,以切斷或連通整條 序列匯流排’而省去了外部EEPROM或者硬體配置電路。 201227278 測試裝置的識別碼的自動配置方法可在開啟電源後自動 依序偵測所有的測試裳置並動態給予識別碼,因此不須事先在 、戈裝置中燒入配置檔案(服丨脱明)。此外,此方法能夠支 持熱插拔動作’不影響正常訪問。且由於不用以人工區分測試 茗置的不同再以人工配置識別碼,而能夠隨意安排測試設備與 待測單元的連接。 以上較佳具體實施範例之詳述,是希望藉此更加清楚描述 • 树日狀特徵婦神’並非以上述揭露雜佳具體實施範例對 本發明之_加以限制。相反地,其目的是希望將各種改變及 具相等性的安排涵蓋於本發明所欲申請之專利範圍的範缚内。 【圖式簡單說明】 第1圖係為一實施範例之待測單元之示意圖。 第2A圖係為-實施範例之測試裝置與序列匯流排之連接 圖。 _ $ 2B圖係為-實施範例之測試裝置之方塊圖。 第3圖係為-實施範例之測試裝置的識啊的自動配置 方法之流程圖。 第4圖係為另—實施範例之測試裝置的識㈣的自動配 置方法之流程圖。 【主要元件符號說明】 20, 20a, 20b, 20c 測試裝置 22 主控器 13 201227278 24 複雜可程式邏輯元件(CPLD) 241 識別暫存器 242 開關暫存器 30 序列匯流排 32 待測單元 34 監控模組 36 主要計算單元The value of the switch register 242 is set to "off" to logically connect the secondary device to the serial bus and the serial bus. After logically connecting the working device and the downstream of the sequence bar 3G, the automatic configuration method of the identification code of the testing device can rescan the sequence bus bar % to prepare whether there is a secondary device corresponding to the working device downstream of the sequence bus bar 3〇 (Step S15G). When the job _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ The identification code written therein can number these test devices 20 in a decreasing manner. For example, the identification codes of the test devices 20a, 2〇b, and 2〇c can be OxFF, OxFE, and OxFD. The steps of selecting a new working device and configuring a new identification code may be repeated until all test devices 2 are written into the corresponding identification code. Conversely, when the enumeration cannot be performed within a certain time (enumerati〇n) When the method confirms the existence of the secondary device corresponding to the current working device, it indicates that the current test device 20 on the serial bus 30 has been set up at the current 201227278 (for example, the test device is 20 〇. That is, all tests) The device 20 has been written with an individual identification code, and the job of automatically configuring the identification code can be ended. Thus, for the sequence bus 30, each test device 20 has a unique identification code. The test device 20 having different identification codes can continue to perform various tests for the unit to be tested 32. According to an embodiment, the test device 2 can be configured with a secondary device register among the original CPLDs 24 (not shown). ), to indicate whether there is a secondary device corresponding to the test device 2〇 downstream of the sequence bus 30. After detecting whether there is a secondary device by enumeration or the like in step S150, the monitoring module 34 can A general purpose I/O (GPIO) signal writes the detected result to the secondary device register of the test device 20. The master 22 of the test device 20 can read the secondary device for a while. The memory is to know whether there is a secondary device corresponding to the test device 2〇 downstream of the sequence bus 30. In summary, the automatic configuration method of the identification device of the test device is designed inside the existing CPLD chip in the test device. Recognizing the scratchpad, it is possible to save the storage of an electronically erasable programmable read-only memory (EEPROM) that needs to be additionally installed in the test device. The component or the external switch also saves the layout area of the conventional method to reduce the hardware cost, and the switch register can realize the connection between the control sequence bus and the test device to cut or connect. The entire sequence bus is 'excluding the external EEPROM or hardware configuration circuit. 201227278 The automatic configuration method of the test device's identification code can automatically detect all the test skirts and dynamically give the identification code after the power is turned on, so It is not necessary to burn the configuration file (disclosure) in the Go device. In addition, this method can support hot plugging actions' without affecting normal access. Moreover, since the identification code is manually configured without manually distinguishing the test devices, the connection between the test device and the unit to be tested can be arbitrarily arranged. The above detailed description of the preferred embodiments is intended to provide a clearer description of the present invention. Rather, the intention is to cover various modifications and equivalent arrangements within the scope of the invention as claimed. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a schematic diagram of a unit to be tested according to an embodiment. Figure 2A is a connection diagram of the test device and the serial bus of the embodiment. _ $ 2B is a block diagram of the test device of the implementation example. Figure 3 is a flow chart of the automatic configuration method of the test device of the embodiment. Fig. 4 is a flow chart showing the automatic configuration method of the fourth (4) test device of the embodiment. [Main component symbol description] 20, 20a, 20b, 20c Test device 22 Main controller 13 201227278 24 Complex programmable logic element (CPLD) 241 Identification register 242 Switch register 30 Sequence bus 32 Unit to be tested 34 Monitoring Module 36 main calculation unit

1414

Claims (1)

201227278 七、申請專利範圍: 1. 一種測试裝置的識別碼的自動配置方法,包括·· 將多個測試裝置連接於—序顺流排,其巾每—該挪試 裝置包括一識別暫存器; 偵測與該序列匯流排連接的第一個該測試裳置並 一工作裝置; 马 存器; 寫入5亥工作裝置的—酬碼於該X·作裝置的該 識別暫 讀連接社作裝置與該序顺赫的下游; 偵測該序寵流排的下妓辟在對應於 的一次級裝置;以及 胃工作裝置 當該次《餘辦,贿缺敍 置’並重複《场_職财的鮮置^工作裝 該些識別碼為止。 飞犮置寫入對應的 2.如請求項第〗項所述之 法,其中該缺㈣錢;^自動配置方 接的第-個該測試裳置。 之谈與該序歹_流排連 法,其中該識別暫存 ㈣峡的自動配U 可程 式邏輯元件之令。、母—挪試裝置的1雜方 心:動% 4.如請求項第1項所述之挪試裝 法,其中§亥寫入該工作裝置 的該識 •作袈置 15 201227278 別暫存器的步驟之前,另包括: 啟動電源並初始化該些測試裝置。 5. 6. 、月求頁第4項所述之測置的朗竭的自動配置方 法,其中該識別暫存器的初始值為〇。 如請求項第1項所述之測試裳置的識別觸自動配置方 法,其中該邏輯連接該工倾置與該序列匯流排的下游的步 /字該工作裝置的—開關暫存器的值設為_,以邏輯連 接該工作裝置的該次級裝置與該序列匯流排。 月求項第6項所述.之測試裝置的識別石馬的自動配置方 法,其中該開關暫存器配置於每一該測試裳置的一複雜可程 式邏輯元件之中。 •如明求項第1項所述之職裝置的識別碼的自動配置方 法’其中該寫人該王作錢的賴別碼於該I作裝置的該識 別暫存器的步驟之前,另包括: 啟動電源並初始化該些戦裝置,且—開關暫存器的初 始值為開啟。 9.如請求項第丨項所述之賴裝置的識別碼的自動配置方 法’其中每-該測試裝置的-複雜可程式邏輯元件包括一次 級裳置暫存ϋ,⑽麵在該序_流觸下游是否存在對 應於該工作裝置的該次級裝置。201227278 VII. Patent application scope: 1. An automatic configuration method for the identification code of the test device, including: · connecting a plurality of test devices to the sequence flow, and each of the towel devices includes a recognition temporary storage Detecting the first test connected to the sequence bus and placing a working device; the memory; writing the 5 hai work device - the code is the identification device of the X device Actuating the device and the downstream of the sequence; detecting the lower order of the order pet flow in the corresponding primary device; and the stomach working device when the "remaining, bribery" and repeating the field The fresh work of the financial affairs ^ work to install these identification codes. The fly-in is written to the corresponding 2. As described in the item of claim 1, the missing (four) money; ^ the first one of the automatic configuration is set. The talk and the sequence 歹 流 连 , , , , , , , , , , 识别 识别 识别 识别 识别 识别 识别 识别 识别 识别 识别 识别 识别 识别 识别 识别 识别 识别The mother-to-counter test device's 1 square heart: move % 4. As described in item 1 of the claim, the § hai writes the work device's knowledge and operation device 15 201227278 Before the steps of the device, the following includes: starting the power supply and initializing the test devices. 5. 6. The automatic configuration method for the measurement of the measurement described in item 4 of the monthly request page, wherein the initial value of the identification register is 〇. The method for automatically configuring the identification touch of the test skirt according to claim 1, wherein the logical connection is performed with a step/word downstream of the serial bus and a value of a switch register of the working device. In order to logically connect the secondary device of the working device with the sequence bus. The automatic configuration method for identifying the stone horse of the test device described in Item 6 of the present invention, wherein the switch register is disposed in a complex programmable logic element of each test skirt. • The method for automatically configuring the identification code of the job device as described in Item 1 of the present invention, wherein the copying code of the writer is made before the step of identifying the register of the device : Power is turned on and the devices are initialized, and - the initial value of the switch register is on. 9. The automatic configuration method of the identification code of the device as described in the item of the second aspect of the present invention, wherein each of the - complex programmable logic elements of the test device comprises a first stage stall, and (10) faces the sequence stream Whether there is a downstream device corresponding to the working device is touched downstream.
TW99145347A 2010-12-22 2010-12-22 Automatic configuring method for identification of test devices TWI412926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99145347A TWI412926B (en) 2010-12-22 2010-12-22 Automatic configuring method for identification of test devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99145347A TWI412926B (en) 2010-12-22 2010-12-22 Automatic configuring method for identification of test devices

Publications (2)

Publication Number Publication Date
TW201227278A true TW201227278A (en) 2012-07-01
TWI412926B TWI412926B (en) 2013-10-21

Family

ID=46933169

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99145347A TWI412926B (en) 2010-12-22 2010-12-22 Automatic configuring method for identification of test devices

Country Status (1)

Country Link
TW (1) TWI412926B (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7043569B1 (en) * 2001-09-07 2006-05-09 Chou Norman C Method and system for configuring an interconnect device
TWI281805B (en) * 2004-05-18 2007-05-21 Quanta Comp Inc System for automatically distributing communication port address

Also Published As

Publication number Publication date
TWI412926B (en) 2013-10-21

Similar Documents

Publication Publication Date Title
US7702984B1 (en) High volume testing for USB electronic data flash cards
CN105302755B (en) A kind of PCIE boards and its monitoring method with monitoring function
RU2006137709A (en) CARD AND LEADER
CN104461799B (en) Board configures correctness detecting system
CN106561018A (en) Server monitoring method, monitoring device and monitoring system
CN106055361A (en) Integrated firmware implementation method and system based on various different models of BMC (baseboard management controller)
TW201416853A (en) Method and system for cloud testing and remote monitoring of integrated circuit device in validation of computerized system
CN102541711B (en) Method for testing X86 architecture server mainboards
CN108490297A (en) Automatically embedded device and its control method are detected in a kind of aviation emitter outfield
TWI545441B (en) Computer system and usb device detecting method thereof
TW201342044A (en) Method for detecting hardware
CN109490751A (en) A kind of EMMC test method and test circuit
CN206369789U (en) A kind of multifunctional digital wafer prober
CN106227630A (en) A kind of detecting system for embedded radio module
CN107239372A (en) Electronic device and detection method thereof
CN213400574U (en) Device for performing abnormal power failure test on memory
CN114490208A (en) Test apparatus, test method, computer device, storage medium, and program product
CN206348780U (en) A kind of measurement jig of server hard disk back plane
US20080159157A1 (en) Method for Configuring a USB PHY to Loopback Mode
CN211928097U (en) Circuit board detection system and equipment
CN106354530B (en) A kind of mainboard firmware fast writing method and device based on Loongson processor
TW201227278A (en) Automatic configuring method for identification of test devices
CN108205444B (en) High-efficient CTP program burns record test processing system
US20080195787A1 (en) Adaptive boot sequence
CN104484634B (en) The dilatation detection method of RAM card and the card reader with dilatation detection function

Legal Events

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