1376891 六、發明說明: 【發明所屬之技術領域】 本發明有關於-種資料傳輸系統和方法’特別是關於 一種可準確探測終端設備的資料傳輸系統和方法。 【先前技術】 ^ 隨著光傳輸技術的發展,光纖傳輸在傳輸速率/傳輸距 離和抗干擾能力上的優勢,使光傳輸技術得到了越來越廣 泛的應用。由於光傳輸技術的優勢,目前越來越多的應用 希望將主機(Host)和設備(Device)分別耦接光收發模 組(optical transceiver module)進行光電轉換後,透過光 纖(fiber)來進行資料傳輸,如此將使得主機和設備之間 的資料傳輸更快也更加穩定。目前上述的作法在實施方面 尚有一些問題存在。本發明將提出一種新的資料傳輸系統 及資料傳輸方法,提供一鏈結夥伴(link partner )準蜂探 測到經由光收發組件的另一鏈結夥伴是否連接,從而使鏈 結夥伴之間(例如主機和設備)可以通過光收發組件進行 穩定的資料傳輸,以解決現有技術存在的問題。 【發明内容】 有鑒於此,本發明提供一種資料傳輸系統,該資料傳 輸系統包括一第一鏈結夥伴,該第一鏈結夥伴包括一第一 控制單元,該第一控制單元用於當該第一鏈結夥伴處於非 正常工作模式時,使該第一鏈結夥伴從該非正常工作模式 跳出;以及一光收發組件,耦接在該第一鏈結夥伴與一第 二鏈結夥伴之間,用於進行該第一鏈結夥伴和該第二鏈結 夥伴間的資料傳輸。 ° [S1 VIC10-001 lI00-TW/0608-A42664TWf . 1376891 本發明還提供一種資料傳輸方法,應用於一資料傳輸 系統,該資料傳輸系統包括一第一鏈結夥伴、一第二鏈結 夥伴、以及一光收發組件,該光收發組件耦接於該第一鏈 I夥伴與該第二鏈結夥伴之間,該資料傳輸方法包括當 該第一鏈結夥伴操作在非正常工作模式時,判斷一預定條 件是否滿足,·以及當該預定條件滿足時,該第一鏈結夥伴 從該非正常工作模式跳出。 本發明所述的資料傳輪系統和資料傳輸方法,提供一 • 鏈結夥伴準確探測到經由光收發組件的另一鏈結夥伴是否 連接,從而使鏈結夥伴之間(例如主機和設備)可以通過光 收發組件進行穩定的資料傳輸。 【實施方式】 為使本發明之上述目的、特徵和優點能更明顯易懂, 下文特舉一較佳實施例,並配合所附圖式,作詳細說明如 下。 第1圖是現有技術的主機和設備間進行資料傳輸的方 • 塊圖。其中主機120可以是快速外設元件互連標準(pciE) 介面規格或通用串列匯流排版本3.0 (USB3.0)介面規格 等’支援熱插拔功能的高速電子收發器。該主機12〇每隔 一定時間會輪詢(polling)是否有設備插入,當探測到設 備150插入時,該主機120會發起傳輸一鏈結訓練序列(Hnk training sequence)以建立與設備150的鏈結。與此同時, 設備150也會每隔一定時間輪詢主控端是否存在,當探測 到主機120存在時’也會發起傳輸一鏈結訓練序列以建立 與主機120的鏈結。 VIC10-001 lI〇〇-TW/0608-A42664TWf 5 1376891 主機120與設備150的耦接方式如第1圖所示,主機 120的正發送信號端TX+和負發送信號端TX-耦接至設備 150的正接收信號端RX+和負接收信號端RX-,實現由主 機120向設備150發送資料,資料可以是以一差動信號對 的形式發送;主機120的正接收信號端RX+和負接收信號 端RX-耦接至設備150的正發送信號端TX+和負發送信號 端TX-,實現由設備150向主機120發送資料,資料也可 以是以一差動信號對的形式發送。主機120通過輪詢其正 發送信號端TX+和負發送信號端TX-之間是否耦接差分終 端阻抗(differential terminator impedance)來判斷是否有設 備端插入。當設備150如第1圖所示耦接至主機120並準 備好時,設備150的正接收信號端RX+和負接收信號端RX-之間就會存在差分終端阻抗112。在一實施例中,設備150 的正接收信號端RX+和負接收信號端RX-均耦接一電阻至 一接地端(ground),以實現差分終端阻抗112。主機120 探測到其正發送信號端TX+和負發送信號端TX-之間出現 了差分終端阻抗,也就是探測到了差分終端阻抗112的存 在,則認為有設備端插入,因此主機120會發起傳輸一鏈 結訓練序列。而設備150也會輪詢探測到其正發送信號端 TX+和負發送信號端TX-之間是否存在差分終端阻抗113 以判斷是否耦接到主機120。在一實施例中,主機120的 正接收信號端RX+和負接收信號端RX-均耦接一電阻至一 接地端,以實現差分終端阻抗113。當設備150探測到其 正發送信號端TX+和負發送信號端TX-之間存在差分終端 阻抗113,設備150也會發出一回應信號給主機120,該主S] VIC 10-0011 !00-TW/0608-A42664TWf 6 1376891 機120接收到該回應信號時,該鏈結訓練序列建立成功, 主機與設備150間正常鏈結,以進行資料傳輸。在一實施 例中,回應信號為一低頻週期信號(Low Frequency Periodic Signal),其週期範圍為20-1 〇〇ns。 但某些應用中,例如將主機和設備分別耦接光收發模 組進行光電轉換後,透過光纖來進行資料傳輸時,會存在 問題,以下將詳細描述。第2圖顯示主機和設備間經由光 收發組件進行資料傳輸的方塊圖。在一實施例中,該光收 發組件為主動型光纜(active optical cable, AOC)。如第2 圖所示’光收發組件230包含光收發模組201、光收發模 組203和光纖205。為了使圖示清楚以及方便說明,在第2 圖中僅示意主機210與設備250之間的資料傳輸之電性連 接’並未標示光收發模組201與光收發模組203中的光被 動元件’例如雷射二極體與感光二極體等。上述光被動元 件是用以進行電信號與光信號之間的轉換。 第2圖中’主機210的正發送信號端TX+和負發送信 號端TX-輕接於光收發模組201的一第一發送對T+/T-,光 收發模組201耦接於主機210,用於將主機210發出的電 信號轉換為光信號。光纖205耦接光收發模組201和光收 發模組203,用於進行兩個光收發模組2〇1和光收發模組 203間的光傳輸。光收發模組203耦接於設備250,用於將 光信號轉換為電信號,由光收發模組203的一第二接收對 R+/R-提供給設備250的正接收信號端RX+和負接收信號 端RX- ’進行資料傳輸。 當光收發組件230的一端(光收發模組2〇1這一端) VIC10-001 l!00-TW/0608-A42664TWf 7 1376891 耦接至主機210時,由於光收發模組2〇1包含内部固化 (internal fixed )的電阻207和電阻209其耦接於光收發模 、、且201的第一發送對T+/T-,主機210就會探測到其正發送 信號端TX+和負發送信號端TX_之間出現了差分終端阻 抗,則立即邁為有設備端插入,因此會發起傳輸一鏈結刺 練序列。但是當光收發組件230的另一端並沒有耦接到設 備250時,該鏈結訓練序列就會建立失敗,主機21〇會進 入一非正常工作模式。在非正常工作模式下,主機2ι〇θ無 法再和設備250進行資料傳輸,也無法從上述非正常模式 中跳出。只有在將主機重置(reset)後,主機才能重新監 測是否連接一設備。在一實施例中,非正常工作模式為一 標準相容模式(compliance mode),在此標準相容模式下, 用以測試主機210發出信號的完整性。 另一方面,在第2圖中,設備250的正發送信號端τχ+ 和負發送信號端ΤΧ-耦接於光收發模組203的一第二發送 對Τ+/Τ-,光收發模組203耦接於設備250,用於將設備25〇 發出的電信號轉換為光信號。光纖206耦接光收發模組2〇1 和光收發模組203,用於進行兩個光收發模組2〇1和光收 發模組203間的光傳輸。光收發模組2〇 1輕接於主機21 〇, 用於將光信號轉換為電信號’由光收發模組2〇1的一第一 接收對R+/R-提供給主機210的正接收信號端Rx+和負接 收说端RX-,進行資料傳輸。 、 當光收發組件230的一端(光收發模組2〇3這一端) 耦接至設備250時,由於光收發模組203包含内部固化的 電阻211和電阻213其耦接於光收發模組2〇3的第二發送$ VIC10-001 H〇〇_TW/〇608-A42664TWf 8 1376891 對T+/T-,設備250就會探測到其正發送信號端τχ+和負發 送信號端TX·之間出現了差分終端阻抗,則立即認為有主 機端插入,因此會發起傳輸一鏈結訓練序列。但是當光收 發組件230的另一端並沒有耦接到主機210時,該鏈結訓 練序列就會建立失敗’設備250會進入一非正常工作模 式。在一實施例中,非正常工作模式為一標準相容模式, 在此標準相容模式下,用以測試設備250發出信號的完整 性。在一實施例中,非正常工作模式為一測試模式,用以 • 測試一鏈結夥伴的信號完整性。在一實施例中,光收發模 組203的第二發送對T+/T-上也存在内部固化的電阻211與 電阻213,電阻211和電阻213分別耦接至第二發送對τ+/τ_ 之一者與一接地端。當主機210或設備250進入標準相容 模式時,主機210和設備250間是無法進行資料傳輸的。 因此,對於一鏈結夥伴而言’目前並無法準確探測到經由 光收發組件的另一鏈結夥伴是否連接,從而使鏈結夥伴之 間(例如主機和設備)可以通過光收發組件進行穩定的資 • 料傳輸,從而建立光纖通訊。因此,需要一種新的資料傳 輸系統和方法,來解決此問題。 本發明的主要特徵,在於當主機或設備在通過光收發 組件耦接時’若主機或設備進入到非正常工作模式時,可 以通過主機或設備中的一控制單元從而使主機或設備跳出 該非正常工作模式,從而在主機和設備都輕接到光收發組 件且主機和設備都準備好時,主機和設備間進行正常的資 料傳輸。在一實施例中,通過主機或設備中的一控制單元 從而使主機或设備跳出該非正常工作模式而回到主機或設 VIC10-001 lI〇〇-TW/〇608-A42664TWf 0 1376891 備的一偵測鏈結狀態或是一輪詢回應信號狀態,以監測是 否耦接另一設備或主機或是另一設備或主機有無一回應信 號。上述主機和設備可以為串列傳輸介面規格的主機和設 備,例如快速外設元件互連標準(PCIE)介面規格或是通 用串列匯流排版本3.0 (USB3.0)介面規格,其通過光收 發組件進行光纖通訊。 第3圖為本發明的一具體實施例中第一鏈結夥伴與第 二鏈結夥伴(例如主機和設備間)進行資料傳輸的流程圖。 第3圖中以第一鏈結夥伴(例如一主機)輪詢是否有第二鏈 結夥伴(例如一設備)插入為具體實施例,而第二鏈結夥伴 (例如設備)輪詢是否與第一鏈結夥伴(例如主機)_接的情 況與此實施例相同,在此不再贅述。 在步驟301 ’第一鏈結夥伴處於一偵測鏈結狀態 (Rx.detect state) ’當第一鏈結夥伴耦接至光收發組件230 的一端時’由於光收發組件230中兩端的光收發模組皆包 含内部固化的% — qw w ί只况j到產分終端 阻抗存在。當第一鏈結夥伴監測到差分終端阻抗存在時, 第一鍵結夥伴發起一鍵結丨練序列’此時’第一鏈結夥伴 進入一輪詢回應信號狀態。流程進入到步驟303 ^ 在步驟303 ’第一鏈結夥伴輪詢(p〇Uing)是否在一第 一預疋打間内收到一第一鏈結夥伴發出的一回應信號,此 時第一鏈結夥伴處於一輪詢回應信號狀態。在一實施例 中’第-鏈結夥伴在-第-預定時間内輪詢是否收到—第 二鏈結夥伴發出的-低頻週期信號,第—鏈結夥伴在上述 第一預定時間内處於~輪詢低頻週期信號狀 VIC10-001 lI00-TW/0608-A42664TWf 1〇 1376891 (Polling.LFPS state)。若有,則流程進入到步驟305 ;否 貝1J,流程進入到步驟307。本實施例中,第一鏈結夥伴包 含一第一計時器(timer),該第一計時器會在第一鏈結夥伴 處於輪詢回應信號狀態下啟動(initiate),用以計時是否超 過上述第一預定時間。相同地,第二鏈結夥伴也包含一第 一計時器,第一計時器會在第二鏈結夥伴處於輪詢回應信 號狀態下啟動,用以計時是否超過一第一預定時間。在一 實施例中,第一計時器系實現在第一鏈結夥伴與第二鏈結 Φ 夥伴中的一控制器的鏈結層(link layer)中。當第一計時 器計時已超過上述第一預定時間,流程將進行步驟305或 是步驟307,第一鏈結夥伴與第二鏈結夥伴清除第一計時 器以重新計時。 在步驟305,當第一鏈結夥伴與第二鏈結夥伴均分別耦 接到光收發組件的光收發模組,則第一鏈結夥伴監測到第 二鏈結夥伴發出的回應信號,上述鏈結訓練序列就會成功 建立。因此,可進行第一鏈結夥伴與第二鏈結夥伴間的資 •料傳輸。 在步驟307,當第一鏈結夥伴未能在上述第一預定時間 内監測到第二鏈結夥伴發出的回應信號時,上述鏈結訓練 序列就會建立失敗,則第一鏈結夥伴進入到一非正常工作 模式。在一實施例中,上述非正常工作模式為一標準相容 模式。在非正常工作模式下,第一鏈結夥伴與第二鏈結夥 伴間無法進行資料傳輸。 在步驟309,在非正常工作模式下,第一鏈結夥伴輪詢 是否收到第二鏈結夥伴的回應信號。若有,則流程進入到 VIC 10-0011 !00-TW/0608-A42664TWf 11 1376891 步驟301 ;否則,流程進入到步驟307。本實施例中,第一 鏈結夥伴包含一偵測電路,該偵測電路會在第一鏈結夥伴 處於非正常工作模式下啟動(initiate ),用以監測第一鏈結 夥伴是否收到第二鏈結夥伴發出的一回應信號。相同地, 第二鏈結夥伴也包含一偵測電路,該偵測電路會在第二鏈 結夥伴處於非正常工作模式下啟動,用以監測第二鏈結夥 伴是否收到第一鏈結夥伴發出的回應信號。在一實施例 中,偵測電路系實現在第一鏈結夥伴與第二鏈結夥伴中的 一控制器的實體層(physical layer)中。當偵測電路監測 到第一鏈結夥伴未收到第二鏈結夥伴發出的回應信號,說 明第二鏈結夥伴還未耦接或第二鏈結夥伴並未準備好,此 時,流程返回步驟307,第一鏈結夥伴仍然停留在非正常 工作模式。當偵測電路偵測到第一鏈結夥伴收到第二鏈結 夥伴發出的回應信號時,說明第二鏈結夥伴已經耦接到光 收發模組,此時,第一鏈結夥伴從非正常工作模式跳出。 在本實施例中,流程返回到步驟301。 在流程返回到步驟301時,由於第一鏈結夥伴和第二 鏈結夥伴都耦接到光收發模組,因此,上述鏈結訓練序列 就會成功建立。流程會進入到步驟303和305,從而進行 第一鏈結夥伴和第二鏈結夥伴間正常的資料傳輸。 第4圖為本發明的另一實施例中第一鏈結夥伴與第二 鏈結夥伴(例如主機和設備間)進行資料傳輸的流程圖。 第4圖中以第一鏈結夥伴(例如主機)輪詢是否有第二鏈 結夥伴(例如設備)插入為具體實施例,而第二鏈結夥伴 (例如設備)輪詢是否與第一鏈結夥伴(例如主機)耦接的S ] VIC10-001 lI〇〇-TW/0608-A42664TWf 12 1376891 情況與此實施例相同’在此不再贅述。 步驟401、步驟403、步驟405、及步驟407均與第3 圖對應的步驟相同,在此不再贅述。 在步驟409,在非正常工作模式下,即計時是否超過一 第二預定時間。若是,則流程進入到步驟401 ;若否,流 程進入到步驟407。本實施例中,第一鏈結夥伴包含一第 二計時器(timer),該第二計時器會在第一鏈結夥伴處於非 正常工作模式下啟動(initiate),用以計時是否超過一第二 # 預定時間。相同地,第二鏈結夥伴也包含一第二計時器, 第二計時器會在第二鏈結夥伴處於非正常工作模式下啟 動,用以計時是否超過一第二預定時間。在一實施例中, 第二計時器系實現在第一鏈結夥伴與第二鏈結夥伴中的一 控制器的鏈結層(link layer)中。當第二計時器計時已超 過第二預定時間,第一鏈結夥伴從非正常工作模式跳出。 在本實施例中,流程將返回步驟401,第一鏈結夥伴返回 偵測鏈結狀態,並清除第二計時器以重新計時。 ® 當第二計時器計時並未超過第二預定時間,第一鏈結 夥伴仍然停留在非正常工作模式,流程返回到步驟407。 在流程返回到步驟401時,當第一鏈結夥伴和第二鏈 結夥伴都耦接到光收發模組,因此,上述鏈結訓練序列就 會成功建立。流程會進入到步驟403和405,從而進行第 一鏈結夥伴和第二鏈結夥伴間正常的資料傳輸。 第5圖為本發明的又一實施例中的第一鏈結夥伴和第 二鏈結夥伴間進行資料傳輸的流程圖。第5圖之步驟501、 步驟503、步驟505、及步驟507均與第3圖對應的步驟相 VIC 10-0011 !00-TW/0608-A42664TWf 13 1376891 同,在此不再贅述。 在步驟509,在非正常工作模式下,第一鏈結夥伴輪詢 是否收到第二鏈結夥伴的回應信號。若有,則流程進入到 步驟503 ;否則,流程進入到步驟507。當第一鏈結夥伴的 一偵測電路監測到第一鏈結夥伴未收到第二鏈結夥伴發出 的回應信號,說明第二鏈結夥伴還未耦接或第二鏈結夥伴 並未準備好,此時,流程返回步驟507,第一鏈結夥伴仍 然停留在非正常工作模式。當偵測電路偵測到第一鏈結夥 伴收到第二鏈結夥伴發出的回應信號時,說明第二鏈結夥 伴已經耦接到光收發模組,此時,第一鏈結夥伴從非正常 工作模式跳出。在本實施例中,流程返回到步驟503。 在流程返回到步驟503時,由於第一鏈結夥伴和第二 鏈結夥伴都耦接到光收發模組,因此,第一鏈結夥伴收到 第二鏈結夥伴發出的回應信號,上述鏈結訓練序列就會成 功建立。流程會進入到步驟505,從而進行第一鏈結夥伴 和第二鏈結夥伴間正常的資料傳輸。 第6圖為本發明的再一實施例中第一鏈結夥伴和第二 键結夥伴間進行貨料傳輸的流程圖。第6圖之步驟601、 步驟603、步驟605、及步驟607均與第4圖對應的步驟相 同,在此不再贅述。 在步驟609,在非正常工作模式下,即計時是否超過一 第二預定時間。若是,則流程進入到步驟603 ;若否,流 程進入到步驟607。當第二計時器計時已超過第二預定時 間,第一鏈結夥伴從非正常工作模式跳出。在本實施例中, 流程將返回步驟603,第一鏈結夥伴返回一輪詢回應信豫 VIC 10-001 l!00-TW/0608-A42664TWf 14 狀離、,·^、士 ’月除一第一計時器以重新計時上述第二6 〜夥伴發出的回應信號,上述鏈結訓練序列就 。流程會進入到步驟605,從而進行第 s功 第二鏈結夥伴間正常的資料傳輸。㈣—鏈結夥伴和 第3圖·第6圖僅為本發明的四種具體實施例 發明在主機或設備在通過光收發組件耦接時,若主機 或設備進入到非正常工作模式時,可以通過主機或設備中 的控制單元從而使主機或設備跳出該非正常工作模式。 在實施例中,通過主機或設備中的一控制單元使主機或 设備跳出該非正常工作模式而回到主機或設備的一偵測鏈 結狀態或是一輪詢回應信號狀態,以監測是否耦接另一設 備或另一主機或是另一設備戒另一主機有無一回應信號, 從而在主機和設備都耦接到光收發組件且主機和設備都準 備好時’主機和設備間進行正常的資料傳輸。 本發明雖以較佳實施例揭露如上,然其並非用以限定 本發明的範圍,任何所屬技術領域中具有通常知識者’在 不脫離本發明之精神和範圍内,當可做些許的更動與潤 飾’因此本發明之保護範圍當視後附之申請專利範圍所界 定者為準。 【圖式簡單說明】 第1圖是現有技術的主機和設備間進行資料傳輸的方 VIC10-001 l!00-TW/〇6〇8-A42664TWf 15 1376891 塊圖; 第2圖顯示主機和設備間經由光收發、纟且件進行資料傳 輸的方塊圖; ' 第3圖為本發明的一實施例中的第一鍵結夥伴和第二 鍵結夥伴間進行資料傳輸的流程圖; 第4圖為本發明的另一實施例中第一鏈結夥伴和第二 鏈結夥伴間進行資料傳輸的流程圖; 第5圖為本發明的又一實施例中的第一鏈結夥伴和第 一鍵結夥伴間進行資料傳輸的流程圖;以及 第6圖為本發明的再一實施例中第一鏈結夥伴和第二 鏈結夥伴間進行資料傳輸的流程圖。 【主要元件符號說明】 第1圖: 112、113〜差分終端阻抗; 120〜主機; RX+〜正接收信號端; TX+〜正發送信號端; 1 1^1 · 乐Z圃· 201、203〜光收發模組; 207、209、211、213〜電阻 210〜主機; 250〜設備; R+/R-〜光收發模組之接收對; RX+〜正接收信號端; RX_ T+/T-〜光收發模組之發送對; VIC10-001 lI00-TW/0608-A42664TWf 16 150 RX- TX- 設備; /負接收信號端 /負發送信號端 205、206〜光纖; 230〜光收發組件; 負接收信號端 [S] 1376891 TX+〜正發送信號端; TX-〜負發送信號端; 第3圖: 301、303、305、307、309〜方法步驟; 第4圖: 401、403、405、407、409〜方法步驟; 第5圖: 501、503、505、507、509〜方法步驟; 第6圖: 601、603、605、607、609〜方法步驟。1376891 VI. Description of the Invention: [Technical Field] The present invention relates to a data transmission system and method, and more particularly to a data transmission system and method for accurately detecting a terminal device. [Prior Art] ^ With the development of optical transmission technology, the advantages of optical fiber transmission in transmission rate/transmission distance and anti-interference ability make optical transmission technology more and more widely used. Due to the advantages of optical transmission technology, more and more applications are expected to connect a host (Device) and a device (Device) to an optical transceiver module for photoelectric conversion, and then perform data through a fiber. Transmission, this will make the data transfer between the host and the device faster and more stable. At present, there are still some problems in the implementation of the above-mentioned methods. The present invention will propose a new data transmission system and data transmission method, which provides a link partner to detect whether another link partner via the optical transceiver component is connected, thereby enabling the link partners (for example The host and the device can perform stable data transmission through the optical transceiver component to solve the problems existing in the prior art. SUMMARY OF THE INVENTION In view of this, the present invention provides a data transmission system, the data transmission system includes a first link partner, the first link partner includes a first control unit, and the first control unit is configured to When the first link partner is in the abnormal working mode, the first link partner is jumped out from the abnormal working mode; and an optical transceiver component is coupled between the first link partner and a second link partner And for performing data transmission between the first link partner and the second link partner. [S1 VIC10-001 lI00-TW/0608-A42664TWf. 1376891 The present invention also provides a data transmission method for a data transmission system, the data transmission system comprising a first link partner, a second link partner, And an optical transceiver component coupled between the first chain I partner and the second link partner, the data transmission method includes: when the first link partner operates in an abnormal working mode, determining Whether a predetermined condition is satisfied, and when the predetermined condition is satisfied, the first link partner jumps out of the abnormal working mode. The data transmission system and the data transmission method of the present invention provide a link partner to accurately detect whether another link partner via the optical transceiver component is connected, so that link partners (such as a host and a device) can Stable data transmission through optical transceiver components. The above described objects, features and advantages of the present invention will become more apparent from the following description. Figure 1 is a block diagram of data transmission between a host computer and a device in the prior art. The host 120 can be a fast peripheral component interconnect standard (pciE) interface specification or a universal serial bus version 3.0 (USB3.0) interface specification, etc. A high speed electronic transceiver that supports hot plugging. The host 12 polls for device insertion at regular intervals. When the device 150 is detected to be inserted, the host 120 initiates transmission of a Hnk training sequence to establish a chain with the device 150. Knot. At the same time, the device 150 also polls the presence of the master at regular intervals. When the host 120 is detected, a link training sequence is also initiated to establish a link with the host 120. VIC10-001 lI〇〇-TW/0608-A42664TWf 5 1376891 The coupling mode of the host 120 and the device 150 is as shown in FIG. 1 , and the positive transmitting signal terminal TX+ and the negative transmitting signal terminal TX- of the host 120 are coupled to the device 150. The positive receiving signal terminal RX+ and the negative receiving signal terminal RX- enable the host 120 to transmit data to the device 150, and the data may be sent in the form of a differential signal pair; the receiving signal terminal RX+ and the negative receiving signal terminal of the host 120 The RX-coupled to the positive transmit signal terminal TX+ and the negative transmit signal terminal TX- of the device 150 enables the device 150 to transmit data to the host 120, and the data may also be transmitted in the form of a differential signal pair. The host 120 determines whether there is a device terminal insertion by polling whether a differential terminator impedance is coupled between the positive transmitting signal terminal TX+ and the negative transmitting signal terminal TX-. When the device 150 is coupled to the host 120 as shown in FIG. 1 and is ready, a differential termination impedance 112 exists between the positive receiving signal terminal RX+ and the negative receiving signal terminal RX- of the device 150. In one embodiment, both the positive receiving signal terminal RX+ and the negative receiving signal terminal RX- of the device 150 are coupled to a resistor to a ground to implement the differential termination impedance 112. The host 120 detects that a differential termination impedance occurs between the positive transmitting terminal TX+ and the negative transmitting terminal TX-, that is, the presence of the differential termination impedance 112 is detected, and it is considered that the device end is inserted, so the host 120 initiates transmission. Link training sequence. The device 150 also polls whether there is a differential termination impedance 113 between the positive transmitting terminal TX+ and the negative transmitting terminal TX- to determine whether it is coupled to the host 120. In an embodiment, the positive receiving signal terminal RX+ and the negative receiving signal terminal RX- of the host 120 are coupled to a ground to achieve a differential termination impedance 113. When the device 150 detects that there is a differential termination impedance 113 between its positive transmitting signal terminal TX+ and the negative transmitting signal terminal TX-, the device 150 also sends a response signal to the host 120, the primary S] VIC 10-0011 !00-TW /0608-A42664TWf 6 1376891 When the machine 120 receives the response signal, the link training sequence is successfully established, and the host and the device 150 are normally linked for data transmission. In one embodiment, the response signal is a Low Frequency Periodic Signal with a period ranging from 20 to 1 ns. However, in some applications, for example, when the host and the device are respectively coupled to the optical transceiver module for photoelectric conversion, data transmission through the optical fiber may cause problems, which will be described in detail below. Figure 2 shows a block diagram of data transfer between the host and the device via the optical transceiver component. In one embodiment, the optical transceiver assembly is an active optical cable (AOC). As shown in Fig. 2, the optical transceiver unit 230 includes an optical transceiver module 201, an optical transceiver module 203, and an optical fiber 205. For the sake of clarity and convenience of description, only the electrical connection of the data transmission between the host 210 and the device 250 is illustrated in FIG. 2, and the optical passive components in the optical transceiver module 201 and the optical transceiver module 203 are not indicated. 'For example, a laser diode and a photodiode. The above optical passive component is used to convert between an electrical signal and an optical signal. In the second embodiment, the positive transmitting terminal TX+ and the negative transmitting terminal TX- of the host 210 are connected to a first transmitting pair T+/T- of the optical transceiver module 201, and the optical transceiver module 201 is coupled to the host 210. It is used to convert an electrical signal emitted by the host 210 into an optical signal. The optical fiber 205 is coupled to the optical transceiver module 201 and the optical transceiver module 203 for performing optical transmission between the two optical transceiver modules 2〇1 and the optical transceiver module 203. The optical transceiver module 203 is coupled to the device 250 for converting the optical signal into an electrical signal, and a second receiving pair R+/R- of the optical transceiver module 203 is provided to the positive receiving terminal RX+ and the negative receiving of the device 250. Signal terminal RX- 'for data transmission. When one end of the optical transceiver module 230 (the end of the optical transceiver module 2〇1) VIC10-001 l!00-TW/0608-A42664TWf 7 1376891 is coupled to the host 210, since the optical transceiver module 2〇1 includes internal curing The internal fixed resistor 207 and the resistor 209 are coupled to the first transceiver pair T+/T- of the optical transceiver module 201, and the host 210 detects the positive transmitting terminal TX+ and the negative transmitting terminal TX_. A differential termination impedance occurs between them, and immediately becomes a device-side insertion, thus initiating a transmission-chain stab sequence. However, when the other end of the optical transceiver component 230 is not coupled to the device 250, the link training sequence will fail to be established, and the host 21 will enter an abnormal working mode. In the abnormal working mode, the host 2 〇 θ can no longer transmit data with the device 250, nor can it jump out from the above abnormal mode. The host can re-monitor whether a device is connected only after the host is reset. In one embodiment, the abnormal mode of operation is a standard compliance mode in which the integrity of the signal sent by the host 210 is tested. On the other hand, in FIG. 2, the positive transmitting signal terminal τχ+ of the device 250 and the negative transmitting signal terminal ΤΧ-coupled to a second transmitting pair Τ+/Τ- of the optical transceiver module 203, the optical transceiver module The 203 is coupled to the device 250 for converting an electrical signal emitted by the device 25 into an optical signal. The optical fiber 206 is coupled to the optical transceiver module 2〇1 and the optical transceiver module 203 for performing optical transmission between the two optical transceiver modules 2〇1 and the optical transceiver module 203. The optical transceiver module 2〇1 is lightly connected to the host 21 〇 for converting the optical signal into an electrical signal. The positive receiving signal provided by the first receiving pair R+/R− of the optical transceiver module 2〇1 to the host 210 The terminal Rx+ and the negative receiving terminal RX- perform data transmission. The optical transceiver module 203 includes an internally solidified resistor 211 and a resistor 213 coupled to the optical transceiver module 2 when the optical transceiver module 203 is coupled to the device 250.第二3's second transmission $VIC10-001 H〇〇_TW/〇608-A42664TWf 8 1376891 For T+/T-, device 250 will detect between its positive transmitting signal terminal τχ+ and negative transmitting signal terminal TX· When a differential termination impedance occurs, the host is immediately considered to be plugged in, so a transmission-link training sequence is initiated. However, when the other end of the optical transceiver component 230 is not coupled to the host 210, the link training sequence will fail to establish 'the device 250 will enter an abnormal mode of operation. In one embodiment, the abnormal mode of operation is a standard compatible mode in which the integrity of the signal sent by device 250 is tested. In one embodiment, the abnormal mode of operation is a test mode for testing the signal integrity of a link partner. In an embodiment, the second transmitting pair T+/T- of the optical transceiver module 203 also has an internally solidified resistor 211 and a resistor 213, and the resistor 211 and the resistor 213 are respectively coupled to the second transmitting pair τ+/τ_ One and one ground. When the host 210 or the device 250 enters the standard compatible mode, data transfer between the host 210 and the device 250 is impossible. Therefore, for a link partner, it is currently not possible to accurately detect whether another link partner via the optical transceiver component is connected, so that link partners (such as the host and device) can be stabilized by the optical transceiver component. Material transfer to establish fiber optic communications. Therefore, a new data transmission system and method is needed to solve this problem. The main feature of the present invention is that when the host or device is coupled through the optical transceiver component, if the host or device enters the abnormal working mode, the host or the device may jump out of the abnormal state through a control unit in the host or the device. The working mode, so that when the host and the device are both lightly connected to the optical transceiver component and the host and the device are ready, the normal data transmission between the host and the device is performed. In an embodiment, a host or a control unit of the device causes the host or device to jump out of the abnormal working mode and return to the host or set a VIC10-001 lI〇〇-TW/〇608-A42664TWf 0 1376891 Detecting the link status or a polling response signal status to monitor whether another device or host or another device or host has a response signal. The above-mentioned host and device may be a host and device of a serial transmission interface specification, such as a Fast Peripheral Component Interconnect Standard (PCIE) interface specification or a Universal Serial Bus Type 3.0 (USB3.0) interface specification, which is transmitted and received by optical The component performs fiber optic communication. Figure 3 is a flow diagram of data transfer between a first link partner and a second link partner (e.g., between a host and a device) in accordance with an embodiment of the present invention. In Figure 3, the first link partner (e.g., a host) polls whether a second link partner (e.g., a device) is inserted as a specific embodiment, and the second link partner (e.g., device) polls whether or not The case of a link partner (for example, a host) is the same as that of this embodiment, and details are not described herein again. In step 301, the first link partner is in a detection chain state (Rx. detect state) 'when the first link partner is coupled to one end of the optical transceiver component 230' due to optical transmission and reception at both ends of the optical transceiver component 230. The modules all contain internal curing % — qw w ί only the j to the production terminal impedance exists. When the first link partner detects the presence of a differential termination impedance, the first bonding partner initiates a key-knit sequence 'At this time' the first link partner enters a polling response signal state. The process proceeds to step 303. ^ In step 303, the first link partner poll (p〇Uing) receives a response signal from a first link partner in a first pre-click interval, at this time, the first The link partner is in a polling response signal state. In an embodiment, the 'first-link partner polls in the -first-predetermined time whether it is received--the low-frequency periodic signal sent by the second link partner, the first-link partner is in the ~round within the first predetermined time mentioned above. Query the low frequency period signal shape VIC10-001 lI00-TW/0608-A42664TWf 1〇1376891 (Polling.LFPS state). If so, the flow proceeds to step 305; otherwise, the flow proceeds to step 307. In this embodiment, the first link partner includes a first timer, and the first timer is initialized when the first link partner is in a polling response signal, and is used to count whether the time exceeds the above. First scheduled time. Similarly, the second link partner also includes a first timer, and the first timer is started when the second link partner is in the polling response signal to count whether the first predetermined time is exceeded. In one embodiment, the first timer is implemented in a link layer of a controller of the first link partner and the second link Φ partner. When the first timer has expired above the first predetermined time, the flow proceeds to step 305 or step 307, and the first link partner and the second link partner clear the first timer to re-clock. In step 305, when the first link partner and the second link partner are respectively coupled to the optical transceiver module of the optical transceiver component, the first link partner monitors the response signal sent by the second link partner, the chain The knot training sequence will be successfully established. Therefore, the material transfer between the first link partner and the second link partner can be performed. In step 307, when the first link partner fails to monitor the response signal sent by the second link partner within the first predetermined time, the link training sequence fails to be established, and the first link partner enters. An abnormal working mode. In an embodiment, the abnormal operating mode is a standard compatible mode. In the abnormal working mode, data transmission is not possible between the first link partner and the second link partner. In step 309, in the abnormal mode of operation, the first link partner polls whether a response signal from the second link partner is received. If so, the flow proceeds to VIC 10-0011 !00-TW/0608-A42664TWf 11 1376891 Step 301; otherwise, the flow proceeds to step 307. In this embodiment, the first link partner includes a detection circuit, and the detection circuit is initialized when the first link partner is in an abnormal working mode, to monitor whether the first link partner receives the first A response signal from the two-link partner. Similarly, the second link partner also includes a detection circuit that is activated when the second link partner is in an abnormal working mode to monitor whether the second link partner receives the first link partner. The response signal sent. In one embodiment, the detection circuitry is implemented in a physical layer of a controller of the first link partner and the second link partner. When the detecting circuit detects that the first link partner does not receive the response signal from the second link partner, indicating that the second link partner is not yet coupled or the second link partner is not ready, the process returns. In step 307, the first link partner remains in the abnormal working mode. When the detecting circuit detects that the first link partner receives the response signal from the second link partner, it indicates that the second link partner is coupled to the optical transceiver module, and at this time, the first link partner is not The normal working mode jumps out. In the present embodiment, the flow returns to step 301. When the flow returns to step 301, since the first link partner and the second link partner are both coupled to the optical transceiver module, the link training sequence described above is successfully established. The flow proceeds to steps 303 and 305 for normal data transfer between the first link partner and the second link partner. Figure 4 is a flow diagram of data transfer between a first link partner and a second link partner (e.g., between a host and a device) in another embodiment of the present invention. In Figure 4, the first link partner (e.g., host) polls whether a second link partner (e.g., device) is inserted as a specific embodiment, and the second link partner (e.g., device) polls whether or not the first chain S ] VIC10-001 lI〇〇-TW/0608-A42664TWf 12 1376891 coupled to a partner (eg, a host) is the same as this embodiment 'will not be repeated here. The steps 401, 403, 405, and 407 are the same as those in the third embodiment, and are not described here. In step 409, in the abnormal operating mode, whether the timing exceeds a second predetermined time. If so, the flow proceeds to step 401; if not, the flow proceeds to step 407. In this embodiment, the first link partner includes a second timer, and the second timer is initialized when the first link partner is in an abnormal working mode, and is used to count whether the time exceeds one. Two # scheduled time. Similarly, the second link partner also includes a second timer that is activated when the second link partner is in an abnormal operating mode for timing whether it exceeds a second predetermined time. In an embodiment, the second timer is implemented in a link layer of a controller of the first link partner and the second link partner. When the second timer has expired for a second predetermined time, the first link partner jumps out of the abnormal operating mode. In this embodiment, the flow returns to step 401 where the first link partner returns to detect the link state and clears the second timer to retime. ® When the second timer has not passed the second predetermined time, the first link partner remains in the abnormal operation mode, and the flow returns to step 407. When the flow returns to step 401, when both the first link partner and the second link partner are coupled to the optical transceiver module, the link training sequence described above is successfully established. The flow proceeds to steps 403 and 405 to perform normal data transfer between the first link partner and the second link partner. Figure 5 is a flow chart showing data transfer between a first link partner and a second link partner in still another embodiment of the present invention. Step 501, step 503, step 505, and step 507 of FIG. 5 are the same as those of FIG. 3, which are the same as those of FIG. 3, which are the same as those in the description of VIC 10-0011 !00-TW/0608-A42664TWf 13 1376891, and will not be repeated here. At step 509, in the abnormal mode of operation, the first link partner polls whether a response signal from the second link partner is received. If so, the flow proceeds to step 503; otherwise, the flow proceeds to step 507. When a detecting circuit of the first link partner detects that the first link partner does not receive the response signal from the second link partner, indicating that the second link partner is not yet coupled or the second link partner is not prepared Ok, at this point, the flow returns to step 507, and the first link partner remains in the abnormal working mode. When the detecting circuit detects that the first link partner receives the response signal from the second link partner, it indicates that the second link partner is coupled to the optical transceiver module, and at this time, the first link partner is not The normal working mode jumps out. In the present embodiment, the flow returns to step 503. When the process returns to step 503, since the first link partner and the second link partner are both coupled to the optical transceiver module, the first link partner receives a response signal from the second link partner, the chain The knot training sequence will be successfully established. The flow proceeds to step 505 to perform normal data transfer between the first link partner and the second link partner. Figure 6 is a flow chart showing the transfer of goods between the first link partner and the second bond partner in still another embodiment of the present invention. Step 601, step 603, step 605, and step 607 of FIG. 6 are the same as those of FIG. 4, and details are not described herein again. In step 609, in the abnormal operating mode, whether the timing exceeds a second predetermined time. If so, the flow proceeds to step 603; if not, the flow proceeds to step 607. When the second timer has expired for a second predetermined time, the first link partner jumps out of the abnormal operating mode. In this embodiment, the process returns to step 603, and the first link partner returns a polling response letter VIC 10-001 l!00-TW/0608-A42664TWf 14 shape, , ·^,士'月除一第A timer is used to re-clock the response signal sent by the second 6~ partner, and the above-mentioned link training sequence is performed. The flow proceeds to step 605 to perform normal data transfer between the second link partners. (4) - link partner and FIG. 3 · FIG. 6 is only four specific embodiments of the present invention. When the host or device is coupled through the optical transceiver component, if the host or device enters an abnormal working mode, The host or device is caused to jump out of the abnormal operating mode by the control unit in the host or device. In an embodiment, the host or the device jumps out of the abnormal working mode by a control unit in the host or the device, and returns to a detecting link state of the host or the device or a polling response signal state to monitor whether the coupling is coupled. Whether the other device or another host or another device or another host has a response signal, so that when the host and the device are coupled to the optical transceiver component and the host and the device are ready, the normal data between the host and the device is performed. transmission. The present invention has been disclosed in the above preferred embodiments, and is not intended to limit the scope of the present invention, and those skilled in the art can make a few changes without departing from the spirit and scope of the invention. The scope of protection of the present invention is therefore defined by the scope of the appended claims. [Simple diagram of the diagram] Figure 1 is a block diagram of the prior art host and device for data transmission. VIC10-001 l!00-TW/〇6〇8-A42664TWf 15 1376891 block diagram; Figure 2 shows the host and device A block diagram of data transmission via optical transceivers and components; 'Fig. 3 is a flow chart of data transmission between a first bonding partner and a second bonding partner in an embodiment of the present invention; A flowchart of data transmission between a first link partner and a second link partner in another embodiment of the present invention; FIG. 5 is a first link partner and a first bond in still another embodiment of the present invention; A flow chart of data transmission between partners; and FIG. 6 is a flow chart of data transmission between the first link partner and the second link partner in still another embodiment of the present invention. [Description of main component symbols] Fig. 1: 112, 113~ differential termination impedance; 120~ host; RX+~ positive receiving signal terminal; TX+~ positive transmitting signal terminal; 1 1^1 · Le Z圃· 201, 203~ light Transceiver module; 207, 209, 211, 213~ resistor 210~ host; 250~ device; R+/R-~ optical transceiver module receiving pair; RX+~ positive receiving signal terminal; RX_T+/T-~ optical transceiver module Group transmission pair; VIC10-001 lI00-TW/0608-A42664TWf 16 150 RX-TX-device; / negative receiving signal terminal/negative transmitting signal terminal 205, 206 to optical fiber; 230~ optical transceiver component; negative receiving signal terminal [ S] 1376891 TX+~ positive signal terminal; TX-~ negative transmission signal terminal; 3rd picture: 301, 303, 305, 307, 309~ method steps; 4th picture: 401, 403, 405, 407, 409~ method Step; Figure 5: 501, 503, 505, 507, 509~ method steps; Figure 6: 601, 603, 605, 607, 609~ method steps.
VIC 10-0011 !00-TW/0608-A42664TWf 17VIC 10-0011 !00-TW/0608-A42664TWf 17