TW201115473A - A method based on G-SENSOR for sensing electronic book reading environment - Google Patents

A method based on G-SENSOR for sensing electronic book reading environment Download PDF

Info

Publication number
TW201115473A
TW201115473A TW98136037A TW98136037A TW201115473A TW 201115473 A TW201115473 A TW 201115473A TW 98136037 A TW98136037 A TW 98136037A TW 98136037 A TW98136037 A TW 98136037A TW 201115473 A TW201115473 A TW 201115473A
Authority
TW
Taiwan
Prior art keywords
vibration
sensor
thread
time
timer
Prior art date
Application number
TW98136037A
Other languages
Chinese (zh)
Other versions
TWI416414B (en
Inventor
Qiang Zhao
Liang Huang
Shih-Kuang Tsai
Original Assignee
Inventec Appliances Corp
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 Inventec Appliances Corp filed Critical Inventec Appliances Corp
Priority to TW98136037A priority Critical patent/TWI416414B/en
Publication of TW201115473A publication Critical patent/TW201115473A/en
Application granted granted Critical
Publication of TWI416414B publication Critical patent/TWI416414B/en

Links

Abstract

This present invention provides a method based on G-SENSOR for sensing electronic book reading environment. Interrupt service thread is activated after G-SENSOR generates Interrupting signal, meanwhile, timer thread is established. Vibration count increments every time interrupting signal is generated. When effective vibration is qualified, infrastructure driver informs the operation system, terminates timer thread and refreshes count and vibration count, then performs sleep and terminates. If effective vibration is not qualified, sleep is performed and repeat said steps except establishing timer thread.

Description

201115473 六、發明說明: 【發明所屬之技術領域] 本發明是有關於一種感應電子書閱讀環境的方法,且 特別是有關於一種基於G-SENSOR感應電子書閱讀環境 的方法。 【先前技術】 近年來’伴隨著隨著社會的發展和進步,電子書以其 Φ 環保和方便閱讀的特點越來越受到人們的歡迎。電子書代 表人們所閱讀的數位化出版物,從而區別於以紙張為載體 的傳統出版物,利用電腦技術將一定的文字、圖片、聲音、 影像等資訊,通過數碼方式記錄在以光、電、磁為介質的 設備中,借助於特定的設備來讀取、複製、傳輸。基於這 些特性’電子書具有諸多優點’例如方便性,可搜尋内容, 改變字體大小及字型;容量大,隨時可網路下載,不受地 域限制’省去舟車勞頓之苦;降低圖書成本,價格便宜; # 設計精美’靈活多樣,有多媒體功能;節省保存書本所需 之空間;實現了產品零庫存’全球同步發行,購買方便快 捷等。因此’伴隨著電子書的普及’具有閱讀電子書功能 的設備也層出不窮,例如好易通、快易通、商務通、經理 人、名人、掌上電腦以及專門針對閱讀電子書的設備如 . Amazon的Kindle等,甚至許多手機產品也加入了閱讀電 子書的功能。 但是電子書為讀者帶來方便的同時也有弊端。閱讀者 若長期使用這些閱讀設備進行閱讀則很有可能使視力受 201115473 損,影響健康及生活。目前的電子書閱讀設備並不具備判 ' 斷當别環境是否適合閱讀的功能’通常是由讀者依據自我 • 意識進行判斷,不夠科學準確。 【發明内容】 因此* ’本發明之一態樣是在提供一種基於G-SENSOR 感'應電子書閱讀環境的方法。中斷服務線程在G-SENSOR 發生中斷信號後被觸發,並建立計時器線程,計時器線程 Φ 每隔T1時間將中斷服務線程中之參數歸零,震動計數器每 發生一次中斷信號其數值加1,當震動產生的條件成立, 底層驅動程式就通知作業系統,並終止計時器,將震動計 數器重新賦值,進入延時步驟後結束,當震動產生的條件 不成立’則直接進入延時步驟,然後重複除建立計時器線 程外的步驟。震動產生的條件以及T1時間可由使用者自行 設置,T1時間為5〜10秒。 G-SENSOR將作用在電子書設備上的力轉化為電信 φ 號,與G-SENSOR匹配的底層驅動程式根據使用者預先的 設置對G-SENSOR轉化的電信號進行檢測來判斷是否發 生震動,當發生震動後底層驅動程式通知電子書設備的作 業系統,由作業系統通知具有提示震動功能的應用程式對 使用者進行提示。 ^ 依據本發明一實施例,電子書設備可以是好易通、快 易通、商務通、經理人、名人、掌上電腦、手機以及專門 針對閱讀電子書的設備。具有提示震動功能的應用程式接 受到產生震動的資訊後以彈出警告對話方塊、關閉顯示設 201115473 備、用音頻設備發出響聲或閃爍指示燈等方式對使用者進 行提示。 若顯示設備被關閉’使用者可根據設備種類使用按電 源鍵、觸碰顯示幕或搖動設備等方式將顯示設備喚醒。 依據本發明另一實施例,底層驅動程式可以設置 G-SENSOR感應震動的幅度值、向作業系統申請中斷信 號、建立震動檢測的中斷服務線程以及將申請到的中斷信 號與中斷服務線程綁定。 這樣就能科學準確地判斷周圍環境是否適合進行閱 讀。 【實施方式】 請參照第1圖,其繪示依照本發明一實施方式的一種 基於G-SENSOR 102感應電子書閱讀環境的設備之結構 圖。G-SENSOR 102將作用在電子書設備100上的力轉化 為電信號,與G-SENSOR 102匹配的底層驅動程式104 φ 根據使用者預先的設置對G-SENSOR 102轉化的電信號 進行檢測來判斷是否發生震動或震動是否消失’當判斷為 發生震動時,底層驅動程式104通知電子書設備的作業系 統108,由作業系統108通知具有提示震動功能的應用程 式106,使用彈出警告對話方塊、關閉顯示設備或其他馨 告方式提示使用者當前環境不適合閱讀。與此同時: G_SENSOR 102仍然將作用在電子書設備100上的力轉化 為電信號,與G-SENSOR 102匹配的底層驅動程式1〇4 根據使用者預先的設置對G-SENSOR 1〇2轉化的電信號 201115473 進行檢測來判斷震動是否消失,當判斷為震動、、肖失時,底 層驅動程式104通知作業系統108,由作業系統1〇8通知 具有提示震動功能的應用程式106,使用彈出提示對話方 塊、開啟顯示設備或其他方式提示使用者震動已消失。本 實施例中所使用的電子書設備包括但不限於好易通、快易 通、商務通、經理人、名人、掌上電腦、手機以及專門針 對閱讀電子書的設備等。 請參照第2圖’其繪示依照本發明一實施方式的一種 與G-SENSOR 102匹配的底層驅動程式1〇4之初始化設 置流程圖,其運作順序按照箭頭所示。步驟2〇〇表示對 G-SENSOR102進行初始化,使其能進入工作狀態,並同 時設置其感應震動的幅度值’如果震動達到設置的幅度 值,G-SENSOR 102便發出中斷信號。步驟202表示底層 驅動程式104向作業系統108申請中斷信號。步驟204表 示建立震動檢測的中斷服務線程VibrationIST (),旅向作 業系統108註冊。步驟206表示將申請到的中斷信號與中 斷服務線程VibrationIST ()綁定’如果中斷信號發生, 那麼中斷服務線程VibrationlST ()將會被調用。 G-SENSOR 102感應震動的幅度值可由使用者自行設置。 請參照第3圖,其繪示依照本發明一實施方式的一種 中斷服務線程之運作流程圖,其運作順序按照箭頭所示。 步驟302表示G-SENSOR 102感應到大於預設的震動的 幅度值的震動並發生中斷信號,中斷服務線程VibrationIST ()被觸發。步驟304表示建立計時器線程Timer (),作 用是建立一計時器Count’每隔T1時間將該中斷服務線程 201115473 中之參數歸零,T1時間可由使用者自行設置,T1時間為 " 5~10秒’在本實施例中設置為5秒計時器線程 * FlVeSec〇ndsTimer(),在T1時間内發生中斷信號的次數 將作為判斷震動的條件。步驟3〇4只在計時器C〇unt未被 建立時執行。步驟306表示震動計數器vibrationCount數 值加1 ’這是一個靜態變數’每發生一次中斷信號則數值 加1,以此表示發生過幾次中斷信號,其初值為〇。判斷步 驟308表示根據計時器Count ()和震動計數器 > VibrationCount的值判斷震動條件是否成立,其中成立條 件由使用者自行設定,本實施例中將震動計數器 VibrationCount的值大於等於4並且計時器count的值為 〇作為震動成立條件’即在中斷服務線程V|brat丨〇nlST () 被觸發的5秒内產生4次或以上中斷信號則判斷震動成立。 若步驟308判斷震動成立,則運行至步驟31〇。步驟 310表示判斷結果為震動產生,即在計時器線程Tjme「() 设置的時間長度内震動計數器VibrationCount的數值達到 使用者設置的數值,在本實施例中為5秒計時器線程 FiveSecondsTimer ()被觸發的5秒内中斷信號產生次數 大於等於4,那麼底層驅動程式104就通知作業系統1〇8, 由作業系統108通知具有提示震動功能的應用程式1〇6, 使用彈出提示對話方塊、.開啟顯示設備或其他方式提示使 用者震動產生。步驟312表示將計時器c〇Unt終止和震動 計數器VibrationCount重新賦值,在本實施例中將5秒計 時器FiveSecondsCount ()終止,並將震動計數器 VibrationCount賦值為卜步驟314表示延時,作用是使 201115473 兩次中斷k號發生時間不小於延時時長,以此來排除短時 間内的高頻振動,其中延時時長可由使用者設定,延時時 長為300〜900微秒’在本實施例中延時時長為8〇〇微秒。 延時結束後所有步驟結束。 若步驟308根據計時器線程fjmer ()和震動計數器 VibrationCount的值判斷震動條件不成立,在本實施例中 即是中斷服務線程VibrationIST ()被觸發的5秒内產生 中斷信號小於4,則直接運行至步驟314進行延時。 步驟314進行延時完畢後,中斷服務線程Vjbratj〇n|ST ()運行結束,直到下一次G-SENS0R 102感應到大於預 設的震動的幅度值的震動並發生中斷信號時再一次將中斷 服務線程VibrationIST ()觸發。 請參照第4圖,其繪示第3圖中依照本發明一實施方 式的一種中斷服務線程之運作流程圖中計時器線程之運作 流程圖。步驟402表示計時器線程·nmer ()被觸發,本 實細*例中sj·時器線程被設置為5秒計時器線程201115473 VI. Description of the Invention: [Technical Field of the Invention] The present invention relates to a method for sensing an e-book reading environment, and more particularly to a method based on a G-SENSOR sensing e-book reading environment. [Prior Art] In recent years, along with the development and progress of society, e-books have become more and more popular with their characteristics of environmental protection and convenient reading. E-books represent the digital publications that people read, thus distinguishing them from traditional publications that use paper as a carrier. They use computer technology to record certain texts, pictures, sounds, images and other information digitally in light, electricity, and In a device that is magnetically medium, it is read, copied, and transmitted by means of a specific device. Based on these characteristics, 'e-books have many advantages' such as convenience, can search for content, change font size and font size; large capacity, ready to download online, regardless of geographical restrictions, to save the pain of the boat; reduce the cost of books, The price is cheap; #Design is exquisite and flexible, with multimedia function; saves the space needed to save the book; realizes the zero-inventory of the product, global simultaneous release, convenient and quick purchase. Therefore, 'with the popularity of e-books', there are endless devices for reading e-books, such as HYT, HYT, commerce, managers, celebrities, PDAs, and devices specifically for reading e-books. Kindle, etc., and even many mobile phone products have joined the function of reading e-books. However, e-books bring convenience to readers as well as drawbacks. Readers who use these reading devices for a long time are likely to lose their eyesight by 201115473, affecting health and life. Current e-book reading devices do not have the ability to judge whether or not the environment is suitable for reading. It is usually judged by the reader based on self-consciousness and is not scientific and accurate. SUMMARY OF THE INVENTION Therefore, one aspect of the present invention is to provide a method based on the G-SENSOR Sense's e-book reading environment. The interrupt service thread is triggered after the G-SENSOR interrupt signal is generated, and a timer thread is established. The timer thread Φ zeroes the parameter in the interrupt service thread every T1 time, and the value of the shock counter is incremented by one every time the interrupt signal occurs. When the condition of the vibration is established, the underlying driver notifies the operating system, terminates the timer, re-assigns the vibration counter, and ends after the delay step. When the condition of the vibration is not established, it directly enters the delay step, and then repeats the establishment of the timing. Steps outside the thread. The conditions generated by the vibration and the T1 time can be set by the user, and the T1 time is 5 to 10 seconds. G-SENSOR converts the force acting on the e-book device into the telecom φ number. The underlying driver matched with G-SENSOR detects the G-SENSOR converted electrical signal according to the user's preset settings to determine whether vibration occurs. After the vibration occurs, the underlying driver notifies the operating system of the e-book device, and the operating system notifies the user with the prompting vibration function to prompt the user. According to an embodiment of the present invention, the e-book device may be HYT, HYT, BusinessCom, Manager, Celebrity, Pocket PC, Mobile Phone, and a device specifically for reading e-books. The application with the prompting vibration function receives the information that generates vibration and then prompts the user by popping up the warning dialog box, turning off the display setting, and using the audio device to emit a beep or flashing indicator. If the display device is turned off, the user can wake up the display device by pressing the power button, touching the display screen, or shaking the device according to the device type. According to another embodiment of the present invention, the underlying driver can set the amplitude value of the G-SENSOR induced vibration, apply for an interrupt signal to the operating system, establish an interrupt service thread for detecting the vibration, and bind the applied interrupt signal to the interrupt service thread. This makes it possible to scientifically and accurately determine whether the surrounding environment is suitable for reading. [Embodiment] Referring to Figure 1, there is shown a block diagram of an apparatus based on a G-SENSOR 102 inductive e-book reading environment in accordance with an embodiment of the present invention. The G-SENSOR 102 converts the force acting on the electronic book device 100 into an electrical signal, and the underlying driver 104 φ matched with the G-SENSOR 102 determines the electrical signal converted by the G-SENSOR 102 according to the user's preset setting. Whether or not vibration or vibration has occurred. When it is determined that vibration has occurred, the underlying driver 104 notifies the operating system 108 of the electronic book device, and the operating system 108 notifies the application 106 having the prompting vibration function, and uses the pop-up warning dialog box to close the display. The device or other scam method prompts the user that the current environment is not suitable for reading. At the same time: G_SENSOR 102 still converts the force acting on the e-book device 100 into an electrical signal, and the underlying driver 1〇4 matched with the G-SENSOR 102 is converted to the G-SENSOR 1〇2 according to the user's previous settings. The electrical signal 201115473 is detected to determine whether the vibration has disappeared. When it is determined that the vibration is lost or not, the underlying driver 104 notifies the operating system 108, and the operating system 1〇8 notifies the application 106 having the prompting vibration function, and uses the pop-up prompt dialog. Block, turn on the display device, or otherwise alert the user that the vibration has disappeared. The e-book devices used in this embodiment include, but are not limited to, HYT, HYT, commerce, managers, celebrities, PDAs, mobile phones, and devices dedicated to reading e-books. Referring to FIG. 2, a flowchart of initial setting of the underlying driver 1-4 matching the G-SENSOR 102 according to an embodiment of the present invention is shown, and the operation sequence is as indicated by the arrow. Step 2〇〇 indicates that the G-SENSOR102 is initialized so that it can enter the working state and simultaneously set its amplitude value of the induced vibration. If the vibration reaches the set amplitude value, the G-SENSOR 102 will send an interrupt signal. Step 202 indicates that the underlying driver 104 requests an interrupt signal from the operating system 108. Step 204 represents establishing an interrupt service thread VibrationIST() for the shock detection, and the travel to the job system 108 registers. Step 206 represents binding the applied interrupt signal to the interrupt service thread VibrationIST (). If the interrupt signal occurs, the interrupt service thread VibrationlST() will be called. The magnitude of the G-SENSOR 102 induced vibration can be set by the user. Referring to FIG. 3, a flow chart of the operation of the interrupt service thread according to an embodiment of the present invention is shown, and the operation sequence is as indicated by the arrow. Step 302 indicates that the G-SENSOR 102 senses a shock greater than the amplitude value of the preset shock and an interrupt signal occurs, and the interrupt service thread VibrationIST() is triggered. Step 304 represents establishing a timer thread Timer (), which is to establish a timer Count' to zero the parameter in the interrupt service thread 201115473 every T1 time, and the T1 time can be set by the user, and the T1 time is " 5~ 10 seconds' is set to the 5-second timer thread *FlVeSec〇ndsTimer() in this embodiment, and the number of times the interrupt signal is generated during the T1 time will be used as a condition for judging the vibration. Step 3〇4 is only executed when the timer C〇unt is not established. Step 306 indicates that the vibration counter vibrationCount value is incremented by 1 '. This is a static variable. The value is incremented by one every time an interrupt signal occurs, thereby indicating that several interrupt signals have occurred, the initial value of which is 〇. The determining step 308 indicates whether the vibration condition is established according to the value of the timer Count () and the vibration counter > VibrationCount, wherein the setting condition is set by the user, and in this embodiment, the value of the vibration counter VibrationCount is greater than or equal to 4 and the timer count The value of 〇 is set as the vibration condition. That is, when the interrupt service signal V|brat丨〇nlST() is triggered for 4 or more times, the vibration is judged to be established. If the step 308 determines that the vibration is established, then the operation proceeds to step 31. Step 310 indicates that the result of the determination is that the vibration is generated, that is, the value of the vibration counter VibrationCount reaches the value set by the user within the time length set by the timer thread Tjme "(), in this embodiment, the 5-second timer thread FiveSecondsTimer() is If the number of interrupt signal generations is greater than or equal to 4 within 5 seconds of the trigger, the underlying driver 104 notifies the operating system 1〇8, and the operating system 108 notifies the application 1〇6 with the prompting vibration function, and uses the pop-up prompt dialog box to open The display device or other means prompts the user to generate a shock. Step 312 represents resetting the timer c〇Unt and re-assigning the vibrating counter VibrationCount, in this embodiment terminating the 5-second timer FiveSecondsCount() and assigning the vibrating counter VibrationCount Step 314 denotes a delay, which is to make the timeout of the two times of the interruption of the 201115473 not less than the delay time, thereby eliminating the high-frequency vibration in a short time, wherein the delay time can be set by the user, and the delay time is 300~ 900 microseconds' delay time in this embodiment is 8 microseconds. After the beam, all the steps are completed. If the step 308 determines that the vibration condition is not established according to the values of the timer thread fjmer () and the vibration counter VibrationCount, in this embodiment, the interrupt service signal generated by the interrupt service thread VibrationIST () is less than 5 seconds. 4, then directly run to step 314 for delay. After step 314 is completed, the interrupt service thread Vjbratj〇n|ST () runs until the next time G-SENS0R 102 senses a vibration greater than the amplitude of the preset vibration. When the interrupt signal occurs, the service thread VibrationIST () is triggered again. Referring to FIG. 4, FIG. 3 illustrates the operation of the timer thread in the operation flowchart of the interrupt service thread according to an embodiment of the present invention. Flowchart. Step 402 indicates that the timer thread nmer () is triggered. In this example, the sj·timer thread is set to a 5-second timer thread.

