TWI301898B - A system and a method for detecting an usb port specification of a computer - Google Patents

A system and a method for detecting an usb port specification of a computer Download PDF

Info

Publication number
TWI301898B
TWI301898B TW95128379A TW95128379A TWI301898B TW I301898 B TWI301898 B TW I301898B TW 95128379 A TW95128379 A TW 95128379A TW 95128379 A TW95128379 A TW 95128379A TW I301898 B TWI301898 B TW I301898B
Authority
TW
Taiwan
Prior art keywords
data
computer
usb
usb interface
interface specification
Prior art date
Application number
TW95128379A
Other languages
Chinese (zh)
Other versions
TW200809239A (en
Inventor
Gang Zhou
Town Chen
Tom Chen
Win Harn Liu
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 TW95128379A priority Critical patent/TWI301898B/en
Publication of TW200809239A publication Critical patent/TW200809239A/en
Application granted granted Critical
Publication of TWI301898B publication Critical patent/TWI301898B/en

Links

Landscapes

  • Information Transfer Systems (AREA)

Description

1301898 九、發明說明: 【發明所屬之技術領域】 -種USB接ϋ聽檢測彡、統及其方法,制触_種利用待 檢測電腦與設備間進行數據傳輸時,直接解析數據中所具有之標 誌内容以實現對電腦之USB接口規範檢測的系統及其方氺。, 【先前技術】 、/ P遺著電腦處理能力的不斷提升,許多人開始希望自己的電腦 都能夠具有更多更強大的功能,其中透過在電腦上擴充許許多多 設備就是-種常見的作法。使財為了擴充設備,於是乎便開始 面臨到-些安裝和設定上_難,對許多人造成挫折。因此,一 種基於解決上述贿擴充時所遭·齡便開始被實現,這 就是所謂的USB規範。 ' 規範所強綱係-種可崎週邊設備在電腦上隨插即 :概念m電腦以及财的設備彼此之㈣能夠符合 的規範’便可以报㈣的被擴充至電腦上,使用者不 擔心進行電腦時所可能發生的任何絲和設定上的問題。 ^ 了確絲崎合USB職的絲和魏,財在電腦生產 ^有娜情USB細卩分物姉臟 _認魏㈣咖接D可崎合觸的減,t然在實^ 狀前’生谢的檢嶋統必綱確認咖丁 規I 版本),才崎㈣杨魏咖接口 見㈣_呈序來進行_的傳輪和功能的檢測,械得正確的 6 13〇1898 撿測結果。 過去在USB接口規範的檢測上,通常是使用從電腦中傳輸大 量的數據到輔助檢測的設備上,然後透過計算傳輸速度的方式來 進仃USB接口規範的判斷。然而,此種透過數據傳輸速度來檢測 的方法容易受到許多外在目素奸擾喊生差異,如:電腦主機 板架構、中央處理器負载情況、驅動程序執行狀況...等等,而且 這些干擾因素往往又都是交互影響的,所以可能會造成某些時候 在檢測USB接口規範時產生誤判的情形。 有鑑於此,目前生產具有USB接口電腦的廠商無不努力思考 t何改善以往檢測咖接口規範的缺失,希望能夠在此方面能夠 提出-種更為精確而有效率的方法來解決在電腦生產線上對咖 接口規範的檢測工作。 【發明内容】 #雲於以上的問題,本發明的主要目的在於提供一種咖接口 斗1、樣先及其方法’可排除習知技術中利用數據傳輸速度的 接口規範時所受到的其他干擾因素,達到使檢測 、、、口果更為精確有效率。 基於此,本發明所聽之USB接口規範檢測系統,包括有電 設備之USB接=將待檢測咖接口(USB Ρ〇Γί)規範之電腦與 勃體模蚊物^便可1^設備細 1賴組與設備 輪㈣,使設備躺財餘得以直接解 7 1301898 析自設備讀取之數據格式,並根據數制具有之標誌内容來決定 電腦所具有之USB接口規範。 、 對應的USB接口規範檢測方法,則包含下列步驟··電性連接 電腦與設備之USB接π ;執行USB初触並建立電齡設備門 之管道,·透過電腦之設備應用程序模組經由管道寫入數據至設備 之寫入緩衝區;然後透過設備之設爾 刃體模組將數據自寫入^衝 區中轉換複製到讀取緩衝區中;設備應用程序模組再透過管道自 讀取緩衝區中重新讀取數據至電腦中;此時設備應用程序胸於 ^在管道中傳輸時解析數據所具有之數據格式;及根據數據格 式中所包含之標朗容,識別所具有之咖接口規範。 有關本發鴨嫩與實作,舰合_作最佳實施例詳細說1301898 IX. Description of the invention: [Technical field to which the invention pertains] - A kind of USB interface detection and detection system, and a method for making a touch, using the data to be detected between the computer to be detected and the device, directly analyzing the data The content of the logo is used to implement the system for detecting the USB interface specification of the computer and its method. [Prior Art], /P has continued to improve the processing power of computers, many people began to hope that their computers can have more and more powerful functions, which is a common practice by expanding many devices on the computer. . In order to expand the equipment, it was difficult to start facing some installations and settings, which caused frustration for many people. Therefore, an age based on solving the above-mentioned bribe expansion is beginning to be realized. This is the so-called USB specification. 'The norm is strong and strong - the Kawasaki peripheral equipment is plugged in on the computer: the concept m computer and the financial equipment can meet the specifications of the four (four) can be extended (four) to the computer, the user is not worried about Any wire and setup problems that can occur with the computer. ^ The silk and Wei of the Kawasaki and the USB job, the financial production in the computer ^ There is a feeling of USB fine 卩 卩 _ _ _ Wei Wei (four) coffee pick D can be a touch of the reduction, t in front of the real ^ shape Thanks for the inspection of the 嶋 必 确认 确认 确认 确认 确认 确认 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖 咖. In the past, in the detection of the USB interface specification, it was usually used to transfer a large amount of data from a computer to a device for auxiliary detection, and then the judgment of the USB interface specification was made by calculating the transmission speed. However, this method of detecting through data transmission speed is susceptible to many external scams, such as computer motherboard architecture, CPU load conditions, driver execution status, etc., and these Interference factors are often interactive, so it may cause some false positives when detecting USB interface specifications. In view of this, the current manufacturers of computers with USB interfaces are all trying to think about how to improve the lack of previous detection of coffee interface specifications, and hope to be able to propose a more accurate and efficient method to solve the problem in computer production lines. The inspection of the coffee interface specification. SUMMARY OF THE INVENTION [Clouds above the above problems, the main object of the present invention is to provide a coffee interface bucket 1, the first method and its method 'can eliminate other interference factors encountered in the interface technology specification of the data transmission speed in the prior art. To achieve more accurate and efficient detection, and results. Based on this, the USB interface specification detection system that the present invention listens to, including the USB connection of the powered device, the computer that is to be detected by the coffee interface (USB Ρ〇Γί), and the mouse model mosquito can be used. Lai group and equipment wheel (4), so that the equipment can be directly solved. 7 1301898 The data format read from the device is determined, and the USB interface specification of the computer is determined according to the content of the number system. Corresponding USB interface specification detection method includes the following steps: · Electrically connecting the USB connection of the computer and the device; Performing the USB first touch and establishing the pipeline of the electrical age device door, and the device application module through the computer via the pipeline Write data to the device's write buffer; then copy and copy the data from the write buffer to the read buffer through the device's set-up body module; the device application module then reads through the pipeline Re-read the data in the buffer to the computer; at this time, the device application analyzes the data format of the data when it is transmitted in the pipeline; and identifies the coffee interface according to the standard content contained in the data format. specification. Regarding the hair tenderness and implementation of this hair, the ship's joint _ is the best embodiment.

Si。(驗對本發明的目的、構造、特徵、及其功能有進-步 、瞭解,紙配合實施例詳細說明如下。) 【實施方式】 =明係為-翻於檢測USB接口規範的系統及其方法,請 為勺《^nM圖」的部分’整個檢測系統的實體連接關係可以分 接Γ二及設備20兩個部分’透過將電腦10與設備兩者的USB 顯示v:性連接後,便可以透過所執行的電腦可執行程序(圖中未 口 5 ^雜傳輪控制’以便能夠檢測出屬於電腦1 〇之USB接 ^乾。事實上’當電腦1〇與設備2〇完成實體連接後,便 與丁 編麵,當故她b之彳_ 1〇 便形成-個所謂的USB系統,主要的咖系統方塊 1301898 奸囷」中所示,包括電腦ι〇所代表的主機端100、設備 20所代表的設備端2〇〇以及依照USB規範所生成於主機端· 及設傷端200之間的内部連結15〇,透過此一内部連結彻的建 立,電腦10(主機端100)與設備20(設備端2〇〇)之間便可 USB規範進行數據傳輪。 … 本發明於完成「第1A圖」的實體連結並建立「第1B圖」的 USB系統之後,便可以透過其㈣f腦可執行程序來實現本發明 對电腦10之USB接口 5規範的檢測,而所述的電腦可執行程序 i括a現於私月匈1 〇上的设備應用程序模組及實現於設備 2〇上的設備韋刃體模組21。通常設備應用程序模組被執行於電 腦10的應用層,而設備動體模組21係執行於可程式化邏輯元 (CPLD)中。 =月茶考第2圖」的部分’由圖中可知設備應用程序模組n 與設餘體模組21之間會進行相關的交互運作,包括有:設備應 用程序模組11與設備軔體模組21之間的初始化建立管道、透過 設備應雜雜組1彳自電腦1Q寫人轉備2Q以及透過設 傷應用程序模組11自設備20讀取數據到電腦1〇三個主要的階 段,其中寫入/讀取數據的部分則進—步需要設備韋刃體模組Μ的 配合,來將寫人至寫人緩衝區22的數據轉移複製到讀取緩衝區 23,以便㈣讓設備朗程顧、㈣得則娜棘數據。 所謂的初始化建立管道部分,主要係建立在USB系統中主機 端100對設備端200的酬配置作業,包括:供應電源、自我檢 !3〇1898 測、恢復電位、設定位址及配置描述元以及裝載對應驅動程式… 等等,完成之後代表主機端1〇0的電腦10便能夠產生對代表設 備端200的設備2〇之識別與配置,完成識別與配置之後代表兩 者之間已經建立數據傳輸管道(Pipe),因此設備應用程序模組H 便可以藉此進行與設備韌體模組21的溝通以及進行對設備2〇的 數據寫入/數據讀取的程序,以達到數據傳輸控制的目的。另外, 初始化建立管道的部分還包括設備應用程序模組糾與設備章刃體 模組21之間的運作初始化程序。 有關電腦10中設備應用程序模組1彳對設備2〇之數據寫入/ 數據讀取的詳細數據傳輸架構,則可以透過「第3圖」來作說明, 斗寸別強調在電腦1〇這端USB系統的數據傳輸架構。由圖中可知, 電腦10與設備20之間直接透過USB接口 5來進行實體的連接, 而在電腦10這端的數據傳輸架構可以分為軟體和硬體兩個 來作說明: 刀 (1) 硬體部分,除了用來與設備2〇進行實體連結的USB接口 5之外,還包括(JSB系統基礎架構所需的USB主控制器12及 USB根集線器13。 (2) 軟體部分,則除了在應用層的設備應用程序模組糾之外, =電腦10的驅動層中還包括有對應USB主控制器12及USB根 术線為、13的USB總線驅動程序14以及對應設備20之設備驅氣 程序15。 勒 田5又備應用程序模組11欲透過USB接口 5對設備2〇進;^ 13〇1898 人時’首先會透過電腦1G之輸出/人管理_中未奸 =包為b~封包嶋 範·1 細鶴辦15再朗咖刪⑴2的規 ^依::先前_ 2_嚇職_靖2G所建立 扭供Γ後將USB請求塊透過此管道經由實體USB接口5發送给 & f 20 ’進行數據寫入至設備2〇的程序。 。 =地,當設備應用程序模組Μ欲自設備2〇中讀取數據時, 'a 、腦1〇鈿的數據傳輪架構也會以相似的運作方式向設備2〇 提出請求來完成讀取數據的程序,在此不再重複描述。又 元整的USB接口規範檢測方法的運作流程,請參考「第4 圖」的部分。首先電性連接電腦與設備20的USB接口 5(步 驟300),之後便開始進行初始化並建立管道(步驟抑),除了 usb 祕本身的初始化之外還包括設備應用程賴組H與設備勃體 模組21之間的初始化程序,完成之後設備應用程序模組η與設 備韋刃體模組21之間便可以基於USB纽規絲進行數據傳輸^ 制;此時設備應用程序模組可以透過管道將所需寫入到設備2〇 中的數據依照「第3圖」的數據傳輸架構傳送至設備2〇的寫入緩 衝區22(或稱第一緩衝區)中(步驟32〇);在設備應用程序模組扣 寫入數據到設備20的同時’設備韌體模組21會自動視寫入緩衝 區22的寫入狀況來智能的判斷是否需要進行數據轉換複製的程 11 1301898 2如果寫人數據已經滿足4的條件(如:佔用寫人緩衝區22 :董達-定比例)時便自動啟動數據轉換複製的程序,將寫入緩衝 =22中的數據逐-轉換複製到讀礼緩衝㊄23(或稱第二緩衝區) 一(v驟330),以便提供设備應用程序模組彳1可以同步進行數據 靖取矛王序,當然設備勒體模組21在進行數據轉換複製時也會依昭 2腦辦所具有之USB規範來進行;在數據被轉換複製的同時,' 设備應用程序模組可以開始自設備2〇的讀取緩衝區23中將被轉 1換複製的數射新透齡道讀取出來(步驟3鄉重新讀取出麵 f據便可以由設備應歸賴組11對其進行解析的動作以取得 數據中的USB數據格式(步驟);透過對USB數據格式作 諸内容的制彻,設備朗程序魅彳彳便可以㈣獲知電: 所具有之USB接口 5的規範為何(步驟36〇),實現直接透過解 析數據中所具有之標諸内容檢測電腦j 〇之USB接口規範。 =的運作嫌係基於USB系統規範來進行數據傳&輸控制 、戶'上在USB糸統的基本規範中對於數據傳輸的管道(或 _通道)’提出包括··㈣#難邮。_丨MQde)、中斷傳輪 模式(Interrupt Mode)、巨量傳輸模式(Bu|k M〇de)及即時傳輸模= (Isochronous Mode)等四種不同傳輸模式,在本發明中為^^ =數«料的傳輸,基本上在管道上係採取巨量傳輪模: Mode)來進行的。 、〜 此外,USB ,系統的數據傳輪過程(即在數據寫入/讀取 時’會透過不歸零就反向(NRZ丨)的編碼方式來對數據進行編^ 12 1301898 輸·,為了避免產生數據傳輸時的錯誤,還包括透過位元= (Bit-Stuffing)方式來對數據進行加強編碼。Si. (The purpose of the present invention is to further improve the purpose, structure, features, and functions of the present invention. The paper cooperation embodiment is described in detail below.) [Embodiment] = System is a system for detecting USB interface specifications and method thereof Please use the part of the "^nM diagram" for the scoop "^nM diagram". The physical connection relationship of the entire detection system can be tapped and the two parts of the device 20 can be connected by USB connection between the computer 10 and the device. Through the executed computer executable program (the picture is not ported 5 ^ miscellaneous wheel control ' so that it can detect the USB connection of the computer 1 。. In fact, when the computer 1 〇 and the device 2 〇 complete physical connection, It is also with Ding, when she is b _ _ 〇 形成 形成 - 个 个 个 个 个 个 个 个 个 个 个 主要 主要 主要 主要 主要 主要 USB USB USB USB USB USB USB USB USB USB USB USB USB USB USB USB USB USB USB USB USB USB USB USB The device terminal 2 〇〇 and the internal connection 15 生成 generated between the host terminal and the injury terminal 200 according to the USB specification are completely established through the internal connection, and the computer 10 (the host terminal 100) and the device 20 are provided. USB specification between (device side 2) The data transmission wheel. The invention realizes the USB interface of the computer 10 through the (four) f brain executable program after completing the physical connection of "1A" and establishing the USB system of "1B". Standardized detection, and the computer executable program includes a device application module currently on the private month Hungarian 1 and a device blade module 21 implemented on the device 2. The device application is usually used. The module is executed on the application layer of the computer 10, and the device dynamic module 21 is executed in the programmable logic element (CPLD). The part of the monthly tea test (Fig. 2) is shown in the figure. The interaction between the group n and the set-up module 21 may include: initializing a pipeline between the device application module 11 and the device body module 21, and the device should be miscellaneous. The computer 1Q writes the transfer 2Q and reads the data from the device 20 to the computer through the damage application module 11 in three main stages, wherein the part that writes/reads the data needs to advance the device. Module Μ cooperation, to write people to write buffer 22 The data transfer is copied to the read buffer 23, so that (4) let the device process the device, and (4) obtain the data of the device. The so-called initialization establishes the pipeline portion, mainly based on the configuration of the host device 100 to the device end 200 in the USB system. Homework, including: power supply, self-checking! 3〇1898 measurement, recovery potential, setting address and configuration description element, and loading corresponding driver... etc. After completion, the computer 10 representing the host terminal 1〇0 can generate a representative The identification and configuration of the device 2 of the device 200 is completed. After the identification and configuration is completed, a data transmission pipe (Pipe) is established between the two, so that the device application module H can perform the device firmware module 21 by using the device. The communication and the program of data writing/data reading to the device 2 to achieve the purpose of data transmission control. In addition, the initialization portion of the pipeline also includes an operation initialization procedure between the device application module and the device chapter blade module 21. The detailed data transmission architecture of the device application module 1 in the computer 10 for data writing/data reading of the device 2 can be explained by "Fig. 3", and the emphasis is on the computer. The data transmission architecture of the USB system. As can be seen from the figure, the computer 10 and the device 20 directly connect through the USB interface 5 for physical connection, and the data transmission architecture at the end of the computer 10 can be divided into two parts: software and hardware: Knife (1) Hard The body part, in addition to the USB interface 5 for physical connection with the device 2, includes the USB host controller 12 and the USB root hub 13 required for the JSB system infrastructure. (2) The software part is except In addition to the device application module of the application layer, the driver layer of the computer 10 further includes a device corresponding to the USB host controller 12 and the USB root line, the USB bus driver 14 of the 13 and the device 20 of the corresponding device 20 Program 15. Letian 5 and the application module 11 want to enter the device 2 through the USB interface 5; ^ 13〇1898 people's first through the computer 1G output / person management _ in the ugly = package for b~嶋 嶋 · · · · · · · 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 ; f 20 'Program to write data to device 2 。 = ground, when device application When the sequence module wants to read data from the device 2, the data transmission architecture of 'a and brain 1也会 will also make a request to the device 2 to complete the process of reading data in a similar operation mode. The description of the operation procedure of the USB interface specification detection method is also referred to in the section of Figure 4. First, the USB interface 5 of the computer and device 20 is electrically connected (step 300), and then initialization is started. And establishing a pipeline (step suppression), in addition to the initialization of the usb secret itself, the initialization procedure between the device application group H and the device body module 21 is completed, and the device application module η and the device Wei blade body are completed after completion. The module 21 can perform data transmission based on the USB button wire; at this time, the device application module can write the data required to be written into the device 2 through the pipeline according to the data transmission architecture of "Fig. 3". Transfer to the write buffer 22 (or the first buffer) of the device 2 (step 32); while the device application module deducts the data to the device 20, the device firmware module 21 automatically Depending on the write to write buffer 22 In the case of intelligent judgment, it is necessary to perform data conversion and copying. 11 1301898 2 If the write data has satisfied the condition of 4 (for example, occupying the write buffer 22: Dongda-proportion), the program of data conversion and copying is automatically started. Copying the data in the write buffer = 22 to the reading buffer 5 23 (or the second buffer) (v step 330), so as to provide the device application module 彳1 can synchronize the data acquisition Spear king order, of course, the device body module 21 will also carry out the data conversion and copying according to the USB specification of the Zhao Brain Office; while the data is converted and copied, the 'device application module can start from The reading buffer 23 of the device 2〇 will be read by the digitally-transplanted new obsolete road that has been transferred to the copy 1 (step 3) re-reading the surface f, the device can be resolved by the device 11 The action is to obtain the USB data format in the data (step); through the preparation of the content of the USB data format, the device can be read (4) to know the power: What is the specification of the USB interface 5 (step 36) 〇), achieve direct analysis of data The standard content has various USB interface specification of detection of computer j billion. The operation of the system is based on the USB system specification for data transmission and transmission control, and the household's basic specification for the USB system is for the pipeline (or _channel) of data transmission. Four different transmission modes, such as _丨MQde), Interrupt Mode, Bu|k M〇de, and Isochronous Mode, are ^^ = in the present invention. The transmission of the number of materials is basically carried out by taking a huge amount of transfer mode: Mode on the pipe. , ~ In addition, USB, the system data transfer process (that is, when data is written / read) will be encoded by the non-return to zero (NRZ 丨) encoding method ^ 130 1301898 · In order to Avoid errors in data transmission, including enhanced encoding of data by Bit=Stuffing.

本發明_技術手段在於,她㈣與設備2Q之間 傳輸都會倾符合職蚊USB __咖規範來進行广 因此其貫在砰咖祕及USB規範下,觸雜據格式也都 會有所不同,因此可以藉由此種數據格式的雜來辅助檢測電腦 10上所具有之USB接口 5的規範。「第5a圖」及「第犯圖」 則分別舉出兩種符合不同USB規範的數據格式實施例。The technical means of the invention is that the transmission between her (4) and the device 2Q will be carried out in accordance with the standard of the USB __ café, so that the format of the touch data will be different under the 砰 秘 及 and USB specifications. Therefore, the specification of the USB interface 5 on the computer 10 can be assisted by the miscellaneous data format. "5a" and "figure map" respectively illustrate two data format embodiments that conform to different USB specifications.

、主μ在第一數據格式4〇0及第二數據格式500白勺實施例當中可以 ’月疋么現基本符合USB規範的^:據格式都擁有相同的數據格式 攔位,包括:同步段落攔位(SYNC Sessi〇n,通常排列於數據封 f的開頭)’識棚位(絲表讀據封包_、數據封包格式與錯 决偵測類型)、位址欄位(用來表示連接設備的連接位置)、端點搁 位(用來決定纽的縣)、訊框.(絲進行科傳輸的控制)、 貝料攔位(絲雜㈣的β容)及彳練冗餘姆她(用來備測數 據封包的錯誤與否)。 其中,進一步可以發現在圖中分別所示之第一數據格式4〇〇 及第二數據格式500的同步段落欄位(410與510),所記錄的標誌 内谷(子串)明顯有所不同,400中的字串為:“KJKJKJKK” ;而 5〇〇 中的字串為“KJKJKJKJKJKJKJKJKJKJKJKJKJKJKJKK”。 表不不同USB規範的數據格式中雖然數據格式欄位相同,但 13 1301898 卻因為不同USB規範而有所不同,如· f t”、' 1 ·1規觀的内容’而500的標諸内容為USB2.0 ,谷。因此,本發_肢鄕點勒如前所述的交互運 =中中的__模㈣得以自咖系統 、吕、紐取出數據格式巾的標朗容輯行對咖接口 規_檢測,雜在實施财採取彻“同步贿·,,的標德 内谷來作為判斷依據,但是實際上熟悉該項技術者可以秉持相同In the embodiment of the first data format 4〇0 and the second data format 500, the main μ can be said to have the same data format block, including: synchronization paragraph. Block (SYNC Sessi〇n, usually arranged at the beginning of the data seal f) 'sense shed (wire table read data packet _, data packet format and wrong detection type), address field (used to indicate the connected device The connection position), the end of the position (to determine the county of New Zealand), the frame (the control of the transmission of the wire), the block of the material (the beta of the silk (four)) and the training of the redundant Used to prepare for errors in data packets). Wherein, the synchronized paragraph fields (410 and 510) of the first data format 4〇〇 and the second data format 500 respectively shown in the figure may be found, and the recorded intra-valley (sub-string) is obviously different. The string in 400 is: "KJKJKJKK"; and the string in 5〇〇 is "KJKJKJKJKJKJKJKJKJKJKJKJKJKJKJKK". Although the data format fields are the same in the data format of the different USB specifications, 13 1301898 is different because of different USB specifications, such as · ft", '1 · 1 view content' and 500 is marked as USB2.0, Valley. Therefore, this issue _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Interface regulations _ detection, miscellaneous in the implementation of the fiscal "take the bribe," the standard of the inside of the valley as a basis for judgment, but in fact, those who are familiar with the technology can uphold the same

的技術概念’採取叫他齡的方絲進行USB如規範的判 別’在不麟本發明之精神和顧内,當可作些許之更動與潤飾, 並不以本發明所述的為限。因此本發明之專利保護範圍須視本說 明書所附之申請專利範圍所界定者為準。 【圖式簡單說明】 第1A圖係本發明電腦與設備之USB接口實體連結示意圖。 第1B圖係第1A圖完成USB初始化之USB系統方塊示意圖。 第2圖係本發明設備應用程序模組與設備韌體模組間交互運 作示意圖。 第3圖係本發明設備應用程序模組之數據傳輸架構示意圖。 第4圖係本發明方法流程圖。 第5A圖係符合USB接口規範之第一數據格式實施例示意 圖。 第5B圖係符合USB接口規範之第二數據格式實施例示意 圖。 14 1301898 【主要元件符號說明】 5 USB 接口 10 電腦 11 設備應用程序模組 12 USB主控制器 13 USB根集線器 14 USB總線驅動程序The technical concept of 'taking a square wire of a young age to carry out USB as a specification judgment' is not limited to the spirit of the present invention, and may be modified and retouched, not limited by the present invention. Therefore, the scope of patent protection of the present invention is defined by the scope of the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1A is a schematic diagram of a USB interface entity connection between a computer and a device of the present invention. Figure 1B is a block diagram of the USB system in which USB initialization is completed in Figure 1A. Figure 2 is a schematic diagram of the interaction between the device application module and the device firmware module of the present invention. Figure 3 is a schematic diagram of the data transmission architecture of the device application module of the present invention. Figure 4 is a flow chart of the method of the present invention. Figure 5A is a schematic diagram of an embodiment of a first data format conforming to the USB interface specification. Figure 5B is a schematic diagram of an embodiment of a second data format conforming to the USB interface specification. 14 1301898 [Key component symbol description] 5 USB interface 10 Computer 11 Device application module 12 USB host controller 13 USB root hub 14 USB bus driver

15 設備驅動程序 20 設備 21 設備韌體模組 22 寫入缓衝區 23 讀取緩衝區 100 主機端 150 内部連結 200 設備端 400 第一數據格式 410 第一數據格式同步段落欄位 500 第二數據格式 510 第二數據格式同步段落欄位 1515 Device Driver 20 Device 21 Device Firmware Module 22 Write Buffer 23 Read Buffer 100 Host Side 150 Internal Link 200 Device End 400 First Data Format 410 First Data Format Synchronization Paragraph Field 500 Second Data Format 510 second data format synchronization paragraph field 15

Claims (1)

1301898 十、申請專利範圍·· 1·:種咖_規範制方法,贿透料部連接設備來檢測 電上所具有之咖接口規範,該方法包含下列步驟·· 電性連接電腦與設備之USB接口 ; 執行USB初始化並建立電腦與設備間之一管道; 電腦之一設備應用程序模組透過該管道寫入數據至設備 之一第一緩衝區; 設備之一設備韌體模組將數據自該第一緩衝區中轉換複 製到一第二緩衝區中; 忒设備應用程序模組透過該管道自該第二緩衝區中重新 讀取數據至電腦; 該設備應用程序模組於數據在該管道中傳輸時解析數據 所具有之數據格式;及 根據數據格式中所包含之一標誌内容,識別電腦所具有之 USB接口規範。 2·如申凊專利範圍第1項所述之USB接口規範檢測方法,其中 該管道係為利用一巨量傳輸模式(Bulk Mode)進行數據傳輸的 資料通道。 3-如申請專利範圍第1項所述之USB接口規範檢測方法,其中 該設備應用程序模組對數據的寫入/讀取更包含透過一不歸零 就反向(NRZI)編碼方式進行數據編碼。 4_如申請專利範圍第3項所述之uSB接口規範檢測方法,其中 16 1301898 該設備應用程序模組對數據的寫入/讀取係透過一差分信號 (Differential Signal)方式進行數據傳輸。 5·如申請專利範圍第4項所述之USB接口規範檢測方法,其中 該設備應用程序模組對數據的寫入/讀取更包含透過一位元填 充(Bit_Stuffing)方式進行數據編碼。 6_如申請專利範圍第1項所述之(JSB接口規範檢測方法,其中 該標遠内容係指同步段落欄位(SYNC Session)内容。 7· —種USB接口規範檢測系統,用於透過外部連接設備來檢測 電腦上所具有之USB接口規範,該系統包含: 一設備應用程序模組,執行於電腦上,用以於電腦與設備 之USB接口電性連接時執行usb初始化並建立電腦與設備間 之一管道,將數據寫入設備之一第一緩衝區、自設備之一第二 緩衝區讀取數據,及解析數據格式所包含之一標諸内容;及 一設備韌體模組,執行於設備上,用以於該設備應用程序 模組將數據寫入該第一缓衝區時負責將數據轉換複製到該第 二緩衝區供該設備應用程序模組重新讀取; 其中’該設備應用程序模組根據該標誌内容,識別電腦所 具有之USB接口規範。 8_如申請專利範圍第7項所述之USB接口規範檢測系統,其中 該管道係為利用一巨量傳輸模式(Bulk Mode)進行數據傳輸的 資料通道。 9_如申請專利範圍第7項所述之USB接口規範檢測系統,其中 17 1301898 該設備應用程序模組對數據的寫入/讀取更包含透過一不歸零 就反向(NRZI)編碼方式進行數據編碼。 10.如申請專利範圍第9項所述之USB接口規範檢測系統,其中 該設備應用程序模組對數據的寫入/讀取係透過一差分信號 (Differential Signal)方式進行數據傳輸。 11·如申請專利範圍第10項所述之USB接口規範檢測系統,其中 該設備應用程序模組對數據的寫入/讀取更包含透過一位元填 • 充,沒_9)方式進行數據編碼。 ^ 12.如申請專利顧第7酬述之USB接口規範檢啦統,其中 該標遠'内容係指同步段落搁位(SYNC Session)内容。1301898 X. The scope of application for patents··1: The method of making coffee _ the standard method, the bribe permeable department is connected to the device to detect the coffee interface specification on the electricity, the method includes the following steps: · USB connecting the computer and the device Interface; perform USB initialization and establish a pipe between the computer and the device; one of the device application modules of the computer writes data to the first buffer of the device through the pipe; one of the devices of the device firmware module The conversion in the first buffer is copied to a second buffer; the device application module re-reads data from the second buffer to the computer through the pipeline; the device application module is in the pipeline The data format of the data is parsed during transmission; and the USB interface specification of the computer is identified according to one of the flag contents included in the data format. 2. The USB interface specification detecting method according to claim 1, wherein the pipeline is a data channel for data transmission by using a bulk transfer mode (Bulk Mode). 3. The USB interface specification detecting method according to claim 1, wherein the device application module writes/reads the data to include data by a non-return-to-zero (NRZI) encoding method. coding. 4_ The method for detecting the uSB interface specification described in claim 3, wherein the device application module writes/reads data through a differential signal. 5. The USB interface specification detecting method according to Item 4 of the patent application scope, wherein the device application module writes/reads the data to include data encoding by a bit_Stuffing method. 6_ As described in the scope of claim 1 (JSB interface specification detection method, wherein the standard content refers to the content of the synchronization paragraph field (SYNC Session). 7. A USB interface specification detection system for external use Connect the device to detect the USB interface specification on the computer. The system comprises: a device application module, executed on the computer, for performing USB initialization and establishing the computer and the device when the computer and the USB interface of the device are electrically connected One of the pipelines, writes data to the first buffer of one of the devices, reads data from one of the second buffers of the device, and parses one of the contents of the data format; and a device firmware module executes On the device, when the device application module writes data to the first buffer, it is responsible for copying the data conversion to the second buffer for the device application module to re-read; wherein the device The application module identifies the USB interface specification of the computer according to the content of the flag. 8_ The USB interface specification detection system described in claim 7 of the patent scope, wherein the pipeline system A data channel for data transmission using a bulk transfer mode (Bulk Mode). 9_ The USB interface specification detection system described in claim 7 of the patent application, wherein 17 1301898 the device application module writes data to / The reading further includes data encoding by a non-return-to-zero (NRZI) encoding method. 10. The USB interface specification detecting system according to claim 9, wherein the device application module writes data. The input/read system transmits data through a differential signal. 11. The USB interface specification detection system according to claim 10, wherein the device application module writes/reads data. The data is encoded by means of a one-filled fill, no _9). ^ 12. If you apply for a patent, the USB interface specification of the 7th remuneration, where the standard content refers to the content of the SYNC Session. 1818
TW95128379A 2006-08-02 2006-08-02 A system and a method for detecting an usb port specification of a computer TWI301898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW95128379A TWI301898B (en) 2006-08-02 2006-08-02 A system and a method for detecting an usb port specification of a computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW95128379A TWI301898B (en) 2006-08-02 2006-08-02 A system and a method for detecting an usb port specification of a computer

Publications (2)

Publication Number Publication Date
TW200809239A TW200809239A (en) 2008-02-16
TWI301898B true TWI301898B (en) 2008-10-11

Family

ID=44767096

Family Applications (1)

Application Number Title Priority Date Filing Date
TW95128379A TWI301898B (en) 2006-08-02 2006-08-02 A system and a method for detecting an usb port specification of a computer

Country Status (1)

Country Link
TW (1) TWI301898B (en)

Also Published As

Publication number Publication date
TW200809239A (en) 2008-02-16

Similar Documents

Publication Publication Date Title
TW410516B (en) Electromagnetic safety enhancement device for universal serial bus and method thereof
TW200417867A (en) Simplifying integrated circuits with a common communications bus
TWI308723B (en) System for simulating mobile phone and method thereof
WO2019033643A1 (en) Method and apparatus for distinguishing writing made by multiple electromagnetic pens, and electronic device
TWI301898B (en) A system and a method for detecting an usb port specification of a computer
CN108153699A (en) A kind of AHB turns AXI protocol switching controller design method
US9733723B2 (en) Apparatus for remote application of manual signatures to electronic documents
CN105094886A (en) Device and method for burning serial number to lower computer containing RS (Recommended Standard) 485 bus from PC (Personal Computer) machine
CN103810068A (en) SD card slot based debugging equipment, system and method
TWI597613B (en) Remote sharing system and method
CN203149581U (en) USB isolation device
JPS5856018A (en) Input and output controller
TW200831919A (en) Method and device for improving debug time of a monitor
CN110457278A (en) A kind of document copying method, device, equipment and storage medium
CN204615854U (en) A kind of cloud computing data encryption device
CN107643900A (en) Display and upgrading method
CN107967215A (en) A kind of method and apparatus for testing vehicle-mounted multimedia handset interacted system automatically
CN105468992A (en) Method related to limitation to content duplication of electronic medical record editor
WO2022170721A1 (en) Method for calibrating parking image auxiliary lines
CN203658992U (en) Computer evidence obtaining device
CN207817693U (en) A kind of computer input device that can be compatible with a variety of data lines
WO2016138621A1 (en) Image processing method and apparatus, and electronic terminal
TW463095B (en) Method for preventing losing data when proceeding hot plug on IDE interface
CN104809034B (en) A kind of wallpaper restoring method and equipment
TW589628B (en) Method to execute direct-writing of data by read/write-able optical disk driver

Legal Events

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