TWI472783B - Data capture and detection method - Google Patents

Data capture and detection method Download PDF

Info

Publication number
TWI472783B
TWI472783B TW101151104A TW101151104A TWI472783B TW I472783 B TWI472783 B TW I472783B TW 101151104 A TW101151104 A TW 101151104A TW 101151104 A TW101151104 A TW 101151104A TW I472783 B TWI472783 B TW I472783B
Authority
TW
Taiwan
Prior art keywords
data
packet
digital data
content
detecting
Prior art date
Application number
TW101151104A
Other languages
Chinese (zh)
Other versions
TW201425962A (en
Inventor
Hsin Ching Yin
Original Assignee
Zeroplus Technology Co Ltd
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 Zeroplus Technology Co Ltd filed Critical Zeroplus Technology Co Ltd
Priority to TW101151104A priority Critical patent/TWI472783B/en
Publication of TW201425962A publication Critical patent/TW201425962A/en
Application granted granted Critical
Publication of TWI472783B publication Critical patent/TWI472783B/en

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)

Description

資料擷取與檢測之方法Data extraction and detection method

本發明係與數位資料處理有關,更詳而言之是指一種資料擷取與檢測之方法。The present invention relates to digital data processing, and more particularly to a method of data acquisition and detection.

隨著數位科技的進步,如記憶卡、電子晶片、液晶螢幕(LCD)之影像處理晶片、以及互補性氧化金屬半導體(Complementary Metal-Oxide Semiconductor,CMOS)、終端機、在線仿真器(In-Circuit Emulator,ICE)等使用數位訊號傳輸或儲存資料之電子裝置日漸普及。而在現有檢測電子裝置之技術中,通常是先利用一測試裝置連接該電子裝置,且持續地接收該電子裝置送出之一數位資料,並利用邏輯分析儀持續擷取該數位資料後、再利用電腦比對邏輯分析儀所擷取之數位資料、與預設的正確資料之間是否有差異,藉以判斷該電子裝置是否能正確無誤地進行資料傳輸或儲存。With the advancement of digital technology, such as memory cards, electronic chips, LCD processing image processing chips, and Complementary Metal-Oxide Semiconductor (CMOS), terminals, in-circuit emulators (In-Circuit) Electronic devices such as Emulator, ICE, etc. that use digital signals to transmit or store data are becoming increasingly popular. In the prior art of detecting electronic devices, a test device is usually used to connect the electronic device, and the electronic device is continuously received to send a digital data, and the digital analyzer continuously captures the digital data and reuses the data. The computer compares the digital data captured by the logic analyzer with the preset correct data to determine whether the electronic device can transmit or store the data correctly.

然而,由於檢測之數位訊號是透過該測試裝置接收,而使得檢測時,電腦並無法事先預知當下會取得何種資料、或何時需要開始擷取資料。如此一來,因為上述情形,常造成邏輯分析儀所取得之資料過多或是不夠完整。However, since the detected digital signal is received through the test device, the computer cannot predict in advance what data will be acquired or when it is necessary to start capturing data. As a result, because of the above situation, the data obtained by the logic analyzer is often too much or not complete.

是以,在上述檢測與擷取數位資料之方法中,因為電子裝置在送出數位資料時,邏輯分析儀並無法準確地擷取到數位資料中需要比對的片段,且邏輯分析儀通常是持續地擷取該數位 資料,而使得研發人員在比對時,必須耗費較多的時間自行設定條件進行過濾或是查找多次後,才能找出數位資料與正確資料之間互相對應之區段,而後才能再比對各區段是否有差異,不僅過程費時,且會加大研發人員工作之負荷,進而使得檢測作業之效果不彰。Therefore, in the above method of detecting and extracting digital data, since the electronic device is sending digital data, the logic analyzer cannot accurately capture the segment to be compared in the digital data, and the logic analyzer is usually continuous. Draw the digit The data, so that the research and development personnel must spend more time to set the conditions to filter or find multiple times, in order to find the corresponding section between the digital data and the correct data, and then compare Whether there is a difference in each section, not only is the process time-consuming, but also increases the workload of the R&D personnel, which in turn makes the inspection operation less effective.

