TWI891280B - Electronic system and operating method thereof - Google Patents
Electronic system and operating method thereofInfo
- Publication number
- TWI891280B TWI891280B TW113109309A TW113109309A TWI891280B TW I891280 B TWI891280 B TW I891280B TW 113109309 A TW113109309 A TW 113109309A TW 113109309 A TW113109309 A TW 113109309A TW I891280 B TWI891280 B TW I891280B
- Authority
- TW
- Taiwan
- Prior art keywords
- electronic device
- power
- delay time
- electronic
- electronic system
- Prior art date
Links
Landscapes
- Power Sources (AREA)
Abstract
Description
本揭露是有關於一種電子系統,且特別是有關於一種應用擴充裝置的電子系統及其操作方法。 The present disclosure relates to an electronic system, and more particularly to an electronic system employing an expansion device and an operating method thereof.
電腦裝置可以透過擴充裝置外接一個或多個外接裝置,以擴充電腦裝置的使用功能。外接裝置可例如是顯示器。擴充裝置可以應用C型通用串列匯流排(Universal Serial Bus Type-C,以下稱為USB Type-C)作為傳輸介面。 A computer device can be connected to one or more external devices via an expansion device to expand the computer device's functionality. The external device may be, for example, a monitor. The expansion device may use the Universal Serial Bus Type-C (USB Type-C) as a transmission interface.
然而,在透過擴充裝置連接外接裝置的應用中,當電腦裝置從休眠模式(Hibernate mode)被喚醒至工作模式時,電腦裝置有機率性地無法恢復(resume)休眠模式之前的工作程序,進而造成使用者體驗不佳。例如,電腦裝置原先在執行中的桌面程式、以及文件等程序被關閉而消失。也就是說,在前述的應用中,電腦裝置在進入休眠模式之前,未完成原先工作程序的暫存作業,而直接進入關機模式(Shutdown Mode)。 However, in applications that connect to external devices via expansion devices, when a computer device is awakened from hibernation mode to active mode, there's a chance the computer won't be able to resume the processes it was in before entering hibernation mode, resulting in a poor user experience. For example, previously running desktop programs and documents on the computer device may be closed and disappear. In other words, in these applications, the computer device enters shutdown mode without completing any previously saved processes before entering hibernation mode.
本揭露實施例提供一種電子系統,在透過擴充裝置連接外接電子裝置的應用中,能夠在切換不同的電源模式時完成暫存以及恢復原先執行中的程序。 The disclosed embodiments provide an electronic system that, in applications where the system is connected to an external electronic device via an expansion device, can temporarily save and resume previously running programs when switching between different power modes.
本揭露實施例的電子系統包括電子裝置以及擴充裝置。擴充裝置連接電子裝置。擴充裝置包括第一連接埠。第一連接埠用以連接外接電子裝置。當電子裝置切換電源狀態時,電子裝置設定延遲時間,使得電子裝置在延遲時間之前,在受電角色以及供電角色之間切換。延遲時間大於電子裝置與外接電子裝置所進行的協議溝通的所需時間。 The electronic system of the disclosed embodiment includes an electronic device and an expansion device. The expansion device is connected to the electronic device. The expansion device includes a first connection port. The first connection port is used to connect to an external electronic device. When the electronic device switches power states, the electronic device sets a delay time so that the electronic device switches between the power receiving role and the power supply role before the delay time. The delay time is greater than the time required for protocol communication between the electronic device and the external electronic device.
本揭露實施例另提供一種電子系統的操作方法。電子系統的操作方法包括以下的步驟。透過擴充裝置連接外接電子裝置。當電子裝置切換電源狀態時,透過電子裝置設定延遲時間,使得電子裝置在延遲時間之前,在受電角色以及供電角色之間切換。延遲時間大於電子裝置與外接電子裝置所進行的協議溝通的所需時間。 The disclosed embodiments further provide a method for operating an electronic system. The method includes the following steps: An external electronic device is connected via an expansion device. When the electronic device switches power, a delay time is set in the electronic device so that the electronic device switches between the power receiving role and the power supply role before the delay time. The delay time is greater than the time required for protocol communication between the electronic device and the external electronic device.
基於上述,本揭露實施例的電子系統及其操作方法適用於透過擴充裝置連接外接電子裝置的應用。透過設定延遲時間,電子系統能夠在電子裝置切換電源狀態時,確保電子裝置在與外接電子裝置完成協議溝通之前,完成雙角色埠(Dual Role Port,DRP)的應用。如此,電子裝置能夠完成暫存以及恢復原先執行中的程序。 Based on the above, the electronic system and operating method of the disclosed embodiments are suitable for applications connecting to external electronic devices via expansion devices. By setting a delay time, the electronic system can ensure that the electronic device completes the Dual Role Port (DRP) application before completing protocol communication with the external electronic device when switching power states. This allows the electronic device to temporarily save and resume previously running programs.
為讓本揭露的上述特徵和優點能更明顯易懂,下文特舉 實施例,並配合所附圖式作詳細說明如下。 To make the above-mentioned features and advantages of the present disclosure more clearly understood, the following examples are given with accompanying drawings for detailed description.
100、300:電子系統 100, 300: Electronic systems
110、310:電子裝置 110, 310: Electronic devices
120、320:擴充裝置 120, 320: Expansion device
200:外接電子裝置 200: External electronic devices
311:電源傳輸控制器 311: Power Delivery Controller
312:內嵌控制器 312: Embedded Controller
313:處理器 313: Processor
321:電源傳輸控制器 321: Power Delivery Controller
400:電源適配器 400: Power adapter
DT:延遲時間 DT: Delay Time
P1~P2:連接埠 P1~P2: Ports
PF1:預設檔 PF1: Default file
PF2:設定檔 PF2: Profile
S0:工作模式 S0: Working mode
S4:休眠模式 S4: Sleep Mode
S210~S220、S410~S470:步驟 S210~S220, S410~S470: Steps
t1、t4、t5:時間點 t1, t4, t5: time points
圖1是依據本揭露一實施例所繪示的電子系統的方塊圖。 Figure 1 is a block diagram of an electronic system according to an embodiment of the present disclosure.
圖2是依據本揭露一實施例所繪示的電子系統的操作方法的流程圖。 Figure 2 is a flow chart illustrating an operating method of an electronic system according to an embodiment of the present disclosure.
圖3是依據本揭露另一實施例所繪示的電子系統的方塊圖。 Figure 3 is a block diagram of an electronic system according to another embodiment of the present disclosure.
圖4是依據本揭露圖3實施例所繪示的電子系統的操作方法的流程圖。 FIG4 is a flow chart illustrating an operating method of the electronic system shown in FIG3 according to the embodiment of the present disclosure.
圖5是依據本揭露圖3實施例所繪示的電子系統的操作示意圖。 FIG5 is a schematic diagram illustrating the operation of the electronic system according to the embodiment of FIG3 of the present disclosure.
本揭露的部份實施例接下來將會配合附圖來詳細描述,以下的描述所引用的元件符號,當不同附圖出現相同的元件符號將視為相同或相似的元件。這些實施例只是本揭露的一部份,並未揭示所有本揭露的可實施方式。更確切的說,這些實施例只是本揭露的專利申請範圍中的範例。 Some embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Component numbers used in the following description will be used to identify identical or similar components when the same component numbers appear in different drawings. These embodiments are only part of the present disclosure and do not disclose all possible implementations of the present disclosure. Rather, these embodiments are merely examples within the scope of the present disclosure's patent application.
圖1是依據本揭露一實施例所繪示的電子系統的方塊圖。參考圖1,電子系統100可應用USB Type-C以及霹靂(Thunderbolt,以下稱為TBT)的傳輸規範。電子系統100可支援雙角色埠(Dual Role Port,DRP)的規範,以在受電角色(或模式)以及供電角色(或模式)之間切換。 Figure 1 is a block diagram of an electronic system according to one embodiment of the present disclosure. Referring to Figure 1 , electronic system 100 can implement USB Type-C and Thunderbolt (TBT) transmission standards. Electronic system 100 can also support the Dual Role Port (DRP) specification, enabling switching between a power sink role (or mode) and a power source role (or mode).
在本實施例中,電子系統100可包括電子裝置110以及擴充裝置120。電子裝置110透過傳輸線(未繪示)連接擴充裝置120。電子裝置110可透過擴充裝置120外接並且使用一個或多個外接電子裝置200。 In this embodiment, the electronic system 100 may include an electronic device 110 and an expansion device 120. The electronic device 110 is connected to the expansion device 120 via a transmission line (not shown). The electronic device 110 can connect to and use one or more external electronic devices 200 via the expansion device 120.
在本實施例中,電子裝置110可例如是手機、電腦裝置、平板電腦、筆記型電腦以及桌上型電腦等電子裝置。 In this embodiment, the electronic device 110 may be, for example, a mobile phone, a computer, a tablet computer, a laptop computer, a desktop computer, or other electronic devices.
在本實施例中,擴充裝置120可包括一個或多個連接埠(例如是第一連接埠P1)。此些連接埠可包括應用USB Type-C以及USB Type-A的連接埠、顯示埠(DisplayPort,DP)、以及應用高畫質多媒體介面(High Definition Multimedia Interface,HDMI)的連接埠。 In this embodiment, the expansion device 120 may include one or more connection ports (e.g., a first connection port P1). These connection ports may include ports using USB Type-C and USB Type-A, a DisplayPort (DP), and a port using High Definition Multimedia Interface (HDMI).
圖2是依據本揭露一實施例所繪示的電子系統的操作方法的流程圖。參考圖1以及圖2,電子系統100可執行步驟S210~S220。這些步驟S210~S220的順序僅為示例說明,並不以此為限。在本實施例中,步驟S210~S220可以應用於下述示例性的情況。 FIG2 is a flow chart illustrating an operating method of an electronic system according to an embodiment of the present disclosure. Referring to FIG1 and FIG2 , electronic system 100 may execute steps S210 through S220. The order of steps S210 through S220 is provided for illustrative purposes only and is not intended to be limiting. In this embodiment, steps S210 through S220 may be applied in the following exemplary situations.
在步驟S210,擴充裝置120透過第一連接埠P1連接外接電子裝置200。在本實施例中,第一連接埠P1可例如是應用USB Type-C的連接埠。外接電子裝置200可例如是應用USB Type-C、及/或TBT的傳輸規範的電子裝置。外接電子裝置200可例如是顯 示器、外接硬碟、以及各類通信介面裝置等輸出裝置。 In step S210, the expansion device 120 connects to the external electronic device 200 via the first connection port P1. In this embodiment, the first connection port P1 may be, for example, a USB Type-C port. The external electronic device 200 may be, for example, an electronic device that utilizes the USB Type-C and/or TBT transmission standards. The external electronic device 200 may be an output device such as a display, an external hard drive, or various communication interface devices.
在本實施例中,擴充裝置120的第一連接埠P1可作為汲取(sink)端。電子裝置110可作為來源(source)端。也就是說,電子裝置110作為供電角色,並且供電給擴充裝置120、以及擴充裝置120所連接的外接電子裝置200。 In this embodiment, the first connection port P1 of the expansion device 120 can serve as a sink, and the electronic device 110 can serve as a source. In other words, the electronic device 110 acts as a power supply, supplying power to the expansion device 120 and the external electronic device 200 connected to the expansion device 120.
在步驟S220,當電子裝置110切換電源狀態時,電子裝置110設定延遲時間DT,使得電子裝置110在延遲時間DT之前,在受電角色以及供電角色之間切換。 In step S220, when the electronic device 110 switches the power state, the electronic device 110 sets a delay time DT so that the electronic device 110 switches between the power receiving role and the power supply role before the delay time DT.
在此示例性情況中,電子裝置110例如是從工作模式(即,S0狀態)切換至休眠模式(即,S4狀態)。具體來說,電子裝置110根據所切換的電源狀態(即,S4狀態)重新地與所使用的外接電子裝置200進行協議溝通。協議溝通指示電子裝置110與外接電子裝置200之間的工作協議。在完成協議溝通之後,電子裝置110根據所切換的電源狀態暫存或者恢復電子裝置110、及/或外接電子裝置200在執行中的程序,並據以進入對應的電源狀態。此外,電子裝置110可以在一些應用中,通知(notify)擴充裝置320並且從來源端切換至汲取端(即,從供電角色切換至受電角色)。 In this exemplary scenario, the electronic device 110 switches from an operating mode (i.e., S0 state) to a sleep mode (i.e., S4 state). Specifically, the electronic device 110 re-engages in protocol communication with the external electronic device 200 in use based on the switched power state (i.e., S4 state). The protocol communication indicates the operating protocol between the electronic device 110 and the external electronic device 200. After completing the protocol communication, the electronic device 110 suspends or resumes the programs currently running on the electronic device 110 and/or the external electronic device 200 based on the switched power state, and accordingly enters the corresponding power state. Furthermore, in some applications, the electronic device 110 can notify the expansion device 320 and switch from a source to a sink (i.e., from a power provider to a power receiver).
也就是說,當電子裝置110切換電源狀態時,電子裝置110根據經設定的延遲時間DT,在此延遲時間DT之前完成DRP的應用。在本實施例中,DRP的應用可包括電子裝置110通知擴充裝置120的操作、以及電子裝置110從供電角色切換至受電角色的操作。 That is, when the electronic device 110 switches its power state, it completes the DRP application before the set delay time DT. In this embodiment, the DRP application may include the electronic device 110 notifying the expansion device 120 and the electronic device 110 switching from a power provider to a power receiver.
在本實施例中,延遲時間DT大於電子裝置110與外接電子裝置200所進行的協議溝通的所需時間。前述的所需時間可例如是電子裝置110預設的溝通時間(例如是3秒)。 In this embodiment, the delay time DT is greater than the time required for protocol communication between the electronic device 110 and the external electronic device 200. The aforementioned required time may be, for example, the preset communication time of the electronic device 110 (e.g., 3 seconds).
值得一提的是,對於應用擴充裝置120的電子裝置110而言,在電子裝置110切換電源狀態的示例性情況中,電子裝置110具有充足的延遲時間DT來完成DRP的應用,以使電子裝置110正確地進入所切換的電源狀態(即,S4狀態而非S5狀態)。因此,電子裝置110能夠在切換不同的電源模式時,完成暫存或者恢復執行中的程序,進而避免使用者體驗不佳。 It's worth noting that for the electronic device 110 using the expansion device 120, in the exemplary scenario of switching power states, the electronic device 110 has sufficient delay time DT to complete the application of the DRP, allowing the electronic device 110 to correctly enter the switched power state (i.e., S4 state instead of S5 state). Therefore, the electronic device 110 can complete the pausing or resuming of running programs when switching between different power modes, thereby avoiding a poor user experience.
圖3是依據本揭露另一實施例所繪示的電子系統的方塊圖。參考圖3,電子系統300可包括電子裝置310以及擴充裝置320。擴充裝置320可包括第一連接埠P1以及第二連接埠P2。電子裝置310以及擴充裝置320可以參照電子系統100的相關說明並加以類推。 FIG3 is a block diagram of an electronic system according to another embodiment of the present disclosure. Referring to FIG3 , electronic system 300 may include an electronic device 310 and an expansion device 320. Expansion device 320 may include a first connection port P1 and a second connection port P2. The electronic device 310 and expansion device 320 may be described with reference to the description of electronic system 100 and analogously thereto.
在圖3實施例中,電子裝置310還可包括電源傳輸(Power Delivery,PD)控制器311、內嵌控制器(Embedded controller,EC)312、以及處理器313。電源傳輸控制器311耦接內嵌控制器312。電源傳輸控制器311還耦接擴充裝置320中的電源傳輸控制器321。處理器313耦接電源傳輸控制器311、內嵌控制器312、以及擴充裝置320。 In the embodiment shown in FIG3 , electronic device 310 may further include a power delivery (PD) controller 311, an embedded controller (EC) 312, and a processor 313. The PD controller 311 is coupled to the EC 312. The PD controller 311 is also coupled to a PD controller 321 in an expansion device 320. The processor 313 is coupled to the PD controller 311, the EC 312, and the expansion device 320.
在本實施例中,處理器313用以切換電子裝置310的電源狀態。在本實施例中,切換的電源狀態可包括以從工作模式(即, S0狀態)切換至休眠模式(即,S4狀態)。處理器313還用以與外接電子裝置200進行協議溝通。 In this embodiment, the processor 313 is used to switch the power state of the electronic device 310. In this embodiment, the power state to be switched may include switching from an operating mode (i.e., S0 state) to a sleep mode (i.e., S4 state). The processor 313 is also used to perform protocol communication with the external electronic device 200.
在本實施例中,處理器313可例如是加速處理器(Accelerated Processing Unit,APU)、訊號轉換器、現場可程式設計邏輯閘陣列(Field Programmable Gate Array,FPGA),或是其他可程式設計之一般用途或特殊用途的微處理器(Microprocessor)、數位訊號處理器(Digital Signal Processor,DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits,ASIC)、可程式設計邏輯裝置(Programmable Logic Device,PLD)或其他類似裝置或這些裝置的組合,其可載入並執行電腦程式相關韌體或軟體,以實現計算、控制、以及執行等功能。 In this embodiment, the processor 313 may be, for example, an accelerated processing unit (APU), a signal converter, a field programmable gate array (FPGA), or other programmable general-purpose or special-purpose microprocessor, digital signal processor (DSP), programmable controller, application-specific integrated circuit (ASIC), programmable logic device (PLD), or other similar devices or a combination of these devices. It can load and execute computer program-related firmware or software to implement computing, control, and execution functions.
在本實施例中,內嵌控制器312用以存取預設檔PF1或者設定檔PF2。預設檔PF1可包括電子裝置310與外接電子裝置200之間所進行的協議溝通的規範,例如是預設的溝通時間(例如是3秒)。設定檔PF2可包括電子裝置310與外接電子裝置200之間所進行的協議溝通的規範,例如是大於預設的溝通時間的延遲時間DT。也就是說,相較於預設檔PF1,設定檔PF2具有更長的延遲以提供電子裝置310與外接電子裝置200進行協議溝通。預設檔PF1以及設定檔PF2可分別例如是以韌體或軟體來被實現。 In this embodiment, the embedded controller 312 is used to access a preset profile PF1 or a configuration profile PF2. The preset profile PF1 may include specifications for protocol communication between the electronic device 310 and the external electronic device 200, such as a preset communication time (e.g., 3 seconds). The configuration profile PF2 may include specifications for protocol communication between the electronic device 310 and the external electronic device 200, such as a delay time DT greater than the preset communication time. In other words, compared to the preset profile PF1, the configuration profile PF2 has a longer delay to facilitate protocol communication between the electronic device 310 and the external electronic device 200. The preset profile PF1 and the configuration profile PF2 may be implemented, for example, as firmware or software, respectively.
在圖3實施例中,電子裝置310可例如是處在工作模式(即,S0狀態)。電子裝置310透過擴充裝置320的第一連接埠P1連接外接電子裝置200而作為供電角色。 In the embodiment shown in FIG. 3 , the electronic device 310 may be in a working mode (i.e., S0 state). The electronic device 310 is connected to the external electronic device 200 via the first connection port P1 of the expansion device 320 and serves as a power supply.
在此示例性情況中,電子裝置310還可透過擴充裝置320的第二連接埠P2連接電源適配器400的一端。電源適配器400的另一端連接供應電源(例如是市電插座)。此時,電子裝置310可以從供電角色切換至受電角色。同時,電子裝置310切換電源狀態,以從工作模式(即,S0狀態)切換至休眠模式(即,S4狀態)。 In this exemplary embodiment, the electronic device 310 can also be connected to one end of the power adapter 400 via the second connection port P2 of the expansion device 320. The other end of the power adapter 400 is connected to a power source (e.g., a mains outlet). At this point, the electronic device 310 can switch from a power provider to a power receiver. Simultaneously, the electronic device 310 switches its power state from active mode (i.e., S0 state) to sleep mode (i.e., S4 state).
一併參考圖4,圖4是依據本揭露圖3實施例所繪示的電子系統的操作方法的流程圖。電子系統300可執行步驟S410~S470。圖4實施例示例說明電子系統300如何在上述的示例性情況中,使得電子裝置310正確地切換至S4狀態非S5狀態,據以在電子裝置310被喚醒至S0狀態時能夠恢復原先執行中的程序。前述的程序可包括在執行中的桌面程式、以及文件。 Referring also to FIG. 4 , FIG. 4 is a flow chart illustrating an operating method of the electronic system shown in FIG. 3 according to the embodiment of the present disclosure. The electronic system 300 may execute steps S410-S470. FIG. 4 illustrates how the electronic system 300, in the aforementioned exemplary scenario, correctly switches the electronic device 310 to the S4 state rather than the S5 state, thereby resuming previously running programs when the electronic device 310 is awakened to the S0 state. These programs may include running desktop applications and documents.
在步驟S410,電子裝置310(例如是電源傳輸控制器311)判斷擴充裝置320是否連接電子裝置310。 In step S410, the electronic device 310 (e.g., the power transmission controller 311) determines whether the expansion device 320 is connected to the electronic device 310.
當步驟S410的判斷結果為否時,表示電子裝置310沒有使用擴充裝置320。電子系統300續行步驟S420~S430。 If the determination result of step S410 is negative, it indicates that the electronic device 310 is not using the expansion device 320. The electronic system 300 then proceeds to steps S420-S430.
在步驟S420,電子裝置310維持預設檔PF1。也就是說,處理器313執行內嵌控制器312所存取的預設設定(即,預設檔PF1),以根據所切換的電源狀態(即,S4狀態)以及預設的溝通時間(例如是3秒)來與其他裝置(例如是直接外接電子裝置200)進行協議溝通。在步驟S430,電子裝置310正常地操作。 In step S420, electronic device 310 maintains default profile PF1. Specifically, processor 313 executes the default settings (i.e., default profile PF1) accessed by embedded controller 312 to conduct protocol communication with other devices (e.g., directly connected electronic device 200) based on the switched power state (i.e., S4 state) and the preset communication time (e.g., 3 seconds). In step S430, electronic device 310 operates normally.
在另一方面,當步驟S410的判斷結果為是時,表示電子裝置310連接擴充裝置320。在此示例性情況中,電子裝置310(例 如是內嵌控制器312)根據擴充裝置320判斷是否存取設定檔PF2以設定延遲時間DT。電子系統300續行步驟S440。 On the other hand, if the result of step S410 is yes, it indicates that electronic device 310 is connected to expansion device 320. In this exemplary case, electronic device 310 (e.g., embedded controller 312) determines whether to access configuration file PF2 to set delay time DT based on expansion device 320. Electronic system 300 then proceeds to step S440.
在步驟S440,電子裝置310(例如是電源傳輸控制器311)存取擴充裝置320的硬體識別碼(Hardware ID)。此外,電子裝置310(例如是電源傳輸控制器311)根據擴充裝置320的硬體識別碼判斷擴充裝置320是否支援設定檔PF2。 In step S440, the electronic device 310 (e.g., the power transmission controller 311) accesses the hardware ID of the expansion device 320. Furthermore, the electronic device 310 (e.g., the power transmission controller 311) determines whether the expansion device 320 supports profile PF2 based on the hardware ID of the expansion device 320.
當步驟S440的判斷結果為否時,表示擴充裝置320不支援設定檔PF2。電子系統300續行步驟S420~S430。也就是說,電子裝置310維持預設檔PF1以基於預設的溝通時間(例如是3秒)來與外接電子裝置200進行協議溝通,並且切換不同的電源傳輸設定以從供電角色切換至受電角色。在被喚醒至S0狀態時,電子裝置310機率性地可以正常地操作。 If the determination result in step S440 is negative, it indicates that the expansion device 320 does not support profile PF2. The electronic system 300 then proceeds to steps S420-S430. In other words, the electronic device 310 maintains the default profile PF1 to communicate with the external electronic device 200 based on a preset communication time (e.g., 3 seconds), and switches between different power transmission settings to switch from the power supply role to the power receiving role. Upon waking up to the S0 state, the electronic device 310 is likely to operate normally.
在另一方面,當步驟S440的判斷結果為是時,表示擴充裝置320支援設定檔PF2。電子系統300續行步驟S450~S470,以根據延遲時間DT來操作。 On the other hand, if the determination result of step S440 is yes, it indicates that the expansion device 320 supports profile PF2. The electronic system 300 then proceeds to steps S450-S470 to operate according to the delay time DT.
應注意的是,電子系統300允許電子裝置310事先與擴充裝置320進行溝通。電子系統300對特定的擴充裝置320(即,支援設定檔PF2的擴充裝置320),設定較協議溝通的所需時間長的延遲時間DT。如此,電子系統300選擇性地對特定的擴充裝置320處理在上述的示例性情況中機率性的問題。 It should be noted that electronic system 300 allows electronic device 310 to communicate with expansion device 320 in advance. For a specific expansion device 320 (i.e., expansion device 320 supporting profile PF2), electronic system 300 sets a delay time DT that is longer than the required time for the protocol communication. In this way, electronic system 300 selectively addresses the probabilistic issue in the aforementioned exemplary scenario for a specific expansion device 320.
在步驟S450,由於電源適配器400被插入至第二連接埠P2,因此擴充裝置320(例如是電源傳輸控制器321)傳輸通知信 息至電子裝置310的電源傳輸控制器311。在步驟S460,電源傳輸控制器311進一步傳輸通知信息至內嵌控制器312。通知信息指示擴充裝置320連接電源適配器400。 In step S450, since the power adapter 400 is plugged into the second port P2, the expansion device 320 (e.g., the power transmission controller 321) transmits a notification message to the power transmission controller 311 of the electronic device 310. In step S460, the power transmission controller 311 further transmits the notification message to the embedded controller 312. The notification message indicates that the expansion device 320 is connected to the power adapter 400.
在步驟S470,內嵌控制器312根據通知信息存取設定檔PF2以設定延遲時間DT。在本實施例中,延遲時間DT的時間長度大於預設的閾值。預設的閾值可例如是預設檔PF1中預設的溝通時間的時間長度(例如是3秒)。 In step S470, the embedded controller 312 accesses the configuration file PF2 based on the notification information to set the delay time DT. In this embodiment, the delay time DT is greater than a preset threshold. The preset threshold can be, for example, the communication time preset in the default profile PF1 (e.g., 3 seconds).
也就是說,電源傳輸控制器321透過通知信息告知電源傳輸控制器311以及內嵌控制器312,以使電子裝置310得知將需要進行DRP的切換。如此,當電子裝置310切換電源狀態時,電子裝置310(例如是電源傳輸控制器311)根據通知信息在延遲時間DT之前,從供電角色切換至受電角色。 In other words, the power transmission controller 321 notifies the power transmission controller 311 and the embedded controller 312 via notification information, informing the electronic device 310 that a DRP switch is necessary. Thus, when the electronic device 310 switches its power state, the electronic device 310 (e.g., the power transmission controller 311) switches from the power supply role to the power receiving role before the delay time DT, based on the notification information.
電子系統300回到步驟S430。此時,由於電子裝置310在完成協議溝通之前,成功地從供電角色切換至受電角色,因此電子裝置310能夠完成暫存執行中的程序以正確地進入所切換的電源狀態(即,S4狀態)。如此,電子裝置310正常地操作。也就是說,當電子裝置310被喚醒至S0狀態時,電子裝置310能夠恢復所完成暫存的程序。 Electronic system 300 returns to step S430. At this point, because electronic device 310 successfully switched from the power supply role to the power receiving role before completing protocol communication, electronic device 310 was able to complete the temporarily executed program and correctly enter the switched power state (i.e., S4). Thus, electronic device 310 operates normally. In other words, when electronic device 310 is awakened to S0, it can resume the completed temporarily executed program.
圖5是依據本揭露圖3實施例所繪示的電子系統的操作示意圖。參考圖3以及圖5,電子裝置310可應用在圖4實施例所述的示例性情況中。 FIG5 is a schematic diagram illustrating the operation of the electronic system shown in FIG3 according to the embodiment of the present disclosure. Referring to FIG3 and FIG5 , the electronic device 310 can be used in the exemplary scenario described in FIG4 .
在本實施例中,當電子裝置310從工作模式(即,S0狀 態)切換至休眠模式(即,S4狀態)時,電子裝置310(例如是處理器313)根據延遲時間DT來與外接電子裝置200進行協議溝通(例如是握手(handshake))。也就是說,電子裝置310在時間點t1至時間點t5之間(即,延遲時間DT),暫存電子裝置310、及/或外接電子裝置200在執行中的程序。 In this embodiment, when electronic device 310 switches from active mode (i.e., S0 state) to sleep mode (i.e., S4 state), electronic device 310 (e.g., processor 313) performs protocol communication (e.g., handshake) with external electronic device 200 based on delay time DT. In other words, electronic device 310 temporarily stores programs currently running on electronic device 310 and/or external electronic device 200 between time t1 and time t5 (i.e., delay time DT).
接續上述的說明,電子裝置310在協議溝通開始後的預定時間點t4,在受電角色以及供電角色之間切換。也就是說,電子裝置310在完成協議溝通之前(即,延遲時間DT之前),完成DRP的應用。如此一來,電子裝置310能夠成功地從供電角色切換至受電角色,據以正確地進入休眠狀態(即,S4狀態)。因此,當電子裝置310從S4狀態被喚醒至S0狀態時,電子裝置310能夠恢復原先執行中的程序,而不會使此程序被關閉而消失。 Continuing with the above description, electronic device 310 switches between the power receiving and power supply roles at a predetermined time t4 after protocol communication begins. In other words, electronic device 310 completes the DRP application before completing protocol communication (i.e., before the delay time DT). This allows electronic device 310 to successfully switch from the power supply role to the power receiving role, thereby correctly entering the sleep state (i.e., S4 state). Therefore, when electronic device 310 awakens from S4 to S0 state, it can resume the previously executed program without causing it to be closed and lost.
在本實施例中,延遲時間DT的時間長度可例如是5秒。協議溝通開始後至預定時間點t4之間的時間長度可例如是4秒。 In this embodiment, the delay time DT may be, for example, 5 seconds. The time between the start of the protocol communication and the predetermined time point t4 may be, for example, 4 seconds.
綜上所述,在透過擴充裝置連接外接電子裝置的應用中,本揭露實施例的電子系統及其操作方法透過設定較協議溝通的所需時間長的延遲時間,能夠使電子裝置在延遲時間之內完成DRP的應用,並且在延遲時間之後再進入休眠狀態(即,S4狀態)。如此,電子裝置能夠正確地切換至S4狀態而非S5狀態,並且在喚醒時能夠恢復原先執行中的程序,進而避免使用者體驗不佳。 In summary, in applications where an expansion device is connected to an external electronic device, the electronic system and operating method of the disclosed embodiments, by setting a delay time longer than the required protocol communication time, allows the electronic device to complete the DRP application within the delay time and then enter the sleep state (i.e., S4 state) after the delay time. This allows the electronic device to correctly switch to S4 state instead of S5 state and resume the previously executed program upon awakening, thus avoiding a poor user experience.
雖然本揭露已以實施例揭露如上,然其並非用以限定本揭露,任何所屬技術領域中具有通常知識者,在不脫離本揭露的精 神和範圍內,當可作些許的更動與潤飾,故本揭露的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present disclosure has been disclosed above through embodiments, they are not intended to limit the present disclosure. Anyone with ordinary skill in the art may make minor modifications and improvements without departing from the spirit and scope of the present disclosure. Therefore, the scope of protection of the present disclosure shall be determined by the scope of the attached patent application.
100:電子系統 100: Electronic Systems
110:電子裝置 110: Electronic devices
120:擴充裝置 120: Expansion device
200:外接電子裝置 200: External electronic devices
DT:延遲時間 DT: Delay Time
P1:連接埠 P1: Port
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW113109309A TWI891280B (en) | 2024-03-13 | 2024-03-13 | Electronic system and operating method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW113109309A TWI891280B (en) | 2024-03-13 | 2024-03-13 | Electronic system and operating method thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI891280B true TWI891280B (en) | 2025-07-21 |
| TW202536586A TW202536586A (en) | 2025-09-16 |
Family
ID=97228440
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW113109309A TWI891280B (en) | 2024-03-13 | 2024-03-13 | Electronic system and operating method thereof |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI891280B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TW202225911A (en) * | 2020-10-07 | 2022-07-01 | 克里斯多福 赫爾德埃斯 | Adapter, device, preferably usb device, corresponding computer device and method |
| US20230223988A1 (en) * | 2019-11-01 | 2023-07-13 | Cisco Technology, Inc. | Fault managed power with dynamic and adaptive fault sensor |
-
2024
- 2024-03-13 TW TW113109309A patent/TWI891280B/en active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20230223988A1 (en) * | 2019-11-01 | 2023-07-13 | Cisco Technology, Inc. | Fault managed power with dynamic and adaptive fault sensor |
| TW202225911A (en) * | 2020-10-07 | 2022-07-01 | 克里斯多福 赫爾德埃斯 | Adapter, device, preferably usb device, corresponding computer device and method |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202536586A (en) | 2025-09-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7853815B2 (en) | Method and apparatus for controlling power supply in a computer system under low power consumption mode | |
| CN103294545B (en) | Method for switching dual operating systems and electronic device | |
| US10831700B2 (en) | Methods and apparatus for reducing power consumption within embedded systems | |
| US20100332870A1 (en) | Electronic device for reducing power consumption of computer motherboard and motherboard thereof | |
| CN101170777A (en) | A method for realizing sleep/wakeup of multi-mode mobile terminal | |
| CN101645056B (en) | Apparatus and method for docking of mobile device supporting docking station | |
| WO2010124607A1 (en) | Control device, main board and computer | |
| WO2013033948A1 (en) | Mobile terminal boot control method and mobile terminal | |
| CN102200827A (en) | Sleep and wake-up methods and systems for equipment | |
| JP2015170292A (en) | Semiconductor device | |
| JPH11288334A (en) | Method and apparatus for powering down a computer system | |
| TWI693513B (en) | Server system and power saving method thereof | |
| CN112290640A (en) | Interface circuit and electronic equipment charge | |
| TWI891280B (en) | Electronic system and operating method thereof | |
| CN101281416A (en) | Method for ensuring system shutdown completion | |
| CN113127045A (en) | Electronic equipment and CPLD (complex programmable logic device) firmware loading method | |
| CN210111685U (en) | A fast response circuit for power switching | |
| US10860076B2 (en) | Computer system, client device and display device | |
| CN114924639B (en) | Electronic device and method for waking up micro control unit | |
| JP2001344047A (en) | Electronic device and power-on control method for electronic device | |
| CN117967597A (en) | A fan control circuit, method, device, equipment and medium | |
| CN114583772B (en) | Electronic device supporting Type-C connection and method thereof | |
| TWI898479B (en) | Docking device, electronic device and power supply managing method | |
| CN114647293B (en) | Power-down protection method and device, power supply monitoring assembly and server | |
| CN106066835B (en) | Combined chip suitable for USB connector |