TW200803185A - Process method of keyboard signal - Google Patents

Process method of keyboard signal Download PDF

Info

Publication number
TW200803185A
TW200803185A TW95119781A TW95119781A TW200803185A TW 200803185 A TW200803185 A TW 200803185A TW 95119781 A TW95119781 A TW 95119781A TW 95119781 A TW95119781 A TW 95119781A TW 200803185 A TW200803185 A TW 200803185A
Authority
TW
Taiwan
Prior art keywords
keyboard
button
address
code
scan
Prior art date
Application number
TW95119781A
Other languages
Chinese (zh)
Other versions
TWI309924B (en
Inventor
Ji-Pei Wang
xin-chang Wu
Original Assignee
Ene Technology Inc
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 Ene Technology Inc filed Critical Ene Technology Inc
Priority to TW95119781A priority Critical patent/TW200803185A/en
Publication of TW200803185A publication Critical patent/TW200803185A/en
Application granted granted Critical
Publication of TWI309924B publication Critical patent/TWI309924B/zh

Links

Abstract

A process method of keyboard signal for using keyboard more flexible is described. The process method of keyboard signal comprises a normal mode and a scan address mode that are switched by a switch command. When the keyboard at the normal mode, the keyboard transmits a scan code of an action key to a host. When the keyboard at the normal mode, keyboard directly transmits an address code of the action key to the host, and then the host transforms the address code to the scan code by a mapping table. Wherein the mapping table can be a custom-made mapping table and implemented by software of firmware. So that, according present invention, the application of the keyboard is more flexible than prior.

Description

200803185 九、發明說明: 【發明所屬之技術領域】 本發明係有關於-種訊號處理方法,特別有關於一種 鍵盤的訊號處理方法。 . 【先前技術】200803185 IX. Description of the Invention: [Technical Field] The present invention relates to a signal processing method, and more particularly to a signal processing method for a keyboard. [Prior Art]

二請參閱第一圖習知鍵盤信號傳輪示意圖。習知的鍵盤 #號係由鍵盤ίο產生一鍵盤掃描碼之PS/2封包信號η給 主機12,主機12直接根據鍵盤掃描碼之以^封包^號^ 供主機12中之作業系統執行相關動作ό Μ、當鍵盤10上之按鍵被壓按或放開時,鍵盤1〇即可取 得被壓按/放開鍵之㈣碼。而再將取得的位址碼藉由鍵 盤内設置之對映表(Mappingtable)轉換為—掃描碼。接 著將該壓按/放開鍵之掃描碼轉為p s / 2封包信號i i,進而 然而將_表設置於鍵盤1G巾,其對絲與鍵盤10 上各鍵之關係已被設定好。換言之,鍵盤1Q上各鍵之功 能及定義係於鍵盤10出廠時已固定’所以使用者在使用 上便受限於預設之㈣功能㈣作,而如此造成鍵盤在應 用上顯得不夠彈^H:。 〜 【發明内容】 有鑑於此,本發明係提供一種鍵盤訊號處理方法, 以提升鍵盤的使㈣性,其步驟首先制賴盤之拓 陣=是否有按鍵動作;若有,則取得該按鍵之一位址碼。 接著將該按鍵之該位址碼轉換成PS/2封包後傳輸至— 機’然後於魅機巾將該按鍵之該位址碼轉換為該按鍵^ 200803185 一作業^統取切_作按鍵之該掃描碼輪出至該主機之 該鍵_重=:二::J口盤:號處理方法,步驟包括先將 是否有按鍵動作;若=|^^貞測該鍵盤之按鍵矩陣中 接著仙^接_ 賴之料碼至—主機。Second, please refer to the schematic diagram of the first schematic signal transmission wheel of the first figure. The known keyboard ## is generated by the keyboard ίο a keyboard scan code PS/2 packet signal η to the host 12, the host 12 directly according to the keyboard scan code ^ ^ package ^ number ^ for the operating system in the host 12 to perform related actions ό Μ When the button on the keyboard 10 is pressed or released, the keyboard can obtain the (four) code of the pressed/release button. The obtained address code is converted into a scan code by a mapping table set in the keyboard. The scan code of the press/release button is then converted to the p s / 2 packet signal i i , and the _ table is set to the keyboard 1G towel, and the relationship between the wire and the keys on the keyboard 10 has been set. In other words, the functions and definitions of the keys on the keyboard 1Q are fixed when the keyboard 10 is shipped from the factory. Therefore, the user is limited to the preset (4) function (4) in use, and thus the keyboard is not enough to be applied in the application. :. ~ In view of the above, the present invention provides a keyboard signal processing method to improve the keyboard (4), the first step is to determine the top of the disk = whether there is a button action; if so, the button is obtained One address code. Then, the address code of the button is converted into a PS/2 packet and then transmitted to the machine', and then the address code of the button is converted into the button in the charm machine towel. 200803185 A job is taken and cut as a button The scan code is outputted to the host by the key _ weight =: two:: J port: number processing method, the steps include whether there is a button action first; if =|^^ 该 test the keyboard key matrix in the next ^接_ Laizhi material code to - host.

便_該鍵盤之按二為—掃描位址模式。再來 送該按鍵之位址= 址碼轉換為該按鍵之^碼1後㈣主機將該按鍵之位 可將位址碼轉換掃描碼之動作於主機上執行,Then the keyboard is pressed to scan the address mode. Then send the address of the button = the address code is converted to the code 1 of the button (4) The host can change the address code to scan the code on the host.

_發及定義主機的對映表㈣I 右人對鍵盤上各鍵之定M 1 ^ 1 ☆ 法,不用如羽知Μ 本务明之鍵盤訊號處理方 Η ^ 接鍵功能受限於預設鍵盤中之對映表, 疋以在鍵盤按鍵之定義上更為靈活且具彈性。 、_ send and define the host's mapping table (four) I right person on the keyboard to set the M 1 ^ 1 ☆ method, do not need to be like the knowledge of the Μ Μ 之 之 之 键盘 键盘 键盘 键盘 键盘 Η Η Η Η Η Η Η Η Η Η Η Η Η The mapping table is more flexible and flexible in the definition of keyboard keys. ,

為了能更進一步瞭解本發明為達成預定目的所採取之 術、手段及功效,請參閱以下有關本發明之詳細說明與 附圖’相信本發明之目❾、特徵與特點,當可由此得一深 入且具體之瞭解,然而所附圖式僅提供參考與說明用,妓 非用來對本發明加以限制者。 實施方式】 k配合圖示將本發明較佳實例詳細說明下。 請麥閱第二圖本發明鍵盤訊號處理方法第一較佳實施 例動作流程圖。首先偵測鍵盤上的按鍵動作,其按鍵動作 係為按鍵被壓按及放開(pressed/deprasd)而使鍵盤内按 鍵矩陣中節點開與關之動作(如第二圖步驟S2〇1)。藉由 200803185 偵測鍵盤上的按鍵動作,键般 動作按鍵之位址碼(如第‘步驟= 立址,器可取得 址碼轉換為掃描碼,而將動.鍅『 接著先不將位 包’並透過-崎面傳輪至碼轉為體之封 然後藉由主機設置的對映表 7 —圖步驟幻〇5)。 碼(如第二圖步驟S207)===位址碼轉為掃描 至主機之作業系統,以“ = 鍵之掃描碼輪出 S209 )。而主機設置的對映表關動一作/如第二圖步驟 化對映表,可於主機々山田:系了為一初體或軟體之客製 之功能::提高鍵盤按鍵之功能及其在應用 —接者5月麥閱第三圖本發明鍵盤訊號處理方 首先開啟電源啟動鍵盤(如第:: =。=?後鍵盤之訊號處理模式為-峨^ 重^乍i =)°#於一般模式下侧鍵盤上是否有按鍵 ’ /、扣鍵動作係為按鍵被壓按及放開 、P騰d/^pressed )而使鍵盤内按鍵矩陣中節點開與關之 S力3:上第,步驟S3〇5 )。若沒有按鍵動作則返回步驟 ΙΙίΓ一ί模式待命。若有按鍵動作,則掃描位址债測 的於按鍵矩陣中取得動作按鍵之位址碼,再利用第一對映 表將位址碼轉為掃描碼’驗將動作按鍵之掃描碼轉為 PS/2之封包一並透過ps/2 .介面將動作按鍵之掃描碼^出 至主機(如第三圖步驟S3〇7)。然而在步驟S3〇3鍵盤於一 般模式時,除了偵測是否有按鍵動作步驟S3〇5,同g偵測 是否有接收到一切換命令(如第三圖步驟S3〇9)。若沒有 接收到切換命今,則返回步驟S303鍵盤繼續處於一般模 式。若鍵盤接收到切換命令,則將鍵盤訊號處理模式轉為 200803185 5描位址模式(如第三圖步驟s3u . 式下偵測鍵盤上是否有按鍵 描位址模 若沒有按鍵動作則返回步辨—圖步,驟S3!3)。 f鍵動作’雜位_彳晴!若有 ⑽介面將二=二,之封包,再透過 S 315 )。接著於生機中.S,出,主機(如第三圖步驟 描碼,以傳輸€主機钱^對映表將位址碼轉為掃 然而在步驟則鍵盤於肿位^如^三圖步驟幻⑺。 按鍵動作步驟S313,_^彳;^=除了_是否有 第三圖步驟S319)。= 到切換命令(如 S3U鍵盤繼續處於掃莫刀鍵:接:,回步驟 令,則树,請3將鍵盤爾理模===命 而上述之城命令射為_上㈣ 電腦週邊裝置產生,如H 〗斤產生,或其他 而主钱叹置的第—對映表係可為一韌 化對映表,可於主機端利用峨軟體之開 =各鍵之魏,以提高鍵盤按狀功缺其在應用上ΐ 料上所述,僅為本發0錄佳的具體實施例之詳細 ,’本發明之所有範圍應以下述之申請專』 準,凡合於本發明申請專利範圍之精神與其類似變化 皆應包含於本發明之齡巾,任何熟㈣項技^ 之領域内,可輕易思及之變化或修飾皆可“在 以下本案之專利範圍。 200803185 【圖式簡單說明】 第一圖係為習知鍵盤信號傳輸示意圖; 第二圖係為本發明鍵盤訊號處理方法第 動作流程圖;及 理方法第 較佳實施例 較佳實施例 第三圖係為本發明鍵盤訊號處 動作流程圖。 【主要元件符號說明】In order to further understand the techniques, means, and effects of the present invention in order to achieve the intended purpose, refer to the following detailed description of the invention and the accompanying drawings. It is to be understood that the invention is not to be construed as limiting the invention. Embodiments k will be described in detail with reference to the preferred embodiments of the present invention. Please refer to the second figure of the first preferred embodiment of the keyboard signal processing method of the present invention. Firstly, the button action on the keyboard is detected, and the button action is performed by pressing and releasing (pressed/deprasd) the button to open and close the node in the key matrix (as in the second step S2〇1). Detecting the keystrokes on the keyboard by using the 200803185, the address code of the key-like action button (such as the first step = the address, the device can obtain the address code to be converted into the scan code, and will move. 鍅『 Then the first packet will not be 'And through the - Saki noodle to the code to the body of the seal and then set by the host map 7 - Figure step illusion 5). The code (such as step S207 in the second figure) === the address code is converted to the operating system scanned to the host, and the scan code of the = key is rotated out of S209. The mapping table set by the host is turned off/as the second The step-by-step mapping table can be used in the host 々山田: it is a custom function of the original body or software:: Improve the function of the keyboard keys and its application - the fifth picture of the invention The signal processor first turns on the power-on keyboard (for example: :: =.=? After the keyboard signal processing mode is -峨^重^乍i =) °# in the normal mode, the lower keyboard has a button ' /, button The action is that the button is pressed and released, P is d/^pressed), and the S-force 3 of the node in the keyboard matrix is turned on and off: step S3〇5). If there is no button action, return to the step ΙΙίΓ一ί mode is on standby. If there is a button action, the address of the action button is obtained in the button matrix of the scanned address, and the address code is converted to the scan code by using the first mapping table. The scan code is converted into a PS/2 packet and the scan code of the action button is output to the main through the ps/2 interface. (Step S3〇7 in the third figure) However, in the step S3〇3 in the normal mode, in addition to detecting whether there is a key action step S3〇5, the same g detects whether a switching command is received (such as the third Step S3〇9). If no switching success is received, return to step S303 and the keyboard continues to be in the normal mode. If the keyboard receives the switching command, the keyboard signal processing mode is changed to 200803185 5 address mode (such as the third Figure s3u. In the case of detecting whether there is a button on the keyboard, if there is no button action, then return to the step-step, step S3! 3). f-key action 'Miscellaneous_彳晴! If there is (10) interface will Two = two, the packet, and then through S 315). Then in the live machine. S, out, the host (such as the third step step code, to transfer the host money ^ mapping table to change the address code to sweep in Steps are in the swollen position ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Key: connect:, back to the step order, then the tree, please 3 keyboard lm === life and the above city The command is shot as _ on (4) computer peripheral devices, such as H jin, or other sighs of the main sigh, the mapping table can be a toughened mapping table, can be used on the host side to open the soft body = The key of each key to improve the keyboard function is described in the application. It is only the details of the specific embodiment of the present invention. 'All the scope of the present invention should be based on the following application. The spirit of the scope of the patent application of the present invention and its similar variations are all included in the age towel of the present invention, and any of the familiar (4) items can be easily changed or modified. The first figure is a schematic diagram of a conventional keyboard signal transmission; the second figure is a motion chart of the keyboard signal processing method of the present invention; and the preferred embodiment of the preferred embodiment The three figures are the flow chart of the action of the keyboard signal of the invention. [Main component symbol description]