有鑑於此,本發明之主要目的在於提供一種資料擷取與檢測之方法,可於發出以及接收預定封包後,擷取後續對應之數位資料,而可大幅降低研發人員檢測所耗費之時間。In view of this, the main purpose of the present invention is to provide a method for data acquisition and detection, which can capture subsequent digital data after sending and receiving a predetermined packet, and can greatly reduce the time taken for the developer to detect.

緣以達成上述目的,本發明提供有一種資料擷取方法用以擷取一待測物送出之數位資料,且該數位資料包含有複數個封包;該資料擷取方法包含有下列步驟:A.設定一特定之封包內容;B.偵測該待測物送出之各該封包是否具有該封包內容;C.當測得該待測物送出具有該特定封包內容之封包時,同時啟動一邏輯分析儀擷取後續送出之數位資料。In order to achieve the above object, the present invention provides a data acquisition method for capturing digital data sent by a test object, and the digital data includes a plurality of packets; the data extraction method comprises the following steps: A. Setting a specific packet content; B. detecting whether each packet sent by the object to be tested has the content of the packet; C. when detecting that the object to be tested sends a packet having the content of the specific packet, simultaneously starting a logic analysis The instrument retrieves the digital data sent subsequently.

依據上述構思,本發明提供有一種資料檢測方法,用以檢測一待測物送出之數位資料的正確性,且該數位資料包含有複數個封包;該資料擷取方法包含有下列步驟:A.設定一特定之封包內容;B.偵測該待測物送出之各該封包是否具有該封包內容; C.當測得該待測物送出具有該特定封包內容之封包時,同時啟動一邏輯分析儀擷取後續送出之數位資料;D.比對步驟C所擷取之數位資料、與一正確資料之間的差異,並據以判斷該待測物送出之數位資料的正確性。According to the above concept, the present invention provides a data detecting method for detecting the correctness of a digital data sent by a test object, and the digital data includes a plurality of packets; the data capturing method comprises the following steps: A. Setting a specific packet content; B. detecting whether each packet sent by the object to be tested has the content of the packet; C. When the test object is sent out with the packet with the specific packet content, a logic analyzer is simultaneously started to retrieve the digital data sent subsequently; D. The digital data captured in step C is compared with a correct data. The difference between the two is based on the judgment of the correctness of the digital data sent by the test object.

藉此,透過上述資料擷取與檢測方法之設計,便可於該待測物發出預定封包後,即刻地擷取後續對應之數位資料,使得資料擷取不會產生誤差,進而可大幅降低研發人員比對之時間。In this way, through the design of the above-mentioned data acquisition and detection method, the corresponding digital data can be immediately captured after the predetermined object is issued, so that the data acquisition does not generate an error, thereby greatly reducing the research and development. The time of the staff comparison.

為能更清楚地說明本發明,茲舉較佳實施例並配合圖示詳細說明如後。In order that the present invention may be more clearly described, the preferred embodiments are illustrated in the accompanying drawings.

本發明用以在一測試系統檢測一待測物時,進行資料之擷取與檢測。請參閱圖1,該測試系統包含有一電子裝置10、一電腦20、以及一邏輯分析儀30。該電子裝置10則透過一傳輸介面(如USB、SATA等)與該待測物40連接,用以持續地接收自該待測物40發出之數位資料,且上述之數位資料皆包含有複數封包。而該邏輯分析儀30則連接該電腦20與該傳輸介面12。於本實施例中,該待測物40為一仿真器(In-Circuit Emulator,ICE)。The invention is used for extracting and detecting data when a test system detects an object to be tested. Referring to FIG. 1, the test system includes an electronic device 10, a computer 20, and a logic analyzer 30. The electronic device 10 is connected to the object to be tested 40 through a transmission interface (such as USB, SATA, etc.) for continuously receiving digital data sent from the object to be tested 40, and the digital data includes a plurality of packets. . The logic analyzer 30 connects the computer 20 to the transmission interface 12. In this embodiment, the object to be tested 40 is an In-Circuit Emulator (ICE).

