TW201235830A - Electric device and control method thereof - Google Patents

Electric device and control method thereof Download PDF

Info

Publication number
TW201235830A
TW201235830A TW100106567A TW100106567A TW201235830A TW 201235830 A TW201235830 A TW 201235830A TW 100106567 A TW100106567 A TW 100106567A TW 100106567 A TW100106567 A TW 100106567A TW 201235830 A TW201235830 A TW 201235830A
Authority
TW
Taiwan
Prior art keywords
electromagnetic wave
electronic device
frequency
predetermined value
count value
Prior art date
Application number
TW100106567A
Other languages
Chinese (zh)
Inventor
hai-xia Tang
Original Assignee
Hon Hai Prec Ind Co 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Publication of TW201235830A publication Critical patent/TW201235830A/en

Links

Abstract

The present invention relates to an electric device and a control method used by a electric device thereof. The electric device includes at least two operation modes including a normal work mode and a power saving mode. The control method includes the following steps: emitting out an electromagnetic wave signal; receiving a feedback electromagnetic wave signal; obtaining a count value corresponding to a period from a time of starting emitting the electromagnetic wave signal to a time of the feedback electromagnetic wave signal being received; and comparing the count value with a first predetermined value, if the count value is less than or equal to the first predetermined value, the electric device is controlled to execute the normal work mode; if the count value is greater than the first predetermined value, the electric device is controlled to execute the power saving model. Therefore, the electric device and its control method can exactly to change the operation modes of the electric device according to directions of the user.

Description

