200945041 •九、發明說明: *【發明所屬之技術領域】 本發明涉及一種電子設備以及拔除外接設備的方 法,尤其是一種能夠安全卸載外接設備的電子設備以及從 電子設備上安全卸載外接設備的方法。 【先前技術】 隨著多媒體技術的發展,各種電子顯示設備的外接設 備越來越多。由於USB設備具有即插即用的特性,因此介 ®面快速成為了電腦、消費性電子設備與通訊設備等領域優 先選擇的連接方式,在PDA、MP3播放器、數碼相機、行 動電話、數位電視等設備中得到廣泛應用。 雖然USB設備可以即插即用,但用戶在拔除USB設 備時,都要執行一個多步驟的手工安全卸載動作,如用滑 鼠點擊某些圖示,彈出選擇框,找到對應程式,點擊運行 等操作,十分繁瑣。USB設備卸載包括釋放USB設備緩存 ©和分配的位址、停止對USB設備的供電等操作。用戶有時 候嫌麻煩或者因為忘記卸載動作而直接拔除了 USB設 備,這樣的強制拔除動作可能會導致很多問題,如數據丟 失和USB設備損壞,給用戶使用帶來很多不便,而且對電 子設備也有損害。 【發明内容】 鑒於此,有必要提供一種可以方便進行外接設備卸載 的電子設備。 此外,還有必要提供一種操作方便的卸載外接設備的 7 200945041 方法。 -種電子設備,包括外設介面’該外設介面用於連接 外接設備。電子設備還包括感應裝置,監控模組和卸載模 組。該感應裝置用於探測預定範_物體的存在,並當产 測到物體時產生感應錢,該監控模轉應該感應裝置^ 生的感應訊號發出純指令,該卸賴組響應卸載指令卸 載連接在該外設介面上的外接設備。200945041 • Nine, invention description: * [Technical field of invention] The present invention relates to an electronic device and a method for removing an external device, in particular, an electronic device capable of safely uninstalling an external device and a method for safely uninstalling the external device from the electronic device . [Prior Art] With the development of multimedia technology, there are more and more external devices for various electronic display devices. Thanks to the plug-and-play nature of USB devices, Media® has quickly become the preferred connection for computers, consumer electronics and communications equipment, in PDAs, MP3 players, digital cameras, mobile phones, digital TVs. It is widely used in other devices. Although the USB device can be plug and play, the user must perform a multi-step manual security uninstallation action when removing the USB device. For example, click on some icons with the mouse, pop up the selection box, find the corresponding program, click to run, etc. Operation is very cumbersome. USB device uninstallation includes releasing the USB device cache © and the assigned address, stopping the power supply to the USB device, and the like. Users sometimes have trouble or simply remove the USB device because they forget the uninstallation action. Such forced removal may cause many problems, such as data loss and USB device damage, which brings a lot of inconvenience to the user and damages the electronic device. . SUMMARY OF THE INVENTION In view of the above, it is necessary to provide an electronic device that can facilitate the unloading of an external device. In addition, it is necessary to provide an easy-to-use 7200945041 method of uninstalling an external device. - Electronic devices, including peripheral interfaces' This peripheral interface is used to connect external devices. The electronic device also includes an inductive device, a monitoring module, and an unloading module. The sensing device is configured to detect the presence of a predetermined mode object, and generate an inductive money when the object is detected, and the monitoring mode should send a pure command to the sensing signal generated by the sensing device, and the unloading group unloads the connection in response to the unloading command. An external device on the peripheral interface.
種卸載外接設備的方法,包括以下步驟·· 探測預定範圍内物體的存在,並當探_有物體存在 時產生感應訊號; 響應該感應訊號發出卸載指令; 響應該卸载指令卸載連接在外設介面上的外接設備。 利用上述電子設備及卸載外接設備的方法,用戶將手 接近感應裝置即可完成外接設備的卸載動作,省去了藉由 鍵盤和滑鼠進行的手動卸載操作,為用戶提供了操作^的 β方便。 【實施方式】 ▲如圖1所示,其為一較佳實施方式的電子設備1〇〇的 功能模組圖。電子設備100包括外設介面11〇、感應裝置 UO、監控模組13〇和卸載模組14〇。 外設介面110用於與外接設備5〇相連。 感應裝置120為紅外感測器,用於探測預定範圍内是 否有物體存在,並在探測到有物體存在時產生感應訊號。 本實施方式中紅外感測器可安裝於電子設備的任意位置, 8 200945041 如安裝在主機上,顯示器上,或者鍵盤上。感應裝置i2〇 的感應範圍不宜過大,以防止誤操作,通常感應範圍在十 董米以内,本實施方式為五爱米,當用 應裝置㈣五董米範園内時,判斷為用戶欲拔除插在= 介面110上的外接設備50。感應裝置12〇也可以其他形式 的接近式感測器或觸摸感測器。 監控模組!30用於響應所述感應裝置12〇產生的感應 訊號發出卸載指令給卸載模組140。 瘳 卸載模組14〇用於響應卸載指令卸載連接在外設介面 110上的外接設備50。該卸載外接設備5〇的動作包括例如 釋放外接设備50緩存和分配的位址、停止對外接設備5〇 的供電、卸載驅動程式等。 這樣做的好處是,用戶的手只需接近感應裝置,電子 設備即可自動執行卸載外接設備5〇的操作,免去了傳統藉 由滑鼠鍵盤來進行卸載的操作,簡潔方便。 ❹ 請參閱圖2,其為電子設備100的結構示意圖。為了 更好的為用戶提供操作上的方便,所述感應裝置120靠近 外設介面110設置。如此,用戶伸手去拔除外接設備5〇 時,用戶的手必然先靠近了感應裝置120,從而可以在用 戶拔出外接設備50前完成卸載動作,避免了用戶在拔除外 接設備50前忘記卸載外接設備5〇而給電子設備和外接設 備50帶來的安全隱患。 由於用戶接近外設介面110有兩種情況,一種是插入 外接設備50, 一種是為了卸載外接設備5〇。為了避免用戶 9 200945041 希望插入外接設備50也被誤認為是卸載而進行非必要卸 載動作。另一實施方式中,監控模組130進一步用於檢測 疋否存在外接設備50,並在外接設備5〇存在且接收到感 應訊號時,發送卸載指令給卸載模組14〇。 進一步,為了避免沒有外接設備5〇時感應裝置無意 義的工作’其他實施方式中,感應裝置的I作基於監控模 組130檢測到又有外接設備5〇存在而啟動,這樣為了避免 用戶插入外接設備50被誤認為是卸載的可能。 、如圖3所示’其為-較佳實施方式的卸載外接設備的 方法’包括如下步驟: 步驟S301’探測預設範圍内物體的存在,並在探測到 物體時產生感應訊號。該探測動作是利用 上的接近式紅外感測器實現。 要于又備 步驟S303,響應感應訊號發出卸載指令。 步驟謂5,響應卸載指令卸載連接在電子設備的外言; 的外接設備。例如釋放外接設傭緩存和分配_ 址、停止對外接設備的供電、卸載驅動程式等。 4’其他㈣外接設備的方㈣包括:檢測 ^ ^上^連射外接設備,輕檢_有外接設備 犄,響應感應訊號發出卸载指令,見步驟4的。 清參閲圖5,其他卸载外接号供 ::::面上是:連接有外接設備,並在檢測有Si 口又備時,啟動探測動作,見步驟5W。 請參閲圖6,其他卸载外接設備的方法還包括·在卸 200945041 ‘載外接設備前,檢測外接設備是否正在傳 設,正在傳送資料時,可以藉由彈出對話方塊和J = 用戶是否中止資料傳送,見步驟_,:;:直 接終止外接設備的資料傳送。 也飞以直 ::載完成之後’彈出指示外接設備已經 戶可以拔除外接設備的提示框, = 還增加了用戶交互性。 ^知樣’ 上述卸载外接設備的方法藉由感應人 ;行外接設備的卸載動作,省去了藉由鍵盤和滑鼠 步驟卸載操作,為用戶提供了操作上的方便。 夕 【圖式簡單說明】 二::較佳實施方式的電子設備的功能模組圖。 圖2為電子設備的結構示意圖。 圖 圖3為第-較佳實施方式的外接設備卸载方法流程 4為第二較佳實施方式的外接設備卸载方法流程 5為第三較佳實施方式的外接設備卸载方法流程 6為第四較佳實施方式的外接設備卸载方法流程 圖 圖 圖 圖 圖 圖 外接設備 50 感應裝置 120 【主要元件符號說明】 電子設備 外設介面 11() 11 200945041 4 監控模組 130 外接設備卸載方法步驟 外接設備卸載方法步驟 外接設備卸載方法步驟 外接設備卸載方法步驟 卸載模組 140 S301〜S305 S401〜S405 S501〜S505 S601〜S609The method for unloading an external device includes the following steps: detecting the presence of an object within a predetermined range, and generating an inductive signal when an object exists; sending an unloading command in response to the sensing signal; and unloading the connection to the peripheral interface in response to the unloading instruction External device. By using the above electronic device and the method for uninstalling the external device, the user can close the sensing device to complete the unloading action of the external device, eliminating the manual unloading operation by the keyboard and the mouse, and providing the user with the convenience of the operation of β. . [Embodiment] ▲ As shown in Fig. 1, it is a functional block diagram of an electronic device 1A of a preferred embodiment. The electronic device 100 includes a peripheral interface 11A, a sensing device UO, a monitoring module 13A, and an unloading module 14A. The peripheral interface 110 is used to connect to an external device 5A. The sensing device 120 is an infrared sensor for detecting whether an object exists within a predetermined range and generating an inductive signal when an object is detected. In this embodiment, the infrared sensor can be installed at any position of the electronic device, and the 200945041 is installed on the host, the display, or the keyboard. The sensing range of the sensing device i2〇 should not be too large to prevent misoperation. Generally, the sensing range is within ten Dong meters. In this embodiment, it is five meters. When using the device (4) five Dongmi Fan Park, it is judged that the user wants to remove the plug in the = interface. External device 50 on 110. The sensing device 12A can also be other forms of proximity sensors or touch sensors. Monitoring module! 30 is configured to issue an unloading command to the unloading module 140 in response to the inductive signal generated by the sensing device 12?.卸载 The offload module 14 is configured to offload the external device 50 connected to the peripheral interface 110 in response to the uninstall command. The action of uninstalling the external device 5 includes, for example, releasing the address of the external device 50 buffered and allocated, stopping the power supply to the external device 5, unloading the driver, and the like. The advantage of this is that the user's hand only needs to approach the sensing device, and the electronic device can automatically perform the operation of uninstalling the external device, eliminating the traditional operation of unloading by the mouse keyboard, which is simple and convenient. Please refer to FIG. 2 , which is a schematic structural diagram of the electronic device 100 . In order to better provide the user with operational convenience, the sensing device 120 is disposed close to the peripheral interface 110. In this way, when the user reaches out to remove the device 5, the user's hand must first approach the sensing device 120, so that the user can complete the uninstalling operation before the user removes the external device 50, thereby preventing the user from forgetting to uninstall the external device before pulling out the device 50. 5〇, the security risks brought to electronic devices and external devices 50. Since the user is close to the peripheral device 110, there are two cases, one is to insert the external device 50, and the other is to uninstall the external device. In order to avoid the user 9 200945041, it is desirable to insert the external device 50 to be mistaken for unloading and perform an unnecessary unloading action. In another embodiment, the monitoring module 130 is further configured to detect whether the external device 50 is present, and send an uninstall command to the uninstall module 14 when the external device 5 is present and receives the sensing signal. Further, in order to avoid the meaningless operation of the sensing device when there is no external device 5, in other embodiments, the I of the sensing device is activated based on the detection module 130 detecting that the external device 5 is present, so as to prevent the user from inserting the external device. Device 50 is mistaken for the possibility of unloading. As shown in Fig. 3, the method for unloading an external device of the preferred embodiment includes the following steps: Step S301' detects the presence of an object within a preset range and generates an inductive signal when an object is detected. This detection action is achieved using a proximity infrared sensor. In addition to step S303, an unloading command is issued in response to the sensing signal. The step is 5, and the external device connected to the foreign language of the electronic device is uninstalled in response to the uninstallation instruction; For example, release the external commission cache and allocation address, stop the power supply to the external device, uninstall the driver, and so on. 4' Others (4) The external device (4) includes: detection ^ ^Up ^Continuous external device, light check _ there is an external device 犄, respond to the sensing signal to issue an unload command, see step 4. Refer to Figure 5 for other unloading external numbers for the :::: surface: Connect an external device and start the detection action when detecting the presence of the Si port. See step 5W. Please refer to FIG. 6. Other methods for uninstalling the external device include: detecting whether the external device is being transmitted before uninstalling the external device in 200945041. When the data is being transmitted, the dialog box can be popped up and J = whether the user aborts the data. Transfer, see step _, :;: directly terminate the data transfer of the external device. Also fly to the following: After the completion of the load, the pop-up indicates that the external device has been able to unplug the device, and the user interface is added. ^ knowing the above method for unloading the external device by means of sensing the unloading action of the external device, eliminating the need for the keyboard and mouse step unloading operation, providing the user with operational convenience.夕 [Simple description of the drawings] 2: The functional module diagram of the electronic device of the preferred embodiment. 2 is a schematic structural view of an electronic device. FIG. 3 is a schematic diagram of an external device unloading method according to a first preferred embodiment. FIG. 4 is a second preferred embodiment of the external device unloading method. FIG. 5 is a third preferred embodiment of the external device unloading method. Flowchart of the external device unloading method of the embodiment diagram diagram diagram diagram external device 50 sensing device 120 [main component symbol description] electronic device peripheral interface 11 () 11 200945041 4 monitoring module 130 external device unloading method step external device unloading method Step external device unloading method step external device unloading method step unloading module 140 S301~S305 S401~S405 S501~S505 S601~S609
1212