舉例而言,當該待測物40模擬處理器(CPU)作業,而送出數位資料來控制該電子裝置10作業時,都會先以特定封包內 容作為該數位資料之起始封包。如此一來,當研發人員欲檢測該待測物40來控制其他電子元件作業之數位資料是否正確時,只需擷取特定封包後之數位資料便能進行解析。是以,請參閱圖2,透過本發明所提供之擷取方法,即可準確地擷取起始為特定封包內容之數位資料,而該方法包含有下列步驟:For example, when the object to be tested 40 simulates a processor (CPU) operation and sends digital data to control the operation of the electronic device 10, it will first be in a specific packet. As the starting packet of the digital data. In this way, when the researcher wants to detect the object to be tested 40 to control whether the digital data of other electronic components is correct, only the digital data after the specific packet can be retrieved for analysis. Therefore, referring to FIG. 2, through the method provided by the present invention, digital data starting from a specific packet content can be accurately captured, and the method includes the following steps:

A.設定一特定之封包內容。舉例而言,於本實施例中係設定封包內容為11001100。A. Set a specific packet content. For example, in this embodiment, the content of the packet is set to 11001100.

B.偵測該待測物40送出之各封包是否包含有該封包內容。B. Detecting whether each packet sent by the object to be tested 40 contains the content of the packet.

C.請參閱圖3,當測得該待測物40送出具有該特定封包內容之封包時,同時啟動該邏輯分析儀30擷取該待測物40後續送出之數位資料D1,並將該邏輯分析儀30所擷取之數位資料D1儲存至該電腦20,而該數位資料D1之起始封包包含有步驟A設定之封包內容。C. Referring to FIG. 3, when the test object 40 is sent out to send the packet with the specific packet content, the logic analyzer 30 is simultaneously activated to capture the digital data D1 sent by the object 40 to be tested, and the logic is The digital data D1 captured by the analyzer 30 is stored in the computer 20, and the starting packet of the digital data D1 contains the contents of the packet set in step A.

D.顯示步驟C所擷取並儲存之數位資料於一顯示裝置上。於本實施例中,該顯示裝置為該電腦20之螢幕。D. Display the digital data captured and stored in step C on a display device. In this embodiment, the display device is a screen of the computer 20.

如此一來,透過上述將特定封包做為擷取起始偵測之設計,便可準確地擷取到後續對應之數位資料,使得資料擷取時不會有誤差產生。In this way, by using the specific packet as the initial detection design, the subsequent corresponding digital data can be accurately captured, so that no error occurs when the data is captured.

另外,透過上述訊號擷取方法之設計,更可延伸有一種資料檢測方法,可使研發人員將所擷取之資料,與一正確資料進行比對,藉以判定該待測物40送出之數位資料是否正確。該方法包含有下列步驟:In addition, through the design of the above signal acquisition method, a data detection method can be extended, which enables the research and development personnel to compare the captured data with a correct data, thereby determining the digital data sent by the object to be tested 40. is it right or not. The method includes the following steps:

A.設定一特定之封包內容。於本實施例中,同樣設定封包內容為11001100,且設定之該封包內容與欲比對之該正確資料的起始封包的內容相同。A. Set a specific packet content. In this embodiment, the content of the packet is also set to 11001100, and the content of the packet is set to be the same as the content of the starting packet of the correct data to be compared.

B.偵測該待測物40送出之各封包是否包含有該封包內容。B. Detecting whether each packet sent by the object to be tested 40 contains the content of the packet.

