TWI275950B - Method of processing system key instantaneously on embedded device - Google Patents
Method of processing system key instantaneously on embedded device Download PDFInfo
- Publication number
- TWI275950B TWI275950B TW93141362A TW93141362A TWI275950B TW I275950 B TWI275950 B TW I275950B TW 93141362 A TW93141362 A TW 93141362A TW 93141362 A TW93141362 A TW 93141362A TW I275950 B TWI275950 B TW I275950B
- Authority
- TW
- Taiwan
- Prior art keywords
- message
- key
- embedded device
- processing
- interface
- Prior art date
Links
Landscapes
- Input From Keyboards Or The Like (AREA)
- Digital Computer Display Output (AREA)
Abstract
Description
1275950 ..... 五、發明說明(1) 【發明所屬之技術領域】 本發明係有關於一種在篏入式設備 之方法’尤指-種採用多線程間訊息佇::處理系統鍵 s前在嵌入式設備上其系統鍵無法即時處理:問:效= 令使用者在使用該嵌入式設備之系統鍵 該方…以對-可攜式硬碟與一安全=卡且 (S D )專儲存媒體訊息,進行一即時處理。 心 【先前技術】 、按,在資訊領域各項技術取得迅速發展的今天,嵌入 式系統是嵌入式技術發展的必然結果,嵌入式作為實現人 性化、智慧化越發受到人們的普遍關注,且已經廣泛地應 用在社會生活的各個領域中,幾乎所有的電器設備,例 如·莩上型電腦、個人數位助理(Personal Digital Assistant ’簡稱PDA )、行動計算設備、電視機頂盒、數 位電視、多媒體、數位相機、家庭自動化系統與行動電話 專···’皆與該嵌入式技術有著密切的關係。喪入式系統 主要由嵌入式處理器、相關支撐硬體、嵌入式作業系統及 應用軟體等組成,是可獨立工作的”器件π。 然而,隨著嵌入式設備功能的曰益繁多,使用者對該 欲入式設備功能的要求也越來越高,例如:在行動電話或 者數位相機中,加入網路隨身聽,錄音,可攜式硬碟功能 專···’通常在這些嵌入式設備上皆會加入一特殊的系統 鍵(例如:選單(menu ))來處理前述之功能,例如··轉1275950 ..... V. Description of the Invention (1) Technical Field of the Invention The present invention relates to a method for inserting a device, in particular, a multi-threaded message:: processing system key s Before the embedded device, its system key can't be processed immediately: Q: Effect = Let the user use the system key of the embedded device... The pair-portable hard drive and a security=card and (SD) Store media messages for instant processing. Heart [previous technology], press, in the information field, the rapid development of various technologies, embedded systems are the inevitable result of the development of embedded technology, embedded as a humanization, intelligent more and more people have received widespread attention, and already Widely used in all areas of social life, almost all electrical equipment, such as laptops, personal digital assistants (PDA), mobile computing devices, TV set-top boxes, digital TV, multimedia, digital cameras Home automation systems and mobile phones are all closely related to the embedded technology. The mourning system is mainly composed of embedded processor, related supporting hardware, embedded operating system and application software. It is a device π that can work independently. However, with the benefits of embedded devices, users The requirements for the function of the device to be accessed are also higher and higher. For example, in a mobile phone or a digital camera, a network player, a recording, a portable hard disk function, and the like are usually used in these embedded devices. A special system key (for example, menu) is added to handle the aforementioned functions, such as
第5頁 1275950 、發明說明(2) 盤功能’當使用者按下該嵌入式設備上相應之系統鍵時, 才能處理相應之功能,而這些都需要一界面系統來提供支Page 5 1275950, invention description (2) disk function 'When the user presses the corresponding system key on the embedded device, the corresponding function can be processed, and these require an interface system to provide support
惟’在目前界面系統中,只有當前的顯示界面才能處 理這些系統鍵值,也才可以調用其相應之功能,否則應用 私式在非啟動狀態時是收不到以上訊息的,因此,需要使 用者打開其相應之處理界面才可以處理這些系統鍵值,例 如:在一主功能選單(menu )中,當其功能項目之第5項 為一處理網路隨身聽之功能時,倘若使用者當前打開之功 能界面是在其功能項目第2項之個人數位助理(pDA )功能 中之計算器功能,此時,使用者按下處理撥放網路隨身聽 功此之系統鍵,由於當前顯示的功能界面是在該個人數位 助理功能中之計算器功能,因此,該計算器功能並不會處 理該網路隨身聽之撥放功能,所以使用者並不能立即聽到 悅耳的音樂,只有一層一層地退出該計算器功能選單、退 出該個人數位助理功能選單,回到該主功能選單後,再進 入其功能項目之第5項處理網路隨身聽之功能選單,如 匕 才可以接收該網路隨身聽撥放的系統鍵’以達到撥放 網路隨身聽之目的。However, in the current interface system, only the current display interface can handle these system key values, and then the corresponding functions can be called. Otherwise, the application privately receives the above message when it is not in the startup state, therefore, it needs to be used. These system keys can be processed by opening their corresponding processing interfaces, for example, in a main function menu (menu), when the fifth item of the function item is a function of processing the network player, if the user is currently The function interface that is opened is the calculator function in the personal digital assistant (pDA) function of item 2 of the function item. At this time, the user presses the system button for processing the dial-up network player, due to the current display. The function interface is a calculator function in the personal digital assistant function. Therefore, the calculator function does not handle the dialing function of the network player, so the user cannot immediately hear the pleasant music, only one layer by layer. Exit the calculator function menu, exit the personal digital assistant function menu, return to the main function menu, and then enter the fifth of its function items. Processing network Walkman function menu, such as the dagger can receive the network walkman Bofang system key 'for the purpose of network Bofang Walkman.
如上述所舉之例子可知,目前之作法顯然達不到該系 統鍵即時處理的要求,其在處理程序上明顯較為繁瑣與費 時’給使用者帶來極大不方便;因此,發明人在嗅覺到此 一問題’以及為了及早因應市場之需求,即積極地研發出 種可針對上述情況提出之解決方案,藉以有效地解決該As can be seen from the above examples, the current practice obviously fails to meet the requirements of the system key for immediate processing, and the processing procedure is obviously cumbersome and time consuming, which brings great inconvenience to the user; therefore, the inventor is smelling This problem 'and in order to respond to the needs of the market at an early stage, actively develop a solution that can be proposed for the above situation, so as to effectively solve the problem
第6頁 1275950 五、發明說明(3) 系統鍵即時處理之問題,令使用者在使用該等嵌入式設備 時能變得更加方便。 【發明内容】 有鑑於上述先前技術中之深入介紹,顯然地我們很容 易發現’使用者在使用該等嵌入式設備上之系統鍵進行處 理相應之功能時,只有在當前的顯示界面才能處理這些系 統鍵值’也才可以調用其相應之功能,否則,只有在層層 退出其它功能選單後,再進入其功能項目相應之處理界面 後才I以處理這些系統鍵值,此一作法造成了該系統鍵無 ^即日寸處理之缺點,進而在處理程序上較為繁瑣與費時, 給使用者帶來極大不方便,故發明人乃以從事該行業多年 之經驗’在經過長久努力研究與實驗後,終於開發設計出 本發明之一種「在嵌入式設備上即時處理系統鍵之方 去」’以期藉由本發明之巧思,有效解決上述問題。 ^ 本發明之目的,在提供一種在嵌入式設備上即時處理 糸統鍵之方法,透過該方法將具有以下之優點: 〇〇 1 採用多線程間訊息仔列機制,不但系統架構簡 單,有效解決習知在嵌入式設備上其系統鍵無法即時處理 之問題。 2透過該方法將令使用者在使用該嵌入式設備之系 二=時能更加方便,且該方法尚可以對一可攜式硬碟與一 =全數位儲存記憶卡(SD )等儲存媒體訊息,進行一即時Page 6 1275950 V. INSTRUCTIONS (3) The problem of immediate processing of system keys makes it easier for users to use these embedded devices. SUMMARY OF THE INVENTION In view of the above-mentioned in-depth introduction of the prior art, it is obvious that it is easy for the user to process the corresponding functions when using the system keys on the embedded devices to process the corresponding functions. The system key value ' can also call its corresponding function. Otherwise, only after the other layers are exited from other function menus, and then enter the corresponding processing interface of the function item, I can process these system key values. This method causes the The shortcomings of the system key are not complicated, and the processing procedure is cumbersome and time consuming, which brings great inconvenience to the user. Therefore, the inventor has been engaged in the industry for many years of experience' after long-term efforts and experiments. Finally, the invention has been devised to "handle the system keys on the embedded device", in order to effectively solve the above problems by the ingenuity of the present invention. The purpose of the present invention is to provide a method for processing a system key on an embedded device in real time. The method has the following advantages: 〇〇1 adopts a multi-threaded message queue mechanism, which not only has a simple system architecture, but also effectively solves It is known that the system keys cannot be processed on the embedded device in real time. 2 This method will make the user more convenient when using the embedded device==, and the method can still store media information for a portable hard disk and a=all-digit memory card (SD). Make an instant
第7頁 1275950Page 7 1275950
f便於貴審查委員能對本發明之技術手段及運作過 步之認識與瞭解’兹舉實施例配合圖式,詳細 吞兄明如下: 【貫施方式】 。、由於為了提高系統内應用程式併發執行的程度,進而 可進一步提高系統的吞吐量,在現代的作業系統中引入了 比一個進程更小’且能獨立運行的基本單位,即所謂之線 $( threads )’該線程是被系統獨立調度和分派的基本 單位’除運行必需的資源外,不擁有系統資源,一個線程 I創建和撤銷另一線程,線程間相互制約,具有執行狀 怒’且可以與另一個線程同步;而多線程則是指作業系統 支援在一個進程中執行多個線程的能力,傳統的每個進程 中只有一個線程在執行,稱作單線程方法,在多線程的環 兄中’進私被疋義成資源分配的實體(u n丨t )和保護的只 體,應用程式本身即是多線程。 本發明即根據以上之原理,發明出一種「在嵌入式設 備上即時處理系統鍵之方法」,其係採用多線程間訊息符 列機制’該方法係在一嵌入式設備上分別建立一訊息彳丁列 處理線程及一信號接收線程,當該嵌入式設備之界面系統 在一正常之運行下,該信號接收線程在接收到一輸入設備 之信號時,會發送一信息給該訊息佇列處理線程,嗣’該 訊息佇列處理線程會根據所接收到之該信息,判斷是否需f Facilitate the review and understanding of the technical means and operation of the present invention by the reviewing committee. The detailed description of the embodiment is as follows: [Comprehensive mode]. In order to improve the concurrent execution of the application in the system, the throughput of the system can be further improved, and a basic unit smaller than a process can be introduced in the modern operating system, and the basic unit can be operated independently, that is, the so-called line $ ( Threads ) 'This thread is the basic unit independently scheduled and dispatched by the system'. In addition to running the necessary resources, it does not own system resources. One thread I creates and revokes another thread. The threads are mutually constrained and have execution anger' and can Synchronization with another thread; multithreading refers to the ability of the operating system to support multiple threads in a single process. In the traditional process, only one thread is executing, called a single-threaded method, in a multi-threaded ring brother. In the middle of the private entity (un丨t) and the protected entity, the application itself is multi-threaded. According to the above principle, the present invention invents a "method for processing system keys on an embedded device in real time", which adopts a multi-threaded message-column mechanism, which establishes a message on an embedded device. a processing thread and a signal receiving thread, when the interface system of the embedded device is in a normal operation, the signal receiving thread sends a message to the message processing thread when receiving the signal of an input device , 嗣 'The message queue processing thread will judge whether it needs to be based on the received information.
1275950 五、發明說明(5) 發送一特殊訊息給界面系統之應用程式,當該特殊訊息係 一即時處理信息時,即會將該即時處理信息發送給該應用 程式’並根據該喪入式設備一螢幕上所顯示之視窗層疊順 序(即:所謂之視窗z序),決定發送之界面對象及相應 之處理後’再發送一系統鍵訊息及該系統鍵之鍵值給該應 用程式,該應用程式在接收到該系統鍵訊息及其鍵值後, 即會根據該鍵值調用一相應之功能函數進行處理,且關閉 其本身。 藉此’即可以有效解決先前技術中在嵌入式設備上其 系統鍵無法即時處理之問題,進而令使用者在使用該嵌入 式設備之系統鍵時能更加方便;此外,本發明之方法尚可 以對一可攜式硬碟與一安全數位儲存記憶卡(Secure D1 g 11a 1 ’簡稱SD )等儲存媒體訊息,進行一即時處理。 在本發明中’前述之視窗z序實際定義了視窗之間的 層疊順序’是相對螢幕座標而言的,一般螢幕上的所有視 窗均有一個座標系,即原點在左上角,X轴水準向右,γ 軸垂直向下的座標系;Z序就是相對於一個假想的z軸而 言,該Z軸從螢幕外指向螢幕内。視窗在該z轴上的值,就 確定了其Z序。Z序值大的視窗,覆蓋了z序值小的視窗。 當然,在程式當中,z序一般表示為一個鏈表,z序的操作 實際就是鏈表的操作。 再者’前述之輸入設備則係分別包括一鍵盤 (Keyboard)、一觸控板(T〇uchPanel)、一轉盤、可攜 式硬碟及安全數位儲存記憶卡(SD )等。1275950 V. Description of the invention (5) Sending a special message to the application of the interface system, when the special message is an instant processing information, the instant processing information is sent to the application 'and according to the mourning device The window stacking sequence displayed on the screen (ie, the so-called window z sequence) determines the interface object to be sent and the corresponding processing 're-sends a system key message and the key value of the system key to the application, the application After receiving the system key message and its key value, the program will call a corresponding function function to process according to the key value, and close itself. Therefore, the problem that the system keys cannot be processed on the embedded device in the prior art can be effectively solved, thereby making the user more convenient when using the system keys of the embedded device; in addition, the method of the present invention can still be used. Instantly process stored media messages such as a portable hard drive and a secure digital storage memory card (Secure D1 g 11a 1 'SD for short). In the present invention, 'the aforementioned window z sequence actually defines the stacking order between windows' is relative to the screen coordinates. Generally, all windows on the screen have a coordinate system, that is, the origin is in the upper left corner, and the X-axis level To the right, the coordinate system of the γ axis is vertically downward; the Z order is relative to an imaginary z axis, which is directed from the outside of the screen to the screen. The value of the window on the z-axis determines its Z-order. A window with a large Z-order value covers a window with a small z-sequence. Of course, in the program, the z-order is generally expressed as a linked list, and the operation of the z-order is actually the operation of the linked list. Furthermore, the aforementioned input devices respectively include a keyboard, a touchpad (T〇uchPanel), a turntable, a portable hard disk, and a secure digital storage memory card (SD).
12759501275950
广卜:前述之多線程間訊息佇列機制乃是一種用來處 理右干κ宁列的服務,其中每個件列都是由多個線程進 行處理(接收和處理訊息)。 在本發明之系統架構中,請參閱第丨圖所示,係分別 包括一用以驅動該輸入設備之驅動程式1〇、該信號接收線 程11以及該訊息佇列處理線程12,當該信號接收線程^在 接收到該輸入設備之驅動程式丨0信號時,會發送一信良給 該訊息仔列處理線程12,該訊息彳宁列處理“ 12會;5 ^ 信息,判斷是否需發送一特殊訊息(即時處理信息)給界 面系統之應用程式,其中該應用程式之界面系統係包括: 二,功能界面1 3、一功能界面1 4以及一當前功能界面丨5, 當該當前功能界面1 5首次收到該特殊訊息(即時處理信 息)時’會進行其資料保存之處理與系統資源釋放,且關 閉其界面本身;其次是該功能界面丨4,應用程式可以建立 很多功能界面1 4,該主功能界面1 3係不會接收該特殊處理 afl息(即時處理信息),而是發送該系統鍵訊息及該系統 鍵之鍵值給該應用程式,該應用程式即會根據該鍵值調用 一相應之功能函數進行處理,同時會關閉其本身。 藉上所述可清楚得知,當該嵌入式設備分別建立該訊 息件列處理線程;1 2及該信號接收線程11,且界面系統在正 常之運行下時,其將依下列步驟進行操控處理,請參閱第 2圖所示: 步驟(201 )首先,該信號接收線程11接收該輸入設 備之驅動程式1 〇信號,並發送一信息給該訊息佇列處理線Guang Bu: The aforementioned multi-thread inter-queue mechanism is a service for processing the right-hand kneading column, where each piece is processed by multiple threads (receiving and processing messages). In the system architecture of the present invention, as shown in the figure, a driver 1 for driving the input device, the signal receiving thread 11 and the message processing thread 12 are respectively included when the signal is received. When the thread ^ receives the driver 丨0 signal of the input device, it sends a message to the message processing thread 12, and the message is processed to "12 meeting; 5 ^ information, to determine whether a special message needs to be sent. (Instant processing information) to the interface system application, wherein the application interface system includes: Second, the function interface 1 3, a function interface 1 4 and a current function interface 丨 5, when the current function interface 1 5 for the first time When receiving the special message (instant processing information), 'the data storage process and system resource release will be performed, and the interface itself will be closed; secondly, the function interface 丨4, the application can establish a lot of function interfaces 1 4, the main The function interface 1 3 does not receive the special processing afl (instant processing information), but sends the system key message and the key value of the system key to the application. The application will call a corresponding function to process according to the key value, and will close itself. It can be clearly seen that the embedded device separately establishes the message processing thread; 2 and the signal receiving thread 11, and the interface system under normal operation, it will be manipulated according to the following steps, please refer to Figure 2: Step (201) First, the signal receiving thread 11 receives the input device The driver 1 signals and sends a message to the message processing line
1275950 —------------------------- 五、發明說明(7) 稃12 ; 步驟(2 0 2 )該訊息佇列處理線程1 2根據所接收到之 該信息’判斷是否為一即時處理信息?若是,即繼續下一 步驟(2 0 3 ),若否,則至步驟(2 〇 7 ); 步驟(2 0 3 )將該即時處理信息發送給界面系統之應 用释式, 步驟( 204 )根據該嵌入式設備一螢幕上所顯示之視 窗層疊順序(即:視窗Z序),判斷當前之顯示界面是否 為〆主功能界面13選單(menu )?若是,即繼續下一步驟 (2〇5) ’若否即為其它界面,則至步驟(208); 步驟(2 0 5 )即發送一系統鍵訊息及該系統鍵之鍵值 給該應用程式; 步驟(206 )該應用程式在接收到該系統鍵訊息及其 鍵值後,即會根據該鍵值調甩一相應之功能函數進行處、 理,且關閉其本身,嗣,結束該次處理程序。 步驟(2 0 7 )依正常信息方式處理。 步驟(208 )即進行本身資料保存之處理與系統資源 釋放,且關閉其界面本身,並返回至步驟(205)。 按,以上所述,僅為本發明最佳之一具體實施例,惟 本發明之構造特徵並不侷限於此,凡任何熟悉該項技藝者 在本發明領域内,可輕易思及之變化或修飾,應均被=蓋 在以下本案之申請專利範圍内。 1275950_ 圖式簡單說明 【圖式簡單說明】 第1圖係本發明之系統架構示意圖; 第2圖係本發明之流程示意圖。 【主要元件符號說明】 輸入設備之驅動程式…1 0信號接收線程…11 訊息佇列處理線程 …1 2 主功能界面 …1 3 功能界面 “·14 當前功能界面"·15 —1275950 —------------------------- V. Description of the invention (7) 稃12 ; Step (2 0 2 ) The message queues processing thread 1 2 According to the received information 'determine whether it is an instant processing information? If yes, proceed to the next step (2 0 3 ), if not, go to step (2 〇 7 ); step (2 0 3 ) send the instant processing information to the application system of the interface system, step (204) is based on The window stacking order displayed on the screen of the embedded device (ie: window Z sequence) determines whether the current display interface is the menu of the main function interface 13 (menu). If yes, the next step (2〇5) is continued. 'If it is other interface, then go to step (208); step (2 0 5) is to send a system key message and the key value of the system key to the application; step (206) the application receives the After the system key message and its key value, a corresponding function function is adjusted according to the key value, and the user is closed, and the process is terminated. The step (2 0 7) is handled in the normal information mode. Step (208) performs the processing of saving the data itself and the release of the system resources, and closes the interface itself, and returns to step (205). According to the above, it is only one of the best embodiments of the present invention, but the structural features of the present invention are not limited thereto, and any one skilled in the art can easily think about changes or Modifications shall be covered by the following patents in this case. 1275950_ BRIEF DESCRIPTION OF THE DRAWINGS [Simplified illustration of the drawings] Fig. 1 is a schematic diagram of the system architecture of the present invention; Fig. 2 is a schematic diagram of the flow of the present invention. [Main component symbol description] Input device driver...1 0 signal receiving thread...11 Message queue processing thread...1 2 Main function interface ...1 3 Function interface "·14 Current function interface"·15 —
第12頁Page 12
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW93141362A TWI275950B (en) | 2004-12-30 | 2004-12-30 | Method of processing system key instantaneously on embedded device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW93141362A TWI275950B (en) | 2004-12-30 | 2004-12-30 | Method of processing system key instantaneously on embedded device |
Publications (2)
Publication Number | Publication Date |
---|---|
TW200622679A TW200622679A (en) | 2006-07-01 |
TWI275950B true TWI275950B (en) | 2007-03-11 |
Family
ID=38646107
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW93141362A TWI275950B (en) | 2004-12-30 | 2004-12-30 | Method of processing system key instantaneously on embedded device |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI275950B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI479375B (en) * | 2007-06-29 | 2015-04-01 | Microsoft Corp | Method,computer storage medium,portable media device for navigating lists using input motions |
-
2004
- 2004-12-30 TW TW93141362A patent/TWI275950B/en not_active IP Right Cessation
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI479375B (en) * | 2007-06-29 | 2015-04-01 | Microsoft Corp | Method,computer storage medium,portable media device for navigating lists using input motions |
Also Published As
Publication number | Publication date |
---|---|
TW200622679A (en) | 2006-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021259100A1 (en) | Sharing method and apparatus, and electronic device | |
US11074117B2 (en) | Copying and pasting method, data processing apparatus, and user equipment | |
US10698591B2 (en) | Immersive document interaction with device-aware scaling | |
US20110193805A1 (en) | Screen control method and apparatus for mobile terminal having multiple touch screens | |
CN108900770A (en) | A kind of method, apparatus, smartwatch and the mobile terminal of the rotation of control camera | |
WO2023005920A1 (en) | Screen splitting method and apparatus, and electronic device | |
KR20120061965A (en) | Method and apparatus for providing application interface portions on peripheral computer devices | |
JP2014010836A (en) | Multiple input processing method and device | |
KR101986582B1 (en) | Dynamic display of video communication data | |
US9407863B2 (en) | System and method for processing visual information | |
WO2011020379A1 (en) | Method and device for switching display picture layers based on mobile phone terminal | |
WO2012116647A1 (en) | Method for controlling terminal device, and terminal device and electronic device | |
CN103973542B (en) | A kind of voice information processing method and device | |
US20230333803A1 (en) | Enhanced Screen Sharing Method and System, and Electronic Device | |
CN109168074A (en) | A kind of video broadcasting method and device | |
WO2024037418A1 (en) | Display method and apparatus, electronic device, and readable storage medium | |
WO2023185817A1 (en) | Multi-device cooperation method and apparatus, and electronic device and medium | |
US20160210467A1 (en) | Electronic apparatus and information access control method thereof | |
WO2016164702A1 (en) | Opening new application window in response to remote resource sharing | |
CN102830752B (en) | Electronic equipment and working method thereof | |
WO2024001956A1 (en) | Video call method and apparatus, first electronic device, and second electronic device | |
TWI275950B (en) | Method of processing system key instantaneously on embedded device | |
WO2022262722A1 (en) | Response method and apparatus of electronic device, and electronic device | |
WO2023001027A1 (en) | Task synchronization method and apparatus, device, and readable storage medium | |
EP3538981B1 (en) | Layered content selection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |