TWI277888B - Host, device, and method for controlling communication system - Google Patents

Host, device, and method for controlling communication system Download PDF

Info

Publication number
TWI277888B
TWI277888B TW93124539A TW93124539A TWI277888B TW I277888 B TWI277888 B TW I277888B TW 93124539 A TW93124539 A TW 93124539A TW 93124539 A TW93124539 A TW 93124539A TW I277888 B TWI277888 B TW I277888B
Authority
TW
Taiwan
Prior art keywords
current
communication
host device
devices
circuit
Prior art date
Application number
TW93124539A
Other languages
Chinese (zh)
Other versions
TW200527258A (en
Inventor
Takahiro Niwa
Yuji Yoshida
Masatoshi Ohnishi
Koji Horibe
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to TW93124539A priority Critical patent/TWI277888B/en
Publication of TW200527258A publication Critical patent/TW200527258A/en
Application granted granted Critical
Publication of TWI277888B publication Critical patent/TWI277888B/en

Links

Landscapes

  • Power Sources (AREA)

Abstract

A host apparatus capable of adjusting a current to be consumed by a device in accordance with the power supply performance of the host apparatus. A host apparatus (11) has a plurality of communication ports (P1-P3) to which devices (21-23) are connected. A host controller (14) of the host apparatus (11) communicates with the devices (21-23) to acquire device information including the current consumptions of the devices (21-23). A current supply circuit (15) supplies currents to the devices (21-23) connected to the communication ports (P1-P3). If the sum of the currents consumed by additional devices connected to the communication ports (P1-P3) anew and those consumed by the already connected and recognized devices (21-23) exceeds the current value available from the current supply circuit (15), then an MPU (12) changes the currents supplied from the current supply circuit (15) to the devices (21-23).

Description

I277888 九、發明說明: 【發明所屬之技術領域】 發明領域 s 本發明有關主機裝置、設備、通訊系統之控制方法, 係使用於主機裝置與複數的設備藉由用以進行串列通信之 騰流排而連接,藉該主機裝置之匯流排供電而使各設備運 作的通訊系統的主機裝置、設備、通訊系統之控制方法。 個人電腦之領域中,具有以串列匯流排介面規格即 ^如2·0〆1.1規袼為準據之USB(UniVersal Serial Bus)介面 的周邊機器(設備)正成為世界標準的情形,今後亦成為普及 而無以止步的態勢。USB規格中規定著每一埠透過USB電 纜而供給至最大500mA電流的能力,而建構成各設備藉電 纜供電而能運作的狀態。亦即,藉USB介面進行資料通訊 之通訊系統藉由USB電纜而從具有主機機能之電腦(主機裝 15 置)供電至設備以驅動設備。近年來,因藉USB介面而能通 訊之設備的普及,而使大多數的設備藉由USB介面而連接 主機裝置起來。於該通訊系統中,連接於主機裝置之設備 多,一旦在各設備進行超越主機裝置側之能力(可供給的電 流)之過度的電力消耗’則系統整體會造成不穩定的狀態, 20 因此乃有必要用以避免此一情況的技術。 【先前技術3 發明背景 以USB介面而連接主機裝置與設備之通訊系統,於電 源投入主機裝置的狀態下能與各設備連接與拆開,若是連 1277888 接則於瞬間進行識別設備而能使用該設備。即,於該通訊 系統中,新穎的設備連接於主機裝置之際,為了識別經連 接之新穎設備乃在主機裝置與設備之間進行協定 (negotiation) 〇 5 第40圖表示主機裝置用以識別新連接之設備所要進行 之處理的流程圖。 主機裝置首先於步驟1對設備發出用以要求設備機器 資訊的要求指令,並取得設備應答該要求指令而發出的機 器資訊。又,在發出供給指令之時間點,藉由USB電纜而 10 對經連接之設備供給100mA的電流,而在該設備用以進行 協定之機能區塊被活性化。 在步驟1取得之機器資訊中,包含有關用以驅動設備之 必要最大消耗電流的資訊,主機裝置轉移至步驟2而判定是 否能供給該最大消耗電流。主機裝置判定為可供給之電流 15 的情形下,轉移至步驟3而將已連接之設備作為可使用的設 備而識別,並對該設備開始匯流排供電(藉匯流排來供給電 源)。相對於此,主機裝置於步驟2判定設備之最大消耗電 流為不能供給之電流的情形下,將已連接之設備作為可使 用的設備而不識別。 20 如此一來,已連接之設備的最大消耗電流超過主機裝 置之供給能力時,該設備不被主機裝置所識別,其結果則 無法與主機裝置通訊。 又,上述通訊系統中,主機裝置控制著連接於該系統 之網路的全部設備。亦即,所連接之各設備應答從主機裝 1277888 置來的指示而進行資料傳送等動作,若是無從主機裝置來 指示的情形下就不能運作。 如第41圖所示,使用USB介面的傳送係在所謂異動 (transaction)的單位進行,該異動由複數的封包(packet)構 5成。即,藉從主機裝置發出之符記封包(token packet)而開 始傳送資料,而構成設備應答該符記封包並回覆資料封包 (data packet)或父握封包(handshake packet)的通訊形態。因 此’設備不能無視主機裝置的要求而不傳達任何資訊。 設備雖然具有降低最大消耗電流而以該狀態來運作的 10機能(低消耗電力模式等機能),但是無法於連接時將該已降 低消耗電流的資訊(本身具有低消耗電力模式機能的資訊) 通知主機裝置。又,在低消耗電存模式機能的具體例子上, 例如在主機裝置為以降低碟片旋轉數狀態來抑制馬達之消 耗電力的機能,在印表機或掃描器為放慢印刷速度或掃描 15 速度來抑制馬達之消耗電力的機能。 如上所述,是否能以USB之電纜來進行匯流排供電乃 在主機裴置單方面判斷。因此,會有一旦判斷不能由匯流 排供電’則即使是連接的設備降低消耗電流而形成能由匯 流排供電的情形下,亦不能將此情形通知主機裝置而不能 20使設備起動的問題。 又’此情形下欲使用新的設備時,就必要進行拔掉其 他設備之USB電纜之後插入新設備之USB電纜等電鐵的插 拔’或是將電源電纜連接於設備等繁雜的作業。 而且,以USB介面連接主機裝置與設備而藉著從主機 =*的®流排供電來使設備運作的通訊线揭示於特許文 等。於特許文獻1等亦未提iU用以避免上述問題的技術。 本發明之目的在於提供藉著從主機裝置的匯流排供電 來使複數設備運作的通訊系統中,能配合主機裝置之供電 能力而調整設備之消耗電流之主機裝置、設備及通訊系統 之控制方法。 特許文獻1 特開平2001 — 242965號公報 【發明内容】 發明概要 本發明之第1樣態提供主機裝置。該主機裝置,係藉著 用以進行串列通訊之複數匯流排而供電以使複數設備運作 者,該主機裝置具有用以連接前述複數設備之複數通訊 埠、連接前述複數通訊埠且藉著與前述複數設備之間的通 訊而從前述複數設備取得包含前述複數設備之消耗電流之 複數機器資訊的通訊電路、連接前述複數通訊埠而將電流 供給至前述複數設備的電流供給電路、連接前述通訊電路 與前述電流供給電路,而新連接前述複數通訊埠之設備的 消耗電流與已連接識別完成之設備的消耗電流的合計值超 過前述電流供給電路可供給之電流時,變更從前述電流供 給電路供給至前述複數設備之供給電流的控制電路。 本發明之第2樣態提供主機裝置。該主機裝置’係藉著 用以進行串列通訊之複數匯流排而供電以使複數設備運作 者,該主機裝置具有用以連接前述複數設備之複數通訊 1277888 埠、連接前述複數通訊埠且藉著與前述複數設備之間的通 訊而取得包含複數設備之消耗電流之複數機器資訊的通訊 電路、顯示前述複數機器資訊與用以使操作者選擇將連接 各通訊埠之複數設備作為使用狀態或未使用狀態之選擇資 5 訊的顯示裝置、連接前述通訊電路及顯示裝置,並依據前 述複數設備之消耗電流與依據前述選擇資訊之操作者的選 擇結果而對前述每一通訊埠控制各設備的供給電流的控制 電路。 本發明之第3樣態提供設備。該設備係藉由用以進行串 10 列通訊之匯流排而從主機裝置接受電源以運作者,該設備 具有内部電路、該内部電路包含藉由前述匯流排而用以與 前述主機裝置進行通訊之通訊電路,且依據該通訊電路所 發訊收訊之通訊資料而運作、控制電路,該控制電路連接 前述内部電路,且於前述設備連接前述主機裝置時,前述 15 内部電路之消耗電流超過前述主機裝置之可供給電流時, 降低前述消耗電流。 本發明之第4樣態提供通訊系統之控制方法。該通訊系 統之控制方法係藉由用以進行串列通訊之複數匯流排而從 主機裝置對複數設備供電而使前述複數設備運作的控制方 20 法,該控制方法係具有前述主機裝置從前述複數設備取得 包含各設備之消耗電流之機器資訊的步驟、新連接前述主 機裝置之設備的消耗電流與已連接識別完成之設備的消耗 電流的合計值超過前述前述主機裝置之可供給的電流時, 前述主機裝置對應前述可供給之電流而變更要供給各設備 1277888 之供給電流之配量的步驟。 本發明之第5樣態提供通訊系統之控制方法。該通訊系 統之控制方法係藉由用以進行串列通訊之匯流排而從主機 裝置對設備供電而使前述設備運作的控制方法,前述設備 5具有内部電路,該内部電路包含用以與前述主機裝置進行 通訊的通訊電路且依據以該通訊電路發訊收訊之通訊資料 而運作,該控制方法係包含有於以前述内部電路消耗之消 耗電流超過前述主機震置之可供給的電流時,前述設備配 合該可供給之電流而降低前述内部電路之消耗電流的步 10 驟0 本發明之第6樣態提供通訊系統之控制方法。該通訊系 、、充之控方法係藉由用以進行串列通訊之複數匯流排而從 主機裝置對複數設備供電而使前述複數設備運作的控制方 法,忒控制方法包含有前述主機裝置從前述複數設備取得 15 〇 a如述複數設備之消耗電流的機器資訊的步驟 、於設置 在則述主機褒置之顯示裝置顯示前述各設備之機器資訊與 用=使操作者選擇將該各設備作為使用狀態或未使用狀態 之k擇貝矾的步驟、依據前述機器資訊所包含之消耗電流 與依據别述選擇資訊之操作者的選擇結果而控制對前述各 2〇設備之供給電流的步驟。 、本發明之第7樣態提供主機裝置。該主機裝置,係藉著 、進行串列通訊之複數匯流排而供電以使複數設備運作 者y言敦主機、缺恶日 、衣置具有用以連接前述複數設備之複數通訊 璋、連接前述複數通訊埠且藉著與前述複數設備之間的通 1277888 訊而取得包含前述複數設備之消耗電流之複數機器資訊的 通訊電路、連接前述通訊電路,而將未使用狀態之設備設 成使用狀態而要增加的消耗電流量超過前述電流供給電路 之可供給的電流時,變更供給從前述電流供給電路連接之 5 複數設備之電流量的控制電路。 本發明之第8樣態提供通訊系統之控制方法。該通訊系 統之控制方法係藉由用以進行串列通訊之複數匯流排而從 主機裝置對複數設備供電而使前述複數設備運作的控制方 法,該控制方法包含有前述主機裝置從前述複數設備取得 10 包含前述複數設備之消耗電流的機器資訊的步驟、前述主 機裝置判斷是可能供給因應未使用狀態之設備的要求值之 電流的步驟、於前述不可能供給電流的情形下,變更供給 從前述電流供給電路連接之複數譟備之電流量的步驟。 圖式簡單說明 15 第1圖係相關本發明之第1實施樣態之主機裝置之概略 性的方塊電路圖。 第2圖表示用以連接識別新穎設備之處理的流程圖。 第3圖表示在主機裝置與各設備之間進行之協定的說 明圖。 20 第4圖表示在主機裝置與各設備之間進行之協定的說 明圖。 第5圖表示在主機裝置與各設備之間進行之協定的說 明圖。 第6圖表示在主機裝置與各設備之間進行之協定的說 11 1277888 明圖。 第7圖表示在主機裝置與各設備之間進行之協定的說 明圖。 第8圖表示在主機裝置與各設備之間進行之協定的說 5 明圖。 第9圖係相關本發明之第2實施樣態之設備之概略性的 方塊電路圖。 第10圖係開關單元的電路圖。 第11圖表示第2實施樣態之連接識別處理的流程圖。 10 第12圖係相關本發明之第3實施樣態之設備之概略性 的方塊電路圖。 第13圖表示第3實施樣態之連接識別處理的流程圖。 第14圖表示本發明之第4實施樣態之連接識別處理的 流程圖。 15 第15圖係相關本發明之第5實施樣態之主機裝置之概 略性的方塊電路圖。 第16圖表示對主機裝置之各設備之連接狀態的方塊電 路圖。 第17圖表示狀態視窗的說明圖。 20 第18圖表示對主機裝置之各設備之連接狀態的方塊電 路圖。 第19圖表示狀態視窗的說明圖。 第20圖表示狀態視窗的說明圖。 第21圖表示用以表示狀態視窗之處理的流程圖。 1277888 第22圖表示Hub之各設備之連接狀態的說明圖。 第23圖表示Hub之狀態視窗的說明圖。 第24圖表示Hub之各設備之連接狀態的說明圖。 第25圖表示Hub之狀態視窗的說明圖。 5 第26圖表示Hub之各設備之連接狀態的說明圖。 第27圖表示Hub之狀態視窗的說明圖。 第28圖表示開關單元之其他例的電路圖。 第29圖係相關本發明之第6實施樣態之主機裝置之概 略性的方塊電路圖。 10 第30圖表示第6實施樣態之設備控制處理的流程圖。 第31圖表示狀態視窗的說明圖。 第32圖表示狀態視窗的說明圖。 第33圖表示狀態視窗的說明圖。 第34圖係相關本發明之第7實施樣態之主機裝置之概 15 略性的方塊電路圖。 第35圖表示第7實施樣態之設備控制處理的流程圖。 第36圖表示功能執行旗標之狀態的說明圖。 第37圖表示本發明之第8實施樣態之設備控制處理的 流程圖。 20 第38圖表示第8實施樣態之設備控制處理的流程圖。 第39圖表示警告視窗的說明圖。 第40圖表示用以連接識別新穎設備之處理的流程圖。 第41圖係用以說明USB之資料傳送的說明圖。 【實施方式3 13 Ϊ277888 較佳實施例之詳細說明 以下依據圖式來說明將本發明予以具體化之第1實施 樣態。第1圖係第1實施樣態之主機裝置11之概略性的方塊 電路圖。 5 主機裝置(具體而言為個人電腦)11包含有MPU12、記 憶體13、主控制器14、電流供給電路15及電流監視電路16。 於主機裝置11藉由内部匯流排17而連接MPU12、記憶體 13、主控制器14及電流供給電路15而進行相互發收資料。 於主機裝置11設有構成USB介面之三個通訊埠P1〜P3,第1 10 〜第3設備21〜23藉由USB電纜C1而連接各通訊琿pi〜 P3。各設備21〜23係藉由USB電纟覽C1而由主機裝置π供電 並進行運作的匯流排電力裝置。 控制電路即MPU12依據儲存於記憶體13之程式而執行 各種處理並總括性地控制主機裝置11。儲存於記憶體13之 15 程式包含通訊程式,依據該通訊程式而控制主控制器14或 電流供給電路15。 主控制器14係以USB規格為準據的通訊電路,而控制 各設備21〜23之間的通訊。主控制器14藉由各通訊埠P1〜 P3及UCB電蜆Cl而連接第1〜第3設備21〜23。於主控制器 20 設有暫存器l4a,該暫存器14a可儲存從各設備21〜23取得 的機器資訊。具體而言,主機裝置11於各設備21〜23連接 於通訊埠P1〜P3時,進行用以連接識別之處理(在設備21〜 23之間協定),並將依此獲得之機器資訊(包含裝置名稱或最 大消耗電流的資訊)儲存於主控制器14的暫存器14a。 I277888 電流供給電路15藉由通訊埠pi〜p3及UCB電纜Cl而 將因應暫存器14a之機器資訊所包含之最大消耗電流的電 流供給至各設備21〜23。第1實施樣態係於連結電流供給電 路15各通訊埠pi〜P3之電流經過路徑的途中設置開關電路 5 25。 電流監視電路16檢測流向通訊埠pi〜P3的電流,而監 視以使藉由通訊埠P1〜P3不會向設備21〜23流通預定以上 的過電流(超過各設備之最大消耗電流的電流電流監視電 路16—旦檢測過電流則將開關電路25設為關閉(〇FF)而電 10性地隔斷電流供給電路15與通訊埠P1〜P3。藉此,例如設 備21故障而流通過電流時,可隔斷向該設備21的電流經過I277888 IX. Description of the Invention: [Technical Field of the Invention] Field of the Invention The present invention relates to a host device, a device, and a control method for a communication system, which are used for a host device and a plurality of devices for performing serial communication. A host device, a device, and a communication system control method for a communication system in which the devices are operated by the bus of the host device. In the field of the personal computer, the peripheral device (device) with the USB (UniVersal Serial Bus) interface based on the standard of the serial bus interface, that is, the standard of 2. 0〆1.1, is becoming the world standard. Become a popular and unstoppable situation. The USB specification stipulates the ability to supply up to 500 mA of current through a USB cable, and the state in which each device is powered by a cable can operate. That is, the communication system for data communication by the USB interface is powered by a USB-capable computer (hosting device) to the device to drive the device. In recent years, the popularity of devices that can communicate via the USB interface has enabled most devices to be connected to the host device via the USB interface. In this communication system, there are many devices connected to the host device, and once the devices perform excessive power consumption beyond the host device side (current that can be supplied), the system as a whole may cause an unstable state, 20 It is necessary to use techniques to avoid this situation. [Prior Art 3] A communication system in which a host device and a device are connected by a USB interface can be connected and disconnected to each device when the power is supplied to the host device, and if the device is connected to the 1277888, the identification device can be used instantaneously. device. That is, in the communication system, when a novel device is connected to the host device, a negotiation is performed between the host device and the device in order to identify the connected novel device. FIG. 40 shows the host device for identifying a new device. Flowchart of the processing to be performed by the connected device. The host device first issues a request command for requesting the device machine information to the device in step 1, and obtains the machine information sent by the device in response to the request command. Further, at the time when the supply command is issued, a current of 100 mA is supplied to the connected device by the USB cable, and the functional block for the agreement is activated. The machine information obtained in step 1 contains information on the necessary maximum current consumption for driving the device, and the host device shifts to step 2 to determine whether the maximum current consumption can be supplied. When the host device determines that the current 15 is available, the process proceeds to step 3, and the connected device is identified as a usable device, and the device starts power supply to the bus (by the bus to supply power). On the other hand, in the case where the host device determines in step 2 that the maximum current consumption of the device is a current that cannot be supplied, the connected device is not recognized as a usable device. 20 As a result, when the maximum current consumption of the connected device exceeds the supply capacity of the host device, the device is not recognized by the host device, and as a result, communication with the host device is impossible. Further, in the above communication system, the host device controls all devices connected to the network of the system. That is, each connected device performs an operation such as data transfer in response to an instruction from the host device 1277888, and cannot operate if it is not instructed by the host device. As shown in Fig. 41, the transmission using the USB interface is performed in a so-called transaction unit, and the transaction is composed of a plurality of packets. That is, the data is transmitted by the token packet sent from the host device, and the device responds to the token packet and replies with the data packet or the handshake packet. Therefore, the device cannot communicate any information without disregarding the requirements of the host device. Although the device has 10 functions (low power consumption mode, etc.) that operate at this state by reducing the maximum current consumption, it is impossible to notify the information that has reduced the current consumption (information with low power consumption mode function) when connecting. Host device. Further, in a specific example of the function of the low-power storage mode, for example, the host device is configured to reduce the power consumption of the motor by reducing the number of rotations of the disk, and the printing speed or scanning is slowed down in the printer or the scanner. Speed to suppress the power consumption of the motor. As mentioned above, whether or not the bus can be powered by the USB cable is judged unilaterally in the host device. Therefore, if it is judged that the power cannot be supplied from the bus bar, the case where the connected device can reduce the current consumption and the power can be supplied from the bus bar cannot be notified to the host device and the device cannot be started. In addition, when a new device is to be used in this case, it is necessary to unplug the USB cable of the other device after inserting the USB cable of the other device or to connect the power cable to the device. In addition, the host device and the device are connected by a USB interface, and the communication line for operating the device is disclosed in the franchise text or the like by supplying power from the host =*. The technique for avoiding the above problems is not mentioned in Patent Document 1 and the like. SUMMARY OF THE INVENTION An object of the present invention is to provide a host device, a device, and a communication system control method for adjusting a current consumption of a device in a communication system in which a plurality of devices are operated by power supply from a busbar of a host device, in accordance with a power supply capability of the host device. [Patent Document 1] JP-A-2001-242965 SUMMARY OF INVENTION Summary of the Invention A first aspect of the present invention provides a host device. The host device is powered by a plurality of bus bars for performing serial communication, and the host device has a plurality of communication ports for connecting the plurality of devices, connecting the plurality of communication ports, and a communication circuit for obtaining a plurality of device information including current consumption of the plurality of devices from the plurality of devices, and a current supply circuit for supplying current to the plurality of devices and connecting the communication circuit by connecting the plurality of devices to the plurality of devices; And the current supply circuit, when the total value of the current consumption of the device newly connected to the plurality of communication devices and the current consumption of the device connected to the identification device exceeds the current that can be supplied by the current supply circuit, the supply is changed from the current supply circuit to A control circuit for supplying current to the plurality of devices. A second aspect of the present invention provides a host device. The host device is powered by a plurality of busbars for serial communication, the host device having a plurality of communication devices connected to the plurality of devices, connecting the plurality of communications, and And a communication circuit for obtaining a plurality of machine information including current consumption of the plurality of devices, and displaying the plurality of machine information and the plurality of devices for selecting an operator to connect each communication device as a use state or not using the communication between the plurality of devices; a display device for selecting a state, connecting the communication circuit and the display device, and controlling a supply current of each device for each of the communication devices according to a current consumption of the plurality of devices and a result of selection by an operator according to the selection information. Control circuit. A third aspect of the invention provides an apparatus. The device is powered by a host device for performing serial 10-column communication. The device has an internal circuit, and the internal circuit includes a bus bar for communicating with the host device. a communication circuit, and operating and controlling the circuit according to the communication data sent by the communication circuit, the control circuit is connected to the internal circuit, and when the device is connected to the host device, the current consumption of the 15 internal circuit exceeds the host When the device can supply current, the aforementioned current consumption is reduced. A fourth aspect of the present invention provides a method of controlling a communication system. The control method of the communication system is a controller 20 method for operating the plurality of devices by powering a plurality of devices from a host device by performing a plurality of bus bars for serial communication, the control method having the foregoing host device from the foregoing plurality When the device obtains the device information including the current consumption of each device, and the total value of the current consumption of the device newly connected to the host device and the current consumption of the device connected to the identification device exceeds the current that can be supplied by the host device, the foregoing The host device changes the amount of the supply current to be supplied to each device 1277888 in accordance with the current that can be supplied. A fifth aspect of the present invention provides a method of controlling a communication system. The control method of the communication system is a control method for operating the device by powering the device from the host device by using a bus bar for serial communication, the device 5 having an internal circuit, the internal circuit including the host The communication circuit for communicating with the device operates according to the communication data sent by the communication circuit, and the control method includes when the current consumed by the internal circuit exceeds the current that can be supplied by the host, The device 10 reduces the current consumption of the internal circuit in conjunction with the supplyable current. The sixth aspect of the present invention provides a control method for the communication system. The communication system and the charging control method are control methods for operating the plurality of devices from a host device by using a plurality of bus bars for performing serial communication, and the control method includes the foregoing host device from the foregoing The plurality of devices obtain 15 〇a steps of the machine information of the current consumption of the plurality of devices, and display the device information and the use of the devices in the display device provided in the host device to enable the operator to select the devices as the use The step of selecting the state or the unused state, the step of controlling the supply current to each of the two devices according to the current consumption included in the device information and the result of the selection by the operator according to the selection information. A seventh aspect of the present invention provides a host device. The host device is powered by the plurality of busbars for serial communication, so that the plurality of device operators, the host computer, the day of absence, and the clothing have a plurality of communication ports for connecting the plurality of devices, and connecting the foregoing plurality And communicating, by means of the communication with the plurality of devices, the communication circuit including the plurality of machine information of the current consumption of the plurality of devices, connecting the communication circuit, and setting the device in an unused state to the use state When the increased current consumption exceeds the current that can be supplied by the current supply circuit, the control circuit that supplies the current amount of the plurality of devices connected from the current supply circuit is changed. The eighth aspect of the present invention provides a method of controlling a communication system. The control method of the communication system is a control method for operating the plurality of devices by powering a plurality of devices from a host device by using a plurality of bus bars for performing serial communication, the control method including the foregoing host device obtaining from the plurality of devices 10. The step of including the device information of the current consumption of the plurality of devices, the step of the host device determining that it is possible to supply a current corresponding to the required value of the device in an unused state, and changing the supply from the current in the case where the current cannot be supplied. The step of supplying the amount of current of the complex noise of the circuit connection. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a schematic block circuit diagram of a host device according to a first embodiment of the present invention. Figure 2 shows a flow diagram for the process of connecting to identify a novel device. Fig. 3 is a diagram showing an agreement between the host device and each device. 20 Fig. 4 is a diagram showing an agreement between the host device and each device. Fig. 5 is a diagram showing an agreement between the host device and each device. Figure 6 shows an outline of the agreement between the host device and each device. Fig. 7 is a diagram showing an agreement between the host device and each device. Figure 8 is a diagram showing the agreement between the host device and each device. Fig. 9 is a schematic block circuit diagram of an apparatus according to a second embodiment of the present invention. Figure 10 is a circuit diagram of the switching unit. Fig. 11 is a flow chart showing the connection identification processing of the second embodiment. 10 Fig. 12 is a schematic block circuit diagram of an apparatus relating to the third embodiment of the present invention. Fig. 13 is a flow chart showing the connection identification processing of the third embodiment. Fig. 14 is a flow chart showing the connection recognition processing of the fourth embodiment of the present invention. 15 Fig. 15 is a schematic block circuit diagram of a host device relating to a fifth embodiment of the present invention. Fig. 16 is a block circuit diagram showing the connection state of each device of the host device. Fig. 17 is an explanatory diagram showing a status window. 20 Fig. 18 is a block circuit diagram showing the connection state of each device of the host device. Fig. 19 is an explanatory diagram showing a status window. Fig. 20 is an explanatory diagram showing a status window. Figure 21 is a flow chart showing the processing of the status window. 1277888 Fig. 22 is an explanatory diagram showing the connection state of each device of the Hub. Figure 23 shows an explanatory diagram of the status window of the Hub. Fig. 24 is an explanatory diagram showing the connection state of each device of the Hub. Figure 25 shows an explanatory diagram of the status window of the Hub. 5 Figure 26 shows an explanatory diagram of the connection status of each device of the Hub. Figure 27 shows an explanatory diagram of the status window of the Hub. Fig. 28 is a circuit diagram showing another example of the switching unit. Figure 29 is a schematic block circuit diagram of a host device relating to a sixth embodiment of the present invention. 10 Fig. 30 is a flow chart showing the device control processing of the sixth embodiment. Fig. 31 is an explanatory diagram showing a status window. Fig. 32 is an explanatory view showing a status window. Figure 33 shows an explanatory diagram of the status window. Figure 34 is a block diagram showing the outline of a host device in accordance with a seventh embodiment of the present invention. Fig. 35 is a flow chart showing the device control processing of the seventh embodiment. Fig. 36 is an explanatory diagram showing the state of the function execution flag. Fig. 37 is a flow chart showing the device control processing of the eighth embodiment of the present invention. 20 Fig. 38 is a flow chart showing the device control processing of the eighth embodiment. Fig. 39 is an explanatory view showing a warning window. Figure 40 shows a flow diagram for the process of connecting to identify a novel device. Figure 41 is an explanatory diagram for explaining the data transfer of USB. [Embodiment 3 13 Ϊ 277888 DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a first embodiment in which the present invention is embodied will be described based on the drawings. Fig. 1 is a schematic block circuit diagram of the host device 11 of the first embodiment. The host device (specifically, the personal computer) 11 includes an MPU 12, a memory unit 13, a main controller 14, a current supply circuit 15, and a current monitoring circuit 16. The host device 11 is connected to the MPU 12, the memory 13, the main controller 14, and the current supply circuit 15 via the internal bus bar 17, and transmits and receives data to each other. The host device 11 is provided with three communication ports P1 to P3 constituting a USB interface, and the first to third devices 21 to 23 are connected to the respective communication ports pi to P3 via a USB cable C1. Each of the devices 21 to 23 is a busbar power device that is powered by the host device π and operated by the USB device C1. The control circuit, i.e., the MPU 12, performs various processes in accordance with the program stored in the memory 13 and collectively controls the host device 11. The program stored in the memory 13 contains a communication program for controlling the main controller 14 or the current supply circuit 15 in accordance with the communication program. The main controller 14 is a communication circuit based on the USB specification, and controls communication between the devices 21 to 23. The main controller 14 connects the first to third devices 21 to 23 by the respective communication ports P1 to P3 and UCB. The main controller 20 is provided with a register 14a which can store machine information acquired from the respective devices 21 to 23. Specifically, when each of the devices 21 to 23 is connected to the communication ports P1 to P3, the host device 11 performs a process for connection identification (which is agreed between the devices 21 to 23), and acquires the machine information obtained therefrom (including The device name or the maximum current consumption information is stored in the register 14a of the main controller 14. The I277888 current supply circuit 15 supplies currents corresponding to the maximum current consumption included in the machine information of the register 14a to the respective devices 21 to 23 by the communication ports pi to p3 and the UCB cable C1. In the first embodiment, the switch circuit 525 is provided in the middle of the current passing path connecting the respective communication ports pi to P3 of the current supply circuit 15. The current monitoring circuit 16 detects the current flowing to the communication ports pi to P3, and monitors so that the communication currents P1 to P3 do not flow the predetermined overcurrent to the devices 21 to 23 (current current monitoring exceeding the maximum current consumption of each device) When the circuit 16 detects an overcurrent, the switch circuit 25 is turned off (〇FF) to electrically block the current supply circuit 15 and the communication ports P1 to P3. Thus, for example, when the device 21 fails and flows current, The current flowing to the device 21 is blocked

路徑而避免繼續流通過電流。其結果可防止由主機裝置U 與各設備22、23所構成之通訊系統之運作的不穩定。 其次,依據第2圖之流程圖來說明主機裝置η2ΜΡυΐ2 15 所執行之通訊處理中,用以識別新穎設備之連接的處理。 又,第2圖之處理於設備21〜23之其中任何者連接於主機裝 置時開始。在此以第1及第2設備21、22連接識別主機裝 置的狀態下’第3設備23新連接的情形為一例來說明。 一旦設備23連接於主機裝置11之通訊埠p3,MPU12首 20先在步驟100匯流排重置後,連接完成接著轉移至步驟110 而進行包含設備21、22之各設備21〜23的位址設定。位址 設定結束後,MPU12轉移至步驟120而取得設備23的機器資 訊。具體而言,MPU12使主控制器14運作,對新連接之設 備23發出要求指令(Get Descriptor),將從設備23發出之應答 15 1277888 的機器資訊儲存於主控制器14之暫存器14a。機器資訊包含 機器名稱、製造者、最大消耗電流等資訊。 MPU12於步驟13〇從暫存器14a讀出連接完成設備21、 22與本次連接的設備23的機器資訊,並依據該機器資訊而 5判疋疋否可供給設備23之最大消耗電流。在此說明電流供 給電路15可供給的電流係作為程式資料而預先設定於記憶 體13而比較該可供給的電流與設備23之最大消耗電流。 又,使用泛用之電源1C作為電流供給電路15的情形下,亦 可设定可測定電流供給電路15之可供給之電流的電流計測 10電路,而比較以主機裝置11之初始化處理等使用電流測定 電路而實測之電流供給電路15的供給電流與設備23之最大 消耗電流。 於步驟23判定為可供給的情形下,MPU12轉移至步驟 140而使主控制器14運作,對設備23發出通知連接識別之主 15旨的指令(Set Configuration)後,結束本處理。 另一方面,於步驟130判定不能供給的情形下,mpu12 轉移至步驟150而變更供給電流的配量。即,MPU12在電流 供給電路15可供給電流的範圍内變更包含對於連接完成之 設備21、22與新穎之設備23之各設備21〜23之供給電流的 20 配量。但是,在步驟150僅以計晝供給電流的變更配量,而 實際對各設備之供給電流為維持現狀的電流。 接著於步驟160, MPU12使主控制器14運作而將該變更 後之電流值發送至成為供給電流之變更對象的設備。之 後,MPU12於步驟170確認設備是否接受該電流值(是否可 16 1277888 運作)。 具體而言,MPU12為了通知變更後的電流值,乃從主 控制器14發出消耗電流之設定指令(Set Descriptor)。接收到 設定指令的設備以設定指令所指定之電流值為可對應之電 5 流值的話,答覆ACK封包’若是不可能的電流值的話,答 覆STALL封包。MPU12依據從設備答覆而來的ACK封包或 STALL封包而判定設備是否可運作。 當變更對象之設備為複數的情形下,在步驟160對該等 全部設備發出消耗電流的設定指令,於步驟170判斷是否已 10 獲得從全部設備來的認同(ACK封包)。 於步驟170獲得設備之認同的情形下,MPU12轉移至步 驟180而變更從電流供給電路15供給至設備21〜23的電流 值。於步驟140對設備23發出通知連接識別之要旨的指令 (Set Configuration)後結束本處理。 15 於步驟170不能獲得設備之認同的情形下,MPU12轉移 至步驟190而判定是否能再變更對各設備之供給電流的配 量(再調整),當判定可再變更的情形下回到步驟150而再度 執行步驟150以後的處理。另一方面,當判定無再變更之餘 地的情形下轉移至步驟200而不進行識別(Set c〇nfigurad〇n) 20 新穎連接機器即設備23而結束本處理。 其次於新穎設備之識別處理方面,依據第3圖〜第8圖 來說明主機裝置11與各設備21〜23之間所進行之協定的具 體例。又,於第1實施樣態主機裝置可供給各設備21〜23之 最大供給電流為1A。又,各設備21〜23之最大消耗電流於 17 1277888 第1設備21為500mA,第2設備22為300mA,第3設備23為 300mA。而且第1設備22具有將最大消耗電流從500mA降低 至300mA的機能,第3設備23具有將最大消耗電流從300mA 降低至250mA的機能。又,第2設備係不具有降低最大消耗 5 電流的機能,而不能將最大消耗電流從300mA變更者。 首先如第3圖所示,第1及第2設備21、22連接識別主機 裝置11並為依據匯流排供電而運作的狀態,第3設備23藉插 入(plug-in)新連接。如此一來,如第4圖所示主機裝置11對 第3設備23發出要求機器資訊的指令(Set Descriptor)。第3 1〇 設備23應答該要求指令而告知包含本身最大消耗電流之參 數(]^1&义?0\¥61>二30〇111八)的機器資訊。 主機裝置11判定300mA之最大消耗電流是否為本身可 供給的規格。此乃因主機裝置11對第1及第2設備21、22已 供給合計為800mA,剩餘之可供給的能力(規格)為 15 200mA(= 1000—500 —300),故判斷不能對第3設備23供給 隶大消耗電流(=300mA)。 習知技術上超過主機裝置11之可供給之規格的情形下 無法識別新連接的第3設備23。相對如此,第1實施樣態要 求各設備21〜23降低規格以不超過可供給的電流(=1A),而 20 確認各設備21〜23以降低規格之消耗電流是否能運作。各 設備21〜23可動作時,變更對該各設備21〜23之供給電流 的配量而識別新連接的第3設備23。 從主機裝置11對各設備21〜23發出之降低規格的要求 指令(Set Descriptor)乃使用規格描述符(Configuration 18 1277888The path avoids the flow of current through. As a result, the operation of the communication system constituted by the host device U and the respective devices 22, 23 can be prevented from being unstable. Next, the processing for identifying the connection of the novel device in the communication processing performed by the host device η2ΜΡυΐ2 15 will be described in accordance with the flowchart of Fig. 2. Further, the processing of Fig. 2 starts when any of the devices 21 to 23 is connected to the host device. Here, a case where the third device 23 is newly connected in a state in which the first and second devices 21 and 22 are connected to identify the host device will be described as an example. Once the device 23 is connected to the communication port p3 of the host device 11, the MPU 12 first 20 first resets the bus bar in step 100, the connection is completed, and then the process proceeds to step 110 to perform address setting of each device 21 to 23 including the devices 21 and 22. . After the address setting is completed, the MPU 12 proceeds to step 120 to acquire the machine information of the device 23. Specifically, the MPU 12 causes the main controller 14 to operate, issues a request command (Get Descriptor) to the newly connected device 23, and stores the machine information of the response 15 1277888 sent from the device 23 in the register 14a of the main controller 14. Machine information includes information such as machine name, manufacturer, and maximum current consumption. The MPU 12 reads the machine information of the connection completion devices 21, 22 and the device 23 connected this time from the register 14a in step 13, and determines whether the maximum current consumption of the device 23 can be supplied based on the machine information. Here, the current that can be supplied from the current supply circuit 15 is set as the program data in advance in the memory 13 to compare the current that can be supplied with the maximum current consumption of the device 23. Further, when the general-purpose power source 1C is used as the current supply circuit 15, a current measurement circuit 10 that can measure the current that can be supplied from the current supply circuit 15 can be set, and the current used in the initialization process of the host device 11 can be compared. The supply current of the current supply circuit 15 and the maximum current consumption of the device 23 are measured by the measurement circuit. When it is determined in step 23 that the supply is available, the MPU 12 proceeds to step 140 to operate the main controller 14, and issues a command (Set Configuration) to the device 23 notifying the connection identification, and then ends the present process. On the other hand, if it is determined in step 130 that the supply is impossible, the mpu 12 shifts to step 150 to change the amount of the supply current. That is, the MPU 12 changes the 20-quantity including the supply current to the devices 21 to 22 of the connected devices 21 and 22 and the novel device 23 within the range in which the current supply circuit 15 can supply the current. However, in step 150, only the change amount of the supply current is calculated, and the actual supply current to each device is the current that maintains the current state. Next, in step 160, the MPU 12 operates the main controller 14 to transmit the changed current value to the device to be changed in the supply current. Thereafter, the MPU 12 confirms in step 170 whether the device accepts the current value (whether or not 16 1277888 operates). Specifically, in order to notify the changed current value, the MPU 12 issues a setting command (Set Descriptor) for consuming current from the main controller 14. If the device receiving the setting command sets the current value specified by the setting command to the corresponding 5 stream value, the ACK packet is replied, and if it is an impossible current value, the STALL packet is answered. The MPU 12 determines whether the device is operational based on the ACK packet or the STALL packet from the device reply. When the device to be changed is in the plural, the setting command of the current consumption is issued to all the devices in step 160, and it is judged in step 170 whether or not the identity (ACK packet) from all the devices has been obtained. In the case where the device is approved in step 170, the MPU 12 shifts to step 180 to change the current value supplied from the current supply circuit 15 to the devices 21 to 23. At step 140, the device 23 issues a command (Set Configuration) for notifying the connection identification, and the process ends. 15 If the device does not obtain the approval of the device in step 170, the MPU 12 proceeds to step 190 to determine whether the amount of supply current to each device can be changed (re-adjustment), and returns to step 150 when it is determined that the device can be changed again. The processing after step 150 is performed again. On the other hand, when it is determined that there is no room for further change, the process proceeds to step 200 without recognizing (set c〇nfigurad〇n) 20 the novel connection machine, that is, the device 23, and the present process is ended. Next, in the case of the recognition processing of the novel device, a specific example of the agreement between the host device 11 and each of the devices 21 to 23 will be described based on Figs. 3 to 8 . Further, in the first embodiment, the maximum supply current supplied to each of the devices 21 to 23 by the host device is 1A. Further, the maximum current consumption of each of the devices 21 to 23 is 17 mA, the first device 21 is 500 mA, the second device 22 is 300 mA, and the third device 23 is 300 mA. Further, the first device 22 has a function of reducing the maximum current consumption from 500 mA to 300 mA, and the third device 23 has a function of reducing the maximum current consumption from 300 mA to 250 mA. Further, the second device does not have the function of reducing the maximum current consumption by 5, and cannot change the maximum current consumption from 300 mA. First, as shown in Fig. 3, the first and second devices 21, 22 are connected to identify the host device 11 and operate in accordance with the power supply of the bus bar, and the third device 23 plug-ins the new connection. As a result, as shown in Fig. 4, the host device 11 issues a command (Set Descriptor) requesting machine information to the third device 23. The device 23 responds to the request command and informs the machine information including the parameter (]^1&?0\¥61> 2 30〇111 8) of its own maximum current consumption. The host device 11 determines whether the maximum current consumption of 300 mA is a specification that can be supplied by itself. This is because the host device 11 has supplied a total of 800 mA to the first and second devices 21 and 22, and the remaining usable capability (specification) is 15 200 mA (= 1000 - 500 - 300), so that it is judged that the third device cannot be used. 23 supply large current consumption (= 300mA). The newly connected third device 23 cannot be recognized in the case where the specifications of the host device 11 are technically exceeded. In contrast, in the first embodiment, each of the devices 21 to 23 is required to lower the specification so as not to exceed the supplyable current (=1A), and 20 to confirm whether each of the devices 21 to 23 can reduce the consumption current of the specification. When each of the devices 21 to 23 is operable, the amount of supply current to each of the devices 21 to 23 is changed to identify the newly connected third device 23. The specification specification (Set Descriptor) issued by the host device 11 for each device 21 to 23 is a specification descriptor (Configuration 18 1277888).

Descriptor)之最大消耗電流的範脅(Max Power Field)。主機 裝置11於最大消耗電流之範疇中指定(assign)並發出目標規 格之電流值。又,於USB規格中之設備的最大消耗電流作 為規格描述符之第8參數而規定著。 5 於第1實施樣態,各設備21〜23之最大消耗電流合計為 1100mA,於第1及第2設備21、22再加上新連接第3設備23 的情形下,相對於主機裝置11之可供給規格(1000mA), 100mA之能力為不足。因此,主機裝置11開始調整用以對 各設備21〜23之供給電流的配量的協定。 10 主機裝置11從對各設備21〜23之供給電流降低例如相 當於不足量之一半之50mA的狀態而試著確保100mA的不 足量。 具體而言,主機裝置如第5圖所示對設備22確認是否能 以將最大消耗電流降低規格50mA之250mA來運作。亦即, 15 主機裝置11於指令(Set Descriptor)之最大消耗電流範嘴中 指定250mA資料而發送至第2設備22。但是,由於第2設備 22若要運作則必需3〇〇mA之供給電流,因此以STALL封包 來應答不能對應之主旨。 其次,主機裝置11如第6圖所示對第1設備21探詢是否 20 能以最大消耗電流降低規格50mA的450mA來運作。此時, 主機裝置11於指令(Set Descriptor)之最大消耗電流範轉中 指定450mA資料而發送至第1設備21。由於第1設備21降低 供給電流至300mA亦可對應,因此以ACK封包來應答可對 應的主旨而認同以450mA之供給電流來運作。 19 1277888 其次,主機裝置11如第7圖所示對第3設備23探詢是否 能以最大消耗電流降低規格50mA的250mA來運作。此時, 主機裝置11於指令(Set Descriptor)之最大消耗電流範疇中 指定250mA資料而發送至第3設備23。由於第2設備23降低 5供給電流至250mA亦可對應,因此以ACK封包來應答可對 應的主旨而認同以250mA之供給電流來運作。 如第8圖所示,主機裝置11降低對第1設備22之供給電 流至450mA,且將供給至第3設備23之供給電流設為 250mA。藉此,第1設備21切換運作至低消耗電流模式,而 10 第3設備23開始以低消耗電流模式運作。 如上所述,主機裝置11能連接識別第3設備23而與全部 的設備21〜23構成可通訊狀態。 又,上述内容說明了變更對於連接識別完成之設備 21、22的供給電流而可連接識別新穎設備23的情形。相對 15 於此,即使是變更對設備21、22之供給電流,若是不能確 保新連接之設備23能運作之供給電流的情形下,則與習知 同樣也不能識別設備23。此情形下對第1及第2設備21、22 原原本本地供給設備23之連接前的供給電流而維持主機裝 置11與各設備21、22之間的通訊。 2〇 又,亦可適切地變更以第5圖〜第8圖來說明之對各設 備21〜23的協定順序。亦即,上述具體例係說明對於連接 完成之設備22探詢供給電流的變更,然而首先對新穎的設 備2 3探詢降低供給電流而不對設備2 3調整供給電流的情形 下’亦可構成對連接完成之設備21、22探詢降低供給電流。 20 1277888 當然,主機裝置11算出之降低電流值50mA畢竟為一 例,乃可依據任意的算出結果而進行協定。例如於第6圖 中,可對第1設備21確認是否能以降低最大消耗電流規格 100mA之400mA來運作。此情形下,由於第1設備21即使是 5 供給電流降低至300mA亦能對應,因此以ACK封包來應答 可對應的主旨,而認同以400mA供給電流的運作。由於能 藉降低對第1設備21供給電流而確保對新穎的設備2 3之 300mA的供給電流,因此不需要用以降低新穎之設備23的 供給電流的協定(參照第7圖)。 10 本發明之第1實施樣態之主機裝置11具有以下的優點。 (1) 主機裝置11於連接識別完成之設備21、22與新穎設 備23之消耗電流超過電流供給電路15之可供給能力時,配 合其能力而變更對各設備21〜23之供給電流的配量。第1實 施樣態於主機裝置11新穎連接之設備23更加上變更對連接 15 識別完成之設備的供給電流。藉供給電流的變更配量而能 確保用以使新穎設備23運作的供給電流,與習知技術比較 乃能增加主機裝置11所連接識別之設備數。 (2) 利用以USB規格為準據之指令(Set Descriptor)而可 供給的電流通知設備21〜23,並藉從該設備21〜23接收 20 ACK封包與STALL封包之其中任何者的狀態而判定該設備 是否能運作。如此一來,利用已有的指令而進行用以變更 對設備21〜23之供給電流之協定的情形下,能容易製成要 執行的程式而有利於實用上。 (3) 主機裝置11具有電流監視電路16,該電流監視電路 21 1277888 檢測流通於通訊埠P1〜P3的電流並藉由通訊埠P1〜P3而監 視使各設備21〜23不會流通預定值以上的過電流。電流監 視電路16檢測出過電流時,藉停止對設備的供給電流而能 避免造成本體通訊系統的不良影響。 5 其次說明將本發明更具體化的第2實施樣態。第9圖係 第2實施樣態之設備31之概略性的方塊電路圖。 設備31例如係將光碟32作為記錄媒體的記錄再生裝 置,包含有MPU33、記憶體34、USB控制器35、電力控制 器36、設備控制器37、碟片旋轉用馬達38。MPU33藉由内 10 部匯流排39而連接記憶體34、USB控制器35、電力控制器 36、設備控制器37,並相互進行資料的發收。於設備31設 有USB通訊埠P0,藉由已插入該通訊埠p〇之USB電纜C1而 連接主機裝置41。第2實施樣態之設備31係依據從主機裝置 41來的匯流排供電而運作的電力設備。 15 控制電路即MPU33依據儲存於記憶體34之程式而執行 各種處理並總括性地控制設備31。又,儲存於記憶體34之 私式包含用以控制USB控制器35及電力控制器36的通訊程 式’或用以控制設備控制器37的資料處理程式。 通訊埠P0藉由開關單元42而連接USB控制器35,從主 20機裝置41來的通訊資料透過信號線D+、D—及開關單元42 而傳導至USB控制器35。如第1〇圖所示,開關單元42包含 有二個開關電路42a、42b。各開關電路42a、42b依據從 MPU33來的控制信號Sa、Sb而控制,以連接或隔斷該連結 通訊埠P0與USB控制器35之信號線D+、D—。依據從 22 1277888 MPU33來的控制信號Sa、Sb使開關單元42(各開關電路 42a、42b)關閉(OFF)的狀態,而使設備31切離出主機裝置 41 〇 USB控制器35係以USB規格為準據的通訊電路,控制 5 與主機裝置41之間的通訊。具體而言,xjsb控制器35將從 主機裝置41接收之封包所包含之資料(寫入資料)傳送至設 備控制器37。又,USB控制器35依據從設備控制器37來的 傳送資料(讀出資料)而產生發送封包並發送至主機裝置41。 設備控制器37驅動馬達38而使光碟32旋轉,從光碟32 10 讀出資料或將資料寫入光碟32。 電力控制器36連接通訊埠P0(稱為VBUS的電蜆端 子),藉由USB電纜C1及通訊埠P0而從主機裝置41供給電 流。電力控制器36管理供給至包含MPU33、記憶體34、USB 控制器35、設備控制器37之内部電路的供給電流。 15 具體而言,電力控制器36包含有儲存設備31之消耗電 流值等資訊的暫存器36a、隔斷對内部電路之電流經過路徑 的開關電路36b、控制對内部電路之供給電流的控制部 36c。控制部36c依據暫存器36a之消耗電流值而調整供給至 MPU33、記憶體34、USB控制器35及設備控制器37的電流。 2〇 又,開關電路36b依據從MPU33來的控制信號而開啟(ON) 或關閉(OFF)。開關電路36b通常開啟,惟以主機裝置41不 能連接識別設備31的情形下,開關電路36b以關閉的狀態而 切斷設備31的電源。 其次依據第11圖之流程圖來說明設備31之MPU33所執 23 1277888 行之通訊處理之中用以使主機裝置41連接識別的處理。第 11圖之處理於设備31連接主機裝置41時開始進行。 首先’MPU33於步驟210直至接收其要求從主機裝置41 來的機器資訊的要求指令(Get Descriptor)為止待機。 5 MPU33於接收到要求指令時轉移至步驟220,而從USB控制 器35將包含設備31之機器資訊的發送封包發送至主機裝置 4卜 之後’ MPU33轉移至步驟230而判斷是否已接收從主機 裝置41來的要求指令(Set Configuration),於接收到要求指 10令時轉移至步驟240而進行設備31之起動處理後結束本處 理。主機裝置41等待在步驟220發送之機器資訊所包含之最 大消耗電流之供給能力的情形下,該主機裝置41發出起動 要求指令而藉由USB電纜C1而對設備31供給該最大消耗電 流。因此,於步驟240進行設備31之起動處理後,能以所要 15 求之最大消耗電流進行資料寫入或讀出動作。 另一方面,主機裝置41不具有供給設備31之最大消耗 電流之能力的情形下,該主機裝置41不發出起動要求指 令。此情形下,習知設備不為主機裝置41所連接識別而無 法獲付運作所必要的供給電流。相對於此,第2實施樣態於 20主機裝置41之電流供給能力不足的情形下,降低本身的消 耗電流而進行用以連接主機裝置41的處理(步驟25〇以後的 處理)。 具體而言於步驟250, MPU33判定是否從發送機器資訊 時刻起已經過預定時間,尚未經過預定時間的情形下回到 24 1277888 步驟220。MPU33於經過預定時間時,判斷主機裝置41無法 供給本身所要求之最大消耗電流而轉移至步驟260。MPU33 判定是否可變更最大消耗電流。於步驟260,MPU33判定不 可能變更消耗電流值的情形下轉移至步驟270,並將電力控 5制器36之開關電路36設成關閉的狀態並切斷設備31的電源 後結束本處理。 另一方面,於步驟260判定為可變更消耗電流的情形 下,MPU33轉移至步驟280而變更已記憶在電力控制器36 之暫存器36a之設備31的機器資訊。於此,機器資訊所包含 10 之消耗電流值被減低至預定值,且設備控制器37之動作模 式被設定在因應該減低之電流值的動作模式(低消耗電流 模式)。 之後,MPU33於步驟290僅在預定時間關閉開關單元42 之各開關電路42a、42b之後開啟。依據開關單元421之切換 15 動作而從主機裝置41暫時性地將設備31設成切斷狀態後回 到步驟210。 一旦依據步驟290之處理而使設備31暫時性地形成切 斷狀態,則主機裝置41判斷設備31已再連接。此時主機f 置41發出要求機器資訊的要求指令。在步驟210已接收該要 20 求指令之設備31轉移至步驟220而再度發送機器資訊。 /八 此,在步驟280再發送已減低成小電流值之消耗電流值。 主機裝置41於不能供給經降低之消耗電流的情形下不 .會發出起動要求指令,因此再度執行步驟250以後的處^里 相對於此,主機裝置41於能供給經降低之消耗電流的情妒 25 1277888 下會發出起動要求指令。爰此,MPU33從步驟23〇轉移至步 驟240而進行設備31之起動處理後結束本處理。藉設備31之 起動處理而能使設備31以經降低丨之消耗電流進行資料寫 入或讀出動作。 5 本發明之第2實施樣態之設備31具有以下的優點· (1)主機裝置41於連接設備31而當設備31之内部電路之 消耗電流超過主機裝置41之可供給能力的情形下,主機裝 置41不會發出要求起動設備31的要求指令,因此藉MpU33 判斷該主曰而降低設備31的消耗電流。主機裝置41可供給 10經降低之消耗電流的情形下,藉該主機裝置41而識別設備 31並此依據從主機裝置41來的匯流排供電而使設備31運 作0 (2) 於步驟31 ’設置可暫時性地切斷通訊埠ρ〇(υι§Β電纜^ C1)與USB控制器35之連接的開關單元42。又,於電力控制 15器36设置用以記憶設備31之消耗電流的暫存器。主機裝 置41之可供給能力不足的情形下,降低暫存器36a之設備31 的消耗電流,之後開關單元42僅預定時間關閉。藉開關單 元42之切換動作而使斷通訊埠P0與USB控制器35之連接暫 時性地切斷,而能識別設備再度連接主機裝置41的情形。 2〇主機裝置41發出要求設備31之機器資訊的指令,而設備31 應答該指令並發送變更後的消耗電流。如此—來,可實現 非以主機裝置41的指示而係藉設備31側的動作而變更設備 31的消耗電流。 (3) MPU33判定不能降低設備31之内部電路之消耗電 26 1277888 流時(不識別設備31時),藉電存控制器36之開關電路361)而 隔斷没備31的電源。如此一來,能防止在主機裝置41所不 能識別之設備31之浪費的消耗電流。 以下依據圖式來說明使本發明具體化的第3實施樣 5悲。第12圖係相關本發明之第3實施樣態之設備43之概略性 的方塊電路圖。於設備43對於與第2實施樣態之設備31相等 的構件賦予相同的元件標號。以下以與第2實施樣態之不同 點為中心來說明。 即,第3實施樣態之設備43與第2實施樣態不同於設備 1〇控制器44控制揚聲器45。又,設備43設置設定單元即位準 開關(level switch)46,電力控制器36之暫存器36&可記憶依 據位準開關4 6之操作量(設定值)而算出的消耗電流值。設備 43藉由USB電纜C1而連接主機裝置41,該主機裝置41對設 備43要求機器資訊時,設備43對主機裝置41要求因應位準 15開關46之設定值的消耗電流值。 以下依據第13圖之流程圖來說明設備43之MPU33用以 連接識別而執行的處理。第13圖之處理於設備43連接主機 旋置41時開始。 首先於步驟310, MPU33計算因應位準開關46之設定值 〇的消耗電流值,並將該計算值作為機器資訊的消耗電流值 而圯憶在電力控制器36的暫存器36a。之後MPU33轉移至步 驟320而待機至接收從主機裝置41來之機器資訊的要求指 令(Get Descriptor)。MPU33於接收到要求指令時轉移至步 騍330而將設備43之機器資訊發送至主機裝置41。 27 1277888 至設=3^41能將其機器#訊所包含之消耗電流值供給 Μ心:Γ下,從主機裝置41發出起動要求指令。 後C40轉移至步驟350而進行設備43之起動處理 處理。藉此,能以要求主機裝置41之_流而 達丨攸揚聲器45輸出聲音。 主,相對於此,主機裝置41不能供给設備43之消耗電流的 情形下,不會從主機裝置41發出起動要求指令。此情形下, MPU33從發送機||資訊之時麻、_預料間,反覆執行 步驟340與步驟360的處理,經過預定時間後轉移至步驟37。 10 MPU33於步驟370判定位準開關46操作而設定之值是 否已變更。位準開關46之設定值已變更的情形下,Mpu33 轉移至步驟3 8 0而再計算因應位準開關4 6之設定值的消耗 電流值而記憶於電力控制器36的暫存器36a。 之後,MPU33於步驟390僅預定時間使開關單元42關閉 15後開啟,藉此使設備43從主機裝置41暫時性地切斷之後回 到步驟320。 一旦以步驟390之處理而使設備43呈暫時性地切斷,則 主機裝置41判斷設備41被再連接。此時’主機裝置41發出 要求機器資訊的要求指令。在步驟320接收該要求指令之設 20 備43轉移至步驟320而再次發送機器資訊。於此再發送因應 已變更之位準開關46之設定值的消耗電流值。 由於主機裝置41在不能供給變更後之消耗電流值的情 形下不會發出起動要求指令’因此再度執行步驟360以後的 處理。相對於此,主機裝置41在能供給變更後之消耗電流 1277888 值的情形下會發出起動要求指令。因此,MPU33從步驟340 轉移至步驟350並進行起動處理後結束本處理。藉步驟43之 起動處理而能使設備43達到以經變更之消耗電流進行從揚 聲器的輸出聲音。 5 本發明之第3實施樣態之設備43具有以下的優點。 (1)設備43之消耗電流超過主機裝置41之可供給能力, 而主機裝置41不識別設備43時,一旦變更位準開關46之設 定值,則計算因應該設定值之消耗電流並儲存在電力控制 器36的暫存器。之後藉開關單元42之切換動作而使設備43 10 被識別已再連接主機裝置41。此時設備43應答從主機裝置 41發出之要求指令而能將變更後之消耗電流通知主機裝置 41。主機裝置41不能供給該變更後之消耗電流時,能藉主 機裝置41識別設備43而從主機裝置41來的匯流排供電使設 備43運作。 15 (2)通知主機裝置41其因應位準開關46之設定值的消耗 電流值而從主機裝置41供給該消耗電流的情形下,能以因 應位準開關46之設定值之適切的供給電流使設備43運作。 以下說明將本發明具體化的第4實施樣態。 於第4實施樣態,設備31之構成與第9圖所示之第2實施 2〇 樣態相同。又,第4實施樣態之主機裝置41於連接識別之際 判斷不能供給設備31的消耗電流時,通知設備31可供給的 電流。設備31以配合主機裝置41之供給電流而降低消耗電 流的狀態使主機裝置41識別設備31 ° 第14圖係用以說明第4實施樣態之設備31之連接識別 29 1277888 處理的流程圖。又,於第14圖中步驟410〜440、470〜490 係與第2實施樣悲之步驟210〜240、270〜290相同的處理, 步驟450、460之處理與第2實施樣態不同。以下將以與第2 實施樣態之不同點為中心來說明。 5 即,在步驟420所發送之設備31的消耗電流值超過主機 裝置41之能力(可供給之電流值)的情形下,主機裝置41不發 出要求設備31之起動的要求指令而係通知設備31可供給的 電流量。此情形下,設備31之MPU33於步驟450接收主機裝 置41之可供給的電流值。轉移至步驟460,MPU33判定設備 10 31是否能以主機裝置41之可供給電流值來運作。 在步驟460判定為不能運作的情形下,MPU33轉移至步 驟470而以將電力控制器36之開關電路36設成關閉的狀態 切斷設備31的電流後結束本處理。 另一方面’於步驟460判定為可運作的情形下,MPU33 15 轉移至步驟480而變更記憶在電力控制器36之暫存器36a之 設備31的機器資訊。於此將機器資訊所包含之消耗電流值 變更成相同於主機裝置41之可供給電流值的值。又,Mpu33 將設備控制器37之運作模式設定成因應其變更後之電流值 的消耗電流模式。 20 之後,MPU33於步驟490僅在預定時間關閉開關單元42 之後開啟,藉此從主機裝置41暫時性地將設備31設成切斷 狀態後回到步驟410。 一旦依據步驟490之處理而使設備31暫時性地形成切 斷狀態,則主機裝置41判斷設備31已再連接,因此發出要 30 1277888 求機器資訊的要求指令。一旦在步驟410接收該要求指令則 MPU33轉移至步驟420而再度發送在步驟48〇變更的機器資 訊。由於可發送主機裝置41之可供給電流值,故主機裝置 41判定能供給設備31的消耗電流而發出起動要求指令。因 5此,MPU33轉移至步驟44而進行設備31的起動處理後結束 本處理。依據設備31之起動處理,設備31以已降低的消耗 電流(主機裝置41可供給的電流)可能進行寫入資料或讀出 資料的動作。 本發明之第4實施樣態之設備31具有以下的優點. 1〇 (1)設備31之消耗電流值超過主機裝置41的可供給能力 時,配合主機裝置41之能力而能降低設備31的消耗電流。 如此一來,能以主機裝置41之可供給電流使主機裝置31的 性能(寫入或讀出速度)發輝最大消耗電流大限度。 (2)依據圖式來說明將本發明具體化之第5實施樣態。第 15 15圖係第5實施樣態之主機裝置51之概略性的方塊圖。 主機裝置(具體為個人電腦)51包含有MPU52、記憶體 53、主控制器54、電流供給電路55及顯示器56。於主機裝 置51藉由内部匯流排57而連接MPU52、記憶體53、主控制 器54、電流供給電路55及顯示器56並進行相互發收資料。 20又,主機裝置51設置用以連接USB設備之第1〜第10通訊埠 P1〜P10 〇 控制電路即MPU52依據儲存於記憶體53之程式而執行 各種處理並總括性地控制主機裝置51。儲存於記憶體53之 程式包含有控制主控制器54或電流供給電路55的通訊程 31 1277888 式、及以GUI(GmphiC User lmerface)形式將連接於各通訊 璋P1〜P1〇之各設備的機器資訊顯示於顯示器56的顯示程 式。 主控制H54係以USB規格為準據的通訊電路,而控制 5連接於各通訊埠1"1〜1"10之設備之間的通訊。主控制器54 設有暫存器54a,該暫存器5如可儲存連接於各通訊璋ρι〜 P10之设備的機器資訊。具體而言,主機裝置51於設備連接 於通訊埠P1〜P10時,用以識別該連接協定而在設備之間進 行協定,並將依此獲得之機器資訊儲存於暫存器54a。 1〇 電流供給電路55將暫存器54a之機器資訊所包含之最 大消耗電流供給至連接於通訊埠的設備。又,於連結電流 供給電路55各通訊埠pi〜P1〇之電流經過路徑的途中設置 限制器58。限制器58係包含開關電路的電流監視電路,若 是流動預先設定之限定電流以上的過電流時,關閉開關電 15 路而隔斷電流經過路徑。 MPU52藉執行應用程式(顯示用程式)而讀出已健存於 主控制器54之暫存器54a的機器資訊,並將狀態視窗顯示於 顯示裝置即顯示器56。 具體而言如第16圖所示,複數之設備61〜67連接於主 袅哀置51打,將第I?圖所示之狀態視窗W1顯示於顯示器 56。即’附有滑鼠之鍵盤61連接於主機裝置^之第1通訊璋 P卜印表機62連接於第2通訊埠p2,硬碟63連接於第3通訊 璋P3。又’光碟64連接於第4通訊槔p4,掃描器以連接於第 5通訊埠P5。而且數位攝影機PSC)66、67連接於第8通訊埠 32 1277888 P8及第9通訊埠P9。鍵盤61、印表機62、硬碟63、光碟64、 掃描器65及DSC66、67係内藏USB機能(USB通訊機能)的 USB設備,分別藉由USB電纜C1而連接於主機裝置51的各 通訊埠。 5 又,於第5實施樣態中,印表機62並非藉由USB之供電 匯流排,而係藉由另外設置之電源電纜(圖式未顯示)的供電 而運作的設備。其他設備係藉USB之匯流排供電而運作的 硬碟裝置。 如第17圖所示,顯示於顯示器56之狀態視窗W1設有選 10擇器、埠碼(Port No·)、裝置名稱、製造者、消耗電流(mA)、 狀態之各項見攔。裝置名稱、製造者、消耗電流依據記憶 於主控制器54之暫存器54a的機器資訊而顯示於每個通訊 埠。又,消耗電流欄顯示著要求主機裝置51之設備的消耗 電流值(要求值)與藉由USB電纜C1而從主機裝置51供給之 15 現時點的電流值(現在值)。 各埠之5又備的要求值在鍵盤61為100mA,印表機62為 100mA,硬碟63為500mA,光碟64為500mA,掃描器65為 300mA,DSC66為 200mA,DSC67為 250mA。 於選擇器欄設有用以將連接於各通訊埠之設備切換成 20開啟狀態或關閉狀態(使用狀態或未使用狀態)之其中任何 狀態的選擇按鈕。設備61〜67所連接之各通訊埠ρι〜ρ5、 P8、P9可選擇開啟或關閉之其中任何一方的按鈕。於此, 第1〜第4通訊埠P1〜P4與第9通訊埠P9可選擇開啟按鈕,第 5通訊埠P5與第8通訊埠P8可選擇關閉按鈕。 33 1277888 一旦選擇通訊埠p1〜P4、P9之開啟按鈕,則從電流供 給電路55供給設備61〜64、67所要求之消耗電流,而該設 備之USB機能被活性化。因此,狀態之欄形成「Acdve」。 但是印表機62並非由匯流排供電而係以本身的電源來運 5作’因此「Active」狀態以藍色顯示,由於其他設備以匯流 排供電而運作,因此「Active」狀態以紅色顯示。於消耗電 流攔顯示與要求值相同之電流值即現在值。 相對於此’一旦選擇通訊埠P5、P8之關閉按鈕,則非 從電流供給電路55供給設備65、66所要求之消耗電流,而 10該設備65、66之USB機能被停止(非活性化)。因此,狀態之 欄顯示「suspend」,而消耗電流之現在值顯示2.5mA。 又,有關未使用之通訊埠P6、P7、P10,於消耗電流之 要求值及現在值顯示0mA,而狀態之欄顯示「Not Use」。 而且,於狀態視窗W1下方設有用以顯示全埠之要求消 15 耗電流與使用電流與容許電流與餘裕電流之顯示欄。於 此,要求消耗電流係合計全部通訊埠之要求值的電流,使 用電流係合計全部埠之現在值的電流。又,容許電流係電 流供給電路55可輸出之最大電流,餘裕電流係從該容許電 流減去使用電流後的電流。 20 上述具體例之要求消耗電流為1950mA,使用電流為 1455mA。又,容許電流為2500mA,餘裕電流為1045mA。 因此,即使選擇第5通訊埠P5與第8通訊埠P8之開啟按鈕, 而對於連接於各通訊埠P5、P8之掃描器65與DSC66供給要 求值之電流的情形下,由於使用電流為1950mA,因此不會 34 1277888 超過各許電流250〇mA。此情形下能使掃描器%與耽的正 常地運作。 相對於此’使最大消耗電流為500mA之設備連接主機 裝置51之未使用通訊埠p6、p7、pl()並使其運作的情形下, 5會超過了主機裝置51之容許電流。此情形下加上新連接之 e 又備的運作會使連接完成之設備的運作亦呈不穩定。 第5實施樣態如第18圖所示,新穎的設備(硬碟7卜72、 Hub73)連接主機裝置之通訊埠p6、p7、pi〇時,不會立即使 各設備呈可運作的狀態,首先允許1〇mA的 匯流排供電而僅 10執U訊的發收。域裝置51依據該資訊之發收所獲得之 機器資訊而顯示如第19圖所示之狀態視窗W2。 即,就通訊埠P6、P7、P10顯示裝置名稱、製造者、消 耗電流、狀態。新連接於各通訊埠ρ6、ρ7、ρι〇之硬碟71、 72、Hub73的要求值為5〇〇mA,現在值為1〇〇mA。各通訊埠 15 P6、P7、P1G之選擇器攔不論開啟按紐或是關閉按鈕均不被 選擇而USB機能為待機中,因此狀態欄顯示 r Waitj 〇 又,於狀態視窗W2,要求消耗電流為345〇mA,使用 電流為1755mA。又,容許電流為25〇〇mA,餘裕電流為 745mA,以操作鍵盤61之滑鼠而選擇不立即使用之光碟64 2〇與DSC67之關閉按鈕後,選擇新連接之硬碟、π與Hub73 的開啟按鈕。 其結果如第20圖所示,狀態視窗W3顯示於顯示器%。 狀態視窗W3比較於第19圖之狀態視窗W2,第4通訊埠P4(光 碟64)及第9通訊埠P9(DSC67)之現在值變更為25mA,狀態 35 Ϊ277888 顯示變更為「suspend」。又,第6通訊埠P6(硬碟71)、第7通 訊埠P7(硬碟72)及第10通訊埠P10(Hub73)之現在值變更為 500mA,狀態顯示變更為「Active」。又,Hub73並非由匯 流排供電而係以本身的電源而運作的機器,「Active」的狀 5 態以藍色顯示。 此情形下,使用電流為2210mA,對2500mA之容許電 流可確保290mA的餘裕電流。爰此,主機裝置51連接識別 新的設備(硬碟71、72及Hub73)而能使各設備71〜73正常地 運作。 0 其认依據第21圖之流程來說明第5實施樣態之mpu52 所執行之處理之中用以顯示狀態視窗”1〜^¥3的處理。第 21圖之處理於主機裝置Η之起動時執行之初始化處理結束 後開始。 百先於步驟510,MPU52從主機裝置54之暫存器5如取 15得各設備之機器資訊後,轉移至步驟520而將因應該機器資 訊之狀態視窗W1(參照第17圖)顯示於顯示器56。於步驟 530’MPU52判定有無新穎的設備連接於未使用的通訊璋, 或是有,從連接完成之通訊埠拆出之所謂機器連接狀態變 更判疋為有變更的情形下,MpU52轉移至步驟54〇而進行 2〇 ;::::;::^ 備發出要求ΐΐ 形下,從主控制器54對新賴設 儲存於暫存將藉此要求指令從設備回覆之機器資訊 出的情:=。又,連接完成之設備從預定之通訊璋拆 從暫存器54a消除有關該設備的機器資訊。 36 1277888 於步驟550,MPU52依據已更新的機器資訊而顯示狀態 視窗。接著於步驟55〇MPU52依據已更新之機器資訊而顯示 狀態視窗。接著於步驟560,MPU52判定以操作者(使用者) 之滑鼠操作而顯示於狀態視窗之選擇器欄的按鈕是否已被 5選擇,無按紐選擇的情形下則回到步驟530的處理。又, MPU52判定於步驟無機器連接狀態變更的情形下不會執行 步驟540、55〇的處理而轉移至步驟55〇。 如上所述,操作者不將新的設備連接於主機裝置51且 不選擇狀態視窗W1之選擇器攔之按鈕的情形下,反覆步驟 10 530與步驟540的處理。因此,於顯示器56形成持續顯示以 步驟520顯示之狀態視窗wi。 又,如第18圖所示,操作者將硬碟71、72、Hub73依序 連接於各通訊埠P6、P7、Pi〇的情形下,反覆三次步驟53〇 〜560的處理,其結果則於顯示器56顯示第19圖之狀態視窗 15 W2。 若是操作者選擇狀態視窗W2中的選擇器攔按鈕,則 MPU52從㈣56〇_至步㈣㈣躲㈣狀通訊埠變 更從電流供給電路55供給的電流。之後,]^1>1;52轉移至步 驟580而將對應操作者之按紐選擇的狀態視窗顯示於顯示 2〇器56後’回到步驟530的處理。在步驟58〇因應按鈕選擇而 變更狀態欄且進行有關消耗電流的計算(計算使用電流與 餘裕電流)。 ” 具體而a,於狀態視窗W2選擇第4通訊埠p4及第9通訊 璋P9之關_城,依序轉第_κ4ρ6、第7通訊物 37 1277888 及第10通訊埠P10之開啟按鈕。此情形下於按鈕選擇時反覆 步驟560〜步驟580的處理,共結果於顯示器顯示第2〇圖之 狀態視窗W3。 上述說明雖省略了圖式,惟於流動比各設備之最大消 5耗電流大的過電流而使限制器58發揮機能時,也能將流動 該過電流之主旨顯示於狀態視窗▽1〜^¥3而警告操作者。 具體而言,於狀態視窗W1〜W3之狀態攔會顯示用以警示 警告的「Warning」,或是以與正常值時不同的顏色來顯示 過電流的現在值。 10 而且’ USB設備連接主機裝置51之第10通訊埠pi〇所連 接之Hub73時,亦可顯示Hub73之狀態視窗。 具體而言,如第23圖所示複數的設備81〜83連接中繼 設備即Hub73的情形下,將第23圖所示之狀態視窗W11顯示 於主機裝置51之顯示器56。即,於Hub73設置用以連接USB 15設備之第1〜第1〇通訊埠P11〜P20,分別為光碟81連接第1 通訊埠P11,硬碟82連接第2通訊埠P12,DSC83連接第4通 訊埠P14。 又,於第23圖之狀態視窗W11,第1及第2通訊埠P11、 P12選擇開啟按钮’第4通訊淳選擇關閉按紐。因此,從Hub73 20 之電流供給電路(圖式未顯示之電源1C)對光碟81與硬碟82 供給各個所要求的電流值(=100mA)。 又’ Hub73係以本身的電源來運作的機器(Self powered Hub),從電流供給電路可輸出之電流(容許電流)為500mA。 亦即Hub73可將USB規格所限定之最大500mA的電流供給 38 1277888 至全部的通訊埠P11〜P20。因此,Hub73不必需控制對各 設備的供給電流,狀態視窗W11顯示用以告知操作者連接 於Hub73之各設備的使用狀態或未使用狀態。 又,如第24圖所示,亦可將Hub84連接於Hub73之通訊 5 埠P13。此情形下不僅於第25圖所示之Hub73之狀態視窗 W12 ’且將Hub84之狀態視窗(圖式未顯示)顯示於主機裝置 51的顯示器56。又,顯示複數之狀態視窗的情形下,以爆 出(Pop-up)形式或翻捲(scroll)形式顯示分別的視窗。 當然,亦可以匯流排供電而運作之Hub連接主機裝置51 10 之任何通訊埠。第26圖表示其以匯流排供電而運作之Descriptor) Max Power Field. The host device 11 assigns and issues the current value of the target specification in the category of maximum current consumption. Further, the maximum current consumption of the device in the USB specification is defined as the eighth parameter of the specification descriptor. In the first embodiment, the maximum current consumption of each of the devices 21 to 23 is 1100 mA, and in the case where the first and second devices 21 and 22 are newly connected to the third device 23, with respect to the host device 11 Available in specifications (1000mA), the capacity of 100mA is insufficient. Therefore, the host device 11 starts to adjust the agreement for the amount of supply current to each of the devices 21 to 23. The host device 11 tries to secure a shortage of 100 mA from a state in which the supply current to each of the devices 21 to 23 is lowered by, for example, 50 mA which is one-half of the shortage. Specifically, the host device confirms whether or not the device 22 can operate at a current consumption reduction of 250 mA of 50 mA as shown in Fig. 5. That is, the host device 11 transmits 250 mA data to the second device 22 in the maximum current consumption range of the command (Set Descriptor). However, since the second device 22 is required to operate, a supply current of 3 mA is required. Therefore, the STALL packet is used to respond to the inability to respond. Next, as shown in Fig. 6, the host device 11 interrogates the first device 21 whether or not 20 can operate at 450 mA with a maximum current consumption reduction of 50 mA. At this time, the host device 11 transmits 450 mA of data to the first device 21 in the maximum current consumption range of the command (Set Descriptor). Since the first device 21 can reduce the supply current to 300 mA, it is possible to respond to the responsiveness of the ACK packet and recognize that the supply current is 450 mA. 19 1277888 Next, the host device 11 interrogates the third device 23 as shown in Fig. 7 to operate at 250 mA with a maximum current consumption reduction of 50 mA. At this time, the host device 11 transmits 250 mA data to the third device 23 in the range of the maximum current consumption of the command (Set Descriptor). Since the second device 23 reduces the supply current to 250 mA, it is also possible to respond to the responsiveness of the ACK packet and recognize that the supply current is 250 mA. As shown in Fig. 8, the host device 11 lowers the supply current to the first device 22 to 450 mA, and sets the supply current supplied to the third device 23 to 250 mA. Thereby, the first device 21 switches to the low current consumption mode, and the third device 23 starts operating in the low current consumption mode. As described above, the host device 11 can connect and recognize the third device 23 and form a communicable state with all of the devices 21 to 23. Further, the above description has explained the case where the identification of the novel device 23 can be connected to the supply current of the devices 21 and 22 which have been connected and identified. On the other hand, even if the supply current to the devices 21 and 22 is changed, if the supply current of the newly connected device 23 cannot be ensured, the device 23 cannot be recognized as in the conventional art. In this case, communication between the host device 11 and each of the devices 21 and 22 is maintained for the supply current before the connection of the first and second devices 21 and 22 to the local supply device 23. 2〇 Further, the order of agreement for each of the devices 21 to 23 described with reference to Figs. 5 to 8 can be appropriately changed. That is, the above specific example explains the change of the supply current for the device 22 that has completed the connection. However, first, when the novel device 23 is inquired to reduce the supply current without adjusting the supply current to the device 23, the connection can be completed. The devices 21, 22 interrogate to reduce the supply current. 20 1277888 Of course, the reduced current value of 50 mA calculated by the host device 11 is an example, and can be agreed upon according to an arbitrary calculation result. For example, in Fig. 6, it can be confirmed whether the first device 21 can operate at 400 mA which reduces the maximum current consumption specification of 100 mA. In this case, since the first device 21 can respond even if the supply current is reduced to 300 mA, the ACK packet can be used to respond to the corresponding purpose, and the operation of supplying current at 400 mA is recognized. Since the supply current to the novel device 23 can be ensured by reducing the supply of current to the first device 21, a protocol for reducing the supply current of the novel device 23 is not required (see Fig. 7). The host device 11 of the first embodiment of the present invention has the following advantages. (1) When the current consumption of the devices 21, 22 and the novel device 23 of the connection recognition completion exceeds the supply capability of the current supply circuit 15, the host device 11 changes the supply current to each of the devices 21 to 23 in accordance with the capability thereof. . In the first embodiment, the device 23, which is newly connected to the host device 11, further changes the supply current to the device whose connection 15 is completed. The supply current for operating the novel device 23 can be ensured by the change of the supply current, and the number of devices identified by the host device 11 can be increased as compared with the prior art. (2) The current can be supplied to the devices 21 to 23 by means of a command (Set Descriptor) based on the USB specification, and the state of any of the 20 ACK packets and the STALL packets is received from the devices 21 to 23 to determine the state of any of the 20 ACK packets and the STALL packets. Whether the device works. In this case, in the case where the agreement for changing the supply current to the devices 21 to 23 is performed by the existing command, the program to be executed can be easily made, which is advantageous for practical use. (3) The host device 11 has a current monitoring circuit 16 that detects currents flowing through the communication ports P1 to P3 and monitors them by the communication ports P1 to P3 so that the devices 21 to 23 do not flow a predetermined value or more. Over current. When the current monitoring circuit 16 detects an overcurrent, it can avoid adverse effects of the body communication system by stopping the supply current to the device. 5 Next, a second embodiment in which the present invention is more embodied will be described. Fig. 9 is a schematic block circuit diagram of the apparatus 31 of the second embodiment. The device 31 is, for example, a recording and reproducing device that uses the optical disk 32 as a recording medium, and includes an MPU 33, a memory 34, a USB controller 35, a power controller 36, a device controller 37, and a disk rotation motor 38. The MPU 33 is connected to the memory 34, the USB controller 35, the power controller 36, and the device controller 37 via the internal bus bars 39, and transmits and receives data to each other. The device 31 is provided with a USB communication port P0, and is connected to the host device 41 by the USB cable C1 into which the communication port is inserted. The device 31 of the second embodiment is an electric device that operates in accordance with power supply from a busbar from the host device 41. The control circuit, i.e., the MPU 33, performs various processes in accordance with the program stored in the memory 34 and collectively controls the device 31. Further, the private storage stored in the memory 34 includes a communication program for controlling the USB controller 35 and the power controller 36 or a data processing program for controlling the device controller 37. The communication port P0 is connected to the USB controller 35 via the switch unit 42, and the communication data from the main unit device 41 is transmitted to the USB controller 35 through the signal lines D+, D- and the switch unit 42. As shown in Fig. 1, the switching unit 42 includes two switching circuits 42a and 42b. Each of the switch circuits 42a, 42b is controlled in accordance with control signals Sa, Sb from the MPU 33 to connect or disconnect the signal lines D+, D_ of the link communication port P0 and the USB controller 35. The switch unit 42 (each switch circuit 42a, 42b) is turned off (OFF) according to the control signals Sa, Sb from the 22 1277888 MPU 33, and the device 31 is cut off from the host device 41. The USB controller 35 is USB-compliant. The communication circuit between the control 5 and the host device 41 is the standard communication circuit. Specifically, the xjsb controller 35 transmits the data (write data) contained in the packet received from the host device 41 to the device controller 37. Further, the USB controller 35 generates a transmission packet based on the transmission of the material (read data) from the device controller 37 and transmits it to the host device 41. The device controller 37 drives the motor 38 to rotate the optical disk 32, read data from the optical disk 32 10, or write data to the optical disk 32. The power controller 36 is connected to the communication port P0 (referred to as a power terminal of VBUS), and is supplied with current from the host device 41 via the USB cable C1 and the communication port P0. The power controller 36 manages the supply current supplied to the internal circuits including the MPU 33, the memory 34, the USB controller 35, and the device controller 37. Specifically, the power controller 36 includes a register 36a that stores information such as a current consumption value of the storage device 31, a switch circuit 36b that blocks a current passing path to the internal circuit, and a control unit 36c that controls a supply current to the internal circuit. . The control unit 36c adjusts the current supplied to the MPU 33, the memory 34, the USB controller 35, and the device controller 37 in accordance with the current consumption value of the register 36a. Further, the switch circuit 36b is turned "ON" or "OFF" in accordance with a control signal from the MPU 33. The switch circuit 36b is normally turned on, but in a case where the host device 41 cannot be connected to the identification device 31, the switch circuit 36b cuts off the power of the device 31 in a closed state. Next, the processing for identifying the connection of the host device 41 in the communication processing of the line 1 1277888 performed by the MPU 33 of the device 31 will be described in accordance with the flowchart of FIG. The processing of Fig. 11 is started when the device 31 is connected to the host device 41. First, the 'MPU 33 waits until the request instruction (Get Descriptor) for requesting the machine information from the host device 41 is received in step 210. When the MPU 33 receives the request command, the MPU 33 transfers to the step 220, and after transmitting the transmission packet including the device information of the device 31 from the USB controller 35 to the host device 4, the MPU 33 transfers to step 230 to determine whether the slave device has been received. When the request command (set configuration) is received, the processing proceeds to step 240 and the start processing of the device 31 is performed, and the processing is terminated. When the host device 41 waits for the supply capacity of the maximum current consumption included in the machine information transmitted in step 220, the host device 41 issues a start request command and supplies the maximum consumed current to the device 31 via the USB cable C1. Therefore, after the start processing of the device 31 is performed in step 240, the data writing or reading operation can be performed at the maximum current consumption required. On the other hand, in the case where the host device 41 does not have the ability to supply the maximum current consumption of the device 31, the host device 41 does not issue the start request command. In this case, the conventional device does not have the supply current necessary for the identification of the connection of the host device 41. On the other hand, in the second embodiment, when the current supply capability of the host device 41 is insufficient, the processing for connecting the host device 41 is performed by reducing the current consumption of the host device 41 (processing after step 25). Specifically, in step 250, the MPU 33 determines whether a predetermined time has elapsed since the time of transmitting the machine information, and has returned to 24 1277888 step 220 without a predetermined time. When the MPU 33 has elapsed for a predetermined period of time, it is judged that the host device 41 cannot supply the maximum current consumption required by itself, and the process proceeds to step 260. The MPU 33 determines whether the maximum current consumption can be changed. In step 260, the MPU 33 determines that it is not possible to change the current consumption value, and proceeds to step 270, and sets the switching circuit 36 of the power controller 36 to the off state and cuts off the power of the device 31, and ends the present process. On the other hand, if it is determined in step 260 that the current consumption can be changed, the MPU 33 proceeds to step 280 to change the machine information of the device 31 stored in the register 36a of the power controller 36. Here, the consumption current value of the machine information 10 is reduced to a predetermined value, and the operation mode of the device controller 37 is set to an operation mode (low current consumption mode) in which the current value should be reduced. Thereafter, the MPU 33 is turned on only after the respective switch circuits 42a, 42b of the switch unit 42 are turned off at a predetermined time in step 290. The device 31 is temporarily turned off from the host device 41 in accordance with the switching operation of the switching unit 421, and the process returns to step 210. Once the device 31 is temporarily turned off in accordance with the processing of step 290, the host device 41 judges that the device 31 has been reconnected. At this time, the host f sets 41 to issue a request command requesting machine information. The device 31 that has received the request in step 210 transfers to step 220 to resend the machine information. / VIII. In step 280, the current consumption value that has been reduced to a small current value is retransmitted. The host device 41 does not supply the reduced current consumption. The start request command will be issued, so the step after the step 250 is performed again. In contrast, the host device 41 issues a start request command when the reduced current consumption can be supplied. Thus, the MPU 33 shifts from step 23 to step 240 to perform the startup processing of the device 31, and then ends the processing. By the start-up processing of the device 31, the device 31 can perform a data writing or reading operation with a reduced current consumption. The apparatus 31 of the second embodiment of the present invention has the following advantages: (1) the host device 41 is connected to the device 31, and when the current consumption of the internal circuit of the device 31 exceeds the supply capability of the host device 41, the host The device 41 does not issue a request for the request to start the device 31, so the MpU 33 judges the main 曰 to reduce the current consumption of the device 31. When the host device 41 can supply 10 reduced current consumption, the device 31 is identified by the host device 41 and the device 31 is operated according to the power supply from the host device 41. (2) In step 31 'Setting The switch unit 42 that connects the communication port υρ〇 (υι§Β cable ^ C1) to the USB controller 35 can be temporarily turned off. Further, a register for storing the current consumption of the device 31 is provided in the power control unit 36. In the case where the supply capacity of the host device 41 is insufficient, the current consumption of the device 31 of the register 36a is lowered, and then the switch unit 42 is turned off only for a predetermined time. By the switching operation of the switching unit 42, the connection between the communication port P0 and the USB controller 35 is temporarily cut off, and the situation in which the device is reconnected to the host device 41 can be recognized. 2. The host device 41 issues an instruction requesting machine information of the device 31, and the device 31 responds to the command and transmits the changed current consumption. In this way, the current consumption of the device 31 can be changed without the instruction of the host device 41 by the operation on the side of the device 31. (3) The MPU 33 determines that the power consumption of the internal circuit of the device 31 cannot be reduced. 26 1277888 When the flow is performed (when the device 31 is not recognized), the power supply of the standby 31 is blocked by the switch circuit 361 of the memory controller 36. As a result, wasteful current consumption of the device 31 which is not recognized by the host device 41 can be prevented. Hereinafter, a third embodiment of the present invention will be described with reference to the drawings. Fig. 12 is a schematic block circuit diagram of a device 43 relating to the third embodiment of the present invention. The same components are assigned to the same components as those of the device 31 of the second embodiment. Hereinafter, the differences from the second embodiment will be mainly described. That is, the device 43 of the third embodiment is different from the second embodiment in that the controller 44 controls the speaker 45. Further, the device 43 is provided with a level switch 46 which is a setting unit, and the register 36 & of the power controller 36 can memorize the current consumption value calculated based on the operation amount (set value) of the level switch 46. The device 43 is connected to the host device 41 by the USB cable C1. When the host device 41 requests the device information from the device 43, the device 43 requests the host device 41 to consume the current value corresponding to the set value of the level 15 switch 46. The processing performed by the MPU 33 of the device 43 for connection identification will be described below in accordance with the flowchart of Fig. 13. The processing of Fig. 13 starts when the device 43 is connected to the host to rotate the 41. First, in step 310, the MPU 33 calculates the current consumption value corresponding to the set value 〇 of the level switch 46, and recalls the calculated value as the current consumption value of the machine information in the register 36a of the power controller 36. Thereafter, the MPU 33 shifts to step 320 and stands by until it receives a request instruction (Get Descriptor) of the machine information from the host device 41. Upon receiving the request command, the MPU 33 transfers to step 330 to transmit the machine information of the device 43 to the host device 41. 27 1277888 To set = 3^41, the current consumption value contained in the machine can be supplied to the center: Γ, the start request command is issued from the host device 41. The post C40 shifts to step 350 to perform the startup processing of the device 43. Thereby, it is possible to output the sound to the speaker 45 by requesting the flow of the host device 41. On the other hand, in the case where the host device 41 cannot supply the current consumption of the device 43, the start request request is not issued from the host device 41. In this case, the MPU 33 repeats the processing of steps 340 and 360 from the time when the transmitter || information is numb, and expects to go to step 37 after a predetermined time elapses. The MPU 33 determines in step 370 whether the level switch 46 is operated and the value set has been changed. When the set value of the level switch 46 has been changed, the Mpu 33 shifts to step 380 and recalculates the value of the current consumption corresponding to the set value of the level switch 46 to be stored in the register 36a of the power controller 36. Thereafter, the MPU 33 turns on the switch unit 42 only after a predetermined time in step 390, and then turns on, whereby the device 43 is temporarily turned off from the host device 41 and then returns to step 320. Once the device 43 is temporarily turned off by the processing of step 390, the host device 41 judges that the device 41 is reconnected. At this time, the host device 41 issues a request for the request for machine information. The device 43 that receives the request command in step 320 moves to step 320 to transmit the machine information again. Here, the current consumption value corresponding to the set value of the changed level switch 46 is sent again. Since the host device 41 does not issue the start request command in the case where the current consumption value after the change cannot be supplied, the processing after step 360 is performed again. On the other hand, when the host device 41 can supply the value of the current consumption of 1277888 after the change, the host device 41 issues a start request command. Therefore, the MPU 33 shifts from step 340 to step 350 and performs a startup process to end the process. By the start-up process of step 43, the device 43 can be made to output the sound from the speaker with the changed current consumption. The apparatus 43 of the third embodiment of the present invention has the following advantages. (1) The current consumption of the device 43 exceeds the supply capacity of the host device 41, and when the host device 41 does not recognize the device 43, once the set value of the level switch 46 is changed, the current consumption due to the set value is calculated and stored in the power The register of the controller 36. The device 43 10 is then recognized by the switching action of the switch unit 42 to reconnect the host device 41. At this time, the device 43 can notify the host device 41 of the changed current consumption in response to the request command issued from the host device 41. When the host device 41 cannot supply the changed current consumption, the host device 41 recognizes the device 43 and the busbar power supply from the host device 41 causes the device 43 to operate. (2) In the case where the host device 41 is notified that the current consumption is supplied from the host device 41 in response to the current consumption value of the set value of the level switch 46, the supply current corresponding to the set value of the level switch 46 can be made. Device 43 operates. The fourth embodiment of the present invention will be described below. In the fourth embodiment, the configuration of the device 31 is the same as that of the second embodiment shown in Fig. 9. Further, the host device 41 of the fourth embodiment notifies the current that the device 31 can supply when it is determined that the current consumption of the device 31 cannot be supplied when the connection is recognized. The device 31 reduces the state of the current consumption in cooperation with the supply current of the host device 41, and causes the host device 41 to recognize the device 31. Fig. 14 is a flow chart for explaining the connection identification of the device 31 of the fourth embodiment. Further, steps 410 to 440 and 470 to 490 in Fig. 14 are the same as steps 210 to 240 and 270 to 290 of the second embodiment, and the processing of steps 450 and 460 is different from the second embodiment. Hereinafter, the differences from the second embodiment will be mainly described. 5, that is, in the case where the current consumption value of the device 31 transmitted in step 420 exceeds the capability of the host device 41 (current value that can be supplied), the host device 41 does not issue a request command requesting activation of the device 31 to notify the device 31. The amount of current that can be supplied. In this case, the MPU 33 of the device 31 receives the current value that the host device 41 can supply at step 450. Moving to step 460, the MPU 33 determines whether the device 10 31 can operate with the available current value of the host device 41. In the case where it is determined in step 460 that the operation is impossible, the MPU 33 shifts to step 470 to turn off the current of the device 31 in a state where the switch circuit 36 of the power controller 36 is turned off, and the present process is terminated. On the other hand, in the case where it is determined in step 460 that it is operable, the MPU 33 15 shifts to step 480 to change the machine information of the device 31 stored in the register 36a of the power controller 36. Here, the current consumption value included in the machine information is changed to the same value as the supply current value of the host device 41. Further, the Mpu 33 sets the operation mode of the device controller 37 to the current consumption mode in response to the changed current value. After that, the MPU 33 is turned on only after the switch unit 42 is turned off at the predetermined time in step 490, whereby the device 31 is temporarily turned off from the host device 41 and then returns to step 410. Once the device 31 is temporarily turned off in accordance with the processing of step 490, the host device 41 judges that the device 31 has been reconnected, and therefore issues a request for the request for machine information 30 1277888. Upon receiving the request command at step 410, the MPU 33 moves to step 420 to resend the machine information changed at step 48. Since the current value that can be supplied from the host device 41 can be transmitted, the host device 41 determines that the current consumption of the device 31 can be supplied and issues a start request command. As a result, the MPU 33 shifts to step 44 to start the process of the device 31, and ends the process. Depending on the starting process of the device 31, the device 31 may perform an action of writing data or reading data with a reduced current consumption (current that the host device 41 can supply). The apparatus 31 of the fourth embodiment of the present invention has the following advantages.  1) (1) When the current consumption value of the device 31 exceeds the supply capacity of the host device 41, the current consumption of the device 31 can be reduced in accordance with the capability of the host device 41. In this way, the performance (write or read speed) of the host device 31 can be made to be maximized by the current supply of the host device 41. (2) A fifth embodiment in which the present invention is embodied will be described based on the drawings. Fig. 15 is a schematic block diagram of the host device 51 of the fifth embodiment. The host device (specifically, a personal computer) 51 includes an MPU 52, a memory 53, a main controller 54, a current supply circuit 55, and a display 56. The host device 51 is connected to the MPU 52, the memory 53, the main controller 54, the current supply circuit 55, and the display 56 via the internal bus bar 57, and transmits and receives data to each other. Further, the host device 51 is provided with first to tenth communication ports P1 to P10 for connecting USB devices. The MPU 52, which is a control circuit, executes various processes in accordance with the program stored in the memory 53 and collectively controls the host device 51. The program stored in the memory 53 includes a communication path 31 1277888 that controls the main controller 54 or the current supply circuit 55, and a device that connects each device of each of the communication ports P1 to P1 in the form of a GUI (GmphiC User lmerface). The information is displayed on the display program of the display 56. The main control H54 is a communication circuit based on the USB specification, and the control 5 is connected to the communication between the devices of each communication port 1"1~1"10. The main controller 54 is provided with a register 54a which can store machine information of devices connected to the respective communication ports ρ to P10. Specifically, when the device is connected to the communication ports P1 to P10, the host device 51 identifies the connection protocol and agrees between the devices, and stores the machine information obtained in this manner in the register 54a. The current supply circuit 55 supplies the maximum current consumption included in the machine information of the register 54a to the device connected to the communication port. Further, a limiter 58 is provided in the middle of the current passing path of each of the communication ports pi to P1 of the connection current supply circuit 55. The limiter 58 is a current monitoring circuit including a switching circuit. When an overcurrent of a predetermined current or more is flown, the switch is turned off and the current is passed through the path. The MPU 52 reads the machine information stored in the register 54a of the main controller 54 by executing the application (display program), and displays the status window on the display device 56. Specifically, as shown in Fig. 16, a plurality of devices 61 to 67 are connected to the main device 51, and the state window W1 shown in Fig. 1 is displayed on the display 56. That is, the first communication port 61 to which the mouse keyboard 61 is attached is connected to the second communication port p2, and the hard disk 63 is connected to the third communication port P3. Further, the optical disk 64 is connected to the fourth communication port p4, and the scanner is connected to the fifth communication port P5. Moreover, the digital camera PSC) 66, 67 is connected to the eighth communication port 32 1277888 P8 and the ninth communication port P9. The keyboard 61, the printer 62, the hard disk 63, the optical disk 64, the scanner 65, and the DSCs 66 and 67 are USB devices having a USB function (USB communication function), which are respectively connected to the host device 51 by the USB cable C1. Communication 埠. Further, in the fifth embodiment, the printer 62 is not a power supply bus via USB, but is a device that operates by power supply of a separately provided power cable (not shown). Other devices are hard disk devices that operate by USB bus power. As shown in Fig. 17, the status window W1 displayed on the display 56 is provided with a selection device, a port number, a device name, a manufacturer, a current consumption (mA), and a status bar. The device name, manufacturer, and current consumption are displayed in each communication port based on the machine information stored in the register 54a of the main controller 54. Further, the current consumption column displays the current consumption value (required value) of the device requiring the host device 51 and the current value (current value) of the 15 current point supplied from the host device 51 by the USB cable C1. The required value for each of the 5 is 100 mA on the keyboard 61, 100 mA on the printer 62, 500 mA on the hard disk 63, 500 mA on the optical disk 64, 300 mA on the scanner 65, 200 mA on the DSC66, and 250 mA on the DSC67. A selector button is provided in the selector bar for switching any device connected to each communication port to any of the 20-on state or the off state (used state or unused state). Each of the communication ports ρι to ρ5, P8, and P9 to which the devices 61 to 67 are connected may select one of the buttons to be turned on or off. Here, the first to fourth communication ports P1 to P4 and the ninth communication port P9 can select an ON button, and the fifth communication port P5 and the eighth communication port P8 can select a close button. 33 1277888 Once the ON buttons of the ports 1p1 to P4 and P9 are selected, the current consumption required by the devices 61 to 64, 67 is supplied from the current supply circuit 55, and the USB function of the device is activated. Therefore, the status bar forms "Acdve". However, the printer 62 is not powered by the busbar and is powered by its own power supply. Therefore, the "Active" status is displayed in blue. Since other devices operate in the power supply of the bus, the "Active" status is displayed in red. The current drain is displayed at the same current value as the required value. On the other hand, when the close button of the communication ports P5 and P8 is selected, the current consumption required by the devices 65 and 66 is not supplied from the current supply circuit 55, and the USB functions of the devices 65 and 66 are stopped (inactivated). . Therefore, the status bar shows "suspend" and the current value of the current consumption shows 2. 5mA. Further, regarding the unused communication ports P6, P7, and P10, 0 mA is displayed for the required value and current value of the current consumption, and "Not Use" is displayed in the status column. Further, below the state window W1, there is provided a display field for displaying the total consumption current and the use current and the allowable current and the margin current. In this case, the current consumption is required to total the current required for all the communication ports, and the current system is used to total the current value of all the current values. Further, the maximum current that can be output by the current-system current supply circuit 55 is allowed, and the residual current is subtracted from the allowable current by the current after the current is used. 20 The above specific example requires a current consumption of 1950 mA and a current of 1455 mA. Further, the allowable current is 2500 mA, and the margin current is 1045 mA. Therefore, even if the ON button of the fifth communication port P5 and the eighth communication port P8 is selected, and the current of the required value is supplied to the scanner 65 and the DSC 66 connected to the respective communication ports P5 and P8, since the current used is 1950 mA, Therefore, 34 1277888 will not exceed 250 mA. In this case, the scanner % and 耽 can operate normally. In contrast to the case where the device having the maximum current consumption of 500 mA is connected to the unused communication ports 6p6, p7, pl() of the host device 51 and operated, 5 exceeds the allowable current of the host device 51. In this case, the operation of the newly connected e will make the operation of the connected device unstable. The fifth embodiment is as shown in Fig. 18. When the novel device (hard disk 7b 72, Hub73) is connected to the communication device 埠p6, p7, pi〇 of the host device, the devices are not immediately made operable. First, 1 mA busbar power supply is allowed and only 10 U signals are transmitted. The domain device 51 displays the state window W2 as shown in Fig. 19 in accordance with the machine information obtained by the transmission of the information. That is, the device name, the manufacturer, the current consumption, and the state are displayed in the communication ports P6, P7, and P10. The required value of the hard disk 71, 72, and Hub73 newly connected to each of the communication ports ρ6, ρ7, and ρι〇 is 5 mA, and the current value is 1 mA. Each communication port 15 P6, P7, P1G selector block is not selected regardless of the open button or the close button and the USB function is in standby, so the status bar displays r Waitj 〇 again, in the status window W2, the required current consumption is 345 mA, the current is 1755 mA. Moreover, the allowable current is 25 mA, and the margin current is 745 mA. After operating the keyboard 61 mouse and selecting the disc 64 that is not immediately used, and the DSC67 close button, the newly connected hard disk, π and Hub73 are selected. Turn on the button. As a result, as shown in Fig. 20, the status window W3 is displayed on the display %. The status window W3 is compared to the status window W2 of Fig. 19, the current value of the fourth communication port P4 (disc 64) and the ninth communication port P9 (DSC67) is changed to 25 mA, and the status 35 Ϊ277888 display is changed to "suspend". Further, the current values of the sixth communication port P6 (hard disk 71), the seventh communication port P7 (hard disk 72), and the tenth communication port P10 (Hub73) are changed to 500 mA, and the status display is changed to "Active". In addition, Hub73 is not a device that is powered by a bus and operates with its own power supply. The status of "Active" is displayed in blue. In this case, the current is 2210 mA, and the allowable current of 2500 mA ensures a CU current of 290 mA. Thus, the host device 51 is connected to recognize new devices (hard disks 71, 72 and Hub 73) so that the devices 71 to 73 can operate normally. 0. The processing for displaying the status window "1 to ^¥3 among the processing executed by the mpu 52 of the fifth embodiment will be described based on the flow of Fig. 21. The processing of Fig. 21 is performed at the start of the host device After the initialization process of the execution ends, the MPU 52 obtains the machine information of each device from the register 5 of the host device 54, and then proceeds to step 520 to view the status window W1 (in response to the machine information). Referring to Fig. 17), it is displayed on the display 56. In step 530', the MPU 52 determines whether or not the novel device is connected to the unused communication port, or the so-called device connection state change from the connected communication port is judged as having In the case of a change, the MpU 52 moves to the step 54 and performs 2〇;::::;::^, the request is issued, and the new controller is stored in the temporary storage from the main controller 54 to thereby request the instruction from The machine information returned by the device: =. In addition, the connected device removes the machine information about the device from the predetermined communication device 54a. 36 1277888 In step 550, the MPU 52 is based on the updated machine information. The status window is displayed. Then, in step 55, the MPU 52 displays the status window based on the updated machine information. Then in step 560, the MPU 52 determines the button displayed on the selector bar of the status window by the operator (user) mouse operation. If it has been selected by 5, if there is no button selection, the process returns to step 530. Further, the MPU 52 determines that the process of steps 540 and 55〇 is not executed in the case where the step of the inorganic device connection state is changed, and the process proceeds to step 55. As described above, in the case where the operator does not connect the new device to the host device 51 and does not select the button of the selector window of the status window W1, the processing of steps 10 530 and 540 is repeated. Therefore, the display 56 is formed. The status window wi displayed in step 520 is continuously displayed. Further, as shown in Fig. 18, the operator sequentially connects the hard disks 71, 72, and Hub 73 to each of the communication ports P6, P7, and Pi, and repeats the three steps. The processing of 53 〇 560 560, the result is displayed on the display 56 in the status window 15 W2 of Fig. 19. If the operator selects the selector block button in the status window W2, the MPU 52 is from (four) 56 〇 _ to (4) (4) The hidden (four) communication 埠 changes the current supplied from the current supply circuit 55. Thereafter, ^1>1; 52 shifts to step 580 to display the status window corresponding to the operator's button selection after the display 2 switch 56. Returning to the processing of step 530. In step 58, the status bar is changed in response to the button selection and the calculation of the current consumption (calculation of the use current and the margin current) is performed. Specifically, a, the fourth communication port 4p4 is selected in the status window W2. The 9th communication 璋 P9 is closed _ city, in turn, the _κ4ρ6, the seventh communication object 37 1277888 and the 10th communication 埠 P10 open button. In this case, the processing of steps 560 to 580 is repeated at the time of button selection, and a total of the status window W3 of the second figure is displayed on the display. Although the above description is omitted, the flow of the overcurrent can be displayed in the status window ▽1~^ when the limiter 58 functions as an overcurrent that exceeds the maximum current consumption of each device. ¥3 and warned the operator. Specifically, the status of the status windows W1 to W3 displays "Warning" for alerting the warning, or displays the current value of the overcurrent in a different color from the normal value. 10 When the USB device is connected to the Hub73 connected to the 10th communication port of the host device 51, the status window of the Hub 73 can also be displayed. Specifically, in the case where the plurality of devices 81 to 83 are connected to the Hub 73, which is a relay device, as shown in Fig. 23, the status window W11 shown in Fig. 23 is displayed on the display 56 of the host device 51. That is, the first to the first communication ports P11 to P20 for connecting the USB 15 device are set in the Hub 73, and the first communication port P11 is connected to the optical disk 81, the second communication port P12 is connected to the hard disk 82, and the fourth communication is connected to the DSC 83.埠P14. Further, in the state window W11 of Fig. 23, the first and second communication ports P11 and P12 select the open button 'the fourth communication port 淳 selects the close button. Therefore, each of the required current values (= 100 mA) is supplied to the optical disk 81 and the hard disk 82 from the current supply circuit of the Hub 73 20 (the power supply 1C not shown). Further, the Hub73 is a self-powered machine (Self powered Hub), and the current (allowable current) that can be output from the current supply circuit is 500 mA. That is, the Hub73 can supply the maximum current of 500 mA defined by the USB specification to 38 1277888 to all the communication ports P11 to P20. Therefore, the Hub 73 does not have to control the supply current to each device, and the status window W11 displays the use status or the unused status of each device for informing the operator to connect to the Hub 73. Also, as shown in Fig. 24, the Hub 84 can also be connected to the communication of the Hub 73 5 埠 P13. In this case, not only the status window W12' of the Hub 73 shown in Fig. 25 but also the status window (not shown) of the Hub 84 is displayed on the display 56 of the host device 51. Further, in the case of displaying the plural status window, the respective windows are displayed in a pop-up form or a scroll form. Of course, it is also possible to connect any communication port of the host device 51 10 to the Hub operated by the bus. Figure 26 shows that it operates with busbar power.

Hub(Bus Powered Hub)85。於Hub85分別為光碟 81 連接第 1 通訊埠P11,硬碟82連接第2通訊埠P12,DSC83連接第4通 訊埠P14。如第27圖所示Hub85之狀態視窗W13顯示於主機 裝置51之顯示器56。此情形下由於Hub85之容許電流為 15 400mA那般小,因此藉顯示視窗W13而能使操作者選擇必 要的設備以不超過該容許電流。 本發明之第5實施樣態之主機裝置51具有以下的優點。 (1)主機裝置51之顯示器56顯示用以表示連接各通訊蜂 P1〜P10之設備61〜67、71〜73的機器資訊。狀態視窗W1 2〇 〜W3不僅顯示從各設備61〜67、71〜73取得之的機器資訊 (裝置名稱、製造者、消耗電流),且顯示用以使操作者選擇 將設備設成使用狀態或未使用狀態的選擇按鈕(開啟按钮 與關閉按鈕)。已確認狀態視窗W1〜W3之操作者一旦選擇 按鈕,則依據該選擇結果而控制對各設備的供給電流。如 39 1277888 此一來,可不必插拔USB電纜Cl即能選擇是否使用該連接 於主機裝置51之各設備61〜67、71〜73。X,依據狀態視 窗W1〜W3能確認在該時點之各設備的使用狀態。 習知技術上於增加主機裝置之通訊埠之埠數時,隨著 5該通訊埠的增設乃有必要提昇電流供給電路之電流供給能 力,而會產生電路規模變大的問題。相對於此,第5實施樣 態係配合電流供給電路55之電流供給能力而能管理對各設 備61〜67、71〜73的供給電流,因此能抑制電路規模且能 增設埠數。 1〇 (2)由於顯不器56之顯示畫面(狀態視窗W1〜W3、W11 〜W13的晝面)以GUI形式顯示,因此能以滑鼠操作而容易 地選擇顯示於各狀態視窗W1〜W3、wu〜㈣的選擇按 紐。 (3)於狀態視窗W1〜W3顯示主機裝置51可供給之容許 b電流與從該主機裝置51供給至各設備61〜67、71〜73的使 用電流與從容許電流減去使用電流後的餘裕電流。此情形 下操作者可確認餘裕電流以使其不超過主機裝置Μ之能 力,且能選擇不必要之設備的關閉按叙而選擇必要之設備 的開啟按钮。 ⑷將連接於主機褒置51之通訊埠ρι〇的脳乃、85的狀 態視窗WH〜W13與主機裝置51的狀態視窗wi〜w予以 分別顯示。此情形下能藉操作者來確認獅73、85的狀態視 i) W11〜W13而錢切地進行管理其連接臟73、85之各設 備81〜84的供給電流。 40 1277888 (5)於主機裝置51,由於在連接電流供給電路55與各通 訊埠P1〜P10設置之電流經過路徑的途中設置了限制器 85,因此能防止系統呈現不穩定。 以下說明將本發明予以具體化的第6實施樣態。 5 第29圖係相關本發明之第6實施樣態之主機裝置51a之 概略性的方塊電路圖。 於第6實施樣態之主機裝置51a的構成與第5實施樣態 之主機裝置51相同。如第29圖所示主機裝置5 la具有複數的 通§fl埠P1〜P10 ’而USB設備D1〜D10分別連接此等通訊埠 10 P1 〜P10。 設備D1〜D9係與第5實施樣態之設備61〜65、71、72、 66、67實質上相同的設備而具有相同的電性射性(USB機 能、要求值)。設備D10為光碟,其要求值為500mA。以下 的說明中適宜地使用設備(例如設備D1)或裝置名稱(例如鍵 15 盤 D1)。 控制電路即MPU52依據儲存於記憶體53之程式而執行 各種處理並總括性地控制主機裝置51a。儲存於記憶體53之 程式包含通訊程式與顯示程式與電流控制程式與應用程 式。通訊程式係控制主控制器54或電流供給電路55的程 式。顯示程式係以GUI(Graphic User Interface)將連接於各 通訊埠P1〜P1之各設備D1〜D10之機器資訊顯示於顯示器 56的程式。電流控制程式係控制對連接於各通訊璋ρι〜ρι 之各設備D1〜D10供給之電流的程式。 應用程式係用於計算表、製成文章、影像處理等的程 20 1277888 式,MPU53於應用程式之執行上會使用上述的設備。例如 執行用於計算表之應用程式之際,MPU53從硬碟D3(D6、 D乃讀出利用於計算的資料,並將此資料列印於印表機D2。 依據執4亍上述應用私式專而使用連接於各通訊璋P1〜 5 P10之USB設備D1〜D10的情形下,MPU52變更此等設備的 運作狀態。MPU52於要使用之設備在非活性狀態時進行運 作狀態的變更。 具有USB機能之設備具有以匯流排驅動的設備與本身 具驅動能力的設備。以匯流排驅動的設備之USB機能及設 10 備本體係藉由USB電纜C1供給之電流而作動。本身具驅動 能力的設備之設備本體係藉由外部電源而作動,USB機能 係藉由USB電纟覽而供給的電流或其電流及外部電源而作 動。又,非活性化狀態(suspend)的設備對該USB機能供給 與主機裝置51a之最低限度可通訊(設備重置或接收資料信 15 號)的電流(於第5實施樣態為2.5mA)。對活性化狀態(Active) 的設備則因應通訊速度而供給設備所具有之全部可運作的 電流(要求電流)。因此,MPU52將要使用之設備的USB機能 予以活性化,即,將狀態視窗的狀態變更成「Active」而供 給所要求的電流。 2〇 此時,依據設備的活性化而連接之全部設備的合計消 耗電流值超過主機裝置51a的容許電流值時,MPU52有必要 將活性化狀態中之設備的一部分設備予以非活性化而使合 計消耗電流值不超過容許電流值。 因此,MPU52將狀態視窗顯示於顯示器56而要求操作 42 1277888 值為100mA。因此,即使是對印表機d2供給要求值的電流 時,由於超過了主機裝置51a之容許電流,因此運作中之設 備的動作會不穩定。 爰此,MPU52將狀態視窗W12顯示於顯示器56而要求 5操作主機裝置5丨&之操作者判斷是否使用各設備。操作者注 意狀態視窗W12所顯示之容許電流,並以操作鍵盤01的滑 鼠的狀態而選擇於此處理中未使用之掃描器D5中的關閉按 鈕0 其結果如第33圖所示,狀態視窗W13顯示於顯示器 10 56。,狀態視窗W13比較第32圖之狀態視窗W12,第5通訊 埠P5(掃描器D5)之現在值變更成2.5mA,狀態之顯示變更成 「suspend」。又,第2通訊埠P2(印表機D2)之現在值變更成 100mA,狀態之顯示變更成「Active」。又,印表機D2非匯 流排供電的機器而為本身所屬之電源來運作的機器,以藍 15 色表示「Active」狀態。 使用電流為2210mA,相對於2500mA的容許電流,餘 裕電流為290mA。因此,主機裝置5la對印表機D2執行發送 指令等印刷處理。結束該印刷處理後,MPU52回復狀態視 窗 W12。 2〇 本發明之第6實施樣態之主機裝置51 a具有以下的優 點。 (1)主機裝置51a執行應用程式時使用已連接之複數設 備D1〜D10的情形下,於該要使用之設備處於停止狀態時 供給該設備所要求的電流量。此時,判斷以供給要求量之 1277888 機裝置51所具有之複數的通訊埠pi〜pi〇,分別連接設 備D1〜D10。 記憶體53儲存著機能執行旗標53c。如第36圖所示,藉 機能執行旗標53c而使連接於主機裝置51b所具有之通訊埠 5 P1〜P10之設備所具有的動作狀態賦予對應並表示每個通 訊埠P1〜P10。圖中表示「Active」之設備表示動作中,表 示「Wait」之設備表示停止中。 動作中的没備因USB機能亦動作中,故從主機裝置51b 供給該要求值的電流。停止中的設備包含USB機能為動作 10中(Active)者、及USB機能為停止中(Suspend)者。亦即,停 止中的設備包含被供給該要求值之電流的設備、及被供給 因應該動作模式(懸置模式)之少量電流(例如2 5mA)的設 備。 MPU52與第6實施樣態同樣藉執行應用程式等而使用 15處於非活性狀態的設備時,將該設備予以活性化。MPU52 於該設備之活性化而連接之全部設備的合計消耗電流值超 過主機裝置51a之容許電流值時,將處於活性化狀態之若干 設備予以活性化而使其合計消耗電流值不超過容許電流 值。此時,MPU52依據顯示於狀態視窗之資訊(設備的狀態) 20 與機能執利旗標53c而決定要非活性化的設備。 詳而言之,MPU52從機能執行旗標53c檢索處於停止狀 態(Wait)的設備。其次MPU52依據狀態視窗檢索處於停止狀 態之設備中USB機能處於活性化狀態即供給著要求值電流 的設備。MPU52將供給著要求值電流的設備之USB機能變 48 更為停止狀態而降低要供給的電流量。 因此,隨著執行應用等程式而要使用的設備會自動地 被活性化,藉該活性化而使主機裝置51供給至設備的電流 超過容許電流的情形下,於此時未被使用之設備會被自動 5 地變更成停止狀態而確保餘裕電流。因此,不僅可不需耗 費使設備活性化的工時且能防止系統整體的運作呈不穩 定。 又,在停止狀態且USB機能處於活性化狀態之設備存 在複數的情形下,MPU52將其存在之全部的設備變更為 10 「suspend」。藉此,確實地確保餘裕電流而在短時間對於要 使用之設備開始處理。將處於停止狀態之全部的設備變更 為「suspend」的理由,乃在於即使將複數之設備中若干的 設備變更為「suspend」,餘裕電流值亦不會超過要使用之設 備的要求消耗電流值的情形,且必須將設備變更成 15 「suspend」’因此開始處理會變遲之故。 一旦結束預定的運作,MPU52將已使用之設備變更為 停土狀態。設備運作之結束乃由主機裝置51對設備的探詢 而進行。詳細而言,MPU52藉由主控制器54而以預定間隔 發出要求以對設備確認運作狀況,而設備發送回答指令作 2〇為應答。MPU52依據接到的回答指令而確認該設備的運作 狀態。此第7實施樣態有關於運作狀態乃有自動下降電力狀 態、指令結束狀態、機能運作中狀態。又,亦可包含其他 運作狀態的構成。 對設備發出之要求指令及設備發送的回答指令依據該 49 1277888 情形下,MPU52於步驟780依據機能執行旗標而檢索非執行 中的設備。其次,MPU52於步驟790將非執行中的設備予以 非活性化。亦即,依據主機裝置51b而不使用之設備的狀態 變更為「suspend」而確保餘裕電流。MPU52於步驟800將 5 要使用之設備的狀態變更為「Active」而轉移至步驟740。 本發明之第7實施樣態之主機裝置51b具有以下的優 點。 (1)主機裝置51b具有將連接於通訊埠P1〜P10之設備 所具有之運作狀態賦予對應各通訊埠P1〜P10而表示之機 10能執行旗標53c。主機裝置51b以執行應用程式等而將處於 非活性化之設備予以活性化,藉此,已連接之全部設備之 合計消耗電流值超過主機裝置51a之容許電流值時,依據機 能執行旗標53c而將處於活性化之設備之其中若干設備予 以非活性化使其合計消耗電流值不超過容許電流值。此情 15 形下,隨著執行應用等程式而使要使用之設備自動地活性 化,以該活性化而使主機裝置51供給至設備的電流超過容 許電流時,於此時不被使用之設備會自動地被變更成停止 狀態而確保餘裕電流。因此,不僅可不需耗費使設備活性 化的工時且能防止系統整體的運作呈不穩定。 20 以下說明將本發明具體化的第8實施樣態。 於第8實施樣態,主機裝置之構成與第34圖所示之第7 實施樣態相同。第8實施樣態之主機裝置51b具有將停止中 之設備的機能執行旗標變更為OFF,而將機能執行旗標為 OFF之設備的USB機能之機能予以活性化,即將狀態變更為 51 l277888 「suspend」的機能。 因此,結束運作之設備之機能執行旗標設為〇FF。而 且’設備之USB機能被非活性化’因此伴隨於此會減少從 主機裝置51b供給的電流。 5 又,此第8實施樣態之主機裝置5lb與第7實施樣態同樣 以執行應用等程式而使用處於非活性狀態之設備時,會活 性化該設備。此時,如上所述結束運作之設備被活性化, 而供給最低限度之可進行通訊(設備重置或接收資料信號) 的電流(例如2.5mA)。即不進行對不使用之設備供給無謂的 1〇電流。因此,大部分的情形係主機裝置51b之此時的使用電 流量比容許電流量小,而具有充分的要求電流量。主機裝 置51b將要使用之設備的USB機能予以活性化。即,將狀態 視窗的狀態變更為「Active」而供給所要求的電流。 相對於此,因該設備之活性化而使連接之全部設備的 5合计消耗電流值超過容許電流值的情形下,有必要將若干 设備予以活性化而確保要供給的電流量。但是,結束上述 運作的設備被活性化而僅供給可進行最低限度之通訊的電 流。因此,無法如第7實施樣態那般,主機裝置51b藉著將 设備予以非活性化而確保供給電流量。 〇 如此一來,主機裝置5lb將狀態視窗顯示於顯示裝置即 顯不器56而通知操作者電流的供給狀況。而且,主機裝置Hub (Bus Powered Hub) 85. In Hub85, the first communication port P11 is connected to the optical disk 81, the second communication port P12 is connected to the hard disk 82, and the fourth communication port P14 is connected to the DSC83. The status window W13 of the Hub 85 as shown in Fig. 27 is displayed on the display 56 of the host device 51. In this case, since the allowable current of the Hub85 is as small as 15 400 mA, the display window W13 allows the operator to select the necessary equipment so as not to exceed the allowable current. The host device 51 of the fifth embodiment of the present invention has the following advantages. (1) The display 56 of the host device 51 displays machine information indicating the devices 61 to 67, 71 to 73 to which the communication beacons P1 to P10 are connected. The status windows W1 2〇 to W3 display not only the machine information (device name, manufacturer, current consumption) acquired from each of the devices 61 to 67, 71 to 73, but also display for the operator to select the device to be used or Unselected status selection buttons (on button and off button). When the operator confirming the status windows W1 to W3 selects the button, the supply current to each device is controlled in accordance with the selection result. For example, in the case of 39 1277888, it is possible to select whether or not to use the devices 61 to 67, 71 to 73 connected to the host device 51 without plugging and unplugging the USB cable C1. X, according to the state windows W1 to W3, it is possible to confirm the use state of each device at that point in time. In the conventional technology, when the number of communication devices of the host device is increased, it is necessary to increase the current supply capability of the current supply circuit with the addition of the communication port, which causes a problem that the circuit scale becomes large. On the other hand, in the fifth embodiment, the current supply capability of the current supply circuit 55 can be used to manage the supply current to the devices 61 to 67 and 71 to 73. Therefore, the circuit scale can be suppressed and the number of turns can be increased. 1〇(2) Since the display screen of the display unit 56 (the side surfaces of the status windows W1 to W3 and W11 to W13) is displayed in the form of a GUI, it can be easily selected and displayed in each of the status windows W1 to W3 by the mouse operation. , wu~ (four) selection button. (3) In the state windows W1 to W3, the allowable b current that can be supplied from the host device 51 and the used current supplied from the host device 51 to each of the devices 61 to 67, 71 to 73 and the margin after subtracting the used current from the allowable current are displayed. Current. In this case, the operator can confirm the margin current so that it does not exceed the capability of the host device, and can select the unnecessary device to turn off and select the necessary device's on button. (4) The state windows WH to W13 of the communication device 连接ρι〇 connected to the host device 51 and the state windows wi to w13 of the host device 51 are displayed separately. In this case, it is possible to confirm the state of the lions 73 and 85 by the operator, i) W11 to W13, and manage the supply currents of the devices 81 to 84 connected to the dirty portions 73 and 85. 40 1277888 (5) In the host device 51, since the limiter 85 is provided in the middle of the current passing path provided by the connection current supply circuit 55 and each of the communication ports P1 to P10, it is possible to prevent the system from being unstable. The sixth embodiment in which the present invention is embodied will be described below. Fig. 29 is a schematic block circuit diagram of a host device 51a according to a sixth embodiment of the present invention. The configuration of the host device 51a of the sixth embodiment is the same as that of the host device 51 of the fifth embodiment. As shown in Fig. 29, the host device 5 la has a plurality of ports §fl埠P1 to P10' and the USB devices D1 to D10 are connected to the ports 10 P1 to P10, respectively. The devices D1 to D9 have substantially the same electrical conductivity (USB function, required value) as the devices of the fifth embodiment of the devices 61 to 65, 71, 72, 66, and 67. Device D10 is a compact disc with a required value of 500 mA. The device (e.g., device D1) or device name (e.g., key 15 disk D1) is suitably used in the following description. The control circuit, i.e., the MPU 52, performs various processes in accordance with the program stored in the memory 53 and collectively controls the host device 51a. The programs stored in the memory 53 include communication programs and display programs and current control programs and applications. The communication program controls the mode of the main controller 54 or the current supply circuit 55. The display program is a program for displaying the device information of each of the devices D1 to D10 connected to each of the communication ports P1 to P1 on the display 56 by a GUI (Graphic User Interface). The current control program controls a program for supplying currents to the devices D1 to D10 connected to the respective communication ports ρι to ρι. The application is used to calculate tables, articles, image processing, etc. 20 1277888, MPU53 will use the above devices in the execution of the application. For example, when executing an application for calculating a table, the MPU 53 reads out the data used for calculation from the hard disk D3 (D6, D), and prints the data on the printer D2. According to the above application, the application is private. In the case where the USB devices D1 to D10 connected to the respective communication ports P1 to P10 are used exclusively, the MPU 52 changes the operational state of the devices. The MPU 52 changes the operational state when the device to be used is in an inactive state. The functional device has a device driven by a bus bar and a device with its own driving capability. The USB function of the device driven by the bus bar and the device provided by the system are operated by the current supplied by the USB cable C1. The device is activated by an external power supply, and the USB function is operated by the current supplied by the USB power or its current and the external power supply. Further, the device of the non-activated state (suspend) supplies the USB function. The minimum communication of the host device 51a (device reset or receiving data signal No. 15) current (2.5 mA in the fifth embodiment). The activation status (Active) device responds to the communication speed. Gives the device all the currents that can be operated (requires current). Therefore, the MPU52 activates the USB function of the device to be used, that is, changes the state of the status window to "Active" to supply the required current. At this time, when the total current consumption value of all the devices connected according to the activation of the device exceeds the allowable current value of the host device 51a, it is necessary for the MPU 52 to inactivate a part of the devices in the activated state to consume the total current. The value does not exceed the allowable current value. Therefore, the MPU 52 displays the status window on the display 56 and requires the operation 42 1277888 to be 100 mA. Therefore, even if the current of the required value is supplied to the printer d2, the tolerance of the host device 51a is exceeded. The current, therefore, the operation of the device in operation may be unstable. Thus, the MPU 52 displays the status window W12 on the display 56 and requires the operator of the 5 operation host device 5 to determine whether or not to use each device. The operator pays attention to the status window W12. The allowable current is displayed and selected in the state of the mouse operating the keyboard 01 is not used in this process. The result of the close button 0 in the scanner D5 is as shown in Fig. 33, the status window W13 is displayed on the display 1056. The status window W13 compares the status window W12 of Fig. 32, and the fifth communication port P5 (scanner D5) The current value is changed to 2.5 mA, and the status display is changed to "suspend". The current value of the second communication port P2 (printer D2) is changed to 100 mA, and the status display is changed to "Active". Machine D2 is a machine that operates from a power supply that is not connected to the bus, and the "15" color indicates the "Active" status. The current used is 2210 mA, and the residual current is 290 mA with respect to the allowable current of 2500 mA. Therefore, the host device 51a performs a printing process such as a transmission command to the printer D2. After the printing process is finished, the MPU 52 returns to the status window W12. 2. The host device 51a of the sixth embodiment of the present invention has the following advantages. (1) When the host device 51a executes the application program, when the connected plurality of devices D1 to D10 are used, the amount of current required for the device is supplied when the device to be used is in a stopped state. At this time, it is judged that the plurality of communication ports pi pi pi 具有 of the 1277888 device 51 supplied with the required amount are connected to the devices D1 to D10, respectively. The memory 53 stores the function execution flag 53c. As shown in Fig. 36, the borrowing function flag 53c is used to associate the operation states of the devices connected to the communication ports 5 P1 to P10 of the host device 51b with each of the communication ports P1 to P10. In the device display operation indicating "Active" in the figure, the device indicating "Wait" indicates that the device is stopped. Since the USB function is also in operation during the operation, the current of the required value is supplied from the host device 51b. The device that is stopped includes the USB function as Active (Active), and the USB function is Suspend. That is, the device in the stop includes a device that supplies the current of the required value, and a device that is supplied with a small amount of current (e.g., 25 mA) in the operation mode (suspension mode). Similarly to the sixth embodiment, the MPU 52 activates the device by using an apparatus that is in an inactive state by executing an application or the like. When the total current consumption value of all the devices connected to the activation of the device exceeds the allowable current value of the host device 51a, the MPU 52 activates a plurality of devices in an activated state so that the total current consumption value does not exceed the allowable current value. . At this time, the MPU 52 determines the device to be deactivated based on the information (state of the device) 20 displayed on the status window and the function flag 53c. In detail, the MPU 52 retrieves the device in the stop state from the function execution flag 53c. Next, the MPU 52 searches the device in the stopped state according to the status window to activate the device in which the USB function is activated, that is, supplies the required value current. The MPU 52 reduces the amount of current to be supplied by changing the USB function of the device supplying the required value current to the stop state. Therefore, the device to be used is automatically activated as the program such as the application is executed, and if the current supplied to the device by the host device 51 exceeds the allowable current by the activation, the device that is not used at this time will It is automatically changed to the stop state by 5 to ensure the residual current. Therefore, not only does it take time to activate the equipment, but it also prevents the overall operation of the system from being unstable. Further, in the case where there are a plurality of devices in the stopped state and the USB function is activated, the MPU 52 changes all the devices in which it exists to 10 "suspend". Thereby, the margin current is surely secured and the processing is started for the device to be used in a short time. The reason for changing all the devices in the stopped state to "suspend" is that even if some devices in a plurality of devices are changed to "suspend", the margin current value does not exceed the required current consumption value of the device to be used. In this case, the device must be changed to 15 "suspend"' so the processing will be delayed later. Once the scheduled operation is completed, the MPU 52 changes the used device to the ground state. The end of the operation of the device is performed by the host device 51 interrogating the device. In detail, the MPU 52 issues a request at a predetermined interval by the main controller 54 to confirm the operation status to the device, and the device transmits an answer command as a response. The MPU 52 confirms the operational status of the device based on the received answer command. The seventh embodiment has an automatic power-down state, a command end state, and a functional state in operation. Also, it may include other operational states. The request command issued by the device and the answer command sent by the device are based on the 49 1277888 case, and the MPU 52 retrieves the non-executing device according to the function execution flag in step 780. Second, MPU 52 deactivates the non-executing device in step 790. That is, the state of the device not used by the host device 51b is changed to "suspend" to secure the margin current. The MPU 52 changes the state of the device to be used to "Active" in step 800, and proceeds to step 740. The host device 51b of the seventh embodiment of the present invention has the following advantages. (1) The host device 51b has a machine flag 5c capable of executing the flag 53c by giving the operation state of the devices connected to the communication ports P1 to P10 to the corresponding communication ports P1 to P10. The host device 51b activates the inactive device by executing an application or the like, whereby when the total consumed current value of all connected devices exceeds the allowable current value of the host device 51a, the flag 53c is executed according to the function. Some of the devices in the activated device are deactivated such that the total current consumption value does not exceed the allowable current value. In this case, the device to be used is automatically activated as the program is executed, and the device that is not used at this time when the current supplied from the host device 51 to the device exceeds the allowable current with the activation. It is automatically changed to the stop state to ensure the residual current. Therefore, it is possible to prevent the operation of the entire system from being unstable without not only consuming the man-hours for activating the device. 20 Hereinafter, an eighth embodiment of the present invention will be described. In the eighth embodiment, the configuration of the host device is the same as that of the seventh embodiment shown in Fig. 34. The host device 51b of the eighth embodiment has the function of changing the function execution flag of the device being stopped to OFF, and the function of the USB function of the device whose function flag is OFF is activated, that is, the state is changed to 51 l277888" The function of suspend". Therefore, the function execution flag of the device that ends the operation is set to 〇FF. Moreover, the USB function of the device is deactivated, so that the current supplied from the host device 51b is reduced. In the same manner as the seventh embodiment, the host device 51b of the eighth embodiment can activate the device when the device in an inactive state is used to execute an application or the like. At this time, the device that has finished operating as described above is activated, and a minimum current (for example, 2.5 mA) for communication (device reset or reception of a data signal) is supplied. That is, no unnecessary current is supplied to the equipment that is not used. Therefore, in most cases, the current usage current of the host device 51b is smaller than the allowable current amount, and has a sufficient required current amount. The host device 51b activates the USB function of the device to be used. That is, the state of the status window is changed to "Active" and the required current is supplied. On the other hand, when the total current consumption value of all the connected devices exceeds the allowable current value due to the activation of the device, it is necessary to activate a plurality of devices to secure the amount of current to be supplied. However, the device that ends the above operation is activated and supplies only the current that can perform the minimum communication. Therefore, the host device 51b cannot ensure the amount of supply current by deactivating the device as in the seventh embodiment. In this manner, the host device 51b displays the status window on the display device, that is, the display unit 56, to notify the operator of the supply status of the current. Moreover, the host device

Mb將警告視窗顯示於顯示器56並對於操作主機裝置51之 操作者要求判斷繼續處理等。 如第39圖所示,於警告視窗W21顯示警告訊息及複數 52 1277888 (第39圖為三個)的項目。於本實施樣態中,第1項目為停止 現在動作的項目,第2項目為停止第丨項目以外的動作,第3 項目為等待到電力足夠的項目。 操作者操作鍵盤61的滑鼠而選擇三個項目之中的一 5個。當操作者選擇第1項目的情形下,主機裝置51b停止現 在要執行的動作。例如依據執行應用等程式而使用印表機 62進行印刷的情形下,停止對該印表機62的動作,即停止 印刷處理。 當操作者選擇第2項目的情形下,操作者進一步操作鍵 10盤61的滑鼠並注意顯示在狀態視窗的容許電流而停止動作 並選擇設備所連接之通訊埠的選擇器(〇N/〇FF)。主機裝 置51b減少供給至經選擇之通訊埠的電流量而將連接於該 通訊埠之設備的USB機能予以非活性化。藉此,為了供給 依其時間之動作而要使用之設備所要求的電流,能確保充 I5分的餘裕電流1,主機裝置5lb對要使用之設備供給要求量 的電流,而將該設備之USB機能予以活性化。 操作者選擇第3項目的情形下,主機裝置51b等待至電 力足夠,即,等待其他設備的停止。於現狀機能執行旗標 處於ON狀態的設備,依其運作結束而將機能執行旗標設成 2〇 OFF,且使USB機能非活性化。藉此非活性化而使從主機裝 置51b供給至設備之電流量變少而增加餘裕電流量。因此, 主機裝置51b停止要活性化之設備以外的設備而藉藉將其 非活性化,待機至餘裕電流量比要活性化之設備的要求值 大0 53 1277888 此時,主機裝置51b於每一預定時間比較餘裕電流量與 要活性化之設備的要求值,並等待該餘裕電流量比要求值 大的情形。一旦餘裕電流量比要求值大,則主機裝置5ib對 於要使用之設備供給要求量的電流而將該設備之USB機能 5 予以活性化。 第37、38圖表示執行應用等程式時之設備控制處理的 流程圖。 MPU52首先在步驟810比較餘裕電流值與要使用之設 備的要求值而判斷是否可對該設備供給電流。 10 當判斷可供給電流(餘裕電流值-要求值)的情形下, MPU52於步驟820將儲存於記憶體53之第丨區域之資訊 中,將要使用之設備的狀態變更為rActive」。其次,MpU52 於步驟830將機能執行旗標變更為。Mpu52在步驟84〇對 於要使用之設備供給要求值電流。 15 之後,MPU52執行對該設備的處理。從主機裝置51b 供給要求值電流而使設備之USB機能活性化,應答從主機 裝置5ib依據處理而發送之資料並予以運作。一旦結束該動 作將知止中之设備的機能執行旗標變更為〇1^,並使機 能執行旗標為OFF之設備的USB機能設成非活性化。此一將 2〇設備予以非活性化的處理乃無關執行主機裝置51b要執行 之應用等程式而進行,因此主機裝置训不需等待賴備所 執行之處理結束,而能執行其次的處理。 對於此’於步驟8ig判斷不能供給電流的情形下, 2於步驟850顯tf警告視窗㈣卜於步驟議顯示狀態 54 1277888 窗MPU52於步驟87〇操作者等待輸入警告視窗Μ 視窗之至少一方的情形 此乃由於此第8實施樣態之警告視窗W21有作為必須 輸入狀態視窗的項目(第2項目)之故。因此,此等步驟850 5 470的處理及順序可適宜地變更。例如,顯示警告視窗、 等待對該視窗之輸人,因應必要而顯示狀態視窗。 其次’於步驟880,MPU52判斷於步驟87〇之輸入是否 為「停止運作」’若是「停止運作」則結束對該步驟的處理。 例如’於執行應用中進行印刷的情形下,使用印表機w(參 1〇照第2^9圖)。使用印表機62無充分的餘裕電流而於步驟請 選擇停止運作的情形下,MPU52中斷使用該印表機&而再 開始執行應用。 於步驟880判斷非「停止運作」的情形下,Mpu52於步 驟890判斷狀態視窗内的動作是否已停止。至於停止乃藉= 15擇器之切換而判斷。亦即,MPU52判定顯示於狀態視^之 選擇攔的按鈕是否已切換,而於已切換的情形下轉移至第 37圖所示之步驟820並執行之後的處理。又,已切換選擇器 獻按紐的情形下,判斷可供給電力,即亦可建構成轉移 至步驟810。 20 於步驟89〇之輸入不進行狀態視窗内之停止運作,即於 此第8實施樣態選擇「等待至電力足夠」的情形下,Mpu52 等待至可供給電力。即,MPU52於步驟90〇等待預定經過時 間而於步驟910依據餘裕電流量而判斷是否已可供給電 力。不能供給電力的情形下,MPU52轉移至步驟9〇〇。^ , 55 1277888 反覆執行步驟900與步驟9i〇而等待可供給電力。 於步驟910判斷為可供給電力時,則MpU52轉移至第” 圖所示的步驟820而執行之後的處理。 本發明之第8實施樣態之主機裝置5丨b具有以下的優 5 點。 U)主機裝置51b將停止中之設備的機能執行旗標變更 為off,而將機能執行旗標為〇FF之設備的USB機能予以非 活性化。此情形下,結束運作之設備的機能執行旗標設為 OFF。而且设備之USB機能被非活性化,因此隨此情形而減 1〇少從主機裝置51b供給的電流而能降低消耗電流值。 (2)主機裝置5 lb將狀態視窗顯示於顯示裝置即顯示器 56而將電流之供給狀況通知操作者。而且,主機裝置51七將 “口視®顯示於顯示器56並對於操作主機裝置51之操作者 要求判斷繼續處理等。操作者選擇繼續處理的情形下,主 機凌置51b待機至可供給電流,因此可不耗費工時而能繼續 處理。操作者選擇中止處理的情形下,由於會中斷使用設 備的處理,因此能執行其他處理。 上述實施樣態可作以下的變更。 第1實施樣態中,說明了主機裝置U為了探詢各設備21 ° 23供給電流的變更,而使用組態描述符之最大消耗電流 乾疇,惟不限定於此。組態描述符以外的描述符的範疇、 没定新穎的描述符或範疇而使用該新穎範疇、而進行用以 變更供給電流的協定。 在第1實施樣態,控制電路mMPU52執行第2圖之處 56 1277888 理,惟於主控制器14亦可設置用以執行第2圖之處理的控制 部。又,於第2〜第4實施樣態,MPU52亦執行第1丨圖、第 13圖及第14圖的處理,惟設於USB控制器35之控制部亦可 設成執行此等處理。如此一來,可構成能降低MPU12、33 5的處理負荷而為實用上良好者。 於第9圖之設備31亦可設置切換内部電路之消耗電流 的位準開關(設定讀出或寫入資料之速度的開關)。此情形下 與第3實施樣態同樣因應位準開關之設定值而變更要記憶 於暫存器36a的消耗電流,於此變更後藉開關單元42的切換 10 動作而暫時性地將設備31設成切斷狀態。即使如此亦能以 因應位準開關之設定值的適切供給電流使設備31運作。 亦可取代第2〜第4實施樣態1之開關單元42(參照第1 〇 圖)為第28圖所示之開關單元42A。即,第28圖之開關單元 42A具有複數的開關元件(M0S電晶體)Tr卜Tr2、Tr3而控制 15 各開關元件Trl〜Tr3,並使主機裝置41識別設備31的切 斷。具體而言,以Full Speed運作之設備31藉由MPU33來的 控制信號S1而關閉開關元件Tr 1而切斷要傳達通訊資料之 信號線D+的提昇電阻ri。藉此,信號線d+、D—形成所 謂「SEO」的狀態,因此能使主機裝置41識別已切斷設備31 20 的情形。又,以High Speed運作之設備31藉由MPU33來的 控制信號S2、S3而關閉開關元件Tr2、Tr3,而使要傳達通 訊資料的信號線D+、D—呈高阻抗狀態。藉此,信號線D +、D—之電壓位準會超過USB規格之斷開電壓值(例如 625mV),因此,能使主機裝置41識別設備31被切斷的情形。 57 I277888 把麦更為停止狀態。此情形下,由於處於停止狀態之設備 的電流供絡係自動地停上,因此能降低系統整體的消耗電 力。 於弟7、第8實施樣態亦可構成設備以每預定時間間隔 5通知運作狀態(自動電力下降狀態、指令結束狀態、機能運 作中)°此情形下,主機裝置不必要對設備發出要求指令, 因此對於主機裝置之一般處理能減少負擔而達到高速化處 理。 於第8實施樣態亦可適切地變更警告視窗W21的内容 10與對此内容的處理。例如對於要使用之設備供給電流無餘 裕的情形下,可設成待機至可供給電流而將顯示要待機的 主旨與顯示要求判斷是否中斷處理之主旨顯示於視窗。 【阳式簡單說明】 第1圖係相關本發明之第丨實施樣態之主機裝置之概略 15 性的方塊電路圖。 第2圖表示用以連接識別新穎設備之處理的流程圖。 第3圖表示在主機裝置與各設備之間進行之協定的說 明圖。 第4圖表示在主機裝置與各設備之間進行之協定的說 20 明圖。 第5圖表示在主機裝置與各設備之間進行之協定的說 明圖。 第6圖表示在主機裝置與各設備之間進行之協定的說 明圖。 59 1277888 第7圖表示在主機裝置與各設備之間進行之協定的說 明圖。 第8圖表示在主機裝置與各設備之間進行之協定的說 明圖。 5 第9圖係相關本發明之第2實施樣態之設備之概略性的 方塊電路圖。 第10圖係開關單元的電路圖。 第11圖表示第2實施樣態之連接識別處理的流程圖。 第12圖係相關本發明之第3實施樣態之設備之概略性 10 的方塊電路圖。 第13圖表示第3實施樣態之連接識別處理的流程圖。 第14圖表示本發明之第4實施樣態之連接識別處理的 流程圖。 第15圖係相關本發明之第5實施樣態之主機裝置之概 15 略性的方塊電路圖。 第16圖表示對主機裝置之各設備之連接狀態的方塊電 路圖。 第17圖表示狀態視窗的說明圖。 第18圖表示對主機裝置之各設備之連接狀態的方塊電 20 路圖。 第19圖表示狀態視窗的說明圖。 第20圖表示狀態視窗的說明圖。 第21圖表示用以表示狀態視窗之處理的流程圖。 第22圖表示Hub之各設備之連接狀態的說明圖。 1277888 第23圖表示Hub之狀態視窗的說明圖。 第24圖表示Hub之各設備之連接狀態的說明圖。 第25圖表示Hub之狀態視窗的說明圖。 第26圖表示Hub之各設備之連接狀態的說明圖。 5 第27圖表示Hub之狀態視窗的說明圖。 第28圖表示開關單元之其他例的電路圖。 第29圖係相關本發明之第6實施樣態之主機裝置之概 略性的方塊電路圖。 第30圖表示第6實施樣態之設備控制處理的流程圖。 10 第31圖表示狀態視窗的說明圖。 第32圖表示狀態視窗的說明圖。 第33圖表示狀態視窗的說明圖。 第34圖係相關本發明之第7實施樣態之主機裝置之概 略性的方塊電路圖。 15 第35圖表示第7實施樣態之設備控制處理的流程圖。 第36圖表示功能執行旗標之狀態的說明圖。 第37圖表示本發明之第8實施樣態之設備控制處理的 流程圖。 第38圖表示第8實施樣態之設備控制處理的流程圖。 20 第39圖表示警告視窗的說明圖。 第40圖表示用以連接識別新穎設備之處理的流程圖。 第41圖係用以說明USB之資料傳送的說明圖。 【主要元件符號說明】Mb displays the warning window on the display 56 and requests the operator of the operation host device 51 to judge the processing to continue or the like. As shown in Fig. 39, the warning message W21 is displayed in the warning window W21 and the plural number 52 1277888 (three in the 39th figure). In the present embodiment, the first item is an item that stops the current operation, the second item is an operation other than the stop of the third item, and the third item is an item waiting for sufficient power. The operator operates the mouse of the keyboard 61 to select one of the three items. When the operator selects the first item, the host device 51b stops the action that is currently to be performed. For example, in the case of printing using the printer 62 in accordance with a program such as executing an application, the operation of the printer 62 is stopped, that is, the printing process is stopped. When the operator selects the second item, the operator further operates the mouse of the key 10 of the key 10 and pays attention to the display of the allowable current in the status window to stop the operation and select the selector of the communication device to which the device is connected (〇N/〇 FF). The host device 51b reduces the amount of current supplied to the selected communication port to deactivate the USB function of the device connected to the communication port. Thereby, in order to supply the current required by the device to be used according to the operation of the time, it is possible to ensure a surplus current of 1 in 5 minutes, and the host device 5lb supplies a required amount of current to the device to be used, and the device is USB. The function is activated. In the case where the operator selects the third item, the host device 51b waits until the power is sufficient, that is, waits for the stop of the other device. The device whose status flag is in the ON state is set to 2〇 OFF according to the end of its operation, and the USB function is deactivated. Thereby, the amount of current supplied from the host device 51b to the device is reduced by the inactivation, and the amount of surplus current is increased. Therefore, the host device 51b stops the device other than the device to be activated and deactivates it, and waits until the margin current is larger than the required value of the device to be activated. 0 53 1277888 At this time, the host device 51b is The predetermined time compares the amount of surplus current with the required value of the device to be activated, and waits for the case where the margin current is larger than the required value. When the amount of surplus current is larger than the required value, the host device 5ib supplies a required amount of current to the device to be used to activate the USB function 5 of the device. Figures 37 and 38 show flow charts of device control processing when a program such as an application is executed. The MPU 52 first compares the margin current value with the required value of the device to be used in step 810 to determine whether current can be supplied to the device. 10 When it is judged that the current can be supplied (the margin current value - the required value), the MPU 52 stores the information stored in the third area of the memory 53 in step 820, and changes the state of the device to be used to rActive. Next, the MpU 52 changes the function execution flag to 365 in step 830. The Mpu 52 supplies the required value current to the device to be used in step 84. After 15, the MPU 52 performs processing of the device. The required value current is supplied from the host device 51b to activate the USB function of the device, and the data transmitted from the host device 5ib in accordance with the processing is responded to and operated. Once this action is completed, the function execution flag of the device in question is changed to 〇1^, and the USB function of the device whose function flag is OFF is set to be inactive. Since the process of deactivating the device is performed regardless of the program to be executed by the host device 51b, the host device does not have to wait for the processing executed by the device to end, and can perform the next processing. In the case where it is judged in step 8ig that the current cannot be supplied, 2 in step 850, the warning window (4) is displayed in the step display state 54 1277888. The window MPU 52 is in step 87. The operator waits for the input of at least one of the warning window 视窗 window. This is because the warning window W21 of the eighth embodiment has an item (second item) as an input state window. Therefore, the processing and order of these steps 850 5 470 can be appropriately changed. For example, a warning window is displayed, waiting for the input to the window, and the status window is displayed as necessary. Next, in step 880, the MPU 52 determines whether the input in step 87 is "stop operation". If it is "stop operation", the processing of this step is ended. For example, in the case of performing printing in an execution application, the printer w is used (refer to Fig. 2^9). In the case where the printer 62 does not have sufficient margin current and the operation is stopped in the step, the MPU 52 interrupts the use of the printer & and resumes execution of the application. In the case where it is judged in step 880 that the operation is not "stopped", the Mpu 52 determines in step 890 whether the action in the status window has stopped. As for the stop, it is judged by the switch of the switch. That is, the MPU 52 judges whether or not the button displayed in the status screen has been switched, and in the case of switching, shifts to step 820 shown in Fig. 37 and executes the subsequent processing. Further, in the case where the selector button has been switched, it is judged that the power can be supplied, or the configuration can be shifted to step 810. 20 In step 89, the input does not perform the stop operation in the status window. That is, in the eighth embodiment, when "waiting until the power is sufficient" is selected, the Mpu 52 waits until the power can be supplied. That is, the MPU 52 waits for a predetermined elapsed time in step 90 and determines whether or not power is available in accordance with the amount of margin current in step 910. In the case where power cannot be supplied, the MPU 52 shifts to step 9〇〇. ^ , 55 1277888 repeatedly performs steps 900 and 9i and waits for power to be supplied. When it is determined in step 910 that the power can be supplied, the MpU 52 shifts to the step 820 shown in the figure to perform the subsequent processing. The host device 5A of the eighth embodiment of the present invention has the following advantages. The host device 51b changes the function execution flag of the device in the stop to off, and deactivates the USB function of the device whose function is flagged as 〇FF. In this case, the function execution flag of the device that ends the operation It is set to OFF, and the USB function of the device can be deactivated. Therefore, the current supplied from the host device 51b can be reduced by one to reduce the current consumption value. (2) The host device 5 lb displays the status window at The display device 56, which is the display device, notifies the operator of the supply status of the current. Further, the host device 51 displays "Mouth View®" on the display 56 and requests the operator of the operation host device 51 to continue processing or the like. In the case where the operator chooses to continue processing, the host device 51b stands by until the current can be supplied, so that the processing can be continued without labor. In the case where the operator selects the abort processing, since the processing of using the device is interrupted, other processing can be performed. The above embodiment can be modified as follows. In the first embodiment, the host device U is described as the maximum current consumption domain of the configuration descriptor in order to interrogate the change of the supply current of each device 21 ° 23 , but is not limited thereto. The category for descriptors other than the configuration descriptor, the novel descriptor or the category are not used, and the novelty is used to change the supply current. In the first embodiment, the control circuit mMPU 52 executes the second figure 56 1277888, but the main controller 14 can also be provided with a control unit for executing the processing of Fig. 2. Further, in the second to fourth embodiments, the MPU 52 also performs the processes of the first, third, and fourteenth embodiments, but the control unit provided in the USB controller 35 may be configured to execute such processes. In this way, it is possible to reduce the processing load of the MPUs 12 and 33, and it is practically good. The device 31 of Fig. 9 can also be provided with a level switch for switching the current consumption of the internal circuit (a switch for setting the speed at which data is read or written). In this case, similarly to the third embodiment, the current consumption to be stored in the register 36a is changed in accordance with the set value of the level switch. After the change, the switch 10 of the switch unit 42 is operated to temporarily set the device 31. In the cut state. Even so, the device 31 can be operated with a suitable supply current in response to the set value of the level switch. The switch unit 42 (see Fig. 1) in the second to fourth embodiments may be replaced by the switch unit 42A shown in Fig. 28. That is, the switch unit 42A of Fig. 28 has a plurality of switching elements (M0S transistors) Tr Tr2, Tr3 to control the respective switching elements Tr1 to Tr3, and causes the host device 41 to recognize the cutting of the device 31. Specifically, the device 31 operating at Full Speed turns off the switching element Tr 1 by the control signal S1 from the MPU 33, and cuts off the boosting resistor ri of the signal line D+ to which the communication data is to be transmitted. Thereby, the signal lines d+, D- form a state of "SEO", so that the host device 41 can recognize that the device 31 20 has been disconnected. Further, the device 31 operating at High Speed turns off the switching elements Tr2, Tr3 by the control signals S2, S3 from the MPU 33, and causes the signal lines D+, D- to which the communication data is to be transmitted to be in a high impedance state. Thereby, the voltage level of the signal lines D + , D - exceeds the disconnection voltage value of the USB specification (for example, 625 mV), so that the host device 41 can recognize that the device 31 is turned off. 57 I277888 Stops the wheat. In this case, since the current supply system of the device in the stopped state is automatically stopped, the power consumption of the entire system can be reduced. In the seventh embodiment, the eighth embodiment can also constitute the device to notify the operating state every time the predetermined time interval 5 (automatic power down state, command end state, function operation). In this case, the host device does not need to issue a request instruction to the device. Therefore, the general processing of the host device can reduce the load and achieve high speed processing. In the eighth embodiment, the content 10 of the warning window W21 and the processing of this content can be appropriately changed. For example, when there is no surplus in the supply current of the device to be used, it is possible to display the purpose of waiting for the current to be supplied, and to display whether or not to wait for the display and to determine whether or not to interrupt the process. [A brief description of the male type] Fig. 1 is a schematic block diagram of a host device according to a third embodiment of the present invention. Figure 2 shows a flow diagram for the process of connecting to identify a novel device. Fig. 3 is a diagram showing an agreement between the host device and each device. Figure 4 is a diagram showing the agreement between the host device and each device. Fig. 5 is a diagram showing an agreement between the host device and each device. Fig. 6 is a diagram showing an agreement between the host device and each device. 59 1277888 Figure 7 shows an illustration of the agreement between the host device and each device. Fig. 8 is a diagram showing an agreement between the host device and each device. 5 Fig. 9 is a schematic block circuit diagram of an apparatus according to a second embodiment of the present invention. Figure 10 is a circuit diagram of the switching unit. Fig. 11 is a flow chart showing the connection identification processing of the second embodiment. Fig. 12 is a block circuit diagram showing a schematic 10 of the apparatus of the third embodiment of the present invention. Fig. 13 is a flow chart showing the connection identification processing of the third embodiment. Fig. 14 is a flow chart showing the connection recognition processing of the fourth embodiment of the present invention. Fig. 15 is a block diagram showing the outline of a host device according to a fifth embodiment of the present invention. Fig. 16 is a block circuit diagram showing the connection state of each device of the host device. Fig. 17 is an explanatory diagram showing a status window. Fig. 18 is a block diagram showing the connection state of each device of the host device. Fig. 19 is an explanatory diagram showing a status window. Fig. 20 is an explanatory diagram showing a status window. Figure 21 is a flow chart showing the processing of the status window. Fig. 22 is an explanatory diagram showing the connection state of each device of the Hub. 1277888 Figure 23 shows an illustration of the status window of the Hub. Fig. 24 is an explanatory diagram showing the connection state of each device of the Hub. Figure 25 shows an explanatory diagram of the status window of the Hub. Fig. 26 is an explanatory diagram showing the connection state of each device of the Hub. 5 Figure 27 shows an illustration of the status window of the Hub. Fig. 28 is a circuit diagram showing another example of the switching unit. Figure 29 is a schematic block circuit diagram of a host device relating to a sixth embodiment of the present invention. Fig. 30 is a flow chart showing the device control processing of the sixth embodiment. 10 Figure 31 shows an explanatory diagram of the status window. Fig. 32 is an explanatory view showing a status window. Figure 33 shows an explanatory diagram of the status window. Figure 34 is a schematic block circuit diagram of a host device in accordance with a seventh embodiment of the present invention. 15 Fig. 35 is a flow chart showing the device control processing of the seventh embodiment. Fig. 36 is an explanatory diagram showing the state of the function execution flag. Fig. 37 is a flow chart showing the device control processing of the eighth embodiment of the present invention. Fig. 38 is a flow chart showing the device control processing of the eighth embodiment. 20 Figure 39 shows an explanatory diagram of the warning window. Figure 40 shows a flow diagram for the process of connecting to identify a novel device. Figure 41 is an explanatory diagram for explaining the data transfer of USB. [Main component symbol description]