鍵盤10 PS/2封包信號π 主機12Keyboard 10 PS/2 packet signal π host 12

Claims (1)

200803185 十、申請專利範圍: 卜-種鍵盤_處理方法,步驟包括: :貞:該鍵盤之按鍵矩陣中是否有按鍵動作, 右有,則取得該按鍵之—位址碼; 將該按鍵之該位址碼傳輪至—主機. 於=主機中利用一對映表將該按鍵之該位 该按鍵之一掃描碼;及 馬i換為 1、 將^動作域之該掃描碼輸出至該线之 如申請專利範圍第i項所述之鍵般 業糸統。 3、 專利_第丨項所述之鍵盤訊 得。 係“5亥鍵盤中-掃描位址偵測器取 4 士申明專利圍第】項所述之鍵盤訊 驟更包括該按鍵之位址碼轉為·之封包二;步 PS/2介面傳輸至該主機。 匕再故過~ 5、 6、 如申請專鄕圍第]_叙鍵㈣ 該對映表係為一客製化之對映表。 其中 ^申。月專利|&圍第丨顧述之難訊號處理方法,其中 該對映表係為一敕體。 /、 ^申明專她圍第丨顧述之鍵盤峨處理方法,其中 該對映表係為一韌體。 -種鍵盤職處理方法,步驟包括: 3及馳疋否從〜般模式切換到—掃描位址模式; 方以鍵|切_轉描位賴式,且當該鍵盤發生按鍵 10 8、 200803185 f塵動作時’則傳送漏按的該按鍵之位址碼到 才成, 該;=該按鍵之位址碼’並轉換為該按鍵之掃描右雜盤亚細換到該掃描位址模式,且當該鍵 =;Γ力作時,則傳送被按壓的該败::ΓΓ,圍第δ項所述之鍵盤訊號如 舌輪立址_器取得該按鍵之 更。 利用一掃描位址偵測哭 碼;及 、4取侍被壓按的該按鍵之位址 I曰2轉換對照表將該按鍵之位址 鍵之掃描碼,以傳紅魅機。 奐為该按專機圍第8項所述之鍵盤訊==::令使該鍵盤於該掃描位址模式丄包 如申请專利範圍第〗〗 係由心:== 如申凊專利乾圍第8 該按鍵動作係為該按鍵盤訊號處理方法,其中 如申請專利範圍第8=,中郎點開關之動作。 =括,鍵之位址碼或該按 2 —PS/2^_’再透過—PS/2介面傳輸至 主 9、 11 12 13 14 200803185 如,申明專利範圍第8項所述之鍵盤訊號處理方法,其中 及主機係利用一第二對映表將被壓按的該 16、 :轉,鍵之掃描碼^ 〇申请專利範圍第15項所述之鍵盤訊號處理方法,其 17、 中"亥第二對映表係為一客製化之對映表。 如申请專利範圍第15項所述之鍵盤訊號處理方法,直 18、 :該:二對映表係為一軟體。 、 如申靖專利範圍第15項所述之鍵盤訊號處理方法,其 中遠第二對映表係為一韌體。 12200803185 X. Patent application scope: Bu-type keyboard _ processing method, the steps include: : 贞: whether there is a button action in the key matrix of the keyboard, and right, the address code of the button is obtained; The address code is transmitted to the host. In the = host, the one-to-one mapping table is used to scan the one of the keys of the button; and the horse i is changed to 1, and the scan code of the action field is output to the line. For example, the key system as described in item i of the patent application scope. 3. The keyboard information described in the patent _ 丨 。. The keyboard signal described in the item "5-Hui keyboard-scanning address detector takes 4 士申明专利围"] further includes the address code of the button being converted to packet 2; the step PS/2 interface is transmitted to The host. 匕 匕 ~ 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 ] ] ] ] ] 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四The method of dealing with the difficult signal of Gu Shu, wherein the mapping table is a corpus. /, ^ Declaring the method of processing the keyboard 峨 of the 丨 丨 丨 丨 , , , , , , , , , , , , , , , , , , , 。 。 。 。 。 。 。 Job processing method, the steps include: 3 and whether to switch from the general mode to the scan address mode; the square key | cut_transfer position, and when the keyboard generates a button 10 8 , 200803185 f dust action ' Transmitting the address code of the button that is leaked is completed, the address code of the button is converted to the scan mode of the button, and the scan mode is changed to the scan address mode, and when the key =; When the Γ 作 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Further, a scan address is used to detect the crying code; and, 4, the address of the button pressed by the waiter is converted to the comparison table, and the scan code of the address key of the button is transmitted to the red charm machine. For the keyboard message according to item 8 of the special machine, the ==:: order the keyboard in the scanning address mode, such as the patent application scope 〗 〖: Heart: == The button action is the keyboard signal processing method, wherein, as claimed in the patent scope 8=, the action of the middle point switch. = bracket, the address code of the key or the press 2 - PS / 2 ^ _ ' re-transmit - For example, the method for processing a keyboard signal according to claim 8 of the patent scope, wherein the host system uses a second mapping table to be pressed by the 16: The scan code of the key, the key signal processing method described in item 15 of the patent application scope, the 17th, middle "Hai second mapping table is a customized mapping table. The keyboard signal processing method described in 15 items, straight 18: the: the second mapping table is a software. Keyboard signal processing method according to item 15 patentable scope of which COSCO second mapping table is a firmware-based. 12
TW95119781A 2006-06-02 2006-06-02 Process method of keyboard signal TW200803185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW95119781A TW200803185A (en) 2006-06-02 2006-06-02 Process method of keyboard signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW95119781A TW200803185A (en) 2006-06-02 2006-06-02 Process method of keyboard signal