FiveSecondsTimer ()。步驟404表示5秒時間到後計時 器Count被賦值為〇 ’本實施例中為5秒計時器 FiveSecondsCount ° 請參照第5圖,其繪示依照本發明一實施方式的一種 具有提示震動功能的應用程式之提示介面。在接到作業系 統震動產生的通知後,應用程式彈出警告視窗5〇2向使用 者提不,若使用者接受警告則可選擇確認按鈕5〇4關閉顯 示幕,若忽略警告則可選擇取消按鈕5〇6繼續閱讀。 在本發明實施例中應用程式可以根據設備的類型對使 201115473 用者進行各種類型的提示,例如彈出警告對話方塊、關閉 - 顯示設備、用音頻設備發出響聲或閃燦指示燈等方式提示 . 使用者當前環境是否適合閱讀。若顯示設備被關閉,使用 者可根據設備種類使用按電源鍵、觸碰顯示幕或搖動設備 等方式將顯示設備喚醒。 雖然本發明已以實施方式揭露如上,然其並非用以限 定本發明,任何熟習此技藝者,在不脫離本發明之精神和 範圍内,當可作各種之更動與潤飾,因此本發明之保護範 圍當視後附之申請專利範圍所界定者為準。 【圖式簡單說明】 第1圖是繪示依照本發明一實施方式的一種基於 G-SENSOR感應電子書閱讀環境的設備之結構圖。 第2圖是繪示依照本發明一實施方式的一種與 G-SENSOR匹配的底層驅動程式之初始化設置流程圖。 第3圖是其繪示依照本發明一實施方式的一種中斷服 φ 務線程之運作流程圖。 第4圖是繪示第3圖中依照本發明一實施方式的一種 中斷服務線程之運作流程圖中的計時器線程之運作流程 圖。 第5圖是其繪示依照本發明一實施方式的一種具有提 示震動功能的應用程式之提示介面。 【主要元件符號說明】 100 :電子書設備 201115473FiveSecondsTimer (). Step 404 shows that after 5 seconds, the timer Count is assigned the value 〇 'In this embodiment, the 5-second timer FiveSecondsCount ° Please refer to FIG. 5 , which illustrates an application with a prompting vibration function according to an embodiment of the present invention. The prompt interface of the program. After receiving the notification generated by the vibration of the operating system, the application pops up the warning window 5〇2 to remind the user. If the user accepts the warning, the user can select the confirmation button 5〇4 to close the display screen, and if the warning is ignored, the cancel button can be selected. 5〇6 Continue reading. In the embodiment of the present invention, the application may make various types of prompts for the 201115473 user according to the type of the device, such as popping up a warning dialog box, turning off the display device, making a sound with an audio device, or flashing a light indicator. Whether the current environment is suitable for reading. If the display device is turned off, the user can wake up the display device by pressing the power button, touching the display screen, or shaking the device according to the device type. Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and the present invention can be modified and modified without departing from the spirit and scope of the present invention. The scope is subject to the definition of the scope of the patent application attached. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an apparatus based on a G-SENSOR inductive e-book reading environment according to an embodiment of the present invention. FIG. 2 is a flow chart showing initial setting of an underlying driver matched with G-SENSOR according to an embodiment of the invention. FIG. 3 is a flow chart showing the operation of an interrupt service thread according to an embodiment of the present invention. FIG. 4 is a flow chart showing the operation of the timer thread in the operation flowchart of the interrupt service thread according to the third embodiment of the present invention. Figure 5 is a schematic illustration of an application interface with an application for alerting vibration in accordance with an embodiment of the present invention. [Main component symbol description] 100 : E-book device 201115473