11 主機裝置 12MPU 1277888 13 記憶體 42A 開關單元 14 主控制器 42a 、42b開關電路 14a 暫存器 Sa^ Sb 控制信號 15 電流供給電路 D + 、D— 信號線 16 電流監視電路 43 設備 17 内部匯流排 44 控制器 PI〜P3 通訊埠 45 控制揚聲器 21 〜23 丨第1〜第3設備 46 位準開關 Cl USB電纜 51 主機裝置 25 開關電路 51a 主機裝置 31 設備 51b 主機裝置 32 光碟 52 MPU 33 MPU 53 記憶體 34 記憶體 53c 旗標 35 USB控制器 54 主控制器 36 電力控制器 54a 暫存器 36a 暫存器 55 電流供給電路 37 設備控制器 56 顯示器 38 碟片旋轉用馬達 57 内部匯流排 39 内部匯流排 PI〜P10 第1〜第10通訊埠 PO USB通訊埠 D1〜DIO USB設備 Cl USB電纜 Pll〜P20 第1〜第10通訊埠 41 主機裝置 58 限制器 42 開關單元 61 鍵盤11 Host device 12MPU 1277888 13 Memory 42A Switch unit 14 Main controller 42a, 42b Switch circuit 14a Register Sa^ Sb Control signal 15 Current supply circuit D + , D - Signal line 16 Current monitoring circuit 43 Device 17 Internal bus 44 Controller PI~P3 Communication 埠45 Control Speaker 21~23 丨1st to 3rd Device 46 Position Switch Cl USB Cable 51 Host Device 25 Switch Circuit 51a Host Device 31 Device 51b Host Device 32 Disc 52 MPU 33 MPU 53 Memory Body 34 Memory 53c Flag 35 USB Controller 54 Main Controller 36 Power Controller 54a Register 36a Register 55 Current Supply Circuit 37 Device Controller 56 Display 38 Disc Rotation Motor 57 Internal Bus 39 Internal Confluence Row PI~P10 1st to 10th communication 埠PO USB communication 埠D1~DIO USB device Cl USB cable Pll~P20 1st to 10th communication 埠41 Host device 58 Limiter 42 Switch unit 61 Keyboard

