TWI514412B - Interface controller, external electronic device, and external electronic device control method - Google Patents
Interface controller, external electronic device, and external electronic device control method Download PDFInfo
- Publication number
- TWI514412B TWI514412B TW103109867A TW103109867A TWI514412B TW I514412 B TWI514412 B TW I514412B TW 103109867 A TW103109867 A TW 103109867A TW 103109867 A TW103109867 A TW 103109867A TW I514412 B TWI514412 B TW I514412B
- Authority
- TW
- Taiwan
- Prior art keywords
- host
- volatile memory
- interface controller
- external electronic
- link information
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims description 26
- 230000007958 sleep Effects 0.000 claims description 28
- 230000001960 triggered effect Effects 0.000 claims description 6
- 238000005516 engineering process Methods 0.000 claims description 3
- 230000008878 coupling Effects 0.000 claims 2
- 238000010168 coupling process Methods 0.000 claims 2
- 238000005859 coupling reaction Methods 0.000 claims 2
- 230000000694 effects Effects 0.000 description 17
- 238000004891 communication Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000006266 hibernation Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
Landscapes
- Power Sources (AREA)
Description
本發明係有關於外接式電子裝置以及其控制方法,且有關於外接式電子裝置所需的一種介面控制器。The present invention relates to an external electronic device and a control method thereof, and relates to an interface controller required for an external electronic device.
為了建立一主機(host)與一外接式電子裝置之間的連結關係,主機必須要求該外接式電子裝置提供連結資訊。然而,外接式電子裝置之中某些連結資訊必須從該外接式電子裝置之裝置主體中取得,因此必須待裝置主體穩定運作後方能供應。倘若裝置主體需要長時間方能穩定運作(以硬碟為例,其中馬達在上電後需要一段時間方能穩定旋轉),則主機會因為等不到連結資訊而誤判連結不存在。In order to establish a connection between a host and an external electronic device, the host must request the external electronic device to provide the connection information. However, some of the connection information of the external electronic device must be obtained from the device body of the external electronic device, and therefore must be supplied after the device body is stably operated. If the main body of the device takes a long time to operate stably (in the case of a hard disk, in which the motor takes a while to stabilize after the power is turned on), the host will misinterpret the link because it cannot wait for the link information.
根據本發明一種實施方式所實現的一介面控制器係用於耦接一外接式電子裝置的裝置主體至一主機。該介面控制器包括一非揮發式記憶體以及一控制單元。該控制單元在將讀取自該裝置主體的連結資訊填寫入該非揮發式記憶體之後發出一終端接入信號給該主機,當該主機根據該終端接入信號所發出至少一連結資訊要求時,該控制單元得以用該非揮發式 記憶體之上述連結資訊回應上述連結資訊要求。An interface controller implemented in accordance with an embodiment of the present invention is configured to couple a device body of an external electronic device to a host. The interface controller includes a non-volatile memory and a control unit. The control unit sends a terminal access signal to the host after filling the connection information read from the main body of the device into the non-volatile memory, and when the host sends at least one link information request according to the terminal access signal, The control unit is capable of using the non-volatile type The above link information of the memory responds to the above link information request.
在一種實施方式中,該控制單元係在該介面控制器與該主機之間的連結發生觸發、但該非揮發式記憶體尚未備有讀取自該裝置主體的上述連結資訊的狀況下進行以上將連結資訊自裝置主體讀出且填寫入該非揮發式記憶體、且隨後發出該終端接入信號的動作。若該非揮發式記憶體早已備有讀取自該裝置主體的上述連結資訊,該控制單元可不限定該裝置主體是否穩定運作即發出該終端接入信號給該主機回應該介面控制器與該主機之間的連結所發生的該觸發。此時,該主機根據該終端接入信號所發出的連結資訊要求得以自該非揮發式記憶體獲得上述連結資訊。In one embodiment, the control unit performs the triggering of the connection between the interface controller and the host, but the non-volatile memory is not provided with the link information read from the device body. The link information is read from the device body and filled in the non-volatile memory, and then the terminal access signal is sent. If the non-volatile memory has already been provided with the connection information read from the main body of the device, the control unit may send the terminal access signal to the host to respond to the interface controller and the host without limiting whether the device body is stable or not. The trigger that occurs between the links. At this time, the host obtains the link information from the non-volatile memory according to the link information request sent by the terminal access signal.
本發明另外一種實施方式係將以上介面控制器結合裝置主體製作成一外接式電子裝置。In another embodiment of the present invention, the above interface controller is combined with the device body to form an external electronic device.
根據本發明一種實施方式所實現的外接式電子裝置控制方法,包括:提供一介面控制器使一外接式電子裝置中一裝置主體得以耦接至一主機;將讀取自該裝置主體的連結資訊填寫入該介面控制器中之非揮發式記憶體;在將讀取自該裝置主體的連結資訊填寫入該非揮發式記憶體之後發送終端接入信號給該主機;以及將該非揮發式記憶體所儲存的上述連結資訊回應該主機根據該終端接入信號所下達的至少連結資訊要求。An external electronic device control method according to an embodiment of the present invention includes: providing an interface controller to couple a device body of an external electronic device to a host; and reading information from the device body Filling in the non-volatile memory in the interface controller; sending a terminal access signal to the host after filling the connection information read from the main body of the device into the non-volatile memory; and the non-volatile memory The stored link information is returned to the host according to at least the link information request issued by the terminal access signal.
下文特舉實施例,並配合所附圖式,詳細說明本發明內容。The present invention will be described in detail below with reference to the accompanying drawings.
100‧‧‧外接式電子裝置100‧‧‧External electronic devices
102‧‧‧裝置主體102‧‧‧Device body
104‧‧‧介面控制器104‧‧‧Interface controller
106‧‧‧主機106‧‧‧Host
108‧‧‧非揮發式記憶體108‧‧‧ Non-volatile memory
110‧‧‧控制單元110‧‧‧Control unit
114‧‧‧活動,自裝置主體102讀取連結資訊,由介面控制器104存入非揮發性記憶體108114‧‧‧ activities, the connection information is read from the device body 102, and is stored in the non-volatile memory 108 by the interface controller 104.
116‧‧‧活動,介面控制器104發出終端接入信號給主機106116‧‧‧ activities, interface controller 104 sends a terminal access signal to host 106
118‧‧‧活動,主機106根據終端接入信號下達連結資訊要求,且介面控制器104將非揮發性記憶體108所儲存的連接資訊用於回應主機106下達的連結資訊要求118‧‧‧ activities, the host 106 sends a link information request according to the terminal access signal, and the interface controller 104 uses the connection information stored by the non-volatile memory 108 to respond to the link information request issued by the host 106
200‧‧‧程序,描述外接式電子裝置控制方法200‧‧‧ procedures describing the control methods of external electronic devices
S202…S210‧‧‧步驟S202...S210‧‧‧Steps
300‧‧‧程序,描述外接式電子裝置控制方法300‧‧‧ procedures describing the control methods of external electronic devices
S302…S306‧‧‧步驟S302...S306‧‧‧Steps
第1圖圖解根據本發明一種實施方式所實現的一外接式電子裝置100;第2圖為流程圖,圖解根據本發明一種實施方式所揭露的一種外接式電子裝置控制方法200;第3圖為流程圖,圖解根據本發明一種實施方式所揭露的一種外接式電子裝置控制方法300。1 is a block diagram of an external electronic device 100 implemented in accordance with an embodiment of the present invention; and FIG. 2 is a flow chart illustrating an external electronic device control method 200 according to an embodiment of the present invention; The flowchart illustrates an external electronic device control method 300 according to an embodiment of the present invention.
以下敘述列舉本發明的多種實施例。以下敘述介紹本發明的基本概念,且並非意圖限制本發明內容。實際發明範圍應依照申請專利範圍界定之。The following description sets forth various embodiments of the invention. The following description sets forth the basic concepts of the invention and is not intended to limit the invention. The scope of the actual invention shall be defined in accordance with the scope of the patent application.
第1圖圖解根據本發明一種實施方式所實現的一外接式電子裝置100,其中包括一裝置主體102以及一介面控制器104。該介面控制器104耦接該裝置主體102至一主機106。該介面控制器104包括一非揮發式記憶體108以及一控制單元110。FIG. 1 illustrates an external electronic device 100 implemented in accordance with an embodiment of the present invention, including a device body 102 and an interface controller 104. The interface controller 104 is coupled to the device body 102 to a host 106. The interface controller 104 includes a non-volatile memory 108 and a control unit 110.
第1圖更將介面控制器104與裝置主體102和主機106之間的活動循序以114、116與118標示。裝置主體102係在活動114之前達穩定操作。於活動114,介面控制器104中之控制單元110自裝置主體102讀取連結資訊,並由控制單元110存入非揮發性記憶體108。活動116係安排在連結資訊讀取(活動114)之後,其中控制單元110發出一終端接入信號(termination on signal)給該主機106。於活動118,主機106根據終端接入信號下達至少一連結資訊要求(link information requests),在介 面控制器104與主機106之間以通用序列匯流排(Universal Serial Bus,USB)介面進行通訊的實施例中,活動118係當主機106探測到終端接入信號後開始執行的枚舉程序(enumeration process),而上述連結資訊要求係枚舉程序中的設置指令(Setup_Commands),包括接口位址設定指令Set_Address、描述資訊要求Get_Descriptor等。於活動118,控制單元110將非揮發性記憶體108所儲存的連接資訊用於回應主機106下達的連結資訊要求,以完成主機106對外接式電子裝置100的枚舉程序以恢復或建立介面控制器104與主機106之間的連結(link)。The first diagram further illustrates the activity between interface controller 104 and device body 102 and host 106 as 114, 116, and 118. The device body 102 is stabilized prior to the activity 114. At activity 114, control unit 110 in interface controller 104 reads the link information from device body 102 and stores it in non-volatile memory 108 by control unit 110. The activity 116 is arranged after the link information read (activity 114), wherein the control unit 110 sends a termination on signal to the host 106. At activity 118, the host 106 issues at least one link information request based on the terminal access signal. In an embodiment in which the surface controller 104 communicates with the host 106 via a Universal Serial Bus (USB) interface, the activity 118 is an enumeration program that is executed after the host 106 detects the terminal access signal (enumeration). Process), and the above link information request is a setting instruction (Setup_Commands) in the enumeration program, including an interface address setting instruction Set_Address, a description information request Get_Descriptor, and the like. At activity 118, the control unit 110 uses the connection information stored by the non-volatile memory 108 to respond to the link information request issued by the host 106 to complete the enumeration process of the external device 100 by the host 106 to restore or establish interface control. A link between the device 104 and the host 106.
在一種實施方式中,該控制單元110係在該介面控制器104與該主機106之間的連結(link)發生觸發時判斷非揮發式記憶體108是否已備有讀取自裝置主體102的連結資訊。若該非揮發式記憶體108尚未備有讀取自該裝置主體102的上述連結資訊,控制單元110需等待裝置主體102運轉穩定後進行以上將連結資訊自裝置主體102讀出且填寫入該非揮發式記憶體108(活動114)、且隨後再發出該終端接入信號(活動116)的動作。若該非揮發式記憶體108早已備有讀取自該裝置主體102的上述連結資訊,該控制單元110可不限定該裝置主體102是否穩定運作即發出該終端接入信號(termination on signal)給該主機106,以回應該介面控制器104與該主機106之間的連結所發生的該觸發。此時,主機106根據該終端接入信號所發出的連結資訊要求得以自該非揮發式記憶體108直接獲得上述連結資訊而無須等待裝置主體102穩定運作後自該裝置主體102讀取。In an embodiment, the control unit 110 determines whether the non-volatile memory 108 is provided with a link read from the device body 102 when a link between the interface controller 104 and the host 106 is triggered. News. If the non-volatile memory 108 does not have the connection information read from the device main body 102, the control unit 110 waits for the device main body 102 to operate stably, and then performs the above-mentioned connection information from the device main body 102 and fills in the non-volatile type. The memory 108 (activity 114), and then the action of the terminal access signal (activity 116) is re-issued. If the non-volatile memory 108 already has the link information read from the device body 102, the control unit 110 may issue the terminal on signal to the host without limiting whether the device body 102 operates stably. 106, in response to the triggering that should occur between the interface controller 104 and the host 106. At this time, the host 106 can directly obtain the connection information from the non-volatile memory 108 according to the connection information request sent by the terminal access signal, and does not wait for the device main body 102 to operate stably, and reads from the device main body 102.
前述的介面控制器104與主機106之間的連結(link) 發生觸發在某些實施例中係指主機106給電至外接式電子裝置100;在介面控制器104與主機106之間以USB介面通訊的實施例中,係指USB之D+與D-接點上發生電壓的變化。該觸發可能發生在外接式電子裝置100物理連接(connect)至主機106時,亦可能發生在主機106自一休眠狀態喚醒時。在一實施例中,當主機106進入休眠模式(如,S3/S4模式)後,外接式電子裝置100也會隨之進入休眠狀態,因此當主機106自休眠模式喚醒後會隨即喚醒外接式電子裝置100,此時介面控制器104與主機106之間的連結亦會發生觸發,倘若此時等待裝置主體102運轉穩定后再自裝置主體102讀取上述連結資訊,而後再發出該終端接入信號給主機106,則主機106須等待相當長的時間,導致主機106在接收到終端接入信號之前即已判定外接式電子裝置100已經斷開連結。倘若休眠前該主機106是在複製(copy)該裝置主體102的資料,休眠喚醒後,該主機106會因為誤判斷開連結而將該外接式電子裝置100當成一個新插入的裝置而導致休眠前的複製動作失敗。在本發明中,當主機106自休眠模式喚醒而觸發介面控制器104與主機106之間的連結(link)後,若該非揮發式記憶體108早已備有上述連結資訊,則介面控制器104可隨即發出終端接入信號給該主機106以回應該觸發,而無須等待裝置主體102運轉穩定,從而避免誤判的問題。The aforementioned link between the interface controller 104 and the host 106 (link) In some embodiments, the host 106 is powered to the external electronic device 100; in the embodiment where the interface controller 104 communicates with the host 106 via the USB interface, it refers to the D+ and D-contacts of the USB. A change in voltage occurs. This trigger may occur when the external electronic device 100 is physically connected to the host 106, and may also occur when the host 106 wakes up from a sleep state. In an embodiment, when the host 106 enters the sleep mode (for example, the S3/S4 mode), the external electronic device 100 also enters a sleep state. Therefore, when the host 106 wakes up from the sleep mode, the external electronic device wakes up. The device 100, at this time, the connection between the interface controller 104 and the host 106 may also be triggered. If the device main body 102 is stabilized after the operation, the connection information is read from the device main body 102, and then the terminal access signal is sent. To the host 106, the host 106 has to wait for a considerable amount of time, causing the host 106 to determine that the external electronic device 100 has been disconnected before receiving the terminal access signal. If the host 106 is copying the data of the device body 102 before hibernation, after the sleep wakes up, the host 106 may treat the external electronic device 100 as a newly inserted device due to a misjudgment of the open connection, resulting in a sleep before the sleep. The copy action failed. In the present invention, after the host 106 wakes up from the sleep mode and triggers a link between the interface controller 104 and the host 106, if the non-volatile memory 108 already has the link information, the interface controller 104 can The terminal access signal is then sent to the host 106 to trigger the trigger, without waiting for the device body 102 to operate stably, thereby avoiding the problem of misjudgment.
在一種實施方式中,控制單元110自該裝置主體102讀出而填寫入該非揮發式記憶體108的上述連結資訊包括例如該裝置主體102的製作商識別碼(VID)、產品識別碼(PID)、裝置序號(Device Serial Number)以及產品描述字串 (Product String)等至少其一。In one embodiment, the connection information read by the control unit 110 from the device body 102 and filled in the non-volatile memory 108 includes, for example, a manufacturer identification code (VID) and a product identification code (PID) of the device body 102. Device Serial Number and product description string (Product String), etc. at least one of them.
第2圖為流程圖,圖解根據本發明一種實施方式所揭露的一種外接式電子裝置控制方法200,以下搭配第1圖作說明。FIG. 2 is a flow chart illustrating an external electronic device control method 200 according to an embodiment of the present invention, which will be described below with reference to FIG.
如第2圖所示,介面控制器104與主機106之間連結發生觸發時(主機106給電至外接式電子裝置100;例如,USB之D+與D-接點上發生電壓的變化),所揭露方法200進行步驟S202判斷該非揮發式記憶體108是否已備有讀取自該裝置主體102的連結資訊。若步驟S202判定該非揮發式記憶體108尚未備有讀取自該裝置主體102的上述連結資訊,則進行步驟S204,等待裝置主體102穩定運轉。待裝置主體102運轉穩定,則進行步驟S206自該裝置主體102讀取上述連結資訊並填寫上述連結資訊至該非揮發式記憶體108。安排在步驟S206之後執行的步驟S208,發送終端接入信號(termination on signal)給主機106。步驟S210將該非揮發式記憶體108所儲存、取自該裝置主體102的連結資訊用於回應該主機106根據該終端接入信號(termination on signal)所下達的至少一連結資訊要求。As shown in FIG. 2, when a trigger occurs between the interface controller 104 and the host 106 (the host 106 is powered to the external electronic device 100; for example, a voltage change occurs at the D+ and D-contacts of the USB), as disclosed in FIG. The method 200 proceeds to step S202 to determine whether the non-volatile memory 108 has been provided with link information read from the device body 102. If it is determined in step S202 that the non-volatile memory 108 has not been provided with the link information read from the device main body 102, step S204 is performed to wait for the device main body 102 to operate stably. When the operation of the device main body 102 is stable, the process proceeds from step S206 to read the connection information from the device main body 102 and fill in the connection information to the non-volatile memory 108. Step S208, which is executed after step S206, transmits a termination on signal to the host 106. In step S210, the connection information stored by the non-volatile memory 108 and taken from the device body 102 is used to respond to at least one link information request issued by the host 106 according to the termination on signal.
倘若步驟S202判定該非揮發式記憶體108已備有讀取自該裝置主體102的上述連結資訊,則略過步驟S204、S206進行步驟S208,不限定該裝置主體102是否穩定運作即發出該終端接入信號(termination on signal)給該主機106回應該介面控制器104與該主機106之間連結所發生的該觸發,隨後同樣進行步驟S210,將該非揮發式記憶體108所儲存、取自該裝置主體102的連結資訊用於回應該主機106根據該終端接入信號 (termination on signal)所下達的至少一連結資訊要求。If the step S202 determines that the non-volatile memory 108 has the link information read from the device body 102, the steps S204 and S206 are skipped to perform the step S208, and the device body 102 is not limited to be stable. The trigger on signal returns to the host 106 the trigger generated by the connection between the interface controller 104 and the host 106, and then proceeds to step S210 to store and retrieve the non-volatile memory 108 from the device. The link information of the main body 102 is used to respond to the host 106 access signal according to the terminal. (termination on signal) at least one link information request.
整理之,本案技術使得主機106基於終端接入信號(termination on signal)所發出的連結資訊要求(link information requests)不受裝置主體102是否穩定運作影響,可及時由該非揮發性記憶體108獲得連結資訊(link information)。In this way, the technology of the present invention enables the link information requests issued by the host 106 based on the termination on signal to be affected by the stable operation of the device body 102, and can be obtained by the non-volatile memory 108 in time. Link information.
以休眠模式(如,S3/S4模式)為例,主機106進入休眠模式後外接式電子裝置100也可能隨之進入休眠狀態,因此當主機106自休眠模式喚醒、觸發與該外接式電子裝置100的連結時,裝置主體102從啟動到穩定會有一定耗時。然而,採用本案所揭露技術,該非揮發式記憶體108必然早在休眠前就備有取自裝置主體102的連結資訊。因此,休眠喚醒時控制單元110可如第2圖所示,略過步驟S204、S206即進行步驟S208與S210。如此一來,即便休眠喚醒之裝置主體102尚未穩定運作,主機106與外接式電子裝置100之連結照常能建立。主機106不會因為裝置主體102休眠喚醒耗時過久而誤判有斷線重連事件(reconnected,視為新插拔)發生。Taking the sleep mode (for example, S3/S4 mode) as an example, after the host 106 enters the sleep mode, the external electronic device 100 may also enter a sleep state, so when the host 106 wakes up from the sleep mode, the external electronic device 100 is triggered. At the time of the connection, the device body 102 may take a long time from startup to stabilization. However, with the technique disclosed in the present disclosure, the non-volatile memory 108 must have the connection information taken from the device body 102 before the sleep. Therefore, the sleep wake-up control unit 110 can perform steps S208 and S210 by skipping steps S204 and S206 as shown in FIG. In this way, even if the device body 102 that wakes up is not stable, the connection between the host 106 and the external electronic device 100 can be established as usual. The host 106 does not misjudge that a disconnection reconnection event (reconnected, as a new plug) occurs because the device body 102 sleeps for too long.
一種實施方式係設計一「休眠標示」標幟該主機106是否為休眠喚醒。旗標(flag)技術即可用來實現該休眠標示,係於主機106休眠時由控制單元110豎立。如此一來,面臨主機106休眠喚醒時於該介面控制器104與該主機106之間連結所發生的觸發,控制單元110即可根據豎立的該休眠標示判定該非揮發式記憶體108已備有讀取自該裝置主體102的上述連結資訊,略過第2圖步驟S204、S206即進行步驟S208與S210。如此一來,即便休眠喚醒的裝置主體102尚未穩定運作,主機 106與外接式電子裝置100之連結照常能建立。因為若該觸發係由主機106休眠喚醒導致,則說明在此之前在外接式電子裝置100物理連接(connect)至主機106時,已經執行過第2圖步驟S204和S206,因此可以據此判定該非揮發式記憶體108已備有讀取自該裝置主體102的上述連結資訊。需說明的是,若外接式電子裝置100係外插卡式(add-on-card)之電子裝置,則主機106休眠時會切斷外接式電子裝置100的電源供應,主機106休眠喚醒重新給電時該連結會發生觸發;若外接式電子裝置100係板上卡式(on-board-card)之電子裝置,雖然主機106休眠時該外接式電子裝置100不斷電,但主機106休眠喚醒時仍會使其與主機106的連結發生觸發。本發明應用在主機106休眠時會斷電的外接式電子裝置100,效果尤為顯著,因為重新上電後,其中的裝置主體102從啟動到穩定運作須耗費較長時間。One embodiment is to design a "sleep indicator" flag to indicate whether the host 106 is dormant wake-up. A flag technique can be used to implement the sleep flag, which is erected by the control unit 110 when the host 106 is asleep. In this way, in response to the trigger generated by the connection between the interface controller 104 and the host 106 when the host 106 wakes up, the control unit 110 can determine that the non-volatile memory 108 is ready for reading according to the erected sleep flag. The connection information from the device main body 102 is skipped, and steps S208 and S210 are performed in steps S204 and S206 in the second embodiment. In this way, even if the device body 102 that wakes up by sleep has not been stably operated, the host The connection of the 106 to the external electronic device 100 can be established as usual. Because if the trigger is caused by the sleep wakeup of the host 106, it is explained that before the external electronic device 100 is physically connected to the host 106, the steps S204 and S206 of FIG. 2 have been executed, so that the non-determination can be determined accordingly. The volatile memory 108 is provided with the above-described link information read from the device body 102. It should be noted that if the external electronic device 100 is an add-on-card electronic device, the host 106 will cut off the power supply of the external electronic device 100 when the host device is sleeping, and the host 106 sleeps and wakes up again. When the external electronic device 100 is an on-board-card electronic device, the external electronic device 100 is continuously powered when the host 106 is dormant, but the host 106 sleeps and wakes up. It will still trigger the connection with the host 106. The present invention is applied to the external electronic device 100 that is powered off when the host 106 is in a sleep state, and the effect is particularly remarkable, because after the power is turned on, it takes a long time for the device main body 102 to be operated from startup to stable operation.
至於裝置主體102被抽換的狀況,一種實施方式係設計一「新裝置標示」標幟裝置主體102是否被抽換,以了解該非揮發式記憶體108內容是否可續用。控制單元110可於該介面控制器104與該主機106之間連結發生觸發(例如,USB之D+與D-接點上發生電壓的變化)時辨識該新裝置標示。若該新裝置標示顯示裝置主體102早被抽換(即標幟該非揮發式記憶體102內容不可續用),控制單元110即判定該非揮發式記憶體108不具備讀取自該裝置主體102的上述連結資訊,執行第2圖步驟S204與S206將新安裝的裝置主體102之連結資訊更新到非揮發式記憶體108上,繼而執行步驟S208與S210建立主機106與新安裝的裝置主體102之連結。As for the situation in which the device body 102 is replaced, one embodiment is to design whether a "new device tag" tag device body 102 is swapped to see if the content of the non-volatile memory 108 is renewable. The control unit 110 can recognize the new device identification when a trigger occurs between the interface controller 104 and the host 106 (eg, a change in voltage occurs on the D+ and D-contacts of the USB). If the new device indicates that the display device main body 102 has been replaced (ie, the content of the non-volatile memory 102 is not renewable), the control unit 110 determines that the non-volatile memory 108 does not have the read from the device body 102. The connection information is executed, and the connection information of the newly installed device main body 102 is updated to the non-volatile memory 108 by performing steps S204 and S206 in FIG. 2, and then steps S208 and S210 are performed to establish a connection between the host 106 and the newly installed device main body 102. .
第3圖為流程圖,圖解根據本發明一種實施方式所揭露的一種外接式電子裝置控制方法300,以下搭配第1圖作說明。FIG. 3 is a flow chart illustrating an external electronic device control method 300 according to an embodiment of the present invention, which will be described below with reference to FIG.
如第3圖所示,首先提供介面控制器104使裝置主體102得以耦接至主機106。要說明的是,第3圖示出的是外接式電子裝置第一次物理連接(connect)至主機106的情形,非揮發式記憶體108中尚無資料,因此直接执行步驟S302,等待裝置主體102穩定運轉後自該裝置主體102讀取連結資訊並填寫上述連結資訊至該非揮發式記憶體108。之後執行步驟S304,發送終端接入信號(termination on signal)給主機106。步驟S306將該非揮發式記憶體108所儲存、取自該裝置主體102的連結資訊用於回應該主機106根據該終端接入信號(termination on signal)所下達的至少一連結資訊要求。As shown in FIG. 3, the interface controller 104 is first provided to couple the device body 102 to the host 106. It should be noted that FIG. 3 shows the case where the external electronic device is physically connected to the host 106 for the first time. There is no data in the non-volatile memory 108. Therefore, step S302 is directly executed, and the device body is directly awaited. After the stable operation of 102, the connection information is read from the device main body 102 and the connection information is filled in to the non-volatile memory 108. Then, step S304 is executed to send a termination on signal to the host 106. In step S306, the connection information stored by the non-volatile memory 108 and taken from the device body 102 is used to respond to at least one link information request issued by the host 106 according to the termination on signal.
在一種實施方式中,該裝置主體102為硬碟機(hard disc)。硬碟機需馬達穩定後方能供應資料,硬碟尤其是大容量硬碟(>2TB)從啟動到穩定甚至需要幾秒鐘的時間。然而,藉由本發明技術,硬碟如此耗時的穩定時間不影響其與主機106建立連結。In one embodiment, the device body 102 is a hard disc. Hard disk drives require a stable motor to supply data. Hard drives, especially large-capacity hard drives (>2TB), can take several seconds from start-up to stability. However, with the techniques of the present invention, the time-consuming settling time of the hard disk does not affect its connection to the host 106.
在一種實施方式中,該裝置主體102係以串列先進技術附件(SATA)介面與該介面控制器104通訊,而該介面控制器104係以USB介面與該主機106通訊。例如,裝置主體102可為SATA硬碟,經介面控制器104以USB介面與主機106連結。在一實施方式中,該介面控制器104係實現USB通訊協議與SATA通訊協議之間轉換的橋接裝置(bridge device)。在一實施方式 中,介面控制器104可以與裝置主體102包裝在一起以一USB介面的外接式電子裝置100的產品形式呈現。In one embodiment, the device body 102 communicates with the interface controller 104 via a Serial TECH interface, and the interface controller 104 communicates with the host 106 via a USB interface. For example, the device body 102 can be a SATA hard disk, and is connected to the host 106 via the interface controller 104 via a USB interface. In an embodiment, the interface controller 104 is a bridge device that implements a conversion between a USB communication protocol and a SATA communication protocol. In an embodiment The interface controller 104 can be packaged with the device body 102 in the form of a USB interface external electronic device 100.
此外,本案更揭露之外接式電子裝置控制方法,並不限定以第1圖之結構實現。凡是應用到本案所揭露之概念控制一外接式電子裝置的技術,皆涉及本案發明範圍。In addition, the present disclosure further discloses that the external electronic device control method is not limited to the configuration of the first embodiment. Any technique applied to the concept of controlling an external electronic device disclosed in the present invention relates to the scope of the present invention.
雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何熟悉此項技藝者,在不脫離本發明之精神和範圍內,當可做些許更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。While the present invention has been described in its preferred embodiments, the present invention is not intended to limit the invention, and the present invention may be modified and modified without departing from the spirit and scope of the invention. The scope of protection is subject to the definition of the scope of the patent application.
100‧‧‧外接式電子裝置100‧‧‧External electronic devices
102‧‧‧裝置主體102‧‧‧Device body
104‧‧‧介面控制器104‧‧‧Interface controller
106‧‧‧主機106‧‧‧Host
108‧‧‧非揮發式記憶體108‧‧‧ Non-volatile memory
110‧‧‧控制單元110‧‧‧Control unit
114‧‧‧活動,自裝置主體102讀取連結資訊,由介面控制器114‧‧‧ activities, reading the link information from the device body 102, by the interface controller
104存入非揮發性記憶體108104 stored in non-volatile memory 108
116‧‧‧活動,介面控制器104發出終端接入信號給主機106116‧‧‧ activities, interface controller 104 sends a terminal access signal to host 106
118‧‧‧活動,主機106根據終端接入信號下達連結資訊要求,且介面控制器104將非揮發性記憶體108所儲存的連接資訊用於回應主機106下達的連結資訊要求118‧‧‧ activities, the host 106 sends a link information request according to the terminal access signal, and the interface controller 104 uses the connection information stored by the non-volatile memory 108 to respond to the link information request issued by the host 106
Claims (16)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410130975.6A CN103984657B (en) | 2013-09-26 | 2014-04-02 | interface controller, external electronic device and control method thereof |
| US14/452,784 US10318463B2 (en) | 2013-09-26 | 2014-08-06 | Interface controller, external electronic device, and external electronic device control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US201361882841P | 2013-09-26 | 2013-09-26 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW201513127A TW201513127A (en) | 2015-04-01 |
| TWI514412B true TWI514412B (en) | 2015-12-21 |
Family
ID=53437228
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW103109867A TWI514412B (en) | 2013-09-26 | 2014-03-17 | Interface controller, external electronic device, and external electronic device control method |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI514412B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090193156A1 (en) * | 2008-01-28 | 2009-07-30 | Sony Nec Optiarc Inc. | Peripheral device, method of operating peripheral device, host device, method of operating host device, and electronic device system |
| TWM374119U (en) * | 2009-08-28 | 2010-02-11 | Silitek Electronic Guangzhou | Wireless peripheral device and production matching system thereof |
| TW201030554A (en) * | 2009-02-09 | 2010-08-16 | Chuan-Chen Victor Wu | Cipher data box |
| US20110106984A1 (en) * | 2009-10-30 | 2011-05-05 | Sony Corporation | Radio communication device, method of responding to host apparatus and program |
-
2014
- 2014-03-17 TW TW103109867A patent/TWI514412B/en active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090193156A1 (en) * | 2008-01-28 | 2009-07-30 | Sony Nec Optiarc Inc. | Peripheral device, method of operating peripheral device, host device, method of operating host device, and electronic device system |
| TW201030554A (en) * | 2009-02-09 | 2010-08-16 | Chuan-Chen Victor Wu | Cipher data box |
| TWM374119U (en) * | 2009-08-28 | 2010-02-11 | Silitek Electronic Guangzhou | Wireless peripheral device and production matching system thereof |
| US20110106984A1 (en) * | 2009-10-30 | 2011-05-05 | Sony Corporation | Radio communication device, method of responding to host apparatus and program |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201513127A (en) | 2015-04-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI453594B (en) | Bios firmware updating method and electronic device | |
| CN102063320B (en) | Work mode switching methods, USB (Universal Serial Bus) equipment and host machine equipment | |
| US11433718B2 (en) | Upgrading method and apparatus for tire pressure monitoring module and tire pressure sensor | |
| US20100274986A1 (en) | Control apparatus and control method therefor | |
| EP2257879A1 (en) | Providing device parameters | |
| WO2017045419A1 (en) | Method and apparatus for controlling the powering-on of terminal | |
| CN112332927B (en) | Control methods and related products | |
| CN102073602B (en) | Computer system, connection control device as well as connecting and disconnecting method | |
| CN107608828A (en) | Method, system, device and the storage medium that data center's power down recovers automatically | |
| CN105302763A (en) | USB 3.0 protocol based read-only control system and method | |
| CN103984657B (en) | interface controller, external electronic device and control method thereof | |
| CN103019619B (en) | A kind of disk plug control method and device | |
| TWI514412B (en) | Interface controller, external electronic device, and external electronic device control method | |
| CN104101100A (en) | Water heater and control method thereof | |
| JP6200091B2 (en) | Camera that supports removable storage device divided into multiple partitions | |
| CN110351449A (en) | Image forming apparatus and its control method including storing equipment | |
| CN102169439B (en) | Data transmission system | |
| US9606951B2 (en) | External electronic device and interface controller and external electronic device control method | |
| CN101562007A (en) | Display control device capable of automatically updating firmware and updating method thereof | |
| CN109710193B (en) | System and method for controlling PWDIS signal in M.3 SSD | |
| CN112650376A (en) | System and method for controlling hard disk soft switch | |
| CN114546899A (en) | USB device connection method, system and computer readable storage medium | |
| CN113656081B (en) | Method, device and computer equipment for synchronizing configuration information of baseboard management controller | |
| CN110737483A (en) | A signaling and data transmission method based on Windows USB MassStorage class | |
| WO2014205909A1 (en) | Data storage processing method, device, and terminal |