TWI628547B - Expanding device - Google Patents

Expanding device Download PDF

Info

Publication number
TWI628547B
TWI628547B TW106117370A TW106117370A TWI628547B TW I628547 B TWI628547 B TW I628547B TW 106117370 A TW106117370 A TW 106117370A TW 106117370 A TW106117370 A TW 106117370A TW I628547 B TWI628547 B TW I628547B
Authority
TW
Taiwan
Prior art keywords
level
microcontroller
light
port
signal
Prior art date
Application number
TW106117370A
Other languages
Chinese (zh)
Other versions
TW201901461A (en
Inventor
陳貴閔
林家鴻
Original Assignee
技嘉科技股份有限公司
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 技嘉科技股份有限公司 filed Critical 技嘉科技股份有限公司
Priority to TW106117370A priority Critical patent/TWI628547B/en
Priority to US15/630,312 priority patent/US10528108B2/en
Priority to EP17180683.9A priority patent/EP3407161B1/en
Application granted granted Critical
Publication of TWI628547B publication Critical patent/TWI628547B/en
Publication of TW201901461A publication Critical patent/TW201901461A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3231Monitoring the presence, absence or movement of users
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3296Power saving characterised by the action undertaken by lowering the supply or operating voltage
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

一種擴充裝置,包括至少一連接埠、一第一發光元件、一感測器以及一微控制器。連接埠包括一電源接腳以及至少一資料接腳。第一發光元件用以產生一第一光線。感測器感測一外部光線,用以產生一感測信號。微控制器根據感測信號以及資料接腳的位準,控制第一光線的亮度或顏色以及控制電源接腳的位準。 An expansion device includes at least one connection port, a first light emitting element, a sensor, and a microcontroller. The port includes a power pin and at least one data pin. The first light emitting element is used for generating a first light. The sensor senses an external light to generate a sensing signal. The microcontroller controls the brightness or color of the first light and the level of the power pin according to the sensing signal and the level of the data pin.

Description

擴充裝置 Expansion device

本發明係有關於一種擴充裝置,特別是有關於一種可控制連接埠的電壓位準的擴充裝置。 The invention relates to an expansion device, in particular to an expansion device capable of controlling the voltage level of a port.

隨著科技的進步,可攜式電子產品的體積愈來愈小。以筆記型電腦為例,筆記型電腦通常具有一個或兩個連接埠,因此,筆記型電腦只能同時與一個或兩個週邊裝置連接。為了連接較多的週邊裝置,習知技術係將一集線器耦接筆記型電腦。由於該集線器具有較多的連接埠,故當週邊裝置耦接集線器時,筆記型電腦便可與多個週邊裝置進行資料傳輸。 With the advancement of technology, the size of portable electronic products is getting smaller and smaller. Taking a notebook computer as an example, a notebook computer usually has one or two ports, so a notebook computer can only be connected to one or two peripheral devices at the same time. In order to connect more peripheral devices, the conventional technology is to couple a hub to a notebook computer. Since the hub has more ports, when the peripheral device is coupled to the hub, the notebook computer can perform data transmission with multiple peripheral devices.

然而,當使用者將週邊裝置耦接集線器時,使用者無法即時得知週邊裝置是否確實連接集線器。再者,習知的集線器可供電予週邊裝置。當週邊裝置未透過集線器與筆記型電腦溝通時,若再持續供電予週邊裝置,將造成功率損耗。 However, when a user couples a peripheral device to a hub, the user cannot know immediately whether the peripheral device is actually connected to the hub. Furthermore, conventional hubs can supply power to peripheral devices. When the peripheral device does not communicate with the notebook computer through the hub, if it continues to supply power to the peripheral device, it will cause power loss.

有鑑於此,本發明之目的在於,讓使用者可簡單且快速地得知週邊裝置是否已插入擴充裝置的連接埠,並且在連接埠未傳送資料時,減少連接埠的電源位準,以減少擴充裝置的功率損耗。 In view of this, the purpose of the present invention is to allow the user to simply and quickly know whether the peripheral device is plugged into the port of the expansion device, and to reduce the power level of the port when the port is not transmitting data to reduce Power loss of the expansion unit.

為達上述目的,本發明提供一種擴充裝置,包括 至少一連接埠、一第一發光元件、一感測器以及一微控制器。連接埠包括一電源接腳以及至少一資料接腳。第一發光元件用以產生一第一光線。感測器感測一外部光線,用以產生一感測信號。微控制器根據感測信號以及資料接腳的位準,控制第一光線的亮度或顏色以及控制電源接腳的位準。 To achieve the above object, the present invention provides an expansion device, including At least one port, a first light-emitting element, a sensor, and a microcontroller. The port includes a power pin and at least one data pin. The first light emitting element is used for generating a first light. The sensor senses an external light to generate a sensing signal. The microcontroller controls the brightness or color of the first light and the level of the power pin according to the sensing signal and the level of the data pin.

100‧‧‧操作系統 100‧‧‧ Operating System

110‧‧‧主機 110‧‧‧host

120、220、300‧‧‧擴充裝置 120, 220, 300‧‧‧ expansion devices

130、140‧‧‧週邊裝置 130, 140‧‧‧ Peripherals

PU、PD1、PD2、CN1~CNN‧‧‧連接埠 PU, PD1, PD2, CN 1 ~ CN N ‧‧‧ port

121、221、SN‧‧‧感測器 121, 221, SN‧‧‧ sensors

122、222‧‧‧微控制器 122, 222‧‧‧microcontrollers

123、223、228、229‧‧‧切換器 123, 223, 228, 229‧‧‧ switchers

124、125、224、225、250、L1~LN‧‧‧發光元件 124, 125, 224, 225, 250, L 1 ~ L N ‧‧‧Light-emitting element

LT‧‧‧外部光線 LT‧‧‧External light

SS‧‧‧感測信號 S S ‧‧‧Sensing signal

SC、SC1~SC3‧‧‧控制信號 S C 、 S C1 ~ S C3 ‧‧‧Control signal

SO、ST1、ST2‧‧‧位準 S O , S T1 , S T2 ‧‧‧

SD、SD1~SD4‧‧‧驅動信號 S D , S D1 ~ S D4 ‧‧‧ drive signal

SV、SV1、SV2‧‧‧電壓信號 S V , S V1 , S V2 ‧‧‧ voltage signal

LR‧‧‧發光區域 LR‧‧‧light-emitting area

400‧‧‧使用者 400‧‧‧ users

410‧‧‧發射器 410‧‧‧ launcher

420‧‧‧接收器 420‧‧‧ Receiver

430‧‧‧處理器 430‧‧‧ processor

SA‧‧‧致能信號 S A ‧‧‧ enable signal

SSP‧‧‧特定信號 S SP ‧‧‧ Specific Signal

SB‧‧‧亮度信號 S B ‧‧‧Brightness signal

SRF‧‧‧反射信號 S RF ‧‧‧Reflected signal

第1圖為本發明之操作系統之示意圖。 FIG. 1 is a schematic diagram of an operating system of the present invention.

第2圖為本發明之擴充裝置的另一可能實施例。 FIG. 2 is another possible embodiment of the expansion device of the present invention.

第3圖為本發明之擴充裝置的外觀示意圖。 FIG. 3 is a schematic diagram of the appearance of the expansion device of the present invention.

第4A及4B圖為本發明之感測器的示意圖。 4A and 4B are schematic diagrams of a sensor of the present invention.

為讓本發明之目的、特徵和優點能更明顯易懂,下文特舉出實施例,並配合所附圖式,做詳細之說明。本發明說明書提供不同的實施例來說明本發明不同實施方式的技術特徵。其中,實施例中的各元件之配置係為說明之用,並非用以限制本發明。另外,實施例中圖式標號之部分重覆,係為了簡化說明,並非意指不同實施例之間的關聯性。 In order to make the objects, features, and advantages of the present invention more comprehensible, embodiments are exemplified below and described in detail with the accompanying drawings. The description of the present invention provides different embodiments to explain the technical features of different embodiments of the present invention. Wherein, the arrangement of the elements in the embodiments is for the purpose of illustration and is not intended to limit the present invention. In addition, the part of the figures in the embodiments is repeated for the sake of simplifying the description, and does not mean the correlation between different embodiments.

第1圖為本發明之操作系統之示意圖。如圖所示,操作系統100包括一主機110、一擴充裝置120、週邊裝置130及140。主機110透過擴充裝置120接收來自週邊裝置130及140的訊息,或是提供訊息予週邊裝置130及140。在其它實施例中,主機110也透過擴充裝置120供電予週邊裝置130及140。在一可能實施例中,擴充裝置120係為一集線器(hub)。本發明並不限 定週邊裝置的數量。在其它實施例中,操作系統100具有其它數量的週邊裝置。 FIG. 1 is a schematic diagram of an operating system of the present invention. As shown, the operating system 100 includes a host 110, an expansion device 120, and peripheral devices 130 and 140. The host 110 receives messages from the peripheral devices 130 and 140 through the expansion device 120, or provides information to the peripheral devices 130 and 140. In other embodiments, the host 110 also supplies power to the peripheral devices 130 and 140 through the expansion device 120. In a possible embodiment, the expansion device 120 is a hub. The invention is not limited Determine the number of peripheral devices. In other embodiments, the operating system 100 has other numbers of peripheral devices.

在本實施例中,擴充裝置120包括,連接埠PU、PD1、PD2、一感測器121、一微控制器122、一切換器123、發光元件124及125。連接埠PU用以耦接主機110,並將來自主機110的訊息提供予微控制器122,或是將微控制器122所輸出的訊息傳送至主機110。在一可能實施例中,連接埠PU稱為一上行埠(upstream port)。本發明並不限定連接埠PU的種類。在一可能實施例中,連接埠PU係為一USB埠。在此例中,該USB埠符合USB 2.0、USB 3.0或USB 3.1規格。 In this embodiment, the expansion device 120 includes ports PU, PD1, PD2, a sensor 121, a microcontroller 122, a switch 123, light-emitting elements 124, and 125. The port PU is used to couple to the host 110 and provide a message from the host 110 to the microcontroller 122 or transmit a message output by the microcontroller 122 to the host 110. In a possible embodiment, the connection port PU is referred to as an upstream port. The invention does not limit the type of the port PU. In a possible embodiment, the connection port PU is a USB port. In this example, the USB port conforms to USB 2.0, USB 3.0, or USB 3.1 specifications.

連接埠PD1用以耦接週邊裝置130,並將來自週邊裝置130的訊息提供予微控制器122,或是將微控制器122所輸出的訊息傳送至週邊裝置130。連接埠PD2用以耦接週邊裝置140,並將來自週邊裝置140的訊息提供予微控制器122,或是將微控制器122所輸出的訊息傳送至週邊裝置140。在一可能實施例中,連接埠PD1與PD2均具有電源接腳,用以接收來自微控制器122所輸出的電壓信號。在一可能實施例中,微控制器122所輸出的電壓信號係來自主機110。 The port PD1 is used for coupling to the peripheral device 130 and providing information from the peripheral device 130 to the microcontroller 122 or transmitting the information output by the microcontroller 122 to the peripheral device 130. The port PD2 is used to couple the peripheral device 140 and provide information from the peripheral device 140 to the microcontroller 122, or transmit the information output by the microcontroller 122 to the peripheral device 140. In a possible embodiment, the ports PD1 and PD2 each have a power pin for receiving a voltage signal output from the microcontroller 122. In a possible embodiment, the voltage signal output by the microcontroller 122 is from the host 110.

另外,連接埠PD1與PD2更具有資料接腳,用以將週邊裝置130及140的訊息透過微控制器122提供予主機110,或是透過微控制器122將來自主機110的訊息提供予週邊裝置130及140。在其它實施例中,連接埠PD1與PD2稱為下行埠(downstream port)。本發明並不限定連接埠PD1與PD2的種類。在一可能實施例中,連接埠PD1與PD2均為USB埠。在此例中, 該USB埠符合USB 2.0、USB 3.0或USB 3.1規格。 In addition, the ports PD1 and PD2 have data pins to provide the information of the peripheral devices 130 and 140 to the host 110 through the microcontroller 122, or to provide the information from the host 110 to the peripheral device through the microcontroller 122. 130 and 140. In other embodiments, the ports PD1 and PD2 are called downstream ports. The invention does not limit the types of the ports PD1 and PD2. In a possible embodiment, the ports PD1 and PD2 are both USB ports. In this example, The USB port conforms to USB 2.0, USB 3.0 or USB 3.1 specifications.

以連接埠PD1為例,當連接埠PD1為USB埠,並符合USB 2.0規格時,則USB埠的接腳VBUS作為上述電源接腳。另外,USB埠的接腳D+與D-之至少一者作為上述資料接腳。在其它實施例中。當連接埠PD1為USB埠,並符合USB 3.0規格時,則USB埠的接腳VBUS作為上述電源接腳。在此例中,USB埠的接腳D+、D-、SSTX+、SSTX-、SSRX+、SSRX-之至少一者作為上述資料接腳。 Take the port PD1 as an example. When the port PD1 is a USB port and conforms to the USB 2.0 specification, the pin VBUS of the USB port is used as the above power pin. In addition, at least one of pins D + and D- of the USB port is used as the data pin. In other embodiments. When the port PD1 is a USB port and conforms to the USB 3.0 specification, the pin VBUS of the USB port is used as the above-mentioned power pin. In this example, at least one of pins D +, D-, SSTX +, SSTX-, SSRX +, and SSRX- of the USB port is used as the data pin.

發光元件124與125分別對應連接埠PD1與PD2,用以表示連接埠PD1與PD2的操作模式。以連接埠PD1為例,當連接埠PD1的資料接腳正在傳輸資料時,表示連接埠PD1操作於一正常模式。因此,發光元件124所發出的光線的亮度及顏色之至少一者為預設值。當連接埠PD1的資料接腳未傳輸資料時,表示連接埠PD1操作於一休眠模式。因此,發光元件124所發出的光線的亮度及顏色之至少一者不等於預設值,如較暗或呈現不同顏色。在本實施例中,發光元件的數量等於連接埠的數量。 The light emitting elements 124 and 125 correspond to the ports PD1 and PD2, respectively, and are used to indicate the operation modes of the ports PD1 and PD2. Taking the port PD1 as an example, when the data pin of the port PD1 is transmitting data, it indicates that the port PD1 is operating in a normal mode. Therefore, at least one of the brightness and color of the light emitted by the light emitting element 124 is a preset value. When the data pin of the port PD1 is not transmitting data, it indicates that the port PD1 is operating in a sleep mode. Therefore, at least one of the brightness and color of the light emitted by the light emitting element 124 is not equal to a preset value, such as being darker or presenting a different color. In this embodiment, the number of light emitting elements is equal to the number of ports.

感測器121感測一外部光線LT,用以產生一感測信號SS。在一可能實施例中,外部光線LT係為一環境光,如太陽光或房間裡的光源所發射出的光線。在另一可能實施例中,外部光線LT係為一反射光,其中該反射光係為感測器121所發出的光線照射到一物體,該物體所產生的反射光。 The sensor 121 senses an external light LT for generating a sensing signal SS. In a possible embodiment, the external light LT is ambient light, such as sunlight or light emitted by a light source in a room. In another possible embodiment, the external light LT is a reflected light, and the reflected light is a reflected light generated by the light emitted from the sensor 121 to an object.

本發明亦不限定感測器121的種類。在一可能實施例中,感測器121係為一光學感測器(optical sensor)。在本實施 例中,感測器121不但具有感測功能,更具有發光功能。第4A及4B圖為感測器121的示意圖。請參考第4A圖,感測器121包括一發射器410、一接收器420以及一處理器430。發射器410根據一致能信號SA產生一特定信號SSP。接收器420接收外部光線LT,用以產生一亮度信號SB。在一可能實施例中,外部光線LT係為環境光,如太陽光或是室內燈具所發出的光線。處理器430處理亮度信號SB,用以產生感測信號SSThe invention also does not limit the type of the sensor 121. In a possible embodiment, the sensor 121 is an optical sensor. In this embodiment, the sensor 121 not only has a sensing function, but also has a light emitting function. 4A and 4B are schematic diagrams of the sensor 121. Referring to FIG. 4A, the sensor 121 includes a transmitter 410, a receiver 420, and a processor 430. The transmitter 410 generates a signal S SP in accordance with a specific enabling signal S A. The receiver 420 receives external light LT for generating a brightness signal S B. In a possible embodiment, the external light LT is ambient light, such as sunlight or light emitted by an indoor lamp. The processor 430 processes the brightness signal S B to generate a sensing signal S S.

在第4B圖中,接收器420所接收的外部光線LT係為一反射信號,其中該反射信號的種類與特定信號SSP的種類有關。舉例而言,如果特定信號SSP係為一光信號,如紅外線,則反射信號也為光信號。如果特定信號SSP係為一聲波信號,如超音波,則反射信號也為聲波信號。如圖所示,處理器430產生致能信號SA予發射器410。發射器410根據致能信號SA產生特定信號SSP。當一使用者400接近感測器121時,特定信號SSP被使用者400所反射,因而產生反射信號SRF。接收器420根據反射信號SRF產生亮度信號SB。因此,本發明之感測器不僅偵測外部光線的亮度,更具有發光功能,用以偵測使用者是否靠近擴充裝置120。 In FIG. 4B, the external light LT received by the receiver 420 is a reflected signal, and the type of the reflected signal is related to the type of the specific signal S SP . For example, if the specific signal SP is an optical signal, such as infrared, the reflected signal is also an optical signal. If the specific signal S SP is an acoustic signal, such as an ultrasonic wave, the reflected signal is also an acoustic signal. As shown, processor 430 generates enabling signal S A to the transmitter 410. The transmitter 410 generates a signal S SP in accordance with a specific enabling signal S A. When a user 400 approaches the sensor 121, the specific signal S SP is reflected by the user 400, and thus a reflected signal S RF is generated. The receiver 420 generates a luminance signal S B according to the reflected signal S RF . Therefore, the sensor of the present invention not only detects the brightness of external light, but also has a light emitting function for detecting whether the user is close to the expansion device 120.

在第1圖中,微控制器122根據感測信號SS以及連接埠PD1與PD2的資料接腳的位準,控制發光元件124與125所發出的光線的亮度及顏色以及控制連接埠PD1與PD2的電源接腳的位準。在本實施例中,微控制器122透過切換器123,間接地耦接發光元件124、125、連接埠PD1與PD2的資料接腳及電源接腳,但並非用以限制本發明。在其它實施例中,切換器123 可被省略或是整合在微控制器122中。在此例中,微控制器122直接地耦接發光元件124、125、連接埠PD1與PD2的資料接腳及電源接腳。 In the first figure, the microcontroller 122 controls the brightness and color of the light emitted by the light-emitting elements 124 and 125 and controls the ports PD1 and PD1 according to the sensing signal S S and the level of the data pins of the ports PD1 and PD2. The level of the power pin of PD2. In this embodiment, the microcontroller 122 indirectly couples the light emitting elements 124 and 125, the data pins of the ports PD1 and PD2 and the power pins through the switch 123, but it is not intended to limit the present invention. In other embodiments, the switcher 123 may be omitted or integrated in the microcontroller 122. In this example, the microcontroller 122 is directly coupled to the light emitting elements 124, 125, the data pins and power pins of the ports PD1 and PD2.

切換器123耦接連接埠PD1與PD2的資料接腳,並根據控制信號SC將連接埠PD1的資料接腳的位準ST1或是將連接埠PD2的資料接腳的位準ST2作為輸出位準SO提供予微控制器122。微控制器122根據輸出位準SO,得知連接埠PD1或PD2的資料接腳是否正在傳送資料。 Switch 123 is coupled to data ports PD1 and PD2 connecting pins, and the control signal S C to port PD1 data pins or S T1 level of the port pin data PD2 of a level S T2 S O output level provided to the microcontroller 122. The microcontroller 122 according to the output level S O, that data PD1 or PD2 port pin if the data is being transmitted.

在一可能實施例中,微控制器122根據輸出位準SO產生驅動信號SD與電壓信號SV。驅動信號SD用以控制發光元件124與125的亮度及顏色之至少一者。本發明並不限定驅動信號SD的種類。在一可能實施例中,驅動信號SD係為一電流信號。另外,電壓信號SV用以設定連接埠PD1與PD2的電源接腳的位準。 In one possible embodiment, the microcontroller 122 generates a drive signal S D S V voltage according to the output signal level S O. Drive signal S D to control the light emitting element 124 and the brightness and color of the at least one 125. The present invention is not limited to the type of drive signal S D. In one possible embodiment, the drive signal S D is a current based signal. In addition, the voltage signal S V is used to set the level of the power pins of the ports PD1 and PD2.

如圖所示,切換器123根據控制信號SC將驅動信號SD作為驅動信號SD1提供予發光元件124或是將驅動信號SD作為驅動信號SD2提供予發光元件125。發光元件124的亮度及顏色係由驅動信號SD1所控制,而發光元件125的亮度及顏色係由驅動信號SD2所控制。另外,切換器123根據控制信號SC將電壓信號SV作為電壓信號SV1並提供電壓信號SV1予連接埠PD1的電源接腳或是將電壓信號SV作為電壓信號SV2並提供電壓信號SV2予連接埠PD2的電源接腳。 As shown, switch 123 control signal S C of the drive signal S D to provide the driving signal S D1 to the light emitting element 124 or the drive signal S D as a drive signal S D2 to the light emitting element 125 as provided. The brightness and color of the light emitting element 124 are controlled by the driving signal S D1 , and the brightness and color of the light emitting element 125 are controlled by the driving signal S D2 . In addition, the switch 123 uses the voltage signal S V as the voltage signal S V1 and provides the voltage signal S V1 to the power pin of the port PD1 according to the control signal S C or the voltage signal S V as the voltage signal S V2 and provides the voltage signal. S V2 is the power pin of port PD2.

由於微控制器122控制連接埠PD1與發光元件124的方式與微控制器122控制連接埠PD2與發光元件125的方式相 同,故以下僅以連接埠PD1與發光元件124為例。當連接埠PD1的資料接腳的位準ST1不等於一預設值時,表示連接埠PD1的資料接腳正在傳送資料。因此,微控制器122透過切換器123提供一第一電壓信號(如5V)予連接埠PD1的電源接腳。此時,連接埠PD1操作在一正常模式。然而,當連接埠PD1的資料接腳的位準ST1等於預設值時,表示連接埠PD1的資料接腳並未傳送資料。因此,微控制器122提供一第二電壓信號(如4.5V)予連接埠PD1的電源接腳。此時,連接埠PD1操作在一休眠模式。在本實施例中,第二電壓信號小於第一電壓信號。在另一可能實施例中,如果連接埠PD1並未耦接週邊裝置130,則微控制器122設定連接埠PD1的電源接腳的位準為0V。此時,連接埠PD1也是操作在一休眠模式。 Since the way in which the microcontroller 122 controls the port PD1 and the light-emitting element 124 is the same as the way in which the microcontroller 122 controls the port PD2 and the light-emitting element 125, the following uses only the port PD1 and the light-emitting element 124 as an example. When the level S T1 of the data pin of the port PD1 is not equal to a preset value, it means that the data pin of the port PD1 is transmitting data. Therefore, the microcontroller 122 provides a first voltage signal (such as 5V) to the power pin of the port PD1 through the switch 123. At this time, the port PD1 operates in a normal mode. However, when the level S T1 of the data pin of the port PD1 is equal to a preset value, it means that the data pin of the port PD1 is not transmitting data. Therefore, the microcontroller 122 provides a second voltage signal (such as 4.5V) to the power pin of the port PD1. At this time, the port PD1 operates in a sleep mode. In this embodiment, the second voltage signal is smaller than the first voltage signal. In another possible embodiment, if the port PD1 is not coupled to the peripheral device 130, the microcontroller 122 sets the level of the power pin of the port PD1 to 0V. At this time, the port PD1 also operates in a sleep mode.

在其它實施例中,當連接埠PD1操作在休眠模式時,如果連接埠PD1的資料接腳的位準ST1不等於預設值時,表示連接埠PD1的資料接腳開始傳送資料。因此,微控制器122再度提供第一電壓信號(如5V)予連接埠PD1的電源接腳。此時,連接埠PD1離開休眠模式進入正常模式。 In other embodiments, when the port PD1 is operated in the sleep mode, if the level S T1 of the data pin of the port PD1 is not equal to a preset value, it means that the data pin of the port PD1 starts to transmit data. Therefore, the microcontroller 122 provides the first voltage signal (eg, 5V) to the power pin of the port PD1 again. At this time, the port PD1 leaves the sleep mode and enters the normal mode.

在一可能實施例中,當微控制器122控制連接埠PD1的電源接腳的位準時,微控制器122同時設定發光元件124所發出的光線的亮度及顏色之至少一者。舉例而言,當連接埠PD1操作於正常模式時,微控制器122設定發光元件124所發出的光線的亮度為一第一亮度值。在此例中,微控制器122可能設定發光元件124所發出的光線的顏色為一第一顏色。然而,當連接埠PD1操作在休眠模式時,微控制器122減少發光元件 124所發出的光線的亮度。此時,發光元件124所發出的光線的亮度可能為一第二亮度值,其中第二亮度值小於第一亮度值。在此例中,微控制器122可能設定發光元件124所發出的光線的顏色為一第二顏色,其中第二顏色不同於第一顏色。換句話說,當連接埠PD1操作於不同模式時,發光元件124的亮度及顏色之至少一者也會被改變。 In a possible embodiment, when the microcontroller 122 controls the level of the power pin of the port PD1, the microcontroller 122 simultaneously sets at least one of the brightness and color of the light emitted by the light emitting element 124. For example, when the port PD1 is operated in the normal mode, the microcontroller 122 sets the brightness of the light emitted by the light emitting element 124 to a first brightness value. In this example, the microcontroller 122 may set the color of the light emitted by the light emitting element 124 to a first color. However, when the port PD1 is operated in the sleep mode, the microcontroller 122 reduces the light emitting elements. The brightness of the light emitted by 124. At this time, the brightness of the light emitted by the light emitting element 124 may be a second brightness value, where the second brightness value is smaller than the first brightness value. In this example, the microcontroller 122 may set the color of the light emitted by the light emitting element 124 to a second color, where the second color is different from the first color. In other words, when the port PD1 is operated in different modes, at least one of the brightness and color of the light emitting element 124 is also changed.

在另一可能實施例中,當連接埠PD1操作在休眠模式時,微控制器122根據感測信號SS設定發光元件124所發出的光線的亮度及顏色之至少一者。舉例而言,當感測信號SS小於一預設值時,表示外部光線LT的亮度較低,可能使用者關閉房間的光源或是使用者遠離擴充裝置120。因此,微控制器122減少發光元件124所發出的光線的亮度,如設定發光元件124所發出的光線的亮度為第二亮度值。在此例中,微控制器122可能改變或不改變發光元件124所發出的光線的顏色。然而,當感測信號SS大於預設值時,表示使用者可能重新開啟房間的光源。因此,微控制器122增加發光元件124所發出的光線的亮度,如設定發光元件124所發出的光線的亮度為第一亮度值。此時,微控制器122可能設定發光元件124所發出的光線的顏色為第一顏色。此外,由於使用者可能欲使用擴充裝置120,因此,微控制器122提供第一電壓信號予連接埠PD1的電源接腳。此時,連接埠PD1離開休眠模式進入正常模式。在一些實施例中,如果使用者未開啟房間的光源,但使用者接近擴充裝置120時,由於感測器121所發出的紅外線照射到使用者,故使用者所產生的反射光(即外部光源LT)將大於預設值。因此,微控制器122 設定發光元件124所發出的光線的亮度為第一亮度值。此時,連接埠PD1離開休眠模式並進入正常模式。 In another possible embodiment, when the port PD1 is operated in the sleep mode, the microcontroller 122 sets at least one of the brightness and color of the light emitted by the light emitting element 124 according to the sensing signal S S. For example, when the sensing signal S S is less than a preset value, it indicates that the brightness of the external light LT is low, and the user may turn off the light source of the room or the user may stay away from the expansion device 120. Therefore, the microcontroller 122 reduces the brightness of the light emitted by the light-emitting element 124, such as setting the brightness of the light emitted by the light-emitting element 124 to the second brightness value. In this example, the microcontroller 122 may or may not change the color of the light emitted by the light emitting element 124. However, when the sensing signal S S is greater than a preset value, it indicates that the user may turn on the light source of the room again. Therefore, the microcontroller 122 increases the brightness of the light emitted by the light-emitting element 124, such as setting the brightness of the light emitted by the light-emitting element 124 to a first brightness value. At this time, the microcontroller 122 may set the color of the light emitted by the light emitting element 124 to the first color. In addition, since the user may want to use the expansion device 120, the microcontroller 122 provides a first voltage signal to the power pin of the port PD1. At this time, the port PD1 leaves the sleep mode and enters the normal mode. In some embodiments, if the user does not turn on the light source of the room, but when the user approaches the expansion device 120, the infrared light emitted by the sensor 121 irradiates the user, so the reflected light generated by the user (ie, the external light source LT) will be greater than the preset value. Therefore, the microcontroller 122 sets the brightness of the light emitted by the light emitting element 124 to the first brightness value. At this time, the port PD1 leaves the sleep mode and enters the normal mode.

第2圖為本發明之擴充裝置的另一可能實施例。第2圖的擴充裝置220相似於第1圖的擴充裝置120,不同之處在於,第2圖的擴充裝置220更包括一集線器控制器226、一電源管理電路227、切換器228及229以及一發光元件250。由於第2圖的連接埠PU、PD1、PD2、感測器221、發光元件224與225的特性與第1圖的連接埠PU、PD1、PD2、感測器121、發光元件124與125的特性相同,故不再贅述。 FIG. 2 is another possible embodiment of the expansion device of the present invention. The expansion device 220 in FIG. 2 is similar to the expansion device 120 in FIG. 1 except that the expansion device 220 in FIG. 2 further includes a hub controller 226, a power management circuit 227, switches 228 and 229, and a Light emitting element 250. The characteristics of the ports PU, PD1, PD2, sensors 221, light emitting elements 224, and 225 in FIG. 2 and the characteristics of the ports PU, PD1, PD2, sensor 121, and light emitting elements 124 and 125 in FIG. 1 The same, so I will not repeat them.

在本實施例中,集線器控制器226用以偵測連接埠PD1的資料接腳的位準ST1以及連接埠PD2的資料接腳的位準ST2,並產生一偵測結果SR予微控制器222。在一可能實施例中,集線器控制器226係透過I2C協定提供偵測結果SR予微控制器222,但並非用以限制本發明。在其它實施例中,集線器控制器226利用其它通訊協定提供偵測結果SR予微控制器222。 In this embodiment, the hub controller 226 is used to detect the level S T1 of the data pin of the port PD1 and the level S T2 of the data pin of the port PD2 and generate a detection result S R to micro Controller 222. In a possible embodiment, the hub controller 226 provides the detection result S R to the microcontroller 222 through the I2C protocol, but it is not intended to limit the present invention. In other embodiments, the hub controller 226 provides the detection result S R to the microcontroller 222 using other communication protocols.

在本實施例中,集線器控制器226透過切換器228耦接連接埠PD1與PD2的資料接腳。切換器228根據一控制信號SC1選擇地將連接埠PD1的資料接腳的位準ST1作為輸出位準SO提供予集線器控制器226,或是將連接埠PD2的資料接腳的位準ST2作為輸出位準SO提供予集線器控制器226。在本實施例中,控制信號SC1係由集線器控制器226所產生,但並非用以限制本發明。在其它實施例中,控制信號SC1可能係由微控制器222所產生。另外,切換器228可省略,用以節省成本。在此例中,集線器控制器226直接耦接連接埠PD1與PD2的資料接腳。在一 可能實施例中,切換器228係整合在集線器控制器226中。 In this embodiment, the hub controller 226 is coupled to the data pins of the ports PD1 and PD2 through the switch 228. The switcher 228 selectively provides the level S T1 of the data pin of the port PD1 as the output level S O to the hub controller 226 according to a control signal S C1 or the level of the data pin of the port PD2 S T2 S O as the output level controller 226 provided to the hub. In the present embodiment, the control signal S C1 generated by the hub-based controller 226, but not to limit the present invention. In other embodiments, the control signal S C1 may be generated by the microcontroller 222. In addition, the switch 228 can be omitted to save costs. In this example, the hub controller 226 is directly coupled to the data pins of the ports PD1 and PD2. In a possible embodiment, the switch 228 is integrated in the hub controller 226.

微控制器222根據偵測結果SR得知連接埠PD1與PD2的資料接腳是否正在傳送資料。以連接埠PD1為例,當連接埠PD1的資料接腳正在傳送資料時,微控制器222令發光元件224的亮度等於一預設亮度。當連接埠PD1的資料接腳未傳送資料時,微控制器222減少發光元件224的亮度。在另一可能實施例中,微控制器222根據感測信號SS控制發光元件224的亮度及顏色之至少一者。舉例而言,當感測信號SS大於一預設值時,微控制器222設定發光元件224的亮度為一預設亮度。當感測信號SS小於預設值時,微控制器222減少發光元件224的亮度。 The microcontroller 222 knows whether the data pins of the ports PD1 and PD2 are transmitting data according to the detection result S R. Taking the port PD1 as an example, when the data pin of the port PD1 is transmitting data, the microcontroller 222 makes the brightness of the light-emitting element 224 equal to a preset brightness. When the data pin of the port PD1 is not transmitting data, the microcontroller 222 reduces the brightness of the light emitting element 224. In another possible embodiment, the microcontroller 222 controls at least one of the brightness and color of the light emitting element 224 according to the sensing signal S S. For example, when the sensing signal S S is greater than a preset value, the microcontroller 222 sets the brightness of the light-emitting element 224 to a preset brightness. When the sensing signal S S is less than a preset value, the microcontroller 222 reduces the brightness of the light emitting element 224.

本發明並不限定微控制器222如何控制發光元件224。在一可能實施例中,微控制器222透過一切換器223耦接發光元件224與225。微控制器222產生一控制信號SC2予切換器223。切換器223根據控制信號SC2將微控制器222所產生的驅動信號SD作為一驅動信號SD1提供予發光元件224,或是驅動信號SD作為一驅動信號SD2提供予發光元件225。發光元件224或225根據驅動信號SD1或SD2而發光。在另一可能實施例中,切換器223可省略。在此例中,微控制器222直接耦接發光元件224與225。在其它實施例中,切換器223係整合在微控制器222中。 The invention does not limit how the microcontroller 222 controls the light emitting element 224. In a possible embodiment, the microcontroller 222 is coupled to the light emitting elements 224 and 225 through a switch 223. The microcontroller 222 generates a control signal S C2 to the switch 223. Switch 223 provided to the light emitting element 225 in accordance with a control signal S C2 microcontroller 222 generates a drive signal S D to provide the light emitting element 224, or the drive signal S D as a driving signal S D1 as a driving signal S D2. The light emitting element 224 or 225 emits light in accordance with the driving signal S D1 or S D2 . In another possible embodiment, the switcher 223 may be omitted. In this example, the microcontroller 222 is directly coupled to the light emitting elements 224 and 225. In other embodiments, the switcher 223 is integrated in the microcontroller 222.

另外,微處理器222根據偵測結果SR產生驅動信號SD3,用以控制發光元件250所發出的光線的亮度及顏色之至少一者。舉例而言,當連接埠PD1與PD2之一者操作於正常模式時,微控制器222透過驅動信號SD3控制發光元件250所發出的光線的亮度為一第三亮度值。此時,發光元件250所發出的光 線可能具有一第三顏色。然而,當連接埠PD1與PD2均操作於休眠模式時,微控制器222透過驅動信號SD3控制發光元件250所發出的光線的亮度為一第四亮度值,其中第四亮度值小於第三亮度值。此時,發光元件250所發出的光線可能具有一第四顏色,其中第四顏色不同於第三顏色。因此,使用者根據發光元件250的亮度及顏色,便可得知連接埠PD1與PD2的操作模式。 In addition, the microprocessor 222 generates a driving signal S D3 according to the detection result S R to control at least one of the brightness and the color of the light emitted by the light emitting element 250. For example, when one of the ports PD1 and PD2 is operated in the normal mode, the microcontroller 222 controls the brightness of the light emitted by the light emitting element 250 to a third brightness value through the driving signal S D3 . At this time, the light emitted by the light emitting element 250 may have a third color. However, when the ports PD1 and PD2 are both operated in the sleep mode, the microcontroller 222 controls the brightness of the light emitted by the light emitting element 250 to a fourth brightness value through the driving signal S D3 , wherein the fourth brightness value is smaller than the third brightness value. At this time, the light emitted by the light emitting element 250 may have a fourth color, wherein the fourth color is different from the third color. Therefore, the user can know the operation modes of the ports PD1 and PD2 according to the brightness and color of the light-emitting element 250.

在其它實施例中,微處理器222根據偵測結果SR產生驅動信號SD4予電源管理電路227,用以調整連接埠PD1與PD2的電源接腳的位準。舉例而言,當連接埠PD1的資料接腳正在傳送資料時,微處理器222設定連接埠PD1的電源接腳等於一預設位準(如5V)。當連接埠PD1的資料接腳未傳送資料時,微處理器222減少連接埠PD1的電源接腳的位準。在另一可能實施例中,微處理器222更根據感測信號SS調整連接埠PD1與PD2的電源接腳的位準。舉例而言,當感測信號SS大於一預設值時,微處理器222設定連接埠PD1的電源接腳等於一預設位準(如5V)。當感測信號SS小於預設值時,微處理器222減少連接埠PD1的電源接腳的位準。在一可能實施例中,偵測結果SR的優先權高於感測信號SS,因此,微控制器222主要以偵測結果SR控制發光元件224、225及連接埠PD1與PD2的電源接腳的位準。當連接埠PD1或PD2操作於休眠模式時,微控制器222可能根據感測信號SS控制發光元件224、225及連接埠PD1與PD2的電源接腳的位準。 In other embodiments, the microprocessor 222 generates a driving signal S D4 to the power management circuit 227 according to the detection result S R to adjust the levels of the power pins of the ports PD1 and PD2. For example, when the data pin of the port PD1 is transmitting data, the microprocessor 222 sets the power pin of the port PD1 to be equal to a preset level (such as 5V). When the data pin of the port PD1 is not transmitting data, the microprocessor 222 reduces the level of the power pin of the port PD1. In another possible embodiment, the microprocessor 222 further adjusts the levels of the power pins of the ports PD1 and PD2 according to the sensing signal S S. For example, when the sensing signal S S is greater than a preset value, the microprocessor 222 sets the power pin of the port PD1 equal to a preset level (for example, 5V). When the sensing signal S S is less than a preset value, the microprocessor 222 reduces the level of the power pin of the port PD1. In a possible embodiment, the detection result S R has higher priority than the sensing signal S S. Therefore, the microcontroller 222 mainly controls the power of the light-emitting elements 224 and 225 and the ports PD1 and PD2 based on the detection result S R. Pin level. When the port PD1 or PD2 is operated in the sleep mode, the microcontroller 222 may control the levels of the light emitting elements 224 and 225 and the power pins of the ports PD1 and PD2 according to the sensing signal S S.

在一可能實施例中,微控制器222係透過I2C協定 與電源管理電路227溝通,但並非用以限制本發明。在本實施例中,電源管理電路227透過一切換器229耦接連接埠PD1與PD2的電源接腳。如圖所示,電源管理電路227產生一控制信號SC3予切換器229。切換器229根據控制信號SC3將電源管理電路227所產生的電壓信號SV作為電壓信號SV1提供予連接埠PD1的電源接腳,或是作為電壓信號SV2提供予連接埠PD2的電源接腳。在一些實施例中,切換器229可省略,或是整合於電源管理電路227中。在此例中,電源管理電路227直接連接連接埠PD1與PD2的電源接腳。在其它實施例中,控制信號SC3係由微控制器222所產生。 In a possible embodiment, the microcontroller 222 communicates with the power management circuit 227 through the I2C protocol, but is not intended to limit the present invention. In this embodiment, the power management circuit 227 is coupled to the power pins of the ports PD1 and PD2 through a switch 229. As shown, the power management circuit 227 generates a control signal S C3 to the switcher 229. The switcher 229 provides the voltage signal S V generated by the power management circuit 227 as the voltage signal S V1 to the power pin of the port PD1 or the voltage signal S V2 to the power pin of the port PD2 according to the control signal S C3. foot. In some embodiments, the switcher 229 may be omitted or integrated in the power management circuit 227. In this example, the power management circuit 227 is directly connected to the power pins of the ports PD1 and PD2. In other embodiments, the control signal S C3 is generated by the microcontroller 222.

第3圖係為本發明之擴充裝置的外觀示意圖。如圖所示,擴充裝置300包括一感測器SN、連接埠CN1~CNN、發光元件L1~LN以及一發光區域LR。發光元件L1~LN分別對應連接埠CN1~CNN。在本實施例中,發光元件L1~LN的亮度及顏色與連接埠CN1~CNN的操作狀態有關。以連接埠CN1為例,當連接埠CN1未耦接一週邊裝置時,發光元件L1不發光。當連接埠CN1耦接週邊裝置,並且連接埠CN1的資料接腳正在傳送資料時,發光元件L1的亮度等於一預設亮度。當連接埠CN1的資料接腳未傳送資料時,發光元件L1的亮度降低。 FIG. 3 is a schematic diagram of the appearance of the expansion device of the present invention. As shown in the figure, the expansion device 300 includes a sensor SN, ports CN 1 to CN N , light emitting elements L 1 to L N, and a light emitting region LR. The light emitting elements L 1 to L N correspond to the ports CN 1 to CN N, respectively . In this embodiment, the brightness and color of the light-emitting elements L 1 to L N are related to the operating states of the ports CN 1 to CN N. Taking the port CN 1 as an example, when the port CN 1 is not coupled to a peripheral device, the light emitting element L 1 does not emit light. When the port CN 1 is coupled to a peripheral device and the data pin of the port CN 1 is transmitting data, the brightness of the light-emitting element L 1 is equal to a preset brightness. When the data pin of the port CN 1 is not transmitting data, the brightness of the light-emitting element L 1 is reduced.

在其它實施例中,發光元件L1所發出的光線的顏色與連接埠CN1的操作狀態有關。舉例而言,當連接埠CN1的資料接腳正在傳送資料時,發光元件L1所發出的光線的顏色等於一第一顏色。當連接埠CN1的資料接腳未傳送資料時,發光元件L1所發出的光線的顏色等於一第二顏色,其中第二顏色不 同於第一顏色。 In other embodiments, the color of the light emitted by the light-emitting element L 1 is related to the operating state of the port CN 1 . For example, when the data pin of the port CN 1 is transmitting data, the color of the light emitted by the light-emitting element L 1 is equal to a first color. When the data pin of the port CN 1 is not transmitting data, the color of the light emitted by the light emitting element L 1 is equal to a second color, wherein the second color is different from the first color.

發光區域LR圍繞連接埠CN1~CNN與發光元件L1~LN,用以表示擴充裝置300的操作模式。舉例而言,當連接埠CN1~CNN之一者正在傳送資料時,發光區域LR具有第一亮度值或具有第三顏色。當連接埠CN1~CNN均未傳送資料時,發光區域LR具有第二亮度值或具有第四顏色,其中第二亮度值小於第一亮度值,並且第四顏色不同於第三顏色。 The light-emitting area LR surrounds the ports CN 1 to CN N and the light-emitting elements L 1 to L N to indicate the operation mode of the expansion device 300. For example, when one of the ports CN 1 to CN N is transmitting data, the light emitting area LR has a first brightness value or a third color. When no data is transmitted from the ports CN 1 to CN N , the light-emitting area LR has a second brightness value or a fourth color, wherein the second brightness value is smaller than the first brightness value and the fourth color is different from the third color.

另外,感測器SN的感測結果也會影響發光元件L1~LN與發光區域LR的亮度及顏色。舉例而言,當連接埠CN1~CNN均未傳送資料時,如果感測器SN所產生的感測結果小於一預設值時,表示使用者可能關閉擴充裝置300所在空間裡的光源。因此,發光元件L1~LN與發光區域LR之至少一者的亮度變暗。然而,當使用者接近擴充裝置300或是使用者開啟光源時,表示使用者欲使用擴充裝置300。因此,發光元件L1~LN與發光區域LR之至少一者的亮度增加。 In addition, the sensing result of the sensor SN also affects the brightness and color of the light emitting elements L 1 to L N and the light emitting region LR. For example, when the ports CN 1 to CN N are not transmitting data, if the sensing result generated by the sensor SN is less than a preset value, it means that the user may turn off the light source in the space where the expansion device 300 is located. Therefore, the brightness of at least one of the light emitting elements L 1 to L N and the light emitting region LR becomes dark. However, when the user approaches the expansion device 300 or the user turns on the light source, it indicates that the user wants to use the expansion device 300. Therefore, the brightness of at least one of the light emitting elements L 1 to L N and the light emitting region LR increases.

在其它實施例中,連接埠CN1~CNN之任一者的電源接腳的位準與相對應的連接埠的操作模式有關。以連接埠CN1為例,當連接埠CN1正在傳送資料時,連接埠CN1的電源接腳的位準等於一預設位準(如5V)。當連接埠CN1未傳送資料時,連接埠CN1的電源接腳的位準小於預設位準。在一可能實施例中,當連接埠CN1未耦接週邊裝置時,連接埠CN1的電源接腳的位準等於0V。 In other embodiments, the level of the power pin of any one of the ports CN 1 to CN N is related to the operation mode of the corresponding port. Take the port CN 1 as an example. When the port CN 1 is transmitting data, the level of the power pin of the port CN 1 is equal to a preset level (such as 5V). When the port CN 1 is not transmitting data, the level of the power pin of the port CN 1 is lower than the preset level. In a possible embodiment, when the port CN 1 is not coupled to a peripheral device, the level of the power pin of the port CN 1 is equal to 0V.

在一可能實施例中,當連接埠CN1的電源接腳的位準不等預設位準(5V)時,如果感測器SN所產生的感測結果大於 預設值時,表示使用者欲使用擴充裝置300。因此,擴充裝置300內部的微控制器設定連接埠CN1的電源接腳的位準等於預設位準。 In a possible embodiment, when the level of the power pin of the port CN 1 is different from the preset level (5V), if the sensing result generated by the sensor SN is greater than the preset value, it indicates that the user To use the expansion device 300. Therefore, the microcontroller in the expansion device 300 sets the level of the power pin of the port CN 1 equal to the preset level.

所有詞彙(包含技術與科學詞彙)均屬本發明所屬技術領域中具有通常知識者之一般理解。此外,除非明白表示,詞彙於一般字典中之定義應解釋為與其相關技術領域之文章中意義一致,而不應解釋為理想狀態或過分正式之語態。 All words (including technical and scientific words) belong to the general understanding of those with ordinary knowledge in the technical field to which this invention belongs. In addition, unless explicitly stated, the definition of a vocabulary in a general dictionary should be interpreted as consistent with its meaning in articles in the relevant technical field, and should not be interpreted as ideal or overly formal.

雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾。舉例來,本發明實施例所系統、裝置或是方法可以硬體、軟體或硬體以及軟體的組合的實體實施例加以實現。因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Any person with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. . For example, the system, device, or method according to the embodiments of the present invention may be implemented in physical embodiments of hardware, software, or a combination of hardware and software. Therefore, the protection scope of the present invention shall be determined by the scope of the appended patent application.

Claims (9)

一種擴充裝置,包括:至少一連接埠,包括一電源接腳以及至少一資料接腳;一第一發光元件,用以產生一第一光線;一感測器,感測一外部光線,用以產生一感測信號;以及一微控制器,根據該感測信號以及該資料接腳的位準,控制該第一光線的亮度或顏色以及控制該電源接腳的位準,其中當該資料接腳的位準不等於一預設值時,該微控制器設定該電源接腳的位準等於一第一預設位準,當該資料接腳的位準等於該預設值時,該微控制器設定該電源接腳的位準等於一第二預設位準,該第二預設位準小於該第一預設位準,其中當該連接埠並未耦接一週邊裝置時,該微控制器設定該電源接腳的位準等於一第三預設位準,該第三預設位準不等於該第二預設位準。An expansion device includes: at least one connection port, including a power pin and at least one data pin; a first light emitting element for generating a first light; and a sensor for sensing an external light for Generating a sensing signal; and a microcontroller, controlling the brightness or color of the first light and controlling the level of the power pin according to the sensing signal and the level of the data pin, wherein when the data is connected When the pin level is not equal to a preset value, the microcontroller sets the power pin level to be equal to a first preset level. When the data pin level is equal to the preset value, the micro The controller sets the level of the power pin equal to a second preset level, and the second preset level is smaller than the first preset level. When the port is not coupled to a peripheral device, the The microcontroller sets the level of the power pin equal to a third preset level, and the third preset level is not equal to the second preset level. 如申請專利範圍第1項所述之擴充裝置,更包括:一集線器控制器,偵測該資料接腳的位準,並將偵測結果告知該微控制器。The expansion device described in item 1 of the patent application scope further includes: a hub controller that detects the level of the data pin and informs the microcontroller of the detection result. 如申請專利範圍第2項所述之擴充裝置,其中該集線器控制器係透過一I2C協定與該微控制器溝通。The expansion device according to item 2 of the scope of patent application, wherein the hub controller communicates with the microcontroller through an I2C protocol. 如申請專利範圍第1項所述之擴充裝置,更包括:一第二發光元件,提供一第二光線,其中該微控制器根據該資料接腳的位準控制該第二光線的亮度或顏色。The expansion device according to item 1 of the scope of patent application, further comprising: a second light emitting element for providing a second light, wherein the microcontroller controls the brightness or color of the second light according to the level of the data pin . 如申請專利範圍第2項所述之擴充裝置,更包括:一電源管理電路,受控於該微控制器,用以調整該電源接腳的位準。The expansion device described in item 2 of the patent application scope further includes: a power management circuit controlled by the microcontroller to adjust the level of the power pin. 如申請專利範圍第5項所述之擴充裝置,其中該微控制器係透過一I2C協定與該電源管理電路溝通。The expansion device according to item 5 of the scope of patent application, wherein the microcontroller communicates with the power management circuit through an I2C protocol. 如申請專利範圍第1項所述之擴充裝置,其中該感測器包括:一發射器,根據一致能信號產生一特定信號;一接收器,接收該外部光線,用以產生一亮度信號;以及一處理器,產生該致能信號並處理該亮度信號,用以產生該感測信號。The expansion device according to item 1 of the patent application scope, wherein the sensor comprises: a transmitter that generates a specific signal according to a uniform energy signal; a receiver that receives the external light to generate a brightness signal; and A processor generates the enable signal and processes the brightness signal to generate the sensing signal. 如申請專利範圍第7項所述之擴充裝置,其中該外部光線係為一環境光。The expansion device according to item 7 of the patent application scope, wherein the external light is an ambient light. 如申請專利範圍第7項所述之擴充裝置,其中一物體根據該特定信號反射產生一反射信號,該外部光線係為該反射信號。According to the expansion device described in item 7 of the scope of patent application, an object generates a reflected signal according to the specific signal reflection, and the external light is the reflected signal.
TW106117370A 2017-05-25 2017-05-25 Expanding device TWI628547B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
TW106117370A TWI628547B (en) 2017-05-25 2017-05-25 Expanding device
US15/630,312 US10528108B2 (en) 2017-05-25 2017-06-22 Expanding device
EP17180683.9A EP3407161B1 (en) 2017-05-25 2017-07-11 Expanding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106117370A TWI628547B (en) 2017-05-25 2017-05-25 Expanding device

Publications (2)

Publication Number Publication Date
TWI628547B true TWI628547B (en) 2018-07-01
TW201901461A TW201901461A (en) 2019-01-01

Family

ID=59337483

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106117370A TWI628547B (en) 2017-05-25 2017-05-25 Expanding device

Country Status (3)

Country Link
US (1) US10528108B2 (en)
EP (1) EP3407161B1 (en)
TW (1) TWI628547B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI687790B (en) * 2018-06-25 2020-03-11 緯創資通股份有限公司 Electronic system capable of detecting number of times for hot plugs

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201124873A (en) * 2010-01-15 2011-07-16 Kingston Technology Corp Management hub, method and computer readable medium containing program instructions for managing a plurality of drives in communication with a host
US20110231682A1 (en) * 2010-03-19 2011-09-22 I/O Interconnect, Ltd. Power management method and related power management system
TW201135473A (en) * 2010-04-06 2011-10-16 Via Tech Inc Optical USB device and operation method
TWI457052B (en) * 2006-11-09 2014-10-11 Apple Inc Brightness control of a status indicator light
TW201603422A (en) * 2014-07-08 2016-01-16 台達電子工業股份有限公司 Universal serial bus hub

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6643783B2 (en) * 1999-10-27 2003-11-04 Terence T. Flyntz Multi-level secure computer with token-based access control
TWI240066B (en) * 2004-03-01 2005-09-21 Asia Optical Co Inc A level-measuring circuit of a laser tilt meter
US8077028B2 (en) * 2006-02-15 2011-12-13 Abl Ip Holding Llc System and apparatus with self-diagnostic and emergency alert voice capabilities
CN101488041B (en) 2008-01-14 2011-07-27 鸿富锦精密工业(深圳)有限公司 Computer state control circuit and method
TWI378290B (en) 2008-11-11 2012-12-01 Au Optronics Suzhou Corp Brightness adjustable electrical apparatus
TWM357675U (en) 2008-12-18 2009-05-21 Univ Far East Power-saving traffic signal lamp
US20120290761A1 (en) 2011-05-10 2012-11-15 Jui-Yen Chen USB Converter and Related Method
US9967149B1 (en) * 2011-05-26 2018-05-08 Electric Imp Incorporated Modularized control system to enable IoT wireless network control and sensing of other devices
US20140156879A1 (en) * 2012-12-03 2014-06-05 Sae Magnetics (H.K.) Ltd. Active cable with indicators showing operating modes and linking status
CN103077139B (en) * 2013-02-01 2016-05-11 威盛电子股份有限公司 Use integrated circuit and the control method thereof of internal integrate circuit bus
US9891696B2 (en) 2014-10-03 2018-02-13 Google Llc Intelligent device wakeup
US9967955B2 (en) * 2016-09-28 2018-05-08 Platformatics Inc. Power over ethernet lighting system with emergency mode

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI457052B (en) * 2006-11-09 2014-10-11 Apple Inc Brightness control of a status indicator light
TW201124873A (en) * 2010-01-15 2011-07-16 Kingston Technology Corp Management hub, method and computer readable medium containing program instructions for managing a plurality of drives in communication with a host
US20110231682A1 (en) * 2010-03-19 2011-09-22 I/O Interconnect, Ltd. Power management method and related power management system
TW201135473A (en) * 2010-04-06 2011-10-16 Via Tech Inc Optical USB device and operation method
TW201603422A (en) * 2014-07-08 2016-01-16 台達電子工業股份有限公司 Universal serial bus hub

Also Published As

Publication number Publication date
US10528108B2 (en) 2020-01-07
EP3407161A1 (en) 2018-11-28
US20180341308A1 (en) 2018-11-29
TW201901461A (en) 2019-01-01
EP3407161B1 (en) 2021-08-25

Similar Documents

Publication Publication Date Title
US10884479B2 (en) Display device, computer system and method of managing the operating states of a computer system
US7219240B2 (en) Monitor and method for controlling power-on and power-off of host computer
US8330778B2 (en) Monitor
US9760156B2 (en) Display apparatus, display system having plural display apparatuses, and method for controlling the display system
US8174500B2 (en) Temperature controlled mouse
US20180150118A1 (en) Capacitance based accessory connection detection for a battery powered unit
CN105118407A (en) Electronic product and method and system for LOGO display of same
KR100633163B1 (en) Electronic device and electronic device system
TWI673612B (en) Motherboard with a charging function
TWI628547B (en) Expanding device
US8350875B2 (en) Mobile terminal emitting light according to temperature and display control method thereof
TWI459187B (en) Computer system
TWI662764B (en) Motherboard with a smart charging function
CN108959145A (en) Expanding device
US20140365806A1 (en) Peripheral apparatus and control method thereof
TW202023321A (en) Display device and driving method for lighting device thereof
US10983586B2 (en) Power management system and power management method
TW201321989A (en) Input/output devices and display apparatuses using the same
TWI721520B (en) Operation device
WO2024187930A1 (en) Display control method, electronic device, and storage medium
TWM531641U (en) Memory module
TW201939263A (en) Image projection device
TW202013197A (en) computer system
US20080028111A1 (en) Method for signal processing of a general-purpose I/O interface and an apparatus thereof
CN113672076A (en) Electronic device