62 1277888 62 印表機 P11 63 硬碟 P12 64 光碟 83 65 掃描器 P14 66、 67 DSC 85 7卜 72 硬碟 Trl· 73 Hub R1 W1〜W3 狀態視窗 81 光碟 82 硬碟62 1277888 62 Printer P11 63 Hard Disk P12 64 Disc 83 65 Scanner P14 66, 67 DSC 85 7 Bu 72 Hard Disk Trl· 73 Hub R1 W1~W3 Status Window 81 Disc 82 Hard Disk

第1通訊埠 第2通訊埠 DSC 第4通訊璋 限制器1st communication 埠 2nd communication 埠 DSC 4th communication 限制 limiter

Tr3 開關元件 電阻 63Tr3 switching element resistance 63

Claims (1)

r. 1277888 十、申請專利範圍· 竿叭124539號申請/案申請專利範園皇握 1. 一種主機裝置,係藉著用以進行串列通訊之複數匯流排 而供電以使複數設備運作者,其特徵在於包含有: 5 複數之通訊埠,其係用以連接前述複數设備者; 通訊電路,其係連接前述複數通訊埠且藉著與前述 複數設備之間的通訊而從前述複數設備取彳矛包含前述複 數設備之消耗電流之複數機器資訊者; 電流供給電路, 其係連接前述複數通訊埠而將電流 10 供給至前述複數設備者;及 控制電路,其係連接前述通訊電路與前述電流供給 電路,而新連接前述複數通訊埠之設備的消耗電流與已 連接識別完成之設備的消耗電流的合計值超過前述電流 供給電路可供給之電流時,變更從前述電流供給電路供 15 給至前述複數設備之供給電流者。 2. 如申請專利範圍第1項之主機裝置,其中前述控制電路對 新連接之設備及連接識別完成之設備變更供給電流的分 配。 3·如申請專利範圍第1或2項之主機裝置,其中前述通訊電 路具有將前述電流供給電路之可供給的電流值發送至前 述複數設備的機能。 4.如申請專利範圍第3項之主機裝置,其中前述匯流排係通 用串列匯流排,前述通訊電路利用以該匯流排規格為準 據之指令而將前述可供給之電流值發送至前述複數之設 64 1277888r. 1277888 X. Patent Application Scope 竿 124 124 124539 Application/Case Application Patent Fan Yuanhuang Grip 1. A host device that supplies power to multiple device operators by means of a plurality of bus bars for serial communication. The utility model is characterized in that: a plurality of communication ports are used for connecting the plurality of devices; a communication circuit is connected to the plurality of communication ports and is taken from the plurality of devices by communication with the plurality of devices. The spear includes a plurality of machine information of the current consumption of the plurality of devices; a current supply circuit that connects the plurality of communication ports to supply the current 10 to the plurality of devices; and a control circuit that connects the communication circuit and the current Supplying the circuit, and when the total value of the current consumption of the device newly connected to the plurality of communication devices and the current consumption of the device connected to the identification device exceeds the current that can be supplied by the current supply circuit, the current supply circuit is supplied from the supply device 15 to the foregoing The supply current of a plurality of devices. 2. The host device of claim 1, wherein the control circuit changes the supply current to the newly connected device and the device whose connection identification is completed. 3. The host device of claim 1 or 2, wherein the communication circuit has a function of transmitting a current value that can be supplied from the current supply circuit to the plurality of devices. 4. The host device of claim 3, wherein the bus bar is a universal serial bus, and the communication circuit transmits the current value that can be supplied to the foregoing plurality by using an instruction based on the bus bar specification. Set 64 1277888 備’而接收從各設備回覆之ACK封包與STALL封包之其 中任一者,前述控制電路依據以前述通訊電路接收的封 包而判定各設備是否可運作,而變更對可運作之設備的 供給電流。 5 5· 種主杜;衣置,係藉著用以進行串列通訊之複數匯流排 而供電以使複數設備運作者,其特徵在於包含有: 複數之通訊埠,其係用以連接前述複數設備者; 10 通訊電路,其係連接前述複數通訊埠且藉著與前述 複數没備之間的通訊而取得包含前述複數設備之消耗電 流之複數機器資訊者; 顯示裝置,其係連接前述通訊電路,而顯示前述複 數機器資訊與用以使操作者選擇將連接各通訊埠之複數 設備作為使用狀態或未使用狀態之選擇資訊者;及 15 控制電路,其係連接前述通訊電路及顯示裝置,並 依據前述複數設備之消耗電流與依據前述選擇資訊之操 作者的選擇結果而對前述每一通訊埠控制各設備的供給 電流者。 一種周邊機器,係藉由用以進行串列通訊之匯流排而從 主機裝置接受電源以運作者’其特徵在於包含有: 内部電路、其係包含藉由前述匯流排而用以與前述 主機裝置進行通訊之通訊電路,且依據該通訊電路所發 訊收訊之通訊資料而運作者;及 控制電路,其係連接前述内部電路,且於前述設備 連接前述主機裝置時,前述内部電路之消耗電流超過前 65 述主機裝置之可供給電流時,降低前述消耗電流者。 7. 如申請專利範圍第6項之周邊機器,其中更具有開關單 元,該開關單元係連接前述通訊電路,於前述控制電路 降低消耗電流後,暫時性地切斷前述匯流排與前述通訊 5 電路之連接者。 8. 如申請專利範圍第6或7項之周邊機器,其中前述匯流排 係通用串列匯流排,前述通訊電路藉以通用匯流排串列 規格為準據之資料通訊而將前述内部電路之消耗電流值 發送至前述主機裝置,前述控制電路判定是否已從前述 10 主機裝置發出要求前述設備之起動的要求指令,不發出 前述要求指令時降低前述内部電路的消耗電流。 9. 如申請專利範圍第6或7項之周邊機器,其中前述匯流排 係通用串列匯流排,前述通訊電路藉以通用匯流排串列 規格為準據之資料通訊而將前述内部電路之消耗電流值 15 發送至前述主機裝置,前述控制電路於已從前述主機裝 置通知可供給之電流時,配合前述供給之電流而降低前 述内部電路的消耗電流。 10. 如申請專利範圍第6或7項之周邊機器,其中更設有設定 單元,該設定單元連接前述控制電路而設定前述内部電 20 路的消耗電流值,前述控制電路因應前述單元之設定值 而變更前述内部電路的消耗電流。 11. 如申請專利範圍第6或7項之周邊機器,其中更設有開關 電路,該開關電路連接前述控制電路,當判定前述控制 電路不能降低前述内部電路之消耗電流時,切斷從前述 66 一 n I27788S年月曰修(尹正替換頁彳 匯流排供給之供給電流的電流值。 12. —種通訊系統之控制方法,係藉由用以進行串列通訊之 複數匯流排而從主機裝置對複數設備供電而使前述複數 設備運作的方法,其特徵在於包含有: 5 取得步驟,該步驟係前述主機裝置從前述複數設備 取得包含各設備之消耗電流之機器資訊的步驟;及 變更步驟,該步驟係新連接前述主機裝置之設備的 消耗電流與已連接識別完成之設備的消耗電流的合計值 超過前述主機裝置之可供給的電流時,前述主機裝置對 10 應前述可供給之電流而變更要供給各設備之供給電流之 配量的步驟。 13. —種通訊系統之控制方法,係藉由用以進行串列通訊之 匯流排而從主機裝置對設備供電而使前述設備運作的方 法,其特徵在於包含有: 15 前述設備具有内部電路,該内部電路包含用以與前 述主機裝置進行通訊的通訊電路且依據以該通訊電路發 訊收訊之通訊資料而運作, 該控制方法包含有降低消耗電流步驟,該步驟係於 以前述内部電路消耗之消耗電流超過前述主機裝置之可 20 供給的電流時,前述設備配合該可供給之電流而降低前 述内部電路之消耗電流的步驟。 14. 一種通訊系統之控制方法,係藉由用以進行串列通訊之 複數匯流排而從主機裝置對複數設備供電而使前述複數 設備運作的方法,其特徵在於包含有: 67 1277888And receiving any one of the ACK packet and the STALL packet replied from each device, the control circuit determining whether the device is operable based on the packet received by the communication circuit, and changing the supply current to the operable device. 5 5· The main type of clothing; the clothing is powered by a plurality of bus bars for serial communication to enable the plurality of equipment operators, and is characterized by: a plurality of communication ports for connecting the foregoing plurality a communication circuit that connects the plurality of communications and obtains a plurality of machine information including current consumption of the plurality of devices by communication with the plurality of devices; the display device is connected to the communication circuit And displaying the plurality of machine information and the selection information for causing the operator to select a plurality of devices to connect the communication ports as the use state or the unused state; and 15 control circuit connecting the communication circuit and the display device, and The supply current of each device is controlled for each of the aforementioned communication ports in accordance with the consumption current of the plurality of devices and the selection result of the operator according to the selection information. A peripheral device that receives power from a host device by means of a bus bar for serial communication, and is characterized by comprising: an internal circuit including the bus bar for use with the host device a communication circuit for communicating, and transmitting the data according to the communication data sent by the communication circuit; and a control circuit connecting the internal circuit, and the current consumption of the internal circuit when the device is connected to the host device When the current can be supplied to the host device, the current consumption is reduced. 7. The peripheral device of claim 6 which further has a switch unit, wherein the switch unit is connected to the communication circuit, and temporarily cuts off the bus bar and the communication 5 circuit after the control circuit reduces current consumption. The linker. 8. The peripheral device of claim 6 or 7, wherein the busbar is a universal serial busbar, and the communication circuit consumes current of the internal circuit by using data communication based on a universal busbar serial specification. The value is transmitted to the host device, and the control circuit determines whether a request command for starting the device is issued from the 10 host device, and reduces the current consumption of the internal circuit when the request command is not issued. 9. The peripheral device of claim 6 or 7, wherein the busbar is a universal serial busbar, and the communication circuit consumes current of the internal circuit by using data communication based on a general busbar serial specification. The value 15 is sent to the host device, and the control circuit reduces the current consumption of the internal circuit by the current supplied when the current is notified from the host device. 10. The peripheral device of claim 6 or 7, further comprising a setting unit connected to the control circuit to set a current consumption value of the internal electric circuit 20, wherein the control circuit corresponds to a set value of the unit The current consumption of the aforementioned internal circuit is changed. 11. The peripheral device of claim 6 or 7, wherein a switching circuit is further provided, the switch circuit is connected to the control circuit, and when it is determined that the control circuit cannot reduce the current consumption of the internal circuit, the 66 is cut off from the foregoing A n I27788S year of repair (Yin Zheng replaces the current value of the supply current supplied by the busbar. 12. The control method of the communication system is from the host device by the complex bus for serial communication. A method for powering a plurality of devices to operate the plurality of devices, wherein the method includes: obtaining a step of acquiring, by the host device, device information including current consumption of each device from the plurality of devices; and changing steps, In this step, when the total value of the current consumption of the device newly connected to the host device and the current consumption of the device connected to the identification device exceeds the current that can be supplied by the host device, the host device pair 10 is changed by the current that can be supplied. The step of supplying the metering of the supply current of each device. 13. Control of the communication system The method is a method for operating a device by powering a device from a host device by using a bus for serial communication, and the method includes: 15 the device has an internal circuit, and the internal circuit includes The communication circuit for communicating by the host device is operated according to the communication data sent and received by the communication circuit, and the control method includes the step of reducing current consumption, wherein the step consumes current consumption consumed by the internal circuit exceeding the host device The step of reducing the current consumption of the internal circuit by the device in conjunction with the supplyable current when the current is supplied by 20. 14. A control method of the communication system is performed by a plurality of bus bars for performing serial communication. A method for powering a plurality of devices from a host device to operate the plurality of devices, characterized by comprising: 67 1277888 取得步驟,該步驟係前述主機裝置從前述複數設備 取得包含前述複數設備之消耗電流之機器資訊的步驟; 顯示步驟,該步驟係於設置在前述主機裝置之顯示 裝置顯示前述各設備之機器資訊與用以使操作者選擇將 该各设備作為使用狀態或未使用狀態之選擇資訊的步 驟;及 控制步驟,該步驟係依據前述機器資訊所包含之消 耗電〃IL與依據前述選擇資訊之操作者的選擇結果而控制 對前述各設備之供給電流的步驟。 10 15·如申請專利範圍第14項之通訊系統之控制方法,其中前 述顯示裝置顯示對應GUI的顯示畫面,前述顯示步驟包 含在前述顯示晝面顯示前述選擇資訊的選擇按鈕,前述 控制步驟包含因應以操作者之滑鼠操作而選擇的前述選 擇按叙而控制對前述設備的供給電流。 15 16.如申請專職圍第14或15項之通訊系統之控制方法,其 中前述顯示步驟包含在前述顯示裝置顯示前述主機裝置 可供給之料錢、從該主機裝置供給各^備之使用電 流、從前述容許電流減去使用電流後之餘裕電流。 20 Π·如申請專職圍第14或15項之通料、統之㈣方法,焦 中前述複數設備連接設於前迷主㈣置之複數通訊埠, 且中繼通訊之中繼設備連接前述複數通訊埠之1中任何 者,且前示步驟在藉由前述中繼設備而連接複數設 備的情形下,包含分別在前述顯示I置顯示有關直接連 接各通訊埠之各設備__訊的狀態視窗、及有關藉 68 1277888a step of obtaining, by the host device, machine information including current consumption of the plurality of devices from the plurality of devices; and a displaying step of displaying, by the display device disposed on the host device, machine information of each device a step for causing an operator to select selection information for each device as a use state or an unused state; and a control step based on the power consumption IL included in the machine information and an operator according to the selection information The selection result is a step of controlling the supply current to each of the aforementioned devices. 10: The control method of the communication system according to claim 14, wherein the display device displays a display screen corresponding to the GUI, and the displaying step includes a selection button for displaying the selection information on the display surface, wherein the controlling step includes The aforementioned selection, selected by the operator's mouse operation, controls the supply current to the aforementioned device. 15. The method for controlling a communication system according to Item 14 or 15 of the full-time application, wherein the displaying step comprises: displaying, by the display device, the amount of money that can be supplied by the host device, and the current used for supplying the device from the host device, The margin current after the current is used is subtracted from the aforementioned allowable current. 20 如·If you apply for the general information of the 14th or 15th item of the full-time circumstance, the above-mentioned multiple devices are connected to the complex communication device of the former fascinating master (4), and the relay device of the relay communication is connected to the above plural Any one of the communication ports 1 and the foregoing step of connecting the plurality of devices by the foregoing relay device includes displaying a status window for each device directly connected to each communication port in the foregoing display I And related borrowing 68 1277888 由前述中繼設備而連接之各設備之機器資訊的狀態視 窗。 18·如申請專利範圍第12、13、14或15項之通訊系統之控制 方法,其中各個前述複數之匯流排係通用串列匯流排, 5 且前述串列通訊包含以通用串列匯流排規格為準據之資 料通訊。A status view of the machine information of each device connected by the aforementioned relay device. 18. The method of controlling a communication system according to claim 12, 13, 14 or 15 wherein each of said plurality of busbars is a universal serial busbar, 5 and said serial communication comprises a universal serial busbar specification Information communication as the basis. 19· 一種主機裝置,係藉著用以進行串列通訊之複數匯流排 而供電以使複數設備運作者,其特徵在於包含有: 複數之通訊埠,其係用以連接前述複數設備者; 10 通訊電路,其係連接前述複數通訊埠且藉著與前述 複數設備之間的通訊而取得包含複數設備之消耗電流之 複數機器資訊者;及 控制電路,其係連接前述通訊電路,而藉由將處於 未使用狀態之設備變更為使用狀態而使增加之消耗電流 15 量超過電流供給電路可供給之電流時,變更從前述電流A host device is powered by a plurality of bus bars for performing serial communication to enable a plurality of device operators, and is characterized by: a plurality of communication ports for connecting the plurality of devices; a communication circuit that connects the plurality of communications and obtains a plurality of machine information including current consumption of the plurality of devices by communication with the plurality of devices; and a control circuit that connects the communication circuit by When the device that is not in use is changed to the use state and the increased consumption current 15 exceeds the current that can be supplied by the current supply circuit, the current is changed. 供給電路供給至已連接之複數設備之供給電流量者。 20. 如申請專利範圍第19項之主機裝置,其中包含顯示裝 置,而該顥示裝置可顯示前述複數機器資訊與用以使操 作者選擇將連接各通訊埠之複數料料使賊態或未 20 使用狀態之選擇資訊者’且前述控制電路連接前述顯示 裝置,並依據前職數設備之消耗電—㈣ 資訊之操作者的選擇結果而對前述每—通訊琿控制各設 備的供給電流。 21. 如申請專利範圍第19或20項之主機裝置,其中前述控制 69The supply circuit supplies the amount of supply current to the connected plurality of devices. 20. The host device of claim 19, comprising a display device, wherein the display device can display the plurality of machine information and the plurality of materials for causing an operator to select each communication port to make a thief or not The use state selection information provider's and the aforementioned control circuit are connected to the display device, and the supply current of each device is controlled for each of the aforementioned communication ports according to the power consumption of the predecessor device - (4) the operator's selection result of the information. 21. The host device of claim 19 or 20, wherein the aforementioned control 69 1277888 電路可使前述顯示裝置顯示警告資訊,而該警告資訊包 含當消耗電流量超過前述電流供給電路之可供給電流時 表示其主旨的資訊、及用以選擇將前述未使用狀態之設 備變更為使用狀態之處理的繼續或停止的選擇資訊,且 5 當選擇繼續前述處理的情形下,待機至可供給對前述設 備之電流,當選擇停止前述處理的情形下,中斷使用前 述設備的處理。 22. 如申請專利範圍第19或20項之主機裝置,其中前述控制 電路在變更前述電流量之前先避開前述機器資訊,且將 10 對前述使用之設備的電流量變更為預定之電流量之後回 復前述避開的機器資訊。 23. 如申請專利範圍第19或20項之主機裝置,其中更具有於 前述各設備表示是否在運作中之機能執行旗標,且前述 控制電路依據前述機能執行旗標而削減供給至非前述運 15 作中之設備的電流量。 24. 如申請專利範圍第23項之主機裝置,其中將結束運作之 設備的機能執行旗標變更為停止狀態。 25. 如申請專利範圍第23項之主機裝置,其中削減供給至機 能執行旗標處於停止狀態之設備的電流量。 20 26. —種通訊系統之控制方法,係藉由用以進行串列通訊之 複數匯流排而從主機裝置對複數設備供電而使前述複數 設備運作的方法,其特徵在於包含有: 取得步驟,該步驟係前述主機裝置從前述複數設備 取得包含前述複數設備之消耗電流之機器資訊的步驟; 70 1277888 服 1 ?8 f 年月日修(#)正替換頁丨 判斷步驟,該步驟係前述主機裝置判斷是否可供給 因應處於未使用狀態之設備之要求值之電流的步驟;及 變更步驟,該步驟係當不能供給前述電流的情形 下’變更供給至電流供給電路所連接之複數設備之電流 5 量的步驟。 27·如申請專利範圍第26項之通訊系統之控制方法,其中更 包含顯示步驟,該步驟係於設置在前述主機裝置之顯示 裝置顯示前述複數之機器資訊與用以使操作者選擇將連 接於各通訊埠之複數設備作為使用狀態或未使用狀態之 〇 選擇資訊的步驟;及控制步驟,該步驟係依據前述複數 設備之消耗電流值與依據前述選擇資訊之操作者的選擇 結果而控制對前述每一通訊埠之供給電流的步驟。 28·如申請專利範圍第26或27項之通訊系統之控制方法,其 中更包含顯示步驟,該步驟係使設於前述主機裝置之顯 5 示裝置顯示警告資訊,而該警告資訊包含當消耗電流量 超過前述電流供給電路之可供給電流時表示其主旨的資 訊、及用以選擇將前述未使用狀態之設備變更為使用狀 態之處理的繼續或停止的選擇資訊、待機步驟,該步驟 係當選擇繼續前述處理的情形下,待機至可對前述設備 0 供給電流的步驟、及中斷步驟,該步驟係當選擇停土前 述處理的情形下,中斷使用前述設備之處理的步驟。 29·如申請專利範圍第26或27項之通訊系統之控制方法,其 中控制電路執行在變更前述電流量之前先避開前述機器 貧訊的步驟,且執行將對前述使用之設備的電流量變更 71 12778881 9VSi8The circuit of the 1277888 circuit can display the warning information, and the warning information includes information indicating that the current consumption exceeds the current supply circuit of the current supply circuit, and the device for selecting the unused state is changed to use. The selection information of the continuation or cessation of the processing of the state, and 5, when the continuation of the foregoing processing is selected, the standby until the current to the device can be supplied, and when the processing of the foregoing is stopped, the processing using the aforementioned device is interrupted. 22. The host device of claim 19, wherein the control circuit avoids the machine information before changing the current amount, and changes the current amount of the device to be used to a predetermined current amount. Respond to the aforementioned machine information. 23. The host device of claim 19 or 20, wherein the foregoing devices further indicate whether the function is in operation, and the control circuit reduces the supply to the non-transport according to the function execution flag. 15 The amount of current in the device under operation. 24. The host device of claim 23, wherein the function execution flag of the device that has finished operating is changed to a stop state. 25. The host device of claim 23, wherein the amount of current supplied to the device in which the flag is in a stopped state is reduced. The method for controlling a communication system is a method for operating a plurality of devices by powering a plurality of devices from a host device by using a plurality of bus bars for serial communication, wherein the method includes: obtaining steps, The step is the step of obtaining, by the host device, the machine information including the current consumption of the plurality of devices from the plurality of devices; 70 1277888 service 1 ? 8 f year month repair (#) is replacing the page 丨 determination step, the step is the aforementioned host a step of determining whether a current corresponding to a required value of the device in an unused state is available; and a changing step of changing a current supplied to the plurality of devices connected to the current supply circuit when the current cannot be supplied The steps of quantity. 27. The method of controlling a communication system according to claim 26, further comprising a display step of displaying a plurality of machine information displayed on the display device of the host device and for causing an operator to select to be connected to a step of selecting information by using a plurality of devices of each communication port as a use state or an unused state; and a control step of controlling the foregoing according to a current consumption value of the plurality of devices and a result of selection by an operator according to the selection information The step of supplying current for each communication port. 28. The method of controlling a communication system of claim 26 or 27, further comprising a display step of causing a display device provided on the host device to display a warning message, wherein the warning message includes when the current is consumed The information indicating the purpose of the current supply circuit when the current is supplied is greater than the information indicating the purpose of selecting the continuation or stop of the process of changing the device in the unused state to the use state, and the standby step is selected. In the case where the foregoing processing is continued, the standby step is a step of supplying current to the device 0, and the interrupting step is a step of interrupting the process of using the aforementioned device in the case where the aforementioned processing is stopped. 29. The control method of a communication system according to claim 26 or 27, wherein the control circuit performs a step of avoiding the aforementioned machine lean before changing the current amount, and executing a change in current amount of the device to be used 71 12778881 9VSi8 為預定之電流量之後回復前述避開之機器資訊的步驟。 30. 如申請專利範圍第26或27項之通訊系統之控制方法,其 中包含有於前述各設備表示是否在運作中之機能執行旗 標,且控制電路依據前述機能執行旗標而削減供給至非 5 前述運作中之設備之電流量的步驟。The step of returning the aforementioned machine information after the predetermined amount of current. 30. The method for controlling a communication system according to claim 26 or 27, wherein the foregoing device indicates whether the function is in operation or not, and the control circuit cuts the supply to the non-function according to the function execution flag. 5 The step of the amount of current in the device in operation. 31. 如申請專利範圍第30項之通訊系統之控制方法,其中包 含有將結束運作之設備的機能執行旗標變更為停止狀態 的步驟。 32. 如申請專利範圍第30項之通訊系統之控制方法,其中包 10 含削減供給至機能執行旗標處於停止狀態之設備之電流 量的步驟。31. A method of controlling a communication system as claimed in claim 30, which comprises the step of changing the function execution flag of the device that has finished operating to a stopped state. 32. The method of controlling a communication system of claim 30, wherein the package 10 includes the step of reducing the amount of current supplied to the device in which the function execution flag is stopped. 7272
TW93124539A 2003-08-28 2004-08-16 Host, device, and method for controlling communication system TWI277888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW93124539A TWI277888B (en) 2003-08-28 2004-08-16 Host, device, and method for controlling communication system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW92123808 2003-08-28
TW93124539A TWI277888B (en) 2003-08-28 2004-08-16 Host, device, and method for controlling communication system

Publications (2)

Publication Number Publication Date
TW200527258A TW200527258A (en) 2005-08-16
TWI277888B true TWI277888B (en) 2007-04-01

Family

ID=38626073

Family Applications (1)

Application Number Title Priority Date Filing Date
TW93124539A TWI277888B (en) 2003-08-28 2004-08-16 Host, device, and method for controlling communication system

Country Status (1)

Country Link
TW (1) TWI277888B (en)

Also Published As

Publication number Publication date
TW200527258A (en) 2005-08-16

Similar Documents

Publication Publication Date Title
WO2005024613A1 (en) Host apparatus, device, and communication system control method
US11860701B2 (en) Electronic device and power supply method for electronic device
JP3959374B2 (en) USB interface system
JP2007134782A (en) Communication apparatus and communication control method
JP2004157604A (en) Usb peripheral control method and device
US20090193156A1 (en) Peripheral device, method of operating peripheral device, host device, method of operating host device, and electronic device system
US20040148451A1 (en) USB controlling apparatus for data transfer between computers and method for the same
US20120066529A1 (en) Information processing apparatus and method for controlling power supply of the apparatus
JP2001306495A (en) Portable communication terminal
JP6544008B2 (en) Electrical apparatus and control method thereof
JP7251172B2 (en) Information processing device, control method for information processing device, and program
CN106851041A (en) Information processor and its control method with battery saving mode
TW200849019A (en) Two-way connectivity USB control device and operation method therefor
JP4483877B2 (en) Information processing device
US20050021881A1 (en) Information processing apparatus and information processing method
TWI277888B (en) Host, device, and method for controlling communication system
JP2008154344A (en) Power feeding system, terminal device, and program
JP2002073219A (en) Interface device equipped with part for supplying power to external device and method for supplying power to external device
JP4497587B2 (en) Computer system, computer, message processing method, and computer-readable storage medium
JP2009210603A (en) Display system
KR20060028956A (en) Apparatus and its method for remote controlling of home terminal
JP2001067157A5 (en) Computers and their peripheral systems, computer peripherals, computers and their control methods, and computer-readable storage media
CN106020406B (en) Control method, connector and electronic equipment
JP5008088B2 (en) Display system, display control apparatus, and computer program
KR100281384B1 (en) How to automatically drive a monitor in a USB monitor

Legal Events

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