102 : G-SENSOR - 104 :與G-SENSOR匹配的底層驅動程式 - 106 :具有提示震動功能的應用程式 108 :作業系統 200 :步驟 202 :步驟 204 :步驟 206 :步驟 φ 3〇2 :步驟 304 :步驟 306 :步驟 308 :判斷步驟 310 :步驟 312 :步驟 314 :步驟 402 :步驟 404 :步驟 502 :警告視窗 504 :確認按钮 506 :取消按紐 11102: G-SENSOR-104: Underlying driver matching G-SENSOR - 106: Application 108 with prompting vibration function: Operating system 200: Step 202: Step 204: Step 206: Step φ 3〇2: Step 304 Step 306: Step 308: Decision Step 310: Step 312: Step 314: Step 402: Step 404: Step 502: Warning Window 504: Confirm Button 506: Cancel Button 11

Claims (1)

201115473 七、申請專利範圍: ^ 1.一種感應電子書閱讀環境的方法,該感應電子書閱 - 讀環境的方法其步驟包含: a. G-SENSOR發生中斷信號; b. 觸發中斷服務線程; c. 建立計時器線程,該計時器線程每隔T1時間將該 中斷服務線程中之參數歸零; d_每發生一次該中斷信號則該中斷服務線程中之震 φ 動計數器數值加1 ;以及 e.進入判斷步驟, 當T1時間内震動計數器數值大於等於設定值時,底層 驅動程式通知作業系統,並終止該計時器,將該震動計數 器重新賦值,進入延時步驟後結束; 當T1時間内震動計數器數值小於設定值時,進入延時 步驟,然後重複步驟a,b,d,e。 • 2.如請求項1所述之感應電子書閱讀環境的方法,其 中該G-SENSOR感應電子書設備所受之力而送出中斷信 號。 3. 如請求項1所述之感應電子書閱讀環境的方法,其 中該計時器線程被觸發後將計時器賦值為0。 4. 如請求項1所述之感應電子書閱讀環境的方法,其 12 201115473 中該τι時間時長由使用者自行設置。 S • 5.如請*項1所狀錢電子♦閱讀環境的方法,其 中該作業系統接獲該底層驅動程式通知後,通知具有提^ 震動功能的應用程式提示使用者。 /、 不 6·如請求項5所述之感應電子書閱讀環境的方法,其 中該具有提示震動功能的應用程式接受到產生震動的資訊 • 後以彈出警告對話方塊、關閉顯示設備、用音頻設備發出 響聲或閃爍指示燈等方式對使用者進行提示。 7·如請求項1所述之感應電子書閱讀環境的方法,其 中該作業系統接獲該底層驅動程式通知後,關閉該電金 設備的電源。 θ 8.如請求項彳所述之感應電子書閱讀環境的方法,其 •中該Τ1時間為5〜1〇秒。 、 9_如請求項1所述之感應電子書閱讀環境的方法,其 中該延時步驟期間為300〜900微秒。 、 10.如請求項1所述之感應電子書閱讀環境的方法, 其中該設定值大於4。 13 201115473 11. 一種初始化與G-SENSOR匹配的底層驅動程式的 方法,其步驟包含: 設置該G-SENS0R感應震動的幅度值; 向該作業系統申請中斷信號; 建立震動檢測的中斷服務線程;以及 將申請到的該中斷信號與該中斷服務線程綁定。 12. 如請求項11所述之初始化與G-SENSOR匹配的底 層驅動程式的方法,其中該G-SENSOR感應震動的幅度值 由使用者自行設置。 13. 如請求項11所述之初始化與G-SENSOR匹配的底 層驅動程式的方法,其中該方法可應用於具有作業系統的 電子書設備的G-SENSOR的底層驅動程式。201115473 VII. Patent application scope: ^ 1. A method for sensing an e-book reading environment. The method for reading the e-book reading-reading environment includes: a. an interrupt signal is generated by G-SENSOR; b. an interrupt service thread is triggered; c Establishing a timer thread that zeros the parameter in the interrupt service thread every T1 time; d_ each time the interrupt signal occurs, the value of the φ dynamic counter in the interrupt service thread is incremented by 1; Entering the judgment step, when the vibration counter value is greater than or equal to the set value in the T1 time, the underlying driver notifies the operating system, terminates the timer, re-assigns the vibration counter, and ends after the delay step; when the vibration counter is in the T1 time When the value is less than the set value, enter the delay step and repeat steps a, b, d, e. 2. A method of sensing an e-book reading environment as claimed in claim 1, wherein the G-SENSOR senses the force of the e-book device to send an interrupt signal. 3. The method of claim 1, wherein the timer thread is triggered to assign a value of zero to the timer. 4. The method of inductive e-book reading environment according to claim 1, wherein the time period of the τι time is set by the user. S • 5. For the method of reading the environment in the form of an item, the operating system receives the notification from the underlying driver and notifies the application that has the vibration function to prompt the user. /, No. 6. The method of claiming an e-book reading environment according to claim 5, wherein the application having the prompting vibration function receives the information for generating vibrations, and then popping up the warning dialog box, turning off the display device, and using the audio device The user is prompted by a beep or flashing light. 7. The method of claim 1, wherein the operating system receives the power of the underlying driver and turns off the power of the battery device. θ 8. The method of inducing an e-book reading environment as described in claim ,, wherein the Τ1 time is 5 to 1 sec. 9. The method of claim 1, wherein the delay step is 300 to 900 microseconds. 10. The method of claim 1, wherein the set value is greater than four. 13 201115473 11. A method for initializing a G-SENSOR matching underlying driver, the method comprising: setting an amplitude value of the G-SENS0R induced vibration; applying an interrupt signal to the operating system; establishing an interrupt service thread for detecting the vibration; The interrupt signal that is requested is bound to the interrupt service thread. 12. The method of initializing a G-SENSOR matching underlying driver as described in claim 11, wherein the magnitude of the G-SENSOR induced vibration is set by the user. 13. A method of initializing a G-SENSOR-matched underlying driver as described in claim 11, wherein the method is applicable to an underlying driver of a G-SENSOR of an e-book device having an operating system.
TW98136037A 2009-10-23 2009-10-23 A mtehod based on g-sensor for sensing electronic book reading environment TWI416414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98136037A TWI416414B (en) 2009-10-23 2009-10-23 A mtehod based on g-sensor for sensing electronic book reading environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98136037A TWI416414B (en) 2009-10-23 2009-10-23 A mtehod based on g-sensor for sensing electronic book reading environment