201235830 六、發明說明: 【發明所屬之技術領域】 [⑽1 ] 本發明係關於一種具有正常工作模式及省電節能模式的 電子裝置以及控制電子裝置執行相應模式的控制方法。 【先前技秫ί】 [0002] 目前節能、環保已經成為人們普遍關注的重點,尤其在 電腦領域中功耗也已經成為衡量各類電子裝置的重要指 標。例如,省電功能中的休眠、待機已經成為電腦系統 對其内部各模組的供電進行管理所必不可少的部分。目 前的電腦是執行正常工作模式還是省電節能模式,主要 通過鍵盤、滑鼠等輸入設備是否在設定時間内未收到使 用者的指令來判斷。若判斷結果為是,表明使用者在該 設定時間内未對電腦進行任何操作,從而推定使用者暫 時無需使用電腦,則執行相應的省電操作,以使電腦進 入休眠或者待機等省電節能模式。然而,使用者在使用 電腦時,並非所有情況都需要不斷操作鍵盤、滑鼠等輸 入設備,例如使用者使用電腦觀看電視劇、電影、動晝 等視頻内容時,電腦正在運行的進程是並不需要使用者 的參與,在此類情況下採用上述省電節能模式,即若使 用者超過其設定時間未對電腦進行操作,從而判定使用 者無需對其進行處理或操作從而進入電腦省電節能模式 ,則會與實際情況不符。換句話說,目前電腦啟動省電 模式所採用的控制方法不能夠完全滿足使用者的需求, 並且給使用者正常使用電腦帶來一些不便。 【發明内容】 100106567 表單編號Α0101 第4頁/共30頁 1002011207-0 201235830 [0003] 有鑑於此,提供一種精確的控制電子裝置依據使用者的 需求執行對應的工作模式的控制方法實為必要。 [0004] 進一步,提供一種適用上述控制方法的電子裝置亦實為 必要。 [0005] —種電子裝置工作模式的控制方法,該電子裝置至少包 括正常工作模式與省電節能模式兩種工作模式,該控制 方法包括以下步驟: [0006] 發射電磁波訊號; Ο [0007] 接收電磁波訊號; [0008] 獲得計數值,該計數值與發射出發射電磁波訊號至接收 到回收電磁波訊號的時間差值相關;及 [0009] 將該計數值與一第一預定值進行比較,若該計數值小於 或等於該第一預定值,則控制該電子裝置執行正常工作 模式;若該計數值大於該第一預定值,則控制該電子裝 置執行省電模式。 [0010] 一種電子裝置,其包括一處理單元與一檢測單元,該檢 測單元包括一電磁波發射器、一電磁波接收器與一計數 器,該電磁波發射器用於發射一電磁波訊號,該電磁波 接收器用於接收電磁波訊號,該計數器用於獲取電磁波 發射器發射出的電磁波訊號反射回收至電磁波接收器的 時間差對應的計數值。該檢測單元連接於該處理單元, 該處理單元用於根據檢測單元輸出的控制訊號控制電子 裝置處於不同的工作模式,該檢測單元將獲取的時間差 100106567 第5頁/共30頁 1002011207-0 表單編號A0101 201235830 與一第一預定值進行比較,若該計數值小於等於該第一 預定值,則檢測單元輸出一第一控制訊號至處理單元, 該處理單元控制該電子裝置執行正常工作模式;若該計 數值大於該第一預定值,則檢測單元輸出一第二控制訊 號至處理單元,該處理單元控制該電子裝置執行省電節 能模式。 [0011] 相較于先前技術,電子裝置通過檢測使用者的狀態而控 制電子裝置的工作模式,即通過判斷使用者是否處於使 用電子裝置的範圍内,若使用者處於該範圍内時,則使 得電子裝置執行正常工作模式,若使用者離開電子裝置 的使用範圍時,使得電子裝置執行省電節能模式,達到 節能的目的。由此,電子裝置在長時間内沒有接收到使 用者對電子裝置任何操作,但使用者卻希望電子裝置能 夠正常工作時,使得電子裝置能夠一直處於正常工作模 式,以避免電子裝置採用僅根據使用者未對電子裝置進 行操作的時間來判斷電子裝置進入省電工作模式的標準 時出現誤判,減小了現有電子裝置誤判而進入省電節能 模式的可能性,達到更為準確地依據使用者的需求使得 電子裝置執行何種工作模式。 【實施方式】 [0012] 請參閱圖1,其為本發明第一較佳實施方式的電子裝置工 作模式控制方法的流程圖。該電子裝置為一人機作業系 統。在本實施例中,該電子裝置可為一個人電腦,且在 該個人電腦的顯示器上設置有一電磁波發射器與電磁波 接收器。該控制方法至少包括以下步驟: 100106567 表單編號A0101 第6頁/共30頁 1002011207-0 201235830 L0013J [0014] [0015] Ο [0016] [0017] [0018] Ο [0019] S1,發射電磁波訊號。 在步驟S1中’該電磁波發射益產生電磁波訊號’為敍述 方便,在本實施方式中,定義該電磁波訊號為發射電磁 波訊號。優選地,當該個人電腦監測到其外設設置,如 :滑鼠、鍵盤等處於閒置狀態,該個人電腦控制該電磁 波發射器以一定的時間間隔tl產生電磁波訊號。優選地 ,該時間間隔11小於該個人電腦設定的螢幕保護時間。 S2,接收電磁波訊號。 在步驟S2中,該電磁波發射器發出的電磁波在受到阻擋 後,被反射回收至該顯示器,並被該電磁波接收器所接 收,為敍述方便,在本實施方式中,定義該反射回收的 電磁波訊號為回收電磁波訊號。 S3,獲得計數值,該計數值與發射出發射電磁波訊號至 接收到回收電磁波訊號的時間差值相關。 在步驟S3中,該個人電腦自該電磁波發生器產生發射電 磁波訊號的同時輸出一啟動計數的訊號至一時間計數器 ,該時間計數器開始計數。當該電磁波接收器接收到該 回收電磁波訊號的同時輸出一終止計數的訊號至時間計 數器,時間計數器獲得一計數值,該計數值對應於發射 出電磁波訊號至接收到回收電磁波訊號的時間差to。 S4,將該計數值與一第一預定值進行比較,若該計數值 小於或等於該第一預定值,則控制該個人電腦執行正常 工作模式;若該計數值大於該第一預定值,則控制該個 人電腦執行省電模式。 100106567 表單編號A0101 第7頁/共30頁 1002011207-0 201235830 [0020] 在此步驟中,該個人電腦將時間計數器計數的時間差10 與該第一預定值t進行比較運算。其中,該第一預定值t 為使用者處於該個人電腦的第一預定範圍時,例如距離 該個人電腦為2米的範圍時,電磁波訊號自發射至被反射 接收的最長時間對應的時間計數器的計數值。 [0021] 若t0>t,則表明使用者處於使用該個人電腦的第一預定 範圍之外,該控制器輸出一第二控制訊號控制該個人電 腦執行省電節能模式;若tost,則表明使用者處於使用 該個人電腦預定範圍内,該控制器輸出一第一控制訊號 控制該個人電腦執行正常工作模式。 [0022] 請參閱圖2,其為本發明的第二較佳實施例的電子裝置工 作模式控制方法的流程圖。該控制方法至少包括以下步 驟: [0023] S1 ’ ,發射電磁波訊號。 [0024] 在此步驟中,該電磁波發射器產生並發射一第一頻率為 f〇的發射電磁波訊號。優選地,當該個人電腦監測到其 外設設置,如:滑鼠、鍵盤等處於閒置狀態,該個人電 腦控制該電磁波發射器以一定的時間間隔tl產生一電磁 波訊號。優選地,該時間間隔tl小於該個人電腦設定的 螢幕保護時間。 [0025] S2’,接收電磁波訊號。 [0026] 在此步驟中,該電磁波發射器發出的電磁波訊號在遇到 使用者後,以第二頻率Π反射回收至該顯示器,並被該 電磁波接收器所接收,電磁波接收器對接收到的回收電 100106567 表單編號A0101 第8頁/共30頁 1002011207-0 201235830 [0027] [0028] Ο [0029] ο [0030] [0031] 磁波訊號進行分析處理後得到其第二頻率fl。具體地, 該個人電腦包括一頻率計數器,該頻率計數器對該回收 電磁波訊號進行頻率計數,從而得出該回收電磁波訊號 的第二頻率fl。 S3’ ,獲得計數值,該計數值與發射出發射電磁波訊號 至接收到回收電磁波訊號的時間差值相關。 在此步驟中,該個人電腦自該電磁波發生器發射電磁波 的同時輸出一啟動計數的訊號至一時間計數器,時間計 數器開始計數。當發射電磁波在傳輸過程中受到阻擋進 而反射一回收電磁波,該個人電腦在電磁波接收器接收 到該回收電磁波的同時輸出一終止計數的訊號至時間計 數器,時間計數器獲得一計數值,該計數值對應於發射 出發射電磁波訊號至接收到回收電磁波訊號的時間差to 〇 S4’ ,將該計數值與一第一預定值t進行比較,若該計數 值小於或等於該第一預定值t,則控制該個人電腦執行正 常工作模式;若該計數值大於該第一預定值t,則執行步 驟 S5,。 在本發明控制方法的其他實施方式中,若該計數值大於 該第一預定值t,則再將該計數值與一第二預定值t’進 行比較,若該計數值大於該第二預定值t’ ,則控制該個 人電腦執行省電節能模式;若該計數值小於等於該第二 預定值t’ ,則執行步驟S5’ 。 在此步驟中,該第一預定值t為使用者處於該個人電腦的 100106567 表單編號A0101 第9頁/共30頁 1002011207-0 201235830 、疋範圍内時,電磁波訊號自發射至被反射接收的 最長時間對應的時間計數器的計數值。該第二預定值^, 為使用者處於距離該個人電腦的第二範圍内時,即使用 者處於D亥第—範圍外時為不可能使用該個人電腦,電磁 皮a號自發射至被反射接收的最長時間對應的時間計數 器的計數值。在本實施方式中,第二預定值t,大於第一 預定值t。 剛該個人電腦將計數值對應的時間差to與預定值tm,分 別進仃比較運算。若t0$t,則表明使用者處於使用該個 人電腦的第-預定範菌内,該__能制訊號使得 該個人電腦執行正常工作模式。若t〇>t,,則表明使用 者處於使用電子裝置的第—預定範圍之外,則控制該個 人電腦執行省電節能模式。若t<t(^t,,則該個人電 腦進一步執行步驟S5’ 。 [0033] S5’ ,分析回收電磁波訊笨的頻,並且將回收電磁 波訊號的第二頻率f 1與發射電舞魂訊號的第一頻率f 〇進 订比較,若第二頻率Π大跨或者等於第一頻率“,則控 制該個人電腦執行正常工作模式;若第二頻率fl小於第 一頻率f0,則控制該個人電腦執行省電模式。 [0034] 在此步驟中,若頻率的比較結果為fl<f〇時,則表明使用 者正處於遠離該個人電腦的狀態,則控制該個人電腦執 行省電節能模式。當比較結果為£1=£〇,則表明使用者正 處於靜止狀態,以及當比較結果為fl>f0,則表明使用 者自其初始位置靠近該個人電腦的狀態,由此,當頻率 的比較結果為f 1 2 f 〇時,則控制該個人電腦執行正常工 1002011207-0 100106567 表單編號A0101 第10頁/共30頁 201235830 [0035] [0036] ❹ [0037] Ο [0038] 作模式。 優選地,在本第二實施方式的步驟S5之後,還包括一延 時的步驟,當該個人電腦對發射電磁波的頻率與回收電 磁波的頻率進行比較後,若得出反射電磁波的頻率il<f0 時,該個人電腦在延遲一定時間後再次判斷使用者相對 於該個人電腦的狀態,以防止誤操作。 具體地,該個人電腦得到fl<f0後,其延遲一時間t2後再 次執行步驟S4’與S5’ 。在本實施方式中,延遲時間t2 可以依據使用者的需求進行設定,例如5秒鐘。延遲時間 t2可以通過軟體程式來實現。由此,該個人能夠更加準 確的判斷使用者需要電子裝置在何種工作模式下工作。 請參閱圖3,其為本發明電子裝置一較佳實施方式的硬體 結構示意圖。本實施方式所述的個人電腦10包括顯示器 11、主機13以及外設控制設備15。主機13分別電連接於 顯示器11與外設控制設備15,顯示器11用於顯示主機13 處理的資料,外設控制設備15用於供使用者操作,從而 控制主機13執行相應的應用程式及資料。 請參閱圖4,其為主機13的結構示意圖。主機13包括處理 單元131、檢測單元133、存儲單元135以及電源管理單 元137。其中,檢測單元133、存儲單元135以及電源管 理單元137分別與處理單元131電連接。處理單元131包 括有中央處理器(CPU)(圖未示)等具有資料處理功能的元 件,以用於處理各種應用程式。存儲單元135用於存儲供 處理單元131處理的應用程式及其需要的資料。在本實施 100106567 表單編號A0101 第11頁/共30頁 1002011207-0 201235830 方式中存儲單元135包括有硬碟、隨機記憶體(隨)或 者唯讀記憶體(娜)記憶元件來實現其資料存儲的功能。 電源s理單;^137包括電源裝置(圖未示),電源裝置用於 為主機1 3中的各單元提供電源,並且,電源管理單元1 3 7 根據處理單元131輸出的控制訊號調整電源裝置的狀態。 檢測單元133用於檢測個人電腦10的使用狀態,處理單元 131根據檢測單元133的檢測結果控制個人電腦1〇的工作 模式。 [0039] f要說明的是,個人電腦1()至少具有正常工作模式與省 電節能模式兩種工作模式,本實施方式所述的正常工作 模式為電源管理單元〗37為處理單元131、存儲單元135 提供其工作所需要的電壓,同時處理單元131對使用者開 啟的所有應程式依序進行處理,並且將處理結果及時地 在顯示器11上進行顯示。所述的省電節能模式為處理單 元131把當前運行的各應用程式的操作狀態存儲在存儲單 元1 35的記憶體中,停止為顧示-1〗挺供翱示資料’而電 源管理單元137僅為處理單元131、檢測單元丨33以及存 儲單元135提供最低限度的工作電壓,並且停止為其他外 設控制設備1 5例如滑鼠、鍵盤供電,當然,個人電腦^ 〇 進入省電節能模式可以通過相應的軟體程式來控制個人 電腦10的各部件來實現’從而達到省電節能的目的。 [0040]檢測單元1 33用於檢測個人電腦1 〇的使用者的狀態,本實 施方式中所述的狀態為使用者相對於顯示器丨〗的狀態, 例如使用者是否處於使用個人電腦1〇的預定範圍内,以 及使用者在預定範圍外相對於個人電腦處於靜止、靠 100106567 表單編號A0101 第12頁/共30頁 1002011207-0 201235830 近或遠離的狀態。 [0041] 在本實施方式中,檢測單元133包括至少一電磁波發生器 1331、至少一電磁波接收器1 333與一控制器1 335,其中 ’電磁波發生器1331以及電磁波接收器1333分別連接於 控制器1335。電磁波發生器1331用於產生並發射一第一 頻率f0的發射電磁波訊號’電磁波接收器1333用於接收 電磁波訊號。本實施方式中定義電磁波發生器丨331發射 的電磁波為發射電磁波訊號,電磁波接收器1333接收的 Ο [0042] 電磁波為回收電磁波訊號》 . :: :: . .:¾ . .. Ο 控制器1335用於控制電磁波發生器1331與電磁波接收器 1333的工作狀態。具體地,控制器1335輸出一啟動或停 止訊號至電磁波發生器1331以控制電磁波發生器1331的 啟動或者停止,即控制電磁波發生器1331啟動發射電磁 波或者停止發射電磁波。同時,控制器1335還可以通過 發射相應控制訊號控制電磁波接收器1333的啟動或者停 止。在本發明其他實施方式中,檢測單元133並不限於電 磁波發生器1331,還可以採用聲破發生器、光波發生器 等能夠輻射波的波源,類似地,電磁波接收器1333也對 應的可以為聲波接收器、光波接收器等。 [0043] 進一步’檢測單元133還進一步包括一時間計數器1 332, 其分別電連接於電磁波發生器1331及電磁波接收器1333 ’用於獲得發射出發射電磁波訊號至接收到回收電磁波 訊號的時間差t〇,後續簡稱發射接收時間差t0。在其他 實施方式中,時間計數器1332也可以直接與控制器1335 連接’從而控制器1 335在控制電磁波發生器1331啟動的 100106567 表單編號A0101 第13頁/共30頁 1002011207-0 201235830 同時也控制時間計數器1 332啟動計數,當控制器1 335在 電磁波接收器13 3 3接收到回收電磁波訊號時控制時間計 數器1332停止計數。也就是說,時間計數器1 332計數的 啟動與停止並不限於此實施方式。 [〇_㉟制器1335接收時間計數器1 332對電磁波訊號的發射接 收時間差to的計數值並將其與預定值七進行比較。當計數 值對應的發射時間差t〇小於或等於第_預定值七時,控制 器1335輸出一第一控制訊號至處理單元131,處理單元 1 31在接收到該第一控制訊號時控制個人電腦1 〇執行正常 工作模式。該第一控制訊號可以是一娘電位訊號。當發 射接收時間差to大於第一預定值七時,控制器1 335輸出— 第二控制訊號至處理單元131,處理單元131在接收到該 第一控制讯號時控制個人電腦i 〇執行省電節能模式。該 第二控制訊號可以是-高電位訊號。在本發明其他實施 方式中,第一控制訊號並不限於低電位訊號,其也可以 是高電位訊號,同理,第二控制訊號也i不限於高電位 訊號,其也可以是低電位歸號。 [0045]纟本發明電子裝置其他實施方式中,當控制器⑶5將發 射接收時間差to與第一預定值t比較後,得出t〇>t,則 控制器1335將進一步將發射接收時間差t〇與一第二預定 值t,進行比較,其中’第二預定值t’大於發射接收時 間差tO。若tO>t’ ,控制器1 335輸出第一控制訊號至 處理早’處理單元131在接收到該第一控制訊 控制個人電腦10執行省電節能模式。 心 圆優選地,當時間計數器1 332達到第二預定值士,後直 100106567 表單編號A0101 $ 14頁/共3〇頁 ' 1002011207-0 201235830 出第二控制訊號至處理單元131。換句話說,該第二預定 值t’可以設置為時間計數器1332的上限值,當時間計數 器1332計數達到第二預定值t’後,輸出第二控制訊號至 處理單元131從而直接控制個人電腦1〇執行省電節能模式 [0047] Ο 在本發明電子裝置其他實施方式中,檢測單元133還包括 有一頻率計數器1334,其電連接於電磁波接收器1333以 用於對電磁波接收器1333接收到的回收電磁波訊號的第 二頻率fl進行計數測量,並且將計數測量結果輪出至控 制器1335。其中’頻率計數器1334需要對回收電磁波訊 號進行放大、整流等處理,從而將接收的回收電磁波訊 號變為規則的脈衝訊號以便於準確的計數。 [0048] Ο 當控制器1 335通過比較發射接收時間差土办與第一預定值七 並得出發射接收時間差训大於第一預定值七時,控制器 1335將第二頻率fl與第一頻率f〇進行比較。若第二頻率 fi大於或等於第一頻率f0,則控制器1 335輸出一第一控 制訊號至處理單先131,處理單元131在接收到該第一控 制訊號時控制個人電腦10執行正常工作模式。若第二頻 率π小於第一頻率f0 ,控制器1 335輸出一第二控制訊號 至處理單元131,處理單元131在接收到該第二控制訊號 Bf控制個人電腦1〇執行省電節能模式。當然,第一頻率 ί〇可以預先存儲於存儲單元135中,則控制器1335可以 直接在存储單元135中調用第一頻率,在本發明其他實 施方式中並不限於此。 [0049] 100106567 在本發明其他實施方式中’控制器1335在對發射接收時 表單編號A0101 第15頁/共30頁 1002011207-0 201235830 間差to與第一預定值t比較並得出to>t時,則進一步將 to與第二預定值t’進行比較,若tctost’ ,則控制器 1 335進一步對回收電磁波訊號的頻率f 1與發射電磁波訊 號的頻率f〇進行比較,並且根據比較結果輸出相應的控 制訊號,從而控制個人電腦執行對應的工作模式。 [0050] 在本實施方式中,電磁波發生器1331與電磁波接收器 1 333設置於顯示器11上。電磁波發生器1331與電磁波接 收器1 333可以相鄰並且間隔一定距離而設置。在本發明 其他實施方式中,該電磁波接收器1333還可以設置於顯 示器11相對於使用者的側面的任何位置,例如顯示器11 的邊框上。另外,檢測單元133還可以設置多個電磁波接 收器1 333,並且分別設置於顯示器11相對於使用者的侧 面的多個位置,從而當發射電磁波自電磁波發生器1331 發射出並且在受到阻擋後從不同方向反射至該複數電磁 波接收器1 333,從而控制器1 335通過分析該多個電磁波 接收器接收反射波的不同時間差從而確定使用者的位置 ,從而更加準確的瞭解使用者的狀態。 [0051] 請參閱圖5,其為使用者使用本發明電子裝置的過程示意 圖,現舉例說明個人電腦10執行不同工作模式的原理: [0052] 使用者在使用顯示器11時,顯示器11位於沿使用者的y坐 標軸的正方向,並且使用者所處的初始位置A與顯示器11 的距離為D0,定義該範圍為第一預定範圍,該第一預定 範圍為使用者使用個人電腦10的常規使用範圍。控制器 1 335輸出一啟動發射訊號至電磁波發生器1331,從而電 磁波發生器1331發射一頻率為f0的發射電磁波訊號,同 100106567 表單編號A0101 第16頁/共30頁 1002011207-0 201235830 %•電磁波發生器13 31輸出一啟動計數訊號至時間計數器 1332,時間計數器1332啟動計數。當發射電磁波訊號傳 輸至使用者時受到阻擋,且以第二頻率丨〗反射回收至電 磁波接收器1333,電磁波接收器1333在接收到第二頻率 為Π的回收電磁波訊號後輸出一終止計數訊號至時間計 數器1332,時間計數器1332停止計數,並且將計數結果 輸出至控制器1 335,從而對發射電磁波訊號與回收電磁 波訊號的發射接收時間差t〇進行測量。 0 10053]控制器1335在 [0054] 收付吋间計數器ip 2對發射接收時間差t 〇 進行計數的計數值後將其與預定值t、t,進行比較。預„用者處於相對於用個人電腦_第一預定範圍 射電磁波與回收電磁波的發射接收時間差;預定、;:電使用者處於相對於個人電腦1。的第二預定範圍時 =磁波與回收電磁波的發射接收時間差…t,另J可通過公式計算得到: ?: ·,...........201235830 VI. Description of the Invention: [Technical Field of the Invention] [(10) 1] The present invention relates to an electronic device having a normal operation mode and a power saving mode, and a control method for controlling the electronic device to execute a corresponding mode. [Previous Technology] [0002] At present, energy conservation and environmental protection have become the focus of people's attention. Especially in the computer field, power consumption has become an important indicator for measuring various types of electronic devices. For example, sleep and standby in the power-saving function have become an indispensable part of the computer system to manage the power supply of its internal modules. Whether the current computer performs the normal working mode or the power saving mode, mainly judges whether the input device such as keyboard or mouse has not received the user's instruction within the set time. If the result of the determination is yes, it indicates that the user has not performed any operation on the computer within the set time, thereby presuming that the user does not need to use the computer for a while, and then performs corresponding power-saving operation, so that the computer enters a power-saving mode such as sleep or standby. . However, when a user uses a computer, not all situations require constant operation of keyboards, mice, and other input devices. For example, when a user watches a video, a movie, a movie, or the like using a computer, the running process of the computer does not need to be performed. In the case of the user's participation, the above-mentioned power-saving energy-saving mode is adopted in such a case, that is, if the user does not operate the computer beyond the set time, it is determined that the user does not need to process or operate the computer to enter the computer power-saving mode. It will not match the actual situation. In other words, the current control method used to start the power-saving mode of the computer cannot fully meet the needs of the user, and brings some inconvenience to the user to use the computer normally. SUMMARY OF THE INVENTION 100106567 Form No. Α0101 Page 4 of 30 1002011207-0 201235830 [0003] In view of this, it is necessary to provide a precise control method for controlling an electronic device to perform a corresponding working mode according to a user's needs. Further, it is also necessary to provide an electronic device to which the above control method is applied. [0005] A method for controlling an operating mode of an electronic device, the electronic device comprising at least two working modes of a normal working mode and a power saving mode, the control method comprising the following steps: [0006] transmitting an electromagnetic wave signal; [0007] receiving An electromagnetic wave signal; [0008] obtaining a count value related to a time difference between transmitting the emitted electromagnetic wave signal to receiving the recovered electromagnetic wave signal; and [0009] comparing the count value with a first predetermined value, if The counting value is less than or equal to the first predetermined value, and then controlling the electronic device to perform a normal working mode; if the counting value is greater than the first predetermined value, controlling the electronic device to perform a power saving mode. [0010] An electronic device includes a processing unit and a detecting unit, the detecting unit includes an electromagnetic wave transmitter, an electromagnetic wave receiver and a counter, the electromagnetic wave transmitter is configured to emit an electromagnetic wave signal, and the electromagnetic wave receiver is configured to receive The electromagnetic wave signal is used for acquiring the count value corresponding to the time difference of the electromagnetic wave signal reflected by the electromagnetic wave transmitter and recovered to the electromagnetic wave receiver. The detecting unit is connected to the processing unit, and the processing unit is configured to control the electronic device to be in different working modes according to the control signal output by the detecting unit, and the detecting unit will acquire the time difference 100106567, page 5 of 30 pages, 1002011207-0, form number A0101 201235830 is compared with a first predetermined value. If the count value is less than or equal to the first predetermined value, the detecting unit outputs a first control signal to the processing unit, and the processing unit controls the electronic device to perform a normal working mode; When the count value is greater than the first predetermined value, the detecting unit outputs a second control signal to the processing unit, and the processing unit controls the electronic device to perform the power saving mode. [0011] Compared with the prior art, the electronic device controls the working mode of the electronic device by detecting the state of the user, that is, by determining whether the user is within the range of using the electronic device, and if the user is within the range, The electronic device performs a normal working mode, and if the user leaves the use range of the electronic device, the electronic device performs the power saving mode to achieve energy saving. Therefore, the electronic device does not receive any operation of the electronic device by the user for a long time, but the user desires that the electronic device can work normally, so that the electronic device can always be in the normal working mode, so as to prevent the electronic device from being used only according to the use. When the electronic device is not operated, the electronic device enters the standard of the power-saving working mode, and the error is judged, which reduces the possibility that the existing electronic device is misjudged and enters the power-saving and energy-saving mode, so as to more accurately according to the user's demand. What mode of operation is performed by the electronic device. [Embodiment] [0012] Please refer to FIG. 1, which is a flowchart of a method for controlling an operation mode of an electronic device according to a first preferred embodiment of the present invention. The electronic device is a human machine operating system. In this embodiment, the electronic device can be a personal computer, and an electromagnetic wave transmitter and an electromagnetic wave receiver are disposed on the display of the personal computer. The control method includes at least the following steps: 100106567 Form No. A0101 Page 6 / Total 30 pages 1002011207-0 201235830 L0013J [0015] [0015] [0018] [0019] S1, transmitting electromagnetic wave signals. In the step S1, the electromagnetic wave transmitting electromagnetic wave signal is conveniently described. In the present embodiment, the electromagnetic wave signal is defined as a transmitting electromagnetic wave signal. Preferably, when the personal computer monitors its peripheral settings, such as a mouse, a keyboard, etc., the personal computer controls the electromagnetic wave transmitter to generate electromagnetic wave signals at a certain time interval t1. Preferably, the time interval 11 is less than the screen save time set by the personal computer. S2, receiving electromagnetic wave signals. In step S2, after the electromagnetic wave emitted by the electromagnetic wave transmitter is blocked, it is reflected and recovered to the display, and is received by the electromagnetic wave receiver. For convenience of description, in the embodiment, the electromagnetic wave signal of the reflection and recovery is defined. In order to recover electromagnetic wave signals. S3, obtaining a count value, which is related to a time difference between the emission of the electromagnetic wave signal and the receipt of the recovered electromagnetic wave signal. In step S3, the personal computer generates a signal for starting the counting from the electromagnetic wave generator while generating the electromagnetic wave signal to a time counter, and the time counter starts counting. When the electromagnetic wave receiver receives the recovered electromagnetic wave signal and outputs a signal for terminating the counting to the time counter, the time counter obtains a counting value corresponding to the time difference to when the electromagnetic wave signal is emitted until the recovered electromagnetic wave signal is received. S4, comparing the count value with a first predetermined value, if the count value is less than or equal to the first predetermined value, controlling the personal computer to perform a normal working mode; if the count value is greater than the first predetermined value, Control the PC to perform the power saving mode. 100106567 Form No. A0101 Page 7 of 30 1002011207-0 201235830 [0020] In this step, the personal computer compares the time difference 10 of the time counter count with the first predetermined value t. Wherein, the first predetermined value t is a time counter corresponding to the maximum time that the electromagnetic wave signal is transmitted to the time of being reflected and received when the user is in the first predetermined range of the personal computer, for example, within a range of 2 meters from the personal computer. Count value. [0021] If t0>t, indicating that the user is outside the first predetermined range of using the personal computer, the controller outputs a second control signal to control the personal computer to perform a power saving mode; if tost, the use indicates The controller is in a predetermined range using the personal computer, and the controller outputs a first control signal to control the personal computer to perform a normal working mode. [0022] Please refer to FIG. 2, which is a flowchart of a method for controlling an operation mode of an electronic device according to a second preferred embodiment of the present invention. The control method includes at least the following steps: [0023] S1 ', transmitting an electromagnetic wave signal. [0024] In this step, the electromagnetic wave transmitter generates and emits a transmitted electromagnetic wave signal having a first frequency of f〇. Preferably, when the personal computer monitors its peripheral settings, such as a mouse, a keyboard, etc., the personal computer controls the electromagnetic wave transmitter to generate an electromagnetic wave signal at a certain time interval t1. Preferably, the time interval tl is less than the screen save time set by the personal computer. [0025] S2', receiving an electromagnetic wave signal. [0026] In this step, the electromagnetic wave signal emitted by the electromagnetic wave transmitter is recovered by the second frequency 回收 reflection to the display after being encountered by the user, and is received by the electromagnetic wave receiver, and the electromagnetic wave receiver receives the received signal. Recycling 100106567 Form No. A0101 Page 8 of 30 1002011207-0 201235830 [0028] [0030] [001] The magnetic wave signal is analyzed and processed to obtain its second frequency fl. Specifically, the personal computer includes a frequency counter that counts the frequency of the recovered electromagnetic wave signal to obtain a second frequency fl of the recovered electromagnetic wave signal. S3', obtaining a count value, which is related to the time difference between the emission of the electromagnetic wave signal and the receipt of the recovered electromagnetic wave signal. In this step, the personal computer outputs a start-up signal to a time counter while the electromagnetic wave generator emits electromagnetic waves, and the time counter starts counting. When the emitted electromagnetic wave is blocked during transmission and reflects a recovered electromagnetic wave, the personal computer outputs a signal for terminating the counting to the time counter while the electromagnetic wave receiver receives the recovered electromagnetic wave, and the time counter obtains a count value, and the count value corresponds to And transmitting the electromagnetic wave signal to the time difference toS4′ of receiving the recovered electromagnetic wave signal, comparing the count value with a first predetermined value t, and if the count value is less than or equal to the first predetermined value t, controlling the The personal computer performs a normal working mode; if the count value is greater than the first predetermined value t, step S5 is performed. In another embodiment of the control method of the present invention, if the count value is greater than the first predetermined value t, the count value is further compared with a second predetermined value t', if the count value is greater than the second predetermined value t', the PC is controlled to execute the power saving mode; if the count value is less than or equal to the second predetermined value t', step S5' is performed. In this step, the first predetermined value t is the longest time that the electromagnetic wave signal is self-transmitted to be reflected and received when the user is in the range of 100106567 Form No. A0101, page 9 of 30, 1002011207-0 201235830, 疋 range of the personal computer. The count value of the time counter corresponding to the time. The second predetermined value ^ is that when the user is within the second range of the personal computer, that is, when the user is outside the range of DH, it is impossible to use the personal computer, and the electromagnetic skin a is self-transmitted to be reflected. The count value of the time counter corresponding to the longest received time. In the present embodiment, the second predetermined value t is greater than the first predetermined value t. The personal computer immediately compares the time difference to corresponding to the count value with the predetermined value tm. If t0$t, it indicates that the user is in the first-predetermined bacteria using the personal computer, and the __ can make the personal computer perform the normal working mode. If t〇>t, it indicates that the user is outside the first predetermined range of using the electronic device, and then the personal computer is controlled to execute the power saving mode. If t<t(^t, then the personal computer further performs step S5'. [0033] S5', analyzes and recovers the frequency of the electromagnetic wave, and restores the second frequency f 1 of the electromagnetic wave signal and transmits the electric dance signal The first frequency f 〇 advance comparison, if the second frequency Π large span or equal to the first frequency “, the PC is controlled to perform a normal working mode; if the second frequency fl is smaller than the first frequency f0, the personal computer is controlled The power saving mode is executed. [0034] In this step, if the frequency comparison result is fl<f〇, it indicates that the user is away from the personal computer, and then the personal computer is controlled to perform the power saving mode. The comparison result is £1=£〇, indicating that the user is at rest, and when the comparison result is fl>f0, it indicates that the user is close to the state of the personal computer from its initial position, and thus, when the frequency is compared When f 1 2 f 〇, then the PC is controlled to perform normal work 1002011207-0 100106567 Form No. A0101 Page 10 / Total 30 Page 201235830 [0036] [0037] Ο [0038] Mode [0038] After step S5 of the second embodiment, the method further includes a step of delaying, when the personal computer compares the frequency of the emitted electromagnetic wave with the frequency of the recovered electromagnetic wave, and if the frequency of the reflected electromagnetic wave il < f0 is obtained, The personal computer judges the state of the user relative to the personal computer again after delaying for a certain period of time to prevent misoperation. Specifically, after the personal computer obtains fl<f0, it delays the time t2 and executes steps S4' and S5' again. In the present embodiment, the delay time t2 can be set according to the user's needs, for example, 5 seconds. The delay time t2 can be implemented by a software program, thereby enabling the individual to more accurately determine the user's need for the electronic device. Please refer to FIG. 3 , which is a schematic diagram of a hardware structure of a preferred embodiment of an electronic device according to the present invention. The personal computer 10 of the present embodiment includes a display 11 , a host 13 , and a peripheral control device 15 . The host 13 is electrically connected to the display 11 and the peripheral control device 15, respectively, and the display 11 is configured to display the data processed by the host 13. The peripheral control device 15 is used for the user to operate, so that the control host 13 executes the corresponding application and data. Please refer to FIG. 4, which is a schematic structural diagram of the host 13. The host 13 includes a processing unit 131, a detecting unit 133, and a storage unit. 135 and a power management unit 137. The detecting unit 133, the storage unit 135, and the power management unit 137 are respectively electrically connected to the processing unit 131. The processing unit 131 includes a central processing unit (CPU) (not shown) and the like having data processing functions. Components for handling various applications. The storage unit 135 is for storing an application for processing by the processing unit 131 and the materials it requires. In the implementation of the method 100106567 Form No. A0101, page 11 / page 30, 1002011207-0 201235830, the storage unit 135 includes a hard disk, a random memory (same) or a read-only memory (na) memory element to realize its data storage. Features. The power supply unit includes a power supply unit (not shown), the power supply unit is configured to supply power to each unit in the host 13, and the power management unit 137 adjusts the power supply unit according to the control signal output by the processing unit 131. status. The detecting unit 133 is for detecting the use state of the personal computer 10, and the processing unit 131 controls the operation mode of the personal computer 1 based on the detection result of the detecting unit 133. [0039] f It should be noted that the personal computer 1 () has at least two working modes of the normal working mode and the power saving mode. The normal working mode of the present embodiment is the power management unit 37 is the processing unit 131, and the storage The unit 135 provides the voltage required for its operation, and the processing unit 131 processes all the programs opened by the user in sequence, and displays the processing results on the display 11 in time. The power saving mode is that the processing unit 131 stores the operating state of each currently running application in the memory of the storage unit 135, and stops the power supply management unit 137. Only the processing unit 131, the detecting unit 丨33, and the storage unit 135 are provided with a minimum operating voltage, and the power supply to other peripheral control devices, such as a mouse and a keyboard, is stopped. Of course, the personal computer can enter the power saving mode. The corresponding software program is used to control the components of the personal computer 10 to achieve 'the purpose of saving energy and saving energy. [0040] The detecting unit 1 33 is configured to detect the state of the user of the personal computer 1 , and the state described in the embodiment is the state of the user relative to the display, such as whether the user is in the use of the personal computer. Within the predetermined range, and the user is at a standstill relative to the personal computer outside the predetermined range, depending on the state of 100106567 Form No. A0101 Page 12/Total 30 Page 1002011207-0 201235830. [0041] In the present embodiment, the detecting unit 133 includes at least one electromagnetic wave generator 1331, at least one electromagnetic wave receiver 1 333 and a controller 1 335, wherein the 'electromagnetic wave generator 1331 and the electromagnetic wave receiver 1333 are respectively connected to the controller 1335. The electromagnetic wave generator 1331 is for generating and transmitting a transmitted electromagnetic wave signal of a first frequency f0. The electromagnetic wave receiver 1333 is for receiving electromagnetic wave signals. In the present embodiment, the electromagnetic wave emitted by the electromagnetic wave generator 331 is a transmitting electromagnetic wave signal, and the electromagnetic wave receiving device 1333 receives the electromagnetic wave [0042] The electromagnetic wave is a recovered electromagnetic wave signal. ::: . . :3⁄4 . . . Ο Controller 1335 It is used to control the operating states of the electromagnetic wave generator 1331 and the electromagnetic wave receiver 1333. Specifically, the controller 1335 outputs a start or stop signal to the electromagnetic wave generator 1331 to control the start or stop of the electromagnetic wave generator 1331, i.e., the control electromagnetic wave generator 1331 starts to emit electromagnetic waves or stops emitting electromagnetic waves. At the same time, the controller 1335 can also control the activation or stop of the electromagnetic wave receiver 1333 by transmitting a corresponding control signal. In other embodiments of the present invention, the detecting unit 133 is not limited to the electromagnetic wave generator 1331, and a wave source capable of radiating waves such as a sound breaking generator or a light wave generator may be used. Similarly, the electromagnetic wave receiver 1333 may also correspond to a sound wave. Receiver, light wave receiver, etc. [0043] Further, the detecting unit 133 further includes a time counter 1 332 electrically connected to the electromagnetic wave generator 1331 and the electromagnetic wave receiver 1333 respectively for obtaining a time difference t发射 when the emitted electromagnetic wave signal is emitted until the recovered electromagnetic wave signal is received. The following is abbreviated as the transmission reception time difference t0. In other embodiments, the time counter 1332 can also be directly connected to the controller 1335' such that the controller 1 335 controls the time at which the electromagnetic wave generator 1331 is activated, 100106567, form number A0101, page 13 of 30 pages 1002011207-0 201235830 The counter 1 332 starts counting, and when the controller 1 335 receives the recovered electromagnetic wave signal at the electromagnetic wave receiver 13 3 3, the control time counter 1332 stops counting. That is, the start and stop of the count of the time counter 1 332 is not limited to this embodiment. [〇_351335] The reception time counter 1 332 receives the count value of the transmission time difference to to the electromagnetic wave signal and compares it with the predetermined value of seven. When the transmission time difference t〇 corresponding to the count value is less than or equal to the _predetermined value of seven, the controller 1335 outputs a first control signal to the processing unit 131, and the processing unit 31 controls the personal computer 1 when receiving the first control signal. 〇 Perform normal working mode. The first control signal can be a mother potential signal. When the transmission and reception time difference to is greater than the first predetermined value of seven, the controller 1 335 outputs a second control signal to the processing unit 131, and the processing unit 131 controls the personal computer i to perform power saving when receiving the first control signal. mode. The second control signal can be a high potential signal. In other embodiments of the present invention, the first control signal is not limited to the low potential signal, and may also be a high potential signal. Similarly, the second control signal is not limited to the high potential signal, and may also be a low potential signal. . [0045] In another embodiment of the electronic device of the present invention, when the controller (3) 5 compares the transmission and reception time difference to with the first predetermined value t, and obtains t〇>t, the controller 1335 further transmits the reception time difference t. And comparing with a second predetermined value t, wherein the 'second predetermined value t' is greater than the transmission reception time difference tO. If tO > t', the controller 1 335 outputs the first control signal to the processing early. The processing unit 131 receives the first control signal to control the personal computer 10 to execute the power saving mode. The heart circle preferably, when the time counter 1 332 reaches the second predetermined value, is straight 100106567 Form number A0101 $14 page/total 3 page '1002011207-0 201235830 The second control signal is sent to the processing unit 131. In other words, the second predetermined value t' can be set as the upper limit value of the time counter 1332. After the time counter 1332 counts to reach the second predetermined value t', the second control signal is outputted to the processing unit 131 to directly control the personal computer. 1〇 Performing a power saving mode [0047] In other embodiments of the electronic device of the present invention, the detecting unit 133 further includes a frequency counter 1334 electrically connected to the electromagnetic wave receiver 1333 for receiving the electromagnetic wave receiver 1333. The second frequency fl of the recovered electromagnetic wave signal is counted and the counted measurement result is taken to the controller 1335. The 'frequency counter 1334 needs to perform amplification, rectification, etc. on the recovered electromagnetic wave signal, so that the received recovered electromagnetic wave signal becomes a regular pulse signal for accurate counting. [0048] 控制器 When the controller 1 335 compares the transmission reception time difference with the first predetermined value VII and obtains that the transmission reception time difference is greater than the first predetermined value seven, the controller 1335 sets the second frequency fl and the first frequency f 〇 Compare. If the second frequency fi is greater than or equal to the first frequency f0, the controller 1 335 outputs a first control signal to the processing unit 131, and the processing unit 131 controls the personal computer 10 to perform the normal working mode when receiving the first control signal. . If the second frequency π is smaller than the first frequency f0, the controller 1 335 outputs a second control signal to the processing unit 131, and the processing unit 131 controls the personal computer 1 to receive the power saving mode by receiving the second control signal Bf. Of course, the first frequency 〇 can be pre-stored in the storage unit 135, and the controller 1335 can directly call the first frequency in the storage unit 135, which is not limited thereto in other embodiments of the present invention. [10649] 100106567 In another embodiment of the present invention, the controller 1335 compares the difference between the form number A0101 and the first predetermined value t with respect to the first predetermined value t at the time of transmitting and receiving, and obtains to>t Then, the to is further compared with the second predetermined value t'. If tctost', the controller 1 335 further compares the frequency f 1 of the recovered electromagnetic wave signal with the frequency f 发射 of the emitted electromagnetic wave signal, and outputs according to the comparison result. The corresponding control signal controls the personal computer to perform the corresponding working mode. In the present embodiment, the electromagnetic wave generator 1331 and the electromagnetic wave receiver 1 333 are disposed on the display 11. The electromagnetic wave generator 1331 and the electromagnetic wave receiver 1 333 may be disposed adjacent to each other and spaced apart by a certain distance. In other embodiments of the present invention, the electromagnetic wave receiver 1333 may also be disposed at any position of the display 11 relative to the side of the user, such as the bezel of the display 11. In addition, the detecting unit 133 may also be provided with a plurality of electromagnetic wave receivers 1 333, and respectively disposed at a plurality of positions of the display 11 with respect to the side of the user, so that when the emitted electromagnetic waves are emitted from the electromagnetic wave generator 1331 and are blocked after being blocked The different directions are reflected to the complex electromagnetic wave receiver 1 333, so that the controller 1 335 determines the position of the user by analyzing the different time differences of the reflected wave received by the plurality of electromagnetic wave receivers, thereby more accurately understanding the state of the user. [0051] Please refer to FIG. 5, which is a schematic diagram of a process of using the electronic device of the present invention. The principle of the personal computer 10 performing different working modes is illustrated as an example: [0052] When the user uses the display 11, the display 11 is located along the way. The positive direction of the y coordinate axis, and the distance between the initial position A of the user and the display 11 is D0, and the range is defined as a first predetermined range, which is the normal use of the user using the personal computer 10. range. The controller 1 335 outputs a start transmitting signal to the electromagnetic wave generator 1331, so that the electromagnetic wave generator 1331 emits a transmitting electromagnetic wave signal having a frequency f0, the same as 100106567 Form No. A0101 Page 16 / Total 30 pages 1002011207-0 201235830 %•Electromagnetic wave generation The timer 13 31 outputs a start count signal to the time counter 1332, and the time counter 1332 starts counting. When the transmitted electromagnetic wave signal is transmitted to the user, it is blocked, and is reflected and recovered to the electromagnetic wave receiver 1333 at the second frequency, and the electromagnetic wave receiver 1333 outputs a stop counting signal after receiving the recovered electromagnetic wave signal with the second frequency of Π to The time counter 1332, the time counter 1332 stops counting, and outputs the counting result to the controller 1 335, thereby measuring the transmission reception time difference t〇 of the transmitted electromagnetic wave signal and the recovered electromagnetic wave signal. 0 10053] The controller 1335 compares the count value of the transmission/reception time difference t 〇 with the reception counter ip 2 and compares it with the predetermined values t and t. The user is in a time interval relative to the transmission and reception of the electromagnetic wave and the recovered electromagnetic wave with respect to the first predetermined range of the personal computer; the predetermined;;: the electric user is in the second predetermined range relative to the personal computer 1. The magnetic wave and the recovered electromagnetic wave The transmission reception time difference...t, the other J can be calculated by the formula: ?: ·,...........

tf; 2s1Tf; 2s1

Ax ft) [0055] 100106567 、 為使用者處於個人電腦10第—預定銘Η r Α 範圍的取大 預㈣图 …、s為使用者處於個人電腦10第二 =圍的最大距_,例如5米或更大範圍。在本實摊 進距離DG<D卜且1)0、Di可以依據使用者的需求 波::!:λ、f0為電磁波發生器1331發射的發射電磁 長固:】波長及頻率。由於發射電磁波訊號的頻率、波 疋為已知’所以第—預定值t為常數。第-預定範 表軍編號_ 第Π頁/共㈣ 1002011207- 201235830 圍為使用者正常使關人電賴的範圍,第:預定範圍 内為使用者可能會使用個人電腦1〇的_,而㈣第二 預定範圍則認為使用者不可能使用個人電腦10。 闺然後,控制器1335將發射接收時間差tQ與第—預定值七進 打比較運算。若tost,則表明使用者處於第—預定範圍 内,控制器1335輸出第一控制訊號至處理單元i3i,處理 單元131在接收到第—控制訊號後控制個人電腦I。執行正 常工作模式。若t〇>t,則表明使用者處於第一範圍之外 ’控制器1 335輸出第二控制訊號至處理單元131,處理單 元131在接收到該第二控制訊號後控制個人電腦1 〇執行省 電節能模式。 剛在树明電子«其他實施m當控㈣聰將發 射接收時間差to與第一預定值t比較後,得出t〇>t,則 控制器1335將進一步將t0與預定值t’進行比較若仰 >t’ ,則表明使用者處於第二預定範圍之外,控制器 1335輸出第二控制訊號至處理長元α 31,處理單元丨3}在 接收到該第二控制訊號後控制_;人寒腦1〇執行省電節能 模式。若t<t〇St’ ,則控制器1335進一步對第二頻率 Π與第一頻率fO進行比較,並且根據比較結果輸出相應 的控制訊號,從而控制個人電腦執行對應的工作模式。 [0058] 具體地,電磁波發生器133丨發出一第一頻率為f〇的發射 電磁波訊號,該發射電磁波訊號在遇到障礙物後反射回 收至電磁波接收器1333。依據多普勒效應,具有初始頻 率的電磁波在受到相對于波源靜止的障礙物的阻擋而反 射時其頻率不變,若障礙物遠離波源時,則反射的電磁 100106567 表單編號A0101 第18頁/共30頁 1002011207-0 201235830 [0059] Ο [0060] Ο [0061] 波的頻率相較於初始頻率減小,若障礙物靠近波源時, 則反射的電磁波的頻率相較於初始頻率增大。 控制器1335將回收電磁波訊號的第二頻率^與發射電磁 波訊號的第一頻率進行比較。若第二頻率丨丨大於或等 於第一頻率f0,則表示使用者處於靠近個人電腦1Q戈相 對於個人電腦10靜止的狀態’則控制器1 335輸出〜第一 控制訊號至處理單元131,控制個人電腦1〇執行正常工作 模式。若第二頻率小於第一頻率f〇,則表示使用者處 於遠離個人電腦10的狀態’則控制器1335輸出一第二控 制訊號至處理單元131,控制個人電腦10執行省電節能模 式。 優選地,在本發明電子裝置的其他實施方式中,當控制 器1335依據第一頻率f〇與第二頻率f 1的比較結果判斷使 用者正處於遠離個人電腦10時’控制器1 335在延遲一定 時間後再次判斷使用者的狀態’以確定使角者是否確實 需要使得個人電腦10進入省電節能模式,防止誤操作。 具體地,控制器1335在判定使用者處於遠離個人電腦10 時,控制器1335延遲一時間t2 ’延遲時間t2可以依據使 用者的需求進行設定,例如t2為5秒鐘’並且該延遲時間 t2可以通過軟艘程式來實現。 當控制器1335延遲t2時間後,再次檢測使用者是否進入 第一預定範圍内,若使用者已經位於第一預定範圍内時 ,控制器1335輸出第一控制訊號至處理單元131,並且控 制個人電腦10執行正常工作模式。若使用者在控制器 1 335延遲t2時間後並沒有進入第一預定範圍内時,則控 100106567 表單編號A0101 第19頁/共30頁 1002011207-0 201235830 制器1 335輸出第二控制訊號至處理單元131,控制個人電 腦10執行省電節能模式。由此,個人電腦10能夠更加準 確的判斷使用者需要個人電腦10在何種工作模式下工作 〇 [0062] 相較于先前技術,個人電腦1 0通過檢測使用者的狀態而 控制個人電腦10的工作模式,即通過判斷使用者是否處 於個人電腦10的正常使用範圍内,若使用者處於正常使 用範圍内,則使得個人電腦10—直處於正常工作,若使 用者離開個人電腦1 0的常規使用範圍時,可以迅速、準 確地使得個人電腦10執行省電節能模式,達到節能的目 的。由此,個人電腦10在長時間内沒有接收到使用者對 個人電腦10任何操作,但使用者卻希望個人電腦10能夠 正常工作時,使得個人電腦10能夠一直處於正常工作模 式,以減小個人電腦10僅根據外設控制設備未被使用者 操作的時間來判斷個人電腦10進入省電工作模式而出現 誤判的可能性,達到更為準確地依據使用者的需求使得 個人電腦10執行何種工作模式。 【圖式簡單說明】 [0063] 圖1為第一較佳實施方式的電子裝置工作模式控制方法的 流程圖。 [0064] 圖2為第二實施方式電子裝置工作模式控制方法的流程圖 0 [0065] 圖3為一實施方式的電子裝置硬體結構示意圖。 [0066] 圖4為一實施方式的電子裝置的功能模組示意圖。 100106567 表單編號A0101 第20頁/共30頁 1002011207-0 201235830 L0067」 圖5為一實施方式的電子裝置中檢測單元的結構示意圖。 【主要元件符號說明】 [0068] 個人電腦:10 [0069] 顯示器:11 [0070] 主機:13 [0071] 外設控制設備:15 [0072] 處理單元:131Ax ft) [0055] 100106567, for the user to be in the personal computer 10 - the predetermined name r Α range of the large pre-four (four) map ..., s is the user is in the personal computer 10 second = circumference maximum distance _, for example 5 Meter or larger. In this actual spread distance DG < D Bu and 1) 0, Di can be based on the user's needs Wave::! : λ, f0 are emission electromagnetic waves emitted by the electromagnetic wave generator 1331. Long wavelength:] wavelength and frequency. Since the frequency and the wave amplitude of the electromagnetic wave signal are transmitted, the first predetermined value t is constant. The first-scheduled model military number _ the third page / total (four) 1002011207- 201235830 The scope of the user's normal customs clearance, the first: within the predetermined range is the user may use the personal computer 1 ,, and (4) The second predetermined range is considered to be impossible for the user to use the personal computer 10. Then, the controller 1335 compares the transmission reception time difference tQ with the first predetermined value. If it is tost, it indicates that the user is in the first predetermined range, the controller 1335 outputs the first control signal to the processing unit i3i, and the processing unit 131 controls the personal computer I after receiving the first control signal. Perform a normal working mode. If t〇>t, it indicates that the user is outside the first range. The controller 1 335 outputs the second control signal to the processing unit 131, and the processing unit 131 controls the personal computer to execute after receiving the second control signal. Energy saving mode. Just after Shuming Electronics «other implementations, when the controller (4) Cong compares the transmission reception time difference to with the first predetermined value t, and obtains t〇>t, the controller 1335 further compares t0 with the predetermined value t'. If the user is in the second predetermined range, the controller 1335 outputs the second control signal to the processing unit 31, and the processing unit 丨3} controls the second control signal after receiving the second control signal. The human cold brain 1〇 performs a power saving mode. If t<t〇St', the controller 1335 further compares the second frequency Π with the first frequency fO, and outputs a corresponding control signal according to the comparison result, thereby controlling the personal computer to execute the corresponding working mode. Specifically, the electromagnetic wave generator 133 emits a transmitted electromagnetic wave signal having a first frequency of f〇, and the emitted electromagnetic wave signal is reflected and returned to the electromagnetic wave receiver 1333 after encountering an obstacle. According to the Doppler effect, the electromagnetic wave with the initial frequency does not change its frequency when it is blocked by the obstacle that is stationary with respect to the wave source. If the obstacle is far away from the wave source, the reflected electromagnetic 100106567 Form No. A0101 Page 18 / Total Page 30 1002011207-0 201235830 [0059] Ο [0061] The frequency of the wave is reduced compared to the initial frequency, and if the obstacle approaches the wave source, the frequency of the reflected electromagnetic wave is increased compared to the initial frequency. The controller 1335 compares the second frequency of the recovered electromagnetic wave signal with the first frequency of the transmitted electromagnetic signal. If the second frequency 丨丨 is greater than or equal to the first frequency f0, it means that the user is in a state close to the personal computer 1Qgo relative to the personal computer 10', then the controller 1 335 outputs the first control signal to the processing unit 131, and controls The PC 1 performs the normal working mode. If the second frequency is less than the first frequency f〇, indicating that the user is in a state away from the personal computer 10, the controller 1335 outputs a second control signal to the processing unit 131 to control the personal computer 10 to execute the power saving mode. Preferably, in other embodiments of the electronic device of the present invention, when the controller 1335 determines that the user is away from the personal computer 10 based on the comparison result of the first frequency f 〇 and the second frequency f 1 , the controller 1 335 is delayed. After a certain period of time, the state of the user is judged again to determine whether the corner person really needs to make the personal computer 10 enter the power saving mode to prevent misoperation. Specifically, when the controller 1335 determines that the user is away from the personal computer 10, the controller 1335 delays for a time t2 'the delay time t2 can be set according to the user's needs, for example, t2 is 5 seconds' and the delay time t2 can be It is implemented by a soft boat program. When the controller 1335 delays the t2 time, it detects again whether the user enters the first predetermined range. If the user is already within the first predetermined range, the controller 1335 outputs the first control signal to the processing unit 131, and controls the personal computer. 10 Perform normal working mode. If the user does not enter the first predetermined range after the controller 1 335 delays the t2 time, then the control 100106567 form number A0101 page 19/total 30 page 1002011207-0 201235830 controller 1 335 outputs the second control signal to the processing The unit 131 controls the personal computer 10 to execute the power saving mode. Thereby, the personal computer 10 can more accurately determine in which working mode the user needs the personal computer 10 to operate. [0062] Compared with the prior art, the personal computer 10 controls the personal computer 10 by detecting the state of the user. The working mode, that is, by judging whether the user is within the normal use range of the personal computer 10, if the user is in the normal use range, the personal computer 10 is directly in normal operation, if the user leaves the normal use of the personal computer 10 In the range, the personal computer 10 can be quickly and accurately executed to save energy and save energy. Thus, the personal computer 10 does not receive any operation of the user on the personal computer 10 for a long time, but the user desires that the personal computer 10 can work normally, so that the personal computer 10 can always be in the normal working mode to reduce the individual. The computer 10 judges the possibility that the personal computer 10 enters the power-saving working mode and judges the misjudgment according to the time when the peripheral control device is not operated by the user, so as to more accurately determine what kind of work the personal computer 10 performs according to the user's demand. mode. BRIEF DESCRIPTION OF THE DRAWINGS [0063] FIG. 1 is a flow chart showing a method of controlling an operation mode of an electronic device according to a first preferred embodiment. 2 is a flow chart of a method for controlling an operation mode of an electronic device according to a second embodiment. [0065] FIG. 3 is a schematic diagram showing a hardware structure of an electronic device according to an embodiment. 4 is a schematic diagram of functional modules of an electronic device according to an embodiment. 100106567 Form No. A0101 Page 20 of 30 1002011207-0 201235830 L0067 FIG. 5 is a schematic structural diagram of a detecting unit in an electronic device according to an embodiment. [Main component symbol description] [0068] Personal computer: 10 [0069] Display: 11 [0070] Host: 13 [0071] Peripheral control device: 15 [0072] Processing unit: 131

[0073] 檢測單元:133 [0074] 存儲單元:135 [0075] 電源管理單元:137 [0076] 電磁波發生器:1331 [0077] 電磁波接收器:1333 [0078] 控制器:1335 [0079] 時間計數器:1332 [0080] 頻率計數器:1334 [0081] 坐標軸:X、y [0082] 步驟:S1 〜S4,S1’ 〜S5, 100106567 表單編號A0101 第21頁/共30頁 1002011207-0Detection unit: 133 [0074] Storage unit: 135 [0075] Power management unit: 137 [0076] Electromagnetic wave generator: 1331 [0077] Electromagnetic wave receiver: 1333 [0078] Controller: 1335 [0079] Time counter :1332 [0080] Frequency counter: 1334 [0081] Axis: X, y [0082] Steps: S1 ~ S4, S1' ~ S5, 100106567 Form number A0101 Page 21 / Total 30 pages 1002011207-0

Claims (1)

201235830 七、申請專利範圍: 1 . 一種電子裝置工作模式的控制方法,該電子裝置至少包括 正常工作模式與省電節能模式兩種工作模式,其中,該控 制方法包括以下步驟: 發射電磁波訊號; 接收電磁波訊號; 獲得計數值,該計數值與發射出發射電磁波訊號至接收到 回收電磁波訊號的時間差值相關;及 將該計數值與一第一預定值進行比較,若該計數值小於或 等於該第一預定值,則控制該電子裝置轨行正常工作模式 ,若該計數值大於該第一預定值,則控制讓電子裝置執行 省電接能模式。 ' 2 .如申請專利範圍第1項所述之控制方法,其中,該控制方 法還包括一頻率比較的步驟’當該計數值大於該第一預定 值時,將接收到的電磁波訊號的頻率與該發射的電磁波訊 號的頻率進行比較,若接收到的電磁波訊號的頻率大於或 者等於發射電磁波訊號的頻率,則控制該電子裝置執行正 常工作模式;若接收到的電磁波訊號的頻率小於發射的電 磁波訊號的頻率,則控制該電子裝置執行省電節能模式。 3 .如申請專利範圍第2項所述之控制方法,其中,該控制方 法還包括-將該計數值與一第二預定值進行比較的步驟, 且該第二預定值大於該第一預定值,當該計數值大於該第 一預定值時’則將料數值與該第二預定錢行比較,若 該計數值大於該第二預定糾,則控制該電子裝置執行省 電郎能模式,若該計數值小於或者等於該第二預定值時執 100106567 表單編號A0101 第22頁/共30頁 1002011207-0 201235830 行該頻率比較的步驟。 4 .如申請專利範圍第3項所述之控制方法,其中,該控制方 法還包括一延時步驟,在頻率比較步驟之後該電子裝置延 遲一定時間後重新獲取計數值,且再次將該重新獲取的計 數值與該第一預定值、第二預定值進行比較以及頻率比較 的步驟,並按照比較結果執行相應的工作模式。 5 .如申請專利範圍第4項所述之控制方法,其中,該延遲時 間為5秒。 6.如申請專利範圍第1項所述之控制方法,其中,該電子裝 〇 置在一定時間内未接收到任何外部操作後執行後續的發射 電磁波訊號、接收電磁波訊號、獲取計數值及其比較的步 驟。 7 . —種電子裝置,其包括: '一處理單元; 一檢測單元,該檢測單元包括一電磁波發射器、一電磁波 接收器與一計數器,該電磁波發射器用於發射一電磁波訊 號,該電磁波接收器用於接收電磁波訊號,該計數器用於 0 獲取電磁波發射器發射出的電磁波訊號反射回收至電磁波 接收器的時間差對應的計數值; 該檢測單元連接於該處理單元,該處理單元用於根據檢測 單元輸出的控制訊號控制電子裝置處於不同的工作模式, 其中,該檢測單元將獲取的時間差與一第一預定值進行比 較,若該計數值小於或等於該第一預定值,則檢測單元輸 出一第一控制訊號至處理單元,該處理單元控制該電子裝 置執行正常工作模式;若該計數值大於該第一預定值,則 檢測單元輸出一第二控制訊號至處理單元,該處理單元控 100106567 表單編號A0101 第23頁/共30頁 1002011207-0 201235830 制該電子裝置執行省電節能模式。 8 .如申請專利範圍第7項所述之電子裳置,其中,該檢測單 元還包括-控制器,該控制器用於控制該電磁波發射器與 電磁波接收器的啟動與停止,並且用於比較該計數值與該 第-預定值’若該計數值小於或等於該第_預定值,該控 制器輸出該第-控制訊號;若該計數值大於該第一預定值 ,則該控制器輸出該第二控制訊號。 9 ·如申請專利範圍第8項所述之電子裝置,其中,該檢測單 元還包括-頻率計數器,該頻率計數器用於獲取電磁波接 收器接收的電磁波訊號的頻率值,並且將該頻率值輸出至 控制器。 10 .如申請專利範圍第9項所述之電子裝置,其中,當控制器 得出該計數值大於該第一預定值時,該控制器比較該電磁 波發射器發射出的電磁波訊號的頻率與該電磁波接收器接 收到的電磁波訊號的頻率,若接收到的電磁波訊號的頻率 大於或者等於發射電磁波訊號的頻車,則該控制器輸出該 第控制s孔號,若接收到的電磁波tft號的頻率小於發射的 電磁波訊號的頻率,則該控制器輸出該第二控制訊號。 11 .如申請專利範圍第10項所述之電子裝置,其中,當控制器 得出該計數值大於該第一預定值時,該控制器進一步將該 計數值與一第二預定值進行比較,該第二預定值大於該第 —預定值,若該計數值大於該第二預定值,則該控制器輸 出5亥第二控制訊號,若該計數值小於或者等於該第二預定 值,則該控制器進一步比較該發射電磁波訊號的頻率與接 收到的電磁波訊號的頻率。 100106567 如申請專利範圍第11項所述之電子裝置 表翠編號A0101 第24頁/共30頁 ,其中,當時間計 1002011207-0 12 201235830 數器的計數值大於該第二預定值時,該時間計數器直接輸 出該第二控制訊號至處理單元控制該電子裝置執行省電節 能模式。 13.如申請專利範圍第7項所述之電子裝置,其中,該電子裝 置在一定時間内沒有接收到任何外部操作後,檢測單元中 的電磁波發射器發射電磁波訊號。 14 .如申請專利範圍第7項所述之電子裝置,其中,該電子裝 置為台式電腦、筆記本電腦、電視或手機。 〇 1002011207-0 100106567 表單編號A0101 第25頁/共30頁201235830 VII. Patent application scope: 1. A control method for an operation mode of an electronic device, the electronic device comprising at least two working modes of a normal working mode and a power saving mode, wherein the control method comprises the following steps: transmitting an electromagnetic wave signal; receiving An electromagnetic wave signal; obtaining a count value, wherein the count value is related to a time difference between transmitting the emitted electromagnetic wave signal to receiving the recovered electromagnetic wave signal; and comparing the count value with a first predetermined value, if the count value is less than or equal to the The first predetermined value controls the normal operation mode of the electronic device, and if the count value is greater than the first predetermined value, the electronic device is controlled to perform the power saving mode. The control method according to claim 1, wherein the control method further comprises a frequency comparison step of: when the count value is greater than the first predetermined value, the frequency of the received electromagnetic wave signal is Comparing the frequency of the emitted electromagnetic wave signal, if the frequency of the received electromagnetic wave signal is greater than or equal to the frequency of transmitting the electromagnetic wave signal, controlling the electronic device to perform a normal working mode; if the frequency of the received electromagnetic wave signal is smaller than the emitted electromagnetic wave signal The frequency controls the electronic device to perform a power saving mode. 3. The control method of claim 2, wherein the control method further comprises the step of comparing the count value with a second predetermined value, and the second predetermined value is greater than the first predetermined value And when the count value is greater than the first predetermined value, 'the material value is compared with the second predetermined money line, and if the count value is greater than the second predetermined correction, controlling the electronic device to execute the power saving mode, if When the count value is less than or equal to the second predetermined value, 100106567 Form No. A0101 Page 22/Total 30 Page 1002011207-0 201235830 The steps of the frequency comparison. 4. The control method according to claim 3, wherein the control method further comprises a delay step of reacquiring the count value after the electronic device delays for a certain time after the frequency comparison step, and again reacquiring the count value The step of comparing the count value with the first predetermined value, the second predetermined value, and the frequency comparison, and executing the corresponding working mode according to the comparison result. 5. The control method according to claim 4, wherein the delay time is 5 seconds. 6. The control method according to claim 1, wherein the electronic device performs subsequent emission of electromagnetic wave signals, receives electromagnetic wave signals, acquires count values, and compares them after receiving no external operation for a certain period of time. A step of. 7. An electronic device comprising: 'a processing unit; a detecting unit comprising an electromagnetic wave transmitter, an electromagnetic wave receiver and a counter, the electromagnetic wave transmitter for transmitting an electromagnetic wave signal, the electromagnetic wave receiver for Receiving an electromagnetic wave signal, the counter is used for 0 to obtain a count value corresponding to a time difference of the electromagnetic wave signal reflected by the electromagnetic wave transmitter and recovered to the electromagnetic wave receiver; the detecting unit is connected to the processing unit, and the processing unit is configured to output according to the detecting unit The control signal control electronic device is in different working modes, wherein the detecting unit compares the acquired time difference with a first predetermined value, and if the counting value is less than or equal to the first predetermined value, the detecting unit outputs a first Controlling the signal to the processing unit, the processing unit controlling the electronic device to perform a normal operation mode; if the count value is greater than the first predetermined value, the detecting unit outputs a second control signal to the processing unit, the processing unit controls 100106567 Form No. A0101 Page 23 of 30 page 1002011 207-0 201235830 The electronic device performs a power saving mode. 8. The electronic device of claim 7, wherein the detecting unit further comprises a controller for controlling start and stop of the electromagnetic wave transmitter and the electromagnetic wave receiver, and for comparing the The controller outputs the first control signal if the count value is less than or equal to the first predetermined value; if the count value is greater than the first predetermined value, the controller outputs the first Two control signals. The electronic device of claim 8, wherein the detecting unit further comprises a frequency counter for acquiring a frequency value of the electromagnetic wave signal received by the electromagnetic wave receiver, and outputting the frequency value to Controller. 10. The electronic device of claim 9, wherein when the controller determines that the count value is greater than the first predetermined value, the controller compares a frequency of the electromagnetic wave signal emitted by the electromagnetic wave transmitter with the The frequency of the electromagnetic wave signal received by the electromagnetic wave receiver, if the frequency of the received electromagnetic wave signal is greater than or equal to the frequency of the electromagnetic wave signal, the controller outputs the first control s hole number, if the frequency of the received electromagnetic wave tft number The controller outputs the second control signal when the frequency of the emitted electromagnetic wave signal is less than. The electronic device of claim 10, wherein when the controller determines that the count value is greater than the first predetermined value, the controller further compares the count value with a second predetermined value, The second predetermined value is greater than the first predetermined value, and if the count value is greater than the second predetermined value, the controller outputs a second control signal, if the count value is less than or equal to the second predetermined value, then the The controller further compares the frequency of the emitted electromagnetic wave signal with the frequency of the received electromagnetic wave signal. 100106567 The electronic device according to the scope of claim 11 is shown in Fig. 11 of the electronic device No. A0101, page 24 of 30, wherein when the count value of the time meter 1002011207-0 12 201235830 is greater than the second predetermined value, the time The counter directly outputs the second control signal to the processing unit to control the electronic device to perform a power saving mode. 13. The electronic device of claim 7, wherein the electromagnetic wave transmitter in the detecting unit emits an electromagnetic wave signal after the electronic device does not receive any external operation for a certain period of time. 14. The electronic device of claim 7, wherein the electronic device is a desktop computer, a notebook computer, a television, or a mobile phone. 〇 1002011207-0 100106567 Form No. A0101 Page 25 of 30
TW100106567A 2011-02-18 2011-02-25 Electric device and control method thereof TW201235830A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100407175A CN102645967A (en) 2011-02-18 2011-02-18 Electronic device and control method thereof

Publications (1)

Publication Number Publication Date
TW201235830A true TW201235830A (en) 2012-09-01

Family

ID=46658817

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100106567A TW201235830A (en) 2011-02-18 2011-02-25 Electric device and control method thereof

Country Status (2)

Country Link
CN (1) CN102645967A (en)
TW (1) TW201235830A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106056009A (en) * 2016-05-23 2016-10-26 乐视控股(北京)有限公司 Mobile terminal power off control apparatus and method
CN107247266A (en) * 2017-07-10 2017-10-13 Tcl移动通信科技(宁波)有限公司 Method, storage medium and mobile terminal based on mobile terminal disturbance in judgement thing

Also Published As

Publication number Publication date
CN102645967A (en) 2012-08-22

Similar Documents

Publication Publication Date Title
CN110431435B (en) Low power radar
EP3152642B1 (en) Adaptive touch panel synchronization
US8436804B2 (en) Digital photo frame with power saving function and related power saving method
US7017057B2 (en) Proximity based method and apparatus for reducing electrical energy consumed by a personal computer with a sleep mode
KR102050508B1 (en) Gesturing Arcitecture Using Proximity Sensing
CN107003781B (en) Method for controlling touch screen and electronic device supporting same
KR20180104835A (en) Method and electronic device for detecting fingerprint
KR20150069625A (en) Apparatus and method for controlling a display in electronic device
US9037433B2 (en) Portable device and orientation detection method therefor
CN105302301A (en) Awakening method and device of mobile terminal and mobile terminal
KR102116266B1 (en) Electronic device including motion sensing camera and operating method according to motion sensing
JP2010033531A (en) System for power management and safety protection and method thereof
CN109634429A (en) A kind of electronic equipment and information acquisition method
US20170010653A1 (en) Touch controller apparatus and a method for waking up an electronic device
TW201510772A (en) Gesture determination method and electronic device
TW201235830A (en) Electric device and control method thereof
CN109739339B (en) Control method and device
CN111030205A (en) Charging control method, charging control device, storage medium and electronic equipment
CN110031860A (en) Laser distance measurement method, device and mobile terminal
US11782149B2 (en) Systems and methods for managing motion detection of an electronic device, and associated electronic devices
US9684368B2 (en) Event detection method for waking up a portable electronic device and action sensor using same
US20220221573A1 (en) Systems and methods for managing sensors of an electronic device, and associated electronic devices
TW201409293A (en) Mobile device and wake-up method
WO2019041238A1 (en) Input method and intelligent terminal device
EP4275105A1 (en) Systems and methods for managing motion detection of an electronic device, and associated electronic devices