C.當測得該待測物40送出具有該特定封包內容之封包時,同時啟動該邏輯分析儀30擷取該待測物40後續送出之數位資料D1,並將該邏輯分析儀30所擷取之數位資料D1儲存至該電腦20。C. When the test object 40 is sent out of the packet with the specific packet content, the logic analyzer 30 is simultaneously activated to capture the digital data D1 sent by the object 40 to be tested, and the logic analyzer 30 is configured to be The digital data D1 is stored in the computer 20.

D.請參閱圖4,同時顯示步驟C所擷取並儲存之數位資料D1、及該正確資料D2於該顯示裝置上。如此一來,研發人員不需要在花時間找尋相對應之資料區段,便可於直接於該顯示裝置上比對步驟C所擷取之數位資料D1、與該正確資料D2之間的差異,並據以判斷該待測物40送出之數位資料的正確性。D. Please refer to FIG. 4, and simultaneously display the digital data D1 captured and stored in step C and the correct data D2 on the display device. In this way, the developer does not need to spend time looking for the corresponding data section, and can compare the difference between the digital data D1 captured by step C and the correct data D2 directly on the display device. And determining the correctness of the digital data sent by the object to be tested 40.

另外,於步驟D中,當步驟B所擷取之數位資料D1、與該正確資料D2之間有差異時,更可如圖4所示,將其差異處以不同顏色顯示於該電腦20之螢幕上,藉以使研發人員能更快速地進行比對作業。當然,除利用不同顏色之方式外,亦可利用不同字型、不同大小或是其他不同的顯示方式來達到標註差異處之目的。In addition, in step D, when there is a difference between the digital data D1 captured in step B and the correct data D2, as shown in FIG. 4, the difference is displayed in a different color on the screen of the computer 20. In order to enable developers to perform comparison operations more quickly. Of course, in addition to the use of different colors, you can also use different fonts, different sizes or other different display methods to achieve the purpose of labeling differences.

最後,以上所述僅為本發明較佳可行實施例而已,並不以 此為限,舉例來說,所述之特定封包並不僅僅限制於仿真器之資料傳輸上,如電腦與一終端機之間傳輸訊息時,所發送之特定字元符號亦可做為特定封包內容之解釋。另外,在某些情況下,待測物可能是做為操控邏輯分析儀之用,而直接與邏輯分析儀訊號連接,如此一來,待設誤所輸出之數位資料的該等封包中,可能就已經包含有原先用以指示該邏輯分析儀可以開始擷取資料之一啟動封包,在此情況下,於步驟A中,便可設定啟動封包之內容為該特定封包內容,藉此避免雙重啟動之情形發生。再者,舉凡應用本發明說明書及申請專利範圍所為之等效方法變化,理應包含在本發明之專利範圍內。Finally, the above description is only a preferred embodiment of the present invention, and does not For example, the specific packet is not limited to the data transmission of the emulator. For example, when a message is transmitted between the computer and a terminal, the specific character symbol sent may also be used as a specific packet. Interpretation of the content. In addition, in some cases, the object to be tested may be used as a manipulation logic analyzer, and directly connected to the logic analyzer signal, so that the packets of the digital data to be outputted may be set in the packets. The packet is originally included to indicate that the logic analyzer can start to retrieve data. In this case, in step A, the content of the boot packet can be set as the specific packet content, thereby avoiding double boot. The situation happened. Furthermore, variations of the equivalent methods of the present invention and the scope of the claims are intended to be included in the scope of the invention.

10‧‧‧電子裝置10‧‧‧Electronic devices

20‧‧‧電腦20‧‧‧ computer

30‧‧‧邏輯分析儀30‧‧‧Logic Analyzer

40‧‧‧待測物40‧‧‧Test object

圖1為使用本發明方法之測試系統架構圖;圖2為本發明擷取方法之流程圖。1 is a structural diagram of a test system using the method of the present invention; and FIG. 2 is a flow chart of a method for capturing the present invention.

圖3為使用本發明擷取方法進行擷取的波形示意圖。3 is a waveform diagram of the extraction using the capture method of the present invention.

圖4為本發明擷取檢測方法進行比對的波形示意圖。FIG. 4 is a schematic diagram of waveforms for comparison of the capture detection methods of the present invention.

Claims (9)

一種資料擷取方法,用以擷取一待測物送出之數位資料,且該數位資料包含有複數個封包;該資料擷取方法包含有下列步驟:A.設定一特定之封包內容;B.偵測該待測物送出之各該封包是否具有該封包內容;C.當測得該待測物送出具有該特定封包內容之封包時,同時啟動一邏輯分析儀擷取後續送出之數位資料。 A data acquisition method for capturing digital data sent by a sample to be tested, and the digital data includes a plurality of packets; the data extraction method comprises the following steps: A. setting a specific packet content; B. Detecting whether each of the packets sent by the object to be tested has the content of the packet; C. when detecting that the object to be tested sends the packet with the specific packet content, simultaneously starting a logic analyzer to retrieve the digital data sent subsequently. 如請求項1所述資料擷取方法,其中,於步驟C之後,更包含有一步驟:D.顯示步驟C所擷取之數位資料,於一顯示裝置上。 The data extraction method of claim 1, wherein after step C, there is further included a step of: D. displaying the digital data captured in step C on a display device. 如請求項1所述資料擷取方法,其中,該數位資料之該等封包中包含有一用以指示該邏輯分析儀開始擷取資料之啟動封包;於步驟A中,係設定該封包內容為該啟動封包之內容。 The data capture method of claim 1, wherein the packet of the digital data includes a boot packet for instructing the logic analyzer to start capturing data; in step A, setting the packet content to the Start the contents of the package. 一種資料檢測方法,用以檢測一待測物送出之數位資料的正確性,且該數位資料包含有複數個封包;該資料擷取方法包含有下列步驟:A.設定一特定之封包內容;B.偵測該待測物送出之各該封包是否具有該封包內容;C.當測得該待測物送出具有該特定封包內容之封包時,同時啟動一邏輯分析儀擷取後續送出之數位資料;D.比對步驟C所擷取之數位資料、與一正確資料之間的差 異,並據以判斷該待測物送出之數位資料的正確性。A data detection method for detecting the correctness of a digital data sent by a test object, and the digital data includes a plurality of packets; the data extraction method comprises the following steps: A. setting a specific packet content; Detecting whether each of the packets sent by the object to be tested has the content of the packet; C. when detecting that the object to be tested sends the packet with the specific packet content, simultaneously starting a logic analyzer to retrieve the digital data sent subsequently ; D. Compare the difference between the digital data captured in step C and a correct data. Different, and according to the judgment of the correctness of the digital data sent by the test object. 如請求項4所述資料檢測方法,其中,於步驟D中,更同時顯示有步驟C所擷取之數位資料及該正確資料,於一顯示裝置上。The data detecting method according to claim 4, wherein in step D, the digital data captured in step C and the correct data are displayed on a display device. 如請求項5所述資料檢測方法,其中,於該步驟D中,更將步驟C所擷取之數位資料、與該正確資料間之差異處,以不同之顯示方式顯示於該顯示裝置上。The data detecting method according to claim 5, wherein in the step D, the difference between the digital data captured in the step C and the correct data is displayed on the display device in a different display manner. 如請求項6所述資料檢測方法,其中,於步驟D中,是以不同之顏色顯示差異處。The data detecting method according to claim 6, wherein in step D, the difference is displayed in a different color. 如請求項4所述資料檢測方法,其中,於步驟D所述之該正確資料之啟始封包的內容、與步驟A設定之特定封包的內容相等。The data detecting method according to claim 4, wherein the content of the starting packet of the correct data in step D is equal to the content of the specific packet set in step A. 如請求項4所述資料檢測方法,其中,該數位資料之該等封包中包含有一用以指示該邏輯分析儀開始擷取資料之啟動封包;於步驟A中,係設定該封包內容為該啟動封包之內容。The data detecting method of claim 4, wherein the packet of the digital data includes a booting packet for instructing the logic analyzer to start capturing data; in step A, setting the content of the packet to the booting The content of the packet.
TW101151104A 2012-12-28 2012-12-28 Data capture and detection method TWI472783B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101151104A TWI472783B (en) 2012-12-28 2012-12-28 Data capture and detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101151104A TWI472783B (en) 2012-12-28 2012-12-28 Data capture and detection method