Publications (2)

Publication Number Publication Date
TW201115473A true TW201115473A (en) 2011-05-01
TWI416414B TWI416414B (en) 2013-11-21

Family

ID=44934477

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98136037A TWI416414B (en) 2009-10-23 2009-10-23 A mtehod based on g-sensor for sensing electronic book reading environment

Country Status (1)

Country Link
TW (1) TWI416414B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103325398A (en) * 2012-03-23 2013-09-25 腾讯科技(深圳)有限公司 Animation playing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7509270B1 (en) * 1992-12-09 2009-03-24 Discovery Communications, Inc. Electronic Book having electronic commerce features
TWI336068B (en) * 2006-06-30 2011-01-11 Hon Hai Prec Ind Co Ltd Apparatus and method for preventing users of a display device from tiredness
TWI345170B (en) * 2007-09-26 2011-07-11 Holylite Microelectronics Corp Automatic page detector

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103325398A (en) * 2012-03-23 2013-09-25 腾讯科技(深圳)有限公司 Animation playing method and device
CN103325398B (en) * 2012-03-23 2016-03-23 腾讯科技(深圳)有限公司 A kind of animation playing method and device

Also Published As

Publication number Publication date
TWI416414B (en) 2013-11-21

Similar Documents

Publication Publication Date Title
KR101550520B1 (en) Creating custom vibration patterns in response to user input
TWI476636B (en) Tactile feedback in an electronic device
US8861198B1 (en) Device frame having mechanically bonded metal and plastic
US20080259742A1 (en) Methods and systems for controlling alarm clocks
WO2019201073A1 (en) Page display method and apparatus, mobile terminal, and storage medium
WO2007076227A2 (en) Soft key interaction indicator
CN108900728B (en) Reminding method, reminding device, electronic device and computer readable medium
KR101958255B1 (en) Method and apparatus for controlling vibration intensity according to situation awareness in electronic device
CN109189362B (en) Sound production control method and device, electronic equipment and storage medium
US20090295573A1 (en) Systems and methods for preventing accessory loss
JP2007115157A (en) Key operation feeling imparting method and portable information device
US8922983B1 (en) Internal metal support structure for mobile device
CN105549878A (en) Electronic book page turning control method and device
CN109240413B (en) Screen sounding method and device, electronic device and storage medium
CN109040919A (en) Vocal technique, device, electronic device and computer-readable medium
WO2018028072A1 (en) Bend measurement method, device and terminal
US20160165039A1 (en) Terminal device
CN106384599A (en) Cracking voice identification method and device
TW201115473A (en) A method based on G-SENSOR for sensing electronic book reading environment
CN108769871B (en) Sound production method, sound production device, electronic device and storage medium
CN109116982B (en) Information playing method and device and electronic device
CN109085989A (en) Sounding control method, device, electronic device and computer-readable medium
AU2013205577B2 (en) Custom vibration patterns
CN106774854A (en) The system and method for automatic vibration when a kind of mobile terminal display screen rotates
TWI462058B (en) Bluetooth system with alarming function and alarming method for bluetooth device

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees