201023608 六、發明說明: 【發明所屬之技術領域】 、本發明係有關於電子裝置之運作模式,尤指—種控制電子裝置 之運作模式的方法、裝置及使用此方法之電腦程式產品。 【先前技術】 由於手持觀裝置(例如m慧型手機、個人數位助理 手機等)的多樣化功能與便利性,其已成為現代人不可或缺的隨身 ❹電子產。。之-,但在某些特定情況下,手持通訊裝置卻也造成某些 =擾’例如.當使用者在某些需要安靜的場合(例如:會議中絲 濟中)部未將顿軌裝置切制靜音模式,又恰好有人打電話進 來時’突如其來的鈴聲會到影響到周圍的人,而造成尶尬的情況。 因此’某些手持通訊裝置具有自動模式轉換的功能,在使用者 於電子行事射所記錄的會議時間裡,具有此功能之手持通訊裝置 會自動轉換至會議模式,例如轉換至靜音模式或震動模式,以避免 ◎上述繼尬的情況發生。然而,會議的實際結束時間常會因會議延遲 開始或會議延長而超過電子行事曆中所記錄的會議結束時間,當超 過電子行事射所記錄的會議結束咖後,捕通訊裝置便會自動 轉換回原來的模式,例如響鈴模式,此時,若恰好有人打電話進來, 還是會因突如其來的鈐聲而造成魏的情況。此外,當使用者在睡 覺時恰好有人打電話進來,若手持通訊裝置未關閉或切換到靜音模 式’則鈴_往特細者吵醒。糾,若是者在展覽會場參 觀,常會因為使用者在走動且展覽會場多為吵雜的情況下,而讓使 4 201023608 用者無法聽到手持通訊裝置的鈐聲。 【發明内容】 有鑑於此’本發明提供-種電子震置之運作模式的控制方法, 藉由_電子裝置之環境狀態來控制電子裝置之運作模式,以讓電 子裝置能夠在不同的場合切換至適合的運作模式。 依據本發明之-實施例,其係揭露—種控制電子裝置之運作模 式的方法。該方法包含有:偵測一電子裝置之一環境狀態以產生一 ❹偵測資料;根據該偵測資料判斷該電子裝置之該環境狀態是否對應 於一狀環境狀態;以及於躺出魏子裝置之該魏狀態對應於 該預定環境狀態時,控制該電子裝置運作於對應該預定環境狀態之 一特定運作模式下。 依據本發明之-實補,其係揭露—種控制電子裝置之運作模 式的裝置。該裝置包含有:至少一侧模組,用來偵測一電子裝置 之-環境狀·_產生-侧資料;—控制模組姻於測模組, 用來根據該偵測資料判斷該電子裝置之該環境狀態是否對應於一預 f環境狀態。其中於騎出該電子裝置之該魏狀紐應於該預定 壤境狀態時’馳麵組控_電子裝置運作於對應該預定環境狀 態之一特定運作模式下。 依據本發明之-實施例,其係揭露—種電腦程式產品。該電腦 =式產品包括程式指令用以執行下列步驟:細—電子裝置之一環 =狀細資料:根據該侧資料_該電子裝置之該環 兄狀心疋否對應於一預定環境狀態;以及於判斷出該電子裝置之該 環境狀態對應於該預定環境狀態時,控制該電子裝置運作於對應該 201023608 預定環境狀態之一特定運作模式^。 【實施方式】 請參閱第1圖’第為本發明電子裝置之運作模式 法之-實酬的雜圖。該運倾式控·法可概述如下: S110 :細-電子裝置之一環境狀態以產生一細資料;201023608 VI. Description of the Invention: [Technical Field] The present invention relates to an operation mode of an electronic device, and more particularly to a method and device for controlling an operation mode of an electronic device and a computer program product using the same. [Prior Art] Due to the diversified functions and conveniences of handheld viewing devices (such as m-type mobile phones, personal digital assistants, etc.), it has become an indispensable portable electronic product for modern people. . - but in some specific cases, the handheld communication device also causes some = disturbances. For example, when the user does not need to be quiet in some occasions (for example: in the meeting) The silent mode, and when someone calls in, the sudden ringing of the ringtone will affect the people around them, causing embarrassing situations. Therefore, some handheld communication devices have an automatic mode switching function, and the handheld communication device having the function automatically switches to the conference mode during the conference time recorded by the user in the electronic event, for example, switching to the silent mode or the vibration mode. In order to avoid the occurrence of the above-mentioned succession. However, the actual end time of the meeting will often exceed the end of the meeting recorded in the electronic calendar due to the delay of the meeting or the extension of the meeting. When the meeting recorded by the electronic event is over, the communication device will automatically switch back to the original. The mode, such as the ringing mode, at this time, if someone happens to call in, it will still cause Wei's situation due to the sudden buzz. In addition, when the user is in a sleep, just someone calls in, and if the handheld communication device is not turned off or switches to the silent mode, the bell awake to the extraordinarily. Correction, if the person is involved in the exhibition, it is often because the user is walking and the exhibition venue is noisy, so that the users of 201023608 can not hear the buzz of the handheld communication device. SUMMARY OF THE INVENTION In view of the above, the present invention provides a control method for an electronic mode of operation, by controlling the operating mode of the electronic device by the environmental state of the electronic device, so that the electronic device can be switched to different occasions. The right mode of operation. In accordance with an embodiment of the present invention, a method of controlling an operational mode of an electronic device is disclosed. The method includes: detecting an environmental state of an electronic device to generate a detection data; determining, according to the detection data, whether the environmental state of the electronic device corresponds to a state of the environment; and lying on the Weizi device When the state of the Wei corresponds to the predetermined environmental state, the electronic device is controlled to operate in a specific operation mode corresponding to a predetermined environmental state. According to the invention, it is a device for controlling the operation mode of an electronic device. The device comprises: at least one module for detecting an environment-environmental_generation-side data of the electronic device; and a control module for determining the electronic device according to the detection data Whether the environmental state corresponds to a pre-f environment state. Wherein the tee-up of the electronic device is in the predetermined state of the environment, the electronic device operates in a specific mode of operation corresponding to the predetermined environmental state. In accordance with an embodiment of the present invention, a computer program product is disclosed. The computer=type product includes program instructions for performing the following steps: fine-electronic device one ring=small data: according to the side data_the electronic device of the ring-shaped heart is corresponding to a predetermined environmental state; When it is determined that the environmental state of the electronic device corresponds to the predetermined environmental state, the electronic device is controlled to operate in a specific operating mode corresponding to a predetermined environmental state of 201023608. [Embodiment] Please refer to FIG. 1 for the operation mode of the electronic device of the present invention. The tilt control method can be summarized as follows: S110: an environmental state of a fine-electronic device to generate a fine data;
Sl2〇 :根據該偵測資料判斷該電子裝置之該環境狀態是否對應於 一預定環境狀態?若是,到步驟813〇 ; ”、 ❹S130 :控制該電子裝置運作於對應該預定環境狀態之—特定 模式下。 針對於上述運賴式控制方法,本發明亦提供對應的運作模式 控制裝置。請參閲第2圖,第2圖係為本發明電子裝置之運作模式 控制裝置之-實施例200的方塊圖,如第2圖所示,運作模式控制 裝置200包含有-偵測模組21〇以及一控麵组22〇。備測模組 係用以細彳子裝置之__環境狀態以產生貞測資料;控制模組 220係麵接於偵測模組21〇,用以根據該偵測資料判斷該電子裝置之 該環境狀態是研應於i定環境狀態,其巾於順出該電子裝置 之該環境狀_應於顧定環境狀態時,控趣組22()控制該電子 裝置運作於對應該預定環境狀態之一特定運作模式下。 本發明之運作模式控制方法與裝置所適用之電子裝置較佳為一 行動通机裝置,例如:手機、智慧型手機或個人數位助理手機,然 而本發明並不以此為限。以下將以手機作為一實施例來對上述之運 作模式控制方法與裝置作進一步的說明。 201023608 睛參閱第3圖,第3圖係為採用本發明之運作模式控制裝置3〇〇 之手機3〇的方塊圖’如第3圖所示,手機3〇包含有一運作模式控 制裝置300 ’其包含有一憤測模組31〇以及一控讎組32〇。手機 ❹ ❹ 3〇具有自動模式轉換功能,若使用者在手機3〇之電子行事曆中的 :特定時間内(例如:14 : 〇〇〜15 :⑻)記錄有一會議行程,控制 模組32〇會在該特定時間裡將手機3〇由目前模式(例如:正常模式、 響鈐模式等等)轉換至一會議模式(例如:靜音模式、震動模式等 T)。之後’控制模組320會在-預定時間判斷手機3〇之環境狀態 是否對應於-預定環境狀態’其中該預定時間可為手機3〇所記錄之 -行程的結束_。例如在本實施财,該預定咖係為該會議行 程結束的時刻,該預定環境狀態係為一會議狀態,亦即,當該會議 行程結束時(例如:15 : 〇〇),_模組31〇便開始侧手機3〇之 環境狀態’以協助控制模、組32〇躺會議是否在進行中,來決定3 否將手機30由會議模式切_原本的模式‘ 模式等等)。 7 請再次參閱第3圖’在本實施例中,偵測模組31()包 =侧器312(G_S_),用來偵測手㈣之運動狀態以產生摘測 便根據重力偵測器312所產 :手機30目讀、處於靜止或軸陳態。—般而言,會議在進 ^ ’手機3〇應係處於靜止的狀態,因此,#控制模組咖根據重力 偵·3!2所產生之偵測資料判斷手機則前係處 時,控制模組320將控制手機3〇持續 的狀態中 控制模謂會延長手㈣於會職下運作 7 201023608 當控制模組320根據重力偵測器312所產生之偵測資料判斷手⑽ 目前係處於移動的狀態中時,控制模組32()便將手機3()由會議模式 切換回原本的模式(例如:正常模式)。 在本發明之另-實施例中,_模組31〇可包含有一音量制 器3H,用來侧手機30之環境亮度以產生侧資料,控制模組似 便根據音量侧器314所產生之偵測資料來判斷手機3〇目前係處於 安靜或吵雜的環境中。-般而言,會議在進行中時,手機3〇應係處 ❹於安靜的環境中’因此,當控制模組32〇根據音量偵測器314所產 生之偵測資料判斷手機30目前係處於安靜的環境中時,控制模組 320將控料機3G持續於會賴式下運作:另―方面,當控制模組 320根據音量偵測器314判斷手機3()目前係處於吵雜的環境中時, 控制模組320便將手機3〇由會議模式切換回原本的模式⑽如:正 常模式)。 在本發明之又-實施例中,若使用者在展覽會場參觀時,一般 ^ ’常會因為使时在走動域覽會場吵雜㈣伽者無法聽到 持通訊裝置的鈴聲。此時,控制模組32()便根據音量偵測器別 所產生之偵測資料來判斷手機3〇目前係處於安靜或吵雜的環境 中’當控制模組320根據音量偵測器314所產生之摘測資料判斷手 機3〇目前係處於吵雜的環境中時,控纖組320將控制手機3〇由 響鈴模式切換為震動模式,或是同時開啟響鈴及震動模式,以能夠 在吵雜的環境中適當地提醒使用者。 在本實施例中,控制模組32〇係藉由比較摘測模组⑽ 的偵測資料與一參考資料來進行上述之判斷。舉例來說,控麵組 8 201023608 藉由比較重力偵測器312所產生的彳貞測資料與一加速度參考資 料來判斷手機3〇目前係處於靜止或移動的狀態,當重力偵測器312 所產生的偵測資料小於該加速度參考資料時,控制模組32〇判斷手 機30目前係處於靜止的狀態,當重力彳貞測器312所產生的铜資料 大於該加速度參考資料時’控制模組32〇判斷手機3〇目前係處於移 動的狀態。舉另一例來說,控制模組320藉由比較音量侧器314 所產生的_資料與—音量參考資料來判斷手機%目前係處於安 ❹靜或0雜的續境中,當音量侧器314所產生的侧資料小於該音 量參考資料時’控制模組32〇判斷手機3〇目前係處於安靜的環境 中’當音量偵測器3丨4所產生的侧資料大於該音量參考資料時, 控制模組32〇判斷手機3〇目前係處於吵雜的環境中。上述之參考資 料可係為i财考資料或由細,鳩組31()_手機3()之環境狀態 而得。 在本實施例中,該參考資料係由偵測模組31〇在電子行事層中 所記錄之會議行程中的-特定時段備測手機3〇之環境狀態而得。舉 例來說,偵測模組31〇在電子行事曆中所記錄之會議行程結束的前 1〇分_ (例如:Η : 50〜15 : 00) _手機3〇之環境狀態來產 生參考資料,以供控制模組32〇進行上述判斷。或者,該特定時段 可為-特定時間點’舉例來說,偵測模組31〇在電子行事層中所記 錄之會議行程結束的前10分鐘(例如:14 : 5〇Η貞測手機3〇之環 境狀態來產生參考資料’以供控制模組32〇進行上述判斷。 此外,在會賴式延長時間令,偵測模组31〇會不斷偵測手機 30之環境狀態以更新_資料’控制模組32()便根據更新後的摘測 201023608 Π’㈣&仍在進行中’舉例來說, 若控制模㈣根據偵輸⑽更新後=是爾進行中 制模組320根據_模組3 日-^卜建作’對 控制胸彻庙心地 新後的摘測資料判斷會議結束時, 織組320便將手機3〇由會議模式切換 常模式)。 ' ,二每隔兩分鐘測模組310與控制 進行中,控制模㈣便控制手_持續於 制槿紐抱祕站_____ 賞邊棋式下運作,若控 回原本的模式(例如··正 ❹Sl2〇: judging whether the environmental state of the electronic device corresponds to a predetermined environmental state according to the detection data. If yes, go to step 813; ", S130: control the electronic device to operate in a specific mode corresponding to the predetermined environmental state. For the above-mentioned operation control method, the present invention also provides a corresponding operation mode control device. 2 is a block diagram of an embodiment 200 of an operation mode control device for an electronic device of the present invention. As shown in FIG. 2, the operation mode control device 200 includes a detection module 21A and The control module is used to generate the test data by the __ environment state of the sub-device; the control module 220 is connected to the detection module 21 〇 for detecting The data is judged to be in the environment state of the electronic device, and the environment is in the environment of the electronic device. The control group 22 () controls the operation of the electronic device. In a specific operation mode corresponding to the predetermined environmental state, the electronic device to which the operation mode control method and device of the present invention is applied is preferably a mobile device, such as a mobile phone, a smart phone or a personal digital assistant mobile phone. However, the present invention is not limited thereto. The above operation mode control method and apparatus will be further described by using a mobile phone as an embodiment. 201023608 See Fig. 3, Fig. 3 is an operation using the present invention. As shown in FIG. 3, the mobile phone 3 includes an operation mode control device 300' including an intrusion module 31A and a control group 32. ❹ ❹ 3〇 has an automatic mode conversion function. If the user records a meeting trip within a certain time (for example, 14: 〇〇~15:(8)) in the electronic calendar of the mobile phone, the control module 32 will During this specific time, the mobile phone 3 is switched from the current mode (eg, normal mode, loud mode, etc.) to a conference mode (eg, silent mode, vibration mode, etc. T). Then the control module 320 will be in - The predetermined time determines whether the environmental status of the mobile phone corresponds to a predetermined environmental status, wherein the predetermined time may be recorded by the mobile phone 3 - the end of the travel. For example, in the implementation, the predetermined coffee is the conference. At the end of the trip, the predetermined environmental status is a conference state, that is, when the conference trip ends (for example, 15: 〇〇), the _module 31 starts to start the mobile phone status of the mobile phone 3 to assist Control mode, group 32, whether the conference is in progress, to decide 3, whether to cut the mobile phone 30 from the conference mode _ original mode 'mode, etc.) 7 Please refer to Figure 3 again in this embodiment, detection The module 31 () package = side device 312 (G_S_) is used to detect the motion state of the hand (4) to generate the measurement according to the gravity detector 312: the mobile phone 30 is read, in a stationary state or in an axial state. Generally speaking, the conference is in a state where the mobile phone 3 is in a static state. Therefore, the control module coffee maker judges the mobile phone based on the detection data generated by the gravity detection 3! The control module 320 determines that the hand (10) is currently in a moving state according to the detection data generated by the gravity detector 312. The control module 320 determines the hand (10) according to the detection data generated by the gravity detector 312. In the middle, the control module 32() switches the mobile phone 3() from the conference mode. Return to the original mode (for example: normal mode). In another embodiment of the present invention, the _ module 31A may include a volume controller 3H for the ambient brightness of the side handset 30 to generate side data, and the control module may be responsive to the volume side 314. The data is measured to determine whether the mobile phone 3 is currently in a quiet or noisy environment. In general, when the conference is in progress, the mobile phone 3 should be in a quiet environment. Therefore, when the control module 32 determines the mobile phone 30 according to the detection data generated by the volume detector 314, In a quiet environment, the control module 320 continues to operate the feeder 3G in a conference mode: on the other hand, when the control module 320 determines, according to the volume detector 314, the handset 3 () is currently in a noisy environment. In the middle, the control module 320 switches the mobile phone 3 from the conference mode back to the original mode (10) such as: normal mode). In the still-embodiment of the present invention, if the user visits the exhibition venue, the general ^' is often noisy because of the time when the user is walking around the venue (4). At this time, the control module 32() determines that the mobile phone 3 is currently in a quiet or noisy environment according to the detection data generated by the volume detector. When the control module 320 is generated according to the volume detector 314 When the data of the mobile phone 3 is currently in a noisy environment, the control fiber group 320 will control the mobile phone 3 to switch from the ringing mode to the vibration mode, or simultaneously turn on the ringing and vibration mode to be able to be noisy. Remind users appropriately in a mixed environment. In this embodiment, the control module 32 performs the above determination by comparing the detected data of the sampling module (10) with a reference material. For example, the control panel 8 201023608 determines that the mobile phone 3 is currently in a stationary or moving state by comparing the detected data generated by the gravity detector 312 with an acceleration reference data, when the gravity detector 312 is When the generated detection data is smaller than the acceleration reference data, the control module 32 determines that the mobile phone 30 is currently in a static state, and when the copper data generated by the gravity detector 312 is greater than the acceleration reference data, the control module 32 〇 Judging that the mobile phone 3 is currently in a moving state. For another example, the control module 320 determines that the mobile phone % is currently in an ampoule or a mixed environment by comparing the data generated by the volume side device 314 with the volume reference data, when the volume side device 314 When the generated side data is smaller than the volume reference data, the control module 32 determines that the mobile phone 3 is currently in a quiet environment. When the side data generated by the volume detector 3丨4 is larger than the volume reference data, the control is performed. The module 32 determines that the mobile phone 3 is currently in a noisy environment. The above reference information may be obtained from the i financial test data or by the environmental status of the group, 31 () _ mobile phone 3 (). In this embodiment, the reference data is obtained by the detection module 31 备 measuring the environmental state of the mobile phone during a specific period of the conference trip recorded in the electronic transaction layer. For example, the detection module 31 generates a reference material by the environment state of the first _ (eg: 〜: 50~15: 00) _ mobile phone 3〇 recorded in the electronic calendar. The control module 32 performs the above determination. Alternatively, the specific time period may be - a specific time point ' For example, the detection module 31 前 the first 10 minutes of the end of the conference tour recorded in the electronic transaction layer (for example: 14 : 5 The environmental status is used to generate the reference data for the control module 32 to perform the above determination. In addition, in the extension mode, the detection module 31 不断 constantly detects the environmental status of the mobile phone 30 to update the _ data 'control The module 32() is based on the updated snapshot 201023608 Π '(4) & still in progress'. For example, if the control module (4) is updated according to the detection (10), the system module 320 is based on the module 3 Day-^Bu Jian Zuo's judgment on the data of the new chest after the judgment of the chest. The weaving group 320 will switch the mobile phone 3 from the conference mode to the normal mode). ', two every two minutes to test module 310 and control in progress, control mode (four) will control the hand _ continue to operate under the 槿 槿 抱 秘 _________________________________________________________________________________________________________________________ Positive
模式^ 延長時間中,控制模組320會另外判斷會議 長時間尚未超過該預_時間時,控制模組_控= ==_賴赋下餅,當賴模歧長_超過該預定延長 夺=則不W貞測資料的結果如何,控制模組32〇便將手_ =會議模式切換回原本的模式(例如:正倾式)。換句話說控制 、組320最多將手機3〇之會議模式延長該預定延長時間⑽如·會 議模式最多延長30分鐘到u : 3〇為止)。 請注意,在上述實施例中,偵測模組31〇係利用重力侧器312 ,音量侧器314來_手機3〇之環境狀態(亦即運動狀態或環境 冗度),然:而此並非為本發明之_。實作上,侧模組31〇可利用 任何偵測器或裝置來_手機3〇之環境狀態。舉例來說在本發明 的另-實施例中’偵測模組310可包含有一全球導航衛星系統 Cglobal navigation satdlite system,GNSS )接收器來偵測手機 3〇 之 運動狀態關斷手機3G目前係處於靜止或移動的狀態,例如:_全 球定位系統(global position SyStem,GPS )。由於所屬領域中之習知 201023608 技藝者在_完上述相關說喊’應可轉如何_全料航衛星 系統來侧手機30之運動狀態以判斷手機目前係處於靜止或移動 的狀態,因此絲卿肋容誠起見,相關翻便在此省略。 請參閱第4圖,第4圖係為手機30之運作模式控制方法的流程 圖。該方法可概述如下: S4G5 :電子行事射所記錄的會議行程是否開始?若是,到步鄉 S410 ;若否,回步驟S405 ; ❿ S410 :將手機由目前模式轉換至會議模式; S420 ··在電子行事射所記錄的會議行程中的__時段中 測手機之環境狀態以產生一參考資料; 隊f子行事射所記錄的會議行程是储束?若是 S430 ;若否,回步驟S425 ; ’ S430 :偵測手機之環境狀態以產生一偵測資料; S435 ··比較該偵測資料與該參考資料以判斷手機之環境狀離 對應於會議狀態?若是,到步驟844〇;若丕w 〜疋 s·:控制手機持續於會議模式下運作來延長會議模==〇, S你會職歧長時f檐超過—敢延長_ ?、二時間; S450 ;若否,回步驟S43〇 ; .疋,到 S450 :將手機由會議模式轉換回原本模式。 ::求說蝴辑 201023608 研參閱第5 @ ’第5圖係為採用本發明之運作模式控制裝置· 之手機50的方塊圖,如第5圖所示,手機5〇包含有一運作模式控 制裝置500 ’其包含有一制模組51〇以及一控纏組別。控制模 =520會在—預定時間判斷手機5〇之環境狀態是否對應於一預定環 境狀態,在本實施例中,該預定時間係為一預定時段(例如··晚上 10.00〜12. 〇〇),該預定環境狀態係為一使用者睡眠中狀態,亦即, 手機50在晚上10.00〜12 : 〇〇會啟動睡眠偵測功能偵測模組別 ❹便開始偵測手機50之環境狀態,以協助控制模组MO判斷使用者是 否在睡眠巾’來歧是倾钱5G婦至睡賴式。在本發明之一 實施例中,當手機50於睡眠模式下接收到一來電時,控制模組52〇 可控制手機50制㈣者要留該是接通電話,絲電者有很緊急 的事情要通知者時,來電者仍可接㈣話以使手機5()發出響: 聲來通知使用者有來電。在本發明之其他實施例中,睡眠模式可僅 係為靜音模式或是震動模式。此外,當控制模組52〇將手機5〇切換 泛至睡眠模式時,控制模組S2〇會另將手機如切換至睡眠模式的時間 記錄下來,以記錄下使用者的作息時間’控麵組52〇便可根據使 用者的作息時間來動態調整啟動睡眠侧功能的時間。舉例來說, 右控制模組52〇根據所記錄的使用者的作息時間發現使用者幾乎都 在晚上11 : 30就寢,控制模組52〇便可調整手機5〇在晚上1〇 〜U : 30啟動睡眠偵測功能。 在本發明之一實施例中’偵測模組510包含有一重力偵測器 (G-_or) ’用來偵測手機5〇之運動狀態以產生偵測資料,控制 模組520便根據重力侧器512所產生之_資料來判斷手機^ 12 201023608 目前係處於靜止或移動的狀態…般而言,使用者在睡眠 機50應係處於靜止的狀態,因此,當控麵組52〇根據重力偵測器 512所產生之_資料判斷手機5〇目前係處於靜止的狀態中時,控 制模組520將控制手機5〇切換至睡眠模式。 二 在本發明之另一實施例中,偵測模組si〇包含有一音量侦測器 別’用來偵測手機之環境音量以產生細議,控制模組52〇 便根據音量偵測器514所產生之侧資料來判斷手機兄目前係處於 β安靜或吵雜的環境中。—般而言,制者在睡眠中時,手機50應传 處於安靜的環境中,因此,當控制模組S2〇根據音量備測器別所 產生之_資料判斷手機5〇目前係處於靜止的狀態中時,控制模組 520將控制手機5〇切換至睡眠模式。 在本發明之又-實施例中,,偵測模組51〇包含有一亮度偵測器 516,用知貞測手機5〇之環境亮度以產生細資料,控制模組创 便根據亮度偵測器516所產生之價測資料來觸手機5〇目前係處於 黑暗或明亮的狀態。-般而言,使用者在睡眠中時,手機5〇應係處 於…、暗的狀態' ’因此’當控組52〇根據亮度债測器所產生 之偵測^料判斷手機5〇目前係處於黑暗的狀態中時,控制模組52〇 將控制手機50切換至睡眠模式。 在本發明之又一實施例中,谓測模組Μ〇可包含二種或二種以 上的感測器,例如重力_器512、音量偵測器514絲度摘測器 516用來>(貞測手機5〇之環境狀態以產生貞測資料,以決定是否將 手機50切換至睡眠模式。 13 201023608 本發明另提供—_腦喊產品,其執行上述運作 控制方法’此電腦程式產品基本上是由多數個 ς 片段、以及部署程式媽片段),並 程式碼 C斯域跡__:=== 步驟與上錢糊趣财找置的魏。.的 的二5運作模式的控制方法、裝置與使用此方法 ❹伽測電子裝置之環境狀態作為電子裝置之運 =^轉換的依據,據此,可動態調整手持通訊裝置的運作模式, 讓手持通喊置能夠在不_場合讀至適合的運作模式。 心χ上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍 所做之均等變化與修飾,㈣屬本發明之涵蓋範圍。 【圖式簡單說明】 第1圖係為本發明電子裝置之運作模式控制方法之一實施例的流程 圖。 第2圖係為本發明電子裝置之運作模式控制裝置之一實施例的方塊 圖。 ^圖係為採用本發明之運作模式控制裝置之手機的方塊圖。 圖係為第3圖所示之手機之運作模式控制方法的流程圖。 r圖係為剌本發明之運作模式控織置之另-手_方塊圖。 【主要元件符號說明】 3〇、50 手機 14 201023608 200、300、500 210、310、510 220、320、520 312、512 314 > 514 516 Ο 運作模式控制裝置 偵測模組 控制模組 重力偵測器 音量偵測器 亮度偵測器 ❿ 15Mode ^ During the extended time, the control module 320 will additionally judge that the conference module has not exceeded the pre-time for a long time, and the control module _ control = == _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Then, the control module 32 switches the hand_=conference mode back to the original mode (for example, positive tilt). In other words, the control and group 320 extend the conference mode of the mobile phone up to the predetermined extension time (10), and the conference mode is extended by up to 30 minutes until u: 3〇). Please note that in the above embodiment, the detection module 31 utilizes the gravity side device 312 and the volume side device 314 to provide an environmental state (ie, motion state or environmental redundancy), but this is not It is the invention of the invention. In practice, the side module 31 can utilize any detector or device to make the environment state of the mobile phone. For example, in another embodiment of the present invention, the detection module 310 may include a CGNal navigation satdlite system (GNSS) receiver to detect the motion state of the mobile phone, and the mobile phone 3G is currently in the system. Static or moving state, for example: _ global position system (GPS). As a result of the prior art in the field of 201023608, the artist said in the above-mentioned related yelling that the mobile phone 30 is in the state of motion of the mobile phone 30 to determine whether the mobile phone is currently in a stationary or moving state. Ribs is sincere, and the related flips are omitted here. Please refer to FIG. 4, which is a flow chart of the operation mode control method of the mobile phone 30. The method can be summarized as follows: S4G5: Does the meeting schedule recorded by the electronic event start? If yes, go to step S410; if not, go back to step S405; ❿ S410: switch the mobile phone from the current mode to the conference mode; S420 ··measure the environmental state of the mobile phone in the __ period during the conference trip recorded by the electronic event In order to generate a reference material; the meeting schedule recorded by the team's sub-facture is the storage? If it is S430; if not, go back to step S425; 'S430: detect the environmental status of the mobile phone to generate a detection data; S435 · Compare the detection data with the reference data to determine the environmental condition of the mobile phone corresponding to the conference state? If yes, go to step 844; if 丕w ~疋s·: control the mobile phone to continue to operate in the conference mode to extend the conference mode ==〇, S you will be prosecuted for a long time, f檐 exceeds - dare to extend _?, two times; S450; if not, return to step S43 〇; . 疋, to S450: convert the mobile phone from the conference mode back to the original mode. :: 求 蝴 2010 201023608 Research Reference 5 @ '5 is a block diagram of the mobile phone 50 using the operating mode control device of the present invention, as shown in Figure 5, the mobile phone 5 〇 includes a mode control device 500 'It consists of a module 51〇 and a control group. The control mode=520 determines whether the environmental state of the mobile phone 5 corresponds to a predetermined environmental state at a predetermined time. In the embodiment, the predetermined time is a predetermined time period (for example, 10.00~12. 晚上 at night) The predetermined environmental state is a user's sleep state, that is, the mobile phone 50 is 10.00~12 at night: 〇〇 the sleep detection function detection module is activated, and the environment state of the mobile phone 50 is detected. Assist the control module MO to determine whether the user is in the sleep towel. In an embodiment of the present invention, when the mobile phone 50 receives an incoming call in the sleep mode, the control module 52 can control the mobile phone 50 (4) to leave the call, and the wire charger has a very urgent matter. To notify the caller, the caller can still answer (4) to make the phone 5 () sound: to inform the user that there is an incoming call. In other embodiments of the invention, the sleep mode may be only a silent mode or a vibration mode. In addition, when the control module 52 〇 switches the mobile phone 5 to the sleep mode, the control module S2 记录 will record the time when the mobile phone switches to the sleep mode to record the user's work time 'control panel 52〇 The time for starting the sleep side function can be dynamically adjusted according to the user's work schedule. For example, the right control module 52 发现 finds that the user almost goes to sleep at 11:30 in the evening according to the recorded working time of the user, and the control module 52 can adjust the mobile phone 5 at night 1~U: 30 Start sleep detection. In one embodiment of the present invention, the detection module 510 includes a gravity detector (G-_or) for detecting the motion state of the mobile phone 5 to generate detection data, and the control module 520 is based on the gravity side. The data generated by the device 512 determines that the mobile phone ^ 12 201023608 is currently in a state of being stationary or moving. Generally speaking, the user should be in a stationary state in the sleep machine 50. Therefore, when the control panel 52 is based on gravity detection When the data generated by the detector 512 determines that the mobile phone 5 is currently in a stationary state, the control module 520 will control the mobile phone 5 to switch to the sleep mode. In another embodiment of the present invention, the detection module si includes a volume detector to detect the ambient volume of the mobile phone to generate a detailed discussion, and the control module 52 is configured according to the volume detector 514. The side data generated to determine that the mobile phone brother is currently in a quiet or noisy environment. In general, when the maker is in sleep, the mobile phone 50 should be transmitted in a quiet environment. Therefore, when the control module S2 〇 determines that the mobile phone 5 is currently in a stationary state according to the data generated by the volume preparation device. In the middle, the control module 520 will control the handset 5 to switch to the sleep mode. In a further embodiment of the present invention, the detection module 51 includes a brightness detector 516 for detecting the ambient brightness of the mobile phone 5 to generate fine data, and the control module is based on the brightness detector. The price data generated by 516 is in the dark or bright state when it touches the mobile phone. Generally speaking, when the user is in sleep, the mobile phone 5 should be in the state of ..., dark state. 'Therefore, the control group 52〇 judges the mobile phone 5 based on the detection of the brightness detector. When in a dark state, the control module 52 will switch the handset 50 to sleep mode. In still another embodiment of the present invention, the preamble module Μ〇 may include two or more types of sensors, such as a gravity _ 512, a volume detector 514, and a tap 516 for > (Measure the environmental status of the mobile phone 5 to generate the speculative data to decide whether to switch the mobile phone 50 to the sleep mode. 13 201023608 The present invention further provides - the brain shouting product, which performs the above operation control method 'this computer program product basic The upper part is composed of a number of snippet clips, and the deployment program is a fragment of the program, and the code C s field trace __:=== steps and the money to find the Wei. The control method and device of the second five operation mode and the environmental state of the electronic device using the method are used as the basis for the conversion of the electronic device, thereby dynamically adjusting the operation mode of the handheld communication device, allowing the handheld The screaming can read the appropriate mode of operation without the occasion. The above description is only the preferred embodiment of the present invention, and the equivalent variations and modifications made by the scope of the present invention are (4) covered by the present invention. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a flow chart showing an embodiment of an operation mode control method of an electronic device of the present invention. Fig. 2 is a block diagram showing an embodiment of an operation mode control device of the electronic device of the present invention. The figure is a block diagram of a mobile phone using the operating mode control device of the present invention. The figure is a flow chart of the operation mode control method of the mobile phone shown in FIG. The r diagram is a different-hand block diagram of the operation mode control weaving of the present invention. [Main component symbol description] 3〇, 50 mobile phone 14 201023608 200, 300, 500 210, 310, 510 220, 320, 520 312, 512 314 > 514 516 运作 Operation mode control device detection module control module gravity detection Detector volume detector brightness detector ❿ 15