Publications (2)

Publication Number Publication Date
TW201425962A TW201425962A (en) 2014-07-01
TWI472783B true TWI472783B (en) 2015-02-11

Family

ID=51725421

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101151104A TWI472783B (en) 2012-12-28 2012-12-28 Data capture and detection method

Country Status (1)

Country Link
TW (1) TWI472783B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100456734C (en) * 2003-03-13 2009-01-28 马维尔国际贸易有限公司 System structure with multiport memory, device, system and use method thereof
US20090113092A1 (en) * 2007-10-25 2009-04-30 Universal Scientific Industrial Co.,Ltd. Signal converter for debugging that expands fifo capacity
CN102325129A (en) * 2011-07-14 2012-01-18 广州致远电子有限公司 Self-defined protocol decoding technique for measurement and analysis instrument
TWI361351B (en) * 2007-05-14 2012-04-01 Via Tech Inc Testing system of universal serial bus device and method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100456734C (en) * 2003-03-13 2009-01-28 马维尔国际贸易有限公司 System structure with multiport memory, device, system and use method thereof
US8335878B2 (en) * 2003-03-13 2012-12-18 Marvell World Trade Ltd. Multiport memory architecture, devices and systems including the same, and methods of using the same
TWI361351B (en) * 2007-05-14 2012-04-01 Via Tech Inc Testing system of universal serial bus device and method thereof
US20090113092A1 (en) * 2007-10-25 2009-04-30 Universal Scientific Industrial Co.,Ltd. Signal converter for debugging that expands fifo capacity
CN102325129A (en) * 2011-07-14 2012-01-18 广州致远电子有限公司 Self-defined protocol decoding technique for measurement and analysis instrument

Also Published As

Publication number Publication date
TW201425962A (en) 2014-07-01

Similar Documents

Publication Publication Date Title
US8996928B2 (en) Devices for indicating a physical layer error
WO2019169757A1 (en) Test control and test execution device and method, and computer storage medium
CN107870856B (en) Video playing starting time testing method and device and electronic terminal
CN112148515A (en) Fault positioning method, system, device, medium and equipment
WO2018195795A1 (en) Test method, test server, and system
TW201432278A (en) Automatic inspection system and automatic inspection method thereof
TW201439751A (en) Graphic card inspection system and method thereof
WO2018205392A1 (en) Control response area display control method, electronic apparatus, and storage medium
TWI472783B (en) Data capture and detection method
US7958405B1 (en) Automatic testing system and method for judging whether universal serial bus device is configured to computer
TWI436203B (en) Testing method for automatically rebooting a motherboard and recording related debug information and rebooting device thereof
TWI507698B (en) Semiconductor device test apparatus and method thereof
US11068381B2 (en) Program analysis device, program analysis system, program analysis method and computer readable medium
TWI453444B (en) Displays the method of the detection process
CN109522223B (en) Automatic test method and system for vehicle-mounted Android multimedia host
TWI453443B (en) Data analysis method
CN112181744A (en) Fault detection method, system, terminal and storage medium of converter interface
CN112000532A (en) Method, device, equipment and system for detecting disk disorder
CN107451047B (en) Browser function testing method and system and electronic equipment
TW201837795A (en) Remote operating system
CN110321171A (en) Be switched on detection device, system and method
TWI555005B (en) Method and system for testing image data
TWI528042B (en) Logic analyzer and its probe
TW201326859A (en) Data transmission method
TW201415215A (en) Method of data storage device inspection

Legal Events

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