Publications (2)

Publication Number Publication Date
TW200803185A true TW200803185A (en) 2008-01-01
TWI309924B TWI309924B (en) 2009-05-11

Family

ID=44765589

Family Applications (1)

Application Number Title Priority Date Filing Date
TW95119781A TW200803185A (en) 2006-06-02 2006-06-02 Process method of keyboard signal

Country Status (1)

Country Link
TW (1) TW200803185A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI400631B (en) * 2008-01-14 2013-07-01 Microsoft Corp Method and device for automatically customizing computing devices based on input device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI400631B (en) * 2008-01-14 2013-07-01 Microsoft Corp Method and device for automatically customizing computing devices based on input device

Also Published As

Publication number Publication date
TWI309924B (en) 2009-05-11

Similar Documents

Publication Publication Date Title
CN103210366B (en) For apparatus and method based on neighbouring input
TWI693546B (en) Application function starting method and device
TW201135558A (en) Projecting system with touch controllable projecting picture
CN106233241A (en) Virtual machine keyboard
US20110134049A1 (en) Method and system for handling multiple touch input on a computing device
WO2014131277A1 (en) Method, apparatus and terminal for controlling audio play
JP2012104092A (en) Touch screen device allowing visually impaired person to handle objects thereon, and method of handling objects on touch screen device
CN106385537A (en) Photographing method and terminal
WO2016045226A1 (en) Information processing method and apparatus
EP3788776A1 (en) User interfaces for updating network connection settings of external devices
WO2016070338A1 (en) Method, apparatus and device for displaying message
WO2018209555A1 (en) Bluetooth device connection method and terminal device
TW201122939A (en) Method of generating multi-touch signal, dongle, and control system
CN107948278B (en) Information transmission method, terminal equipment and system
WO2019071424A1 (en) Application function control method and terminal
WO2018196484A1 (en) Method for answering incoming call, and terminal device
US11935530B2 (en) Multimodal responses
CN106330672B (en) Instant messaging method and system
TW200803185A (en) Process method of keyboard signal
KR101876394B1 (en) Method and device for playing media data on a terminal
CN109960456A (en) A kind of generation method and terminal device of virtual key layout
WO2017161812A1 (en) Message replying method and terminal
US10319061B2 (en) Information processing apparatus and event management method
US20200033995A1 (en) Surface Interface
WO2013026370A1 (en) Wireless handheld device

Legal Events

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