TWI405085B - Switching interface method for a multi-interface storage device - Google Patents

Switching interface method for a multi-interface storage device Download PDF

Info

Publication number
TWI405085B
TWI405085B TW99102561A TW99102561A TWI405085B TW I405085 B TWI405085 B TW I405085B TW 99102561 A TW99102561 A TW 99102561A TW 99102561 A TW99102561 A TW 99102561A TW I405085 B TWI405085 B TW I405085B
Authority
TW
Taiwan
Prior art keywords
interface
priority
storage device
interfaces
heavy
Prior art date
Application number
TW99102561A
Other languages
Chinese (zh)
Other versions
TW201126347A (en
Inventor
Chin Tung Sheu
Tsung Min Chang
Tsung Hang Wu
Original Assignee
Innostor Technology 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 Innostor Technology Corp filed Critical Innostor Technology Corp
Priority to TW99102561A priority Critical patent/TWI405085B/en
Publication of TW201126347A publication Critical patent/TW201126347A/en
Application granted granted Critical
Publication of TWI405085B publication Critical patent/TWI405085B/en

Links

Landscapes

  • Power Sources (AREA)
  • Information Transfer Systems (AREA)

Abstract

The present invention is related to a switching interface method of a multi-interface storage device and is applied to a storage device having multiple interfaces. The storage device stores a preset interface priority weight list. The switching interface method has following steps of (a) reading linking information of one of the interfaces according to priority weight of the list; (b) executing a linking procedure according to the linking information of the interface; (c) determining whether the linking procedure is completed, if not go to step (b) and if yes go to a next step; (d) enabling the present interface of the storage device; and (e) providing a user interface to select and enable another interface. Therefore, the present invention not only increases that storage device comply with an older interface of the computer but also the user may select a proper interface of the storage device links to the corresponding interface of the computer.

Description

應用於儲存裝置之多重傳輸介面的切換方法Switching method for multiple transmission interfaces applied to storage devices

本發明係關於一種多重傳輸介面的切換方法,特別應用於具有多重標準介面的儲存裝置。The present invention relates to a method of switching multiple transmission interfaces, particularly for storage devices having multiple standard interfaces.

由於半導體技術的精進及通訊介面協定的訂定,具備SATA傳輸介面或eSATA傳輸介面的高容量儲存裝置日漸普及。然而,不同於USB傳輸介面,單一SATA或eSATA傳輸介面無法提供儲存裝置工作電源,必須在儲存裝置內設置電源插座,造成生產成本提高,所以為解決需設置電源插座的問題,於是產生具備多重傳輸介面(通常為USB傳輸介面搭配其他傳輸介面)的儲存裝置。Due to the advancement of semiconductor technology and the definition of communication interface protocols, high-capacity storage devices with SATA transmission interfaces or eSATA transmission interfaces are becoming more and more popular. However, unlike the USB transmission interface, a single SATA or eSATA transmission interface cannot provide the working power of the storage device, and a power socket must be installed in the storage device, resulting in an increase in production cost. Therefore, in order to solve the problem of setting a power socket, multiple transmissions are generated. A storage device for the interface (usually a USB transport interface with other transport interfaces).

一般而言,搭配多重傳輸介面的儲存裝置具有高度相容性的優勢,尤其當儲存裝置設置SATA傳輸介面時,配合支援進階主機控制介面(Advanced Host Controller Interface;AHCI)的電腦主機,透過SATA傳輸介面與主機通訊的儲存裝置得以在主機電源啟動後,連接或移除儲存裝置(稱為熱插拔)以使儲存裝置致能或失能,為使用者提供相當程度的便利性,然而,對於未支援AHCI的主機來說,一旦將主機電源啟動後,即使將SATA儲存裝置電性連接至主機,亦無法致能SATA儲存裝置。In general, storage devices with multiple transmission interfaces have the advantage of high compatibility, especially when the storage device is equipped with a SATA transmission interface, with a host computer supporting the Advanced Host Controller Interface (AHCI), through SATA. The storage device that communicates with the host computer can connect or remove the storage device (called hot plug) after the host power is turned on to enable or disable the storage device, thereby providing a considerable degree of convenience to the user. For hosts that do not support AHCI, once the host power is turned on, even if the SATA storage device is electrically connected to the host, the SATA storage device cannot be enabled.

並且,目前具備多重傳輸介面的儲存裝置,亦缺少可於主機運作時,在作業系統中得以自由切換傳輸介面的功能,致使當主機無法辨識儲存裝置時,儲存裝置即形同虛設。Moreover, the storage device with multiple transmission interfaces currently lacks the function of freely switching the transmission interface in the operating system when the host is operating, so that when the host cannot recognize the storage device, the storage device is virtually ineffective.

本發明的主要目的係提供一種應用於儲存裝置之多重傳輸介面的切換方法,讓使用者將該多介面儲存裝置插接至電腦上時,能選擇最佳或彈性選擇其想要進行通訊的介面,令儲存裝置以選定介面與電腦順利進行通訊。The main object of the present invention is to provide a method for switching multiple transmission interfaces applied to a storage device, so that when the user inserts the multi-interface storage device to the computer, the user can select the interface that is optimally or flexibly selected for communication. To enable the storage device to communicate smoothly with the computer with the selected interface.

欲達上述目的所使用的主要技術手段係令該多介面儲存裝置包含有複數不同標準介面及一控制單元,該控制單元係與複數介面電連接;又該控制單元內建有對應各介面的連線程序及一介面優先權重預設表,其中該切換單一介面通訊方法係包括:接收外部連線請求訊號;讀取該介面優先權重預設表中最高優先權重介面的格式協定;比對目前外部連線請求訊號與最高權重介面的格式協定是否相符;若是,則載入並執行該最高優先權重介面的連線程序,待完成連線程序後,令最高優先權重介面致能;反之,若連線程序未完成,則執行下一步驟;若否,則依優先權重高至低至該優先權重預設表讀取下一優先權重介面的格式協定,再分別與目前外部連線請求訊號比對,若比對結果符合者,即載入並執行與該符合通訊格式的連線程序,並令對應該通訊格式的介面致能;提供一切換介面選擇;判斷切換介面選擇是否點選;若是,則關閉目前致能的介面並直接載入並執行已選定之介面的連線程序,並將該選定介面予以致能;反之,若畫面未被點選,則維持目前介面的致能狀態。The main technical means for achieving the above purpose is that the multi-interface storage device comprises a plurality of different standard interfaces and a control unit, and the control unit is electrically connected to the plurality of interfaces; and the control unit has a connection corresponding to each interface. The line program and an interface priority re-preset table, wherein the switching single interface communication method comprises: receiving an external connection request signal; reading a format agreement of the highest priority heavy interface in the interface priority re-preset table; comparing the current external Whether the connection request signal matches the format agreement of the highest weight interface; if so, the connection procedure of the highest priority heavy interface is loaded and executed, and the highest priority heavy interface is enabled after the connection procedure is completed; If the line program is not completed, the next step is performed; if not, the format agreement of the next priority heavy interface is read according to the priority of the priority re-preset table, and then compared with the current external connection request signal respectively. If the comparison result is met, the connection program corresponding to the communication format is loaded and executed, and the correspondence format is matched. Enable; provide a switch interface selection; determine whether the switch interface is selected; if so, close the currently enabled interface and directly load and execute the connection procedure of the selected interface, and enable the selected interface; Conversely, if the picture is not clicked, the enabling state of the current interface is maintained.

上述本發明的通訊方法主要應用於具有多介面的儲存裝置中,當多介面儲存裝置以至少二個介面同時插設至電腦對應介面插座時,電腦會主動偵測並發出連線請求訊號予各介面插座,因此本發明即能藉由判斷連線請求訊號的訊號格式,並在其中一介面無法順利與電腦建立連線後,或直接提供切換選項,由使用者決定選擇特定介面與電腦進行連線通訊;是以,對於整合有複數介面的儲存裝置來說,即能有效提高與新舊款電腦的相容性,並能提供使用者彈性選擇合適的介面與電腦進行通訊。The communication method of the present invention is mainly applied to a storage device having multiple interfaces. When the multi-interface storage device is simultaneously inserted into the corresponding interface socket of the computer with at least two interfaces, the computer will actively detect and send a connection request signal to each. The interface socket, so the present invention can determine the signal format of the connection request signal, and after one interface cannot successfully establish a connection with the computer, or directly provide a switching option, the user decides to select a specific interface to connect with the computer. Line communication; that is, for a storage device integrated with multiple interfaces, it can effectively improve the compatibility with new and old computers, and provide users with the flexibility to choose the appropriate interface to communicate with the computer.

請參閱第一圖,儲存裝置10為本發明實施例中,具備多重傳輸介面的儲存裝置,包含多個傳輸介面I1、I2和I3,(例如SATA介面、USB介面、PCI-E介面或IEEE1394介面...等)和電性連接至多重傳輸介面I1、I2和I3的控制單元11,控制單元11內建連線程序及預設表,此預設表用以決定各介面之優先權重。電腦20內建插槽C1、C2和C3,用以電性連接介面I1、I2和I3,其中,介面I1、I2和I3可分別整合至所屬接頭或統一整合至單一接頭;插槽C1、C2和C3可為各自獨立之插槽或為整合後之單一插槽。Referring to the first figure, the storage device 10 is a storage device with multiple transmission interfaces in the embodiment of the present invention, and includes multiple transmission interfaces I1, I2, and I3 (such as a SATA interface, a USB interface, a PCI-E interface, or an IEEE1394 interface). And the control unit 11 electrically connected to the multiple transmission interfaces I1, I2 and I3. The control unit 11 has a built-in connection program and a preset table, and the preset table is used to determine the priority of each interface. The computer 20 has built-in slots C1, C2 and C3 for electrically connecting the interfaces I1, I2 and I3, wherein the interfaces I1, I2 and I3 can be integrated into the respective joints or integrated into a single joint; slots C1, C2 And C3 can be separate slots or a single slot after integration.

請參閱第二圖和第三圖,預設表30包含介面(I)欄位、優先權重(P)欄位、格式協定(S)欄位及連線程序(FW)欄位;在本發明實施例中,一種應用於儲存裝置之多重傳輸介面的切換方法包括:首先,接收外部連線請求訊號(101);其次,讀取該介面優先權重預設表中最高優先權重介面的格式協定(102);接著,比對目前外部連線請求訊號與最高權重介面的格式協定是否相符(103);若是,則載入並執行該最高優先權重介面的連線程序,待完成連線程序後,令最高優先權重介面致能(104);反之,若連線程序未完成,則執行下一步驟;若否,則依優先權重高至低至該優先權重預設表讀取下一優先權重介面的格式協定(105),再分別與目前外部連線請求訊號比對,若比對結果符合者,即載入並執行與該符合通訊格式的連線程序,並令對應該通訊格式的介面致能;提供一切換介面選擇(106);判斷切換介面選擇;若選擇切換者,則關閉目前致能的介面並直接載入並執行已選定之介面的連線程序,並將該選定介面予以致能(107);反之,若選擇未切換,則維持目前介面的致能狀態(108)。Referring to the second and third figures, the preset table 30 includes an interface (I) field, a priority weight (P) field, a format agreement (S) field, and a connection program (FW) field; In an embodiment, a method for switching multiple transmission interfaces applied to a storage device includes: first, receiving an external connection request signal (101); and second, reading a format agreement of a highest priority heavy interface in the interface priority re-preset table ( 102); then, comparing whether the current external connection request signal and the highest weight interface format agreement (103); if yes, loading and executing the connection procedure of the highest priority heavy interface, after the connection procedure is completed, The highest priority heavy interface is enabled (104); otherwise, if the connection procedure is not completed, the next step is performed; if not, the next priority heavy interface is read according to the priority of the priority reset table. The format agreement (105) is compared with the current external connection request signal respectively. If the comparison result is met, the connection procedure with the communication format is loaded and executed, and the interface corresponding to the communication format is caused. Can provide a switch Face selection (106); determine the switch interface selection; if the switcher is selected, the currently enabled interface is closed and the connection procedure of the selected interface is directly loaded and executed, and the selected interface is enabled (107); Conversely, if the selection is not switched, the enabling state of the current interface is maintained (108).

請參閱第一圖、第二圖及第四A至C圖所示,係為本發明一較佳實施例,本實施例係應用於具有三種介面(I1/I2/I3)的儲存裝置(10),且此三種介面(I1/I2/I3)同時對應插接至電腦三種介面插座(C1/C2/C3)中,以下詳細說明本發明之實施方法:首先請配合參閱第四A圖所示,由於電腦(20)會偵測並發出連線請求訊號予各介面插座(C1/C2/C3),因此本發明開機後若接收來自電腦(20)的外部連線請求訊號(30),即讀取預設的介面優先權重預設表,並取出設定最高優先權重的介面格式協定(S1)(31),進而判斷目前外部連線請求訊號是否符合最高優先權重的介面格式協定(S1)(32),若是,則再載入最高優先權重介面的連線程序(FW1)(一般為交握程序)(33),由於連線程序過程中會設定一連線時間,倘若超過此一連線時間即代表目前最高優先權重介面無法與電腦順利取得連線;因此,以連線時間是否超過判斷連線程序是否完成依據(34),若判斷已連線完成者,則代表已與電腦取得連線,並將目前最高優先權重介面致能(35);反之,若連線時間超過而未完成連線者,則直接進入次高優先權重通訊程序(B)。Referring to the first, second and fourth A to C drawings, which is a preferred embodiment of the present invention, the present embodiment is applied to a storage device having three interfaces (I1/I2/I3) (10). And the three interfaces (I1/I2/I3) are correspondingly plugged into the three interface sockets (C1/C2/C3) of the computer. The following describes the implementation method of the present invention in detail: first, please refer to the fourth A picture. Since the computer (20) detects and sends a connection request signal to each interface socket (C1/C2/C3), if the present invention receives an external connection request signal (30) from the computer (20) after powering on, Read the preset interface priority re-preset table, and take out the interface format protocol (S1) (31) that sets the highest priority weight, and then determine whether the current external connection request signal conforms to the highest priority interface format agreement (S1) ( 32), if yes, then reload the connection program (FW1) of the highest priority interface (usually the handshake program) (33), because a connection time will be set during the connection procedure, if this connection is exceeded Time means that the current highest priority heavy interface cannot be successfully connected to the computer; therefore, when connecting Whether it exceeds the judgment of whether the connection procedure is completed (34), if it is judged that the connection has been completed, the representative has already connected with the computer, and the current highest priority heavy interface is enabled (35); otherwise, if the connection time exceeds If the connection is not completed, it will go directly to the next highest priority re-communication program (B).

倘若一開始判斷來自電腦(20)的外部連線請求訊號(32)即不符合優先權重介面的格式協定,則同樣直接進入次高優先權重通訊程序(B)。If it is initially determined that the external connection request signal (32) from the computer (20) does not conform to the format agreement of the priority heavy interface, it also directly enters the next highest priority re-engagement procedure (B).

請參閱第四B圖所示,進入次高優先權通訊程序(B)即首先讀取介面優先權重預設表,並取出次高優先權重介面的格式協定(S2),判斷目前外部連線請求訊號是否符合次高優先權重介面的格式協定(S2)(40),若是,則載入次高優先權重介面的連線程序(FW2),並執行該連線程序(42),判斷連線程序是否完成(43),若連線程序完成者,則將次高優先權重介面致能(44),令儲存裝置以次高優先權重介面(I2)與電腦進行通訊;在此同時,本發明亦提供一切換介面(45)以切換至其它二個介面(I1/I3);若切換介面不進行切換,則維持目前次高優先權重介面(I2)與電腦進行通訊(47),若選擇最高優先權重介面(I1),則回到最高優先權重通訊程序(A),若選擇最低優先權重介面(I3),則執行最低優先權重通訊程序(C)。Please refer to the fourth B picture, enter the next highest priority communication program (B), first read the interface priority re-preset table, and take out the format agreement of the next highest priority heavy interface (S2) to determine the current external connection request Whether the signal conforms to the format agreement (S2) (40) of the next highest priority heavy interface, and if so, loads the connection procedure (FW2) of the next highest priority interface, and executes the connection procedure (42) to determine the connection procedure. Whether it is completed (43), if the connection procedure is completed, the next highest priority heavy interface is enabled (44), so that the storage device communicates with the computer with the second highest priority heavy interface (I2); at the same time, the present invention also A switching interface (45) is provided to switch to the other two interfaces (I1/I3); if the switching interface is not switched, the current secondary high priority interface (I2) is maintained to communicate with the computer (47), if the highest priority is selected The weight interface (I1) returns to the highest priority re-routing procedure (A), and if the lowest priority re-interface (I3) is selected, the lowest priority re-communication procedure (C) is executed.

然而,若連線程序未完成,則依序進入最低優先權重通訊程序(C)。同理,當上述判斷目前外部連線請求訊號(41)不符合次高優先權介面的格式協定(S2)時,同樣依序進入最低優先權重通訊程序(C)。However, if the connection procedure is not completed, the lowest priority re-routing procedure (C) is entered in sequence. Similarly, when it is judged that the current external connection request signal (41) does not conform to the format agreement (S2) of the next highest priority interface, the lowest priority re-routing procedure (C) is also sequentially entered.

請參閱第四C圖所示,進入最低優先權通訊程序(C)即首先讀取介面優先權重預設表,並取出最低優先權重介面的格式協定(S3)(50),判斷目前外部連線請求訊號是否符合最低優先權重介面的格式協定(S3)(51),若是,則載入最低優先權重介面的連線程序(52),並執行該連線程序,之後再判斷該連線程序是否完成(53),若連線程序完成者,則將最低優先權重介面致能(54),令儲存裝置(20)以最低優先權重介面(I3)與電腦進行通訊;在此同時,本發明亦提供另一切換介面選擇(55)以切換至其它二個介面(I1/I2);若維持目前最低優先權重介面(I3)與電腦進行通訊,若選擇最高優先權重介面(I1),則回到最高優先權重通訊程序(A),若選擇次高優先權重介面(I2),則執行次高優先權重通訊程序(B)。Please refer to the fourth C picture, enter the lowest priority communication program (C), first read the interface priority re-preset table, and take out the format agreement (S3) (50) of the lowest priority heavy interface to judge the current external connection Whether the request signal conforms to the format agreement of the lowest priority heavy interface (S3) (51), and if so, loads the connection procedure (52) of the lowest priority heavy interface, and executes the connection procedure, and then determines whether the connection procedure is Completion (53), if the connection procedure is completed, the lowest priority heavy interface is enabled (54), so that the storage device (20) communicates with the computer with the lowest priority heavy interface (I3); at the same time, the present invention also Provide another switching interface option (55) to switch to the other two interfaces (I1/I2); if the current lowest priority heavy interface (I3) is maintained to communicate with the computer, if the highest priority heavy interface (I1) is selected, then return The highest priority re-routing procedure (A), if the second highest priority heavy interface (I2) is selected, the next highest priority re-communication procedure (B) is executed.

然而,若連線程序未完成,則依序回到最高優先權重通訊程序(A),一直持續到連接完成為止。同理,當上述判斷目前外部連線請求訊號(51)不符合最低優先權介面的格式協定(S3)時,同樣依序進入最高優先權重通訊程序(A)。However, if the connection procedure is not completed, it returns to the highest priority re-routing procedure (A) in sequence, until the connection is completed. Similarly, when it is judged that the current external connection request signal (51) does not conform to the format agreement (S3) of the lowest priority interface, the highest priority re-routing procedure (A) is also sequentially entered.

請參閱第五圖所示,係為本發明另一較佳實施例的流程圖,係應用於一種具有SATA及USB介面的儲存裝置。若儲存裝置欲以較高傳送速率的SATA介面與電腦進行通訊,則儲存裝置必須將其SATA介面及USB介面一同插設至電腦的SATA介面插座及USB介面插座中,如此該SATA介面即能以USB介面的電源接腳作為工作電源;是以,當儲存裝置插設至電腦上,電腦會自動發送SATA及USB請求連接訊號至儲存裝置。以下謹進一步說明內建本發明方法的儲存裝置,確實能提高與舊款電腦的相容性。Please refer to the fifth embodiment for a flow chart of another preferred embodiment of the present invention, which is applied to a storage device having a SATA and a USB interface. If the storage device is to communicate with the computer at a higher transfer rate SATA interface, the storage device must be plugged into the SATA interface socket and the USB interface socket of the computer together with the SATA interface and the USB interface, so that the SATA interface can The power pin of the USB interface is used as the working power source; that is, when the storage device is plugged into the computer, the computer will automatically send the SATA and USB request connection signals to the storage device. In the following, it will be further explained that the storage device incorporating the method of the present invention can indeed improve the compatibility with the old computer.

當儲存裝置開機後,會接收來自電腦的SATA連線請求訊號(60),因此即能讀取介面優先權重預表(61),將SATA連線請求訊號與SATA介面格式協定進行比對(62),判斷相符後即載入SATA介面的連線程序(63),開始與電腦進行交握連線程序,並判斷是否連線程序已完成(64),若完成者,則代表該電腦支援進階主機控制介面(AHCI),直接將SATA介面致能(65);若未完成,則代表該電腦(20)僅支援IDE介面,此時本發明會自動轉為執行USB通訊程序。意即,儲存裝置係讀取介面優先權重預設表(66),並將電腦發出的USB連線請求訊號進行初步判斷(67),若判斷相符USB介面格式協定,則與電腦進行連線程序,若連線程通過後,將USB介面致能(68)。由於USB傳輸速率仍較SATA差,因此可藉由本發明提供的切換介面(69)決定是否進行切換,若欲切換至SATA介面,則先關閉USB介面(71)再直接載入SATA介面的連線程序(72),於連線程序完成後,即可將SATA予以致能(65)。When the storage device is powered on, it will receive the SATA connection request signal (60) from the computer, so the interface priority re-check list (61) can be read, and the SATA connection request signal is compared with the SATA interface format protocol (62). ), after judging the match, load the connection program of the SATA interface (63), start the connection program with the computer, and judge whether the connection procedure has been completed (64). If it is completed, it means the computer support. The host control interface (AHCI) directly enables the SATA interface (65); if not, it means that the computer (20) only supports the IDE interface, and the present invention automatically switches to the USB communication program. That is, the storage device reads the interface priority reset table (66), and makes a preliminary judgment (67) of the USB connection request signal sent by the computer, and if it is determined that the USB interface format agreement is met, the connection program with the computer is performed. If the thread passes, enable the USB interface (68). Since the USB transmission rate is still worse than that of the SATA, the switching interface (69) provided by the present invention can be used to determine whether to perform the switching. To switch to the SATA interface, first close the USB interface (71) and then directly load the connection of the SATA interface. Program (72), after the connection procedure is completed, SATA can be enabled (65).

是以,本實施例提供使用者一個更簡便啟動高速的SATA介面方式,不會因為電腦未支援該進階主機控制介面,而必須再操作電腦重新掃描的應用程式,才能致能SATA介面。Therefore, the embodiment provides a simpler way for the user to start the high-speed SATA interface. The SATA interface cannot be enabled because the computer does not support the advanced host control interface and must be operated by the computer to rescan the application.

上述切換介面選擇可以應用程式(AP)、BIOS、韌體或GPIO方式加以實現;如此應用程式設計,則可於電腦視窗上彈跳出一切換畫面時,直接點按切換畫面上的選項。The above switching interface selection can be implemented by an application (AP), BIOS, firmware or GPIO mode; in this case, when the application screen is designed to bounce a switching screen on the computer window, the option on the switching screen can be directly clicked.

由上述說明及各實施例內容可知,本發明應用於具有多介面儲存裝置上,多介面同時插接至電腦後,即能先依照介面優先權重預設表對其中最高優先權重介面進行通訊程序,倘若無法順利與電腦建立連線者,會自動依序選擇其它介面進行連線,直到連線成功為止;再者,一旦連線成功後亦能藉由提供切換介面選擇,讓使用者選定其它介面進行通訊程序。因此,本發明確實能解決目前電腦建置不完全介面驅動程式,而導致儲存裝置無法快速與電腦快速建立連線的缺點;此外,亦能提供使用者切換任一介面的彈性。對於儲存裝置的廠商來說,亦能依據其應用需求,如傳輸速率高低或介面普及性,來設定優先權重預設表中各介面權重值,決定最高優先權重介面。It can be seen from the above description and the contents of the embodiments that the present invention is applied to a multi-interface storage device, and after multiple interfaces are simultaneously plugged into a computer, the communication procedure of the highest priority heavy interface can be performed according to the interface priority reset table. If you can't successfully connect with the computer, you will automatically select other interfaces to connect until the connection is successful. In addition, once the connection is successful, you can choose other interfaces by providing the switch interface. Conduct a communication program. Therefore, the present invention can solve the shortcomings of the current incomplete interface driver of the computer, and the storage device cannot quickly establish a connection with the computer quickly; in addition, it can also provide flexibility for the user to switch any interface. For the manufacturer of the storage device, the weight of each interface in the priority re-preset table can be set according to the application requirements, such as the transmission rate or the popularity of the interface, and the highest priority heavy interface is determined.

(10)...儲存裝置(10). . . Storage device

(11)...控制單元(11). . . control unit

(20)...電腦(20). . . computer

第一圖:係本發明應用於一儲存裝置及其與電腦介面插槽的示意圖。First Figure: A schematic diagram of the present invention applied to a storage device and its interface to a computer interface.

第二圖:係本發明的優先權重預設表。Second figure: is a priority re-preset table of the present invention.

第三圖:係本發明流程圖。Third Figure: A flow chart of the present invention.

第四A至C圖:係本發明一較佳實施例的流程圖。4A through C are flowcharts of a preferred embodiment of the present invention.

第五圖:係本發明另一較佳實施例的流程圖。Figure 5 is a flow chart of another preferred embodiment of the present invention.

Claims (7)

一種應用於儲存裝置之多重傳輸介面的切換方法,其中該多介面儲存裝置係包含有複數不同標準介面及一控制單元,該控制單元係與複數介面電連接;其中該控制單元內建有對應各介面的連線程序及一介面優先權重預設表,而該切換單一介面方法係包括:接收外部連線請求訊號;讀取介面優先權重預設表中最高優先權重介面的格式協定;比對目前外部連線請求訊號與最高權重介面的格式協定是否相符;若是,則載入並執行該最高優先權重介面的連線程序,待完成連線程序後,令最高優先權重介面致能;反之,若連線程序未完成,則執行下一步驟;若否,則依優先權重高至低至該優先權重預設表讀取下一優先權重介面的格式協定,再分別與目前外部連線請求訊號比對,若比對結果符合者,即載入並執行與該符合通訊格式的連線程序,並令對應該通訊格式的介面致能;提供一切換介面選擇;判斷切換介面選擇是否點選;若是,則關閉目前致能的介面並直接載入並執行已選定之介面的連線程序,並將該選定介面予以致能;反之,若畫面未被點選,則維持目前介面的致能狀態。A switching method for multiple transmission interfaces of a storage device, wherein the multi-interface storage device comprises a plurality of different standard interfaces and a control unit, wherein the control unit is electrically connected to the plurality of interfaces; wherein the control unit has corresponding internal built-in The interface connection procedure and an interface priority re-preset table, and the switching single interface method includes: receiving an external connection request signal; and reading a format priority re-preset table in the highest priority heavy interface format agreement; Whether the external connection request signal matches the format agreement of the highest weight interface; if so, the connection procedure of the highest priority heavy interface is loaded and executed, and the highest priority heavy interface is enabled after the connection procedure is completed; If the connection procedure is not completed, the next step is performed; if not, the format of the next priority heavy interface is read according to the priority of the priority re-preset table, and then compared with the current external connection request signal respectively. Yes, if the comparison results are met, the connection procedure with the communication format is loaded and executed, and the corresponding communication is made. Interface enable; provide a switch interface selection; determine whether the switch interface is selected; if so, close the currently enabled interface and directly load and execute the connection procedure of the selected interface, and the selected interface is given Enable; otherwise, if the picture is not clicked, the enable state of the current interface is maintained. 如申請專利範圍第1項所述應用於儲存裝置之多重傳輸介面的切換方法,該介面優先權重預設表係預設一最高優先權重介面及其格式協定與連線程序,以及一次高優先權重介面及其格式協定與連線程序。 The method for switching multiple transmission interfaces applied to a storage device according to claim 1, wherein the interface priority re-preset table presets a highest priority heavy interface and its format agreement and connection procedure, and a high priority weight Interface and its format agreement and connection procedures. 如申請專利範圍第2項所述應用於儲存裝置之多重傳輸介面的切換方法,該最高優先權重介面為SATA介面,而次高優先權重介面為USB系列介面。 The highest priority interface is a SATA interface, and the next highest priority interface is a USB series interface, as described in claim 2, in the method of switching multiple transmission interfaces of a storage device. 如申請專利範圍第1項所述應用於儲存裝置之多重傳輸介面的切換方法,該介面優先權重預設表係三組優先權重介面及其格式協定與連線程序。 The method for switching multiple transmission interfaces applied to a storage device as described in claim 1, wherein the interface priority re-preset table is three sets of priority heavy interfaces and a format agreement and a connection procedure. 如申請專利範圍第4項所述應用於儲存裝置之多重傳輸介面的切換方法,該三組優先權重介面係為SATA介面、USB系列介面及IEEE1394介面。 The method for switching multiple transmission interfaces applied to a storage device as described in claim 4, the three sets of priority heavy interfaces are a SATA interface, a USB series interface, and an IEEE1394 interface. 如申請專利範圍第4項所述應用於儲存裝置之多重傳輸介面的切換方法,該三組優先權重介面係為SATA介面、USB系列介面及PCI-e介面。 The method for switching multiple transmission interfaces applied to a storage device as described in claim 4, wherein the three sets of priority interfaces are a SATA interface, a USB series interface, and a PCI-e interface. 如申請專利範圍第4項所述應用於儲存裝置之多重傳輸介面的切換方法,該三組優先權重介面係為SATA介面、PCI-e系列介面及IEEE1394介面。The method for switching multiple transmission interfaces applied to a storage device as described in claim 4, wherein the three sets of priority interfaces are a SATA interface, a PCI-e series interface, and an IEEE1394 interface.
TW99102561A 2010-01-29 2010-01-29 Switching interface method for a multi-interface storage device TWI405085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99102561A TWI405085B (en) 2010-01-29 2010-01-29 Switching interface method for a multi-interface storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99102561A TWI405085B (en) 2010-01-29 2010-01-29 Switching interface method for a multi-interface storage device

Publications (2)

Publication Number Publication Date
TW201126347A TW201126347A (en) 2011-08-01
TWI405085B true TWI405085B (en) 2013-08-11

Family

ID=45024489

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99102561A TWI405085B (en) 2010-01-29 2010-01-29 Switching interface method for a multi-interface storage device

Country Status (1)

Country Link
TW (1) TWI405085B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI594127B (en) * 2015-02-04 2017-08-01 滿芯行動科技股份有限公司 Communication interface device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8713204B2 (en) * 2011-12-27 2014-04-29 Apple Inc. High-performance AHCI interface
EP2810173B1 (en) 2012-01-31 2018-10-31 Hewlett-Packard Development Company, L.P. Flexible port configuration based on interface coupling
TWI582596B (en) 2015-12-18 2017-05-11 視動自動化科技股份有限公司 Communication system with multiple serial ports for automatically identifying device types and communication protocols and method thereof

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200801962A (en) * 2006-03-22 2008-01-01 Mediatek Inc Substitute sata host for communicating with a sata device and related methods

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200801962A (en) * 2006-03-22 2008-01-01 Mediatek Inc Substitute sata host for communicating with a sata device and related methods

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI594127B (en) * 2015-02-04 2017-08-01 滿芯行動科技股份有限公司 Communication interface device

Also Published As

Publication number Publication date
TW201126347A (en) 2011-08-01

Similar Documents

Publication Publication Date Title
US9804859B2 (en) Re-enumeration of USB 3.0 compatible devices
US20040088449A1 (en) USB unit control method and a USB unit controller
US20050267999A1 (en) Electronic device, method for controlling the same, information processing apparatus, and computer program
US20140019496A1 (en) Data transfer method
WO2019113732A1 (en) Electronic device and charging control method
US10025351B2 (en) System for controlling peripherals connected to a docking station
US8533370B2 (en) Device and method for enabling a host apparatus to access a peripheral device
WO2017177377A1 (en) Method, apparatus and system for identifying peer device by usb type-c port device
KR101516637B1 (en) Computer with networking module and Method for transmitting data using the same
WO2013152662A1 (en) Power supply method for terminal device, and terminal device thereof
TWI405085B (en) Switching interface method for a multi-interface storage device
US20120042178A1 (en) Peripheral Device
US20090268743A1 (en) Data transmission bridge device and control chip thereof for transmitting data
US20100082846A1 (en) Usb device and method for connecting the usb device with usb host
WO2021043222A1 (en) Terminal device charging method and apparatus, and storage medium
US20060277339A1 (en) Communication apparatus, switching method, and switching program
CN108008980B (en) Method and apparatus for initiating re-enumeration of USB3.0 compatible devices
WO2020034908A1 (en) Method for communication between remote control and mobile terminal, device, and remote control
US8234426B2 (en) Switching interface method for a multi-interface storage device
US20200166980A1 (en) Intelligent storage device and method for accessing intelligent storage device
US11537092B2 (en) Appliances and control method thereof
CN108701106A (en) A kind of data transmission method and equipment
US20220164432A1 (en) Electronic device and control method
TWI584127B (en) Electronic devices
JP6434630B2 (en) USB OTG device identification system and apparatus

Legal Events

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